import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{A as t,D as n,G as r,Ht as i,I as a,K as o,Lt as s,M as c,R as l,_ as u,b as d,et as f,j as p,lt as m,ut as h,vt as g,zt as _}from"./vendor-vue-core-IZuWV8u3.js";import"./vendor-other-D1_ndkJp.js";import{t as v}from"./src-ztBDyvoF.js";import{r as y}from"./widgetTypes-C7uVk06B.js";import{o as b,r as x}from"./widgetPropFilter-BCWoOzPM.js";import{t as S}from"./layout-CtGlf9We.js";var C=l({__name:`Textarea`,props:r({class:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=c(e,[`class`]),n=h(e,`modelValue`);return(r,i)=>g((f(),p(`textarea`,o(t,{"onUpdate:modelValue":i[0]||=e=>n.value=e,class:s(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)),[[u,n.value]])}}),w=[`for`],T=l({__name:`WidgetTextarea`,props:r({widget:{},placeholder:{default:``}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let r=h(e,`modelValue`),c=y(),l=n(()=>b(e.widget.options,x)),u=n(()=>e.widget.label||e.widget.name),g=m(),T=n(()=>e.widget.options?.read_only??e.widget.options?.disabled??!1);return(e,n)=>(f(),p(`div`,{class:_(s(v)(`relative rounded-lg focus-within:ring focus-within:ring-component-node-widget-background-highlighted transition-all`,e.widget.borderStyle))},[s(c)?t(``,!0):(f(),p(`label`,{key:0,for:s(g),class:`pointer-events-none absolute left-3 top-1.5 z-10 text-xxs text-muted-foreground`},i(u.value),9,w)),a(C,o(l.value,{id:s(g),modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,class:s(v)(s(S),`size-full text-xs resize-none`,!s(c)&&`pt-5`),placeholder:e.placeholder,readonly:T.value,"data-capture-wheel":`true`,onPointerdownCapture:n[1]||=d(()=>{},[`stop`]),onPointermoveCapture:n[2]||=d(()=>{},[`stop`]),onPointerupCapture:n[3]||=d(()=>{},[`stop`]),onContextmenuCapture:n[4]||=d(()=>{},[`stop`])}),null,16,[`id`,`modelValue`,`class`,`placeholder`,`readonly`])],2))}});export{T as default};
//# sourceMappingURL=WidgetTextarea-BsrVxyHc.js.map