import { cn } from "../../lib/utils.js";
import { Drawer } from "../../node_modules/vaul/dist/index.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx, jsxs } from "react/jsx-runtime";
function Drawer$1(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(Drawer.Root, {
		"data-slot": "drawer",
		...a
	}), i[2] = a, i[3] = o), o;
}
function DrawerTrigger(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(Drawer.Trigger, {
		"data-slot": "drawer-trigger",
		...a
	}), i[2] = a, i[3] = o), o;
}
function DrawerPortal(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(Drawer.Portal, {
		"data-slot": "drawer-portal",
		...a
	}), i[2] = a, i[3] = o), o;
}
function DrawerClose(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(Drawer.Close, {
		"data-slot": "drawer-close",
		...a
	}), i[2] = a, i[3] = o), o;
}
function DrawerOverlay(i) {
	let a = c(8), o, s;
	a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
	let l;
	a[3] === o ? l = a[4] : (l = cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx(Drawer.Overlay, {
		"data-slot": "drawer-overlay",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function DrawerContent(a) {
	let o = c(12), l, d, f;
	o[0] === a ? (l = o[1], d = o[2], f = o[3]) : ({className: d, children: l, ...f} = a, o[0] = a, o[1] = l, o[2] = d, o[3] = f);
	let p;
	o[4] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ jsx(DrawerOverlay, {}), o[4] = p) : p = o[4];
	let m;
	o[5] === d ? m = o[6] : (m = cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", d), o[5] = d, o[6] = m);
	let h;
	o[7] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), o[7] = h) : h = o[7];
	let g;
	return o[8] !== l || o[9] !== f || o[10] !== m ? (g = /* @__PURE__ */ jsxs(DrawerPortal, {
		"data-slot": "drawer-portal",
		children: [p, /* @__PURE__ */ jsxs(Drawer.Content, {
			"data-slot": "drawer-content",
			className: m,
			...f,
			children: [h, l]
		})]
	}), o[8] = l, o[9] = f, o[10] = m, o[11] = g) : g = o[11], g;
}
function DrawerHeader(r) {
	let i = c(8), a, o;
	i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
	let s;
	i[3] === a ? s = i[4] : (s = cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", a), i[3] = a, i[4] = s);
	let l;
	return i[5] !== o || i[6] !== s ? (l = /* @__PURE__ */ jsx("div", {
		"data-slot": "drawer-header",
		className: s,
		...o
	}), i[5] = o, i[6] = s, i[7] = l) : l = i[7], l;
}
function DrawerFooter(r) {
	let i = c(8), a, o;
	i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
	let s;
	i[3] === a ? s = i[4] : (s = cn("mt-auto flex flex-col gap-2 p-4", a), i[3] = a, i[4] = s);
	let l;
	return i[5] !== o || i[6] !== s ? (l = /* @__PURE__ */ jsx("div", {
		"data-slot": "drawer-footer",
		className: s,
		...o
	}), i[5] = o, i[6] = s, i[7] = l) : l = i[7], l;
}
function DrawerTitle(i) {
	let a = c(8), o, s;
	a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
	let l;
	a[3] === o ? l = a[4] : (l = cn("text-foreground font-semibold", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx(Drawer.Title, {
		"data-slot": "drawer-title",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function DrawerDescription(i) {
	let a = c(8), o, s;
	a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
	let l;
	a[3] === o ? l = a[4] : (l = cn("text-muted-foreground text-sm", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx(Drawer.Description, {
		"data-slot": "drawer-description",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
