import{y as p,D as m}from"./ixdlms3l.js";import{k as f,Q as s,S as l,V as n,O as b,W as t,a8 as h,az as v,u as y,U as V,a5 as k,A as B,Y as d}from"./vendor/json-editor-vue-mdfcgt41.js";const S=["disabled"],g={key:0,value:"",disabled:"",hidden:""},D=f({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const o=p(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=m;return s(),l("div",{class:d(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[n(e.$slots,"icon",{},()=>[e.icon?(s(),b(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):t("",!0)]),h(V("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>B(o)?o.value=u:null),disabled:e.disabled,class:d(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(s(),l("option",g,k(e.placeholder),1)):t("",!0),n(e.$slots,"default")],10,S),[[v,y(o)]])],2)}}});export{D as _};
