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