"use client";
const require_get_size = require("../../../core/utils/get-size/get-size.cjs");
const require_get_theme_color = require("../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.cjs");
const require_MantineThemeProvider = require("../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_Timeline_context = require("../Timeline.context.cjs");
const require_Timeline_module = require("../Timeline.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Timeline/TimelineItem/TimelineItem.tsx
const TimelineItem = require_factory.factory((_props) => {
	const { classNames, className, style, styles, vars, __active, __align, __lineActive, __vars, bullet, radius, color, lineVariant, children, title, mod, ...others } = require_use_props.useProps("TimelineItem", null, _props);
	const ctx = require_Timeline_context.useTimelineContext();
	const theme = require_MantineThemeProvider.useMantineTheme();
	const stylesApiProps = {
		classNames,
		styles
	};
	return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Box.Box, {
		...ctx.getStyles("item", {
			...stylesApiProps,
			className,
			style
		}),
		mod: [{
			"line-active": __lineActive,
			active: __active
		}, mod],
		__vars: {
			"--tli-radius": radius !== void 0 ? require_get_size.getRadius(radius) : void 0,
			"--tli-color": color ? require_get_theme_color.getThemeColor(color, theme) : void 0,
			"--tli-border-style": lineVariant || void 0
		},
		...others,
		children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
			...ctx.getStyles("itemBullet", stylesApiProps),
			mod: {
				"with-child": !!bullet,
				align: __align,
				active: __active
			},
			children: bullet
		}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
			...ctx.getStyles("itemBody", stylesApiProps),
			children: [title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
				...ctx.getStyles("itemTitle", stylesApiProps),
				children: title
			}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
				...ctx.getStyles("itemContent", stylesApiProps),
				children
			})]
		})]
	});
});
TimelineItem.classes = require_Timeline_module.default;
TimelineItem.displayName = "@mantine/core/TimelineItem";
//#endregion
exports.TimelineItem = TimelineItem;

//# sourceMappingURL=TimelineItem.cjs.map