"use client";
import { t as e } from "../../chunks/clsx.js";
import { n as t } from "../../chunks/Carousel.context.js";
import { cloneElement as n, isValidElement as r } from "react";
//#region lib/ui/carousel/CarouselItem.tsx
var i = ({ children: i, index: a }) => {
	let { canScrollPrev: o, canScrollNext: s, inViews: c = [], snapped: l = [] } = t(), u = c.includes(a), d = l.includes(a), f = r(i) ? {
		"aria-hidden": !u,
		className: e(i?.props?.className, "group/carousel-item", {
			"is-visible": u,
			"is-snapped": d
		}),
		inert: !u,
		tabIndex: o || s ? -1 : void 0
	} : void 0;
	return r(i) ? n(i, f) : i;
};
//#endregion
export { i as CarouselItem };

//# sourceMappingURL=CarouselItem.js.map