/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
const require_styles_styler = require("../../../styles/styler.cjs");
const require_utils_mergeSlotProps = require("../../../utils/mergeSlotProps.cjs");
const require_components_client_Chip_ChipBase = require("./ChipBase.cjs");
let react = require("react");
react = require_runtime.__toESM(react);
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/client/Chip/ChipLink.tsx
const ChipLink = (0, react.forwardRef)(function ChipLink({ variant = require_components_client_Chip_ChipBase.VARIANT_DEFAULT, href, disabled, slotProps, className, ...rest }, ref) {
	const classNames = (0, react.useMemo)(() => ({
		root: require_styles_styler.getStyles({
			chipLinkVariantRoot: variant,
			className: require_styles_styler.cx("uds-ring", className)
		}),
		icon: require_styles_styler.getStyles({ chipLinkVariantIcon: variant })
	}), [className, variant]);
	const mergedSlotProps = require_utils_mergeSlotProps.mergeSlotProps(slotProps, {
		startIcon: { className: classNames.icon },
		endIcon: { className: classNames.icon }
	});
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Chip_ChipBase.ChipBase, {
		as: "a",
		ref,
		disabled,
		className: classNames.root,
		slotProps: mergedSlotProps,
		tabIndex: disabled ? -1 : 0,
		...rest,
		href: disabled ? void 0 : href
	});
});
ChipLink.displayName = "ChipLink";
//#endregion
exports.ChipLink = ChipLink;
