import { o as pt } from "./rolldown-runtime.js";
import { i as mt, t as bt } from "./vendor/react.js";
import { _ as ht, g as ke, o as Ze, p as z, u as oe } from "./safeReact.js";
import { i as et, o as Pe, r as gt } from "./useRenderElement.js";
import { n as te, t as U } from "./useIsoLayoutEffect.js";
import { n as tt, t as vt } from "./useAnimationFrame.js";
import { o as $ } from "./useTransitionStatus.js";
import { n as ve, t as Le } from "./useTimeout.js";
import { r as rt, s as nt } from "./detectBrowser.js";
import { n as E, r as Q, t as K } from "./shadowDom.js";
import { o as We, s as ot, t as Ye } from "./element.js";
import { B as st, D as De, F as yt, H as Ge, N as kt, O as Ne, P as wt, R as He, S as Rt, V as Ve, k as _e, v as Et, z as we } from "./popupStateMapping.js";
import { a as Tt, i as St, n as qe, o as xt, t as Ct } from "./event.js";
import { c as Ot } from "./composite.js";
import { t as P } from "./owner.js";
import { t as N } from "./addEventListener.js";
import { C as Ft, c as It, t as re } from "./createBaseUIEventDetails.js";
import { t as de } from "./useValueAsRef.js";
import { t as At } from "./useValueChanged.js";
var y = /* @__PURE__ */ pt(mt()), ee = 0;
function pe(e, n = {}) {
  const { preventScroll: t = !1, cancelPrevious: r = !0, sync: s = !1 } = n;
  r && cancelAnimationFrame(ee);
  const c = () => e?.focus({ preventScroll: t });
  if (s)
    return c(), et;
  const o = requestAnimationFrame(c);
  return ee = o, () => {
    ee === o && (cancelAnimationFrame(o), ee = 0);
  };
}
var me = {
  inert: /* @__PURE__ */ new WeakMap(),
  "aria-hidden": /* @__PURE__ */ new WeakMap()
}, Be = "data-base-ui-inert", ye = {
  inert: /* @__PURE__ */ new WeakSet(),
  "aria-hidden": /* @__PURE__ */ new WeakSet()
}, J = /* @__PURE__ */ new WeakMap(), be = 0;
function Mt(e) {
  return ye[e];
}
function it(e) {
  return e ? ht(e) ? e.host : it(e.parentNode) : null;
}
var he = (e, n) => n.map((t) => {
  if (e.contains(t)) return t;
  const r = it(t);
  return e.contains(r) ? r : null;
}).filter((t) => t != null), Xe = (e) => {
  const n = /* @__PURE__ */ new Set();
  return e.forEach((t) => {
    let r = t;
    for (; r && !n.has(r); )
      n.add(r), r = r.parentNode;
  }), n;
}, $e = (e, n, t) => {
  const r = [], s = (c) => {
    !c || t.has(c) || Array.from(c.children).forEach((o) => {
      Ze(o) !== "script" && (n.has(o) ? s(o) : r.push(o));
    });
  };
  return s(e), r;
};
function Pt(e, n, t, r, { mark: s = !0, markerIgnoreElements: c = [] }) {
  const o = r ? "inert" : t ? "aria-hidden" : null;
  let p = null, R = null;
  const x = he(n, e), C = s ? he(n, c) : [], O = new Set(C), _ = s ? $e(n, Xe(x), new Set(x)).filter((i) => !O.has(i)) : [], L = [], M = [];
  if (o) {
    const i = me[o], a = Mt(o);
    R = a, p = i;
    const f = he(n, Array.from(n.querySelectorAll("[aria-live]"))), l = x.concat(f);
    $e(n, Xe(l), new Set(l)).forEach((T) => {
      const k = T.getAttribute(o), S = k !== null && k !== "false", W = (i.get(T) || 0) + 1;
      i.set(T, W), L.push(T), W === 1 && S && a.add(T), S || T.setAttribute(o, o === "inert" ? "" : "true");
    });
  }
  return s && _.forEach((i) => {
    const a = (J.get(i) || 0) + 1;
    J.set(i, a), M.push(i), a === 1 && i.setAttribute(Be, "");
  }), be += 1, () => {
    p && L.forEach((i) => {
      const a = (p.get(i) || 0) - 1;
      p.set(i, a), a || (!R?.has(i) && o && i.removeAttribute(o), R?.delete(i));
    }), s && M.forEach((i) => {
      const a = (J.get(i) || 0) - 1;
      J.set(i, a), a || i.removeAttribute(Be);
    }), be -= 1, be || (me.inert = /* @__PURE__ */ new WeakMap(), me["aria-hidden"] = /* @__PURE__ */ new WeakMap(), ye.inert = /* @__PURE__ */ new WeakSet(), ye["aria-hidden"] = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new WeakMap());
  };
}
function je(e, n = {}) {
  const { ariaHidden: t = !1, inert: r = !1, mark: s = !0, markerIgnoreElements: c = [] } = n, o = P(e[0]).body;
  return Pt(e, o, t, r, {
    mark: s,
    markerIgnoreElements: c
  });
}
var ne = bt();
function Lt(e, n) {
  const t = oe(Q(e));
  return e instanceof t.KeyboardEvent ? "keyboard" : e instanceof t.FocusEvent ? n || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof t.MouseEvent ? n || (e.detail === 0 ? "keyboard" : "mouse") : "";
}
var ze = 20, j = [];
function Re() {
  j = j.filter((e) => e.deref()?.isConnected);
}
function Wt(e) {
  Re(), e && Ze(e) !== "body" && (j.push(new WeakRef(e)), j.length > ze && (j = j.slice(-ze)));
}
function ge() {
  return Re(), j[j.length - 1]?.deref();
}
function Yt(e) {
  return e ? we(e) ? e : st(e)[0] || e : null;
}
function Ke(e, n) {
  if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !n.current.includes("floating") && !e.getAttribute("role")?.includes("dialog")) return;
  const t = kt(e).filter((s) => {
    const c = s.getAttribute("data-tabindex") || "";
    return we(s) || s.hasAttribute("data-tabindex") && !c.startsWith("-");
  }), r = e.getAttribute("tabindex");
  n.current.includes("floating") || t.length === 0 ? r !== "0" && e.setAttribute("tabindex", "0") : (r !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
}
function dr(e) {
  const { context: n, children: t, disabled: r = !1, initialFocus: s = !0, returnFocus: c = !0, restoreFocus: o = !1, modal: p = !0, closeOnFocusOut: R = !0, openInteractionType: x = "", nextFocusableElement: C, previousFocusableElement: O, beforeContentFocusGuardRef: _, externalTree: L, getInsideElements: M } = e, i = "rootStore" in n ? n.rootStore : n, a = i.useState("open"), f = i.useState("domReferenceElement"), l = i.useState("floatingElement"), { events: T, dataRef: k } = i.context, S = te(() => k.current.floatingContext?.nodeId), W = s === !1, F = We(f) && W, D = y.useRef(["content"]), q = de(s), se = de(c), Ee = de(x), H = Et(L), b = Rt(), V = y.useRef(!1), Z = y.useRef(!1), ie = y.useRef(!1), Te = y.useRef(null), Se = y.useRef(""), le = y.useRef(""), ce = y.useRef(null), ae = y.useRef(null), lt = Pe(ce, _, b?.beforeInsideRef), ct = Pe(ae, b?.afterInsideRef), xe = ve(), Ce = ve(), Oe = tt(), at = b != null, m = Ye(l), B = te((u = m) => u ? st(u) : []), X = te(() => M?.().filter((u) => u != null) ?? []);
  y.useEffect(() => {
    if (r || !p) return;
    function u(w) {
      w.key === "Tab" && E(m, K(P(m))) && B().length === 0 && !F && xt(w);
    }
    return N(P(m), "keydown", u);
  }, [
    r,
    f,
    m,
    p,
    D,
    F,
    B
  ]), y.useEffect(() => {
    if (r || !a) return;
    const u = P(m);
    function w() {
      ie.current = !1;
    }
    function Y(h) {
      const v = Q(h), I = X();
      ie.current = !(E(l, v) || E(f, v) || E(b?.portalNode, v) || I.some((g) => g === v || E(g, v))), le.current = h.pointerType || "keyboard", v?.closest("[data-base-ui-click-trigger]") && (Z.current = !0);
    }
    function d() {
      le.current = "keyboard";
    }
    return _e(N(u, "pointerdown", Y, !0), N(u, "pointerup", w, !0), N(u, "pointercancel", w, !0), N(u, "keydown", d, !0));
  }, [
    r,
    l,
    f,
    m,
    a,
    b,
    X
  ]), y.useEffect(() => {
    if (r || !R) return;
    const u = P(m);
    function w() {
      Z.current = !0, Ce.start(0, () => {
        Z.current = !1;
      });
    }
    function Y(I) {
      const g = Q(I);
      we(g) && (Te.current = g);
    }
    function d(I) {
      const g = I.relatedTarget, G = I.currentTarget, ue = Q(I);
      queueMicrotask(() => {
        const Ie = S(), Ae = i.context.triggerElements, ut = X(), ft = g?.hasAttribute(De("focus-guard")) && [
          ce.current,
          ae.current,
          b?.beforeInsideRef.current,
          b?.afterInsideRef.current,
          b?.beforeOutsideRef.current,
          b?.afterOutsideRef.current,
          $(O),
          $(C)
        ].includes(g), dt = !(E(f, g) || E(l, g) || E(g, l) || E(b?.portalNode, g) || ut.some((A) => A === g || E(A, g)) || g != null && Ae.hasElement(g) || Ae.hasMatchingElement((A) => E(A, g)) || ft || H && (Ge(H.nodesRef.current, Ie).find((A) => E(A.context?.elements.floating, g) || E(A.context?.elements.domReference, g)) || Ve(H.nodesRef.current, Ie).find((A) => [A.context?.elements.floating, Ye(A.context?.elements.floating)].includes(g) || A.context?.elements.domReference === g)));
        if (G === f && m && Ke(m, D), o && G !== f && !Ot(ue) && K(u) === u.body) {
          if (z(m) && (m.focus(), o === "popup")) {
            Oe.request(() => {
              m.focus();
            });
            return;
          }
          const A = B(), fe = Te.current, Me = (fe && A.includes(fe) ? fe : null) || A[A.length - 1] || m;
          z(Me) && Me.focus();
        }
        if (k.current.insideReactTree) {
          k.current.insideReactTree = !1;
          return;
        }
        (F || !p) && g && dt && !Z.current && (F || g !== ge()) && (V.current = !0, i.setOpen(!1, re(It, I)));
      });
    }
    function h() {
      ie.current || (k.current.insideReactTree = !0, xe.start(0, () => {
        k.current.insideReactTree = !1;
      }));
    }
    const v = z(f) ? f : null;
    if (!(!l && !v))
      return _e(v && N(v, "focusout", d), v && N(v, "pointerdown", w), l && N(l, "focusin", Y), l && N(l, "focusout", d), l && b && N(l, "focusout", h, !0));
  }, [
    r,
    f,
    l,
    m,
    p,
    H,
    b,
    i,
    R,
    o,
    B,
    F,
    S,
    D,
    k,
    xe,
    Ce,
    Oe,
    C,
    O,
    X
  ]), y.useEffect(() => {
    if (r || !l || !a) return;
    const u = Array.from(b?.portalNode?.querySelectorAll(`[${De("portal")}]`) || []), w = (H ? Ve(H.nodesRef.current, S()) : []).find((h) => We(h.context?.elements.domReference || null))?.context?.elements.domReference, Y = je([
      l,
      ...u,
      ce.current,
      ae.current,
      b?.beforeOutsideRef.current,
      b?.afterOutsideRef.current,
      ...X(),
      w,
      $(O),
      $(C),
      F ? f : null
    ].filter((h) => h != null), {
      ariaHidden: p || F,
      mark: !1
    }), d = je([l, ...u].filter((h) => h != null));
    return () => {
      d(), Y();
    };
  }, [
    a,
    r,
    f,
    l,
    p,
    D,
    b,
    F,
    H,
    S,
    C,
    O,
    X
  ]), U(() => {
    if (!a || r || !z(m)) return;
    const u = K(P(m));
    queueMicrotask(() => {
      const w = q.current, Y = typeof w == "function" ? w(Ee.current || "") : w;
      if (Y === void 0 || Y === !1 || E(m, u)) return;
      let d = null;
      const h = () => (d == null && (d = B(m)), d[0] || m);
      let v;
      Y === !0 || Y === null ? v = h() : v = $(Y), v = v || h(), pe(v, { preventScroll: v === m });
    });
  }, [
    r,
    a,
    m,
    W,
    B,
    q,
    Ee
  ]), U(() => {
    if (r || !m) return;
    const u = P(m);
    Wt(K(u));
    function w(d) {
      if (d.open || (Se.current = Lt(d.nativeEvent, le.current)), d.reason === "trigger-hover" && d.nativeEvent.type === "mouseleave" && (V.current = !0), d.reason === "outside-press")
        if (d.nested) V.current = !1;
        else if (St(d.nativeEvent) || Tt(d.nativeEvent)) V.current = !1;
        else {
          let h = !1;
          P(m).createElement("div").focus({ get preventScroll() {
            return h = !0, !1;
          } }), h ? V.current = !1 : V.current = !0;
        }
    }
    T.on("openchange", w);
    function Y() {
      const d = se.current;
      let h = typeof d == "function" ? d(Se.current) : d;
      if (h === void 0 || h === !1) return null;
      if (h === null && (h = !0), typeof h == "boolean") {
        const I = f || ge();
        return I && I.isConnected ? I : null;
      }
      const v = f || ge();
      return $(h) || v || null;
    }
    return () => {
      T.off("openchange", w);
      const d = K(u), h = X(), v = E(l, d) || h.some((G) => G === d || E(G, d)) || H && Ge(H.nodesRef.current, S(), !1).some((G) => E(G.context?.elements.floating, d)), I = se.current, g = Y();
      queueMicrotask(() => {
        const G = Yt(g), ue = typeof I != "boolean";
        I && !V.current && z(G) && (!(!ue && G !== d && d !== u.body) || v) && G.focus({ preventScroll: !0 }), V.current = !1;
      });
    };
  }, [
    r,
    l,
    m,
    se,
    k,
    T,
    H,
    f,
    S,
    X
  ]), U(() => {
    if (!nt || a || !l) return;
    const u = K(P(l));
    !z(u) || !ot(u) || E(l, u) && u.blur();
  }, [a, l]), U(() => {
    if (!(r || !b))
      return b.setFocusManagerState({
        modal: p,
        closeOnFocusOut: R,
        open: a,
        onOpenChange: i.setOpen,
        domReference: f
      }), () => {
        b.setFocusManagerState(null);
      };
  }, [
    r,
    b,
    p,
    a,
    i,
    R,
    f
  ]), U(() => {
    if (!(r || !m))
      return Ke(m, D), () => {
        queueMicrotask(Re);
      };
  }, [
    r,
    m,
    D
  ]);
  const Fe = !r && (p ? !F : !0) && (at || p);
  return /* @__PURE__ */ (0, ne.jsxs)(y.Fragment, { children: [
    Fe && /* @__PURE__ */ (0, ne.jsx)(Ne, {
      "data-type": "inside",
      ref: lt,
      onFocus: (u) => {
        if (p) {
          const w = B();
          pe(w[w.length - 1]);
        } else b?.portalNode && (V.current = !1, He(u, b.portalNode) ? wt(f)?.focus() : $(O ?? b.beforeOutsideRef)?.focus());
      }
    }),
    t,
    Fe && /* @__PURE__ */ (0, ne.jsx)(Ne, {
      "data-type": "inside",
      ref: ct,
      onFocus: (u) => {
        p ? pe(B()[0]) : b?.portalNode && (R && (V.current = !0), He(u, b.portalNode) ? yt(f)?.focus() : $(C ?? b.afterOutsideRef)?.focus());
      }
    })
  ] });
}
function pr(e, n = {}) {
  const t = "rootStore" in e ? e.rootStore : e, r = t.context.dataRef, { enabled: s = !0, event: c = "click", toggle: o = !0, ignoreMouse: p = !1, stickIfOpen: R = !0, touchOpenDelay: x = 0, reason: C = Ft } = n, O = y.useRef(void 0), _ = tt(), L = ve(), M = y.useMemo(() => ({
    onPointerDown(i) {
      O.current = i.pointerType;
    },
    onMouseDown(i) {
      const a = O.current, f = i.nativeEvent, l = t.select("open");
      if (i.button !== 0 || c === "click" || qe(a, !0) && p) return;
      const T = r.current.openEvent, k = T?.type, S = t.select("domReferenceElement") !== i.currentTarget, W = l && S || !(l && o && (!(T && R) || k === "click" || k === "mousedown")), F = Q(f);
      if (ot(F)) {
        const q = re(C, f, F);
        W && a === "touch" && x > 0 ? L.start(x, () => {
          t.setOpen(!0, q);
        }) : t.setOpen(W, q);
        return;
      }
      const D = i.currentTarget;
      _.request(() => {
        const q = re(C, f, D);
        W && a === "touch" && x > 0 ? L.start(x, () => {
          t.setOpen(!0, q);
        }) : t.setOpen(W, q);
      });
    },
    onClick(i) {
      if (c === "mousedown-only") return;
      const a = O.current;
      if (c === "mousedown" && a) {
        O.current = void 0;
        return;
      }
      if (qe(a, !0) && p) return;
      const f = t.select("open"), l = r.current.openEvent, T = t.select("domReferenceElement") !== i.currentTarget, k = f && T || !(f && o && (!(l && R) || Ct(l))), S = re(C, i.nativeEvent, i.currentTarget);
      k && a === "touch" && x > 0 ? L.start(x, () => {
        t.setOpen(!0, S);
      }) : t.setOpen(k, S);
    },
    onKeyDown() {
      O.current = void 0;
    }
  }), [
    r,
    c,
    p,
    t,
    R,
    o,
    _,
    L,
    x,
    C
  ]);
  return y.useMemo(() => s ? { reference: M } : gt, [s, M]);
}
var mr = /* @__PURE__ */ y.forwardRef(function(n, t) {
  const { cutout: r, ...s } = n;
  let c;
  if (r) {
    const o = r.getBoundingClientRect();
    c = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${o.left}px ${o.top}px,${o.left}px ${o.bottom}px,${o.right}px ${o.bottom}px,${o.right}px ${o.top}px,${o.left}px ${o.top}px)`;
  }
  return /* @__PURE__ */ (0, ne.jsx)("div", {
    ref: t,
    role: "presentation",
    "data-base-ui-inert": "",
    ...s,
    style: {
      position: "fixed",
      inset: 0,
      userSelect: "none",
      WebkitUserSelect: "none",
      clipPath: c
    }
  });
}), Ue = {}, Je = {}, Qe = "";
function Dt(e) {
  if (typeof document > "u") return !1;
  const n = P(e);
  return oe(n).innerWidth - n.documentElement.clientWidth > 0;
}
function Gt(e) {
  if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
  const n = P(e), t = n.documentElement, r = n.body, s = ke(t) ? t : r, c = s.style.overflowY, o = t.style.scrollbarGutter;
  t.style.scrollbarGutter = "stable", s.style.overflowY = "scroll";
  const p = s.offsetWidth;
  s.style.overflowY = "hidden";
  const R = s.offsetWidth;
  return s.style.overflowY = c, t.style.scrollbarGutter = o, p === R;
}
function Nt(e) {
  const n = P(e), t = n.documentElement, r = n.body, s = ke(t) ? t : r, c = {
    overflowY: s.style.overflowY,
    overflowX: s.style.overflowX
  };
  return Object.assign(s.style, {
    overflowY: "hidden",
    overflowX: "hidden"
  }), () => {
    Object.assign(s.style, c);
  };
}
function Ht(e) {
  const n = P(e), t = n.documentElement, r = n.body, s = oe(t);
  let c = 0, o = 0, p = !1;
  const R = vt.create();
  if (nt && (s.visualViewport?.scale ?? 1) !== 1) return () => {
  };
  function x() {
    const L = s.getComputedStyle(t), M = s.getComputedStyle(r), i = (L.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
    c = t.scrollTop, o = t.scrollLeft, Ue = {
      scrollbarGutter: t.style.scrollbarGutter,
      overflowY: t.style.overflowY,
      overflowX: t.style.overflowX
    }, Qe = t.style.scrollBehavior, Je = {
      position: r.style.position,
      height: r.style.height,
      width: r.style.width,
      boxSizing: r.style.boxSizing,
      overflowY: r.style.overflowY,
      overflowX: r.style.overflowX,
      scrollBehavior: r.style.scrollBehavior
    };
    const a = t.scrollHeight > t.clientHeight, f = t.scrollWidth > t.clientWidth, l = L.overflowY === "scroll" || M.overflowY === "scroll", T = L.overflowX === "scroll" || M.overflowX === "scroll", k = Math.max(0, s.innerWidth - r.clientWidth), S = Math.max(0, s.innerHeight - r.clientHeight), W = parseFloat(M.marginTop) + parseFloat(M.marginBottom), F = parseFloat(M.marginLeft) + parseFloat(M.marginRight), D = ke(t) ? t : r;
    if (p = Gt(e), p) {
      t.style.scrollbarGutter = i, D.style.overflowY = "hidden", D.style.overflowX = "hidden";
      return;
    }
    Object.assign(t.style, {
      scrollbarGutter: i,
      overflowY: "hidden",
      overflowX: "hidden"
    }), (a || l) && (t.style.overflowY = "scroll"), (f || T) && (t.style.overflowX = "scroll"), Object.assign(r.style, {
      position: "relative",
      height: W || S ? `calc(100dvh - ${W + S}px)` : "100dvh",
      width: F || k ? `calc(100vw - ${F + k}px)` : "100vw",
      boxSizing: "border-box",
      overflow: "hidden",
      scrollBehavior: "unset"
    }), r.scrollTop = c, r.scrollLeft = o, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
  }
  function C() {
    Object.assign(t.style, Ue), Object.assign(r.style, Je), p || (t.scrollTop = c, t.scrollLeft = o, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = Qe);
  }
  function O() {
    C(), R.request(x);
  }
  x();
  const _ = N(s, "resize", O);
  return () => {
    R.cancel(), C(), typeof s.removeEventListener == "function" && _();
  };
}
var Vt = class {
  lockCount = 0;
  restore = null;
  timeoutLock = Le.create();
  timeoutUnlock = Le.create();
  acquire(e) {
    return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
  }
  release = () => {
    this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
  };
  unlock = () => {
    this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
  };
  lock(e) {
    if (this.lockCount === 0 || this.restore !== null) return;
    const n = P(e).documentElement, t = oe(n).getComputedStyle(n).overflowY;
    if (t === "hidden" || t === "clip") {
      this.restore = et;
      return;
    }
    const r = rt || !Dt(e);
    this.restore = r ? Nt(e) : Ht(e);
  }
}, _t = new Vt();
function br(e = !0, n = null) {
  U(() => {
    if (e)
      return _t.acquire(n);
  }, [e, n]);
}
function qt(e) {
  const n = y.useRef(""), t = y.useCallback((r) => {
    r.defaultPrevented || (n.current = r.pointerType, e(r, r.pointerType));
  }, [e]);
  return {
    onClick: y.useCallback((r) => {
      if (r.detail === 0) {
        e(r, "keyboard");
        return;
      }
      "pointerType" in r ? e(r, r.pointerType) : e(r, n.current), n.current = "";
    }, [e]),
    onPointerDown: t
  };
}
function hr(e) {
  const [n, t] = y.useState(null), r = te((o, p) => {
    e || t(p || (rt ? "touch" : ""));
  });
  At(e, (o) => {
    o && !e && t(null);
  });
  const { onClick: s, onPointerDown: c } = qt(r);
  return y.useMemo(() => ({
    openMethod: n,
    triggerProps: {
      onClick: s,
      onPointerDown: c
    }
  }), [
    n,
    s,
    c
  ]);
}
export {
  dr as a,
  pr as i,
  br as n,
  pe as o,
  mr as r,
  hr as t
};

//# sourceMappingURL=useOpenInteractionType.js.map