import{E as e,Mt as t,P as n,W as r,X as i,_ as a,ft as o,g as s,h as c,v as l,vt as u}from"./vendor/json-editor-vue-eojr4v24.js";import{E as d}from"./ready-dadbdj5i.js";import{P as f}from"./client-nwyjxodt.js";import{t as p}from"./nicon-m1crov2l.js";var m={class:`n-text-input flex flex items-center border n-border-base rounded n-bg-base py-1 pl-1 pr-2 focus-within:border-context focus-within:n-focus-base`},h=e({__name:`NTextInput`,props:{modelValue:{default:``},icon:{},placeholder:{},disabled:{type:Boolean},autofocus:{type:Boolean},autocomplete:{},readonly:{type:Boolean},type:{default:`text`}},emits:[`keydown`,`keyup`,`change`],setup(e,{emit:h}){let g=f(e,`modelValue`,h,{passive:!0});return(f,h)=>{let _=p;return r(),l(`div`,m,[i(f.$slots,`icon`,{},()=>[e.icon?(r(),s(_,{key:0,icon:e.icon,class:`ml-0.3em mr-0.1em text-1.1em op50`},null,8,[`icon`])):a(``,!0)]),o(c(`input`,n({"onUpdate:modelValue":h[0]||=e=>u(g)?g.value=e:null},f.$props,{class:`ml-0.4em w-full flex-auto n-bg-base !outline-none`}),null,16),[[d,t(g)]])])}}}),g=Object.assign(h,{__name:`NTextInput`});export{g as t};