import{C as e,D as t,F as n,N as r,b as i,q as a}from"./app-C984PpLk.js";var o=[`aria-label`,`title`],s={key:0,width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},c={key:1,width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},l=t({__name:`ThemeToggle`,setup(t){let l=a(`light`);r(()=>{l.value=document.documentElement.dataset.theme===`dark`?`dark`:`light`});function u(){l.value=l.value===`dark`?`light`:`dark`,document.documentElement.dataset.theme=l.value;try{localStorage.setItem(`convoro_theme`,l.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":l.value===`dark`?`Switch to light mode`:`Switch to dark mode`,title:l.value===`dark`?`Light mode`:`Dark mode`,onClick:u},[l.value===`dark`?(n(),e(`svg`,s,[...r[0]||=[i(`circle`,{cx:`12`,cy:`12`,r:`4`},null,-1),i(`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`,c,[...r[1]||=[i(`path`,{d:`M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z`},null,-1)]]))],8,o))}});export{l as t};