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