"use client";
import { cn } from "./index3.js";
import { ChevronsLeftRight } from "lucide-react";
import { jsx } from "react/jsx-runtime";
import * as ResizablePrimitive from "react-resizable-panels";
//#region src/components/ui/resizable.tsx
function ResizablePanelGroup({ className, ...props }) {
	return /* @__PURE__ */ jsx(ResizablePrimitive.Group, {
		"data-slot": "resizable-panel-group",
		className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
		...props
	});
}
function ResizablePanel({ ...props }) {
	return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, {
		"data-slot": "resizable-panel",
		...props
	});
}
function ResizableHandle({ withHandle, className, ...props }) {
	return /* @__PURE__ */ jsx(ResizablePrimitive.Separator, {
		"data-slot": "resizable-handle",
		"aria-label": "Resize panels",
		className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden motion-reduce:after:transition-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90 hover:bg-border/80 transition-colors motion-reduce:transition-none", className),
		...props,
		children: withHandle && /* @__PURE__ */ jsx("div", {
			className: "z-10 flex shrink-0 items-center justify-center rounded-3xl border border-border bg-muted px-0.5 py-5 transition-all motion-reduce:transition-none hover:bg-accent hover:border-accent-foreground/20",
			children: /* @__PURE__ */ jsx(ChevronsLeftRight, {
				size: 20,
				className: "text-secondary-foreground transition-colors motion-reduce:transition-none hover:text-accent-foreground"
			})
		})
	});
}
ResizablePanelGroup.displayName = "ResizablePanelGroup";
ResizablePanel.displayName = "ResizablePanel";
ResizableHandle.displayName = "ResizableHandle";
//#endregion
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };

//# sourceMappingURL=index44.js.map