import{b as v,r as g,w as y,d as V,o as c,j as i,i as s,f as r,B as x,A as n,h as k,O as d,aP as B,aS as S,a3 as b,e as w,F as C,J as I,aJ as T,E as N}from"./index.737529e8.1750111005555.js";import{V as z}from"./VTooltip.508adc8b.1750111005555.js";const A={class:"text-capitalize"},E={__name:"ThemeSwitcher",props:{themes:{type:Array,required:!0}},setup(m){const o=m,e=v(),t=g([e.theme]);return y(()=>e.theme,()=>{t.value=[e.theme]},{deep:!0}),(p,u)=>{const _=V("IconBtn");return c(),i(_,{color:"rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity))"},{default:s(()=>{var h;return[r(x,{icon:(h=o.themes.find(a=>a.value===n(e).theme))==null?void 0:h.icon,size:"26"},null,8,["icon"]),r(z,{activator:"parent","open-delay":"1000","scroll-strategy":"close"},{default:s(()=>[k("span",A,d(n(e).theme),1)]),_:1}),r(B,{activator:"parent",offset:"14px"},{default:s(()=>[r(S,{selected:n(t),"onUpdate:selected":u[0]||(u[0]=a=>b(t)?t.value=a:null)},{default:s(()=>[(c(!0),w(C,null,I(o.themes,({name:a,icon:f,value:l})=>(c(),i(T,{key:l,value:l,"prepend-icon":f,color:"primary",class:"text-capitalize",onClick:()=>{n(e).theme=l}},{default:s(()=>[N(d(a),1)]),_:2},1032,["value","prepend-icon","onClick"]))),128))]),_:1},8,["selected"])]),_:1})]}),_:1})}}},J={__name:"NavbarThemeSwitcher",setup(m){const o=[{name:"Auto",icon:"tabler-device-laptop",value:"system"},{name:"Claro",icon:"tabler-sun-high",value:"light"},{name:"Escuro",icon:"tabler-moon",value:"dark"}];return(e,t)=>{const p=E;return c(),i(p,{themes:o})}}};export{J as default};
