1import{_ as c}from"./Dgs6hFTu.js";import{d as m,ax as d,k as u,c as _,o as p,B as l,A as g,n as k,z as e,e as f,b5 as b}from"./Bcc8-a-q.js";import{u as h}from"./C8HfZjon.js";const y=m({__name:"DarkModeToggle",props:{bg:{default:"light"}},setup(v){const{t:s}=d(),t=h(),o=u({get(){return t.value==="dark"},set(){t.preference=t.value==="dark"?"light":"dark"}});return(n,a)=>{const r=c,i=b;return p(),_(i,null,{fallback:l(()=>a[1]||(a[1]=[f("div",{class:"w-10 h-10"},null,-1)])),default:l(()=>[g(r,{icon:e(o)?"material-symbols:mode-night":"material-symbols:light-mode",variant:"ghost",color:"gray","aria-label":e(o)?e(s)("lightMode"):e(s)("darkMode"),size:"lg",class:k([n.bg==="dark"?"text-white":""]),onClick:a[0]||(a[0]=x=>o.value=!e(o))},null,8,["icon","aria-label","class"])]),_:1})}}});export{y as _};
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.