import * as React from "react";
import y$1 from "../../../../../../../../../_virtual/index12.js";
import { extractProps as v$1 } from "../helpers/extract-props.js";
import { marginPropDefs as r } from "../props/margin.props.js";
import { ChevronDownIcon as i, ThickCheckIcon as t } from "./icons.js";
import { selectRootPropDefs as o, selectTriggerPropDefs as i$1, selectContentPropDefs as p } from "./select.props.js";
import { useThemeContext as H, Theme as R } from "./theme.js";
import { Root as Root2, Trigger, Value, Icon, Portal, Content as Content2, Viewport, Item, ItemIndicator, ItemText, Group, Label, Separator } from "../../../../../../../@radix-ui_react-select@2.2.6_@types_react-dom@19.1.9_@types_react@19.1.13__@types_react_86147d7a6324843f7e20872738e289aa/node_modules/@radix-ui/react-select/dist/index.js";
import { Root, Viewport as Viewport$1, Scrollbar, Thumb } from "../../../../../../../@radix-ui_react-scroll-area@1.2.10_@types_react-dom@19.1.9_@types_react@19.1.13__@types_7c398540692bd0130d4df299612327f8/node_modules/@radix-ui/react-scroll-area/dist/index.js";
const f = React.createContext({}), C = (r2) => {
  const { children: o$1, size: t2 = o.size.default, ...s } = r2;
  return React.createElement(Root2, { ...s }, React.createElement(f.Provider, { value: React.useMemo(() => ({ size: t2 }), [t2]) }, o$1));
};
C.displayName = "Select.Root";
const u = React.forwardRef((r$1, o$1) => {
  const t2 = React.useContext(f), { children: s, className: p2, color: n, radius: m, placeholder: c, ...S } = v$1({ size: t2?.size, ...r$1 }, { size: o.size }, i$1, r);
  return React.createElement(Trigger, { asChild: true }, React.createElement("button", { "data-accent-color": n, "data-radius": m, ...S, ref: o$1, className: y$1("rt-reset", "rt-SelectTrigger", p2) }, React.createElement("span", { className: "rt-SelectTriggerInner" }, React.createElement(Value, { placeholder: c }, s)), React.createElement(Icon, { asChild: true }, React.createElement(i, { className: "rt-SelectIcon" }))));
});
u.displayName = "Select.Trigger";
const g = React.forwardRef((r2, o$1) => {
  const t2 = React.useContext(f), { className: s, children: p$1, color: n, container: m, ...c } = v$1({ size: t2?.size, ...r2 }, { size: o.size }, p), S = H(), T = n || S.accentColor;
  return React.createElement(Portal, { container: m }, React.createElement(R, { asChild: true }, React.createElement(Content2, { "data-accent-color": T, sideOffset: 4, ...c, asChild: false, ref: o$1, className: y$1({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", s) }, React.createElement(Root, { type: "auto", className: "rt-ScrollAreaRoot" }, React.createElement(Viewport, { asChild: true, className: "rt-SelectViewport" }, React.createElement(Viewport$1, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, p$1)), React.createElement(Scrollbar, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, React.createElement(Thumb, { className: "rt-ScrollAreaThumb" }))))));
});
g.displayName = "Select.Content";
const v = React.forwardRef((r2, o2) => {
  const { className: t$1, children: s, ...p2 } = r2;
  return React.createElement(Item, { ...p2, asChild: false, ref: o2, className: y$1("rt-SelectItem", t$1) }, React.createElement(ItemIndicator, { className: "rt-SelectItemIndicator" }, React.createElement(t, { className: "rt-SelectItemIndicatorIcon" })), React.createElement(ItemText, null, s));
});
v.displayName = "Select.Item";
const y = React.forwardRef(({ className: r2, ...o2 }, t2) => React.createElement(Group, { ...o2, asChild: false, ref: t2, className: y$1("rt-SelectGroup", r2) }));
y.displayName = "Select.Group";
const h = React.forwardRef(({ className: r2, ...o2 }, t2) => React.createElement(Label, { ...o2, asChild: false, ref: t2, className: y$1("rt-SelectLabel", r2) }));
h.displayName = "Select.Label";
const I = React.forwardRef(({ className: r2, ...o2 }, t2) => React.createElement(Separator, { ...o2, asChild: false, ref: t2, className: y$1("rt-SelectSeparator", r2) }));
I.displayName = "Select.Separator";
export {
  g as Content,
  y as Group,
  v as Item,
  h as Label,
  C as Root,
  I as Separator,
  u as Trigger
};
//# sourceMappingURL=select.js.map
