Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ObjectAction/tabs/ConditionContainer",["module","exports","require","@frontend-taglib-clay$clayui/form","@liferay/object-js-components-web","liferay!frontend-js-react-web$react"],(function(e,n,o){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.ConditionContainer=function ConditionContainer({errors:e,setValues:n,validateExpressionURL:o,values:a}){const handleSaveCondition=e=>{n({conditionExpression:e})};return r.default.createElement(t.Card,{disabled:"standalone"===a.objectActionTriggerKey,title:Liferay.Language.get("condition")},r.default.createElement(i.default.Group,null,r.default.createElement(t.Toggle,{disabled:"standalone"===a.objectActionTriggerKey,label:Liferay.Language.get("enable-condition"),name:"condition",onToggle:e=>n({conditionExpression:e?"":void 0}),toggled:!(void 0===a.conditionExpression)})),void 0!==a.conditionExpression&&r.default.createElement(t.ExpressionBuilder,{error:e.conditionExpression,feedbackMessage:Liferay.Language.get("use-expressions-to-create-a-condition"),label:Liferay.Language.get("expression-builder"),name:"conditionExpression",onChange:({target:{value:e}})=>n({conditionExpression:e}),onOpenModal:()=>{Liferay.Util.getOpener().Liferay.fire("openExpressionBuilderModal",{onSave:handleSaveCondition,required:!0,source:a.conditionExpression,validateExpressionURL:o})},placeholder:Liferay.Language.get("create-an-expression"),value:a.conditionExpression}))};var i=_interopRequireDefault(o("@frontend-taglib-clay$clayui/form")),t=o("@liferay/object-js-components-web"),r=_interopRequireDefault(o("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ConditionContainer.js.map