Liferay.Loader.define("@liferay/object-web@1.0.145/js/components/ObjectValidation/Conditions",["module","exports","require","liferay!object-web$codemirror/mode/groovy/groovy","@liferay/object-js-components-web","liferay!frontend-js-react-web$react"],(function(e,r,t){window;Object.defineProperty(r,"__esModule",{value:!0}),r.Conditions=function Conditions({disabled:e,errors:r,objectValidationRuleElements:t,setValues:n,values:i}){var l;const d=i.engine,s={content:Liferay.Language.get("use-the-expression-builder-to-define-the-format-of-a-valid-object-entry"),symbol:"question-circle-full"};let u;u="groovy"===d?Liferay.Language.get("insert-a-groovy-script-to-define-your-validation"):"ddm"===d?Liferay.Language.get("add-elements-from-the-sidebar-to-define-your-validation"):"";return o.default.createElement(o.default.Fragment,null,o.default.createElement(a.Card,{title:i.engineLabel,tooltip:"ddm"===d?s:null},o.default.createElement(a.CodeEditor,{error:r.script,mode:d,onChange:(e,r)=>n({lineCount:r,script:e}),placeholder:u,readOnly:e,sidebarElements:t,value:null!==(l=i.script)&&void 0!==l?l:""})),o.default.createElement(a.Card,{title:Liferay.Language.get("error-message")},o.default.createElement(a.InputLocalized,{disabled:e,error:r.errorLabel,label:Liferay.Language.get("message"),onChange:e=>n({errorLabel:e}),placeholder:Liferay.Language.get("add-an-error-message"),required:!0,translations:i.errorLabel})))},t("liferay!object-web$codemirror/mode/groovy/groovy");var a=t("@liferay/object-js-components-web"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react"))}));
//# sourceMappingURL=Conditions.js.map