import{j as i}from"./react-vendor-xYZnmIII.js";import{useEditor as g}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"./editor-provider-0C4WlrME.js";import"./v4-DsPse6Vr.js";import"./ui-components-CQM92IK3.js";import"./interactive-vendor-B1OgcAgP.js";import"./index-D-Nk4yec.js";import"./ActionsWrapper-DCj6FSQ6.js";const v=({element:o})=>{const{editor:m}=g(),{editor:e}=m,{styles:s,content:t}=o,a=typeof t=="object"&&"src"in t?t.src:"https://cdn.pixabay.com/photo/2016/05/05/02/37/sunset-1373171_1280.jpg",r=typeof t=="object"&&"alt"in t?t.alt:"Image description",p=typeof t=="object"&&"width"in t?t.width:"",c=typeof t=="object"&&"height"in t?t.height:"",n=l=>{e.liveMode||l.stopPropagation()};return e.liveMode?i.jsx("img",{style:s,src:a,alt:r,width:p,height:c,draggable:!1,className:o.className}):i.jsx(d,{applyStyles:!1,element:o,children:i.jsx("img",{style:s,src:a,alt:r,width:p,height:c,onDragStart:n,draggable:!1,className:o.className})})};export{v as default};
