import { n as cn } from "./utils-DXzSsU1e.js";
import { createBlock, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
import { reactiveOmit } from "@vueuse/core";
import { AvatarFallback, AvatarImage, AvatarRoot } from "reka-ui";
import { cva } from "class-variance-authority";
//#endregion
//#region src/components/ui/avatar/Avatar.vue
var Avatar_default = /* @__PURE__ */ defineComponent({
	__name: "Avatar",
	props: {
		size: {},
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] }
	},
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(AvatarRoot), { class: normalizeClass(unref(cn)(unref(avatarVariants)({ size: __props.size }), props.class)) }, {
				default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
				_: 3
			}, 8, ["class"]);
		};
	}
});
//#endregion
//#region src/components/ui/avatar/AvatarFallback.vue
var AvatarFallback_default = /* @__PURE__ */ defineComponent({
	__name: "AvatarFallback",
	props: {
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] },
		delayMs: {},
		asChild: { type: Boolean },
		as: {}
	},
	setup(__props) {
		const props = __props;
		const delegatedProps = reactiveOmit(props, "class");
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(AvatarFallback), mergeProps(unref(delegatedProps), { class: unref(cn)("flex h-full w-full items-center justify-center bg-secondary text-secondary-foreground", props.class) }), {
				default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
				_: 3
			}, 16, ["class"]);
		};
	}
});
//#endregion
//#region src/components/ui/avatar/AvatarImage.vue
var AvatarImage_default = /* @__PURE__ */ defineComponent({
	__name: "AvatarImage",
	props: {
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] },
		src: {},
		referrerPolicy: {},
		crossOrigin: {},
		asChild: { type: Boolean },
		as: {}
	},
	setup(__props) {
		const props = __props;
		const delegatedProps = reactiveOmit(props, "class");
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(AvatarImage), mergeProps(unref(delegatedProps), { class: unref(cn)("h-full w-full object-cover", props.class) }), null, 16, ["class"]);
		};
	}
});
//#endregion
//#region src/components/ui/avatar/index.ts
var avatarVariants = cva("relative inline-flex items-center justify-center overflow-hidden rounded-full bg-secondary text-foreground font-normal shrink-0 select-none", {
	variants: { size: {
		sm: "h-8 w-8 text-xs",
		default: "h-10 w-10 text-sm",
		lg: "h-16 w-16 text-xl",
		xl: "h-24 w-24 text-3xl"
	} },
	defaultVariants: { size: "default" }
});
//#endregion
export { Avatar_default as i, AvatarImage_default as n, AvatarFallback_default as r, avatarVariants as t };

//# sourceMappingURL=avatar-DlTHFl6x.js.map