@rpcbase/ui 0.287.0 → 0.289.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/assets/sha256.worker-DNtOSCbM.js.map +1 -0
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js.map +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +96 -17
- package/dist/index11.js.map +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js.map +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +18 -12
- package/dist/index170.js.map +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -3
- package/dist/index182.js.map +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +9 -7
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +4 -4
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +4 -15
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +13 -3
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +2 -2
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -85
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +79 -54
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +68 -7
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -23
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +6 -28
- package/dist/index199.js.map +1 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +4 -97
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +3 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +23 -24
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +97 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -12
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +22 -19
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -15
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +10 -102
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +21 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -23
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -28
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +101 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +24 -15
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +27 -7
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -24
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -22
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +15 -6
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +23 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -24
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +5 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -24
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +4 -23
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +23 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +22 -8
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -19
- package/dist/index229.js.map +1 -1
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +22 -50
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -20
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -27
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +17 -97
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +50 -33
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +20 -119
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +28 -13
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +98 -4
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +33 -15
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -62
- package/dist/index239.js.map +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +13 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -109
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -14
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +64 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +10 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +104 -318
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +14 -66
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -232
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -270
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +313 -309
- package/dist/index249.js.map +1 -1
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +60 -171
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +252 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +268 -41
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +316 -47
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +179 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +6 -50
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +41 -51
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +50 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +51 -61
- package/dist/index259.js.map +1 -1
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +53 -42
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -97
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +31 -47
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +61 -36
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +43 -47
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +92 -46
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +48 -20
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +33 -176
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +49 -48
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +68 -15
- package/dist/index269.js.map +1 -1
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +20 -65
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +202 -9
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +48 -40
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +60 -91
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +9 -278
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +38 -55
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +91 -10
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +278 -12
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +58 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +11 -64
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +5 -5
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +12 -6
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +3 -25
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -25
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +12 -126
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +63 -51
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -60
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +24 -48
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +24 -6
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +125 -14
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +51 -16
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -7
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +56 -11
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -24
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +7 -51
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +15 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +18 -148
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +12 -59
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +25 -120
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +54 -15
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +5 -866
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +148 -28
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +6 -8
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +55 -512
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +111 -794
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +14 -7436
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +862 -6
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +28 -12
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +515 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +803 -5
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +7426 -468
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +6 -37
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +12 -19
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +5 -11
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +5 -30
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -4
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +461 -51
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +36 -10
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +19 -5
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +29 -8
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +4 -12
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +60 -3
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +10 -15
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +5 -25
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +5 -5
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +9 -41
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -4
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +3 -26
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +15 -18
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +22 -31
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +41 -5
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +4 -8
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +25 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +19 -9
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +34 -10
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +9 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -7
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +9 -75
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +8 -162
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +9 -114
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +10 -14
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +7 -80
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +68 -39
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +160 -11
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +113 -15
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +13 -100
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +6 -6
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +73 -49
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +34 -96
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +12 -70
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +14 -111
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +94 -48
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +50 -37
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +89 -125
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +52 -123
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +54 -197
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +44 -229
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +9 -9
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +42 -308
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +144 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +142 -6
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +257 -7
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +241 -6
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +309 -6
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +6 -10
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +7 -128
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +6 -42
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +12 -7
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +6 -68
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +20 -116
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +10 -490
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +128 -7
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +42 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +67 -3
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +115 -45
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +490 -11
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +8 -26
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +12 -41
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +13 -5
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -36
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +45 -15
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +24 -41
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +3 -12
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +27 -11
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +40 -50
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +37 -40
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +12 -10
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +40 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +5 -5
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +29 -8
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +9 -303
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +57 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +40 -22
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +15 -105
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +5 -22
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +10 -22
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +289 -16
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +4 -12
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +20 -112
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +6 -10
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +3 -9
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +104 -27
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +20 -9
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +20 -6
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +14 -253
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +12 -10
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +117 -11
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +8 -6
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +32 -22
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +9 -23
- package/dist/index399.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +8 -11
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +6 -105
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +3 -15
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +251 -10
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +9 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +11 -239
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -28
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +21 -37
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +21 -10
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +97 -117
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +15 -40
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +6 -7
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +11 -25
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +7 -9
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -24
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +226 -15
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +24 -11
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +38 -4
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +11 -324
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +119 -62
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +42 -4
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +25 -28
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +6 -4
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +11 -470
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +23 -268
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +24 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +17 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +8 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +328 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +66 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +7 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +31 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +474 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +68 -7
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +272 -0
- package/dist/index430.js.map +1 -0
- package/dist/index44.js +7 -6
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +31 -7
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +10 -10
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +15 -13
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +201 -7
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +20 -6
- package/dist/index49.js.map +1 -1
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +16 -6
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +123 -14
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +19 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +9 -68
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +7 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +9 -31
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +13 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -15
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -201
- package/dist/index59.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +13 -20
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +9 -16
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +10 -123
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +5 -19
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +42 -9
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +387 -9
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +37 -14
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +4 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +6 -4
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +3 -3
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +57 -41
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -387
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +6 -37
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +5 -21
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +4 -56
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +7 -7
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +6 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -5
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +11 -5
- package/dist/index79.js.map +1 -1
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +7 -6
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +10 -6
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -8
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +6 -7
- package/dist/index83.js.map +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +2 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +31 -31
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +13 -13
- package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
package/dist/index384.js
CHANGED
|
@@ -1,110 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import { useValueAsRef as d } from "./index229.js";
|
|
13
|
-
import { useStore as f } from "./index259.js";
|
|
14
|
-
import { useSelectRootContext as p } from "./index367.js";
|
|
15
|
-
import { fieldValidityMapping as m } from "./index368.js";
|
|
16
|
-
import { useFieldRootContext as ee } from "./index369.js";
|
|
17
|
-
import { useLabelableContext as te } from "./index371.js";
|
|
18
|
-
import { useLabelableId as ne } from "./index372.js";
|
|
19
|
-
import { selectors as h } from "./index376.js";
|
|
20
|
-
import { resolveAriaLabelledBy as g } from "./index382.js";
|
|
21
|
-
import { isMouseWithinBounds as _ } from "./index383.js";
|
|
22
|
-
import * as v from "react";
|
|
23
|
-
//#region ../../node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
|
|
24
|
-
var y = 400, b = {
|
|
25
|
-
...n,
|
|
26
|
-
...m,
|
|
27
|
-
popupSide: (e) => e ? { "data-popup-side": e } : null,
|
|
28
|
-
value: () => null
|
|
29
|
-
}, x = /*#__PURE__*/ v.forwardRef(function(n, m) {
|
|
30
|
-
let { render: x, className: re, id: ie, disabled: ae = !1, nativeButton: S = !0, style: oe, ...C } = n, { setTouched: w, setFocused: T, validationMode: E, state: D, disabled: O } = ee(), { labelId: k } = te(), { store: A, setOpen: j, selectionRef: M, validation: N, readOnly: P, required: F, alignItemWithTriggerActiveRef: I, disabled: L } = p(), R = O || L || ae, z = f(A, h.open), se = f(A, h.mounted), B = f(A, h.value), V = f(A, h.triggerProps), H = f(A, h.positionerElement), U = f(A, h.listElement), W = f(A, h.popupSide), G = f(A, h.id), K = f(A, h.labelId), q = f(A, h.hasSelectedValue), ce = se && H ? W : null, J = ie ?? G, le = g(k, K);
|
|
31
|
-
ne({ id: J });
|
|
32
|
-
let Y = d(H), X = v.useRef(null), { getButtonProps: ue, buttonRef: de } = i({
|
|
33
|
-
disabled: R,
|
|
34
|
-
native: S
|
|
35
|
-
}), fe = A.useStateSetter("triggerElement"), pe = c(), Z = c(), Q = c();
|
|
36
|
-
v.useEffect(() => {
|
|
37
|
-
if (z) return Q.start(y, () => {
|
|
38
|
-
M.current.allowUnselectedMouseUp = !0, M.current.allowSelectedMouseUp = !0;
|
|
39
|
-
}), () => {
|
|
40
|
-
Q.clear();
|
|
41
|
-
};
|
|
42
|
-
M.current = {
|
|
43
|
-
allowSelectedMouseUp: !1,
|
|
44
|
-
allowUnselectedMouseUp: !1,
|
|
45
|
-
dragY: 0
|
|
46
|
-
}, Z.clear();
|
|
47
|
-
}, [
|
|
48
|
-
z,
|
|
49
|
-
M,
|
|
50
|
-
Z,
|
|
51
|
-
Q
|
|
52
|
-
]);
|
|
53
|
-
let me = e(V, {
|
|
54
|
-
id: J,
|
|
55
|
-
role: "combobox",
|
|
56
|
-
"aria-expanded": z,
|
|
57
|
-
"aria-haspopup": "listbox",
|
|
58
|
-
"aria-controls": z ? U?.id ?? u(H)?.id : void 0,
|
|
59
|
-
"aria-labelledby": le,
|
|
60
|
-
"aria-readonly": P || void 0,
|
|
61
|
-
"aria-required": F || void 0,
|
|
62
|
-
tabIndex: R ? -1 : 0,
|
|
63
|
-
onFocus(e) {
|
|
64
|
-
T(!0), z && I.current && j(!1, s(o, e.nativeEvent)), pe.start(0, () => {
|
|
65
|
-
A.set("forceMount", !0);
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
onBlur(e) {
|
|
69
|
-
l(H, e.relatedTarget) || (w(!0), T(!1), E === "onBlur" && N.commit(B));
|
|
70
|
-
},
|
|
71
|
-
onMouseDown(e) {
|
|
72
|
-
if (z) return;
|
|
73
|
-
let t = r(e.currentTarget);
|
|
74
|
-
function n(e) {
|
|
75
|
-
if (!X.current) return;
|
|
76
|
-
let t = e.target;
|
|
77
|
-
l(X.current, t) || l(Y.current, t) || _(e, X.current) || j(!1, s(a, e));
|
|
78
|
-
}
|
|
79
|
-
Z.start(0, () => {
|
|
80
|
-
t.addEventListener("mouseup", n, { once: !0 });
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}, C, ue), $ = N.getValidationProps(R, me);
|
|
84
|
-
$.role = "combobox";
|
|
85
|
-
let he = {
|
|
86
|
-
...D,
|
|
87
|
-
open: z,
|
|
88
|
-
disabled: R,
|
|
89
|
-
value: B,
|
|
90
|
-
readOnly: P,
|
|
91
|
-
popupSide: ce,
|
|
92
|
-
placeholder: !q
|
|
93
|
-
};
|
|
94
|
-
return t("button", n, {
|
|
95
|
-
ref: [
|
|
96
|
-
m,
|
|
97
|
-
X,
|
|
98
|
-
de,
|
|
99
|
-
fe
|
|
100
|
-
],
|
|
101
|
-
state: he,
|
|
102
|
-
stateAttributesMapping: b,
|
|
103
|
-
props: $
|
|
104
|
-
});
|
|
2
|
+
import { NOOP as e } from "./index192.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
//#region ../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs
|
|
5
|
+
var n = /*#__PURE__*/ t.createContext({
|
|
6
|
+
elementRef: { current: null },
|
|
7
|
+
formRef: { current: { fields: /* @__PURE__ */ new Map() } },
|
|
8
|
+
errors: {},
|
|
9
|
+
clearErrors: e,
|
|
10
|
+
validationMode: "onSubmit",
|
|
11
|
+
submitCountRef: { current: 0 }
|
|
105
12
|
});
|
|
106
|
-
process.env.NODE_ENV !== "production" && (
|
|
13
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "FormContext");
|
|
14
|
+
function r() {
|
|
15
|
+
return t.useContext(n);
|
|
16
|
+
}
|
|
107
17
|
//#endregion
|
|
108
|
-
export {
|
|
18
|
+
export { n as FormContext, r as useFormContext };
|
|
109
19
|
|
|
110
20
|
//# sourceMappingURL=index384.js.map
|
package/dist/index384.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index384.js","names":["React","REASONS.none","REASONS.cancelOpen"],"sources":["../../../node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore } from '@base-ui/utils/store';\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useLabelableContext } from \"../../internals/labelable-provider/LabelableContext.mjs\";\nimport { pressableTriggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { fieldValidityMapping } from \"../../internals/field-constants/constants.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { isMouseWithinBounds } from \"../../utils/getPseudoElementBounds.mjs\";\nimport { contains, getFloatingFocusElement } from \"../../floating-ui-react/utils.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\nimport { useButton } from \"../../internals/use-button/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { resolveAriaLabelledBy } from \"../../utils/resolveAriaLabelledBy.mjs\";\nconst SELECTED_DELAY = 400;\nconst stateAttributesMapping = {\n ...pressableTriggerOpenStateMapping,\n ...fieldValidityMapping,\n popupSide: side => side ? {\n 'data-popup-side': side\n } : null,\n value: () => null\n};\n\n/**\n * A button that opens the select popup.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectTrigger = /*#__PURE__*/React.forwardRef(function SelectTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n id: idProp,\n disabled: disabledProp = false,\n nativeButton = true,\n style,\n ...elementProps\n } = componentProps;\n const {\n setTouched,\n setFocused,\n validationMode,\n state: fieldState,\n disabled: fieldDisabled\n } = useFieldRootContext();\n const {\n labelId: fieldLabelId\n } = useLabelableContext();\n const {\n store,\n setOpen,\n selectionRef,\n validation,\n readOnly,\n required,\n alignItemWithTriggerActiveRef,\n disabled: selectDisabled\n } = useSelectRootContext();\n const disabled = fieldDisabled || selectDisabled || disabledProp;\n const open = useStore(store, selectors.open);\n const mounted = useStore(store, selectors.mounted);\n const value = useStore(store, selectors.value);\n const triggerProps = useStore(store, selectors.triggerProps);\n const positionerElement = useStore(store, selectors.positionerElement);\n const listElement = useStore(store, selectors.listElement);\n const popupSideValue = useStore(store, selectors.popupSide);\n const rootId = useStore(store, selectors.id);\n const selectLabelId = useStore(store, selectors.labelId);\n const hasSelectedValue = useStore(store, selectors.hasSelectedValue);\n const popupSide = mounted && positionerElement ? popupSideValue : null;\n const id = idProp ?? rootId;\n const ariaLabelledBy = resolveAriaLabelledBy(fieldLabelId, selectLabelId);\n useLabelableId({\n id\n });\n const positionerRef = useValueAsRef(positionerElement);\n const triggerRef = React.useRef(null);\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const setTriggerElement = store.useStateSetter('triggerElement');\n const timeoutFocus = useTimeout();\n const timeoutMouseDown = useTimeout();\n const selectedDelayTimeout = useTimeout();\n React.useEffect(() => {\n if (open) {\n // A mousedown on the trigger can open the popup under the cursor. Keep mouseup selection\n // disabled briefly so releasing over either the selected item or a neighboring item doesn't\n // commit an accidental selection. SelectItem can still opt into unselected mouseup sooner\n // after a real drag over the item.\n selectedDelayTimeout.start(SELECTED_DELAY, () => {\n selectionRef.current.allowUnselectedMouseUp = true;\n selectionRef.current.allowSelectedMouseUp = true;\n });\n return () => {\n selectedDelayTimeout.clear();\n };\n }\n selectionRef.current = {\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n };\n timeoutMouseDown.clear();\n return undefined;\n }, [open, selectionRef, timeoutMouseDown, selectedDelayTimeout]);\n const mergedProps = mergeProps(triggerProps, {\n id,\n role: 'combobox',\n 'aria-expanded': open,\n 'aria-haspopup': 'listbox',\n 'aria-controls': open ? listElement?.id ?? getFloatingFocusElement(positionerElement)?.id : undefined,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-readonly': readOnly || undefined,\n 'aria-required': required || undefined,\n tabIndex: disabled ? -1 : 0,\n onFocus(event) {\n setFocused(true);\n\n // The popup element shouldn't obscure the focused trigger.\n if (open && alignItemWithTriggerActiveRef.current) {\n setOpen(false, createChangeEventDetails(REASONS.none, event.nativeEvent));\n }\n\n // Saves a re-render on initial click: `forceMount === true` mounts\n // the items before `open === true`. We could sync those cycles better\n // without a timeout, but this is enough for now.\n timeoutFocus.start(0, () => {\n store.set('forceMount', true);\n });\n },\n onBlur(event) {\n // If focus is moving into the popup, don't count it as a blur.\n if (contains(positionerElement, event.relatedTarget)) {\n return;\n }\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n },\n onMouseDown(event) {\n if (open) {\n return;\n }\n const doc = ownerDocument(event.currentTarget);\n function handleMouseUp(mouseEvent) {\n if (!triggerRef.current) {\n return;\n }\n const mouseUpTarget = mouseEvent.target;\n\n // Don't treat the release as an outside press when it lands on the trigger or inside\n // the popup positioner (or their children).\n if (contains(triggerRef.current, mouseUpTarget) || contains(positionerRef.current, mouseUpTarget)) {\n return;\n }\n if (isMouseWithinBounds(mouseEvent, triggerRef.current)) {\n return;\n }\n setOpen(false, createChangeEventDetails(REASONS.cancelOpen, mouseEvent));\n }\n\n // Firefox can fire this upon mousedown\n timeoutMouseDown.start(0, () => {\n doc.addEventListener('mouseup', handleMouseUp, {\n once: true\n });\n });\n }\n }, elementProps, getButtonProps);\n const props = validation.getValidationProps(disabled, mergedProps);\n\n // ensure nested useButton does not overwrite the combobox role:\n // <Toolbar.Button render={<Select.Trigger />} />\n props.role = 'combobox';\n const state = {\n ...fieldState,\n open,\n disabled,\n value,\n readOnly,\n popupSide,\n placeholder: !hasSelectedValue\n };\n return useRenderElement('button', componentProps, {\n ref: [forwardedRef, triggerRef, buttonRef, setTriggerElement],\n state,\n stateAttributesMapping,\n props\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectTrigger.displayName = \"SelectTrigger\";"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAM,IAAiB,KACjB,IAAyB;CAC7B,GAAG;CACH,GAAG;CACH,YAAW,MAAQ,IAAO,EACxB,mBAAmB,EACrB,IAAI;CACJ,aAAa;AACf,GAQa,IAA6B,gBAAM,WAAW,SAAuB,GAAgB,GAAc;CAC9G,IAAM,EACJ,WACA,eACA,IAAI,IACJ,UAAU,KAAe,IACzB,kBAAe,IACf,WACA,GAAG,MACD,GACE,EACJ,eACA,eACA,mBACA,OAAO,GACP,UAAU,MACR,GAAoB,GAClB,EACJ,SAAS,MACP,GAAoB,GAClB,EAC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AAK,KAAA;EAC5F,mBAAmB;EACnB,iBAAiB,KAAY,KAAA;EAC7B,iBAAiB,KAAY,KAAA;EAC7B,UAAU,IAAW,KAAK;EAC1B,QAAQ,GAAO;GAWb,AAVA,EAAW,EAAI,GAGX,KAAQ,EAA8B,WACxC,EAAQ,IAAO,EAAyBC,GAAc,EAAM,WAAW,CAAC,GAM1E,GAAa,MAAM,SAAS;IAC1B,EAAM,IAAI,cAAc,EAAI;GAC9B,CAAC;EACH;EACA,OAAO,GAAO;GAER,EAAS,GAAmB,EAAM,aAAa,MAGnD,EAAW,EAAI,GACf,EAAW,EAAK,GACZ,MAAmB,YACrB,EAAW,OAAO,CAAK;EAE3B;EACA,YAAY,GAAO;GACjB,IAAI,GACF;GAEF,IAAM,IAAM,EAAc,EAAM,aAAa;GAC7C,SAAS,EAAc,GAAY;IACjC,IAAI,CAAC,EAAW,SACd;IAEF,IAAM,IAAgB,EAAW;IAI7B,EAAS,EAAW,SAAS,CAAa,KAAK,EAAS,EAAc,SAAS,CAAa,KAG5F,EAAoB,GAAY,EAAW,OAAO,KAGtD,EAAQ,IAAO,EAAyBC,GAAoB,CAAU,CAAC;GACzE;GAGA,EAAiB,MAAM,SAAS;IAC9B,EAAI,iBAAiB,WAAW,GAAe,EAC7C,MAAM,GACR,CAAC;GACH,CAAC;EACH;CACF,GAAG,GAAc,EAAc,GACzB,IAAQ,EAAW,mBAAmB,GAAU,EAAW;CAIjE,EAAM,OAAO;CACb,IAAM,KAAQ;EACZ,GAAG;EACH;EACA;EACA;EACA;EACA;EACA,aAAa,CAAC;CAChB;CACA,OAAO,EAAiB,UAAU,GAAgB;EAChD,KAAK;GAAC;GAAc;GAAY;GAAW;EAAiB;EAC5D;EACA;EACA;CACF,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAc,cAAc"}
|
|
1
|
+
{"version":3,"file":"index384.js","names":["React","React$1","FormContext","NOOP","useFormContext"],"sources":["../../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.mjs\";\nexport const FormContext = /*#__PURE__*/React.createContext({\n elementRef: {\n current: null\n },\n formRef: {\n current: {\n fields: new Map()\n }\n },\n errors: {},\n clearErrors: NOOP,\n validationMode: 'onSubmit',\n submitCountRef: {\n current: 0\n }\n});\nif (process.env.NODE_ENV !== \"production\") FormContext.displayName = \"FormContext\";\nexport function useFormContext() {\n return React.useContext(FormContext);\n}"],"ignoreList":[0],"mappings":";;;;AAIA,IAAaE,IAA2B,gBAAM,cAAc;CAC1D,YAAY,EACV,SAAS,KACX;CACA,SAAS,EACP,SAAS,EACP,wBAAQ,IAAI,IAAI,EAClB,EACF;CACA,QAAQ,CAAC;CACT,aAAaC;CACb,gBAAgB;CAChB,gBAAgB,EACd,SAAS,EACX;AACF,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAY,cAAc;AACrE,SAAgBC,IAAiB;CAC/B,OAAOJ,EAAM,WAAWE,CAAW;AACrC"}
|
package/dist/index385.js
CHANGED
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { resolveMultipleLabels as r, resolveSelectedLabel as i } from "./index375.js";
|
|
6
|
-
import { selectors as a } from "./index376.js";
|
|
7
|
-
import * as o from "react";
|
|
8
|
-
//#region ../../node_modules/@base-ui/react/select/value/SelectValue.mjs
|
|
9
|
-
var s = { value: () => null }, c = /*#__PURE__*/ o.forwardRef(function(o, c) {
|
|
10
|
-
let { className: l, render: u, children: d, placeholder: f, style: p, ...m } = o, { store: h, valueRef: g } = n(), _ = t(h, a.value), v = t(h, a.items), y = t(h, a.itemToStringLabel), b = t(h, a.hasSelectedValue), x = !b && f != null && d == null, S = t(h, a.hasNullItemLabel, x), C = {
|
|
11
|
-
value: _,
|
|
12
|
-
placeholder: !b
|
|
13
|
-
}, w = null;
|
|
14
|
-
return w = typeof d == "function" ? d(_) : d ?? (x && !S ? f : Array.isArray(_) ? r(_, v, y) : i(_, v, y)), e("span", o, {
|
|
15
|
-
state: C,
|
|
16
|
-
ref: [c, g],
|
|
17
|
-
props: [{ children: w }, m],
|
|
18
|
-
stateAttributesMapping: s
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
process.env.NODE_ENV !== "production" && (c.displayName = "SelectValue");
|
|
1
|
+
//#region ../../node_modules/@base-ui/utils/clamp.mjs
|
|
2
|
+
function e(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
|
|
3
|
+
return Math.max(t, Math.min(e, n));
|
|
4
|
+
}
|
|
22
5
|
//#endregion
|
|
23
|
-
export {
|
|
6
|
+
export { e as clamp };
|
|
24
7
|
|
|
25
8
|
//# sourceMappingURL=index385.js.map
|
package/dist/index385.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index385.js","names":[],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index385.js","names":["clamp","min","val","max"],"sources":["../../../node_modules/@base-ui/utils/clamp.mjs"],"sourcesContent":["export function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}"],"ignoreList":[0],"mappings":";AAAA,SAAgBA,EAAM,GAAK,IAAM,gBAAyB,iBAA+B;CACvF,OAAO,KAAK,IAAIC,GAAK,KAAK,IAAIC,GAAKC,CAAG,CAAC;AACzC"}
|
package/dist/index386.js
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let { render: s, className: c, style: l, ...u } = a, { store: d } = r(), f = { open: n(d, i.open) };
|
|
11
|
-
return e("span", a, {
|
|
12
|
-
state: f,
|
|
13
|
-
ref: o,
|
|
14
|
-
props: [{
|
|
15
|
-
"aria-hidden": !0,
|
|
16
|
-
children: "▼"
|
|
17
|
-
}, u],
|
|
18
|
-
stateAttributesMapping: t
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "SelectIcon");
|
|
1
|
+
import { clamp as e } from "./index385.js";
|
|
2
|
+
function t(e, t) {
|
|
3
|
+
return Math.max(0, e - t);
|
|
4
|
+
}
|
|
5
|
+
function n(t, n) {
|
|
6
|
+
if (n <= 0) return 0;
|
|
7
|
+
let r = e(t, 0, n), i = r, a = n - r, o = i <= 1, s = a <= 1;
|
|
8
|
+
return o && s ? i <= a ? 0 : n : o ? 0 : s ? n : r;
|
|
9
|
+
}
|
|
22
10
|
//#endregion
|
|
23
|
-
export {
|
|
11
|
+
export { t as getMaxScrollOffset, n as normalizeScrollOffset };
|
|
24
12
|
|
|
25
13
|
//# sourceMappingURL=index386.js.map
|
package/dist/index386.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index386.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index386.js","names":["getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","max","clamped","clamp","value","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"sources":["../../../node_modules/@base-ui/react/utils/scrollEdges.mjs"],"sourcesContent":["import { clamp } from '@base-ui/utils/clamp';\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"ignoreList":[0],"mappings":";AAEA,SAAgBA,EAAmB,GAAY,GAAY;CACzD,OAAO,KAAK,IAAI,GAAGC,IAAaC,CAAU;AAC5C;AACA,SAAgBC,EAAsB,GAAO,GAAK;CAChD,IAAIC,KAAO,GACT,OAAO;CAET,IAAMC,IAAUC,EAAMC,GAAO,GAAGH,CAAG,GAC7BI,IAAgBH,GAChBI,IAAcL,IAAMC,GACpBK,IAAuBF,KAAA,GACvBG,IAAqBF,KAAA;CAU3B,OATIC,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIL,IAExCM,IACK,IAELC,IACKP,IAEFC;AACT"}
|
package/dist/index387.js
CHANGED
|
@@ -1,20 +1,293 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
2
|
+
import { useRefWithInit as e } from "./index185.js";
|
|
3
|
+
import { useMergedRefs as t } from "./index186.js";
|
|
4
|
+
import { EMPTY_ARRAY as n, EMPTY_OBJECT as r, NOOP as i } from "./index192.js";
|
|
5
|
+
import { mergeProps as a } from "./index196.js";
|
|
6
|
+
import { useStableCallback as o } from "./index206.js";
|
|
7
|
+
import { useIsoLayoutEffect as s } from "./index208.js";
|
|
8
|
+
import { none as c } from "./index214.js";
|
|
9
|
+
import { createChangeEventDetails as l } from "./index215.js";
|
|
10
|
+
import { useValueAsRef as ee } from "./index233.js";
|
|
11
|
+
import { visuallyHidden as te, visuallyHiddenInput as ne } from "./index235.js";
|
|
12
|
+
import { useClick as re } from "./index250.js";
|
|
13
|
+
import { useDismiss as ie } from "./index251.js";
|
|
14
|
+
import { ReactStore as ae } from "./index265.js";
|
|
15
|
+
import { useTransitionStatus as oe } from "./index268.js";
|
|
16
|
+
import { useOpenChangeComplete as se } from "./index270.js";
|
|
17
|
+
import { FOCUSABLE_POPUP_PROPS as ce } from "./index271.js";
|
|
18
|
+
import { useFloatingRootContext as le } from "./index275.js";
|
|
19
|
+
import { useListNavigation as ue } from "./index277.js";
|
|
20
|
+
import { useTypeahead as de } from "./index278.js";
|
|
21
|
+
import { useValueChanged as fe } from "./index295.js";
|
|
22
|
+
import { useOpenInteractionType as pe } from "./index296.js";
|
|
23
|
+
import { useOnFirstRender as me } from "./index368.js";
|
|
24
|
+
import { usePreviousValue as he } from "./index369.js";
|
|
25
|
+
import { isElementDisabled as ge } from "./index370.js";
|
|
26
|
+
import { useControlled as _e } from "./index371.js";
|
|
27
|
+
import { SelectFloatingContext as ve, SelectRootContext as ye, SelectRootPropsContext as be } from "./index372.js";
|
|
28
|
+
import { useFieldRootContext as xe } from "./index375.js";
|
|
29
|
+
import { useRegisterFieldControl as Se } from "./index376.js";
|
|
30
|
+
import { useLabelableId as Ce } from "./index378.js";
|
|
31
|
+
import { defaultItemEquality as we, findSelectionIndex as Te, isSelectedValueDirty as Ee } from "./index380.js";
|
|
32
|
+
import { stringifyAsLabel as De, stringifyAsValue as u } from "./index382.js";
|
|
33
|
+
import { selectors as Oe } from "./index383.js";
|
|
34
|
+
import { useFormContext as ke } from "./index384.js";
|
|
35
|
+
import { getMaxScrollOffset as Ae, normalizeScrollOffset as je } from "./index386.js";
|
|
36
|
+
import * as d from "react";
|
|
37
|
+
import { jsx as f, jsxs as Me } from "react/jsx-runtime";
|
|
38
|
+
//#region ../../node_modules/@base-ui/react/select/root/SelectRoot.mjs
|
|
39
|
+
function p(p) {
|
|
40
|
+
let { id: Ne, value: Pe, defaultValue: m = null, onValueChange: Fe, open: Ie, defaultOpen: Le = !1, onOpenChange: Re, name: h, form: g, autoComplete: ze, disabled: Be = !1, readOnly: _ = !1, required: v = !1, modal: y = !0, actionsRef: b, inputRef: Ve, onOpenChangeComplete: x, items: S, multiple: C = !1, itemToStringLabel: w, itemToStringValue: T, isItemEqualToValue: E = we, highlightItemOnHover: D = !0, children: He } = p, { clearErrors: Ue } = ke(), { setDirty: We, setTouched: Ge, setFocused: Ke, validityData: qe, setFilled: O, name: Je, disabled: Ye, validation: k, validationMode: Xe } = xe(), A = Ce({ id: Ne }), j = Ye || Be, M = Je ?? h, [N, Ze] = _e({
|
|
41
|
+
controlled: Pe,
|
|
42
|
+
default: C ? m ?? n : m,
|
|
43
|
+
name: "Select",
|
|
44
|
+
state: "value"
|
|
45
|
+
}), [P, Qe] = _e({
|
|
46
|
+
controlled: Ie,
|
|
47
|
+
default: Le,
|
|
48
|
+
name: "Select",
|
|
49
|
+
state: "open"
|
|
50
|
+
}), F = d.useRef([]), I = d.useRef([]), L = d.useRef(null), $e = d.useRef(null), et = d.useRef(0), tt = d.useRef(null), R = d.useRef([]), z = d.useRef(!1), nt = d.useRef(null), B = d.useRef(null), rt = d.useRef({
|
|
51
|
+
allowSelectedMouseUp: !1,
|
|
52
|
+
allowUnselectedMouseUp: !1,
|
|
53
|
+
dragY: 0
|
|
54
|
+
}), it = d.useRef(!1), at = d.useRef(N), { mounted: V, setMounted: ot, transitionStatus: H } = oe(P), { openMethod: U, triggerProps: W } = pe(P), G = e(() => new ae({
|
|
55
|
+
id: A,
|
|
56
|
+
labelId: void 0,
|
|
57
|
+
modal: y,
|
|
58
|
+
multiple: C,
|
|
59
|
+
itemToStringLabel: w,
|
|
60
|
+
itemToStringValue: T,
|
|
61
|
+
isItemEqualToValue: E,
|
|
62
|
+
value: N,
|
|
63
|
+
open: P,
|
|
64
|
+
mounted: V,
|
|
65
|
+
transitionStatus: H,
|
|
66
|
+
items: S,
|
|
67
|
+
forceMount: !1,
|
|
68
|
+
openMethod: null,
|
|
69
|
+
activeIndex: null,
|
|
70
|
+
selectedIndex: null,
|
|
71
|
+
popupProps: r,
|
|
72
|
+
triggerProps: r,
|
|
73
|
+
triggerElement: null,
|
|
74
|
+
positionerElement: null,
|
|
75
|
+
listElement: null,
|
|
76
|
+
popupSide: null,
|
|
77
|
+
scrollUpArrowVisible: !1,
|
|
78
|
+
scrollDownArrowVisible: !1,
|
|
79
|
+
hasScrollArrows: !1
|
|
80
|
+
}, {
|
|
81
|
+
setValue: i,
|
|
82
|
+
setOpen: i,
|
|
83
|
+
handleScrollArrowVisibility: i,
|
|
84
|
+
onOpenChangeComplete: i,
|
|
85
|
+
listRef: F,
|
|
86
|
+
popupRef: L,
|
|
87
|
+
scrollHandlerRef: $e,
|
|
88
|
+
scrollArrowsMountedCountRef: et,
|
|
89
|
+
valueRef: tt,
|
|
90
|
+
valuesRef: R,
|
|
91
|
+
labelsRef: I,
|
|
92
|
+
typingRef: z,
|
|
93
|
+
selectionRef: rt,
|
|
94
|
+
firstItemTextRef: nt,
|
|
95
|
+
selectedItemTextRef: B,
|
|
96
|
+
alignItemWithTriggerActiveRef: it,
|
|
97
|
+
initialValueRef: at
|
|
98
|
+
}, Oe)).current, st = G.useState("activeIndex"), ct = G.useState("selectedIndex"), lt = G.useState("triggerElement"), ut = G.useState("positionerElement"), dt = he(U), ft = U ?? dt, pt = d.useMemo(() => C ? "" : u(N, T), [
|
|
99
|
+
C,
|
|
100
|
+
N,
|
|
101
|
+
T
|
|
102
|
+
]), mt = d.useMemo(() => C && Array.isArray(N) ? N.map((e) => u(e, T)) : u(N, T), [
|
|
103
|
+
C,
|
|
104
|
+
N,
|
|
105
|
+
T
|
|
106
|
+
]), ht = ee(lt), gt = o(() => mt);
|
|
107
|
+
Se(ht, A, N, gt, !j, h);
|
|
108
|
+
let K = C ? Array.isArray(N) && N.length > 0 : N != null && pt !== "";
|
|
109
|
+
s(() => {
|
|
110
|
+
O(K);
|
|
111
|
+
}, [K, O]), s(function() {
|
|
112
|
+
let e = Te(R.current, N, E, C);
|
|
113
|
+
e === null && (B.current = null), !P && G.set("selectedIndex", e);
|
|
114
|
+
}, [
|
|
115
|
+
C,
|
|
116
|
+
P,
|
|
117
|
+
N,
|
|
118
|
+
E,
|
|
119
|
+
G
|
|
120
|
+
]), fe(N, () => {
|
|
121
|
+
Ue(M), We(Ee(N, qe.initialValue, E)), k.change(N);
|
|
122
|
+
});
|
|
123
|
+
let _t = o((e, t) => {
|
|
124
|
+
Re?.(e, t), !t.isCanceled && (Qe(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (Ge(!0), Ke(!1), Xe === "onBlur" && k.commit(N)));
|
|
125
|
+
}), q = o(() => {
|
|
126
|
+
ot(!1), G.update({
|
|
127
|
+
activeIndex: null,
|
|
128
|
+
openMethod: null,
|
|
129
|
+
scrollUpArrowVisible: !1,
|
|
130
|
+
scrollDownArrowVisible: !1
|
|
131
|
+
}), x?.(!1);
|
|
132
|
+
});
|
|
133
|
+
se({
|
|
134
|
+
enabled: !b,
|
|
135
|
+
open: P,
|
|
136
|
+
ref: L,
|
|
137
|
+
onComplete() {
|
|
138
|
+
P || q();
|
|
139
|
+
}
|
|
140
|
+
}), d.useImperativeHandle(b, () => ({ unmount: q }), [q]);
|
|
141
|
+
let J = o((e, t) => {
|
|
142
|
+
Fe?.(e, t), !t.isCanceled && Ze(e);
|
|
143
|
+
}), vt = o((e) => {
|
|
144
|
+
let t = Ae(e.scrollHeight, e.clientHeight), n = je(e.scrollTop, t), r = n > 0, i = n < t;
|
|
145
|
+
G.set("scrollUpArrowVisible", r), G.set("scrollDownArrowVisible", i);
|
|
146
|
+
}), Y = le({
|
|
147
|
+
open: P,
|
|
148
|
+
onOpenChange: _t,
|
|
149
|
+
elements: {
|
|
150
|
+
reference: lt,
|
|
151
|
+
floating: ut
|
|
152
|
+
}
|
|
153
|
+
}), yt = re(Y, {
|
|
154
|
+
enabled: !j,
|
|
155
|
+
event: "mousedown"
|
|
156
|
+
}), X = ie(Y), Z = ue(Y, {
|
|
157
|
+
enabled: !j,
|
|
158
|
+
listRef: F,
|
|
159
|
+
activeIndex: st,
|
|
160
|
+
selectedIndex: ct,
|
|
161
|
+
disabledIndices: n,
|
|
162
|
+
onNavigate(e) {
|
|
163
|
+
(e !== null || P) && G.set("activeIndex", e);
|
|
164
|
+
},
|
|
165
|
+
focusItemOnHover: D
|
|
166
|
+
}), Q = de(Y, {
|
|
167
|
+
enabled: !j && (P || !_ && !C),
|
|
168
|
+
listRef: I,
|
|
169
|
+
activeIndex: st,
|
|
170
|
+
selectedIndex: ct,
|
|
171
|
+
disabledIndices: (e) => ge(F.current[e]),
|
|
172
|
+
onMatch(e) {
|
|
173
|
+
P ? G.set("activeIndex", e) : J(R.current[e], l(c));
|
|
174
|
+
},
|
|
175
|
+
onTyping(e) {
|
|
176
|
+
z.current = e;
|
|
177
|
+
}
|
|
178
|
+
}), bt = d.useMemo(() => a(Q.reference, Z.reference, X.reference, yt.reference, W), [
|
|
179
|
+
yt.reference,
|
|
180
|
+
Q.reference,
|
|
181
|
+
Z.reference,
|
|
182
|
+
X.reference,
|
|
183
|
+
W
|
|
184
|
+
]), xt = d.useMemo(() => a(ce, Q.floating, Z.floating, X.floating), [
|
|
185
|
+
Q.floating,
|
|
186
|
+
Z.floating,
|
|
187
|
+
X.floating
|
|
188
|
+
]), St = Z.item ?? r;
|
|
189
|
+
G.useContextCallback("setValue", J), G.useContextCallback("setOpen", _t), G.useContextCallback("handleScrollArrowVisibility", vt), G.useContextCallback("onOpenChangeComplete", x), me(() => {
|
|
190
|
+
G.update({
|
|
191
|
+
popupProps: xt,
|
|
192
|
+
triggerProps: bt
|
|
193
|
+
});
|
|
194
|
+
}), G.useSyncedValues({
|
|
195
|
+
id: A,
|
|
196
|
+
modal: y,
|
|
197
|
+
multiple: C,
|
|
198
|
+
value: N,
|
|
199
|
+
open: P,
|
|
200
|
+
mounted: V,
|
|
201
|
+
transitionStatus: H,
|
|
202
|
+
popupProps: xt,
|
|
203
|
+
triggerProps: bt,
|
|
204
|
+
items: S,
|
|
205
|
+
itemToStringLabel: w,
|
|
206
|
+
itemToStringValue: T,
|
|
207
|
+
isItemEqualToValue: E,
|
|
208
|
+
openMethod: ft
|
|
209
|
+
});
|
|
210
|
+
let Ct = d.useMemo(() => ({
|
|
211
|
+
disabled: j,
|
|
212
|
+
readOnly: _,
|
|
213
|
+
required: v,
|
|
214
|
+
multiple: C,
|
|
215
|
+
highlightItemOnHover: D,
|
|
216
|
+
itemProps: St
|
|
217
|
+
}), [
|
|
218
|
+
j,
|
|
219
|
+
_,
|
|
220
|
+
v,
|
|
221
|
+
C,
|
|
222
|
+
D,
|
|
223
|
+
St
|
|
224
|
+
]), wt = t(Ve, k.inputRef), $ = C ? void 0 : M, Tt = d.useMemo(() => !C || !Array.isArray(N) || !M ? null : N.map((e) => {
|
|
225
|
+
let t = u(e, T);
|
|
226
|
+
return /*#__PURE__*/ f("input", {
|
|
227
|
+
type: "hidden",
|
|
228
|
+
form: g,
|
|
229
|
+
name: M,
|
|
230
|
+
value: t,
|
|
231
|
+
disabled: j
|
|
232
|
+
}, t);
|
|
233
|
+
}), [
|
|
234
|
+
C,
|
|
235
|
+
N,
|
|
236
|
+
g,
|
|
237
|
+
M,
|
|
238
|
+
T,
|
|
239
|
+
j
|
|
240
|
+
]);
|
|
241
|
+
return /*#__PURE__*/ Me(ye.Provider, {
|
|
242
|
+
value: G,
|
|
243
|
+
children: [
|
|
244
|
+
/*#__PURE__*/ f(be.Provider, {
|
|
245
|
+
value: Ct,
|
|
246
|
+
children: /*#__PURE__*/ f(ve.Provider, {
|
|
247
|
+
value: Y,
|
|
248
|
+
children: He
|
|
249
|
+
})
|
|
250
|
+
}),
|
|
251
|
+
/*#__PURE__*/ f("input", {
|
|
252
|
+
...k.getValidationProps(j, {
|
|
253
|
+
onFocus() {
|
|
254
|
+
G.state.triggerElement?.focus({ focusVisible: !0 });
|
|
255
|
+
},
|
|
256
|
+
onChange(e) {
|
|
257
|
+
if (e.nativeEvent.defaultPrevented || j || _) return;
|
|
258
|
+
let t = e.currentTarget.value, n = l(c, e.nativeEvent);
|
|
259
|
+
function r() {
|
|
260
|
+
if (C) return;
|
|
261
|
+
let e = t.toLowerCase(), r = R.current.findIndex((t) => u(t, T).toLowerCase() === e || De(t, w).toLowerCase() === e);
|
|
262
|
+
r === -1 && (r = R.current.findIndex((t, n) => {
|
|
263
|
+
let r = I.current[n];
|
|
264
|
+
return r != null && r.toLowerCase() === e;
|
|
265
|
+
}));
|
|
266
|
+
let i = R.current[r];
|
|
267
|
+
i != null && J(i, n);
|
|
268
|
+
}
|
|
269
|
+
G.set("forceMount", !0), queueMicrotask(r);
|
|
270
|
+
}
|
|
271
|
+
}),
|
|
272
|
+
id: A && $ == null ? `${A}-hidden-input` : void 0,
|
|
273
|
+
form: g,
|
|
274
|
+
name: $,
|
|
275
|
+
autoComplete: ze,
|
|
276
|
+
value: pt,
|
|
277
|
+
disabled: j,
|
|
278
|
+
required: v && !(C && K),
|
|
279
|
+
readOnly: _,
|
|
280
|
+
ref: wt,
|
|
281
|
+
style: M ? ne : te,
|
|
282
|
+
tabIndex: -1,
|
|
283
|
+
"aria-hidden": !0,
|
|
284
|
+
suppressHydrationWarning: !0
|
|
285
|
+
}),
|
|
286
|
+
Tt
|
|
287
|
+
]
|
|
288
|
+
});
|
|
289
|
+
}
|
|
17
290
|
//#endregion
|
|
18
|
-
export {
|
|
291
|
+
export { p as SelectRoot };
|
|
19
292
|
|
|
20
293
|
//# sourceMappingURL=index387.js.map
|
package/dist/index387.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index387.js","names":[],"sources":["../../../node_modules/@base-ui/react/select/portal/SelectPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStore } from '@base-ui/utils/store';\nimport { FloatingPortal } from \"../../floating-ui-react/index.mjs\";\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { selectors } from \"../store.mjs\";\n\n/**\n * A portal element that moves the popup to a different part of the DOM.\n * By default, the portal element is appended to `<body>`.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const SelectPortal = /*#__PURE__*/React.forwardRef(function SelectPortal(portalProps, forwardedRef) {\n const {\n store\n } = useSelectRootContext();\n const mounted = useStore(store, selectors.mounted);\n const forceMount = useStore(store, selectors.forceMount);\n const shouldRender = mounted || forceMount;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(FloatingPortal, {\n ref: forwardedRef,\n ...portalProps\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPortal.displayName = \"SelectPortal\";"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAgBA,IAAa,IAA4B,gBAAM,WAAW,SAAsB,GAAa,GAAc;CACzG,IAAM,EACJ,aACE,EAAqB,GACnB,IAAU,EAAS,GAAO,EAAU,OAAO,GAC3C,IAAa,EAAS,GAAO,EAAU,UAAU;CAKvD,OAJqB,KAAW,IAIZ,gBAAK,GAAgB;EACvC,KAAK;EACL,GAAG;CACL,CAAC,IALQ;AAMX,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAa,cAAc"}
|
|
1
|
+
{"version":3,"file":"index387.js","names":["React","REASONS.none","React$1","SelectRoot","valueProp","openProp","nameProp","disabledProp","defaultItemEquality","props","useFormContext","fieldName","fieldDisabled","useFieldRootContext","generatedId","useLabelableId","disabled","name","value","setValueUnwrapped","useControlled","multiple","defaultValue","EMPTY_ARRAY","open","setOpenUnwrapped","defaultOpen","listRef","labelsRef","popupRef","scrollHandlerRef","scrollArrowsMountedCountRef","valueRef","valuesRef","typingRef","firstItemTextRef","selectedItemTextRef","selectionRef","alignItemWithTriggerActiveRef","initialValueRef","useTransitionStatus","interactionTypeProps","useOpenInteractionType","store","useRefWithInit","ReactStore","EMPTY_OBJECT","NOOP","selectors","activeIndex","selectedIndex","triggerElement","positionerElement","previousOpenMethod","usePreviousValue","openMethod","renderedOpenMethod","serializedValue","stringifyAsValue","itemToStringValue","fieldStringValue","currentValue","controlRef","useValueAsRef","getStringifiedValueForForm","useStableCallback","hasSelectedValue","useIsoLayoutEffect","setFilled","nextIndex","findSelectionIndex","isItemEqualToValue","useValueChanged","clearErrors","setDirty","isSelectedValueDirty","validityData","validation","setOpen","onOpenChange","nextOpen","eventDetails","setTouched","setFocused","validationMode","handleUnmount","setMounted","onOpenChangeComplete","useOpenChangeComplete","actionsRef","setValue","onValueChange","nextValue","handleScrollArrowVisibility","maxScrollTop","getMaxScrollOffset","scroller","scrollTop","normalizeScrollOffset","shouldShowUp","shouldShowDown","floatingContext","useFloatingRootContext","click","useClick","dismiss","useDismiss","listNavigation","useListNavigation","nextActiveIndex","highlightItemOnHover","typeahead","useTypeahead","readOnly","isElementDisabled","index","createChangeEventDetails","none","typing","mergedTriggerProps","mergeProps","popupProps","FOCUSABLE_POPUP_PROPS","itemProps","useOnFirstRender","rootPropsContextValue","required","ref","useMergedRefs","inputRef","hiddenInputName","hiddenInputs","currentSerializedValue","v","form","SelectRootContext","SelectRootPropsContext","SelectFloatingContext","event","details","handleChange","nextValueLower","matchingIndex","candidate","stringifyAsLabel","itemToStringLabel","renderedLabel","matchingValue","visuallyHiddenInput","visuallyHidden"],"sources":["../../../node_modules/@base-ui/react/select/root/SelectRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { visuallyHidden, visuallyHiddenInput } from '@base-ui/utils/visuallyHidden';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { usePreviousValue } from '@base-ui/utils/usePreviousValue';\nimport { isElementDisabled } from '@base-ui/utils/isElementDisabled';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { ReactStore } from '@base-ui/utils/store';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useClick, useDismiss, useFloatingRootContext, useListNavigation, useTypeahead } from \"../../floating-ui-react/index.mjs\";\nimport { SelectFloatingContext, SelectRootContext, SelectRootPropsContext } from \"./SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useRegisterFieldControl } from \"../../internals/field-register-control/useRegisterFieldControl.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useFormContext } from \"../../internals/form-context/FormContext.mjs\";\nimport { stringifyAsLabel, stringifyAsValue } from \"../../internals/resolveValueLabel.mjs\";\nimport { defaultItemEquality, findSelectionIndex, isSelectedValueDirty } from \"../../internals/itemEquality.mjs\";\nimport { useValueChanged } from \"../../internals/useValueChanged.mjs\";\nimport { useOpenInteractionType } from \"../../utils/useOpenInteractionType.mjs\";\nimport { getMaxScrollOffset, normalizeScrollOffset } from \"../../utils/scrollEdges.mjs\";\nimport { FOCUSABLE_POPUP_PROPS } from \"../../utils/popups/index.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\nimport { NOOP } from \"../../internals/noop.mjs\";\n\n/**\n * Groups all parts of the select.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function SelectRoot(props) {\n const {\n id,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n name: nameProp,\n form,\n autoComplete,\n disabled: disabledProp = false,\n readOnly = false,\n required = false,\n modal = true,\n actionsRef,\n inputRef,\n onOpenChangeComplete,\n items,\n multiple = false,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue = defaultItemEquality,\n highlightItemOnHover = true,\n children\n } = props;\n const {\n clearErrors\n } = useFormContext();\n const {\n setDirty,\n setTouched,\n setFocused,\n validityData,\n setFilled,\n name: fieldName,\n disabled: fieldDisabled,\n validation,\n validationMode\n } = useFieldRootContext();\n const generatedId = useLabelableId({\n id\n });\n const disabled = fieldDisabled || disabledProp;\n const name = fieldName ?? nameProp;\n const [value, setValueUnwrapped] = useControlled({\n controlled: valueProp,\n default: multiple ? defaultValue ?? EMPTY_ARRAY : defaultValue,\n name: 'Select',\n state: 'value'\n });\n const [open, setOpenUnwrapped] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select',\n state: 'open'\n });\n const listRef = React.useRef([]);\n const labelsRef = React.useRef([]);\n const popupRef = React.useRef(null);\n const scrollHandlerRef = React.useRef(null);\n const scrollArrowsMountedCountRef = React.useRef(0);\n const valueRef = React.useRef(null);\n const valuesRef = React.useRef([]);\n const typingRef = React.useRef(false);\n const firstItemTextRef = React.useRef(null);\n const selectedItemTextRef = React.useRef(null);\n const selectionRef = React.useRef({\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n });\n const alignItemWithTriggerActiveRef = React.useRef(false);\n const initialValueRef = React.useRef(value);\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open);\n const {\n openMethod,\n triggerProps: interactionTypeProps\n } = useOpenInteractionType(open);\n const store = useRefWithInit(() => new ReactStore({\n id: generatedId,\n labelId: undefined,\n modal,\n multiple,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n value,\n open,\n mounted,\n transitionStatus,\n items,\n forceMount: false,\n openMethod: null,\n activeIndex: null,\n selectedIndex: null,\n popupProps: EMPTY_OBJECT,\n triggerProps: EMPTY_OBJECT,\n triggerElement: null,\n positionerElement: null,\n listElement: null,\n popupSide: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false,\n hasScrollArrows: false\n }, {\n setValue: NOOP,\n setOpen: NOOP,\n handleScrollArrowVisibility: NOOP,\n onOpenChangeComplete: NOOP,\n listRef,\n popupRef,\n scrollHandlerRef,\n scrollArrowsMountedCountRef,\n valueRef,\n valuesRef,\n labelsRef,\n typingRef,\n selectionRef,\n firstItemTextRef,\n selectedItemTextRef,\n alignItemWithTriggerActiveRef,\n initialValueRef\n }, selectors)).current;\n const activeIndex = store.useState('activeIndex');\n const selectedIndex = store.useState('selectedIndex');\n const triggerElement = store.useState('triggerElement');\n const positionerElement = store.useState('positionerElement');\n const previousOpenMethod = usePreviousValue(openMethod);\n const renderedOpenMethod = openMethod ?? previousOpenMethod;\n const serializedValue = React.useMemo(() => {\n // In multiple mode the shared input is nameless; per-value entries are submitted via\n // `hiddenInputs`. Its value is therefore irrelevant, and passing the whole array to\n // `stringifyAsValue` would invoke a user `itemToStringValue` with an array it doesn't expect.\n if (multiple) {\n return '';\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const fieldStringValue = React.useMemo(() => {\n if (multiple && Array.isArray(value)) {\n return value.map(currentValue => stringifyAsValue(currentValue, itemToStringValue));\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const controlRef = useValueAsRef(triggerElement);\n const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);\n useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled, nameProp);\n\n // Mirror the `hasSelectedValue` store selector so the Field's filled state agrees with the\n // trigger/value placeholder semantics (a value serializing to `''` counts as empty).\n const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && serializedValue !== '';\n useIsoLayoutEffect(() => {\n setFilled(hasSelectedValue);\n }, [hasSelectedValue, setFilled]);\n useIsoLayoutEffect(function syncSelectedIndex() {\n const nextIndex = findSelectionIndex(valuesRef.current, value, isItemEqualToValue, multiple);\n if (nextIndex === null) {\n selectedItemTextRef.current = null;\n }\n if (open) {\n return;\n }\n store.set('selectedIndex', nextIndex);\n }, [multiple, open, value, isItemEqualToValue, store]);\n useValueChanged(value, () => {\n clearErrors(name);\n setDirty(isSelectedValueDirty(value, validityData.initialValue, isItemEqualToValue));\n validation.change(value);\n });\n const setOpen = useStableCallback((nextOpen, eventDetails) => {\n onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setOpenUnwrapped(nextOpen);\n if (!nextOpen && (eventDetails.reason === REASONS.focusOut || eventDetails.reason === REASONS.outsidePress)) {\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n }\n });\n const handleUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeIndex: null,\n openMethod: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false\n });\n onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: !actionsRef,\n open,\n ref: popupRef,\n onComplete() {\n if (!open) {\n handleUnmount();\n }\n }\n });\n React.useImperativeHandle(actionsRef, () => ({\n unmount: handleUnmount\n }), [handleUnmount]);\n const setValue = useStableCallback((nextValue, eventDetails) => {\n onValueChange?.(nextValue, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setValueUnwrapped(nextValue);\n });\n const handleScrollArrowVisibility = useStableCallback(scroller => {\n const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);\n const shouldShowUp = scrollTop > 0;\n const shouldShowDown = scrollTop < maxScrollTop;\n store.set('scrollUpArrowVisible', shouldShowUp);\n store.set('scrollDownArrowVisible', shouldShowDown);\n });\n const floatingContext = useFloatingRootContext({\n open,\n onOpenChange: setOpen,\n elements: {\n reference: triggerElement,\n floating: positionerElement\n }\n });\n\n // `readOnly` locks the value, not the interaction: the popup can be opened and browsed so the\n // user can see the available options and which one is selected. Committing a value is blocked\n // separately in `SelectItem` and in the hidden input's autofill handler.\n const click = useClick(floatingContext, {\n enabled: !disabled,\n event: 'mousedown'\n });\n const dismiss = useDismiss(floatingContext);\n const listNavigation = useListNavigation(floatingContext, {\n enabled: !disabled,\n listRef,\n activeIndex,\n selectedIndex,\n disabledIndices: EMPTY_ARRAY,\n onNavigate(nextActiveIndex) {\n // Retain the highlight while transitioning out.\n if (nextActiveIndex === null && !open) {\n return;\n }\n store.set('activeIndex', nextActiveIndex);\n },\n focusItemOnHover: highlightItemOnHover\n });\n const typeahead = useTypeahead(floatingContext, {\n // Typeahead on an open popup only moves the highlight, so it remains available while\n // `readOnly`. The closed-trigger variant commits a value instead, so it doesn't.\n enabled: !disabled && (open || !readOnly && !multiple),\n listRef: labelsRef,\n activeIndex,\n selectedIndex,\n // Skip disabled items while matching so typeahead advances to the next selectable item\n // (a click can never select a disabled item and native `<select>` skips them too). Resolve\n // the disabled state from the element via the attribute-only `isElementDisabled` so the\n // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the\n // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.\n disabledIndices: index => isElementDisabled(listRef.current[index]),\n onMatch(index) {\n if (open) {\n store.set('activeIndex', index);\n } else {\n setValue(valuesRef.current[index], createChangeEventDetails(REASONS.none));\n }\n },\n onTyping(typing) {\n typingRef.current = typing;\n }\n });\n\n // `Select.Trigger` applies the id itself from the store, so it's deliberately not merged here.\n const mergedTriggerProps = React.useMemo(() => mergeProps(typeahead.reference, listNavigation.reference, dismiss.reference, click.reference, interactionTypeProps), [click.reference, typeahead.reference, listNavigation.reference, dismiss.reference, interactionTypeProps]);\n const popupProps = React.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation.floating, dismiss.floating), [typeahead.floating, listNavigation.floating, dismiss.floating]);\n const itemProps = listNavigation.item ?? EMPTY_OBJECT;\n store.useContextCallback('setValue', setValue);\n store.useContextCallback('setOpen', setOpen);\n store.useContextCallback('handleScrollArrowVisibility', handleScrollArrowVisibility);\n store.useContextCallback('onOpenChangeComplete', onOpenChangeComplete);\n\n // The prop bags must be in the store before the parts render. `useSyncedValues` writes in a\n // layout effect, after all descendants have rendered.\n useOnFirstRender(() => {\n store.update({\n popupProps,\n triggerProps: mergedTriggerProps\n });\n });\n store.useSyncedValues({\n id: generatedId,\n modal,\n multiple,\n value,\n open,\n mounted,\n transitionStatus,\n popupProps,\n triggerProps: mergedTriggerProps,\n items,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n openMethod: renderedOpenMethod\n });\n const rootPropsContextValue = React.useMemo(() => ({\n disabled,\n readOnly,\n required,\n multiple,\n highlightItemOnHover,\n itemProps\n }), [disabled, readOnly, required, multiple, highlightItemOnHover, itemProps]);\n const ref = useMergedRefs(inputRef, validation.inputRef);\n const hiddenInputName = multiple ? undefined : name;\n const hiddenInputs = React.useMemo(() => {\n if (!multiple || !Array.isArray(value) || !name) {\n return null;\n }\n return value.map(v => {\n const currentSerializedValue = stringifyAsValue(v, itemToStringValue);\n return /*#__PURE__*/_jsx(\"input\", {\n type: \"hidden\",\n form: form,\n name: name,\n value: currentSerializedValue,\n disabled: disabled\n }, currentSerializedValue);\n });\n }, [multiple, value, form, name, itemToStringValue, disabled]);\n return /*#__PURE__*/_jsxs(SelectRootContext.Provider, {\n value: store,\n children: [/*#__PURE__*/_jsx(SelectRootPropsContext.Provider, {\n value: rootPropsContextValue,\n children: /*#__PURE__*/_jsx(SelectFloatingContext.Provider, {\n value: floatingContext,\n children: children\n })\n }), /*#__PURE__*/_jsx(\"input\", {\n ...validation.getValidationProps(disabled, {\n onFocus() {\n // Move focus to the trigger element when the hidden input is focused.\n store.state.triggerElement?.focus({\n // Supported in Chrome from 144 (January 2026)\n focusVisible: true\n });\n },\n // Handle browser autofill.\n onChange(event) {\n // Workaround for https://github.com/react/react/issues/9023\n if (event.nativeEvent.defaultPrevented || disabled || readOnly) {\n return;\n }\n const nextValue = event.currentTarget.value;\n const details = createChangeEventDetails(REASONS.none, event.nativeEvent);\n function handleChange() {\n if (multiple) {\n // Browser autofill only writes a single scalar value.\n return;\n }\n\n // Preserve the original serialized matching, then fall back to rendered text,\n // which browsers can autofill for primitive values like\n // `value=\"US\">United States`.\n const nextValueLower = nextValue.toLowerCase();\n let matchingIndex = valuesRef.current.findIndex(candidate => stringifyAsValue(candidate, itemToStringValue).toLowerCase() === nextValueLower || stringifyAsLabel(candidate, itemToStringLabel).toLowerCase() === nextValueLower);\n if (matchingIndex === -1) {\n matchingIndex = valuesRef.current.findIndex((_, index) => {\n const renderedLabel = labelsRef.current[index];\n return renderedLabel != null && renderedLabel.toLowerCase() === nextValueLower;\n });\n }\n const matchingValue = valuesRef.current[matchingIndex];\n if (matchingValue != null) {\n // `setValue` may be canceled by `onValueChange`; rely on `useValueChanged` to\n // mark the field dirty and run validation only when the value actually changes.\n setValue(matchingValue, details);\n }\n }\n store.set('forceMount', true);\n queueMicrotask(handleChange);\n }\n }),\n id: generatedId && hiddenInputName == null ? `${generatedId}-hidden-input` : undefined,\n form: form,\n name: hiddenInputName,\n autoComplete: autoComplete,\n value: serializedValue,\n disabled: disabled,\n required: required && !(multiple && hasSelectedValue),\n readOnly: readOnly,\n ref: ref,\n style: name ? visuallyHiddenInput : visuallyHidden,\n tabIndex: -1,\n \"aria-hidden\": true,\n suppressHydrationWarning: true\n }), hiddenInputs]\n });\n}"],"ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgBG,EAAW,GAAO;CAChC,IAAM,EACJ,QACA,OAAOC,IACP,kBAAe,MACf,mBACA,MAAMC,IACN,kBAAc,IACd,kBACA,MAAMC,GACN,SACA,kBACA,UAAUC,KAAe,IACzB,cAAW,IACX,cAAW,IACX,WAAQ,IACR,eACA,cACA,yBACA,UACA,cAAW,IACX,sBACA,sBACA,wBAAqBC,IACrB,0BAAuB,IACvB,iBACEC,GACE,EACJ,oBACEC,GAAe,GACb,EACJ,cACA,gBACA,gBACA,kBACA,c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