Liferay.Loader.define("@liferay/object-web@1.0.108/js/components/ObjectValidationFormBase",["module","exports","require","@liferay/object-js-components-web"],(function(e,a,i){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.useObjectValidationForm=function({initialValues:a,onSubmit:i}){const{errors:t,handleChange:o,handleSubmit:l,setValues:u,values:s}=(0,n.useForm)({initialValues:a,onSubmit:i,validate:a=>{var i,t;const o={},l=null===(i=a.name)||void 0===i?void 0:i[e],u=null===(t=a.errorLabel)||void 0===t?void 0:t[e],s=a.script;return(0,n.invalidateRequired)(l)&&(o.name=r),(0,n.invalidateRequired)(u)&&(o.errorLabel=r),(0,n.invalidateRequired)(s)&&(o.script=r),"groovy"===a.engine&&a.lineCount&&a.lineCount>2987&&(o.script=Liferay.Language.get("the-maximum-number-of-lines-available-is-2987")),o}});return{errors:t,handleChange:o,handleSubmit:l,setValues:u,values:s}};var n=i("@liferay/object-js-components-web");const e=Liferay.ThemeDisplay.getDefaultLanguageId(),r=Liferay.Language.get("required")}}));
//# sourceMappingURL=ObjectValidationFormBase.js.map