/**
 * 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_client_v2=self.webpackChunk_nocobase_plugin_workflow_client_v2||[]).push([["54"],{5329:function(e,n,l){l.d(n,{F:function(){return r}});var t=l(9155),a=l.n(t),o=l(2059),i=l(7806),s=l(9488);function c(e){var n=e.value,l=e.onChange,o=e.disabled,s=e.onCollectionChanged,c=(0,t.useRef)();return a().createElement(i.XJ,{value:n,disabled:o,onChange:function(e){var t,a=null!=(t=c.current)?t:n;null==l||l(e),a&&a!==e&&(null==s||s(a,e)),c.current=e}})}function r(e){var n=e.disabled,l=e.onCollectionChanged,t=(0,s.kj)();return a().createElement(o.Form.Item,{name:["config","collection"],label:t("Collection"),rules:[{required:!0}]},a().createElement(c,{disabled:n,onCollectionChanged:l}))}},6381:function(e,n,l){l.d(n,{CreateFieldset:function(){return d},CreatePresetFieldset:function(){return m}});var t=l(9155),a=l.n(t),o=l(2059),i=l(2235),s=l(7806),c=l(9488),r=l(5329);function u(){var e,n=(0,c.kj)(),l=o.Form.useFormInstance(),r=(0,i.Zt)(),u=o.Form.useWatch(["config","collection"]),d=!!(null==r||null==(e=r.versionStats)?void 0:e.executed);return(0,t.useEffect)(function(){u&&(l.setFieldValue(["config","usingAssignFormSchema"],void 0),l.setFieldValue(["config","assignFormSchema"],void 0))},[u,l]),a().createElement(a().Fragment,null,a().createElement(o.Form.Item,{name:["config","params","values"],label:n("Fields values"),extra:n("Unassigned fields will be set to default values, and those without default values will be set to null.")},a().createElement(s.XH,{collection:u,disabled:d})),u?a().createElement(o.Form.Item,{name:["config","params","appends"],label:n("Preload associations"),extra:n("Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.")},a().createElement(s.Kr,{collection:u})):null)}function d(){var e,n=(0,i.TA)(),l=o.Form.useFormInstance();return a().createElement(a().Fragment,null,a().createElement(r.F,{disabled:!!(null==n||null==(e=n.config)?void 0:e.collection),onCollectionChanged:function(){l.setFieldValue(["config","params"],{}),l.setFieldValue(["config","usingAssignFormSchema"],void 0),l.setFieldValue(["config","assignFormSchema"],void 0)}}),a().createElement(u,null))}function m(){return a().createElement(r.F,null)}}}]);