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