Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/components/undo/getItemNameFromAction",["module","exports","require","../../selectors/selectLayoutDataItemLabel","../../utils/getFragmentItem"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.getItemNameFromAction=function getItemNameFromAction({action:e,state:t}){var a,o;const i=e.fragmentEntryLinks?Object.values(e.fragmentEntryLinks).reduce(((e,t)=>(e[t.fragmentEntryLinkId]=t,e)),{}):t.fragmentEntryLinks,u=(null===(a=t.layoutData)||void 0===a?void 0:a.items[e.itemId])||(null===(o=e.layoutData)||void 0===o?void 0:o.items[e.itemId])||(0,r.default)(t.layoutData,e.fragmentEntryLinkId)||(0,r.default)(e.layoutData,e.fragmentEntryLinkId);if(!u)return null;return(0,n.default)({fragmentEntryLinks:i},u)};var n=_interopRequireDefault(a("../../selectors/selectLayoutDataItemLabel")),r=_interopRequireDefault(a("../../utils/getFragmentItem"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=getItemNameFromAction.js.map