Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/app/utils/getFormErrorDescription",["module","exports","require","frontend-js-web"],(function(e,i,r){window;{Object.defineProperty(i,"__esModule",{value:!0}),i.getFormErrorDescription=function({name:i=null,type:r}){switch(r){case e.deletedFragment:return{message:(0,a.sub)(Liferay.Language.get("the-deleted-fragment-was-marked-as-required"),i)};case e.hiddenFields:return{message:(0,a.sub)(Liferay.Language.get("x-form-contains-one-or-more-hidden-fragments-mapped-to-required-fields"),i),summary:Liferay.Language.get("one-or-more-fragments-mapped-to-required-fields-are-hidden"),title:Liferay.Language.get("required-fields-hidden")};case e.hiddenFragment:return{message:Liferay.Language.get("the-hidden-fragment-contained-required-fields")};case e.missingFields:return{message:(0,a.sub)(Liferay.Language.get("x-form-has-one-or-more-required-fields-not-mapped-from-the-form"),i),summary:Liferay.Language.get("one-or-more-required-fields-are-not-mapped-from-the-form"),title:Liferay.Language.get("required-fields-missing")};case e.missingFragments:return{message:(0,a.sub)(Liferay.Language.get("x-form-has-some-fragments-not-mapped-to-object-fields"),i),summary:Liferay.Language.get("some-fragments-are-not-mapped-to-object-fields"),title:Liferay.Language.get("fragment-mapping-missing")};case e.missingSubmit:return{message:(0,a.sub)(Liferay.Language.get("x-form-has-a-hidden-or-missing-submit-button"),i),summary:Liferay.Language.get("submit-button-is-hidden-or-missing"),title:Liferay.Language.get("submit-button-missing")}}},i.FORM_ERROR_TYPES=void 0;var a=r("frontend-js-web");const e={deletedFragment:"deletedFragment",hiddenFields:"hiddenFields",hiddenFragment:"hiddenFragment",missingFields:"missingFields",missingFragments:"missingFragments",missingSubmit:"missingSubmit"};i.FORM_ERROR_TYPES=e}}));
//# sourceMappingURL=getFormErrorDescription.js.map