import{d as p,r as c,w as l,q as V,C as _,h as f,c as s,v as g,i as n,V as v,D as w}from"./index-C5GbdPxY.js";import{V as x}from"./VSelect-vtfYszIh.js";const h={style:{width:"120px"}},L=p({__name:"FormLanguageSwitcher",props:{modelValue:{}},emits:["update:modelValue"],setup(d,{emit:i}){const o=d,r=i,e=c(o.modelValue);l(e,t=>{r("update:modelValue",t)}),l(()=>o.modelValue,t=>{t.id!==e.value.id&&(e.value=t)});const u=V();return(t,a)=>(f(),_("div",h,[s(x,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=m=>e.value=m),density:"compact","hide-details":"","item-title":"name","item-value":"id",items:g(u).supportedLanguages,"return-object":"",variant:"outlined"},{"prepend-inner":n(()=>[s(v,null,{default:n(()=>a[1]||(a[1]=[w("tabler-language")])),_:1,__:[1]})]),_:1},8,["modelValue","items"])]))}});export{L as _};
