Liferay.Loader.define("style-book-web@2.0.76/js/style-book-editor/reducers/layoutReducer",["module","exports","require","../constants/actionTypes"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function layoutReducer(e,t){switch(t.type){case o.LOADING:{const{value:r}=t;return _objectSpread(_objectSpread({},e),{},{loading:r})}case o.SET_PREVIEW_LAYOUT:{const{layout:r}=t;return _objectSpread(_objectSpread({},e),{},{previewLayout:r})}case o.SET_PREVIEW_LAYOUT_TYPE:{const{layoutType:r}=t;return _objectSpread(_objectSpread({},e),{},{previewLayoutType:r})}default:return e}};var o=r("../constants/actionTypes");function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}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}}}));
//# sourceMappingURL=layoutReducer.js.map