Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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(){const t=(0,s.useDispatch)(),n=(0,s.useSelector)(a.default);(0,o.useEffect)((()=>{const o=({portletId:o})=>{e.includes(o)&&i.default.getPageContents({onNetworkStatus:t,segmentsExperienceId:n}).then((e=>{t((0,r.default)({pageContents:e}))}))};return Liferay.on("editConfiguration",o),()=>Liferay.detach("editConfiguration",o)}),[t,n])};var o=n("liferay!frontend-js-react-web$react"),r=c(n("../../actions/updatePageContents")),s=n("../../contexts/StoreContext"),a=c(n("../../selectors/selectSegmentsExperienceId")),i=c(n("../../services/InfoItemService"));function c(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