"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

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

var _TextConfigTitle = _interopRequireDefault(require("./TextConfigTitle"));

var _common = require("../../../../common");

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

var __extends = void 0 && (void 0).__extends || function () {
  var _extendStatics = function extendStatics(d, b) {
    _extendStatics = Object.setPrototypeOf || {
      __proto__: []
    } instanceof Array && function (d, b) {
      d.__proto__ = b;
    } || function (d, b) {
      for (var p in b) {
        if (b.hasOwnProperty(p)) d[p] = b[p];
      }
    };

    return _extendStatics(d, b);
  };

  return function (d, b) {
    _extendStatics(d, b);

    function __() {
      this.constructor = d;
    }

    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  };
}();

var debug = require('debug')('worker:AComponent');

var AComponent =
/** @class */
function (_super) {
  __extends(AComponent, _super);

  function AComponent() {
    var _this = _super !== null && _super.apply(this, arguments) || this;

    _this.state = {};
    return _this;
  }

  AComponent.prototype.render = function () {
    var _a = this.props,
        onSecondConfigChange = _a.onSecondConfigChange,
        data = _a.data;
    console.log('data: ', data);
    return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
      source: [{
        key: '1',
        name: 'Title',
        value: /*#__PURE__*/_react["default"].createElement(_TextConfigTitle["default"], {
          data: data,
          onChange: function onChange(value) {
            return onSecondConfigChange(value);
          }
        })
      }]
    });
  };

  AComponent.defaultProps = {
    title: 'title'
  };
  return AComponent;
}(_react["default"].Component);

var _default = AComponent;
exports["default"] = _default;