import{d as p,k as f,cs as h,s as k,a as o,F as v,A as x,u as n,o as t,c as g,w as c,f as L,z as w,t as B,J as C}from"./m2W8DxR4.js";import{_ as S}from"./D4cd7EFQ.js";import{a as b}from"./DWhUos32.js";const M={class:"flex gap-2"},V=p({__name:"LanguageSwitcher",setup(N){const{locale:r,locales:l}=f(),u=h(),_=b(),i=k(()=>l.value.filter(a=>a.code!==r.value));return(a,s)=>{const m=C,d=S;return t(),o("div",M,[(t(!0),o(v,null,x(n(i),e=>(t(),g(d,{key:e.code,class:"p-2",variant:"ghost",size:"default","as-child":""},{default:c(()=>[L(m,{to:n(u)(e.code),onClick:s[0]||(s[0]=y=>_.value=!1)},{default:c(()=>[w(B(e.name||e.code.toUpperCase()),1)]),_:2},1032,["to"])]),_:2},1024))),128))])}}});export{V as _};
