"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getBorderColorActive = exports.getBorderColorHover = exports.getBorderColor = exports.getBorderRadius = void 0;

var _branding = require("../../../mixins/branding");

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var getBorderRadius = function getBorderRadius(_ref) {
  var theme = _ref.theme;
  return theme.buttonBorderRadius;
};

exports.getBorderRadius = getBorderRadius;

var getBorderColor = function getBorderColor(_ref2) {
  var hideBorder = _ref2.hideBorder,
      rest = _objectWithoutProperties(_ref2, ["hideBorder"]);

  return hideBorder ? 'transparent' : (0, _branding.getPaletteColor)('greyscale-light')(rest);
};

exports.getBorderColor = getBorderColor;

var getBorderColorHover = function getBorderColorHover(_ref3) {
  var hideBorder = _ref3.hideBorder,
      rest = _objectWithoutProperties(_ref3, ["hideBorder"]);

  return hideBorder ? 'transparent' : (0, _branding.getPaletteColor)('greyscale-medium')(rest);
};

exports.getBorderColorHover = getBorderColorHover;

var getBorderColorActive = function getBorderColorActive(_ref4) {
  var hideBorder = _ref4.hideBorder,
      rest = _objectWithoutProperties(_ref4, ["hideBorder"]);

  return hideBorder ? 'transparent' : (0, _branding.getPaletteColor)('greyscale-darker')(rest);
};

exports.getBorderColorActive = getBorderColorActive;