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