"use client";
import { jsx as a, jsxs as n } from "react/jsx-runtime";
import d from "react";
import { Group as R, SelectGroup as C, Value as I, SelectValue as V, Trigger as m, Icon as v, Portal as G, Content as c, Viewport as j, Label as p, Item as f, ItemIndicator as T, ItemText as z, Separator as u, Root as L, Select as $ } from "../../../../../node_modules/.pnpm/@radix-ui_react-select@2.2.4_@types_react-dom@19.0.4_@types_react@19.0.10__@types_react@19.0._peyebhllg4jtb52yrparcrrmki/node_modules/@radix-ui/react-select/dist/index.js";
import { HiChevronDown as _ } from "../../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/hi/index.js";
import { BsCheck2 as k } from "../../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/bs/index.js";
import { classNames as o } from "../../utils/index.js";
const l = ({ children: e, ...t }) => /* @__PURE__ */ a(L, { ...t, children: e }), h = d.forwardRef(({ children: e, ...t }, s) => /* @__PURE__ */ a(R, { ref: s, ...t, children: e }));
h.displayName = C.displayName;
const N = d.forwardRef(({ children: e, className: t, ...s }, r) => /* @__PURE__ */ a(I, { className: o("", t), ref: r, ...s, children: e }));
N.displayName = V.displayName;
const y = d.forwardRef(({ className: e, children: t, chevronDown: s = !0, ...r }, i) => /* @__PURE__ */ n(
  m,
  {
    ref: i,
    className: o(
      "focus:outline-hidden flex h-[30px]  w-full items-center justify-between whitespace-nowrap rounded-sm border border-slate-300  bg-transparent p-2 text-xs text-slate-800 placeholder:text-slate-300 focus:border-slate-500 focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",
      e
    ),
    ...r,
    children: [
      t,
      s && /* @__PURE__ */ a(v, { asChild: !0, children: /* @__PURE__ */ a(_, { className: "h-4 w-4 opacity-50" }) })
    ]
  }
));
y.displayName = m.displayName;
const w = d.forwardRef(({ className: e, sideOffset: t = -40, children: s, position: r = "popper", ...i }, S) => /* @__PURE__ */ a(G, { children: /* @__PURE__ */ a(
  c,
  {
    ref: S,
    className: o(
      "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2  data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-32 overflow-hidden rounded-sm border bg-white shadow-md",
      r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
      e
    ),
    sideOffset: t,
    position: r,
    ...i,
    children: /* @__PURE__ */ a(
      j,
      {
        className: o(
          // 'p-1',
          r === "popper" && "h-(--radix-select-trigger-height) min-w-(--radix-select-trigger-width) w-full"
        ),
        children: s
      }
    )
  }
) }));
w.displayName = c.displayName;
const x = d.forwardRef(({ className: e, children: t, ...s }, r) => /* @__PURE__ */ a(
  p,
  {
    ref: r,
    className: o("py-1.5 pe-2 ps-8 text-sm font-semibold", e),
    ...s,
    children: t
  }
));
x.displayName = p.displayName;
const b = d.forwardRef(
  ({ className: e, children: t, showCheck: s = !0, ...r }, i) => /* @__PURE__ */ n(
    f,
    {
      ref: i,
      className: o(
        "rounded-xs outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50 relative flex w-full cursor-default select-none items-center py-1.5 pe-2 ps-8 text-xs text-slate-800 focus:bg-slate-100 focus:text-slate-900",
        e
      ),
      ...r,
      children: [
        s && /* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(k, { className: "h-4 w-4" }) }) }),
        /* @__PURE__ */ a(z, { children: t })
      ]
    }
  )
);
b.displayName = f.displayName;
const g = d.forwardRef(({ className: e, children: t, ...s }, r) => /* @__PURE__ */ a(
  u,
  {
    ref: r,
    className: o("-mx-1 my-1 h-px bg-slate-300", e),
    ...s,
    children: t
  }
));
g.displayName = u.displayName;
l.Group = h;
l.Value = N;
l.Trigger = y;
l.Content = w;
l.Label = x;
l.Item = b;
l.Separator = g;
l.displayName = $.displayName;
export {
  l as Select
};
//# sourceMappingURL=select.js.map
