"use strict";

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

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

var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));

var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));

var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));

var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));

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:CarouselSecondConfig');

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

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

    _this.state = {};
    return _this;
  }

  CarouselSecondConfig.prototype.render = function () {
    var panelProps = this.props.panelProps;
    console.log('panelProps...', panelProps);

    var getConfig = function getConfig() {
      return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
        source: [{
          key: '1',
          name: 'Image',
          value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
            data: panelProps.image
          }),
          metaOption: panelProps.image,
          toggleType: 'switch'
        }, {
          key: '2',
          name: 'Title',
          value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
            data: panelProps.title
          }),
          metaOption: panelProps.title,
          toggleType: 'switch'
        }, {
          key: '3',
          name: 'Text',
          value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
            data: panelProps.text
          }),
          metaOption: panelProps.text,
          toggleType: 'switch'
        }, {
          key: '4',
          name: 'Image Tag',
          value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
            data: panelProps.imageTag
          }),
          metaOption: panelProps.imageTag,
          toggleType: 'switch'
        }, {
          key: '5',
          name: 'Text Tag',
          value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
            data: panelProps.textTag
          }),
          metaOption: panelProps.textTag,
          toggleType: 'switch'
        }, {
          key: '6',
          name: 'Secondary Button Tag',
          value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
            data: panelProps.secondButtonTag
          }),
          metaOption: panelProps.secondButtonTag,
          toggleType: 'switch'
        }]
      });
    };

    return /*#__PURE__*/_react["default"].createElement("div", {
      className: "carousel_second_conf_wrap"
    }, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
      divider: "bold",
      headerSize: "large",
      source: [{
        key: '1',
        name: 'Content',
        value: getConfig()
      }],
      type: "triangle"
    }));
  };

  CarouselSecondConfig.defaultProps = {
    panelProps: {}
  };
  return CarouselSecondConfig;
}(_react["default"].Component);

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