import{_ as c}from"./Bm3lMs_2.js";import{d as g,J as m,aw as d,v as p,P as _,j as f,e as w,o as v,b as k,a as V,t as h,m as n,A as x}from"./Dk4AzF7j.js";import"./D7D5X_-3.js";import"./DMtpgJrn.js";import"./DgCXB7yu.js";const L={class:"text-uiText-muted font-normal text-xs o_mb-1"},S=g({__name:"LanguageSwitcher",setup(b){const{locale:l}=m(),{changeLanguage:r,languageItems:o}=d(),e=p(l.value),{tracker:i}=_();return f(e,s=>{i("language_switcher","click","Change language")}),(s,t)=>{const u=c;return v(),w("div",null,[k("div",L,h(s.$t("languagePicker")),1),V(u,{modelValue:n(e),"onUpdate:modelValue":[t[0]||(t[0]=a=>x(e)?e.value=a:null),t[1]||(t[1]=a=>n(r)(a))],items:n(o),"leading-icon":n(o).find(a=>a.value===n(e))?.icon,class:"w-full font-normal",color:"neutral",variant:"outline"},null,8,["modelValue","items","leading-icon"])])}}}),N=Object.assign(S,{__name:"LanguageSwitcher"});export{N as default};
