import{a2 as m,dk as f,dl as g,E as d,a0 as w,j as c,d as C,k as P,z as V,e as y,a8 as o,m as b,I as s,u as v,s as k}from"./vendor-other-Dsj-QuOx.js";import{aa as B,B as I}from"./vendor-primevue-Cif--Rbw.js";import{c as r}from"./index-Bc79VbnU.js";import{f as h,I as z}from"./widgetPropFilter-CygYoMQt.js";import{W as M}from"./index-BBvP0bLh.js";import"./vendor-vue-DNQSPQQ2.js";import"./vendor-reka-ui-WjwjFuZo.js";import"./vendor-xterm-CWYFmgbN.js";import"./vendor-three-ByuY8CdW.js";import"./vendor-tiptap-YMjM2h-Z.js";const N=["for"],R=m({__name:"WidgetTextarea",props:f({widget:{},placeholder:{default:""}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=g(t,"modelValue"),n=d(()=>h(t.widget.options,z)),p=d(()=>t.widget.label||t.widget.name),i=w();return(a,e)=>(C(),c(o(I),{variant:"in",class:k(o(r)("rounded-lg space-y-1 focus-within:ring focus-within:ring-component-node-widget-background-highlighted transition-all",a.widget.borderStyle))},{default:P(()=>[V(o(B),b(n.value,{id:o(i),modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=u=>l.value=u),class:o(r)(o(M),"size-full text-xs resize-none"),placeholder:a.placeholder,readonly:a.widget.options?.read_only,disabled:a.widget.options?.read_only,fluid:"","data-capture-wheel":"true",onPointerdownCapture:e[1]||(e[1]=s(()=>{},["stop"])),onPointermoveCapture:e[2]||(e[2]=s(()=>{},["stop"])),onPointerupCapture:e[3]||(e[3]=s(()=>{},["stop"])),onContextmenuCapture:e[4]||(e[4]=s(()=>{},["stop"]))}),null,16,["id","modelValue","class","placeholder","readonly","disabled"]),y("label",{for:o(i)},v(p.value),9,N)]),_:1},8,["class"]))}});export{R as default};
//# sourceMappingURL=WidgetTextarea-syfN9Olh.js.map
