PageSourceSearch

https://tesana.com/assets/useDevModelsVisible-BHgONHQI.js

js tesana.com collected 2026-10-09 22:42:08 UTC 649 bytes, 1 lines download raw bytes

1import{r as n}from"./vendor-react-E98sgxjj.js";const o="tesana.devModels.visible.v1",s="tesana:dev-models-visibility";function a(){if(typeof window>"u")return!0;try{const t=window.localStorage.getItem(o);return t==null?!0:t==="1"}catch{return!0}}function l(){const[t,r]=n.useState(a);n.useEffect(()=>{const e=()=>r(a()),i=c=>{c.key===o&&e()};return window.addEventListener("storage",i),window.addEventListener(s,e),()=>{window.removeEventListener("storage",i),window.removeEventListener(s,e)}},[]);const d=n.useCallback(e=>{r(e);try{window.localStorage.setItem(o,e?"1":"0")}catch{}window.dispatchEvent(new Event(s))},[]);return[t,d]}export{l 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.