"use client";
const require_factory = require("../factory.cjs");
const require_use_checkbox_context = require("./use-checkbox-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/checkbox/checkbox-indicator.tsx
var CheckboxIndicator = (0, react.forwardRef)((props, ref) => {
	const { indeterminate, ...rest } = props;
	const checkbox = require_use_checkbox_context.useCheckboxContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(checkbox.getIndicatorProps(), rest);
	const isVisible = indeterminate ? checkbox.indeterminate : checkbox.checked;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		hidden: !isVisible,
		ref
	});
});
CheckboxIndicator.displayName = "CheckboxIndicator";
//#endregion
exports.CheckboxIndicator = CheckboxIndicator;
