import{$ as e,Ft as t,G as n,Lt as r,U as i,W as a,X as o,Y as s,mt as c,xt as l,zt as u}from"./dom-CdSnbvZ6.js";import{c as d,l as f}from"./settings-BF7JcItU.js";import{t as p}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as m,r as h,t as g}from"./QItemLabel-BIn12Yx-.js";import{t as _}from"./QSelect-DIdMw4Og.js";var v={class:`row items-center no-wrap`},y={class:`language-flag q-mr-sm`,"aria-hidden":`true`},b={class:`language-flag`,"aria-hidden":`true`},x=p({__name:`LanguageSelect`,props:{modelValue:{type:String,default:``},label:{type:String,default:``},hideLabel:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(p,{emit:x}){let S=p,C=x,{t:w}=f(),T=i({get:()=>S.modelValue,set:e=>C(`update:modelValue`,e)}),E=i(()=>S.hideLabel?null:S.label||w(`Language`));return(i,f)=>(c(),n(_,{modelValue:T.value,"onUpdate:modelValue":f[0]||=e=>T.value=e,options:t(d),label:E.value,outlined:``,dense:``,"emit-value":``,"map-options":``},{"selected-item":l(e=>[a(`div`,v,[a(`span`,y,u(e.opt.flag),1),a(`span`,null,u(e.opt.label),1)])]),option:l(t=>[o(m,r(e(t.itemProps)),{default:l(()=>[o(h,{avatar:``},{default:l(()=>[a(`span`,b,u(t.opt.flag),1)]),_:2},1024),o(h,null,{default:l(()=>[o(g,null,{default:l(()=>[s(u(t.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040)]),_:1},8,[`modelValue`,`options`,`label`]))}},[[`__scopeId`,`data-v-4d7ff6f2`]]);export{x as t};