PageSourceSearch

https://envless.cloud/assets/useCopyFeedback.C3CUKZHR.js

js envless.cloud collected 2026-10-08 19:57:35 UTC 730 bytes, 1 lines download raw bytes

1import{r as c}from"./chunk-BV7QT456.BQ71lt_D.js";import{C as i}from"./interaction.CJtquuJa.js";import{w as s}from"./writeClipboard.CzREpoR6.js";const m=e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.className="fixed top-0 left-0 opacity-0",document.body.appendChild(t),t.select();const o=document.execCommand("copy");return t.remove(),o},u=e=>s(e,()=>m(e)),f=e=>{const[t,o]=c.useState("idle"),a=c.useRef(0);c.useEffect(()=>()=>window.clearTimeout(a.current),[]);const r=c.useCallback(async()=>{const n=typeof e=="function"?e():e;n&&(o(await u(n)?"copied":"manual"),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o("idle"),i))},[e]);return{state:t,copy:r}};export{f as u};

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.