"use strict";

exports.__esModule = true;
exports.default = exports.THEMES = void 0;
var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _classnames = _interopRequireDefault(require("classnames"));
var _customer = _interopRequireDefault(require("./customer.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const THEMES = exports.THEMES = {
  default: null,
  coorpmanager: _customer.default.coorpmanager
};
const Customer = props => {
  const {
    name,
    type,
    coorpOriginal,
    theme,
    disabled,
    'aria-label': ariaLabel
  } = props;
  const className = (0, _classnames.default)(THEMES[theme], _customer.default.customer, type === 'chapter' ? _customer.default.chapterCustomer : null);
  return /*#__PURE__*/_react.default.createElement("div", {
    className: className,
    disabled: disabled,
    "aria-label": ariaLabel
  }, /*#__PURE__*/_react.default.createElement("div", {
    className: _customer.default.content
  }, coorpOriginal ? /*#__PURE__*/_react.default.createElement("span", {
    className: _customer.default.coorp
  }, "Coorp ") : null, coorpOriginal ? /*#__PURE__*/_react.default.createElement("span", {
    className: _customer.default.original
  }, "Original ") : null, !coorpOriginal && name));
};
Customer.propTypes = process.env.NODE_ENV !== "production" ? {
  theme: _propTypes.default.oneOf((0, _keys2.default)(THEMES)),
  type: _propTypes.default.string,
  name: _propTypes.default.string,
  coorpOriginal: _propTypes.default.bool.isRequired,
  disabled: _propTypes.default.bool,
  'aria-label': _propTypes.default.string
} : {};
var _default = exports.default = Customer;
//# sourceMappingURL=customer.js.map