import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{A as t,Bt as n,D as r,G as i,I as a,K as o,M as s,R as c,Rt as l,Ut as u,_ as d,b as f,et as p,j as m,lt as h,ut as g,vt as _}from"./vendor-vue-core-BdhYaYlO.js";import"./vendor-other-D9HJWI2D.js";import{t as v}from"./src-zUtq9Eft.js";import{r as y}from"./widgetTypes-Lta44m93.js";import{o as b,r as x}from"./widgetPropFilter-C6hJUR5m.js";import{t as S}from"./layout-ClVoG198.js";var C=c({__name:`Textarea`,props:i({class:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=s(e,[`class`]),n=g(e,`modelValue`);return(r,i)=>_((p(),m(`textarea`,o(t,{"onUpdate:modelValue":i[0]||=e=>n.value=e,class:l(v)(`flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e.class)}),null,16)),[[d,n.value]])}}),w=[`for`],T=c({__name:`WidgetTextarea`,props:i({widget:{},placeholder:{default:``}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=g(e,`modelValue`),s=y(),c=r(()=>b(e.widget.options,x)),d=r(()=>e.widget.label||e.widget.name),_=h(),T=r(()=>e.widget.options?.read_only??e.widget.options?.disabled??!1);return(e,r)=>(p(),m(`div`,{class:n(l(v)(`relative rounded-lg focus-within:ring focus-within:ring-component-node-widget-background-highlighted transition-all`,e.widget.borderStyle))},[l(s)?t(``,!0):(p(),m(`label`,{key:0,for:l(_),class:`pointer-events-none absolute left-3 top-1.5 z-10 text-xxs text-muted-foreground`},u(d.value),9,w)),a(C,o(c.value,{id:l(_),modelValue:i.value,"onUpdate:modelValue":r[0]||=e=>i.value=e,class:l(v)(l(S),`size-full text-xs resize-none`,!l(s)&&`pt-5`),placeholder:e.placeholder,readonly:T.value,"data-capture-wheel":`true`,onPointerdownCapture:r[1]||=f(()=>{},[`stop`]),onPointermoveCapture:r[2]||=f(()=>{},[`stop`]),onPointerupCapture:r[3]||=f(()=>{},[`stop`]),onContextmenuCapture:r[4]||=f(()=>{},[`stop`])}),null,16,[`id`,`modelValue`,`class`,`placeholder`,`readonly`])],2))}});export{T as default};
//# sourceMappingURL=WidgetTextarea-Bmg0auT9.js.map