"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.LogoBase = void 0;
var _omit2 = _interopRequireDefault(require("ramda/src/omit"));
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _excluded = ["className", "children", "title", "inline"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
var CleanSvg = _react.default.forwardRef(function (props, ref) {
  return _react.default.createElement("svg", _extends({
    ref: ref
  }, (0, _omit2.default)(['inline'])(props)));
});
var StyledLogoBase = (0, _styledComponents.default)(CleanSvg).withConfig({
  displayName: "LogoBase__StyledLogoBase",
  componentId: "sc-8rr5wc-0"
})(["", ""], function (p) {
  return "\n      user-select: none;\n      flex-shrink: 0;\n      display: ".concat(p.inline ? 'inline-block' : 'block', ";\n      ").concat(p.inline ? 'vertical-align: sub;' : '', "\n    ");
});
var LogoBase = exports.LogoBase = _react.default.forwardRef(function (props, ref) {
  var className = props.className,
    children = props.children,
    title = props.title,
    inline = props.inline,
    rest = _objectWithoutProperties(props, _excluded);
  return _react.default.createElement(StyledLogoBase, _extends({
    className: className,
    preserveAspectRatio: "xMidYMid meet",
    focusable: "false",
    "aria-hidden": title ? 'false' : 'true',
    role: title ? 'img' : 'presentation',
    inline: inline,
    ref: ref
  }, rest), children, title ? _react.default.createElement("title", null, title) : null);
});