var h=Object.defineProperty;var o=Object.getOwnPropertySymbols;var s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var n=(t,e,r)=>e in t?h(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,d=(t,e)=>{for(var r in e||(e={}))s.call(e,r)&&n(t,r,e[r]);if(o)for(var r of o(e))c.call(e,r)&&n(t,r,e[r]);return t};var l=(t,e)=>{var r={};for(var i in t)s.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&o)for(var i of o(t))e.indexOf(i)<0&&c.call(t,i)&&(r[i]=t[i]);return r};import{c as x}from"./ui-components-B24mpb8o.js";import y,{forwardRef as w}from"react";import"react/jsx-runtime";import"next-themes";import"sonner";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";const C=w((R,g)=>{var p=R,{element:t,onClick:e,className:r,forceTag:i,children:u}=p,f=l(p,["element","onClick","className","forceTag","children"]);const{type:a,content:m,className:E}=t,N=typeof m=="object"&&"innerText"in m?m.innerText:u||"",T=(()=>{if(i)return i;switch(a){case"span":return"span";case"paragraph":return"p";case"button":return"button";case"link":return"a";case"heading":return"h2";default:return"span"}})(),b=x(E,r);return y.createElement(T,d({ref:g,className:b,onClick:e,"data-editor-element-id":t.id,"data-editor-type":a},f),N)});C.displayName="SimplifiedEditorElement";export{C as default};
