import { r as u, s as c, v as p, w as j, A as m, x as i, J as d, y as S, z as f, G as g, H as h } from "./main-BINuQ9na.js";
import { j as e } from "./jsx-runtime-OVHDjVDe.js";
import "./css-BYwooBtA.js";
import { T as y } from "./Toggle-SqJF7wK1.js";
import "react";
import { u as T } from "./useKeysData-DXXVQfXZ.js";
import "./provider-CKYgKu3z.js";
import "react-dom";
const v = ({
  keys: t,
  value: s,
  onChange: o,
  allowNone: n,
  multiple: r,
  ...a
}) => {
  const x = T(t);
  return /* @__PURE__ */ e.jsx(
    u,
    {
      closeDialogOnSelect: !1,
      ...x,
      allowNone: n,
      multiple: r,
      value: s,
      onChange: o,
      children: /* @__PURE__ */ e.jsx(c, { pack: !0, ...a })
    }
  );
}, l = ({
  itemKey: t,
  ...s
}) => {
  const { setSelected: o } = p(), { selected: n, onSelect: r } = j(t);
  return /* @__PURE__ */ e.jsx(
    y,
    {
      ...s,
      onChange: r,
      value: n,
      onContextMenu: (a) => {
        o([t]), a.preventDefault();
      }
    }
  );
}, A = ({
  value: t,
  ...s
}) => /* @__PURE__ */ e.jsxs(v, { ...s, value: t, keys: m, children: [
  /* @__PURE__ */ e.jsx(l, { itemKey: "start", children: /* @__PURE__ */ e.jsx(i.Left, {}) }),
  /* @__PURE__ */ e.jsx(l, { itemKey: "center", children: /* @__PURE__ */ e.jsx(i.Center, {}) }),
  /* @__PURE__ */ e.jsx(l, { itemKey: "end", children: /* @__PURE__ */ e.jsx(i.Right, {}) })
] }), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  ALIGNMENTS: m,
  Box: c,
  JUSTIFICATIONS: d,
  SelectAlignment: A,
  alignmentZ: S,
  justificationZ: f,
  parseDirection: g,
  shouldReverse: h
}, Symbol.toStringTag, { value: "Module" }));
export {
  v as B,
  A as S,
  l as a,
  M as e
};
