"use client";
import { ark } from "../factory.js";
import { usePasswordInputContext } from "./use-password-input-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/password-input/password-input-indicator.tsx
var PasswordInputIndicator = forwardRef((props, ref) => {
	const passwordInput = usePasswordInputContext();
	const { fallback, children, ...rest } = props;
	const mergedProps = mergeProps(passwordInput.getIndicatorProps(), rest);
	return /* @__PURE__ */ jsx(ark.span, {
		...mergedProps,
		ref,
		children: passwordInput.visible ? children : fallback
	});
});
PasswordInputIndicator.displayName = "PasswordInputIndicator";
//#endregion
export { PasswordInputIndicator };
