Liferay.Loader.define("site-navigation-admin-web@3.0.25/site_navigation_menu_editor/components/App", ['module', 'exports', 'require', 'frontend-js-react-web$react', '../constants/sidebarPanelIds', '../contexts/ConstantsContext', '../contexts/SelectedMenuItemIdContext', '../contexts/SidebarPanelIdContext', './AppLayout', './EmptyState', './Menu', './MenuItemSettingsPanel', './MenuSettingsPanel', './Toolbar'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.App = App;

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

    var _sidebarPanelIds = require("../constants/sidebarPanelIds");

    var _ConstantsContext = require("../contexts/ConstantsContext");

    var _SelectedMenuItemIdContext = require("../contexts/SelectedMenuItemIdContext");

    var _SidebarPanelIdContext = require("../contexts/SidebarPanelIdContext");

    var _AppLayout = require("./AppLayout");

    var _EmptyState = require("./EmptyState");

    var _Menu = require("./Menu");

    var _MenuItemSettingsPanel = require("./MenuItemSettingsPanel");

    var _MenuSettingsPanel = require("./MenuSettingsPanel");

    var _Toolbar = require("./Toolbar");

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

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * This library is free software; you can redistribute it and/or modify it under
     * the terms of the GNU Lesser General Public License as published by the Free
     * Software Foundation; either version 2.1 of the License, or (at your option)
     * any later version.
     *
     * This library is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
     * details.
     */
    var SIDEBAR_PANELS = [{
      component: _MenuItemSettingsPanel.MenuItemSettingsPanel,
      sidebarPanelId: _sidebarPanelIds.SIDEBAR_PANEL_IDS.menuItemSettings
    }, {
      component: _MenuSettingsPanel.MenuSettingsPanel,
      sidebarPanelId: _sidebarPanelIds.SIDEBAR_PANEL_IDS.menuSettings
    }];

    function App(props) {
      var siteNavigationMenuItems = props.siteNavigationMenuItems;
      return _react["default"].createElement(_ConstantsContext.ConstantsProvider, {
        constants: props
      }, _react["default"].createElement(_SelectedMenuItemIdContext.SelectedMenuItemIdProvider, null, _react["default"].createElement(_SidebarPanelIdContext.SidebarPanelIdProvider, null, _react["default"].createElement(_AppLayout.AppLayout, {
        contentChildren: !siteNavigationMenuItems.length ? _react["default"].createElement(_EmptyState.EmptyState, null) : _react["default"].createElement(_Menu.Menu, null),
        sidebarPanels: SIDEBAR_PANELS,
        toolbarChildren: _react["default"].createElement(_Toolbar.Toolbar, null)
      }))));
    }
    //# sourceMappingURL=App.js.map
  }
});
//# sourceMappingURL=App.js.map