Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/components/fragment_configuration_fields/NavigationMenuSelectorField",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../common/components/ItemSelector","../../../prop_types/index","../../config/index","../../utils/item_selector_value/itemSelectorValueToSiteNavigationMenuItem"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationMenuSelectorField=function NavigationMenuSelectorField({field:e,onValueSelect:t,value:r}){const c="".concat(i.config.portletNamespace,"selectSiteNavigationMenu"),l=r?_objectSpread(_objectSpread({},r),{},{title:r.parentSiteNavigationMenuItemId&&"0"!==r.parentSiteNavigationMenuItemId?"... / ".concat(r.title):r.title}):{title:i.config.isPrivateLayoutsEnabled?Liferay.Language.get("public-pages-hierarchy"):Liferay.Language.get("pages-hierarchy")};return n.default.createElement(o.default,{eventName:c,helpText:e.description,itemSelectorURL:i.config.siteNavigationMenuItemSelectorURL,label:e.label,modalProps:{height:"60vh",size:"lg"},onItemSelect:r=>{t(e.name,r)},selectedItem:l,showMappedItems:!1,transformValueCallback:a.default})};_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types"));var n=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),o=_interopRequireDefault(r("../../../common/components/ItemSelector")),i=(r("../../../prop_types/index"),r("../../config/index")),a=_interopRequireDefault(r("../../utils/item_selector_value/itemSelectorValueToSiteNavigationMenuItem"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=NavigationMenuSelectorField.js.map