import{r,o as v,c as V,x as _,i as n,u as x,bb as g}from"./app-DnroACXc.js";import{_ as k}from"./app-DFWP-E91.js";const y={__name:"FileTextarea",props:["value"],emits:["update:modelValue"],setup(s,{expose:l,emit:u}){const i=s,f=u,{realValue:t}=function(){let e=i.value;return typeof e!="string"&&(e=""),{realValue:r(e)}}(),o=r(),c=function(){},p=function(e){e.dataTransfer.items[0].getAsFile().text().then(function(a){m(a)})},m=function(e){t.value=e,f("update:modelValue",e)};return l({focus(){o.value.$el.focus()}}),(e,a)=>(v(),V(k,_({onDrop:n(p,["prevent"]),onDragover:n(c,["prevent"]),ref_key:"textarea",ref:o,modelValue:x(t),"onUpdate:modelValue":a[0]||(a[0]=d=>g(t)?t.value=d:null)},e.$attrs),null,16,["modelValue"]))}};export{y as _};
