"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getUrlEncodedChevronColor = exports.getChevronColor = void 0;

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

var getChevronColor = function getChevronColor(theme) {
  var colorName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'greyscale-darker';
  return (0, _branding.getPaletteColor)(colorName)({
    theme: theme
  });
};

exports.getChevronColor = getChevronColor;

var getUrlEncodedChevronColor = function getUrlEncodedChevronColor(theme) {
  var rawColor = getChevronColor(theme);
  return encodeURIComponent(rawColor != null ? rawColor : 'gray');
};

exports.getUrlEncodedChevronColor = getUrlEncodedChevronColor;