"use client";
'use strict';

var React = require('react');
var clsx = require('clsx');
var tailwindMerge = require('tailwind-merge');
var jsxRuntime = require('react/jsx-runtime');

function _interopNamespace(e) {
  if (e && e.__esModule) return e;
  var n = Object.create(null);
  if (e) {
    Object.keys(e).forEach(function (k) {
      if (k !== 'default') {
        var d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: function () { return e[k]; }
        });
      }
    });
  }
  n.default = e;
  return Object.freeze(n);
}

var React__namespace = /*#__PURE__*/_interopNamespace(React);

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
function cn(...inputs) {
  return tailwindMerge.twMerge(clsx.clsx(inputs));
}
__name(cn, "cn");
var MenuDock = React__namespace.forwardRef(
  ({ className, items, orientation = "horizontal", ...props }, ref) => {
    return /* @__PURE__ */ jsxRuntime.jsx(
      "div",
      {
        ref,
        className: cn(
          "flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",
          orientation === "vertical" ? "flex-col" : "flex-row",
          className
        ),
        ...props,
        children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
          "button",
          {
            onClick: item.onClick,
            className: cn(
              "group relative flex items-center justify-center rounded-full p-3 transition-colors hover:bg-accent",
              item.active && "bg-primary text-primary-foreground hover:bg-primary/90"
            ),
            title: item.label,
            children: [
              item.icon,
              /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: item.label }),
              /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground opacity-0 transition-opacity group-hover:opacity-100", children: item.label })
            ]
          },
          index
        ))
      }
    );
  }
);
MenuDock.displayName = "MenuDock";

exports.MenuDock = MenuDock;
