import{d as i,v as d,bS as f,G as x,r as T,o as l,b as h,w as c,q as r,A as v,s as m,n as g,y as b}from"./index-2e57ee69.js";import{V as w}from"./VTooltip-4d5f55d5.js";const y={class:"text-capitalize"},C=i({__name:"ThemeSwitcher",props:{themes:null},setup(s){const e=s,{theme:t}=d(),{state:a,next:o,index:p}=f(e.themes.map(n=>n.name),{initialValue:t.value}),_=()=>{t.value=o()};return x(t,n=>{a.value=n}),(n,N)=>{const u=T("IconBtn");return l(),h(u,{onClick:_},{default:c(()=>[r(v,{size:"26",icon:e.themes[m(p)].icon},null,8,["icon"]),r(w,{activator:"parent","open-delay":"1000","scroll-strategy":"close"},{default:c(()=>[g("span",y,b(m(a)),1)]),_:1})]),_:1})}}}),S=i({__name:"NavbarThemeSwitcher",setup(s){const e=[{name:"system",icon:"tabler-device-laptop"},{name:"light",icon:"tabler-sun-high"},{name:"dark",icon:"tabler-moon"}];return(t,a)=>{const o=C;return l(),h(o,{themes:e})}}});export{S as _};
