@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/index193.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
//#region ../../node_modules/@base-ui/react/
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/internals/getStateAttributesProps.mjs
|
|
2
2
|
function e(e, t) {
|
|
3
|
-
|
|
3
|
+
let n = {};
|
|
4
|
+
for (let r in e) {
|
|
5
|
+
let i = e[r];
|
|
6
|
+
if (t?.hasOwnProperty(r)) {
|
|
7
|
+
let e = t[r](i);
|
|
8
|
+
e != null && Object.assign(n, e);
|
|
9
|
+
continue;
|
|
10
|
+
}
|
|
11
|
+
i === !0 ? n[`data-${r.toLowerCase()}`] = "" : i && (n[`data-${r.toLowerCase()}`] = i.toString());
|
|
12
|
+
}
|
|
13
|
+
return n;
|
|
4
14
|
}
|
|
5
15
|
//#endregion
|
|
6
|
-
export { e as
|
|
16
|
+
export { e as getStateAttributesProps };
|
|
7
17
|
|
|
8
18
|
//# sourceMappingURL=index193.js.map
|
package/dist/index193.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index193.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index193.js","names":["getStateAttributesProps","props","key","state","value","customMapping","customProps"],"sources":["../../../node_modules/@base-ui/react/internals/getStateAttributesProps.mjs"],"sourcesContent":["export function getStateAttributesProps(state, customMapping) {\n const props = {};\n\n /* eslint-disable-next-line guard-for-in */\n for (const key in state) {\n const value = state[key];\n if (customMapping?.hasOwnProperty(key)) {\n const customProps = customMapping[key](value);\n if (customProps != null) {\n Object.assign(props, customProps);\n }\n continue;\n }\n if (value === true) {\n props[`data-${key.toLowerCase()}`] = '';\n } else if (value) {\n props[`data-${key.toLowerCase()}`] = value.toString();\n }\n }\n return props;\n}"],"ignoreList":[0],"mappings":";AAAA,SAAgBA,EAAwB,GAAO,GAAe;CAC5D,IAAMC,IAAQ,CAAC;CAGf,KAAK,IAAMC,KAAOC,GAAO;EACvB,IAAMC,IAAQD,EAAMD;EACpB,IAAIG,GAAe,eAAeH,CAAG,GAAG;GACtC,IAAMI,IAAcD,EAAcH,EAAI,CAACE,CAAK;GAC5C,AAAIE,KAAe,QACjB,OAAO,OAAOL,GAAOK,CAAW;GAElC;EACF;EACA,AAAIF,MAAU,KACZ,EAAM,QAAQF,EAAI,YAAY,OAAO,KAC5BE,MACT,EAAM,QAAQF,EAAI,YAAY,OAAOE,EAAM,SAAS;CAExD;CACA,OAAOH;AACT"}
|
package/dist/index194.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//#region ../../node_modules/@base-ui/react/utils/
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/utils/resolveClassName.mjs
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
return typeof e == "function" ? e(t) : e;
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
|
-
export { e as
|
|
6
|
+
export { e as resolveClassName };
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=index194.js.map
|
package/dist/index194.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index194.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/
|
|
1
|
+
{"version":3,"file":"index194.js","names":["resolveClassName","className","state"],"sources":["../../../node_modules/@base-ui/react/utils/resolveClassName.mjs"],"sourcesContent":["/**\n * If the provided className is a string, it will be returned as is.\n * Otherwise, the function will call the className function with the state as the first argument.\n *\n * @param className\n * @param state\n */\nexport function resolveClassName(className, state) {\n return typeof className === 'function' ? className(state) : className;\n}"],"ignoreList":[0],"mappings":";AAOA,SAAgBA,EAAiB,GAAW,GAAO;CACjD,OAAO,OAAOC,KAAc,aAAaA,EAAUC,CAAK,IAAID;AAC9D"}
|
package/dist/index195.js
CHANGED
|
@@ -1,89 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function n(e, t, n, r, o) {
|
|
5
|
-
if (!n && !r && !o && !e) return i(t);
|
|
6
|
-
let s = i(e);
|
|
7
|
-
return t && (s = a(s, t)), n && (s = a(s, n)), r && (s = a(s, r)), o && (s = a(s, o)), s;
|
|
8
|
-
}
|
|
9
|
-
function r(e) {
|
|
10
|
-
if (e.length === 0) return t;
|
|
11
|
-
if (e.length === 1) return i(e[0]);
|
|
12
|
-
let n = i(e[0]);
|
|
13
|
-
for (let t = 1; t < e.length; t += 1) n = a(n, e[t]);
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
function i(e) {
|
|
17
|
-
return l(e) ? { ...u(e, t) } : o(e);
|
|
18
|
-
}
|
|
19
|
-
function a(e, t) {
|
|
20
|
-
return l(t) ? u(t, e) : s(e, t);
|
|
21
|
-
}
|
|
22
|
-
function o(e) {
|
|
23
|
-
let t = { ...e };
|
|
24
|
-
for (let e in t) {
|
|
25
|
-
let n = t[e];
|
|
26
|
-
c(e, n) && (t[e] = f(n));
|
|
27
|
-
}
|
|
28
|
-
return t;
|
|
29
|
-
}
|
|
30
|
-
function s(t, n) {
|
|
31
|
-
if (!n) return t;
|
|
32
|
-
for (let r in n) {
|
|
33
|
-
let i = n[r];
|
|
34
|
-
switch (r) {
|
|
35
|
-
case "style":
|
|
36
|
-
t[r] = e(t.style, i);
|
|
37
|
-
break;
|
|
38
|
-
case "className":
|
|
39
|
-
t[r] = m(t.className, i);
|
|
40
|
-
break;
|
|
41
|
-
default: t[r] = c(r, i) ? d(t[r], i) : i;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return t;
|
|
45
|
-
}
|
|
46
|
-
function c(e, t) {
|
|
47
|
-
let n = e.charCodeAt(0), r = e.charCodeAt(1), i = e.charCodeAt(2);
|
|
48
|
-
return n === 111 && r === 110 && i >= 65 && i <= 90 && (typeof t == "function" || t === void 0);
|
|
49
|
-
}
|
|
50
|
-
function l(e) {
|
|
51
|
-
return typeof e == "function";
|
|
52
|
-
}
|
|
53
|
-
function u(e, n) {
|
|
54
|
-
return l(e) ? e(n) : e ?? t;
|
|
55
|
-
}
|
|
56
|
-
function d(e, t) {
|
|
57
|
-
return t ? e ? (...n) => {
|
|
58
|
-
let r = n[0];
|
|
59
|
-
if (h(r)) {
|
|
60
|
-
let i = r;
|
|
61
|
-
p(i);
|
|
62
|
-
let a = t(...n);
|
|
63
|
-
return i.baseUIHandlerPrevented || e?.(...n), a;
|
|
64
|
-
}
|
|
65
|
-
let i = t(...n);
|
|
66
|
-
return e?.(...n), i;
|
|
67
|
-
} : f(t) : e;
|
|
68
|
-
}
|
|
69
|
-
function f(e) {
|
|
70
|
-
return e && ((...t) => {
|
|
71
|
-
let n = t[0];
|
|
72
|
-
return h(n) && p(n), e(...t);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function p(e) {
|
|
76
|
-
return e.preventBaseUIHandler = () => {
|
|
77
|
-
e.baseUIHandlerPrevented = !0;
|
|
78
|
-
}, e;
|
|
79
|
-
}
|
|
80
|
-
function m(e, t) {
|
|
81
|
-
return t ? e ? t + " " + e : t : e;
|
|
82
|
-
}
|
|
83
|
-
function h(e) {
|
|
84
|
-
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/utils/resolveStyle.mjs
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return typeof e == "function" ? e(t) : e;
|
|
85
4
|
}
|
|
86
5
|
//#endregion
|
|
87
|
-
export {
|
|
6
|
+
export { e as resolveStyle };
|
|
88
7
|
|
|
89
8
|
//# sourceMappingURL=index195.js.map
|
package/dist/index195.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index195.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index195.js","names":["resolveStyle","style","state"],"sources":["../../../node_modules/@base-ui/react/utils/resolveStyle.mjs"],"sourcesContent":["/**\n * If the provided style is an object, it will be returned as is.\n * Otherwise, the function will call the style function with the state as the first argument.\n *\n * @param style\n * @param state\n */\nexport function resolveStyle(style, state) {\n return typeof style === 'function' ? style(state) : style;\n}"],"ignoreList":[0],"mappings":";AAOA,SAAgBA,EAAa,GAAO,GAAO;CACzC,OAAO,OAAOC,KAAU,aAAaA,EAAMC,CAAK,IAAID;AACtD"}
|
package/dist/index196.js
CHANGED
|
@@ -1,64 +1,89 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { resolveClassName as c } from "./index193.js";
|
|
9
|
-
import { resolveStyle as l } from "./index194.js";
|
|
10
|
-
import { mergeClassNames as u, mergeProps as d, mergePropsN as f } from "./index195.js";
|
|
11
|
-
import * as p from "react";
|
|
12
|
-
import { createElement as m } from "react";
|
|
13
|
-
//#region ../../node_modules/@base-ui/react/internals/useRenderElement.mjs
|
|
14
|
-
function h(e, t, n = {}) {
|
|
15
|
-
let r = t.render, i = g(t, n);
|
|
16
|
-
return n.enabled === !1 ? null : x(e, r, i, n.state ?? o);
|
|
1
|
+
import { mergeObjects as e } from "./index189.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/merge-props/mergeProps.mjs
|
|
3
|
+
var t = {};
|
|
4
|
+
function n(e, t, n, r, o) {
|
|
5
|
+
if (!n && !r && !o && !e) return i(t);
|
|
6
|
+
let s = i(e);
|
|
7
|
+
return t && (s = a(s, t)), n && (s = a(s, n)), r && (s = a(s, r)), o && (s = a(s, o)), s;
|
|
17
8
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
]) : t(w.ref, r(p), h) : t(null, null)), y ? (b !== void 0 && (w.className = u(w.className, b)), x !== void 0 && (w.style = i(w.style, x)), w) : o;
|
|
9
|
+
function r(e) {
|
|
10
|
+
if (e.length === 0) return t;
|
|
11
|
+
if (e.length === 1) return i(e[0]);
|
|
12
|
+
let n = i(e[0]);
|
|
13
|
+
for (let t = 1; t < e.length; t += 1) n = a(n, e[t]);
|
|
14
|
+
return n;
|
|
25
15
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
16
|
+
function i(e) {
|
|
17
|
+
return l(e) ? { ...u(e, t) } : o(e);
|
|
28
18
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
19
|
+
function a(e, t) {
|
|
20
|
+
return l(t) ? u(t, e) : s(e, t);
|
|
21
|
+
}
|
|
22
|
+
function o(e) {
|
|
23
|
+
let t = { ...e };
|
|
24
|
+
for (let e in t) {
|
|
25
|
+
let n = t[e];
|
|
26
|
+
c(e, n) && (t[e] = f(n));
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
29
|
+
}
|
|
30
|
+
function s(t, n) {
|
|
31
|
+
if (!n) return t;
|
|
32
|
+
for (let r in n) {
|
|
33
|
+
let i = n[r];
|
|
34
|
+
switch (r) {
|
|
35
|
+
case "style":
|
|
36
|
+
t[r] = e(t.style, i);
|
|
37
|
+
break;
|
|
38
|
+
case "className":
|
|
39
|
+
t[r] = m(t.className, i);
|
|
40
|
+
break;
|
|
41
|
+
default: t[r] = c(r, i) ? d(t[r], i) : i;
|
|
42
|
+
}
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
return t;
|
|
45
|
+
}
|
|
46
|
+
function c(e, t) {
|
|
47
|
+
let n = e.charCodeAt(0), r = e.charCodeAt(1), i = e.charCodeAt(2);
|
|
48
|
+
return n === 111 && r === 110 && i >= 65 && i <= 90 && (typeof t == "function" || t === void 0);
|
|
49
|
+
}
|
|
50
|
+
function l(e) {
|
|
51
|
+
return typeof e == "function";
|
|
52
|
+
}
|
|
53
|
+
function u(e, n) {
|
|
54
|
+
return l(e) ? e(n) : e ?? t;
|
|
55
|
+
}
|
|
56
|
+
function d(e, t) {
|
|
57
|
+
return t ? e ? (...n) => {
|
|
58
|
+
let r = n[0];
|
|
59
|
+
if (h(r)) {
|
|
60
|
+
let i = r;
|
|
61
|
+
p(i);
|
|
62
|
+
let a = t(...n);
|
|
63
|
+
return i.baseUIHandlerPrevented || e?.(...n), a;
|
|
64
|
+
}
|
|
65
|
+
let i = t(...n);
|
|
66
|
+
return e?.(...n), i;
|
|
67
|
+
} : f(t) : e;
|
|
68
|
+
}
|
|
69
|
+
function f(e) {
|
|
70
|
+
return e && ((...t) => {
|
|
71
|
+
let n = t[0];
|
|
72
|
+
return h(n) && p(n), e(...t);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function p(e) {
|
|
76
|
+
return e.preventBaseUIHandler = () => {
|
|
77
|
+
e.baseUIHandlerPrevented = !0;
|
|
78
|
+
}, e;
|
|
45
79
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
t.length !== 0 && y.test(t) && b.test(t) && a(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
80
|
+
function m(e, t) {
|
|
81
|
+
return t ? e ? t + " " + e : t : e;
|
|
49
82
|
}
|
|
50
|
-
function
|
|
51
|
-
return e
|
|
52
|
-
type: "button",
|
|
53
|
-
...t,
|
|
54
|
-
key: t.key
|
|
55
|
-
}) : e === "img" ? /*#__PURE__*/ m("img", {
|
|
56
|
-
alt: "",
|
|
57
|
-
...t,
|
|
58
|
-
key: t.key
|
|
59
|
-
}) : /*#__PURE__*/ p.createElement(e, t);
|
|
83
|
+
function h(e) {
|
|
84
|
+
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
60
85
|
}
|
|
61
86
|
//#endregion
|
|
62
|
-
export {
|
|
87
|
+
export { p as makeEventPreventable, m as mergeClassNames, n as mergeProps, r as mergePropsN };
|
|
63
88
|
|
|
64
89
|
//# sourceMappingURL=index196.js.map
|
package/dist/index196.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index196.js","names":["React","_formatErrorMessage"],"sources":["../../../node_modules/@base-ui/react/internals/useRenderElement.mjs"],"sourcesContent":["import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.mjs\";\nimport { resolveClassName } from \"../utils/resolveClassName.mjs\";\nimport { resolveStyle } from \"../utils/resolveStyle.mjs\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.mjs\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n const renderProp = componentProps.render;\n const outProps = useRenderElementProps(componentProps, params);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params = {}) {\n const {\n className: classNameProp,\n style: styleProp,\n render: renderProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n // Called only to keep the hook order stable when disabled; the merged ref is unused.\n void useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/react/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/react/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n let newElement = render;\n // Workaround for https://github.com/react/react/issues/32392\n // This works because the toArray() logic unwrap lazy element type in\n // https://github.com/react/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\n if (newElement?.$$typeof === REACT_LAZY_TYPE) {\n const children = React.Children.toArray(render);\n newElement = children[0];\n }\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(newElement)) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(newElement, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAmBA,SAAgB,EAAiB,GAAS,GAAgB,IAAS,CAAC,GAAG;CACrE,IAAM,IAAa,EAAe,QAC5B,IAAW,EAAsB,GAAgB,CAAM;CAK7D,OAJI,EAAO,YAAY,KACd,OAGF,EAAmB,GAAS,GAAY,GADjC,EAAO,SAAS,CACgC;AAChE;AAKA,SAAS,EAAsB,GAAgB,IAAS,CAAC,GAAG;CAC1D,IAAM,EACJ,WAAW,GACX,OAAO,GACP,QAAQ,MACN,GACE,EACJ,WA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AM;GAAC;GAAkH;GAA+H;EAA2C,CAAC,CAAC,KAAK,IAAI,CAAC;EAG7T,OAAoB,gBAAM,aAAa,GAAY,CAAW;CAChE;CACA,IAAI,KACE,OAAO,KAAY,UACrB,OAAO,EAAU,GAAS,CAAK;CAKnC,MAAU,MAAA,QAAA,IAAA,aAA+B,eAAwEC,EAAoB,CAAC,IAA9E,sDAA+E;AACzI;AACA,SAAS,EAAmC,GAAU;CACpD,IAAM,IAAe,EAAS;CAC1B,EAAa,WAAW,KAGvB,EAA6B,KAAK,CAAY,KAG9C,EAA4B,KAAK,CAAY,KAGlD,EAAK,mDAAmD,EAAa,2CAA2C,qFAAqF,yGAAyG,0FAA0F,2FAA2F,2CAA2C;AAChhB;AACA,SAAS,EAAU,GAAK,GAAO;CAe7B,OAdI,MAAQ,WACU,gBAAe,UAAU;EAC3C,MAAM;EACN,GAAG;EACH,KAAK,EAAM;CACb,CAAC,IAEC,MAAQ,QACU,gBAAe,OAAO;EACxC,KAAK;EACL,GAAG;EACH,KAAK,EAAM;CACb,CAAC,IAEiB,gBAAM,cAAc,GAAK,CAAK;AACpD"}
|
|
1
|
+
{"version":3,"file":"index196.js","names":["EMPTY_PROPS","mergeProps","c","d","e","a","createInitialMergedProps","b","merged","mergeInto","mergePropsN","props","i","isPropsGetter","inputProps","resolvePropsGetter","copyInitialProps","mutablyMergeInto","copiedProps","propName","propValue","isEventHandler","wrapEventHandler","externalProps","mergedProps","externalPropValue","mergeObjects","mergeClassNames","mergeEventHandlers","code0","key","code1","code2","value","previousProps","theirHandler","ourHandler","args","event","isSyntheticEvent","baseUIEvent","result","handler","makeEventPreventable","theirClassName","ourClassName"],"sources":["../../../node_modules/@base-ui/react/merge-props/mergeProps.mjs"],"sourcesContent":["import { mergeObjects } from '@base-ui/utils/mergeObjects';\nconst EMPTY_PROPS = {};\n\n/* eslint-disable id-denylist */\n/**\n * Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite\n * the conflicting ones from others. This doesn't apply to event handlers, `className` and `style` props.\n *\n * Event handlers are merged and called in right-to-left order (rightmost handler executes first, leftmost last).\n * For React synthetic events, the rightmost handler can prevent prior (left-positioned) handlers from executing\n * by calling `event.preventBaseUIHandler()`. For non-synthetic events (custom events with primitive/object values),\n * all handlers always execute without prevention capability.\n *\n * The `className` prop is merged by concatenating classes in right-to-left order (rightmost class appears first in the string).\n * The `style` prop is merged with rightmost styles overwriting the prior ones.\n *\n * Props can either be provided as objects or as functions that take the previous props as an argument.\n * The function will receive the merged props up to that point (going from left to right):\n * so in the case of `(obj1, obj2, fn, obj3)`, `fn` will receive the merged props of `obj1` and `obj2`.\n * The function is responsible for chaining event handlers if needed (that is, we don't run the merge logic).\n *\n * Event handlers returned by the functions are not automatically prevented when `preventBaseUIHandler` is called.\n * They must check `event.baseUIHandlerPrevented` themselves and bail out if it's true.\n *\n * @important **`ref` is not merged.**\n * @param a Props object to merge.\n * @param b Props object to merge. The function will overwrite conflicting props from `a`.\n * @param c Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param d Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param e Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @returns The merged props.\n * @public\n */\n\nexport function mergeProps(a, b, c, d, e) {\n if (!c && !d && !e && !a) {\n return createInitialMergedProps(b);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(a);\n if (b) {\n merged = mergeInto(merged, b);\n }\n if (c) {\n merged = mergeInto(merged, c);\n }\n if (d) {\n merged = mergeInto(merged, d);\n }\n if (e) {\n merged = mergeInto(merged, e);\n }\n return merged;\n}\n/* eslint-enable id-denylist */\n\n/**\n * Merges an arbitrary number of React props using the same logic as {@link mergeProps}.\n * This function accepts an array of props instead of individual arguments.\n *\n * This has slightly lower performance than {@link mergeProps} due to accepting an array\n * instead of a fixed number of arguments. Prefer {@link mergeProps} when merging 5 or\n * fewer prop sets for better performance.\n *\n * @param props Array of props to merge.\n * @returns The merged props.\n * @see mergeProps\n * @public\n */\nexport function mergePropsN(props) {\n if (props.length === 0) {\n return EMPTY_PROPS;\n }\n if (props.length === 1) {\n return createInitialMergedProps(props[0]);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(props[0]);\n for (let i = 1; i < props.length; i += 1) {\n merged = mergeInto(merged, props[i]);\n }\n return merged;\n}\nfunction createInitialMergedProps(inputProps) {\n if (isPropsGetter(inputProps)) {\n // Getter-returned handlers intentionally keep their existing semantics.\n return {\n ...resolvePropsGetter(inputProps, EMPTY_PROPS)\n };\n }\n return copyInitialProps(inputProps);\n}\nfunction mergeInto(merged, inputProps) {\n if (isPropsGetter(inputProps)) {\n return resolvePropsGetter(inputProps, merged);\n }\n return mutablyMergeInto(merged, inputProps);\n}\nfunction copyInitialProps(inputProps) {\n const copiedProps = {\n ...inputProps\n };\n\n // `copiedProps` is our fresh own-object copy, so iterating with `for...in` is safe here.\n // eslint-disable-next-line guard-for-in\n for (const propName in copiedProps) {\n const propValue = copiedProps[propName];\n if (isEventHandler(propName, propValue)) {\n copiedProps[propName] = wrapEventHandler(propValue);\n }\n }\n return copiedProps;\n}\n\n/**\n * Merges two sets of props. In case of conflicts, the external props take precedence.\n */\nfunction mutablyMergeInto(mergedProps, externalProps) {\n if (!externalProps) {\n return mergedProps;\n }\n\n // eslint-disable-next-line guard-for-in\n for (const propName in externalProps) {\n const externalPropValue = externalProps[propName];\n switch (propName) {\n case 'style':\n {\n mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);\n break;\n }\n case 'className':\n {\n mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);\n break;\n }\n default:\n {\n if (isEventHandler(propName, externalPropValue)) {\n mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);\n } else {\n mergedProps[propName] = externalPropValue;\n }\n }\n }\n }\n return mergedProps;\n}\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const code0 = key.charCodeAt(0);\n const code1 = key.charCodeAt(1);\n const code2 = key.charCodeAt(2);\n return code0 === 111 /* o */ && code1 === 110 /* n */ && code2 >= 65 /* A */ && code2 <= 90 /* Z */ && (typeof value === 'function' || typeof value === 'undefined');\n}\nfunction isPropsGetter(inputProps) {\n return typeof inputProps === 'function';\n}\nfunction resolvePropsGetter(inputProps, previousProps) {\n if (isPropsGetter(inputProps)) {\n return inputProps(previousProps);\n }\n return inputProps ?? EMPTY_PROPS;\n}\nfunction mergeEventHandlers(ourHandler, theirHandler) {\n if (!theirHandler) {\n return ourHandler;\n }\n if (!ourHandler) {\n return wrapEventHandler(theirHandler);\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n const baseUIEvent = event;\n makeEventPreventable(baseUIEvent);\n const result = theirHandler(...args);\n if (!baseUIEvent.baseUIHandlerPrevented) {\n ourHandler?.(...args);\n }\n return result;\n }\n const result = theirHandler(...args);\n ourHandler?.(...args);\n return result;\n };\n}\nfunction wrapEventHandler(handler) {\n if (!handler) {\n return handler;\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n makeEventPreventable(event);\n }\n return handler(...args);\n };\n}\nexport function makeEventPreventable(event) {\n event.preventBaseUIHandler = () => {\n event.baseUIHandlerPrevented = true;\n };\n return event;\n}\nexport function mergeClassNames(ourClassName, theirClassName) {\n if (theirClassName) {\n if (ourClassName) {\n // eslint-disable-next-line prefer-template\n return theirClassName + ' ' + ourClassName;\n }\n return theirClassName;\n }\n return ourClassName;\n}\nfunction isSyntheticEvent(event) {\n return event != null && typeof event === 'object' && 'nativeEvent' in event;\n}"],"ignoreList":[0],"mappings":";;AACA,IAAMA,IAAc,CAAC;AAiCrB,SAAgBC,EAAW,GAAG,GAAG,GAAG,GAAG,GAAG;CACxC,IAAI,CAACC,KAAK,CAACC,KAAK,CAACC,KAAK,CAACC,GACrB,OAAOC,EAAyBC,CAAC;CAInC,IAAIC,IAASF,EAAyBD,CAAC;CAavC,OAZIE,MACF,IAASE,EAAUD,GAAQD,CAAC,IAE1BL,MACF,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,KAAU,cAAlCA,KAA8C,iBAAiBA;AACxE"}
|
package/dist/index197.js
CHANGED
|
@@ -1,10 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import e from "./index183.js";
|
|
2
|
+
import { useMergedRefs as t, useMergedRefsN as n } from "./index186.js";
|
|
3
|
+
import { getReactElementRef as r } from "./index188.js";
|
|
4
|
+
import { mergeObjects as i } from "./index189.js";
|
|
5
|
+
import { warn as a } from "./index191.js";
|
|
6
|
+
import { EMPTY_OBJECT as o } from "./index192.js";
|
|
7
|
+
import { getStateAttributesProps as s } from "./index193.js";
|
|
8
|
+
import { resolveClassName as c } from "./index194.js";
|
|
9
|
+
import { resolveStyle as l } from "./index195.js";
|
|
10
|
+
import { mergeClassNames as u, mergeProps as d, mergePropsN as f } from "./index196.js";
|
|
11
|
+
import * as p from "react";
|
|
12
|
+
import { createElement as m } from "react";
|
|
13
|
+
//#region ../../node_modules/@base-ui/react/internals/useRenderElement.mjs
|
|
14
|
+
function h(e, t, n = {}) {
|
|
15
|
+
let r = t.render;
|
|
16
|
+
n.enabled !== !1 && (r = x(r));
|
|
17
|
+
let i = g(t, n, r);
|
|
18
|
+
if (n.enabled === !1) return null;
|
|
19
|
+
let a = n.state ?? o;
|
|
20
|
+
return S(e, r, i, a);
|
|
21
|
+
}
|
|
22
|
+
function g(e, a, d) {
|
|
23
|
+
let { className: f, style: p } = e, { state: m = o, ref: h, props: g, stateAttributesMapping: v, enabled: y = !0 } = a, b = y ? c(f, m) : void 0, x = y ? l(p, m) : void 0, S = y ? s(m, v) : o, C = y && g ? _(g) : void 0, w = y ? i(S, C) ?? {} : o;
|
|
24
|
+
return typeof document < "u" && (y ? w.ref = Array.isArray(h) ? n([
|
|
25
|
+
w.ref,
|
|
26
|
+
r(d),
|
|
27
|
+
...h
|
|
28
|
+
]) : t(w.ref, r(d), h) : t(null, null)), y ? (b !== void 0 && (w.className = u(w.className, b)), x !== void 0 && (w.style = i(w.style, x)), w) : o;
|
|
29
|
+
}
|
|
30
|
+
function _(e) {
|
|
31
|
+
return Array.isArray(e) ? f(e) : d(void 0, e);
|
|
32
|
+
}
|
|
33
|
+
var v = Symbol.for("react.lazy"), y = /^[A-Z][A-Za-z0-9$]*$/, b = /[a-z]/;
|
|
34
|
+
function x(e) {
|
|
35
|
+
if (e?.$$typeof !== v) return e;
|
|
36
|
+
let t = p.Children.toArray(e)[0];
|
|
37
|
+
return /*#__PURE__*/ p.isValidElement(t) ? t : e;
|
|
38
|
+
}
|
|
39
|
+
function S(t, n, r, i) {
|
|
40
|
+
if (n) {
|
|
41
|
+
if (typeof n == "function") return process.env.NODE_ENV !== "production" && C(n), n(r, i);
|
|
42
|
+
let e = d(r, n.props);
|
|
43
|
+
if (e.ref = r.ref, process.env.NODE_ENV !== "production" && !/*#__PURE__*/ p.isValidElement(n)) throw Error([
|
|
44
|
+
"Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
|
|
45
|
+
"A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
|
|
46
|
+
"https://base-ui.com/r/invalid-render-prop"
|
|
47
|
+
].join("\n"));
|
|
48
|
+
return /*#__PURE__*/ p.cloneElement(n, e);
|
|
49
|
+
}
|
|
50
|
+
if (t && typeof t == "string") return w(t, r);
|
|
51
|
+
throw Error(process.env.NODE_ENV === "production" ? e(8) : "Base UI: Render element or function are not defined.");
|
|
52
|
+
}
|
|
53
|
+
function C(e) {
|
|
54
|
+
let t = e.name;
|
|
55
|
+
t.length !== 0 && y.test(t) && b.test(t) && a(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
56
|
+
}
|
|
57
|
+
function w(e, t) {
|
|
58
|
+
return e === "button" ? /*#__PURE__*/ m("button", {
|
|
59
|
+
type: "button",
|
|
60
|
+
...t,
|
|
61
|
+
key: t.key
|
|
62
|
+
}) : e === "img" ? /*#__PURE__*/ m("img", {
|
|
63
|
+
alt: "",
|
|
64
|
+
...t,
|
|
65
|
+
key: t.key
|
|
66
|
+
}) : /*#__PURE__*/ p.createElement(e, t);
|
|
67
|
+
}
|
|
7
68
|
//#endregion
|
|
8
|
-
export {
|
|
69
|
+
export { h as useRenderElement };
|
|
9
70
|
|
|
10
71
|
//# sourceMappingURL=index197.js.map
|
package/dist/index197.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index197.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs"],"sourcesContent":["export let TransitionStatusDataAttributes = /*#__PURE__*/function (TransitionStatusDataAttributes) {\n /**\n * Present when the component begins animating in.\n */\n TransitionStatusDataAttributes[\"startingStyle\"] = \"data-starting-style\";\n /**\n * Present when the component is animating out.\n */\n TransitionStatusDataAttributes[\"endingStyle\"] = \"data-ending-style\";\n return TransitionStatusDataAttributes;\n}({});\nconst STARTING_HOOK = {\n 'data-starting-style': ''\n};\nconst ENDING_HOOK = {\n 'data-ending-style': ''\n};\nexport const transitionStatusMapping = {\n transitionStatus(value) {\n if (value === 'starting') {\n return STARTING_HOOK;\n }\n if (value === 'ending') {\n return ENDING_HOOK;\n }\n return null;\n }\n};"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAA8C,uBAAU,GAAgC;CASjG,OALA,EAA+B,gBAAmB,uBAIlD,EAA+B,cAAiB,qBACzC;AACT,EAAE,CAAC,CAAC,GACE,IAAgB,EACpB,uBAAuB,GACzB,GACM,IAAc,EAClB,qBAAqB,GACvB,GACa,IAA0B,EACrC,iBAAiB,GAAO;CAOtB,OANI,MAAU,aACL,IAEL,MAAU,WACL,IAEF;AACT,EACF"}
|
|
1
|
+
{"version":3,"file":"index197.js","names":["React","_formatErrorMessage","formatErrorMessage","React$1","useRenderElement","renderProp","componentProps","params","unwrapLazyRenderProp","outProps","useRenderElementProps","state","EMPTY_OBJECT","evaluateRenderProp","element","classNameProp","styleProp","className","enabled","resolveClassName","style","resolveStyle","stateProps","getStateAttributesProps","stateAttributesMapping","resolvedProps","props","resolveRenderFunctionProps","mergeObjects","ref","useMergedRefsN","getReactElementRef","useMergedRefs","mergeClassNames","mergePropsN","mergeProps","REACT_LAZY_TYPE","COMPONENT_IDENTIFIER_PATTERN","LOWERCASE_CHARACTER_PATTERN","render","unwrapped","warnIfRenderPropLooksLikeComponent","mergedProps","renderTag","functionName","renderFn","warn","Tag"],"sources":["../../../node_modules/@base-ui/react/internals/useRenderElement.mjs"],"sourcesContent":["import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.mjs\";\nimport { resolveClassName } from \"../utils/resolveClassName.mjs\";\nimport { resolveStyle } from \"../utils/resolveStyle.mjs\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.mjs\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n let renderProp = componentProps.render;\n if (params.enabled !== false) {\n // A pending lazy element suspends when unwrapped, so leave it wrapped while disabled.\n renderProp = unwrapLazyRenderProp(renderProp);\n }\n const outProps = useRenderElementProps(componentProps, params, renderProp);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params, renderProp) {\n const {\n className: classNameProp,\n style: styleProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n // Called only to keep the hook order stable when disabled; the merged ref is unused.\n void useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/react/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/react/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\n\n// Workaround for https://github.com/react/react/issues/32392\n// The Flight client hands over a lazy wrapper in place of a render element created in a\n// Server Component. The wrapper exposes no `.props` or `.ref`, so it must be unwrapped\n// before those are read. This works because the toArray() logic unwraps the lazy\n// element type in\n// https://github.com/react/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\nfunction unwrapLazyRenderProp(render) {\n // `$$typeof` is a React internal, absent from the public element types.\n if (render?.$$typeof !== REACT_LAZY_TYPE) {\n return render;\n }\n // Keep the wrapper unless it unwraps to an element, so an invalid render prop is still\n // reported as one instead of silently falling back to the default element.\n const unwrapped = React.Children.toArray(render)[0];\n return /*#__PURE__*/React.isValidElement(unwrapped) ? unwrapped : render;\n}\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(render)) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(render, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}"],"ignoreList":[0],"mappings":";;;;;;;;;;;;;AAmBA,SAAgBI,EAAiB,GAAS,GAAgB,IAAS,CAAC,GAAG;CACrE,IAAIC,IAAaC,EAAe;CAChC,AAAIC,EAAO,YAAY,OAErB,IAAaC,EAAqBH,CAAU;CAE9C,IAAMI,IAAWC,EAAsBJ,GAAgBC,GAAQF,CAAU;CACzE,IAAIE,EAAO,YAAY,IACrB,OAAO;CAET,IAAMI,IAAQJ,EAAO,SAASK;CAC9B,OAAOC,EAAmBC,GAAST,GAAYI,GAAUE,CAAK;AAChE;AAKA,SAASD,EAAsB,GAAgB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D,IAAI0B,GAAQ;EACV,IAAI,OAAOA,KAAW,YAIpB,OAHA,QAAA,IAAA,aAA6B,gBAC3BE,EAAmCF,CAAM,GAEpCA,EAAOb,GAAOf,CAAK;EAE5B,IAAM+B,IAAcP,EAAWT,GAAOa,EAAO,KAAK;EASlD,IARA,EAAY,MAAMb,EAAM,KAQxB,QAAA,IAAA,aAA6B,gBACvB,CAAe,gBAAM,eAAea,CAAM,GAG5C,MAAU,MAAM;GAAC;GAAkH;GAA+H;EAA2C,CAAC,CAAC,KAAK,IAAI,CAAC;EAG7T,OAAoB,gBAAM,aAAaA,GAAQG,CAAW;CAC5D;CACA,IAAI5B,KACE,OAAOA,KAAY,UACrB,OAAO6B,EAAU7B,GAASY,CAAK;CAKnC,MAAU,MAAA,QAAA,IAAA,aAA+B,eAAwEzB,EAAoB,CAAC,IAA9E,sDAA+E;AACzI;AACA,SAASwC,EAAmC,GAAU;CACpD,IAAMG,IAAeC,EAAS;CAC9B,AAAID,EAAa,WAAW,KAGvBP,EAA6B,KAAKO,CAAY,KAG9CN,EAA4B,KAAKM,CAAY,KAGlDE,EAAK,mDAAmDF,EAAa,2CAA2C,qFAAqF,yGAAyG,0FAA0F,2FAA2F,2CAA2C;AAChhB;AACA,SAASD,EAAU,GAAK,GAAO;CAe7B,OAdII,MAAQ,WACU,gBAAe,UAAU;EAC3C,MAAM;EACN,GAAGrB;EACH,KAAKA,EAAM;CACb,CAAC,IAECqB,MAAQ,QACU,gBAAe,OAAO;EACxC,KAAK;EACL,GAAGrB;EACH,KAAKA,EAAM;CACb,CAAC,IAEiB,gBAAM,cAAcqB,GAAKrB,CAAK;AACpD"}
|
package/dist/index198.js
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return t.open = "data-open", t.closed = "data-closed", t[t.startingStyle = e.startingStyle] = "startingStyle", t[t.endingStyle = e.endingStyle] = "endingStyle", t.anchorHidden = "data-anchor-hidden", t.side = "data-side", t.align = "data-align", t;
|
|
4
|
-
})({});
|
|
5
|
-
var n = { "data-popup-open": "" }, r = {
|
|
6
|
-
"data-popup-open": "",
|
|
7
|
-
"data-pressed": ""
|
|
8
|
-
}, i = { "data-open": "" }, a = { "data-closed": "" }, o = { "data-anchor-hidden": "" }, s = { open(e) {
|
|
9
|
-
return e ? n : null;
|
|
10
|
-
} }, c = { open(e) {
|
|
11
|
-
return e ? r : null;
|
|
12
|
-
} }, l = {
|
|
13
|
-
open(e) {
|
|
14
|
-
return e ? i : a;
|
|
15
|
-
},
|
|
16
|
-
anchorHidden(e) {
|
|
17
|
-
return e ? o : null;
|
|
18
|
-
}
|
|
19
|
-
}, u = {
|
|
20
|
-
...l,
|
|
21
|
-
...t
|
|
22
|
-
};
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/internals/TransitionStatusDataAttributes.mjs
|
|
2
|
+
var e = "data-starting-style", t = "data-ending-style";
|
|
23
3
|
//#endregion
|
|
24
|
-
export {
|
|
4
|
+
export { t as endingStyle, e as startingStyle };
|
|
25
5
|
|
|
26
6
|
//# sourceMappingURL=index198.js.map
|
package/dist/index198.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index198.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index198.js","names":["startingStyle","endingStyle"],"sources":["../../../node_modules/@base-ui/react/internals/TransitionStatusDataAttributes.mjs"],"sourcesContent":["/**\n * Present when the component begins animating in.\n */\nexport const startingStyle = 'data-starting-style';\n\n/**\n * Present when the component is animating out.\n */\nexport const endingStyle = 'data-ending-style';"],"ignoreList":[0],"mappings":";AAGA,IAAaA,IAAgB,uBAKhBC,IAAc"}
|
package/dist/index199.js
CHANGED
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs
|
|
7
|
-
var i = /*#__PURE__*/ r.forwardRef(function(r, i) {
|
|
8
|
-
let { render: a, className: o, style: s, forceRender: c = !1, ...l } = r, u = e(), d = u.useState("open"), f = u.useState("nested"), p = u.useState("mounted"), m = {
|
|
9
|
-
open: d,
|
|
10
|
-
transitionStatus: u.useState("transitionStatus")
|
|
11
|
-
};
|
|
12
|
-
return t("div", r, {
|
|
13
|
-
state: m,
|
|
14
|
-
ref: [u.context.backdropRef, i],
|
|
15
|
-
stateAttributesMapping: n,
|
|
16
|
-
props: [{
|
|
17
|
-
role: "presentation",
|
|
18
|
-
hidden: !p,
|
|
19
|
-
style: {
|
|
20
|
-
userSelect: "none",
|
|
21
|
-
WebkitUserSelect: "none"
|
|
22
|
-
}
|
|
23
|
-
}, l],
|
|
24
|
-
enabled: c || !f
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
process.env.NODE_ENV !== "production" && (i.displayName = "DialogBackdrop");
|
|
1
|
+
import { endingStyle as e, startingStyle as t } from "./index198.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs
|
|
3
|
+
var n = { [t]: "" }, r = { [e]: "" }, i = { transitionStatus(e) {
|
|
4
|
+
return e === "starting" ? n : e === "ending" ? r : null;
|
|
5
|
+
} };
|
|
28
6
|
//#endregion
|
|
29
|
-
export { i as
|
|
7
|
+
export { i as transitionStatusMapping };
|
|
30
8
|
|
|
31
9
|
//# sourceMappingURL=index199.js.map
|
package/dist/index199.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index199.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index199.js","names":["TransitionStatusDataAttributes.startingStyle","TransitionStatusDataAttributes.endingStyle","STARTING_HOOK","startingStyle","ENDING_HOOK","endingStyle","transitionStatusMapping","value"],"sources":["../../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs"],"sourcesContent":["import * as TransitionStatusDataAttributes from \"./TransitionStatusDataAttributes.mjs\";\nexport { TransitionStatusDataAttributes };\nconst STARTING_HOOK = {\n [TransitionStatusDataAttributes.startingStyle]: ''\n};\nconst ENDING_HOOK = {\n [TransitionStatusDataAttributes.endingStyle]: ''\n};\nexport const transitionStatusMapping = {\n transitionStatus(value) {\n if (value === 'starting') {\n return STARTING_HOOK;\n }\n if (value === 'ending') {\n return ENDING_HOOK;\n }\n return null;\n }\n};"],"ignoreList":[0],"mappings":";;AAEA,IAAME,IAAgB,GACnBF,IAA+C,GAClD,GACMI,IAAc,GACjBH,IAA6C,GAChD,GACaK,IAA0B,EACrC,iBAAiB,GAAO;CAOtB,OANIC,MAAU,aACLL,IAELK,MAAU,WACLH,IAEF;AACT,EACF"}
|
package/dist/index20.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index20.js","names":[],"sources":["../../../node_modules/@date-fns/tz/date/index.js"],"sourcesContent":["import { tzName } from \"../tzName/index.js\";\nimport { TZDateMini } from \"./mini.js\";\nexport class TZDate extends TZDateMini {\n //#region static\n\n static tz(tz, ...args) {\n return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);\n }\n\n //#endregion\n\n //#region representation\n\n toISOString() {\n const [sign, hours, minutes] = this.tzComponents();\n const tz = `${sign}${hours}:${minutes}`;\n return this.internal.toISOString().slice(0, -1) + tz;\n }\n toString() {\n // \"Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)\";\n return `${this.toDateString()} ${this.toTimeString()}`;\n }\n toDateString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const [day, date, month, year] = this.internal.toUTCString().split(\" \");\n // \"Tue Aug 13 2024\"\n return `${day?.slice(0, -1) /* Remove \",\" */} ${month} ${date} ${year}`;\n }\n toTimeString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const time = this.internal.toUTCString().split(\" \")[4];\n const [sign, hours, minutes] = this.tzComponents();\n // \"07:42:23 GMT+0800 (Singapore Standard Time)\"\n return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;\n }\n toLocaleString(locales, options) {\n return Date.prototype.toLocaleString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleDateString(locales, options) {\n return Date.prototype.toLocaleDateString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleTimeString(locales, options) {\n return Date.prototype.toLocaleTimeString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n\n //#endregion\n\n //#region private\n\n tzComponents() {\n const offset = this.getTimezoneOffset();\n const sign = offset > 0 ? \"-\" : \"+\";\n const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, \"0\");\n const minutes = String(Math.abs(offset) % 60).padStart(2, \"0\");\n return [sign, hours, minutes];\n }\n\n //#endregion\n\n withTimeZone(timeZone) {\n return new TZDate(+this, timeZone);\n }\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDate(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}"],"
|
|
1
|
+
{"version":3,"file":"index20.js","names":["TZDate","TZDateMini","args","tz","sign","hours","minutes","day","date","month","year","time","tzName","locales","options","offset","timeZone"],"sources":["../../../node_modules/@date-fns/tz/date/index.js"],"sourcesContent":["import { tzName } from \"../tzName/index.js\";\nimport { TZDateMini } from \"./mini.js\";\nexport class TZDate extends TZDateMini {\n //#region static\n\n static tz(tz, ...args) {\n return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);\n }\n\n //#endregion\n\n //#region representation\n\n toISOString() {\n const [sign, hours, minutes] = this.tzComponents();\n const tz = `${sign}${hours}:${minutes}`;\n return this.internal.toISOString().slice(0, -1) + tz;\n }\n toString() {\n // \"Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)\";\n return `${this.toDateString()} ${this.toTimeString()}`;\n }\n toDateString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const [day, date, month, year] = this.internal.toUTCString().split(\" \");\n // \"Tue Aug 13 2024\"\n return `${day?.slice(0, -1) /* Remove \",\" */} ${month} ${date} ${year}`;\n }\n toTimeString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const time = this.internal.toUTCString().split(\" \")[4];\n const [sign, hours, minutes] = this.tzComponents();\n // \"07:42:23 GMT+0800 (Singapore Standard Time)\"\n return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;\n }\n toLocaleString(locales, options) {\n return Date.prototype.toLocaleString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleDateString(locales, options) {\n return Date.prototype.toLocaleDateString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleTimeString(locales, options) {\n return Date.prototype.toLocaleTimeString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n\n //#endregion\n\n //#region private\n\n tzComponents() {\n const offset = this.getTimezoneOffset();\n const sign = offset > 0 ? \"-\" : \"+\";\n const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, \"0\");\n const minutes = String(Math.abs(offset) % 60).padStart(2, \"0\");\n return [sign, hours, minutes];\n }\n\n //#endregion\n\n withTimeZone(timeZone) {\n return new TZDate(+this, timeZone);\n }\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDate(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}"],"ignoreList":[0],"mappings":";;;AAEA,IAAaA,IAAb,MAAaA,UAAeC,EAAW;CAGrC,OAAO,GAAG,GAAI,GAAGC,GAAM;EACrB,OAAOA,EAAK,SAAS,IAAIF,EAAO,GAAGE,GAAMC,CAAE,IAAI,IAAIH,EAAO,KAAK,IAAI,GAAGG,CAAE;CAC1E;CAMA,cAAc;EACZ,IAAM,CAACC,GA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