"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_text_buttons_exports = {};
__export(get_text_buttons_exports, {
  getTextButtons: () => getTextButtons
});
module.exports = __toCommonJS(get_text_buttons_exports);
var import_ricos_content = require("./../ricos-content/index.js");
var import_ricos_types = require("./../ricos-types/index.js");
var import_is_always_visible = require("./../_shared/resolvers/is-always-visible.js");
var import_is_codeblock_in_selection = require("./../_shared/resolvers/is-codeblock-in-selection.js");
var import_is_node_or_caption_selected = require("./../_shared/resolvers/is-node-or-caption-selected.js");
var import_data_hooks = require("./data-hooks.js");
var import_code_block_icon = require("./icons/toolbars-v3/code-block-icon.js");
const getTextButtons = () => {
  return [
    {
      id: import_ricos_types.Node_Type.CODE_BLOCK,
      type: "toggle",
      presentation: {
        dataHook: import_data_hooks.TEXT_BUTTON_CODE_BLOCK,
        tooltip: "TextCodeBlockButton_Tooltip",
        tooltipShortcut: {
          MacOS: " (⌘⇧C)",
          Windows: " (Ctrl+⇧+C)"
        },
        icon: import_code_block_icon.CodeBlockIcon
      },
      attributes: {
        visible: import_is_always_visible.isAlwaysVisible,
        active: import_is_codeblock_in_selection.isCodeBlockInSelection,
        disabled: import_is_node_or_caption_selected.isNodeOrCaptionSelected
      },
      command: ({ publicCommands }) => () => {
        publicCommands.setBlockType(import_ricos_content.CODE_BLOCK_TYPE);
        return true;
      }
    }
  ];
};
//# sourceMappingURL=get-text-buttons.js.map
