Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.121/admin/js/reducers/sidebarReducer.es",["module","exports","require","data-engine-js-components-web","data-engine-taglib"],(function(e,d,n){window;Object.defineProperty(d,"__esModule",{value:!0}),d.default=function sidebarReducer(e,d){switch(d.type){case i.EVENT_TYPES.SIDEBAR.FIELD.BLUR:{const{focusedField:d}=e;if(Object.keys(d).length&&(""===d.fieldReference||a.FieldUtil.findInvalidFieldReference(d,e.pages,d.fieldReference))){const{defaultLanguageId:n,editingLanguageId:i,pages:t}=e;return{focusedField:{},pages:new a.PagesVisitor(t).mapFields((e=>e.fieldName===d.fieldName?a.SettingsContext.updateField({defaultLanguageId:n,editingLanguageId:i},a.SettingsContext.updateFieldReference(d,!1,!0),"fieldReference",d.fieldName):e),!0,!0)}}return{focusedField:{}}}default:return e}};var a=n("data-engine-js-components-web"),i=n("data-engine-taglib")}));
//# sourceMappingURL=sidebarReducer.es.js.map