Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/plugins/experience/reducers/selectExperience",["module","exports","require","./utils"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("./utils");function i(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(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=function(e,t){let r=e;const{segmentsExperienceId:i}=t;return r=(0,n.switchLayoutData)(r,{currentExperienceId:r.segmentsExperienceId,targetExperienceId:i}),r=(0,n.selectExperience)(r,i),r=(0,n.setExperimentStatus)(r,i),r=c(c({},r),{},{fragmentEntryLinks:c(c({},r.fragmentEntryLinks),t.fragmentEntryLinks)}),r};t.default=u}}));
//# sourceMappingURL=selectExperience.js.map