'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 toolbarSection = require('../toolbar-section.cjs');

const formatActions = [
  {
    value: "orderedList",
    label: "Numbered list",
    icon: /* @__PURE__ */ jsxRuntime.jsx(
      "svg",
      {
        xmlns: "http://www.w3.org/2000/svg",
        height: "20px",
        viewBox: "0 -960 960 960",
        width: "20px",
        fill: "currentColor",
        children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M144-144v-48h96v-24h-48v-48h48v-24h-96v-48h120q10.2 0 17.1 6.9 6.9 6.9 6.9 17.1v48q0 10.2-6.9 17.1-6.9 6.9-17.1 6.9 10.2 0 17.1 6.9 6.9 6.9 6.9 17.1v48q0 10.2-6.9 17.1-6.9 6.9-17.1 6.9H144Zm0-240v-96q0-10.2 6.9-17.1 6.9-6.9 17.1-6.9h72v-24h-96v-48h120q10.2 0 17.1 6.9 6.9 6.9 6.9 17.1v72q0 10.2-6.9 17.1-6.9 6.9-17.1 6.9h-72v24h96v48H144Zm48-240v-144h-48v-48h96v192h-48Zm168 384v-72h456v72H360Zm0-204v-72h456v72H360Zm0-204v-72h456v72H360Z" })
      }
    ),
    isActive: (editor) => editor.isActive("orderedList"),
    action: (editor) => editor.chain().focus().toggleOrderedList().run(),
    canExecute: (editor) => editor.can().chain().focus().toggleOrderedList().run(),
    shortcuts: ["mod", "shift", "7"]
  },
  {
    value: "bulletList",
    label: "Bullet list",
    icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.ListBulletIcon, { className: "size-5" }),
    isActive: (editor) => editor.isActive("bulletList"),
    action: (editor) => editor.chain().focus().toggleBulletList().run(),
    canExecute: (editor) => editor.can().chain().focus().toggleBulletList().run(),
    shortcuts: ["mod", "shift", "8"]
  }
];
const SectionFour = ({
  editor,
  activeActions = formatActions.map((action) => action.value),
  mainActionCount = 0,
  size,
  variant
}) => {
  return /* @__PURE__ */ jsxRuntime.jsx(
    toolbarSection.ToolbarSection,
    {
      editor,
      actions: formatActions,
      activeActions,
      mainActionCount,
      dropdownIcon: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
        /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.ListBulletIcon, { className: "size-5" }),
        /* @__PURE__ */ jsxRuntime.jsx(reactIcons_esm.CaretDownIcon, { className: "size-5" })
      ] }),
      dropdownTooltip: "Lists",
      size,
      variant
    }
  );
};
SectionFour.displayName = "SectionFour";

exports.SectionFour = SectionFour;
exports.default = SectionFour;
