"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ToggleIconDecorator = exports.ToggleIconBase = exports.ToggleIcon = exports.default = void 0;

var _kind = _interopRequireDefault(require("@enact/core/kind"));

var _Pure = _interopRequireDefault(require("@enact/ui/internal/Pure"));

var _ToggleIcon = _interopRequireDefault(require("@enact/ui/ToggleIcon"));

var _compose = _interopRequireDefault(require("ramda/src/compose"));

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

var _Icon = _interopRequireDefault(require("../Icon"));

var _Skinnable = _interopRequireDefault(require("../Skinnable"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

/**
 * A component that indicates a boolean state.
 *
 * @class ToggleIconBase
 * @memberof moonstone/ToggleIcon
 * @extends ui/ToggleIcon.ToggleIcon
 * @ui
 * @public
 */
var ToggleIconBase = (0, _kind.default)({
  name: 'ToggleIcon',
  render: function render(props) {
    return _react.default.createElement(_ToggleIcon.default, _extends({}, props, {
      iconComponent: _Icon.default
    }));
  }
});
/**
 * Moonstone-specific behaviors to apply to `ToggleIconBase`.
 *
 * @hoc
 * @memberof moonstone/ToggleIcon
 * @mixes moonstone/Skinnable.Skinnable
 * @public
 */

exports.ToggleIconBase = ToggleIconBase;
var ToggleIconDecorator = (0, _compose.default)(_Pure.default, _Skinnable.default);
/**
 * A customizable Moonstone starting point [Icon]{@link moonstone/Icon.Icon} that responds to the
 * `selected` prop.
 *
 * @class ToggleIcon
 * @memberof moonstone/ToggleIcon
 * @extends moonstone/ToggleIcon.ToggleIconBase
 * @mixes moonstone/ToggleIcon.ToggleIconDecorator
 * @ui
 * @public
 */

exports.ToggleIconDecorator = ToggleIconDecorator;
var ToggleIcon = ToggleIconDecorator(ToggleIconBase);
exports.ToggleIcon = ToggleIcon;
var _default = ToggleIcon;
exports.default = _default;