import{bq as m,cB as f,cC as g,E as r,d_ as w,p as c,d as C,q as P,A as V,e as b,br as o,m as y,I as s,t as v,u as B}from"./vendor-other-yzRpIrj2.js";import{aa as I,C as h}from"./vendor-primevue-RJTR6wkG.js";import{c as d}from"./index-xLwXl4ov.js";import{f as M,I as N}from"./widgetPropFilter-CygYoMQt.js";import{W}from"./index-wE4B8JeX.js";import"./vendor-vue-ByIfjd1d.js";import"./vendor-xterm-CWYFmgbN.js";import"./vendor-three-b7sMVVQK.js";import"./vendor-tiptap-DcddbIvp.js";const k=["for"],L=m({__name:"WidgetTextarea",props:f({widget:{},placeholder:{default:""}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=g(t,"modelValue"),n=r(()=>M(t.widget.options,N)),p=r(()=>t.widget.label||t.widget.name),i=w();return(a,e)=>(C(),c(o(h),{variant:"in",class:B(o(d)("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(I),y(n.value,{id:o(i),modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=u=>l.value=u),class:o(d)(o(W),"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"]),b("label",{for:o(i)},v(p.value),9,k)]),_:1},8,["class"]))}});export{L as default};
//# sourceMappingURL=WidgetTextarea-CbXUnHBS.js.map
