import{j as o}from"./react-vendor-xYZnmIII.js";import{c as l}from"./ui-components-CQM92IK3.js";import{useEditor as m}from"./use-editor-CiTCcx1l.js";import{E as u}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 V=({element:e})=>{const{editor:c}=m(),{editor:p}=c,{styles:r,content:t}=e,a=typeof t=="object"&&"placeholder"in t?t.placeholder:"Enter text...",i=typeof t=="object"&&"inputType"in t?t.inputType:"text",s=typeof t=="object"&&"name"in t?t.name:"",n=typeof t=="object"&&"value"in t?t.value:"";return p.liveMode?o.jsx("input",{style:r,placeholder:a,type:i,name:s,defaultValue:n,className:l("w-full",e.className)}):o.jsx(u,{applyStyles:!1,element:e,children:o.jsx("input",{style:r,placeholder:a,type:i,name:s,defaultValue:n,readOnly:!p.liveMode,className:l("w-full",e.className)})})};export{V as default};
