"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../../../ContemberEditor/index.cjs");
const OrderedListRenderer = require("./OrderedListRenderer.cjs");
const ListElement = require("./ListElement.cjs");
const UnorderedListElement = require("./UnorderedListElement.cjs");
const toggleListElement = require("./transforms/toggleListElement.cjs");
const normalizeListElement = require("./transforms/normalizeListElement.cjs");
const orderedListElementType = "orderedList";
const isOrderedListElement = (element, suchThat) => index.ContemberEditor.isElementType(element, orderedListElementType, suchThat);
const orderedListElementPlugin = {
  type: orderedListElementType,
  render: OrderedListRenderer.OrderedListRenderer,
  isActive: ({ editor, suchThat }) => {
    const list = ListElement.getParentListElement(editor);
    return list ? isOrderedListElement(list, suchThat) : false;
  },
  toggleElement: ({ editor, suchThat }) => {
    toggleListElement.toggleListElement(editor, orderedListElementType, suchThat, UnorderedListElement.unorderedListElementType);
  },
  normalizeNode: normalizeListElement.normalizeListElement
};
exports.isOrderedListElement = isOrderedListElement;
exports.orderedListElementPlugin = orderedListElementPlugin;
exports.orderedListElementType = orderedListElementType;
//# sourceMappingURL=OrderedListElement.cjs.map
