PageSourceSearch

https://singaporebirds.com/assets/Tooltip-AnQScd3Q.js

js singaporebirds.com collected 2026-10-02 12:25:13 UTC 869 bytes, 1 lines download raw bytes

1import{r as c,j as p,d as h}from"./react-vendor-eUQHqTr8.js";import{T as n,B as T}from"./index-CwTm0-D0.js";const e=260,f=8;function P({children:r,content:s}){const i=c.useRef(null),[o,a]=c.useState(null);if(!s)return r;function l(){var u;const t=(u=i.current)==null?void 0:u.getBoundingClientRect();if(!t)return;const x=t.left+t.width/2-e/2,m=Math.max(f,Math.min(x,window.innerWidth-e-f));a({left:m,top:t.top-10})}function d(){a(null)}return p.jsxs("span",{ref:i,onMouseEnter:l,onMouseLeave:d,onTouchStart:l,onTouchEnd:d,children:[r,o&&h.createPortal(p.jsx("div",{style:{position:"fixed",left:o.left,top:o.top,transform:"translateY(-100%)",background:n.panel,border:`1px solid ${n.rule}`,borderRadius:7,padding:"8px 12px",maxWidth:e,zIndex:9999,pointerEvents:"none",lineHeight:1.45,fontFamily:T,fontSize:12,color:n.text},children:s}),document.body)]})}export{P 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.