"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 checkbox_list_exports = {};
__export(checkbox_list_exports, {
  pluginCheckboxList: () => pluginCheckboxList
});
module.exports = __toCommonJS(checkbox_list_exports);
var import_wix_ui_icons_common = require("@wix/wix-ui-icons-common");
var import_ricos_content = require("./../../ricos-content/index.js");
var import_v1 = require("./../../ricos-schema/legacy/wix/rich_content/v1/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_checkbox_list_in_selection = require("./../../_shared/resolvers/is-checkbox-list-in-selection.js");
var import_is_node_or_caption_selected = require("./../../_shared/resolvers/is-node-or-caption-selected.js");
var import_checkbox_list_converter = require("./checkbox-list-converter.js");
var import_extension = require("./extension.js");
const pluginCheckboxList = {
  type: import_v1.Node_Type.CHECKBOX_LIST,
  config: {},
  tiptapExtensions: [import_extension.checkboxList],
  pmMarkConverters: [],
  pmNodeConverters: [import_checkbox_list_converter.checkboxListConverter],
  shortcuts: [],
  textButtons: [
    {
      id: import_v1.Node_Type.CHECKBOX_LIST,
      type: "toggle",
      presentation: {
        dataHook: "text-button-checkbox-list",
        tooltip: "CheckboxListButton_Tooltip",
        icon: import_wix_ui_icons_common.ChecklistSmall
      },
      attributes: {
        visible: import_is_always_visible.isAlwaysVisible,
        active: import_is_checkbox_list_in_selection.isCheckboxListInSelection,
        disabled: import_is_node_or_caption_selected.isNodeOrCaptionSelected
      },
      command: ({ publicCommands }) => () => {
        publicCommands.setBlockType(import_ricos_content.CHECKBOX_LIST_TYPE);
        return true;
      }
    }
  ],
  getQuickActions: () => [
    {
      id: import_v1.Node_Type.CHECKBOX_LIST,
      title: "QuickActionsPlugin_ActionTitle_CheckboxList",
      icon: import_wix_ui_icons_common.ChecklistSmall,
      section: import_ricos_types.quickActionsModalSections.FormatLayout,
      tags: ["checkbox", "checklist", "todo", "task list"],
      command: ({ publicCommands }) => publicCommands.setBlockType(import_ricos_content.CHECKBOX_LIST_TYPE)
    }
  ]
};
//# sourceMappingURL=checkbox-list.js.map
