text: 'use strict';
  
  var _extends = require('babel-runtime/helpers/extends')['default'];
  
  var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
  
  exports.__esModule = true;
  
  var _react = require('react');
  
  var _react2 = _interopRequireDefault(_react);
  
  var _classnames = require('classnames');
  
  var _classnames2 = _interopRequireDefault(_classnames);
  
  var _BootstrapMixin = require('./BootstrapMixin');
  
  var _BootstrapMixin2 = _interopRequireDefault(_BootstrapMixin);
  
  var _SafeAnchor = require('./SafeAnchor');
  
  var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor);
  
  var Thumbnail = _react2['default'].createClass({
    displayName: 'Thumbnail',
  
    mixins: [_BootstrapMixin2['default']],
  
    propTypes: {
      alt: _react2['default'].PropTypes.string,
      href: _react2['default'].PropTypes.string,
      src: _react2['default'].PropTypes.string
    },
  
    getDefaultProps: function getDefaultProps() {
      return {
        bsClass: 'thumbnail'
      };
    },
  
    render: function render() {
      var classes = this.getBsClassSet();
  
      if (this.props.href) {
        return _react2['default'].createElement(
          _SafeAnchor2['default'],
          _extends({}, this.props, { href: this.props.href, className: _classnames2['default'](this.props.className, classes) }),
          _react2['default'].createElement('img', { src: this.props.src, alt: this.props.alt })
        );
      }
  
      if (this.props.children) {
        return _react2['default'].createElement(
          'div',
          _extends({}, this.props, { className: _classnames2['default'](this.props.className, classes) }),
          _react2['default'].createElement('img', { src: this.props.src, alt: this.props.alt }),
          _react2['default'].createElement(
            'div',
            { className: 'caption' },
            this.props.children
          )
        );
      }
  
      return _react2['default'].createElement(
        'div',
        _extends({}, this.props, { className: _classnames2['default'](this.props.className, classes) }),
        _react2['default'].createElement('img', { src: this.props.src, alt: this.props.alt })
      );
    }
  });
  
  exports['default'] = Thumbnail;
  module.exports = exports['default'];