Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.145/page_editor/app/components/app-hooks/usePortletConfigurationListener",["module","exports","require","liferay!frontend-js-react-web$react","../../actions/updatePageContents","../../contexts/StoreContext","../../selectors/selectSegmentsExperienceId","../../services/InfoItemService"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function usePortletConfigurationListener(){const t=(0,i.useDispatch)(),n=(0,i.useSelector)(s.default);(0,o.useEffect)((()=>{const onEditConfiguration=({portletId:o})=>{e.includes(o)&&a.default.getPageContents({onNetworkStatus:t,segmentsExperienceId:n}).then((e=>{t((0,r.default)({pageContents:e}))}))};return Liferay.on("editConfiguration",onEditConfiguration),()=>Liferay.detach("editConfiguration",onEditConfiguration)}),[t,n])};var o=n("liferay!frontend-js-react-web$react"),r=_interopRequireDefault(n("../../actions/updatePageContents")),i=n("../../contexts/StoreContext"),s=_interopRequireDefault(n("../../selectors/selectSegmentsExperienceId")),a=_interopRequireDefault(n("../../services/InfoItemService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=["com_liferay_journal_content_web_portlet_JournalContentPortlet","com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet"]}}));
//# sourceMappingURL=usePortletConfigurationListener.js.map