"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { usePinInputContext } from "./use-pin-input-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/pin-input/pin-input-input.tsx
var splitInputProps = createSplitProps();
var PinInputInput = forwardRef((props, ref) => {
	const [inputProps, localProps] = splitInputProps(props, ["index"]);
	const mergedProps = mergeProps(usePinInputContext().getInputProps(inputProps), localProps);
	return /* @__PURE__ */ jsx(ark.input, {
		...mergedProps,
		ref
	});
});
PinInputInput.displayName = "PinInputInput";
//#endregion
export { PinInputInput };
