"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TEXT_STYLE_MAP = exports.TABLE_SUBMENU_MAP = exports.MORE_OPERATION = exports.MENUS_CONFIG_MAP = exports.EXPAND_EDITOR = exports.CLEAR_FORMAT = void 0;
var _elementTypes = require("./element-types");
const BOLD = 'bold';
const ITALIC = 'italic';
const UNDERLINE = 'underline';
const CODE = 'code';
const DELETE = 'delete';
const ADD = 'add';
const CLEAR_FORMAT = exports.CLEAR_FORMAT = 'clear_format';
const MORE_OPERATION = exports.MORE_OPERATION = 'more_operation';
const EXPAND_EDITOR = exports.EXPAND_EDITOR = 'expand_editor';
const TEXT_STYLE_MAP = exports.TEXT_STYLE_MAP = {
  BOLD: BOLD,
  ITALIC: ITALIC,
  UNDERLINE: UNDERLINE,
  CODE: CODE,
  DELETE: DELETE,
  ADD: ADD,
  BOLD_ITALIC: "".concat(BOLD, "_").concat(ITALIC)
};
const TABLE_SUBMENU_MAP = exports.TABLE_SUBMENU_MAP = {
  TABLE_ALIGN_LEFT: 'table_align_left',
  TABLE_ALIGN_CENTER: 'table_align_center',
  TABLE_ALIGN_RIGHT: 'table_align_right',
  TABLE_INSERT_COLUMN: 'table_insert_column',
  TABLE_DELETE_COLUMN: 'table_delete_column',
  TABLE_INSERT_ROW: 'table_insert_row',
  TABLE_DELETE_ROW: 'table_delete_row',
  TABLE_DELETE_TABLE: 'table_delete_table'
};
const MENUS_CONFIG_MAP = exports.MENUS_CONFIG_MAP = {
  [_elementTypes.BLOCKQUOTE]: {
    id: "seafile_".concat(_elementTypes.BLOCKQUOTE),
    iconClass: 'mdfont md-quote-left',
    text: 'Quote'
  },
  [_elementTypes.ORDERED_LIST]: {
    id: "seafile_".concat(_elementTypes.ORDERED_LIST),
    iconClass: 'mdfont md-list-ol',
    text: 'Ordered_list'
  },
  [_elementTypes.UNORDERED_LIST]: {
    id: "seafile_".concat(_elementTypes.UNORDERED_LIST),
    iconClass: 'mdfont md-list-ul',
    text: 'Unordered_list'
  },
  [_elementTypes.CHECK_LIST_ITEM]: {
    id: "seafle_".concat(_elementTypes.CHECK_LIST_ITEM),
    iconClass: 'mdfont md-check-square',
    text: 'Check_list_item'
  },
  [_elementTypes.CODE_BLOCK]: {
    id: "seafile_".concat(_elementTypes.CODE_BLOCK),
    iconClass: 'mdfont md-code-block',
    text: 'Code_block'
  },
  [_elementTypes.LINK]: {
    id: "seafile_".concat(_elementTypes.LINK),
    iconClass: 'mdfont md-link',
    text: 'Insert_link'
  },
  [_elementTypes.IMAGE]: {
    id: "seafile_".concat(_elementTypes.IMAGE),
    iconClass: 'mdfont md-image',
    text: 'Insert_image'
  },
  [_elementTypes.TABLE]: {
    id: "seafile_".concat(_elementTypes.TABLE),
    iconClass: 'mdfont md-table',
    text: 'Insert_table'
  },
  [ITALIC]: {
    id: "seafile_".concat(ITALIC),
    iconClass: 'mdfont md-italic',
    text: 'Italic',
    type: ITALIC
  },
  [BOLD]: {
    id: "seafile_".concat(BOLD),
    iconClass: 'mdfont md-bold',
    text: 'Bold',
    type: BOLD
  },
  [UNDERLINE]: {
    id: "seafile_".concat(UNDERLINE),
    iconClass: 'mdfont md-underline',
    text: 'Underline',
    type: UNDERLINE
  },
  [CODE]: {
    id: "seafile_".concat(CODE),
    iconClass: 'mdfont md-inline-code',
    text: 'Code',
    type: CODE
  },
  [TABLE_SUBMENU_MAP.TABLE_ALIGN_LEFT]: {
    id: "seafile_".concat(TABLE_SUBMENU_MAP.TABLE_ALIGN_LEFT),
    iconClass: 'mdfont md-align-left',
    text: 'Left'
  },
  [TABLE_SUBMENU_MAP.TABLE_ALIGN_CENTER]: {
    id: "seafile_".concat(TABLE_SUBMENU_MAP.TABLE_ALIGN_CENTER),
    iconClass: 'mdfont md-align-center',
    text: 'Center'
  },
  [TABLE_SUBMENU_MAP.TABLE_ALIGN_RIGHT]: {
    id: "seafile_".concat(TABLE_SUBMENU_MAP.TABLE_ALIGN_RIGHT),
    iconClass: 'mdfont md-align-right',
    text: 'Right'
  },
  [_elementTypes.FORMULA]: {
    id: "seafile_".concat(_elementTypes.FORMULA),
    iconClass: 'mdfont md-formula',
    text: 'Insert_formula'
  },
  [CLEAR_FORMAT]: {
    id: "seafile_".concat(CLEAR_FORMAT),
    iconClass: 'mdfont md-format-clear',
    text: 'Clear_format'
  },
  [_elementTypes.COLUMN]: {
    id: "seafile_".concat(_elementTypes.COLUMN),
    iconClass: 'mdfont md-choose-column',
    text: 'Insert_column'
  },
  [MORE_OPERATION]: {
    id: "seafile_".concat(MORE_OPERATION),
    iconClass: 'mdfont md-more',
    text: ''
  },
  [EXPAND_EDITOR]: {
    id: "seafile_".concat(EXPAND_EDITOR),
    iconClass: 'mdfont md-fullscreen',
    text: 'Expand_editor'
  },
  [_elementTypes.DIVIDER]: {
    id: "seafile_".concat(_elementTypes.DIVIDER),
    iconClass: 'mdfont md-divider',
    text: 'Divider'
  }
};