Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/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=_interopRequireDefault(r("./createExperience")),i=_interopRequireDefault(r("./deleteExperience")),p=_interopRequireDefault(r("./selectExperience")),c=_interopRequireDefault(r("./updateExperience")),E=_interopRequireDefault(r("./updateExperiencesList"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _default=(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,p.default)(r,{segmentsExperienceId:t.payload.segmentsExperience.segmentsExperienceId});break;case n.DELETE_SEGMENTS_EXPERIENCE:r=(0,i.default)(r,{segmentsExperienceId:t.payload.segmentsExperienceId});break;case n.SELECT_SEGMENTS_EXPERIENCE:r=(0,p.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,E.default)(r,{availableSegmentsExperiences:t.payload.availableSegmentsExperiences});break;default:e.loadedSegmentsExperiences||(r=_objectSpread(_objectSpread({},e),{},{loadedSegmentsExperiences:[e.segmentsExperienceId]}))}return r};t.default=_default}}));
//# sourceMappingURL=index.js.map