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