import{E as e,Mt as t,Qt as n,W as r,X as i,_ as a,ft as o,g as s,h as c,tn as l,v as u,vt as d}from"./vendor/json-editor-vue-ddj4xtqm.js";import{Wn as f,j as p,on as m}from"#entry";var h=[`disabled`],g={key:0,value:``,disabled:``,hidden:``},_=e({__name:`NSelect`,props:{modelValue:{default:void 0},placeholder:{default:``},icon:{default:``},disabled:{type:Boolean,default:!1}},setup(e,{emit:_}){let v=m(e,`modelValue`,_,{passive:!0});return(m,_)=>{let y=p;return r(),u(`div`,{class:n([`n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base`,e.disabled?`border-gray:10`:`n-border-base`])},[i(m.$slots,`icon`,{},()=>[e.icon?(r(),s(y,{key:0,icon:e.icon,class:`mr-0.4em text-1.1em op50`},null,8,[`icon`])):a(``,!0)]),o(c(`select`,{"onUpdate:modelValue":_[0]||=e=>d(v)?v.value=e:null,disabled:e.disabled,class:n([`w-full flex-auto n-bg-base !outline-none`,e.disabled?`appearance-none`:``])},[e.placeholder?(r(),u(`option`,g,l(e.placeholder),1)):a(``,!0),i(m.$slots,`default`)],10,h),[[f,t(v)]])],2)}}}),v=Object.assign(_,{__name:`NSelect`});export{v as t};