"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_image_cropper_context = require("./use-image-cropper-context.cjs");
const require_use_image_cropper = require("./use-image-cropper.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/image-cropper/image-cropper-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var ImageCropperRoot = (0, react.forwardRef)((props, ref) => {
	const [useImageCropperProps, localProps] = splitRootProps(props, [
		"aspectRatio",
		"cropShape",
		"defaultFlip",
		"defaultRotation",
		"defaultZoom",
		"fixedCropArea",
		"flip",
		"id",
		"ids",
		"initialCrop",
		"maxHeight",
		"maxWidth",
		"maxZoom",
		"minHeight",
		"minWidth",
		"minZoom",
		"nudgeStep",
		"nudgeStepCtrl",
		"nudgeStepShift",
		"onCropChange",
		"onFlipChange",
		"onRotationChange",
		"onZoomChange",
		"rotation",
		"translations",
		"zoom",
		"zoomSensitivity",
		"zoomStep"
	]);
	const imageCropper = require_use_image_cropper.useImageCropper(useImageCropperProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(imageCropper.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_image_cropper_context.ImageCropperProvider, {
		value: imageCropper,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
ImageCropperRoot.displayName = "ImageCropperRoot";
//#endregion
exports.ImageCropperRoot = ImageCropperRoot;
