/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */

"use strict";(self.webpackChunk_nocobase_plugin_workflow=self.webpackChunk_nocobase_plugin_workflow||[]).push([["119"],{9082:function(e,n,t){t.d(n,{ConditionCanvasComponent:function(){return b},ConditionFieldset:function(){return m},ConditionPresetFieldset:function(){return f}});var a=t(9155),l=t.n(a),r=t(2059),o=t(1611),i=t(1541),c=t(2235),s=t(5980),u=t(8101),d=t(9488);function m(){var e=(0,d.kj)();return l().createElement(l().Fragment,null,l().createElement(r.Form.Item,{name:["config","rejectOnFalse"],label:e("Mode")},l().createElement(r.Radio.Group,{disabled:!0,options:[{value:!0,label:e('Continue when "Yes"')},{value:!1,label:e('Branch into "Yes" and "No"')}]})),l().createElement(u.FW,{prefix:["config"]}))}function f(){var e=(0,d.kj)();return l().createElement(r.Form.Item,{name:["config","rejectOnFalse"],label:e("Mode"),rules:[{required:!0}],initialValue:!0},l().createElement(r.Radio.Group,{options:[{value:!0,label:e('Continue when "Yes"')},{value:!1,label:e('Branch into "Yes" and "No"')}]}))}function b(e){var n,t=e.data,a=(0,d.kj)(),r=(0,s.A)().styles,u=(null!=(n=(0,c.$K)())?n:{}).nodes,m=t.id,f=t.config,b=(void 0===f?{}:f).rejectOnFalse,p=(null!=u?u:[]).find(function(e){return e.upstreamId===m&&1===e.branchIndex}),E=(null!=u?u:[]).find(function(e){return e.upstreamId===m&&0===e.branchIndex});return l().createElement(i.z,{data:t},b?null:l().createElement("div",{className:r.nodeSubtreeClass},l().createElement("div",{className:r.branchBlockClass},l().createElement(o.l,{from:t,entry:E,branchIndex:0}),l().createElement(o.l,{from:t,entry:p,branchIndex:1})),l().createElement("div",{className:r.conditionClass},l().createElement("span",{style:{right:"4em"}},a("No")),l().createElement("span",{style:{left:"4em"}},a("Yes")))))}}}]);