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