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

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

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

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

    var _SidebarPanelContent = require("./SidebarPanelContent");

    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.
     */
    function MenuItemSettingsPanel() {
      var _siteNavigationMenuIt;

      var _useConstants = (0, _ConstantsContext.useConstants)(),
          editSiteNavigationMenuItemURL = _useConstants.editSiteNavigationMenuItemURL,
          siteNavigationMenuItems = _useConstants.siteNavigationMenuItems;

      var selectedMenuItemId = (0, _SelectedMenuItemIdContext.useSelectedMenuItemId)();
      var title = (_siteNavigationMenuIt = siteNavigationMenuItems.find(function (item) {
        return item.siteNavigationMenuItemId === selectedMenuItemId;
      })) === null || _siteNavigationMenuIt === void 0 ? void 0 : _siteNavigationMenuIt.title;
      return _react["default"].createElement(_SidebarPanelContent.SidebarPanelContent, {
        contentRequestBody: {
          siteNavigationMenuItemId: selectedMenuItemId
        },
        contentUrl: editSiteNavigationMenuItemURL,
        title: title
      });
    }
    //# sourceMappingURL=MenuItemSettingsPanel.js.map
  }
});
//# sourceMappingURL=MenuItemSettingsPanel.js.map