PageSourceSearch

https://scholarsedge529.com/profiles/contrib/houston/modules/pfg_p…/floating-context.chunk-DrNa05gq.js

js scholarsedge529.com collected 2026-10-06 16:49:40 UTC 1,464 bytes, 42 lines download raw bytes

1import { a as m, f as y, s as E, b as c, c as L } from "./floating-ui.dom.chunk-DV7ofceA.js";
2function b(e, s, a = {}) {
3  const {
4    placement: p = "bottom"
5  } = a;
6  let t = null;
7  const o = async () => {
8    const n = [
9      // Add flip for overflow prevention
10      y(),
11      E({ padding: 5 }),
12      // Add size middleware to handle responsive max-width
13      c({
14        apply({ availableWidth: l }) {
15          s.style.maxWidth = `${l - 24}px`;
16        }
17      })
18    ], { x: r, y: v } = await L(e, s, {
19      placement: p,
20      middleware: n,
21      strategy: "fixed"
22    });
23    Object.assign(s.style, {
24      left: `${r}px`,
25      top: `${v}px`,
26      position: "fixed"
27    });
28  }, d = async () => {
29    s.style.display = "block", s.setAttribute("data-show", ""), await o(), t || (t = m(e, s, o));
30  }, i = () => {
31    s.removeAttribute("data-show"), s.style.display = "none", t && (t(), t = null);
32  }, u = (n) => {
33    n.key === "Escape" && (i(), e.focus());
34  };
35  return e.addEventListener("mouseover", d), e.addEventListener("mouseout", i), e.addEventListener("focus", d), e.addEventListener("blur", i), e.addEventListener("keydown", u), () => {
36    e.removeEventListener("mouseover", d), e.removeEventListener("mouseout", i), e.removeEventListener("focus", d), e.removeEventListener("blur", i), e.removeEventListener("keydown", u), t && (t(), t = null);
37  };
38}
39export {
40  b as c
41};
42//# sourceMappingURL=floating-context.chunk-DrNa05gq.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.