Liferay.Loader.define("@liferay/object-web@1.0.153/js/components/ListTypeDefinition/ListTypeFormBase",["module","exports","require","@liferay/object-js-components-web"],(function(e,n,i){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.useListTypeForm=function useListTypeForm({initialValues:n,onSubmit:i}){const{errors:t,handleChange:o,handleSubmit:r,setValues:s,values:l}=(0,a.useForm)({initialValues:n,onSubmit:i,validate:n=>{var i;const t={},o=null===(i=n.name_i18n)||void 0===i?void 0:i[e];return(0,a.invalidateRequired)(o)&&(t.name_i18n=a.REQUIRED_MSG),(0,a.invalidateRequired)(n.externalReferenceCode)&&(t.externalReferenceCode=a.REQUIRED_MSG),t}});return{errors:t,handleChange:o,handleSubmit:r,setValues:s,values:l}};var a=i("@liferay/object-js-components-web");const e=Liferay.ThemeDisplay.getDefaultLanguageId()}}));
//# sourceMappingURL=ListTypeFormBase.js.map