var y=Object.defineProperty,b=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var f=(t,i,r)=>i in t?y(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,l=(t,i)=>{for(var r in i||(i={}))j.call(i,r)&&f(t,r,i[r]);if(n)for(var r of n(i))u.call(i,r)&&f(t,r,i[r]);return t},d=(t,i)=>b(t,g(i));import{jsx as m}from"react/jsx-runtime";import{c as h}from"./ui-components-B24mpb8o.js";import{useEditor as E}from"./use-editor-D8T8wKX0.js";import{E as w}from"./element-wrapper-Dx7uKeuw.js";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./editor-provider-CwMLJaUa.js";import"uuid";import"./index-B_TQB0Un.js";import"./ActionsWrapper-B0x6l4Ay.js";import"@dnd-kit/sortable";import"@dnd-kit/utilities";const at=({element:t})=>{const{editor:i}=E(),{editor:r}=i,{styles:e,content:o}=t,p=typeof o=="object"&&"src"in o?o.src:"",s=typeof o=="object"&&"title"in o?o.title:"Iframe",a=typeof o=="object"&&"width"in o?o.width:"100%",c=typeof o=="object"&&"height"in o?o.height:"400";return r.liveMode?m("iframe",{style:e,src:p,title:s,width:a,height:c,className:h("border-0",t.className)}):m(w,{applyStyles:!1,element:t,children:m("iframe",{style:d(l({},e),{pointerEvents:r.liveMode?"auto":"none"}),src:p,title:s,width:a,height:c,className:h("border-0",t.className)})})};export{at as default};
