import { $ as e, $n as t, D as n, E as r, Ft as i, Lt as a, On as o, Zn as s, _ as c, b as l, bt as u, et as d, g as f, mt as p, o as m, qt as h, tr as g, v as _, vn as v, w as y, wn as b, wt as x, xt as S, y as C, z as w } from "./runtime-core.esm-bundler-C_RgxGrN.js";
import { l as T } from "./vue.runtime.esm-bundler-CFaGDlW9.js";
import { B as E, F as D, N as O, R as k, U as A, b as j, g as M, i as N, n as ee, q as P, r as te, v as F, y as I } from "./Button-C1y42oVo.js";
import { A as L, k as R, r as ne } from "./dist-BVQ2eZ4j.js";
import { L as z, c as B, i as V, l as H, s as U } from "./namespaced-DqTNyUG4.js";
import { i as re, n as ie, v as W } from "./Tooltip-C9kG7ywk.js";
import { t as ae } from "./Input-VRzwsNLL.js";
function G() {
  let { contains: e2, startsWith: t2 } = z({ sensitivity: `base` });
  function n2(n3, r3) {
    return e2(n3, r3) ? e2(r3, n3) ? 0 : t2(n3, r3) ? 1 : 2 : null;
  }
  function r2(e3, t3, r3) {
    if (typeof e3 != `object` || !e3) return n2(String(e3), t3);
    let i3 = null;
    for (let a3 of r3) {
      let r4 = D(e3, a3);
      if (r4 == null) continue;
      let o2 = Array.isArray(r4) ? r4.map(String) : [String(r4)];
      for (let e4 of o2) {
        let r5 = n2(e4, t3);
        if (r5 !== null && (i3 === null || r5 < i3) && (i3 = r5), i3 === 0) return 0;
      }
    }
    return i3;
  }
  function i2(e3, t3, n3) {
    if (!t3) return e3;
    let i3 = [];
    for (let a3 of e3) {
      let e4 = r2(a3, t3, n3);
      e4 !== null && i3.push({ item: a3, score: e4 });
    }
    return i3.sort((e4, t4) => e4.score - t4.score), i3.map(({ item: e4 }) => e4);
  }
  function a2(e3, t3, n3) {
    return t3 ? e3.map((e4) => {
      let i3 = [];
      for (let a3 of e4) {
        if (a3 == null) continue;
        if (n3.isStructural?.(a3)) {
          i3.push({ item: a3, score: -1 });
          continue;
        }
        let e5 = r2(a3, t3, n3.fields);
        e5 !== null && i3.push({ item: a3, score: e5 });
      }
      return i3.sort((e5, t4) => e5.score - t4.score), i3.map(({ item: e5 }) => e5);
    }).filter((e4) => e4.some((e5) => !n3.isStructural?.(e5))) : e3;
  }
  return { score: n2, scoreItem: r2, filter: i2, filterGroups: a2 };
}
var K = { __name: `DropdownMenuContent`, props: { items: { type: null, required: false }, portal: { type: [Boolean, String], required: false, skipCheck: true }, sub: { type: Boolean, required: false }, labelKey: { type: null, required: true }, descriptionKey: { type: null, required: true }, checkedIcon: { type: null, required: false }, loadingIcon: { type: null, required: false }, externalIcon: { type: [Boolean, String], required: false, skipCheck: true }, size: { type: null, required: false }, filter: { type: [Boolean, Object], required: false }, filterFields: { type: Array, required: false }, ignoreFilter: { type: Boolean, required: false }, searchTerm: { type: String, required: false }, class: { type: null, required: false }, ui: { type: null, required: true }, uiOverride: { type: null, required: false }, loop: { type: Boolean, required: false }, side: { type: null, required: false }, sideOffset: { type: Number, required: false }, sideFlip: { type: Boolean, required: false }, align: { type: null, required: false }, alignOffset: { type: Number, required: false }, alignFlip: { type: Boolean, required: false }, avoidCollisions: { type: Boolean, required: false }, collisionBoundary: { type: null, required: false }, collisionPadding: { type: [Number, Object], required: false }, arrowPadding: { type: Number, required: false }, hideShiftedArrow: { type: Boolean, required: false }, sticky: { type: String, required: false }, hideWhenDetached: { type: Boolean, required: false }, positionStrategy: { type: String, required: false }, updatePositionStrategy: { type: String, required: false }, disableUpdateOnLayoutShift: { type: Boolean, required: false }, prioritizePosition: { type: Boolean, required: false }, reference: { type: null, required: false } }, emits: [`update:searchTerm`, `escapeKeyDown`, `pointerDownOutside`, `focusOutside`, `interactOutside`, `closeAutoFocus`], setup(e2, { emit: i2 }) {
  let j2 = e2, I2 = i2, L2 = a(), { t: z2, dir: B2 } = O(), H2 = P(), { filterGroups: U2 } = G(), q2 = v(``), J2 = f({ get: () => j2.searchTerm ?? q2.value, set: (e3) => {
    q2.value = e3, I2(`update:searchTerm`, e3);
  } }), oe = b(() => A(j2.filter, { placeholder: z2(`dropdownMenu.search`), variant: `none` })), se = re(b(() => j2.portal)), ce = W(R(j2, `sub`, `items`, `portal`, `labelKey`, `descriptionKey`, `checkedIcon`, `loadingIcon`, `externalIcon`, `size`, `filter`, `filterFields`, `ignoreFilter`, `searchTerm`, `class`, `ui`, `uiOverride`), I2), le = () => E(L2, [`default`]), [ue, Y] = ne(), de = f(() => B2.value === `rtl` ? H2.ui.icons.chevronLeft : H2.ui.icons.chevronRight), X = f(() => j2.items?.length ? k(j2.items) ? j2.items : [j2.items] : []), Z = (e3) => !!e3.type && [`label`, `separator`].includes(e3.type), Q = f(() => {
    if (!j2.filter || j2.ignoreFilter || !J2.value) return X.value;
    let e3 = Array.isArray(j2.filterFields) && j2.filterFields.length ? j2.filterFields : [j2.labelKey];
    return U2(X.value, J2.value, { fields: e3, isStructural: Z });
  }), $ = f(() => Q.value.some((e3) => e3.some((e4) => !Z(e4))));
  return (i3, a2) => (p(), l(m, null, [n(o(ue), null, { default: h(({ item: t2, active: a3, index: f2 }) => [S(i3.$slots, t2.slot || `item`, { item: t2, index: f2, ui: e2.ui }, () => [S(i3.$slots, t2.slot ? `${t2.slot}-leading` : `item-leading`, { item: t2, active: a3, index: f2, ui: e2.ui }, () => [t2.loading ? (p(), _(F, { key: 0, name: e2.loadingIcon || o(H2).ui.icons.loading, "data-slot": `itemLeadingIcon`, class: s(e2.ui.itemLeadingIcon({ class: [e2.uiOverride?.itemLeadingIcon, t2.ui?.itemLeadingIcon], color: t2?.color, loading: true })) }, null, 8, [`name`, `class`])) : t2.icon ? (p(), _(F, { key: 1, name: t2.icon, "data-slot": `itemLeadingIcon`, class: s(e2.ui.itemLeadingIcon({ class: [e2.uiOverride?.itemLeadingIcon, t2.ui?.itemLeadingIcon], color: t2?.color, active: a3 })) }, null, 8, [`name`, `class`])) : t2.avatar ? (p(), _(M, d({ key: 2, size: t2.ui?.itemLeadingAvatarSize || e2.uiOverride?.itemLeadingAvatarSize || e2.ui.itemLeadingAvatarSize() }, t2.avatar, { "data-slot": `itemLeadingAvatar`, class: e2.ui.itemLeadingAvatar({ class: [e2.uiOverride?.itemLeadingAvatar, t2.ui?.itemLeadingAvatar], active: a3 }) }), null, 16, [`size`, `class`])) : C(``, true)]), o(D)(t2, j2.labelKey) || L2[t2.slot ? `${t2.slot}-label` : `item-label`] || o(D)(t2, j2.descriptionKey) || L2[t2.slot ? `${t2.slot}-description` : `item-description`] ? (p(), l(`span`, { key: 0, "data-slot": `itemWrapper`, class: s(e2.ui.itemWrapper({ class: [e2.uiOverride?.itemWrapper, t2.ui?.itemWrapper] })) }, [c(`span`, { "data-slot": `itemLabel`, class: s(e2.ui.itemLabel({ class: [e2.uiOverride?.itemLabel, t2.ui?.itemLabel], active: a3 })) }, [S(i3.$slots, t2.slot ? `${t2.slot}-label` : `item-label`, { item: t2, active: a3, index: f2 }, () => [r(g(o(D)(t2, j2.labelKey)), 1)]), t2.target === `_blank` && e2.externalIcon !== false ? (p(), _(F, { key: 0, name: typeof e2.externalIcon == `string` ? e2.externalIcon : o(H2).ui.icons.external, "data-slot": `itemLabelExternalIcon`, class: s(e2.ui.itemLabelExternalIcon({ class: [e2.uiOverride?.itemLabelExternalIcon, t2.ui?.itemLabelExternalIcon], color: t2?.color, active: a3 })) }, null, 8, [`name`, `class`])) : C(``, true)], 2), o(D)(t2, j2.descriptionKey) || L2[t2.slot ? `${t2.slot}-description` : `item-description`] ? (p(), l(`span`, { key: 0, "data-slot": `itemDescription`, class: s(e2.ui.itemDescription({ class: [e2.uiOverride?.itemDescription, t2.ui?.itemDescription] })) }, [S(i3.$slots, t2.slot ? `${t2.slot}-description` : `item-description`, { item: t2, active: a3, index: f2 }, () => [r(g(o(D)(t2, j2.descriptionKey)), 1)])], 2)) : C(``, true)], 2)) : C(``, true), c(`span`, { "data-slot": `itemTrailing`, class: s(e2.ui.itemTrailing({ class: [e2.uiOverride?.itemTrailing, t2.ui?.itemTrailing] })) }, [S(i3.$slots, t2.slot ? `${t2.slot}-trailing` : `item-trailing`, { item: t2, active: a3, index: f2, ui: e2.ui }, () => [t2.children?.length ? (p(), _(F, { key: 0, name: de.value, "data-slot": `itemTrailingIcon`, class: s(e2.ui.itemTrailingIcon({ class: [e2.uiOverride?.itemTrailingIcon, t2.ui?.itemTrailingIcon], color: t2?.color, active: a3 })) }, null, 8, [`name`, `class`])) : t2.kbds?.length ? (p(), l(`span`, { key: 1, "data-slot": `itemTrailingKbds`, class: s(e2.ui.itemTrailingKbds({ class: [e2.uiOverride?.itemTrailingKbds, t2.ui?.itemTrailingKbds] })) }, [(p(true), l(m, null, u(t2.kbds, (n2, r2) => (p(), _(ie, d({ key: r2, size: t2.ui?.itemTrailingKbdsSize || e2.uiOverride?.itemTrailingKbdsSize || e2.ui.itemTrailingKbdsSize() }, { ref_for: true }, typeof n2 == `string` ? { value: n2 } : n2), null, 16, [`size`]))), 128))], 2)) : C(``, true)]), n(o(V).ItemIndicator, { "as-child": `` }, { default: h(() => [n(F, { name: e2.checkedIcon || o(H2).ui.icons.check, "data-slot": `itemTrailingIcon`, class: s(e2.ui.itemTrailingIcon({ class: [e2.uiOverride?.itemTrailingIcon, t2.ui?.itemTrailingIcon], color: t2?.color })) }, null, 8, [`name`, `class`])]), _: 2 }, 1024)], 2)])]), _: 3 }), n(o(V).Portal, t(w(o(se))), { default: h(() => [(p(), _(x(e2.sub ? o(V).SubContent : o(V).Content), d({ "data-slot": `content`, class: e2.ui.content({ class: [e2.uiOverride?.content, j2.class] }) }, o(ce)), { default: h(() => [e2.filter ? (p(), _(o(V).Filter, { key: 0, modelValue: J2.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => J2.value = e3), "as-child": `` }, { default: h(() => [n(ae, d({ autofocus: ``, autocomplete: `off`, size: e2.size }, oe.value, { "data-slot": `input`, class: e2.ui.input({ class: e2.uiOverride?.input }), onChange: a2[0] || (a2[0] = T(() => {
  }, [`stop`])) }), null, 16, [`size`, `class`])]), _: 1 }, 8, [`modelValue`])) : C(``, true), S(i3.$slots, `content-top`, { sub: e2.sub ?? false }), !J2.value || $.value ? (p(), l(`div`, { key: 1, role: `presentation`, "data-slot": `viewport`, class: s(e2.ui.viewport({ class: e2.uiOverride?.viewport })) }, [(p(true), l(m, null, u(Q.value, (t2, r2) => (p(), _(o(V).Group, { key: `group-${r2}`, "data-slot": `group`, class: s(e2.ui.group({ class: e2.uiOverride?.group })) }, { default: h(() => [(p(true), l(m, null, u(t2, (t3, a3) => (p(), l(m, { key: `group-${r2}-${a3}` }, [t3.type === `label` ? (p(), _(o(V).Label, { key: 0, "data-slot": `label`, class: s(e2.ui.label({ class: [e2.uiOverride?.label, t3.ui?.label, t3.class] })) }, { default: h(() => [n(o(Y), { item: t3, index: a3 }, null, 8, [`item`, `index`])]), _: 2 }, 1032, [`class`])) : t3.type === `separator` ? (p(), _(o(V).Separator, { key: 1, "data-slot": `separator`, class: s(e2.ui.separator({ class: [e2.uiOverride?.separator, t3.ui?.separator, t3.class] })) }, null, 8, [`class`])) : t3?.children?.length ? (p(), _(o(V).Sub, { key: 2, open: t3.open, "default-open": t3.defaultOpen }, { default: h(() => [n(o(V).SubTrigger, { as: `button`, type: `button`, disabled: t3.disabled, "text-value": o(D)(t3, j2.labelKey), "data-slot": `item`, class: s(e2.ui.item({ class: [e2.uiOverride?.item, t3.ui?.item, t3.class], color: t3?.color })) }, { default: h(() => [n(o(Y), { item: t3, index: a3 }, null, 8, [`item`, `index`])]), _: 2 }, 1032, [`disabled`, `text-value`, `class`]), n(K, d({ sub: ``, class: t3.ui?.content, ui: e2.ui, "ui-override": e2.uiOverride, portal: e2.portal, items: t3.children, align: `start`, "align-offset": -4, "side-offset": 3, "label-key": e2.labelKey, "description-key": e2.descriptionKey, "checked-icon": e2.checkedIcon, "loading-icon": e2.loadingIcon, "external-icon": e2.externalIcon, size: e2.size, filter: t3.filter, "filter-fields": t3.filterFields || e2.filterFields, "ignore-filter": t3.ignoreFilter ?? e2.ignoreFilter }, { ref_for: true }, t3.content), y({ _: 2 }, [u(le(), (e3, t4) => ({ name: t4, fn: h((e4) => [S(i3.$slots, t4, d({ ref_for: true }, e4))]) }))]), 1040, [`class`, `ui`, `ui-override`, `portal`, `items`, `label-key`, `description-key`, `checked-icon`, `loading-icon`, `external-icon`, `size`, `filter`, `filter-fields`, `ignore-filter`])]), _: 2 }, 1032, [`open`, `default-open`])) : t3.type === `checkbox` ? (p(), _(o(V).CheckboxItem, { key: 3, "model-value": t3.checked, disabled: t3.disabled, "text-value": o(D)(t3, j2.labelKey), "data-slot": `item`, class: s(e2.ui.item({ class: [e2.uiOverride?.item, t3.ui?.item, t3.class], color: t3?.color })), "onUpdate:modelValue": t3.onUpdateChecked, onSelect: t3.onSelect }, { default: h(() => [n(o(Y), { item: t3, index: a3 }, null, 8, [`item`, `index`])]), _: 2 }, 1032, [`model-value`, `disabled`, `text-value`, `class`, `onUpdate:modelValue`, `onSelect`])) : (p(), _(ee, d({ key: 4, ref_for: true }, o(N)(t3), { custom: `` }), { default: h(({ active: r3, ...i4 }) => [n(o(V).Item, { "as-child": ``, disabled: t3.disabled, "text-value": o(D)(t3, j2.labelKey), onSelect: t3.onSelect }, { default: h(() => [n(te, d({ ref_for: true }, i4, { "data-slot": `item`, class: e2.ui.item({ class: [e2.uiOverride?.item, t3.ui?.item, t3.class], color: t3?.color, active: r3 }) }), { default: h(() => [n(o(Y), { item: t3, active: r3, index: a3 }, null, 8, [`item`, `active`, `index`])]), _: 2 }, 1040, [`class`])]), _: 2 }, 1032, [`disabled`, `text-value`, `onSelect`])]), _: 2 }, 1040))], 64))), 128))]), _: 2 }, 1032, [`class`]))), 128))], 2)) : C(``, true), J2.value && !$.value ? (p(), l(`div`, { key: 2, "data-slot": `empty`, class: s(e2.ui.empty({ class: e2.uiOverride?.empty })) }, [S(i3.$slots, `empty`, { searchTerm: J2.value }, () => [r(g(o(z2)(`dropdownMenu.noMatch`, { searchTerm: J2.value })), 1)])], 2)) : C(``, true), S(i3.$slots, `default`), S(i3.$slots, `content-bottom`, { sub: e2.sub ?? false })]), _: 3 }, 16, [`class`]))]), _: 3 }, 16)], 64));
} }, q = { slots: { content: `min-w-32 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col`, input: `border-b border-default`, empty: `text-center text-muted`, viewport: `relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1`, arrow: `fill-bg stroke-default`, group: `p-1 isolate`, label: `w-full flex items-center font-semibold text-highlighted`, separator: `-mx-1 my-1 h-px bg-border`, item: `group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75`, itemLeadingIcon: `shrink-0`, itemLeadingAvatar: `shrink-0`, itemLeadingAvatarSize: ``, itemTrailing: `ms-auto inline-flex gap-1.5 items-center`, itemTrailingIcon: `shrink-0`, itemTrailingKbds: `hidden lg:inline-flex items-center shrink-0`, itemTrailingKbdsSize: ``, itemWrapper: `flex-1 flex flex-col text-start min-w-0`, itemLabel: `truncate`, itemDescription: `truncate text-muted`, itemLabelExternalIcon: `inline-block size-3 align-top text-dimmed` }, variants: { color: { primary: ``, secondary: ``, success: ``, info: ``, warning: ``, error: ``, neutral: `` }, active: { true: { item: `text-highlighted before:bg-elevated`, itemLeadingIcon: `text-default` }, false: { item: [`text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50`, `transition-colors before:transition-colors`], itemLeadingIcon: [`text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default`, `transition-colors`] } }, loading: { true: { itemLeadingIcon: `animate-spin` } }, size: { xs: { label: `p-1 text-xs gap-1`, item: `p-1 text-xs gap-1`, empty: `p-2 text-xs`, itemLeadingIcon: `size-4`, itemLeadingAvatarSize: `3xs`, itemTrailingIcon: `size-4`, itemTrailingKbds: `gap-0.5`, itemTrailingKbdsSize: `sm` }, sm: { label: `p-1.5 text-xs gap-1.5`, item: `p-1.5 text-xs gap-1.5`, empty: `p-2.5 text-xs`, itemLeadingIcon: `size-4`, itemLeadingAvatarSize: `3xs`, itemTrailingIcon: `size-4`, itemTrailingKbds: `gap-0.5`, itemTrailingKbdsSize: `sm` }, md: { label: `p-1.5 text-sm gap-1.5`, item: `p-1.5 text-sm gap-1.5`, empty: `p-2.5 text-sm`, itemLeadingIcon: `size-5`, itemLeadingAvatarSize: `2xs`, itemTrailingIcon: `size-5`, itemTrailingKbds: `gap-0.5`, itemTrailingKbdsSize: `md` }, lg: { label: `p-2 text-sm gap-2`, item: `p-2 text-sm gap-2`, empty: `p-3 text-sm`, itemLeadingIcon: `size-5`, itemLeadingAvatarSize: `2xs`, itemTrailingIcon: `size-5`, itemTrailingKbds: `gap-1`, itemTrailingKbdsSize: `md` }, xl: { label: `p-2 text-base gap-2`, item: `p-2 text-base gap-2`, empty: `p-3 text-base`, itemLeadingIcon: `size-6`, itemLeadingAvatarSize: `xs`, itemTrailingIcon: `size-6`, itemTrailingKbds: `gap-1`, itemTrailingKbdsSize: `lg` } } }, compoundVariants: [{ color: `primary`, active: false, class: { item: `text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10`, itemLeadingIcon: `text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary` } }, { color: `secondary`, active: false, class: { item: `text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10`, itemLeadingIcon: `text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary` } }, { color: `success`, active: false, class: { item: `text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10`, itemLeadingIcon: `text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success` } }, { color: `info`, active: false, class: { item: `text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10`, itemLeadingIcon: `text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info` } }, { color: `warning`, active: false, class: { item: `text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10`, itemLeadingIcon: `text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning` } }, { color: `error`, active: false, class: { item: `text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10`, itemLeadingIcon: `text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error` } }, { color: `primary`, active: true, class: { item: `text-primary before:bg-primary/10`, itemLeadingIcon: `text-primary` } }, { color: `secondary`, active: true, class: { item: `text-secondary before:bg-secondary/10`, itemLeadingIcon: `text-secondary` } }, { color: `success`, active: true, class: { item: `text-success before:bg-success/10`, itemLeadingIcon: `text-success` } }, { color: `info`, active: true, class: { item: `text-info before:bg-info/10`, itemLeadingIcon: `text-info` } }, { color: `warning`, active: true, class: { item: `text-warning before:bg-warning/10`, itemLeadingIcon: `text-warning` } }, { color: `error`, active: true, class: { item: `text-error before:bg-error/10`, itemLeadingIcon: `text-error` } }], defaultVariants: { size: `md` } }, J = { __name: `DropdownMenu`, props: e({ size: { type: null, required: false }, items: { type: null, required: false }, checkedIcon: { type: null, required: false }, loadingIcon: { type: null, required: false }, externalIcon: { type: [Boolean, String], required: false, skipCheck: true, default: true }, content: { type: Object, required: false }, arrow: { type: [Boolean, Object], required: false }, portal: { type: [Boolean, String], required: false, skipCheck: true, default: true }, labelKey: { type: null, required: false, default: `label` }, descriptionKey: { type: null, required: false, default: `description` }, filter: { type: [Boolean, Object], required: false, default: false }, filterFields: { type: Array, required: false }, ignoreFilter: { type: Boolean, required: false, default: false }, disabled: { type: Boolean, required: false }, class: { type: null, required: false }, ui: { type: Object, required: false }, defaultOpen: { type: Boolean, required: false }, open: { type: Boolean, required: false }, modal: { type: Boolean, required: false, default: true } }, { searchTerm: { type: String, default: `` }, searchTermModifiers: {} }), emits: e([`update:open`], [`update:searchTerm`]), setup(e2, { emit: r2 }) {
  let c2 = e2, l2 = r2, m2 = a(), g2 = i(e2, `searchTerm`, { type: String, default: `` }), v2 = P(), x2 = j(`dropdownMenu`, c2), T2 = W(L(c2, `defaultOpen`, `open`, `modal`), l2), D2 = b(() => A(c2.content, { side: `bottom`, sideOffset: 8, collisionPadding: 8 })), O2 = b(() => A(c2.arrow, { rounded: true })), k2 = () => E(m2, [`default`]), M2 = f(() => I({ extend: I(q), ...v2.ui?.dropdownMenu || {} })({ size: c2.size }));
  return (r3, i2) => (p(), _(o(B), t(w(o(T2))), { default: h(({ open: a2 }) => [m2.default ? (p(), _(o(U), { key: 0, "as-child": ``, class: s(c2.class), disabled: e2.disabled }, { default: h(() => [S(r3.$slots, `default`, { open: a2 })]), _: 2 }, 1032, [`class`, `disabled`])) : C(``, true), n(K, d({ "search-term": g2.value, "onUpdate:searchTerm": i2[0] || (i2[0] = (e3) => g2.value = e3), class: M2.value.content({ class: [!m2.default && c2.class, o(x2)?.content] }), ui: M2.value, "ui-override": o(x2) }, D2.value, { items: e2.items, portal: e2.portal, "label-key": e2.labelKey, "description-key": e2.descriptionKey, "checked-icon": e2.checkedIcon, "loading-icon": e2.loadingIcon, "external-icon": e2.externalIcon, size: e2.size, filter: e2.filter, "filter-fields": e2.filterFields, "ignore-filter": e2.ignoreFilter }), y({ default: h(() => [e2.arrow ? (p(), _(o(H), d({ key: 0 }, O2.value, { "data-slot": `arrow`, class: M2.value.arrow({ class: o(x2)?.arrow }) }), null, 16, [`class`])) : C(``, true)]), _: 2 }, [u(k2(), (e3, n2) => ({ name: n2, fn: h((e4) => [S(r3.$slots, n2, t(w(e4)))]) }))]), 1040, [`search-term`, `class`, `ui`, `ui-override`, `items`, `portal`, `label-key`, `description-key`, `checked-icon`, `loading-icon`, `external-icon`, `size`, `filter`, `filter-fields`, `ignore-filter`])]), _: 3 }, 16));
} };
export {
  G as n,
  J as t
};
