"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _adfSchema = require("@atlaskit/adf-schema");
var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
var cellBackgroundColorPalette = [];
_adfSchema.tableBackgroundColorPalette.forEach(function (label, color) {
  // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
  var key = label.toLowerCase().replace(' ', '-');
  var message = (0, _getColorMessage.default)(_paletteMessages.default, key);
  cellBackgroundColorPalette.push({
    value: color,
    label: label,
    border: _adfSchema.tableBackgroundBorderColor,
    message: message
  });
});
var _default = exports.default = cellBackgroundColorPalette;