Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.173/page_editor/app/utils/getSelectedField",["module","exports","require"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function getSelectedField({fields:t,mappingFieldsKey:n,value:i}){if(!i||!(null==t?void 0:t.length))return null;const l="".concat(n).concat(i);if(n&&e[l])return e[l];const d=t.flatMap((e=>e.fields)),o=d.find((e=>e.key===i))||d.find((e=>e.name===i));if(o)return n&&(e[l]=o),o;return null};const e={}}}));
//# sourceMappingURL=getSelectedField.js.map