Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/plugins/experience/reducers/index",["module","exports","require","../actions","./createExperience","./deleteExperience","./selectExperience","./updateExperience","./updateExperiencesList"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("../actions"),a=s(r("./createExperience")),E=s(r("./deleteExperience")),i=s(r("./selectExperience")),c=s(r("./updateExperience")),p=s(r("./updateExperiencesList"));function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=(e,t)=>{let r=e;switch(t.type){case n.CREATE_SEGMENTS_EXPERIENCE:r=(0,a.default)(r,{fragmentEntryLinks:t.payload.fragmentEntryLinks,layoutData:t.payload.layoutData,segmentsExperience:t.payload.segmentsExperience}),r=(0,i.default)(r,{segmentsExperienceId:t.payload.segmentsExperience.segmentsExperienceId});break;case n.DELETE_SEGMENTS_EXPERIENCE:r=(0,E.default)(r,{segmentsExperienceId:t.payload.segmentsExperienceId});break;case n.SELECT_SEGMENTS_EXPERIENCE:r=(0,i.default)(r,{fragmentEntryLinks:t.payload.fragmentEntryLinks,segmentsExperienceId:t.payload.segmentsExperienceId});break;case n.UPDATE_SEGMENTS_EXPERIENCE:r=(0,c.default)(r,{updatedExperience:t.payload});break;case n.UPDATE_SEGMENTS_EXPERIENCES_LIST:r=(0,p.default)(r,{availableSegmentsExperiences:t.payload.availableSegmentsExperiences});break;default:e.loadedSegmentsExperiences||(r=d(d({},e),{},{loadedSegmentsExperiences:[e.segmentsExperienceId]}))}return r};t.default=u}}));
//# sourceMappingURL=index.js.map