Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/selectors/selectLayoutDataItemLabel",["module","exports","require","../config/constants/layoutDataItemTypeLabels","../config/constants/layoutDataItemTypes"],(function(e,t,a){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function selectLayoutDataItemLabel({fragmentEntryLinks:e},t,{useCustomName:a=!0}={}){var i,r,l;if(a&&(null===(i=t.config)||void 0===i?void 0:i.name))return t.config.name;if(t.type===o.LAYOUT_DATA_ITEM_TYPES.fragment&&(null===(r=e[null===(l=t.config)||void 0===l?void 0:l.fragmentEntryLinkId])||void 0===r?void 0:r.name))return e[t.config.fragmentEntryLinkId].name;return n.LAYOUT_DATA_ITEM_TYPE_LABELS[t.type]||t.type||Liferay.Language.get("element")};var n=a("../config/constants/layoutDataItemTypeLabels"),o=a("../config/constants/layoutDataItemTypes")}));
//# sourceMappingURL=selectLayoutDataItemLabel.js.map