Liferay.Loader.define("@liferay/object-web@1.0.145/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,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.ConditionContainer=function ConditionContainer({errors:e,setValues:n,validateExpressionURL:t,values:a}){const handleSaveCondition=e=>{n({conditionExpression:e})};return i.default.createElement(o.Card,{disabled:"standalone"===a.objectActionTriggerKey,title:Liferay.Language.get("condition")},i.default.createElement(r.default.Group,null,i.default.createElement(r.ClayToggle,{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&&i.default.createElement(o.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:t})},placeholder:Liferay.Language.get("create-an-expression"),value:a.conditionExpression}))};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache();if(n&&n.has(e))return n.get(e);var t={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(t,o,i):t[o]=e[o]}t.default=e,n&&n.set(e,t);return t}(t("@frontend-taglib-clay$clayui/form")),o=t("@liferay/object-js-components-web"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=ConditionContainer.js.map