PageSourceSearch

https://dispatch.upsun.com/assets/text-overflow-CpFD1Nsh.js

js upsun.com collected 2026-10-02 06:49:40 UTC 1,094 bytes, 1 lines download raw bytes

1import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{t as r}from"./utils-Cl78mqKH.js";import{i,n as a,t as o}from"./tooltip-DFQV3GCk.js";var s=e(t(),1);function c(e=`horizontal`,t=0,n){let[r,i]=(0,s.useState)(!1),a=(0,s.useRef)(null);return[r,(0,s.useCallback)(n=>{if(a.current?.disconnect(),a.current=null,!n)return;let r=new ResizeObserver(()=>{if(e!==`vertical`){i(n.clientWidth<n.scrollWidth);return}let r=n.scrollHeight-n.clientHeight;i(r>l(n,t))});r.observe(n),a.current=r},[e,t,n])]}function l(e,t){if(t<=0)return 0;let{lineHeight:n,fontSize:r}=getComputedStyle(e);return(Number.parseFloat(n)||Number.parseFloat(r)*1.2||0)*t}var u=n();function d({as:e=`span`,tooltip:t,tooltipProps:n,className:l,children:d,...f}){let[p,m]=c(),[h,g]=(0,s.useState)(!1);return(0,u.jsxs)(o,{open:p&&h,onOpenChange:g,children:[(0,u.jsx)(i,{asChild:!0,children:(0,u.jsx)(e,{ref:m,tabIndex:p?0:void 0,className:r(`min-w-0 truncate`,p&&`rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-ring/30`,l),...f,children:d})}),(0,u.jsx)(a,{...n,children:t??d})]})}export{c as n,d 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.