Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.141/page_editor/plugins/experience/thunks/selectExperience",["module","exports","require","../../../app/actions/updatePageContents","../../../app/services/ExperienceService","../../../app/services/InfoItemService","../actions/selectExperience"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function selectExperience({id:e}){return(t,n)=>{const p=n().loadedSegmentsExperiences;return i.default.selectExperience({body:{loadFragmentEntryLinks:!p.includes(e),segmentsExperienceId:e},dispatch:t}).then((({fragmentEntryLinks:n,portletIds:r})=>t((0,s.default)({fragmentEntryLinks:n,portletIds:r,segmentsExperienceId:e})))).then((()=>{a.default.getPageContents({onNetworkStatus:t,segmentsExperienceId:e}).then((e=>{t((0,r.default)({pageContents:e}))}))})).catch((e=>e))}};var r=_interopRequireDefault(n("../../../app/actions/updatePageContents")),i=_interopRequireDefault(n("../../../app/services/ExperienceService")),a=_interopRequireDefault(n("../../../app/services/InfoItemService")),s=_interopRequireDefault(n("../actions/selectExperience"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=selectExperience.js.map