"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_wix_ui_icons_common = require("@wix/wix-ui-icons-common");
var import_ricos_types = require("./../ricos-types/index.js");
var import_is_always_visible = require("./../_shared/resolvers/is-always-visible.js");
var import_is_node_selected = require("./../_shared/resolvers/is-node-selected.js");
var import_is_spoiler_in_text = require("./../_shared/resolvers/is-spoiler-in-text.js");
var import_data_hooks = require("./data-hooks.js");
const getTextButtons = () => {
  return [
    {
      id: import_ricos_types.Decoration_Type.SPOILER,
      type: "toggle",
      presentation: {
        dataHook: import_data_hooks.TEXT_BUTTON_SPOILER,
        tooltip: "Spoiler_Insert_Tooltip",
        icon: import_wix_ui_icons_common.Visible
      },
      attributes: {
        visible: import_is_always_visible.isAlwaysVisible,
        active: import_is_spoiler_in_text.isSpoilerInText,
        disabled: import_is_node_selected.isNodeSelected
      },
      command: ({ publicCommands }) => () => {
        publicCommands.toggleInlineStyle("spoiler");
        return true;
      }
    }
  ];
};
//# sourceMappingURL=get-text-buttons.js.map
