"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.LearnMore = void 0;

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _react = _interopRequireDefault(require("react"));

var _styles = require("@material-ui/core/styles");

var _sized = _interopRequireDefault(require("./sized"));

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

var Glint = function Glint(_ref) {
  var fill = _ref.fill;
  return /*#__PURE__*/_react["default"].createElement("path", {
    fill: fill,
    d: "M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z"
  });
};

Glint.propTypes = {
  fill: _propTypes["default"].string
};

var LearnMore = /*#__PURE__*/function (_React$Component) {
  (0, _inherits2["default"])(LearnMore, _React$Component);

  var _super = _createSuper(LearnMore);

  function LearnMore() {
    (0, _classCallCheck2["default"])(this, LearnMore);
    return _super.apply(this, arguments);
  }

  (0, _createClass2["default"])(LearnMore, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          classes = _this$props.classes,
          size = _this$props.size;

      if (this.props.open === true) {
        return /*#__PURE__*/_react["default"].createElement(_sized["default"], {
          size: size
        }, /*#__PURE__*/_react["default"].createElement("svg", {
          preserveAspectRatio: "xMinYMin meet",
          viewBox: "-135 129 16 32"
        }, /*#__PURE__*/_react["default"].createElement("path", {
          className: classes.hideBg,
          d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"
        }), /*#__PURE__*/_react["default"].createElement("path", {
          className: classes.hideBg,
          d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"
        }), /*#__PURE__*/_react["default"].createElement(Glint, {
          fill: classes.hideFg.fill
        })));
      } else {
        return /*#__PURE__*/_react["default"].createElement(_sized["default"], {
          size: size
        }, /*#__PURE__*/_react["default"].createElement("svg", {
          preserveAspectRatio: "xMinYMin meet",
          viewBox: "-135 129 16 31"
        }, /*#__PURE__*/_react["default"].createElement("path", {
          fill: "#D0CAC5",
          stroke: "#E6E3E0",
          className: "st0",
          d: "M-120.7,142.4c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-121.6,146-120.7,144.3-120.7,142.4z"
        }), /*#__PURE__*/_react["default"].createElement("path", {
          fill: "#D0CAC5",
          stroke: "#E6E3E0",
          className: "st0",
          d: "M-124.4,154.3h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-123.6,153.9-123.9,154.3-124.4,154.3z"
        }), /*#__PURE__*/_react["default"].createElement("path", {
          fill: "#B3ABA4",
          stroke: "#CDC7C2",
          className: "st1",
          d: "M-121.3,141.8c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.2,145.3-121.3,143.7-121.3,141.8z"
        }), ",", /*#__PURE__*/_react["default"].createElement("path", {
          fill: "#B3ABA4",
          stroke: "#CDC7C2",
          className: "st1",
          d: "M-125,153.7h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.2,153.3-124.6,153.7-125,153.7z"
        }), /*#__PURE__*/_react["default"].createElement("path", {
          className: classes.showBg,
          d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"
        }), /*#__PURE__*/_react["default"].createElement("path", {
          className: classes.showBg,
          d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"
        }), /*#__PURE__*/_react["default"].createElement(Glint, {
          fill: classes.hideFg.fill
        })));
      }
    }
  }]);
  return LearnMore;
}(_react["default"].Component);

exports.LearnMore = LearnMore;
(0, _defineProperty2["default"])(LearnMore, "propTypes", {
  classes: _propTypes["default"].object.isRequired,
  size: _propTypes["default"].number
});
var styles = {
  showBg: {
    fill: '#1a9cff'
  },
  hideFg: {
    fill: '#1a9cff'
  },
  hideBg: {
    fill: '#bce2ff'
  }
};
LearnMore.propTypes = {
  open: _propTypes["default"].bool
};
LearnMore.defaultProps = {
  open: false
};

var _default = (0, _styles.withStyles)(styles)(LearnMore);

exports["default"] = _default;
//# sourceMappingURL=learn-more-icon.js.map