Liferay.Loader.define("document-library-web@5.0.84/document_library/js/ddm/panels/index.es", ['module', 'exports', 'require', 'frontend-js-react-web$react', './InfoPanel.es', './PluginContext.es'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.default = void 0;

    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));

    var _InfoPanel = _interopRequireDefault(require("./InfoPanel.es"));

    var _PluginContext = require("./PluginContext.es");

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

    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }

    function _defineProperties(target, props) {
      for (var i = 0; i < props.length; i++) {
        var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);
      }
    }

    function _createClass(Constructor, protoProps, staticProps) {
      if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;
    }

    /**
     * Entry-point for sidebar pane functionality.
     */
    var _default = /*#__PURE__*/function () {
      function _default(_ref) {
        var app = _ref.app,
            panel = _ref.panel;

        _classCallCheck(this, _default);

        this.Component = (0, _PluginContext.Component)(app);
        this.title = panel.label;
        this.url = panel.url;
      }

      _createClass(_default, [{
        key: "renderSidebar",
        value: function renderSidebar() {
          var Component = this.Component;
          return (/*#__PURE__*/_react.default.createElement(Component, null, /*#__PURE__*/_react.default.createElement(_InfoPanel.default, {
              title: this.title,
              url: this.url
            }))
          );
        }
      }]);

      return _default;
    }();

    exports.default = _default;
    //# sourceMappingURL=index.es.js.map
  }
});
//# sourceMappingURL=index.es.js.map