"use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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

var _styledComponents = _interopRequireWildcard(require("styled-components"));

var _components = require("./components.css-rules");

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

var _primitives = require("../../../primitives");

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

var getTransform = function getTransform(_ref) {
  var _ref$selectorOffset = _ref.selectorOffset,
      x = _ref$selectorOffset.x,
      y = _ref$selectorOffset.y;
  return "translate(".concat(x, "px, ").concat(y, "px)");
};

var fadeIn = (0, _styledComponents.keyframes)(["0%{opacity:0;}100%{opacity:1;}"]);
var SelectionIndicator = (0, _styledComponents["default"])(_primitives.Box).withConfig({
  displayName: "SelectionIndicator",
  componentId: "egjz06-0"
})(["", " animation:", " 250ms ease;animation-fill-mode:both;background:", ";color:", ";left:0;opacity:0;position:absolute;top:0;transform:", ";transition:150ms cubic-bezier(0.34,0,0.53,1.3);"], _components.getSelectionIndicatorShape, fadeIn, (0, _branding.getPaletteColor)('greyscale-black'), (0, _branding.getPaletteColor)('greyscale-black'), getTransform);
exports.SelectionIndicator = SelectionIndicator;