text: 'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
  
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
  
  var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
  
  var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
  
  var _createClass2 = require('babel-runtime/helpers/createClass');
  
  var _createClass3 = _interopRequireDefault(_createClass2);
  
  var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
  
  var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
  
  var _inherits2 = require('babel-runtime/helpers/inherits');
  
  var _inherits3 = _interopRequireDefault(_inherits2);
  
  var _simpleAssign = require('simple-assign');
  
  var _simpleAssign2 = _interopRequireDefault(_simpleAssign);
  
  var _react = require('react');
  
  var _react2 = _interopRequireDefault(_react);
  
  var _propTypes = require('prop-types');
  
  var _propTypes2 = _interopRequireDefault(_propTypes);
  
  var _keyboardArrowUp = require('../svg-icons/hardware/keyboard-arrow-up');
  
  var _keyboardArrowUp2 = _interopRequireDefault(_keyboardArrowUp);
  
  var _keyboardArrowDown = require('../svg-icons/hardware/keyboard-arrow-down');
  
  var _keyboardArrowDown2 = _interopRequireDefault(_keyboardArrowDown);
  
  var _IconButton = require('../IconButton');
  
  var _IconButton2 = _interopRequireDefault(_IconButton);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  function getStyles() {
    return {
      root: {
        top: 0,
        bottom: 0,
        right: 4,
        margin: 'auto',
        position: 'absolute'
      }
    };
  }
  
  var CardExpandable = function (_Component) {
    (0, _inherits3.default)(CardExpandable, _Component);
  
    function CardExpandable() {
      (0, _classCallCheck3.default)(this, CardExpandable);
      return (0, _possibleConstructorReturn3.default)(this, (CardExpandable.__proto__ || (0, _getPrototypeOf2.default)(CardExpandable)).apply(this, arguments));
    }
  
    (0, _createClass3.default)(CardExpandable, [{
      key: 'render',
      value: function render() {
        var styles = getStyles(this.props, this.context);
  
        return _react2.default.createElement(
          _IconButton2.default,
          {
            style: (0, _simpleAssign2.default)(styles.root, this.props.style),
            onTouchTap: this.props.onExpanding,
            iconStyle: this.props.iconStyle
          },
          this.props.expanded ? this.props.openIcon : this.props.closeIcon
        );
      }
    }]);
    return CardExpandable;
  }(_react.Component);
  
  CardExpandable.contextTypes = {
    muiTheme: _propTypes2.default.object.isRequired
  };
  CardExpandable.defaultProps = {
    closeIcon: _react2.default.createElement(_keyboardArrowDown2.default, null),
    openIcon: _react2.default.createElement(_keyboardArrowUp2.default, null)
  };
  CardExpandable.propTypes = process.env.NODE_ENV !== "production" ? {
    closeIcon: _propTypes2.default.node,
    expanded: _propTypes2.default.bool,
    iconStyle: _propTypes2.default.object,
    onExpanding: _propTypes2.default.func.isRequired,
    openIcon: _propTypes2.default.node,
    style: _propTypes2.default.object
  } : {};
  exports.default = CardExpandable;