'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const jsxRuntime = require('react/jsx-runtime');
const reactIcons_esm = require('../../../../../../../node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
const linkEditPopover = require('../link/link-edit-popover.cjs');
const imageEditDialog = require('../image/image-edit-dialog.cjs');
const toolbarSection = require('../toolbar-section.cjs');

const formatActions = [
  {
    value: "codeBlock",
    label: "Code block",
    icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.CodeIcon, { className: "size-5" }),
    action: (editor) => editor.chain().focus().toggleCodeBlock().run(),
    isActive: (editor) => editor.isActive("codeBlock"),
    canExecute: (editor) => editor.can().chain().focus().toggleCodeBlock().run(),
    shortcuts: ["mod", "alt", "C"]
  },
  {
    value: "blockquote",
    label: "Blockquote",
    icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.QuoteIcon, { className: "size-5" }),
    action: (editor) => editor.chain().focus().toggleBlockquote().run(),
    isActive: (editor) => editor.isActive("blockquote"),
    canExecute: (editor) => editor.can().chain().focus().toggleBlockquote().run(),
    shortcuts: ["mod", "shift", "B"]
  },
  {
    value: "horizontalRule",
    label: "Divider",
    icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.DividerHorizontalIcon, { className: "size-5" }),
    action: (editor) => editor.chain().focus().setHorizontalRule().run(),
    isActive: () => false,
    canExecute: (editor) => editor.can().chain().focus().setHorizontalRule().run(),
    shortcuts: ["mod", "alt", "-"]
  }
];
const SectionFive = ({
  editor,
  activeActions = formatActions.map((action) => action.value),
  mainActionCount = 0,
  size,
  variant
}) => {
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
    /* @__PURE__ */ jsxRuntime.jsx(linkEditPopover.LinkEditPopover, { editor, size, variant }),
    /* @__PURE__ */ jsxRuntime.jsx(imageEditDialog.ImageEditDialog, { editor, size, variant }),
    /* @__PURE__ */ jsxRuntime.jsx(
      toolbarSection.ToolbarSection,
      {
        editor,
        actions: formatActions,
        activeActions,
        mainActionCount,
        dropdownIcon: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
          /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.PlusIcon, { className: "size-5" }),
          /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.CaretDownIcon, { className: "size-5" })
        ] }),
        dropdownTooltip: "Insert elements",
        size,
        variant
      }
    )
  ] });
};
SectionFive.displayName = "SectionFive";

exports.SectionFive = SectionFive;
exports.default = SectionFive;
