Liferay.Loader.define("@liferay/object-web@1.0.145/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:r,handleChange:o,handleSubmit:s,setValues:u,values:l}=(0,a.useForm)({initialValues:n,onSubmit:i,validate:n=>{var i;const r={},o=null===(i=n.name_i18n)||void 0===i?void 0:i[e];return(0,a.invalidateRequired)(o)&&(r.name_i18n=t),(0,a.invalidateRequired)(n.externalReferenceCode)&&(r.externalReferenceCode=t),r}});return{errors:r,handleChange:o,handleSubmit:s,setValues:u,values:l}};var a=i("@liferay/object-js-components-web");const e=Liferay.ThemeDisplay.getDefaultLanguageId(),t=Liferay.Language.get("required")}}));
//# sourceMappingURL=ListTypeFormBase.js.map