text: "use strict";
  
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = exports.styles = void 0;
  
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
  
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
  
  var _react = _interopRequireDefault(require("react"));
  
  var _propTypes = _interopRequireDefault(require("prop-types"));
  
  var _clsx = _interopRequireDefault(require("clsx"));
  
  var _RadioButtonUnchecked = _interopRequireDefault(require("../internal/svg-icons/RadioButtonUnchecked"));
  
  var _RadioButtonChecked = _interopRequireDefault(require("../internal/svg-icons/RadioButtonChecked"));
  
  var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
  
  var styles = function styles(theme) {
    return {
      root: {
        position: 'relative',
        display: 'flex',
        '&$checked $layer': {
          transform: 'scale(1)',
          transition: theme.transitions.create('transform', {
            easing: theme.transitions.easing.easeOut,
            duration: theme.transitions.duration.shortest
          })
        }
      },
      layer: {
        left: 0,
        position: 'absolute',
        transform: 'scale(0)',
        transition: theme.transitions.create('transform', {
          easing: theme.transitions.easing.easeIn,
          duration: theme.transitions.duration.shortest
        })
      },
      checked: {}
    };
  };
  /**
   * @ignore - internal component.
   */
  
  
  exports.styles = styles;
  
  var _ref = _react.default.createElement(_RadioButtonUnchecked.default, null);
  
  function RadioButtonIcon(props) {
    var checked = props.checked,
        classes = props.classes,
        className = props.className,
        other = (0, _objectWithoutProperties2.default)(props, ["checked", "classes", "className"]);
    return _react.default.createElement("div", (0, _extends2.default)({
      className: (0, _clsx.default)(classes.root, className, checked && classes.checked)
    }, other), _ref, _react.default.createElement(_RadioButtonChecked.default, {
      className: classes.layer
    }));
  }
  
  process.env.NODE_ENV !== "production" ? RadioButtonIcon.propTypes = {
    /**
     * If `true`, the component is checked.
     */
    checked: _propTypes.default.bool,
  
    /**
     * Override or extend the styles applied to the component.
     * See [CSS API](#css) below for more details.
     */
    classes: _propTypes.default.object.isRequired,
  
    /**
     * @ignore
     */
    className: _propTypes.default.string
  } : void 0;
  
  var _default = (0, _withStyles.default)(styles, {
    name: 'PrivateRadioButtonIcon'
  })(RadioButtonIcon);
  
  exports.default = _default;