import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import React from 'react';
import { Tooltip } from "../../../Tooltip";
import { Button } from "../../../Button";
import { Loader } from "../../Loader";
export var LoaderAndButton = /*#__PURE__*/function (_React$Component) {
  function LoaderAndButton() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
    _this.state = {
      isTooltipOpened: false
    };
    return _this;
  }
  _inheritsLoose(LoaderAndButton, _React$Component);
  var _proto = LoaderAndButton.prototype;
  _proto.render = function render() {
    var _this2 = this;
    return /*#__PURE__*/(
      React.createElement(Loader, {
        active: this.props.active,
        type: 'big'
      }, /*#__PURE__*/
      React.createElement("h1", null, "Yeah, and if you were the pope they'd be all, \"Straighten your pope hat.\" And \"Put on your good vestments.\""), /*#__PURE__*/
      React.createElement(Tooltip, {
        render: function render() {
          return 'Yes, you can!';
        },
        trigger: this.state.isTooltipOpened ? 'opened' : 'closed'
      }, /*#__PURE__*/
      React.createElement(Button, {
        onClick: function onClick() {
          _this2.setState({
            isActive: true,
            isTooltipOpened: true
          });
        }
      }, "Can you click me?")), /*#__PURE__*/
      React.createElement("p", null, "No, I'm Santa Claus! I guess if you want children beaten, you have to do it yourself. We're also Santa Claus! Leela, Bender, we're going grave robbing."), /*#__PURE__*/
      React.createElement("p", null, "Are you crazy? I can't swallow that. Large bet on myself in round one. Hey, whatcha watching?", ' ', /*#__PURE__*/
      React.createElement("strong", null, " Moving along\u2026 I guess if you want children beaten, you have to do it yourself."), /*#__PURE__*/
      React.createElement("em", null, "It's okay, Bender."), " I like cooking too."), /*#__PURE__*/
      React.createElement("h2", null, "Oh, I think we should just stay friends."), /*#__PURE__*/
      React.createElement("p", null, "No argument here. And when we woke up, we had these bodies. You guys go on without me! I'm going to go\u2026 look for more stuff to steal! Oh, how awful. Did he at least die painlessly? \u2026To shreds, you say. Well, how is his wife holding up? \u2026To shreds, you say."), /*#__PURE__*/
      React.createElement("ol", null, /*#__PURE__*/
      React.createElement("li", null, "No! The kind with looting and maybe starting a few fires!"), /*#__PURE__*/
      React.createElement("li", null, "You are the last hope of the universe."), /*#__PURE__*/
      React.createElement("li", null, "Hey, guess what you're accessories to.")))
    );
  };
  return LoaderAndButton;
}(React.Component);