PageSourceSearch

https://unipio.org/assets/use-portal-dropdown-close-D-kZL-lW.js

js unipio.org collected 2026-10-02 12:46:28 UTC 952 bytes, 1 lines download raw bytes

1import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t}from"./jsx-runtime-Bs4MhNha.js";var n=e(t(),1);function r({open:e,onClose:t,ignore:r,closeOnOutsideScroll:i=!0,closeOnResize:a=!0,closeOnEscape:o=!0}){(0,n.useEffect)(()=>{if(!e)return;let n=e=>{let t=r.map(e=>e.current).filter(e=>e!=null),n=typeof e.composedPath==`function`?e.composedPath():[];if(n.length>0)return n.some(e=>t.includes(e));let i=e.target;return i?t.some(e=>e.contains(i)):!1},s=e=>{n(e)||t()},c=e=>{e.key===`Escape`&&t()},l=e=>{n(e)||t()},u=()=>t(),d=window.setTimeout(()=>{document.addEventListener(`pointerdown`,s),o&&document.addEventListener(`keydown`,c),i&&window.addEventListener(`scroll`,l,!0),a&&window.addEventListener(`resize`,u)},0);return()=>{window.clearTimeout(d),document.removeEventListener(`pointerdown`,s),document.removeEventListener(`keydown`,c),window.removeEventListener(`scroll`,l,!0),window.removeEventListener(`resize`,u)}},[e,t,r,i,a,o])}export{r as t};

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.