"use strict";

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

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

var getMinHeightValue = function getMinHeightValue(_ref) {
  var _ref$minHeight = _ref.minHeight,
      minHeight = _ref$minHeight === void 0 ? '100px' : _ref$minHeight;
  return minHeight;
};

exports.getMinHeightValue = getMinHeightValue;

var getAnimationUrl = function getAnimationUrl(_ref2) {
  var theme = _ref2.theme,
      variant = _ref2.variant;
  var rawColor = (0, _branding.getPaletteColor)(variant === 'neutral' ? 'greyscale-medium' : 'brand-secondary-base')({
    theme: theme
  });
  var color = encodeURIComponent(rawColor !== null ? rawColor : 'gray');
  return "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50px' height='50px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid' class='uil-ellipsis'%3E%3Ccircle cx='16' cy='50' r='8' fill='".concat(color, "' transform='rotate%280 50 50%29'%3E%3Canimate id='anir11' attributeName='r' from='0' to='8' begin='0s;anir14.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir12' attributeName='r' from='8' to='8' begin='anir11.end' dur='1.5s' fill='freeze'/%3E%3Canimate id='anir13' attributeName='r' from='8' to='0' begin='anir12.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir14' attributeName='r' from='0' to='0' begin='anir13.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix11' attributeName='cx' from='16' to='16' begin='0s;anix18.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix12' attributeName='cx' from='16' to='16' begin='anix11.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix13' attributeName='cx' from='16' to='50' begin='anix12.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix14' attributeName='cx' from='50' to='50' begin='anix13.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix8' attributeName='cx' from='50' to='84' begin='anix14.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix16' attributeName='cx' from='84' to='84' begin='anix8.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix17' attributeName='cx' from='84' to='84' begin='anix16.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix18' attributeName='cx' from='84' to='16' begin='anix17.end' dur='0.3s' fill='freeze'/%3E%3C/circle%3E%3Ccircle cx='50' cy='50' r='8' fill='").concat(color, "' transform='rotate%280 50 50%29'%3E%3Canimate id='anir21' attributeName='r' from='8' to='8' begin='0s;anir25.end' dur='1.2s' fill='freeze'/%3E%3Canimate id='anir22' attributeName='r' from='8' to='0' begin='anir21.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir23' attributeName='r' from='0' to='0' begin='anir22.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir24' attributeName='r' from='0' to='8' begin='anir23.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir25' attributeName='r' from='8' to='8' begin='anir24.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix21' attributeName='cx' from='16' to='50' begin='0s;anix28.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix22' attributeName='cx' from='50' to='50' begin='anix21.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix23' attributeName='cx' from='50' to='84' begin='anix22.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix24' attributeName='cx' from='84' to='84' begin='anix23.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix25' attributeName='cx' from='84' to='84' begin='anix24.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix26' attributeName='cx' from='84' to='16' begin='anix25.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix27' attributeName='cx' from='16' to='16' begin='anix26.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix28' attributeName='cx' from='16' to='16' begin='anix27.end' dur='0.3s' fill='freeze'/%3E%3C/circle%3E%3Ccircle cx='84' cy='50' r='8' fill='").concat(color, "' transform='rotate%280 50 50%29'%3E%3Canimate id='anir31' attributeName='r' from='8' to='8' begin='0s;anir35.end' dur='0.6s' fill='freeze'/%3E%3Canimate id='anir32' attributeName='r' from='8' to='0' begin='anir31.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir33' attributeName='r' from='0' to='0' begin='anir32.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir34' attributeName='r' from='0' to='8' begin='anir33.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir35' attributeName='r' from='8' to='8' begin='anir34.end' dur='0.8999999999999999s' fill='freeze'/%3E%3Canimate id='anix31' attributeName='cx' from='50' to='84' begin='0s;anix38.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix32' attributeName='cx' from='84' to='84' begin='anix31.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix33' attributeName='cx' from='84' to='84' begin='anix32.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix34' attributeName='cx' from='84' to='16' begin='anix33.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix35' attributeName='cx' from='16' to='16' begin='anix34.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix36' attributeName='cx' from='16' to='16' begin='anix35.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix37' attributeName='cx' from='16' to='50' begin='anix36.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix38' attributeName='cx' from='50' to='50' begin='anix37.end' dur='0.3s' fill='freeze'/%3E%3C/circle%3E%3Ccircle cx='84' cy='50' r='8' fill='").concat(color, "' transform='rotate%280 50 50%29'%3E%3Canimate id='anir41' attributeName='r' from='8' to='0' begin='0s;anir44.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir42' attributeName='r' from='0' to='0' begin='anir41.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir43' attributeName='r' from='0' to='8' begin='anir42.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anir44' attributeName='r' from='8' to='8' begin='anir43.end' dur='1.5s' fill='freeze'/%3E%3Canimate id='anix41' attributeName='cx' from='84' to='84' begin='0s;anix48.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix42' attributeName='cx' from='84' to='16' begin='anix41.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix43' attributeName='cx' from='16' to='16' begin='anix42.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix44' attributeName='cx' from='16' to='16' begin='anix43.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix45' attributeName='cx' from='16' to='50' begin='anix44.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix46' attributeName='cx' from='50' to='50' begin='anix45.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix47' attributeName='cx' from='50' to='84' begin='anix46.end' dur='0.3s' fill='freeze'/%3E%3Canimate id='anix48' attributeName='cx' from='84' to='84' begin='anix47.end' dur='0.3s' fill='freeze'/%3E%3C/circle%3E%3C/svg%3E%0A\")");
};

exports.getAnimationUrl = getAnimationUrl;