import{j as o}from"./react-vendor-xYZnmIII.js";import{c as p}from"./ui-components-CQM92IK3.js";import{useEditor as f}from"./use-editor-CiTCcx1l.js";import{E as d}from"./element-wrapper-BnFoieV6.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./editor-provider-0C4WlrME.js";import"./v4-DsPse6Vr.js";import"./index-D-Nk4yec.js";import"./ActionsWrapper-DCj6FSQ6.js";const z=({element:t})=>{const{editor:m}=f(),{editor:r}=m,{styles:a,content:e}=t,s=typeof e=="object"&&"placeholder"in e?e.placeholder:"Enter text...",l=typeof e=="object"&&"name"in e?e.name:"",c=typeof e=="object"&&"value"in e?e.value:"",i=typeof e=="object"&&"rows"in e?e.rows:4,n=typeof e=="object"&&"cols"in e?e.cols:50;return r.liveMode?o.jsx("textarea",{style:a,placeholder:s,name:l,defaultValue:c,rows:i,cols:n,className:p("w-full resize-y",t.className)}):o.jsx(d,{applyStyles:!1,element:t,children:o.jsx("textarea",{style:a,placeholder:s,name:l,defaultValue:c,rows:i,cols:n,readOnly:!r.liveMode,className:p("w-full resize-y",t.className)})})};export{z as default};
