"use client";
import { rem } from "../../core/utils/units-converters/rem.mjs";
import { getRadius } from "../../core/utils/get-size/get-size.mjs";
import { createVarsResolver } from "../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs";
import { parseThemeColor } from "../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs";
import { getThemeColor } from "../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs";
import { rgba } from "../../core/MantineProvider/color-functions/rgba/rgba.mjs";
import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs";
import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
import { factory } from "../../core/factory/factory.mjs";
import { Box } from "../../core/Box/Box.mjs";
import Blockquote_module_default from "./Blockquote.module.mjs";
import { jsx, jsxs } from "react/jsx-runtime";
//#region packages/@mantine/core/src/components/Blockquote/Blockquote.tsx
const defaultProps = { iconSize: 48 };
const varsResolver = createVarsResolver((theme, { color, iconSize, radius, textWrap }) => {
	const darkParsed = parseThemeColor({
		color: color || theme.primaryColor,
		theme,
		colorScheme: "dark"
	});
	return { root: {
		"--bq-bg-light": rgba(parseThemeColor({
			color: color || theme.primaryColor,
			theme,
			colorScheme: "light"
		}).value, .07),
		"--bq-bg-dark": rgba(darkParsed.value, .06),
		"--bq-bd": getThemeColor(color, theme),
		"--bq-icon-size": rem(iconSize),
		"--bq-radius": getRadius(radius),
		"--bq-text-wrap": textWrap
	} };
});
const Blockquote = factory((_props) => {
	const props = useProps("Blockquote", defaultProps, _props);
	const { classNames, className, style, styles, unstyled, vars, children, icon, iconSize, cite, textWrap, attributes, ...others } = props;
	const getStyles = useStyles({
		name: "Blockquote",
		classes: Blockquote_module_default,
		props,
		className,
		style,
		classNames,
		styles,
		unstyled,
		attributes,
		vars,
		varsResolver
	});
	return /* @__PURE__ */ jsxs(Box, {
		component: "blockquote",
		...getStyles("root"),
		...others,
		children: [
			icon && /* @__PURE__ */ jsx("span", {
				...getStyles("icon"),
				children: icon
			}),
			children,
			cite && /* @__PURE__ */ jsx("cite", {
				...getStyles("cite"),
				children: cite
			})
		]
	});
});
Blockquote.classes = Blockquote_module_default;
Blockquote.varsResolver = varsResolver;
Blockquote.displayName = "@mantine/core/Blockquote";
//#endregion
export { Blockquote };

//# sourceMappingURL=Blockquote.mjs.map