"use client";
const require_factory = require("../factory.cjs");
const require_use_color_picker_context = require("./use-color-picker-context.cjs");
const require_use_color_picker_channel_props_context = require("./use-color-picker-channel-props-context.cjs");
const require_use_color_picker_format_context = require("./use-color-picker-format-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/color-picker/color-picker-channel-slider-thumb.tsx
var ColorPickerChannelSliderThumb = (0, react.forwardRef)((props, ref) => {
	const colorPicker = require_use_color_picker_context.useColorPickerContext();
	const channelProps = require_use_color_picker_channel_props_context.useColorPickerChannelPropsContext();
	const formatProps = require_use_color_picker_format_context.useColorPickerFormatPropsContext();
	const channelSliderProps = {
		...channelProps,
		...formatProps
	};
	const mergedProps = (0, _zag_js_react.mergeProps)(colorPicker.getChannelSliderThumbProps(channelSliderProps), props);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		ref
	});
});
ColorPickerChannelSliderThumb.displayName = "ColorPickerChannelSliderThumb";
//#endregion
exports.ColorPickerChannelSliderThumb = ColorPickerChannelSliderThumb;
