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