"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getModalHeaderPadding = exports.getModalWidth = exports.getBorderColor = exports.getContentBoxShadowColor = exports.getContentBackground = exports.getBackgroundColor = void 0;

var _color = require("../../../utils/color");

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

var getBackgroundColor = function getBackgroundColor(_ref) {
  var theme = _ref.theme;
  return (0, _color.fadeColor)((0, _branding.getPaletteColor)('background')({
    theme: theme
  }), 0.15);
};

exports.getBackgroundColor = getBackgroundColor;

var getContentBackground = function getContentBackground(_ref2) {
  var theme = _ref2.theme;
  return (0, _branding.getPaletteColor)('white')({
    theme: theme
  });
};

exports.getContentBackground = getContentBackground;

var getContentBoxShadowColor = function getContentBoxShadowColor(_ref3) {
  var theme = _ref3.theme;
  return (0, _color.fadeColor)((0, _branding.getPaletteColor)('greyscale-black')({
    theme: theme
  }), 0.95);
};

exports.getContentBoxShadowColor = getContentBoxShadowColor;

var getBorderColor = function getBorderColor(_ref4) {
  var theme = _ref4.theme;
  return (0, _branding.getPaletteColor)('greyscale-light')({
    theme: theme
  });
};

exports.getBorderColor = getBorderColor;

var getModalWidth = function getModalWidth(_ref5) {
  var size = _ref5.size;

  switch (size) {
    case 'sm':
      return '300px';

    case 'md':
      return '450px';

    case 'lg':
      return '600px';

    case 'xl':
      return '840px';

    default:
      return '600px';
  }
};

exports.getModalWidth = getModalWidth;

var getModalHeaderPadding = function getModalHeaderPadding(_ref6) {
  var size = _ref6.size;

  switch (size) {
    case 'sm':
    case 'md':
    case 'lg':
      return '60px';

    case 'xl':
      return '40px';

    default:
      return '60px';
  }
};

exports.getModalHeaderPadding = getModalHeaderPadding;