import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _inherits from "@babel/runtime/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(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; } }

import React from 'react';

var ToggleSkeleton = /*#__PURE__*/function (_React$Component) {
  _inherits(ToggleSkeleton, _React$Component);

  var _super = _createSuper(ToggleSkeleton);

  function ToggleSkeleton() {
    _classCallCheck(this, ToggleSkeleton);

    return _super.apply(this, arguments);
  }

  _createClass(ToggleSkeleton, [{
    key: "render",
    value: function render() {
      var id = this.props.id;
      return /*#__PURE__*/React.createElement("div", {
        className: "wfp--form-item"
      }, /*#__PURE__*/React.createElement("input", {
        type: "checkbox",
        id: id,
        className: "wfp--toggle wfp--skeleton"
      }), /*#__PURE__*/React.createElement("label", {
        className: "wfp--toggle__label wfp--skeleton",
        htmlFor: id
      }, /*#__PURE__*/React.createElement("span", {
        className: "wfp--toggle__text--left"
      }), /*#__PURE__*/React.createElement("span", {
        className: "wfp--toggle__appearance"
      }), /*#__PURE__*/React.createElement("span", {
        className: "wfp--toggle__text--right"
      })));
    }
  }]);

  return ToggleSkeleton;
}(React.Component);

export { ToggleSkeleton as default };