Liferay.Loader.define("data-engine-js-components-web@1.0.107/js/core/components/FieldFeedback",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$react","./FieldFeedback.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldFeedback=function FieldFeedback(e){let{errorMessage:t,helpMessage:r,name:l,warningMessage:o}=e,c=function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,n=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["errorMessage","helpMessage","name","warningMessage"]);if(!t&&!r&&!o)return null;return n.default.createElement(a.default.FeedbackGroup,_extends({className:"lfr-de__field-feedback"},c),t&&n.default.createElement(a.default.FeedbackItem,{id:"".concat(l,"_fieldError"),role:"alert"},n.default.createElement(a.default.FeedbackIndicator,{symbol:"exclamation-full"}),t),o&&!t&&n.default.createElement(a.default.FeedbackItem,{id:"".concat(l,"_fieldError"),role:"alert"},n.default.createElement(a.default.FeedbackIndicator,{symbol:"warning-full"}),o),r&&n.default.createElement("div",{id:"".concat(l,"_fieldHelp")},r))};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/form")),n=_interopRequireDefault(r("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}r("./FieldFeedback.scss")}}));
//# sourceMappingURL=FieldFeedback.js.map