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-Ci9kEgM7.js";
import { l as T } from "./vue.runtime.esm-bundler-CWCE91rd.js";
import { I as E, K as D, R as O, S as k, U as A, V as j, X as M, _ as N, b as P, i as ee, m as te, n as F, r as I, x as L, y as R } from "./Button-CzGEASGR.js";
import { A as z, k as ne, r as re } from "./dist-D5YmEqpM.js";
import { i as ie, n as ae, x as oe } from "./Tooltip-CmrGYuQV.js";
import { G as B, c as V, i as H, l as U, s as W } from "./namespaced-DmrIZId-.js";
import { t as se } from "./Input-BVMp8rOG.js";
function G() {
  let { contains: e2, startsWith: t2 } = B({ 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 = O(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 k2 = e2, P2 = i2, L2 = a(), { t: z2, dir: B2 } = E(), V2 = M(), { filterGroups: U2 } = G(), W2 = v(``), q2 = f({ get: () => k2.searchTerm ?? W2.value, set: (e3) => {
    W2.value = e3, P2(`update:searchTerm`, e3);
  } }), J2 = b(() => D(k2.filter, { placeholder: z2(`dropdownMenu.search`), variant: `none` })), ce = ie(b(() => k2.portal)), le = oe(ne(k2, `sub`, `items`, `portal`, `labelKey`, `descriptionKey`, `checkedIcon`, `loadingIcon`, `externalIcon`, `size`, `filter`, `filterFields`, `ignoreFilter`, `searchTerm`, `class`, `ui`, `uiOverride`), P2), ue = () => A(L2, [`default`]), [de, Y] = re(), fe = f(() => B2.value === `rtl` ? V2.ui.icons.chevronLeft : V2.ui.icons.chevronRight), X = f(() => k2.items?.length ? j(k2.items) ? k2.items : [k2.items] : []), Z = (e3) => !!e3.type && [`label`, `separator`].includes(e3.type), Q = f(() => {
    if (!k2.filter || k2.ignoreFilter || !q2.value) return X.value;
    let e3 = Array.isArray(k2.filterFields) && k2.filterFields.length ? k2.filterFields : [k2.labelKey];
    return U2(X.value, q2.value, { fields: e3, isStructural: Z });
  }), $ = f(() => Q.value.some((e3) => e3.some((e4) => !Z(e4))));
  return (i3, a2) => (p(), l(m, null, [n(o(de), 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(), _(R, { key: 0, name: e2.loadingIcon || o(V2).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(), _(R, { 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(), _(N, 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(O)(t2, k2.labelKey) || L2[t2.slot ? `${t2.slot}-label` : `item-label`] || o(O)(t2, k2.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(O)(t2, k2.labelKey)), 1)]), t2.target === `_blank` && e2.externalIcon !== false ? (p(), _(R, { key: 0, name: typeof e2.externalIcon == `string` ? e2.externalIcon : o(V2).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(O)(t2, k2.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(O)(t2, k2.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(), _(R, { key: 0, name: fe.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(), _(ae, 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(H).ItemIndicator, { "as-child": `` }, { default: h(() => [n(R, { name: e2.checkedIcon || o(V2).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(H).Portal, t(w(o(ce))), { default: h(() => [n(o(te), null, { default: h(() => [(p(), _(x(e2.sub ? o(H).SubContent : o(H).Content), d({ "data-slot": `content`, class: e2.ui.content({ class: [e2.uiOverride?.content, k2.class] }) }, o(le)), { default: h(() => [e2.filter ? (p(), _(o(H).Filter, { key: 0, modelValue: q2.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => q2.value = e3), "as-child": `` }, { default: h(() => [n(se, d({ autofocus: ``, autocomplete: `off`, size: e2.size }, J2.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 }), !q2.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(H).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(H).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(H).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(H).Sub, { key: 2, open: t3.open, "default-open": t3.defaultOpen }, { default: h(() => [n(o(H).SubTrigger, { as: `button`, type: `button`, disabled: t3.disabled, "text-value": o(O)(t3, k2.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(ue(), (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(H).CheckboxItem, { key: 3, "model-value": t3.checked, disabled: t3.disabled, "text-value": o(O)(t3, k2.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(), _(F, d({ key: 4, ref_for: true }, o(ee)(t3), { custom: `` }), { default: h(({ active: r3, ...i4 }) => [n(o(H).Item, { "as-child": ``, disabled: t3.disabled, "text-value": o(O)(t3, k2.labelKey), onSelect: t3.onSelect }, { default: h(() => [n(I, 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), q2.value && !$.value ? (p(), l(`div`, { key: 2, "data-slot": `empty`, class: s(e2.ui.empty({ class: e2.uiOverride?.empty })) }, [S(i3.$slots, `empty`, { searchTerm: q2.value }, () => [r(g(o(z2)(`dropdownMenu.noMatch`, { searchTerm: q2.value })), 1)])], 2)) : C(``, true), S(i3.$slots, `default`), S(i3.$slots, `content-bottom`, { sub: e2.sub ?? false })]), _: 3 }, 16, [`class`]))]), _: 3 })]), _: 3 }, 16)], 64));
} }, q = { slots: { content: `min-w-32 max-h-(--reka-dropdown-menu-content-available-height) 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 = k(`dropdownMenu`, c2), x2 = M(), T2 = L(z(v2, `defaultOpen`, `open`, `modal`), l2), E2 = b(() => D(v2.content, { side: `bottom`, sideOffset: 8, collisionPadding: 8 })), O2 = b(() => D(v2.arrow, { rounded: true })), j2 = () => A(m2, [`default`]), N2 = f(() => P({ extend: P(q), ...x2.ui?.dropdownMenu || {} })({ size: v2.size }));
  return (e3, r3) => (p(), _(o(V), t(w(o(T2))), { default: h(({ open: i2 }) => [m2.default ? (p(), _(o(W), { key: 0, "as-child": ``, class: s(o(v2).class), disabled: o(v2).disabled }, { default: h(() => [S(e3.$slots, `default`, { open: i2 })]), _: 2 }, 1032, [`class`, `disabled`])) : C(``, true), n(K, d({ "search-term": g2.value, "onUpdate:searchTerm": r3[0] || (r3[0] = (e4) => g2.value = e4), class: N2.value.content({ class: [!m2.default && o(v2).class, o(v2).ui?.content] }), ui: N2.value, "ui-override": o(v2).ui }, E2.value, { items: o(v2).items, portal: o(v2).portal, "label-key": o(v2).labelKey, "description-key": o(v2).descriptionKey, "checked-icon": o(v2).checkedIcon, "loading-icon": o(v2).loadingIcon, "external-icon": o(v2).externalIcon, size: o(v2).size, filter: o(v2).filter, "filter-fields": o(v2).filterFields, "ignore-filter": o(v2).ignoreFilter }), y({ default: h(() => [o(v2).arrow ? (p(), _(o(U), d({ key: 0 }, O2.value, { "data-slot": `arrow`, class: N2.value.arrow({ class: o(v2).ui?.arrow }) }), null, 16, [`class`])) : C(``, true)]), _: 2 }, [u(j2(), (n2, r4) => ({ name: r4, fn: h((n3) => [S(e3.$slots, r4, t(w(n3)))]) }))]), 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
};
