"use client";
const require_get_size = require("../../../core/utils/get-size/get-size.cjs");
const require_create_vars_resolver = require("../../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_use_styles = require("../../../core/styles-api/use-styles/use-styles.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_ActionIcon_module = require("../ActionIcon.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.tsx
const varsResolver = require_create_vars_resolver.createVarsResolver((theme, { radius, color, gradient, variant, autoContrast, size }) => {
	const colors = theme.variantColorResolver({
		color: color || theme.primaryColor,
		theme,
		gradient,
		variant: variant || "filled",
		autoContrast
	});
	return { groupSection: {
		"--section-height": require_get_size.getSize(size, "section-height"),
		"--section-padding-x": require_get_size.getSize(size, "section-padding-x"),
		"--section-fz": require_get_size.getFontSize(size),
		"--section-radius": radius === void 0 ? void 0 : require_get_size.getRadius(radius),
		"--section-bg": color || variant ? colors.background : void 0,
		"--section-color": colors.color,
		"--section-bd": color || variant ? colors.border : void 0
	} };
});
const ActionIconGroupSection = require_factory.factory((_props) => {
	const props = require_use_props.useProps("ActionIconGroupSection", null, _props);
	const { className, style, classNames, styles, unstyled, vars, variant, gradient, radius, autoContrast, attributes, ...others } = props;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
		...require_use_styles.useStyles({
			name: "ActionIconGroupSection",
			props,
			classes: require_ActionIcon_module.default,
			className,
			style,
			classNames,
			styles,
			unstyled,
			attributes,
			vars,
			varsResolver,
			rootSelector: "groupSection"
		})("groupSection"),
		variant,
		...others
	});
});
ActionIconGroupSection.classes = require_ActionIcon_module.default;
ActionIconGroupSection.varsResolver = varsResolver;
ActionIconGroupSection.displayName = "@mantine/core/ActionIconGroupSection";
//#endregion
exports.ActionIconGroupSection = ActionIconGroupSection;

//# sourceMappingURL=ActionIconGroupSection.cjs.map