Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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({field:e,onValueSelect:t,value:r}){const c="".concat(i.config.portletNamespace,"selectSiteNavigationMenu"),l=r?u(u({},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})};c(r("liferay!frontend-js-react-web$prop-types"));var n=c(r("liferay!frontend-js-react-web$react")),o=c(r("../../../common/components/ItemSelector")),i=(r("../../../prop-types/index"),r("../../config/index")),a=c(r("../../utils/item-selector-value/itemSelectorValueToSiteNavigationMenuItem"));function c(e){return e&&e.__esModule?e:{default:e}}function l(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(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