"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getOrderFromOrderedListNode = exports.getItemCounterDigitsSize = exports.DEFAULT_ORDER = void 0;
Object.defineProperty(exports, "isBulletList", {
  enumerable: true,
  get: function get() {
    return _isBulletList.isBulletList;
  }
});
Object.defineProperty(exports, "isListItemNode", {
  enumerable: true,
  get: function get() {
    return _isListItemNode.isListItemNode;
  }
});
Object.defineProperty(exports, "isListNode", {
  enumerable: true,
  get: function get() {
    return _isListNode.isListNode;
  }
});
Object.defineProperty(exports, "isParagraphNode", {
  enumerable: true,
  get: function get() {
    return _isParagraphNode.isParagraphNode;
  }
});
Object.defineProperty(exports, "resolveOrder", {
  enumerable: true,
  get: function get() {
    return _resolveOrder3.resolveOrder;
  }
});
var _resolveOrder3 = require("./resolveOrder");
var _isListNode = require("./isListNode");
var _isParagraphNode = require("./isParagraphNode");
var _isListItemNode = require("./isListItemNode");
var _isBulletList = require("./isBulletList");
// File has been copied to packages/editor/editor-plugin-ai/src/provider/prosemirror-transformer/utils/list.ts
// If changes are made to this file, please make the same update in the linked file.

var DEFAULT_ORDER = exports.DEFAULT_ORDER = 1;
var getOrderFromOrderedListNode = exports.getOrderFromOrderedListNode = function getOrderFromOrderedListNode(orderedListNode) {
  var _orderedListNode$attr, _resolveOrder;
  var order = orderedListNode === null || orderedListNode === void 0 || (_orderedListNode$attr = orderedListNode.attrs) === null || _orderedListNode$attr === void 0 ? void 0 : _orderedListNode$attr.order;
  return (_resolveOrder = (0, _resolveOrder3.resolveOrder)(order)) !== null && _resolveOrder !== void 0 ? _resolveOrder : DEFAULT_ORDER;
};
var getItemCounterDigitsSize = exports.getItemCounterDigitsSize = function getItemCounterDigitsSize(options) {
  var _resolveOrder2, _String;
  var order = (_resolveOrder2 = (0, _resolveOrder3.resolveOrder)(options.order)) !== null && _resolveOrder2 !== void 0 ? _resolveOrder2 : DEFAULT_ORDER;
  var itemsCount = typeof options.itemsCount === 'number' ? options.itemsCount : 0;
  var largestCounter = order + (itemsCount - 1);
  return (_String = String(largestCounter)) === null || _String === void 0 || (_String = _String.split('.')) === null || _String === void 0 || (_String = _String[0]) === null || _String === void 0 ? void 0 : _String.length;
};
// eslint-disable-next-line @atlaskit/editor/no-re-export

// eslint-disable-next-line @atlaskit/editor/no-re-export

// eslint-disable-next-line @atlaskit/editor/no-re-export

// eslint-disable-next-line @atlaskit/editor/no-re-export

// eslint-disable-next-line @atlaskit/editor/no-re-export