Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/plugins/experience/thunks/removeExperience",["module","exports","require","../../../app/config/index","../../../app/services/ExperienceService","../actions/deleteExperience","../actions/selectExperience"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.default=function({segmentsExperienceId:e,selectedExperienceId:n}){return t=>e===n?c.default.selectExperience({body:{segmentsExperienceId:i.config.defaultSegmentsExperienceId},dispatch:t}).then((n=>{t((0,d.default)({portletIds:n,segmentsExperienceId:i.config.defaultSegmentsExperienceId})),c.default.removeExperience({body:{segmentsExperienceId:e},dispatch:t}).then((()=>t((0,r.default)({segmentsExperienceId:e}))))})):c.default.removeExperience({body:{segmentsExperienceId:e},dispatch:t}).then((()=>t((0,r.default)({segmentsExperienceId:e}))))};var i=t("../../../app/config/index"),c=p(t("../../../app/services/ExperienceService")),r=p(t("../actions/deleteExperience")),d=p(t("../actions/selectExperience"));function p(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=removeExperience.js.map