Liferay.Loader.define("product-navigation-control-menu-web@6.0.78/js/ProductMenuTree",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./LayoutFinder","./NavigationMenuItemsTree","./PageTypeSelector","./PagesAdministrationLink","./PagesTree"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function ProductMenuTree(e){let{portletNamespace:t}=e,a=function _objectWithoutProperties(e,t){if(null==e)return{};var a,r,n=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var a,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}(e,["portletNamespace"]);const{config:s,hasAdministrationPortletPermission:c,isPrivateLayoutsTree:f,isSiteNavigationMenu:p,items:m,pageTypeOptions:g,pageTypeSelectedOption:y,pageTypeSelectedOptionLabel:L,selectedLayoutId:P,selectedLayoutPath:R,selectedSiteNavigationMenuItemId:b,showAddIcon:v,siteNavigationMenuItems:O}=a,{addCollectionLayoutURL:U,addLayoutURL:_,administrationPortletNamespace:w,administrationPortletURL:I,configureLayoutSetURL:h,findLayoutsURL:j,loadMoreItemsURL:M,maxPageSize:T,moveItemURL:S,pagesTreeURL:q,productMenuPortletURL:N,stagingEnabled:E,viewInPageAdministrationURL:D}=s,[W,A]=(0,n.useState)("");return n.default.createElement(n.default.Fragment,null,n.default.createElement(i.default,{administrationPortletNamespace:w,administrationPortletURL:I,findLayoutsURL:j,keywords:W,namespace:t,productMenuPortletURL:N,setKeywords:A,viewInPageAdministrationURL:D}),n.default.createElement("div",{className:(0,r.default)({hide:W.length})},n.default.createElement(u.default,{addCollectionLayoutURL:U,addLayoutURL:_,configureLayoutSetURL:h,namespace:t,pageTypeOptions:g,pageTypeSelectedOption:y,pageTypeSelectedOptionLabel:L,pagesTreeURL:q,showAddIcon:v}),p?n.default.createElement(o.default,{portletNamespace:t,selectedSiteNavigationMenuItemId:b,siteNavigationMenuItems:O}):n.default.createElement(d.default,{config:{loadMoreItemsURL:M,maxPageSize:T,moveItemURL:S,namespace:t,stagingEnabled:E},isPrivateLayoutsTree:f,items:m,selectedLayoutId:P,selectedLayoutPath:R})),n.default.createElement(l.default,{administrationPortletURL:I,hasAdministrationPortletPermission:c}))};var r=_interopRequireDefault(a("liferay!frontend-js-react-web$classnames")),n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),i=_interopRequireDefault(a("./LayoutFinder")),o=_interopRequireDefault(a("./NavigationMenuItemsTree")),u=_interopRequireDefault(a("./PageTypeSelector")),l=_interopRequireDefault(a("./PagesAdministrationLink")),d=_interopRequireDefault(a("./PagesTree"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ProductMenuTree.js.map