import{y as p,D as m}from"./er2hcepb.js";import{k as f,Q as s,S as l,V as n,M as b,W as t,a8 as y,ay as h,u as v,U as V,a5 as k,y as B,Y as d}from"./vendor/json-editor-vue-gv8v06ez.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)]),y(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),[[h,v(o)]])],2)}}});export{D as _};
