import{C as e,D as t,F as n,N as r,Y as i,b as a,q as o}from"./app-96o0s6MK.js";import{t as s}from"./i18n-DJKxuHSD.js";var c=[`aria-label`,`title`],l={key:0,width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},u={key:1,width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},d=t({__name:`ThemeToggle`,setup(t){let d=o(`light`);r(()=>{d.value=document.documentElement.dataset.theme===`dark`?`dark`:`light`});function f(){d.value=d.value===`dark`?`light`:`dark`,document.documentElement.dataset.theme=d.value;try{localStorage.setItem(`convoro_theme`,d.value)}catch{}}return(t,r)=>(n(),e(`button`,{type:`button`,class:`flex h-[34px] w-[34px] items-center justify-center rounded-full border border-line bg-surface-2 text-ink-2 hover:text-ink`,"aria-label":d.value===`dark`?i(s)(`Switch to light mode`):i(s)(`Switch to dark mode`),title:d.value===`dark`?i(s)(`Light mode`):i(s)(`Dark mode`),onClick:f},[d.value===`dark`?(n(),e(`svg`,l,[...r[0]||=[a(`circle`,{cx:`12`,cy:`12`,r:`4`},null,-1),a(`path`,{d:`M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M6.3 17.7l-1.4 1.4M19.1 4.9l-1.4 1.4`},null,-1)]])):(n(),e(`svg`,u,[...r[1]||=[a(`path`,{d:`M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z`},null,-1)]]))],8,c))}});export{d as t};