"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var get_add_buttons_exports = {};
__export(get_add_buttons_exports, {
  getAddButtons: () => getAddButtons
});
module.exports = __toCommonJS(get_add_buttons_exports);
var import_wix_ui_icons_common = require("@wix/wix-ui-icons-common");
var import_editor_common = require("./../editor-common/index.js");
var import_data_hooks = require("./data-hooks.js");
var import_defaults = require("./defaults.js");
var import_types = require("./types.js");
const getAddButtons = () => {
  return [
    {
      id: import_types.TOC_TYPE,
      icon: import_wix_ui_icons_common.List,
      label: import_editor_common.INSERT_PLUGIN_BUTTONS.TOC,
      dataHook: import_data_hooks.INSERT_TOC_BUTTON,
      tooltip: "TocPlugin_InsertButton_Tooltip",
      toolbars: [import_editor_common.TOOLBARS.MOBILE, import_editor_common.TOOLBARS.FOOTER, import_editor_common.TOOLBARS.SIDE],
      command: ({ publicCommands }) => {
        publicCommands.insertBlockWithBlankLines(import_types.TOC_TYPE, import_defaults.TOC_DEFAULTS);
        return true;
      },
      menuConfig: {
        group: "advanced",
        tags: "Toc_plugin_search_tags"
      }
    }
  ];
};
//# sourceMappingURL=get-add-buttons.js.map
