Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/services/ExperienceService",["module","exports","require","../config/index","./serviceFetch"],(function(e,n,t){var r;window;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("../config/index"),d=(r=t("./serviceFetch"))&&r.__esModule?r:{default:r};var c={createExperience({body:e,dispatch:n}){const{name:t,segmentsEntryId:r}=e;return(0,d.default)(i.config.addSegmentsExperienceURL,{body:{active:!0,name:t,segmentsEntryId:r}},n)},duplicateExperience({body:e,dispatch:n}){const{segmentsExperienceId:t}=e;return(0,d.default)(i.config.duplicateSegmentsExperienceURL,{body:{segmentsExperienceId:t}},n)},removeExperience({body:e,dispatch:n}){const{segmentsExperienceId:t}=e;return(0,d.default)(i.config.deleteSegmentsExperienceURL,{body:{segmentsExperienceId:t}},n)},selectExperience({body:e,dispatch:n}){const{loadFragmentEntryLinks:t,segmentsExperienceId:r}=e;return function({body:e,dispatch:n}){const{loadFragmentEntryLinks:t,segmentsExperienceId:r}=e;return(0,d.default)(i.config.getExperienceDataURL,{body:{loadFragmentEntryLinks:t,segmentsExperienceId:r}},n)}({body:{loadFragmentEntryLinks:t,segmentsExperienceId:r},dispatch:n})},updateExperience:({body:e,dispatch:n})=>(0,d.default)(i.config.updateSegmentsExperienceURL,{body:e},n),updateExperiencePriority({body:e,dispatch:n}){const{newPriority:t,segmentsExperienceId:r}=e;return(0,d.default)(i.config.updateSegmentsExperiencePriorityURL,{body:{newPriority:t,segmentsExperienceId:r}},n)}};n.default=c}));
//# sourceMappingURL=ExperienceService.js.map