PageSourceSearch

https://linkbreakers.com/assets/theme-toggle-aIib6Wml.js

js linkbreakers.com collected 2026-10-05 03:26:46 UTC 1,515 bytes, 1 lines download raw bytes

1import{r as a,j as t}from"./jsx-runtime-C4zQcjKb.js";import{B as i}from"./button-CwqUc_7q.js";const n="lb-theme",d=`(function(){try{var k="${n}";var m=window.matchMedia("(prefers-color-scheme: dark)");var apply=function(){var t=localStorage.getItem(k);document.documentElement.classList.toggle("dark",t?t==="dark":m.matches)};apply();m.addEventListener("change",function(){if(!localStorage.getItem(k))apply()})}catch(e){}})();`;function h(){const[e,r]=a.useState(!1);a.useEffect(()=>{r(document.documentElement.classList.contains("dark"))},[]);const s=()=>{const o=!e;document.documentElement.classList.toggle("dark",o);try{localStorage.setItem(n,o?"dark":"light")}catch{}r(o)};return t.jsx(i,{type:"button",variant:"ghost",size:"icon",onClick:s,"aria-label":e?"Switch to light mode":"Switch to dark mode",title:e?"Light mode":"Dark mode",className:"[&_svg]:size-[18px]",children:e?t.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"4"}),t.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"})]}):t.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})})})}export{h as T,d as a};

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.