Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.156/page_editor/app/reducers/defaultFragmentEntryLinksReducer",["module","exports","require","../actions/types","../utils/getFragmentEntryLinkIdsFromItemId"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function defaultFragmentEntryLinksReducer(e,t){switch(t.type){case n.INIT:{const{fragmentEntryLinks:t,layoutData:r}=e,n=r.deletedItems.map((e=>e.itemId)),a={};return n.reduce(((e,t)=>[...e,...(0,o.default)({itemId:t,layoutData:r})]),[]).forEach((e=>{a[e]=_objectSpread(_objectSpread({},t[e]),{},{removed:!0})})),_objectSpread(_objectSpread({},e),{},{fragmentEntryLinks:_objectSpread(_objectSpread({},t),a)})}default:return e}};var n=r("../actions/types"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("../utils/getFragmentEntryLinkIdsFromItemId"));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}}}));
//# sourceMappingURL=defaultFragmentEntryLinksReducer.js.map