import { jsx as $, jsxs as E } from "react/jsx-runtime";
import P, { useMemo as C, useRef as w, useCallback as _, useState as k, forwardRef as de, createContext as N, useContext as J, Fragment as ce } from "react";
import { e as q } from "./extract-style-props-BdibuNZ7.es.js";
import { useSlotRecipe as fe, chakra as Q } from "@chakra-ui/react/styled-system";
import { c as ue, d as $e } from "./Header-CiYtrnTw.es.js";
import { $ as be, a as me, b as pe, c as ve, d as ge } from "./ListBox-RrHJjnuq.es.js";
import { f as ye, g as he } from "./CollectionBuilder-BOe312C_.es.js";
import { createSlotRecipeContext as xe, mergeRefs as Se } from "@chakra-ui/react";
import { Close as Pe, Loop as Re, KeyboardArrowDown as Ce } from "@commercetools/nimbus-icons";
import { $ as Y, a as De } from "./Button-BjcDZ5eb.es.js";
import { q as Me, e as Fe, h as Ie, r as Ke, $ as Be } from "./Dialog-B0BQfdQa.es.js";
import { $ as Z, c as ee, a as te, b as Ve, f as Ee, e as we } from "./utils-B6pV5ewr.es.js";
import { $ as Oe } from "./FieldError-CXcEMuBf.es.js";
import { $ as ke } from "./Form-CXcEMuBf.es.js";
import { $ as qe } from "./intlStrings-Cd44R5hT.es.js";
import { $ as le } from "./Label-DIseLESi.es.js";
import { $ as G } from "./Text-DOcU1ycg.es.js";
import { $ as Ae } from "./Hidden-X9vuhkMZ.es.js";
import { $ as L, a as Te, e as ze } from "./mergeProps-Dsl8k3Ig.es.js";
import { $ as W } from "./filterDOMProps-BSVCO5jK.es.js";
import { $ as Le, c as Ne } from "./OverlayArrow-BIjbCSXk.es.js";
import { $ as Ge } from "./context-DW7UvQ8z.es.js";
import { $ as We } from "./useLocalizedStringFormatter-DWb0DkHL.es.js";
import { a as je, $ as He } from "./useFormValidation-BCVLtR0U.es.js";
import { a as Ue } from "./useListState-Dd0Mtev3.es.js";
import { $ as Xe } from "./useControlledState-u436Wbp1.es.js";
import { $ as _e } from "./useFocusRing-FPt2Rwil.es.js";
import { l as Je } from "./SelectionManager-CX9btso_.es.js";
import { c as Qe } from "./useFocusVisible-B3HmFL2Q.es.js";
import { $ as Ye } from "./useCollator-BjnMaGJd.es.js";
import { $ as Ze } from "./useField-CHrpmkxe.es.js";
import { $ as et } from "./useFormReset-BGuIA_u2.es.js";
import { a as tt } from "./VisuallyHidden-BLRzeMsq.es.js";
import { n as V, u as lt } from "./normalize-messages-D5T4I93D.es.js";
import { I as at } from "./icon-button-CosIm3oY.es.js";
import { l as rt } from "./index-C2qW4ynb.es.js";
import { $ as ot } from "./useObjectRef-CaJ5pgjX.es.js";
import { Flex as z } from "@chakra-ui/react/flex";
import { B as X } from "./box-DuBoAZvq.es.js";
function it(e = {}) {
  let { locale: t } = Ge();
  return C(() => new Intl.ListFormat(t, e), [
    t,
    e
  ]);
}
const j = /* @__PURE__ */ new WeakMap();
function nt(e, t, a) {
  let { keyboardDelegate: o, isDisabled: l, isRequired: b, name: m, form: r, validationBehavior: s = "aria" } = e, f = Ye({
    usage: "search",
    sensitivity: "base"
  }), i = C(() => o || new ue(t.collection, t.disabledKeys, a, f), [
    o,
    t.collection,
    t.disabledKeys,
    f,
    a
  ]), { menuTriggerProps: d, menuProps: p } = Me({
    isDisabled: l,
    type: "listbox"
  }, t, a), v = (g) => {
    if (t.selectionManager.selectionMode !== "multiple")
      switch (g.key) {
        case "ArrowLeft": {
          var F, I;
          g.preventDefault();
          let B = t.selectedKey != null ? (F = i.getKeyAbove) === null || F === void 0 ? void 0 : F.call(i, t.selectedKey) : (I = i.getFirstKey) === null || I === void 0 ? void 0 : I.call(i);
          B && t.setSelectedKey(B);
          break;
        }
        case "ArrowRight": {
          var A, T;
          g.preventDefault();
          let B = t.selectedKey != null ? (A = i.getKeyBelow) === null || A === void 0 ? void 0 : A.call(i, t.selectedKey) : (T = i.getFirstKey) === null || T === void 0 ? void 0 : T.call(i);
          B && t.setSelectedKey(B);
          break;
        }
      }
  }, { typeSelectProps: c } = Je({
    keyboardDelegate: i,
    selectionManager: t.selectionManager,
    onTypeSelect(g) {
      t.setSelectedKey(g);
    }
  }), { isInvalid: x, validationErrors: R, validationDetails: u } = t.displayValidation, { labelProps: y, fieldProps: S, descriptionProps: n, errorMessageProps: D } = Ze({
    ...e,
    labelElementType: "span",
    isInvalid: x,
    errorMessage: e.errorMessage || R
  });
  c.onKeyDown = c.onKeyDownCapture, delete c.onKeyDownCapture, t.selectionManager.selectionMode === "multiple" && (c = {});
  let M = W(e, {
    labelable: !0
  }), h = L(c, d, S), O = Te();
  return j.set(t, {
    isDisabled: l,
    isRequired: b,
    name: m,
    form: r,
    validationBehavior: s
  }), {
    labelProps: {
      ...y,
      onClick: () => {
        if (!e.isDisabled) {
          var g;
          (g = a.current) === null || g === void 0 || g.focus(), Qe("keyboard");
        }
      }
    },
    triggerProps: L(M, {
      ...h,
      isDisabled: l,
      onKeyDown: ze(h.onKeyDown, v, e.onKeyDown),
      onKeyUp: e.onKeyUp,
      "aria-labelledby": [
        O,
        h["aria-labelledby"],
        h["aria-label"] && !h["aria-labelledby"] ? h.id : null
      ].filter(Boolean).join(" "),
      onFocus(g) {
        t.isFocused || (e.onFocus && e.onFocus(g), e.onFocusChange && e.onFocusChange(!0), t.setFocused(!0));
      },
      onBlur(g) {
        t.isOpen || (e.onBlur && e.onBlur(g), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
      }
    }),
    valueProps: {
      id: O
    },
    menuProps: {
      ...p,
      autoFocus: t.focusStrategy || !0,
      shouldSelectOnPressUp: !0,
      shouldFocusOnHover: !0,
      disallowEmptySelection: !0,
      linkBehavior: "selection",
      onBlur: (g) => {
        g.currentTarget.contains(g.relatedTarget) || (e.onBlur && e.onBlur(g), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
      },
      "aria-labelledby": [
        S["aria-labelledby"],
        h["aria-label"] && !S["aria-labelledby"] ? h.id : null
      ].filter(Boolean).join(" ")
    },
    descriptionProps: n,
    errorMessageProps: D,
    isInvalid: x,
    validationErrors: R,
    validationDetails: u,
    hiddenSelectProps: {
      isDisabled: l,
      name: m,
      label: e.label,
      state: t,
      triggerRef: a,
      form: r
    }
  };
}
function st(e, t, a) {
  let o = j.get(t) || {}, { autoComplete: l, name: b = o.name, form: m = o.form, isDisabled: r = o.isDisabled } = e, { validationBehavior: s, isRequired: f } = o, { visuallyHiddenProps: i } = tt({
    style: {
      // Prevent page scrolling.
      position: "fixed",
      top: 0,
      left: 0
    }
  });
  et(e.selectRef, t.defaultValue, t.setValue), je({
    validationBehavior: s,
    focus: () => {
      var c;
      return (c = a.current) === null || c === void 0 ? void 0 : c.focus();
    }
  }, t, e.selectRef);
  let d = t.setValue, p = _((c) => {
    c.target.multiple ? d(Array.from(c.target.selectedOptions, (x) => x.value)) : d(c.currentTarget.value);
  }, [
    d
  ]);
  var v;
  return {
    containerProps: {
      ...i,
      "aria-hidden": !0,
      // @ts-ignore
      "data-react-aria-prevent-focus": !0,
      // @ts-ignore
      "data-a11y-ignore": "aria-hidden-focus"
    },
    inputProps: {
      style: {
        display: "none"
      }
    },
    selectProps: {
      tabIndex: -1,
      autoComplete: l,
      disabled: r,
      multiple: t.selectionManager.selectionMode === "multiple",
      required: s === "native" && f,
      name: b,
      form: m,
      value: (v = t.value) !== null && v !== void 0 ? v : "",
      onChange: p,
      onInput: p
    }
  };
}
function dt(e) {
  let { state: t, triggerRef: a, label: o, name: l, form: b, isDisabled: m } = e, r = w(null), s = w(null), { containerProps: f, selectProps: i } = st({
    ...e,
    selectRef: t.collection.size <= 300 ? r : s
  }, t, a);
  if (t.collection.size <= 300) return /* @__PURE__ */ P.createElement("div", {
    ...f,
    "data-testid": "hidden-select-container"
  }, /* @__PURE__ */ P.createElement("label", null, o, /* @__PURE__ */ P.createElement("select", {
    ...i,
    ref: r
  }, /* @__PURE__ */ P.createElement("option", null), [
    ...t.collection.getKeys()
  ].map((d) => {
    let p = t.collection.getItem(d);
    if (p && p.type === "item") return /* @__PURE__ */ P.createElement("option", {
      key: p.key,
      value: p.key
    }, p.textValue);
  }))));
  if (l) {
    let d = j.get(t) || {}, { validationBehavior: p } = d, v = Array.isArray(t.value) ? t.value : [
      t.value
    ];
    v.length === 0 && (v = [
      null
    ]);
    let c = v.map((x, R) => {
      let u = {
        type: "hidden",
        autoComplete: i.autoComplete,
        name: l,
        form: b,
        disabled: m,
        value: x ?? ""
      };
      return p === "native" ? /* @__PURE__ */ P.createElement("input", {
        key: R,
        ...u,
        ref: R === 0 ? s : null,
        style: {
          display: "none"
        },
        type: "text",
        required: R === 0 ? i.required : !1,
        onChange: () => {
        }
      }) : /* @__PURE__ */ P.createElement("input", {
        key: R,
        ...u,
        ref: R === 0 ? s : null
      });
    });
    return /* @__PURE__ */ P.createElement(P.Fragment, null, c);
  }
  return null;
}
function ct(e) {
  let { selectionMode: t = "single" } = e, a = Le(e), [o, l] = k(null), b = C(() => {
    var n;
    return e.defaultValue !== void 0 ? e.defaultValue : t === "single" ? (n = e.defaultSelectedKey) !== null && n !== void 0 ? n : null : [];
  }, [
    e.defaultValue,
    e.defaultSelectedKey,
    t
  ]), m = C(() => e.value !== void 0 ? e.value : t === "single" ? e.selectedKey : void 0, [
    e.value,
    e.selectedKey,
    t
  ]), [r, s] = Xe(m, b, e.onChange), f = t === "single" && Array.isArray(r) ? r[0] : r, i = (n) => {
    if (t === "single") {
      var D, M;
      let h = Array.isArray(n) ? (M = n[0]) !== null && M !== void 0 ? M : null : n;
      s(h), h !== f && ((D = e.onSelectionChange) === null || D === void 0 || D.call(e, h));
    } else {
      let h = [];
      Array.isArray(n) ? h = n : n != null && (h = [
        n
      ]), s(h);
    }
  }, d = Ue({
    ...e,
    selectionMode: t,
    disallowEmptySelection: t === "single",
    allowDuplicateSelectionEvents: !0,
    selectedKeys: C(() => ft(f), [
      f
    ]),
    onSelectionChange: (n) => {
      if (n !== "all") {
        if (t === "single") {
          var D;
          let M = (D = n.values().next().value) !== null && D !== void 0 ? D : null;
          i(M), a.close();
        } else i([
          ...n
        ]);
        c.commitValidation();
      }
    }
  }), p = d.selectionManager.firstSelectedKey, v = C(() => [
    ...d.selectionManager.selectedKeys
  ].map((n) => d.collection.getItem(n)).filter((n) => n != null), [
    d.selectionManager.selectedKeys,
    d.collection
  ]), c = He({
    ...e,
    value: Array.isArray(f) && f.length === 0 ? null : f
  }), [x, R] = k(!1), [u] = k(f);
  var y, S;
  return {
    ...c,
    ...d,
    ...a,
    value: f,
    defaultValue: b ?? u,
    setValue: i,
    selectedKey: p,
    setSelectedKey: i,
    selectedItem: (y = v[0]) !== null && y !== void 0 ? y : null,
    selectedItems: v,
    defaultSelectedKey: (S = e.defaultSelectedKey) !== null && S !== void 0 ? S : e.selectionMode === "single" ? u : null,
    focusStrategy: o,
    open(n = null) {
      d.collection.size !== 0 && (l(n), a.open());
    },
    toggle(n = null) {
      d.collection.size !== 0 && (l(n), a.toggle());
    },
    isFocused: x,
    setFocused: R
  };
}
function ft(e) {
  if (e !== void 0)
    return e === null ? [] : Array.isArray(e) ? e : [
      e
    ];
}
function ut(e) {
  return e && e.__esModule ? e.default : e;
}
const H = /* @__PURE__ */ N(null), U = /* @__PURE__ */ N(null), $t = /* @__PURE__ */ de(function(t, a) {
  [t, a] = Z(t, a, H);
  let { children: o, isDisabled: l = !1, isInvalid: b = !1, isRequired: m = !1 } = t, r = C(() => typeof o == "function" ? o({
    isOpen: !1,
    isDisabled: l,
    isInvalid: b,
    isRequired: m,
    isFocused: !1,
    isFocusVisible: !1,
    defaultChildren: null
  }) : o, [
    o,
    l,
    b,
    m
  ]);
  return /* @__PURE__ */ P.createElement(ye, {
    content: r
  }, (s) => /* @__PURE__ */ P.createElement(mt, {
    props: t,
    collection: s,
    selectRef: a
  }));
}), bt = [
  le,
  Y,
  G
];
function mt({ props: e, selectRef: t, collection: a }) {
  let { validationBehavior: o } = ee(ke) || {};
  var l, b;
  let m = (b = (l = e.validationBehavior) !== null && l !== void 0 ? l : o) !== null && b !== void 0 ? b : "native", r = ct({
    ...e,
    collection: a,
    children: void 0,
    validationBehavior: m
  }), { isFocusVisible: s, focusProps: f } = _e({
    within: !0
  }), i = w(null), [d, p] = Ve(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: v, triggerProps: c, valueProps: x, menuProps: R, descriptionProps: u, errorMessageProps: y, hiddenSelectProps: S, ...n } = nt({
    ...Ee(e),
    label: p,
    validationBehavior: m
  }, r, i), [D, M] = k(null), h = _(() => {
    i.current && M(i.current.offsetWidth + "px");
  }, [
    i
  ]);
  Ne({
    ref: i,
    onResize: h
  });
  let O = C(() => ({
    isOpen: r.isOpen,
    isFocused: r.isFocused,
    isFocusVisible: s,
    isDisabled: e.isDisabled || !1,
    isInvalid: n.isInvalid || !1,
    isRequired: e.isRequired || !1
  }), [
    r.isOpen,
    r.isFocused,
    s,
    e.isDisabled,
    n.isInvalid,
    e.isRequired
  ]), g = te({
    ...e,
    values: O,
    defaultClassName: "react-aria-Select"
  }), F = W(e, {
    global: !0
  });
  delete F.id;
  let I = w(null);
  return /* @__PURE__ */ P.createElement(we, {
    values: [
      [
        H,
        e
      ],
      [
        U,
        r
      ],
      [
        ae,
        x
      ],
      [
        le,
        {
          ...v,
          ref: d,
          elementType: "span"
        }
      ],
      [
        Y,
        {
          ...c,
          ref: i,
          isPressed: r.isOpen,
          autoFocus: e.autoFocus
        }
      ],
      [
        Fe,
        r
      ],
      [
        Ie,
        {
          trigger: "Select",
          triggerRef: i,
          scrollRef: I,
          placement: "bottom start",
          style: {
            "--trigger-width": D
          },
          "aria-labelledby": R["aria-labelledby"],
          clearContexts: bt
        }
      ],
      [
        be,
        {
          ...R,
          ref: I
        }
      ],
      [
        me,
        r
      ],
      [
        G,
        {
          slots: {
            description: u,
            errorMessage: y
          }
        }
      ],
      [
        Oe,
        n
      ]
    ]
  }, /* @__PURE__ */ P.createElement("div", {
    ...L(F, g, f),
    ref: t,
    slot: e.slot || void 0,
    "data-focused": r.isFocused || void 0,
    "data-focus-visible": s || void 0,
    "data-open": r.isOpen || void 0,
    "data-disabled": e.isDisabled || void 0,
    "data-invalid": n.isInvalid || void 0,
    "data-required": e.isRequired || void 0
  }, g.children, /* @__PURE__ */ P.createElement(dt, {
    ...S,
    autoComplete: e.autoComplete
  })));
}
const ae = /* @__PURE__ */ N(null), pt = /* @__PURE__ */ Ae(function(t, a) {
  var o;
  [t, a] = Z(t, a, ae);
  let l = J(U), { placeholder: b } = ee(H), m = l.selectedItems.map((u) => {
    var y;
    let S = (y = u.props) === null || y === void 0 ? void 0 : y.children;
    return typeof S == "function" && (S = S({
      isHovered: !1,
      isPressed: !1,
      isSelected: !1,
      isFocused: !1,
      isFocusVisible: !1,
      isDisabled: !1,
      selectionMode: "single",
      selectionBehavior: "toggle"
    })), S;
  }), r = it(), s = C(() => l.selectedItems.map((u) => u?.textValue), [
    l.selectedItems
  ]), f = l.selectionManager.selectionMode, i = C(() => {
    var u;
    return f === "single" ? (u = s[0]) !== null && u !== void 0 ? u : "" : r.format(s);
  }, [
    f,
    r,
    s
  ]), d = C(() => {
    if (f === "single") return m[0];
    let u = r.formatToParts(s);
    if (u.length === 0) return null;
    let y = 0;
    return u.map((S) => S.type === "element" ? /* @__PURE__ */ P.createElement(ce, {
      key: y
    }, m[y++]) : S.value);
  }, [
    f,
    r,
    s,
    m
  ]), p = We(ut(qe), "react-aria-components");
  var v, c;
  let x = te({
    ...t,
    defaultChildren: (v = d ?? b) !== null && v !== void 0 ? v : p.format("selectPlaceholder"),
    defaultClassName: "react-aria-SelectValue",
    values: {
      selectedItem: (c = (o = l.selectedItems[0]) === null || o === void 0 ? void 0 : o.value) !== null && c !== void 0 ? c : null,
      selectedItems: C(() => l.selectedItems.map((u) => {
        var y;
        return (y = u.value) !== null && y !== void 0 ? y : null;
      }), [
        l.selectedItems
      ]),
      selectedText: i,
      isPlaceholder: l.selectedItems.length === 0,
      state: l
    }
  }), R = W(t, {
    global: !0
  });
  return /* @__PURE__ */ P.createElement("span", {
    ref: a,
    ...R,
    ...x,
    "data-placeholder": l.selectedItems.length === 0 || void 0
  }, /* @__PURE__ */ P.createElement(G.Provider, {
    value: void 0
  }, x.children));
}), { withProvider: vt, withContext: K } = /* @__PURE__ */ xe({
  key: "select"
}), gt = /* @__PURE__ */ vt(
  "div",
  "root"
), yt = /* @__PURE__ */ K("div", "leadingElement"), ht = /* @__PURE__ */ K("button", "trigger"), xt = /* @__PURE__ */ K("span", "triggerLabel"), St = /* @__PURE__ */ K("div", "options"), Pt = /* @__PURE__ */ K("div", "option"), Rt = /* @__PURE__ */ K("div", "optionGroup"), Ct = { clearSelection: "Clear selection" }, Dt = { clearSelection: "Auswahl löschen" }, Mt = { clearSelection: "Borrar selección" }, Ft = { clearSelection: "Effacer la sélection" }, It = { clearSelection: "Limpar seleção" }, Kt = {
  en: /* @__PURE__ */ V(Ct),
  de: /* @__PURE__ */ V(Dt),
  es: /* @__PURE__ */ V(Mt),
  "fr-FR": /* @__PURE__ */ V(Ft),
  "pt-BR": /* @__PURE__ */ V(It)
}, re = () => {
  const e = lt(Kt), t = J(U);
  if (!t?.selectedKey)
    return null;
  const a = () => {
    t?.setSelectedKey(null);
  };
  return /* @__PURE__ */ $(Ke, { children: /* @__PURE__ */ $(
    at,
    {
      slot: null,
      pointerEvents: "all",
      size: "2xs",
      variant: "ghost",
      "aria-label": e.format("clearSelection"),
      "aria-labelledby": "",
      onPress: a,
      children: /* @__PURE__ */ $(Pe, {})
    }
  ) });
};
re.displayName = "Select.ClearButton";
const oe = function({
  ref: t,
  children: a,
  leadingElement: o,
  isLoading: l,
  isDisabled: b,
  isClearable: m = !0,
  ...r
}) {
  const s = w(null), f = ot(Se(s, t)), i = fe({ recipe: rt }), [d, p] = i.splitVariantProps(r), [v, c] = q(p), x = {
    ...c,
    isDisabled: l || b
  };
  return /* @__PURE__ */ $(gt, { asChild: !0, ref: f, ...d, ...v, children: /* @__PURE__ */ E($t, { ...x, children: [
    /* @__PURE__ */ E(Q.div, { position: "relative", children: [
      /* @__PURE__ */ $(ht, { zIndex: 0, asChild: !0, children: /* @__PURE__ */ E(De, { children: [
        o && /* @__PURE__ */ $(yt, { asChild: !0, children: o }),
        /* @__PURE__ */ $(xt, { asChild: !0, children: /* @__PURE__ */ $(pt, {}) })
      ] }) }),
      /* @__PURE__ */ E(
        z,
        {
          position: "absolute",
          top: "0",
          bottom: "0",
          zIndex: 1,
          right: "400",
          pointerEvents: "none",
          children: [
            m && /* @__PURE__ */ $(z, { width: "600", my: "auto", children: /* @__PURE__ */ $(re, {}) }),
            /* @__PURE__ */ $(z, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ $(X, { color: "neutral.9", asChild: !0, m: "auto", w: "400", h: "400", children: l ? /* @__PURE__ */ $(X, { asChild: !0, animation: "spin", animationDuration: "slowest", children: /* @__PURE__ */ $(Re, {}) }) : /* @__PURE__ */ $(Ce, {}) }) })
          ]
        }
      )
    ] }),
    /* @__PURE__ */ $(Be, { children: a })
  ] }) });
};
oe.displayName = "Select.Root";
const ie = (e) => {
  const { ref: t, ...a } = e, [o, l] = q(a);
  return /* @__PURE__ */ $(St, { asChild: !0, ...o, children: /* @__PURE__ */ $(pe, { ref: t, ...l }) });
};
ie.displayName = "Select.Options";
const ne = (e) => {
  const { ref: t, ...a } = e, [o, l] = q(a);
  return /* @__PURE__ */ $(Pt, { asChild: !0, ...o, children: /* @__PURE__ */ $(ve, { ref: t, ...l }) });
};
ne.displayName = "Select.Option";
const se = (e) => {
  const { ref: t, label: a, items: o, children: l, ...b } = e, [m, r] = q(b);
  if (o && typeof l != "function")
    throw new Error(
      'SelectOptionGroup: When "items" is provided, "children" must be a function'
    );
  return /* @__PURE__ */ $(Q.section, { ...m, asChild: !0, children: /* @__PURE__ */ E(ge, { ref: t, ...r, children: [
    /* @__PURE__ */ $(Rt, { asChild: !0, children: /* @__PURE__ */ $($e, { children: a }) }),
    o ? /* @__PURE__ */ $(he, { items: o, children: (s) => typeof l == "function" ? l(s) : null }) : l
  ] }) });
};
se.displayName = "Select.OptionGroup";
const pl = {
  /**
   * # Select.Root
   *
   * The root component that provides context and state management for the select.
   * This component must wrap all select parts (Options, Option, etc.) and provides
   * the select state, variant styling context, and selection management.
   *
   * @example
   * ```tsx
   * <Select.Root>
   *   <Select.Options placeholder="Choose...">
   *     <Select.Option id="apple">Apple</Select.Option>
   *     <Select.Option id="orange">Orange</Select.Option>
   *   </Select.Options>
   * </Select.Root>
   * ```
   */
  Root: oe,
  /**
   * # Select.Options
   *
   * The trigger button and dropdown container for select options.
   * Displays the selected value and opens the options list when activated.
   *
   * This component handles the visual presentation of the select, including
   * the trigger button, selected value display, dropdown icon, and the
   * popover containing options.
   *
   * @example
   * ```tsx
   * <Select.Root>
   *   <Select.Options
   *     placeholder="Select fruit"
   *     label="Favorite Fruit"
   *   >
   *     <Select.Option id="apple">Apple</Select.Option>
   *     <Select.Option id="banana">Banana</Select.Option>
   *   </Select.Options>
   * </Select.Root>
   * ```
   */
  Options: ie,
  /**
   * # Select.Option
   *
   * An individual selectable option within the select dropdown.
   * Represents a single choice that can be selected by the user.
   *
   * Options automatically handle selection state, keyboard navigation,
   * and visual feedback for hover and selection states.
   *
   * @example
   * ```tsx
   * <Select.Options>
   *   <Select.Option id="red" textValue="Red">
   *     🔴 Red
   *   </Select.Option>
   *   <Select.Option id="blue" textValue="Blue">
   *     🔵 Blue
   *   </Select.Option>
   * </Select.Options>
   * ```
   */
  Option: ne,
  /**
   * # Select.OptionGroup
   *
   * A container for grouping related options with an optional label.
   * Provides visual separation and semantic grouping of options.
   *
   * Option groups help organize large lists of options into logical
   * categories with proper accessibility support.
   *
   * @example
   * ```tsx
   * <Select.Options>
   *   <Select.OptionGroup label="Fruits">
   *     <Select.Option id="apple">Apple</Select.Option>
   *     <Select.Option id="banana">Banana</Select.Option>
   *   </Select.OptionGroup>
   *   <Select.OptionGroup label="Vegetables">
   *     <Select.Option id="carrot">Carrot</Select.Option>
   *     <Select.Option id="broccoli">Broccoli</Select.Option>
   *   </Select.OptionGroup>
   * </Select.Options>
   * ```
   */
  OptionGroup: se
};
export {
  pl as S
};
//# sourceMappingURL=select-D9yYDW0d.es.js.map
