Liferay.Loader.define("data-engine-taglib@3.3.50/data_layout_builder/js/components/field-sets/actions/getFieldsWithoutOptions.es",["module","exports","require","../../../utils/constants.es"],(function(e,t,s){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function getFieldsWithoutOptions(e,t){const hasValidOption=e=>e.some((({label:e,value:t})=>e&&t));return e.filter((({customProperties:e,fieldType:s})=>{switch(s){case i.FIELD_TYPES.radio:case i.FIELD_TYPES.checkboxMultiple:case i.FIELD_TYPES.select:return!hasValidOption(e.options[t]);case i.FIELD_TYPES.grid:return!(hasValidOption(e.columns[t])&&hasValidOption(e.rows[t]));default:return!1}}))};var i=s("../../../utils/constants.es")}));
//# sourceMappingURL=getFieldsWithoutOptions.es.js.map