Liferay.Loader.define("data-engine-js-components-web@1.0.89/js/utils/fields.es",["module","exports","require","./visitors.es"],(function(e,t,i){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.checkValidFieldNameCharacter=checkValidFieldNameCharacter,t.normalizeFieldName=function normalizeFieldName(e){let t=!1,i="";e=e.trim();for(let r=0;r<e.length;r++){let a=e[r];" "!==a?checkValidFieldNameCharacter(a)&&(t&&(a=a.toUpperCase(),t=!1),i+=a):t=!0}/^\d/.test(i)&&(i="_".concat(i));return i},t.getFields=function getFields(e){const t=[];return new r.PagesVisitor(e).visitFields((e=>{t.push(e)})),t},t.hasFieldSet=function hasFieldSet(e){return"fieldset"===(null==e?void 0:e.type)&&e.ddmStructureId};var r=i("./visitors.es");function checkValidFieldNameCharacter(e){return/[A-Za-z0-9_]/g.test(e)}}}));
//# sourceMappingURL=fields.es.js.map