@nocobase/plugin-workflow-json-variable-mapping 1.9.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.txt ADDED
@@ -0,0 +1,172 @@
1
+ Updated Date: October 2, 2025
2
+
3
+ NocoBase License Agreement
4
+
5
+ NOCOBASE PTE. LTD.,a Singaporean Exempt Private Company Limited by Shares with its principal place of business located at 112 ROBINSON ROAD, #03-01, SINGAPORE ("The Company") https://www.nocobase.com/ issues this License Agreement ("Agreement") to you. You, as an individual or a company ("The User"), will be deemed to voluntarily accept all terms of this Agreement by using NocoBase (including but not limited to obtaining NocoBase source code or installation package in any form, installing and using NocoBase, purchasing NocoBase commercial license and services, purchasing NocoBase commercial plugins). If the User does not agree to any term of this Agreement, or cannot accurately understand our interpretation of the relevant terms, please stop using it immediately.
6
+
7
+ This Agreement applies to any use, quotation, contract, invoice, and all software delivered by the Company. The User and the Company or NocoBase's agents can no longer sign a separate license agreement for the sale and delivery of the software.
8
+
9
+ The Company reserves the right to formulate and modify this Agreement from time to time as needed. If there are changes, the Company will announce them in the form of website announcements, without further individual notification. The changed Agreement will automatically take effect once it is announced, becoming part of this Agreement.
10
+
11
+ ==============
12
+ 1. Definitions
13
+ ==============
14
+
15
+ 1.1 "Software" refers to the NocoBase kernel and plugins placed in the same code repository as the kernel, including their source code, installation packages, images, and all their modifications, updates, and upgrades.
16
+
17
+ 1.2 "Community Edition" refers to the free version of the Software provided to the User through public channels.
18
+
19
+ 1.3 "Commercial Edition" refers to the paid version of the Software purchased by the User from the Company or its agents, downloaded through exclusive channels, and includes additional benefits. It consists of three versions: Standard Edition, Professional Edition, and Enterprise Edition.
20
+
21
+ 1.4 "Marketplace" refers to the marketplace provided by the Company for selling Software plugins and solutions.
22
+
23
+ 1.5 "Commercial Plugin" refers to the paid plugins sold in the Marketplace.
24
+
25
+ 1.6 "Upper Layer Application" refers to a specific business use case application serving internal or external customers of the User, developed based on Software and Commercial Plugins, such as ERP/CRM.
26
+
27
+ 1.7 "Customer" refers to the clients who purchase the User's Upper Layer Application.
28
+
29
+ 1.8 "Third-Party Open Source Software" refers to open source software provided with Software and Commercial Plugins. They are licensed through various published open source software licenses or copyright notices accompanying such software.
30
+
31
+ ===================================
32
+ 2. Intellectual Property Protection
33
+ ===================================
34
+
35
+ Except for Third-Party Open Source Software, the Company owns all copyrights, trademark rights, patent rights, trade secrets, and other intellectual property rights of the Software, and has registered and protected them in relevant countries and regions according to the "Paris Convention" or "TRIPS Agreement", ensuring that the intellectual property rights of the Software and Commercial Plugins are internationally recognized and protected.
36
+
37
+ =============
38
+ 3. Disclaimer
39
+ =============
40
+
41
+ 3.1 The User shall not use the Software and Commercial Plugins to engage in activities that contravene applicable laws and regulations or offend against public order or religious prohibitions. All legal liabilities and consequences arising from the User’s use shall be borne by the User.
42
+
43
+ 3.2 The Company shall not be liable for any direct, indirect, special, incidental, or consequential damages (including but not limited to loss of profits, business interruption, data loss, or business information disclosure) caused by the User's use of the Software and Commercial Plugins, even if it has been previously informed of the possibility of such damages.
44
+
45
+ ===============
46
+ 4. License Type
47
+ ===============
48
+
49
+ 4.1 This Agreement serves as the unified license agreement for NocoBase Software, applying to both the Community Edition and the Commercial Editions.
50
+
51
+ 4.2 For the Community Edition, this Agreement incorporates and references the full text of the GNU Affero General Public License v3.0 (“AGPL-3.0”, available at: https://www.gnu.org/licenses/agpl-3.0.html ). Community Edition users must comply with the AGPL-3.0 License as well as the supplementary terms set forth in this Agreement. In case of any inconsistency between AGPL-3.0 and this Agreement, the supplementary terms of this Agreement shall prevail.
52
+
53
+ 4.3 For the Commercial Edition (including Standard, Professional, and Enterprise Editions), only the Commercial License terms contained in this Agreement apply. Commercial Edition users are not subject to AGPL-3.0 obligations.
54
+
55
+ 4.4 For Commercial Plugins, only the Commercial Plugin License terms contained in this Agreement apply.
56
+
57
+ ================================================
58
+ 5. Rights and Obligations of Open Source License
59
+ ================================================
60
+
61
+ 5.1 The Software can be used for commercial purposes.
62
+
63
+ 5.2 The User can sell plugins developed for the Software in the Marketplace.
64
+
65
+ 5.3 Outside the Marketplace, changes and plugins to the Software developed by the User or third parties, and third-party applications developed based on the Software must all be open-sourced under the AGPL-3.0 license.
66
+
67
+ 5.4 It is not allowed to remove or change the brand, name, link, version number, license, and other information about NocoBase on the Software interface, except for the main LOGO in the upper left corner of the page.
68
+
69
+ 5.5 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
70
+
71
+ 5.6 It is not allowed to provide to the public any form of no-code, zero-code, or low-code platform SaaS/PaaS products using the original or modified Software.
72
+
73
+ 5.7 Comply with all requirements of the AGPL-3.0 License, including but not limited to:
74
+ (a) Any modifications, extensions, or derivative works of the Software must be released under the AGPL-3.0 License;
75
+ (b) If Upper Layer Applications are provided as a network service (including SaaS or PaaS), the complete corresponding source code must be made available to all users of the service;
76
+ (c) The Software may not be combined with other software under incompatible licenses in a manner that would violate the AGPL-3.0 License;
77
+ (d) No additional contractual restrictions may be imposed when redistributing the Software.
78
+
79
+ ===============================
80
+ 6. Rights of Commercial License
81
+ ===============================
82
+
83
+ 6.1 Obtain a permanent commercial license of the Software.
84
+
85
+ 6.2 Get software upgrades and exclusive technical support during the upgrade validity period.
86
+
87
+ 6.3 The licensed Software can be used for commercial purposes with no restrictions on the number of applications and users.
88
+
89
+ 6.4 Changes and plugins to the Software, and applications integrated with the Software do not need to be open sourced.
90
+
91
+ 6.5 Can remove or change the brand, name, link, version number, license, and other information about NocoBase on the Software interface.
92
+
93
+ 6.6 Can sell plugins developed for Software in the Marketplace.
94
+
95
+ 6.7 The User holding a Professional or Enterprise Edition License can sell Upper Layer Application to its Customers.
96
+
97
+ 6.8 Exemption from AGPL-3.0 obligations, including but not limited to:
98
+ (a) the requirement to release source code of modifications, extensions, or derivative works;
99
+ (b) the requirement to provide source code when offering the Software as a network service;
100
+ (c) restrictions on combining the Software with other software under different license terms; and
101
+ (d) limitations on adding contractual terms for redistribution.
102
+ The User remains bound by this Agreement and by its commercial license contract.
103
+
104
+ 6.9 If there are other agreements in the contract for the above rights, the contract agreement shall prevail.
105
+
106
+ ====================================
107
+ 7. Obligations of Commercial License
108
+ ====================================
109
+
110
+ 7.1 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
111
+
112
+ 7.2 It is not allowed to sell, transfer, lease, share, gift, or distribute the Commercial License.
113
+
114
+ 7.3 It is not allowed to sell, transfer, lease, share, or distribute any form of no-code, zero-code, low-code platform, or developer tools developed based on Software.
115
+
116
+ 7.4 It is not allowed to provide any form of no-code, zero-code, low-code platform SaaS/PaaS products to the public using the original or modified Software.
117
+
118
+ 7.5 It is not allowed for the User holding a Standard Edition license to sell Upper Layer Application to Customers without a Commercial license.
119
+
120
+ 7.6 It is not allowed for the User holding a Professional or Enterprise Edition license to sell Upper Layer Application to Customers without a Commercial license with access to further development and configuration.
121
+
122
+ 7.7 It is not allowed to publicly sell plugins developed for Software outside of the Marketplace.
123
+
124
+ 7.8 If there is a violation of the above obligations or the terms of this Agreement, the rights owned by the User will be immediately terminated, the paid fees will not be refunded, and the Company reserves the right to pursue the User's legal responsibility.
125
+
126
+ 7.9 If there are other agreements in the contract for the above obligations, the contract agreement shall prevail.
127
+
128
+ ======================================
129
+ 8. Rights of Commercial Plugin License
130
+ ======================================
131
+
132
+ 8.1 Obtain a permanent Commercial Plugin License for the Commercial Plugin.
133
+
134
+ 8.2 Receive plugin upgrades and exclusive technical support during the upgrade validity period.
135
+
136
+ 8.3 Can be used for commercial purposes without restrictions on the number of applications or users.
137
+
138
+ 8.4 The User holding a Professional or Enterprise Edition License can use the Commercial Plugin in Upper Layer Applications sold to its customers.
139
+
140
+ 8.5 Exemption from AGPL-3.0 obligations.
141
+
142
+ 8.6 If there are other agreements in the contract regarding the above rights, the contract agreement shall prevail.
143
+
144
+ ===========================================
145
+ 9. Obligations of Commercial Plugin License
146
+ ===========================================
147
+
148
+ 9.1 It is not allowed to remove or change any intellectual property statements about NocoBase and the plugin authors in the code.
149
+
150
+ 9.2 It is not allowed to sell, transfer, lease, share, or gift the Commercial Plugin.
151
+
152
+ 9.3 It is not allowed to use reverse engineering, decompilation, or other methods to attempt to discover the source code of Commercial Plugins without obtaining a source code license.
153
+
154
+ 9.4 It is not allowed to disclose the source code of Commercial Plugins to any third party.
155
+
156
+ 9.5 It is not allowed for the User holding a Community or Standard Edition license to use Commercial Plugins in Upper Layer Applications sold to its customers. Such Commercial Plugins are limited to internal use within the licensed company only.
157
+
158
+ 9.6 If there is any violation of the above obligations or the terms of this Agreement, the rights owned by the User will be immediately terminated, the paid fees will not be refunded, and the Company reserves the right to pursue the User's legal responsibility.
159
+
160
+ 9.7 If there are other agreements in the contract regarding the above obligations, the contract agreement shall prevail.
161
+
162
+ =============================================================
163
+ 10. Legal Jurisdiction, Interpretation, and Dispute Resolution
164
+ =============================================================
165
+
166
+ 10.1 Except for Mainland China, the interpretation, application, and all matters related to this agreement are subject to the jurisdiction of Singapore law.
167
+
168
+ 10.2 Any dispute related to this Agreement should first be resolved through friendly negotiation. If the negotiation fails to resolve the dispute, the dispute should be submitted to the International Chamber of Commerce (ICC) for arbitration. The arbitration venue should be Singapore, conducted in English.
169
+
170
+ 10.3 All terms and conditions of this Agreement shall be deemed enforceable to the maximum extent permitted by applicable law. If any term of this Agreement is deemed invalid by any applicable law, the invalidity of that term does not affect the validity of any other term of this Agreement, and it should be deemed that the invalid term has been modified as much as possible to make it valid and enforceable, or if the term cannot be modified, it should be deemed to have been deleted from this Agreement.
171
+
172
+ 10.4 The arbitration award is final, binding on both parties, and can be enforced in any court with jurisdiction.
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # @nocobase/plugin-pro-tpl
2
+
3
+ ## 分支
4
+
5
+ 和 nocobase 仓库一样,也分为 main 和 next 两个分支
6
+
7
+ - main:只处理缺陷修复
8
+ - next:新插件、新特性、不兼容性变更等
9
+
10
+ ## 提测
11
+
12
+ - 提交 PR 之后,会自动生成 PR 测试环境,测试通过后再合并到对应分支
13
+
14
+ ```bash
15
+ pr-<number>-<pro-tpl>.test.nocobase.com
16
+ ```
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,163 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { Instruction, WorkflowVariableInput, Fieldset } from '@nocobase/plugin-workflow/client';
11
+ export default class extends Instruction {
12
+ title: string;
13
+ type: string;
14
+ group: string;
15
+ description: string;
16
+ icon: React.JSX.Element;
17
+ fieldset: {
18
+ dataSource: {
19
+ type: string;
20
+ title: string;
21
+ 'x-decorator': string;
22
+ 'x-decorator-props': {};
23
+ 'x-component': string;
24
+ 'x-component-props': {
25
+ nullable: boolean;
26
+ changeOnSelect: boolean;
27
+ };
28
+ };
29
+ example: {
30
+ type: string;
31
+ title: string;
32
+ 'x-decorator': string;
33
+ 'x-decorator-props': {
34
+ layout: string;
35
+ };
36
+ 'x-component': string;
37
+ 'x-component-props': {
38
+ placeholder: string;
39
+ autoSize: {
40
+ minRows: number;
41
+ maxRows: number;
42
+ };
43
+ };
44
+ };
45
+ parseArray: {
46
+ type: string;
47
+ description: string;
48
+ 'x-decorator': string;
49
+ 'x-component': string;
50
+ 'x-content': string;
51
+ default: boolean;
52
+ };
53
+ parseActions: {
54
+ type: string;
55
+ description: string;
56
+ 'x-decorator': string;
57
+ 'x-component': string;
58
+ properties: {
59
+ parseJsonAction: {
60
+ type: string;
61
+ title: string;
62
+ 'x-component': string;
63
+ 'x-component-props': {
64
+ useAction: string;
65
+ size: string;
66
+ };
67
+ };
68
+ clearItems: {
69
+ type: string;
70
+ title: string;
71
+ 'x-component': string;
72
+ 'x-component-props': {
73
+ useAction: string;
74
+ size: string;
75
+ confirm: {
76
+ title: string;
77
+ content: string;
78
+ };
79
+ };
80
+ 'x-reactions': {
81
+ dependencies: string[];
82
+ fulfill: {
83
+ state: {
84
+ disabled: string;
85
+ };
86
+ };
87
+ }[];
88
+ };
89
+ };
90
+ };
91
+ variables: {
92
+ type: string;
93
+ 'x-decorator': string;
94
+ 'x-decorator-props': {
95
+ layout: string;
96
+ };
97
+ 'x-component': string;
98
+ 'x-component-props': {
99
+ style: {
100
+ marginTop: number;
101
+ };
102
+ };
103
+ default: any[];
104
+ items: {
105
+ type: string;
106
+ properties: {
107
+ space: {
108
+ type: string;
109
+ 'x-component': string;
110
+ properties: {
111
+ path: {
112
+ type: string;
113
+ 'x-decorator': string;
114
+ 'x-component': string;
115
+ 'x-component-props': {
116
+ placeholder: string;
117
+ };
118
+ 'x-disabled': boolean;
119
+ };
120
+ alias: {
121
+ type: string;
122
+ 'x-decorator': string;
123
+ 'x-component': string;
124
+ 'x-component-props': {
125
+ placeholder: string;
126
+ };
127
+ };
128
+ remove: {
129
+ type: string;
130
+ 'x-decorator': string;
131
+ 'x-component': string;
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
137
+ };
138
+ };
139
+ scope: {
140
+ useParseJsonAction: () => {
141
+ run(): Promise<void>;
142
+ };
143
+ useClearItemsAction: () => {
144
+ run(): Promise<void>;
145
+ };
146
+ };
147
+ components: {
148
+ Space: React.ForwardRefExoticComponent<import("antd").SpaceProps & React.RefAttributes<HTMLDivElement>> & {
149
+ Compact: React.FC<import("antd/es/space/Compact").SpaceCompactProps>;
150
+ };
151
+ WorkflowVariableInput: typeof WorkflowVariableInput;
152
+ Fieldset: typeof Fieldset;
153
+ };
154
+ useVariables({ key, title, config }: {
155
+ key: any;
156
+ title: any;
157
+ config: any;
158
+ }, options: any): {
159
+ value: any;
160
+ label: any;
161
+ children: any;
162
+ };
163
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare function getObjPaths(obj: any, prefix?: string, paths?: any[], options?: {
11
+ parseArray: boolean;
12
+ keys: any[];
13
+ }): any[];
14
+ export declare const ParsingJson: () => React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Plugin } from '@nocobase/client';
10
+ export declare class PluginProTplClient extends Plugin {
11
+ load(): Promise<void>;
12
+ }
13
+ export default PluginProTplClient;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react-i18next"),require("@ant-design/icons"),require("react"),require("@formily/react"),require("@formily/shared"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-variable-mapping",["react-i18next","@ant-design/icons","react","@formily/react","@formily/shared","antd","@nocobase/client","@nocobase/plugin-workflow/client"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-variable-mapping"]=e(require("react-i18next"),require("@ant-design/icons"),require("react"),require("@formily/react"),require("@formily/shared"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client")):t["@nocobase/plugin-workflow-json-variable-mapping"]=e(t["react-i18next"],t["@ant-design/icons"],t.react,t["@formily/react"],t["@formily/shared"],t.antd,t["@nocobase/client"],t["@nocobase/plugin-workflow/client"])}(self,function(t,e,r,n,o,i,u,c){var a={2622:function(t,e,r){t.exports=r(6369)(r(5031),"DataView")},7973:function(t,e,r){var n=r(1783),o=r(1012),i=r(9900),u=r(6691),c=r(2018);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},2768:function(t,e,r){var n=r(9896),o=r(2473),i=r(4678),u=r(1240),c=r(4296);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},1725:function(t,e,r){t.exports=r(6369)(r(5031),"Map")},736:function(t,e,r){var n=r(6660),o=r(8472),i=r(5637),u=r(9389),c=r(9804);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},4575:function(t,e,r){t.exports=r(6369)(r(5031),"Promise")},8995:function(t,e,r){t.exports=r(6369)(r(5031),"Set")},5106:function(t,e,r){var n=r(736),o=r(4867),i=r(9428);function u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,t.exports=u},5382:function(t,e,r){var n=r(2768),o=r(3533),i=r(7064),u=r(9955),c=r(6087),a=r(3990);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=c,s.prototype.set=a,t.exports=s},5869:function(t,e,r){t.exports=r(5031).Symbol},8930:function(t,e,r){t.exports=r(5031).Uint8Array},8110:function(t,e,r){t.exports=r(6369)(r(5031),"WeakMap")},8353:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}},9360:function(t,e,r){var n=r(7667);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},5987:function(t){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4505:function(t,e,r){var n=r(1650),o=r(8497),i=r(6227),u=r(939),c=r(3501),a=r(2855),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&u(t),l=!r&&!f&&!p&&a(t),y=r||f||p||l,v=y?n(t.length,String):[],b=v.length;for(var h in t)(e||s.call(t,h))&&!(y&&("length"==h||p&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||c(h,b)))&&v.push(h);return v}},2467:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3571:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},9618:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},8746:function(t,e,r){var n=r(3947);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},9443:function(t){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},304:function(t,e,r){var n=r(322),o=r(5107);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},2481:function(t,e,r){var n=r(3571),o=r(6227);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4365:function(t,e,r){var n=r(5869),o=r(7043),i=r(5283),u=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},1547:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},7667:function(t,e,r){var n=r(9443),o=r(1222),i=r(3691);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},8719:function(t,e,r){var n=r(4365),o=r(5620);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},4826:function(t,e,r){var n=r(1177),o=r(5620);t.exports=function t(e,r,i,u,c){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,u,t,c):e!=e&&r!=r)}},1177:function(t,e,r){var n=r(5382),o=r(8055),i=r(6551),u=r(8700),c=r(8943),a=r(6227),s=r(939),f=r(2855),p="[object Arguments]",l="[object Array]",y="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,b,h,d){var x=a(t),g=a(e),m=x?l:c(t),_=g?l:c(e);m=m==p?y:m,_=_==p?y:_;var j=m==y,w=_==y,O=m==_;if(O&&s(t)){if(!s(e))return!1;x=!0,j=!1}if(O&&!j)return d||(d=new n),x||f(t)?o(t,e,r,b,h,d):i(t,e,m,r,b,h,d);if(!(1&r)){var k=j&&v.call(t,"__wrapped__"),A=w&&v.call(e,"__wrapped__");if(k||A){var S=k?t.value():t,P=A?e.value():e;return d||(d=new n),h(S,P,r,b,d)}}return!!O&&(d||(d=new n),u(t,e,r,b,h,d))}},3762:function(t,e,r){var n=r(5382),o=r(4826);t.exports=function(t,e,r,i){var u=r.length,c=u,a=!i;if(null==t)return!c;for(t=Object(t);u--;){var s=r[u];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<c;){var f=(s=r[u])[0],p=t[f],l=s[1];if(a&&s[2]){if(void 0===p&&!(f in t))return!1}else{var y=new n;if(i)var v=i(p,l,f,t,e,y);if(!(void 0===v?o(l,p,3,i,y):v))return!1}}return!0}},1222:function(t){t.exports=function(t){return t!=t}},9930:function(t,e,r){var n=r(3098),o=r(8754),i=r(2917),u=r(1304),c=/^\[object .+?Constructor\]$/,a=Object.prototype,s=Function.prototype.toString,f=a.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(u(t))}},7707:function(t,e,r){var n=r(4365),o=r(6613),i=r(5620),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[n(t)]}},3526:function(t,e,r){var n=r(5159),o=r(4548),i=r(9974),u=r(6227),c=r(7091);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):c(t)}},9849:function(t,e,r){var n=r(2947),o=r(6789),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},5159:function(t,e,r){var n=r(3762),o=r(9812),i=r(7113);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4548:function(t,e,r){var n=r(4826),o=r(557),i=r(9459),u=r(8447),c=r(8546),a=r(7113),s=r(5107);t.exports=function(t,e){return u(t)&&c(e)?a(s(t),e):function(r){var u=o(r,t);return void 0===u&&u===e?i(r,t):n(e,u,3)}}},9511:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},8052:function(t,e,r){var n=r(304);t.exports=function(t){return function(e){return n(e,t)}}},1650:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},4200:function(t,e,r){var n=r(5869),o=r(2467),i=r(6227),u=r(9528),c=1/0,a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-c?"-0":r}},8611:function(t){t.exports=function(t){return function(e){return t(e)}}},1826:function(t,e,r){var n=r(5106),o=r(9360),i=r(5987),u=r(8342),c=r(4248),a=r(735);t.exports=function(t,e,r){var s=-1,f=o,p=t.length,l=!0,y=[],v=y;if(r)l=!1,f=i;else if(p>=200){var b=e?null:c(t);if(b)return a(b);l=!1,f=u,v=new n}else v=e?[]:y;t:for(;++s<p;){var h=t[s],d=e?e(h):h;if(h=r||0!==h?h:0,l&&d==d){for(var x=v.length;x--;)if(v[x]===d)continue t;e&&v.push(d),y.push(h)}else f(v,d,r)||(v!==y&&v.push(d),y.push(h))}return y}},8342:function(t){t.exports=function(t,e){return t.has(e)}},322:function(t,e,r){var n=r(6227),o=r(8447),i=r(9765),u=r(2954);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))}},3823:function(t,e,r){t.exports=r(5031)["__core-js_shared__"]},4248:function(t,e,r){var n=r(8995),o=r(555),i=r(735);t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o},8055:function(t,e,r){var n=r(5106),o=r(9618),i=r(8342);t.exports=function(t,e,r,u,c,a){var s=1&r,f=t.length,p=e.length;if(f!=p&&!(s&&p>f))return!1;var l=a.get(t),y=a.get(e);if(l&&y)return l==e&&y==t;var v=-1,b=!0,h=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++v<f;){var d=t[v],x=e[v];if(u)var g=s?u(x,d,v,e,t,a):u(d,x,v,t,e,a);if(void 0!==g){if(g)continue;b=!1;break}if(h){if(!o(e,function(t,e){if(!i(h,e)&&(d===t||c(d,t,r,u,a)))return h.push(e)})){b=!1;break}}else if(!(d===x||c(d,x,r,u,a))){b=!1;break}}return a.delete(t),a.delete(e),b}},6551:function(t,e,r){var n=r(5869),o=r(8930),i=r(3947),u=r(8055),c=r(7305),a=r(735),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!p(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var y=c;case"[object Set]":var v=1&n;if(y||(y=a),t.size!=e.size&&!v)break;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var h=u(y(t),y(e),n,s,p,l);return l.delete(t),h;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},8700:function(t,e,r){var n=r(6498),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,u,c){var a=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in e:o.call(e,l)))return!1}var y=c.get(t),v=c.get(e);if(y&&v)return y==e&&v==t;var b=!0;c.set(t,e),c.set(e,t);for(var h=a;++p<f;){var d=t[l=s[p]],x=e[l];if(i)var g=a?i(x,d,l,e,t,c):i(d,x,l,t,e,c);if(!(void 0===g?d===x||u(d,x,r,i,c):g)){b=!1;break}h||(h="constructor"==l)}if(b&&!h){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(b=!1)}return c.delete(t),c.delete(e),b}},5274:function(t,e,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},6498:function(t,e,r){var n=r(2481),o=r(5940),i=r(5334);t.exports=function(t){return n(t,i,o)}},9623:function(t,e,r){var n=r(9005);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},9812:function(t,e,r){var n=r(8546),o=r(5334);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],u=t[i];e[r]=[i,u,n(u)]}return e}},6369:function(t,e,r){var n=r(9930),o=r(4502);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},7043:function(t,e,r){var n=r(5869),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[c]=r:delete t[c]),o}},5940:function(t,e,r){var n=r(8353),o=r(3249),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;t.exports=u?function(t){return null==t?[]:n(u(t=Object(t)),function(e){return i.call(t,e)})}:o},8943:function(t,e,r){var n=r(2622),o=r(1725),i=r(4575),u=r(8995),c=r(8110),a=r(4365),s=r(1304),f="[object Map]",p="[object Promise]",l="[object Set]",y="[object WeakMap]",v="[object DataView]",b=s(n),h=s(o),d=s(i),x=s(u),g=s(c),m=a;(n&&m(new n(new ArrayBuffer(1)))!=v||o&&m(new o)!=f||i&&m(i.resolve())!=p||u&&m(new u)!=l||c&&m(new c)!=y)&&(m=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case b:return v;case h:return f;case d:return p;case x:return l;case g:return y}return e}),t.exports=m},4502:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},6953:function(t,e,r){var n=r(322),o=r(8497),i=r(6227),u=r(3501),c=r(6613),a=r(5107);t.exports=function(t,e,r){e=n(e,t);for(var s=-1,f=e.length,p=!1;++s<f;){var l=a(e[s]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++s!=f?p:!!(f=null==t?0:t.length)&&c(f)&&u(l,f)&&(i(t)||o(t))}},1783:function(t,e,r){var n=r(8163);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},1012:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=+!!e,e}},9900:function(t,e,r){var n=r(8163),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},6691:function(t,e,r){var n=r(8163),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},2018:function(t,e,r){var n=r(8163);t.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3501:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8447:function(t,e,r){var n=r(6227),o=r(9528),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||u.test(t)||!i.test(t)||null!=e&&t in Object(e)}},9005:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},8754:function(t,e,r){var n,o=r(3823),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},2947:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},8546:function(t,e,r){var n=r(2917);t.exports=function(t){return t==t&&!n(t)}},9896:function(t){t.exports=function(){this.__data__=[],this.size=0}},2473:function(t,e,r){var n=r(8746),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},4678:function(t,e,r){var n=r(8746);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},1240:function(t,e,r){var n=r(8746);t.exports=function(t){return n(this.__data__,t)>-1}},4296:function(t,e,r){var n=r(8746);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},6660:function(t,e,r){var n=r(7973),o=r(2768),i=r(1725);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},8472:function(t,e,r){var n=r(9623);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=+!!e,e}},5637:function(t,e,r){var n=r(9623);t.exports=function(t){return n(this,t).get(t)}},9389:function(t,e,r){var n=r(9623);t.exports=function(t){return n(this,t).has(t)}},9804:function(t,e,r){var n=r(9623);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this}},7305:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},7113:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},662:function(t,e,r){var n=r(6983);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},8163:function(t,e,r){t.exports=r(6369)(Object,"create")},6789:function(t,e,r){t.exports=r(6942)(Object.keys,Object)},1378:function(t,e,r){t=r.nmd(t);var n=r(5274),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c},5283:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6942:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},5031:function(t,e,r){var n=r(5274),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||o||Function("return this")()},4867:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},9428:function(t){t.exports=function(t){return this.__data__.has(t)}},735:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},3533:function(t,e,r){var n=r(2768);t.exports=function(){this.__data__=new n,this.size=0}},7064:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},9955:function(t){t.exports=function(t){return this.__data__.get(t)}},6087:function(t){t.exports=function(t){return this.__data__.has(t)}},3990:function(t,e,r){var n=r(2768),o=r(1725),i=r(736);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var u=r.__data__;if(!o||u.length<199)return u.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,e),this.size=r.size,this}},3691:function(t){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return -1}},9765:function(t,e,r){var n=r(662),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e})},5107:function(t,e,r){var n=r(9528),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},1304:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},3947:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},557:function(t,e,r){var n=r(304);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9459:function(t,e,r){var n=r(1547),o=r(6953);t.exports=function(t,e){return null!=t&&o(t,e,n)}},9974:function(t){t.exports=function(t){return t}},8497:function(t,e,r){var n=r(8719),o=r(5620),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return o(t)&&u.call(t,"callee")&&!c.call(t,"callee")}},6227:function(t){t.exports=Array.isArray},654:function(t,e,r){var n=r(3098),o=r(6613);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},939:function(t,e,r){t=r.nmd(t);var n=r(5031),o=r(3863),i=e&&!e.nodeType&&e,u=i&&t&&!t.nodeType&&t,c=u&&u.exports===i?n.Buffer:void 0,a=c?c.isBuffer:void 0;t.exports=a||o},3098:function(t,e,r){var n=r(4365),o=r(2917);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},6613:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},2917:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5620:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},9528:function(t,e,r){var n=r(4365),o=r(5620);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},2855:function(t,e,r){var n=r(7707),o=r(8611),i=r(1378),u=i&&i.isTypedArray;t.exports=u?o(u):n},5334:function(t,e,r){var n=r(4505),o=r(9849),i=r(654);t.exports=function(t){return i(t)?n(t):o(t)}},6983:function(t,e,r){var n=r(736);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},555:function(t){t.exports=function(){}},7091:function(t,e,r){var n=r(9511),o=r(8052),i=r(8447),u=r(5107);t.exports=function(t){return i(t)?n(u(t)):o(t)}},3249:function(t){t.exports=function(){return[]}},3863:function(t){t.exports=function(){return!1}},2954:function(t,e,r){var n=r(4200);t.exports=function(t){return null==t?"":n(t)}},4944:function(t,e,r){var n=r(3526),o=r(1826);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},482:function(t){"use strict";t.exports=e},3505:function(t){"use strict";t.exports=n},8875:function(t){"use strict";t.exports=o},3772:function(t){"use strict";t.exports=u},8433:function(t){"use strict";t.exports=c},2721:function(t){"use strict";t.exports=i},8156:function(t){"use strict";t.exports=r},3238:function(e){"use strict";e.exports=t}},s={};function f(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={id:t,loaded:!1,exports:{}};return a[t](r,r.exports,f),r.loaded=!0,r.exports}f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,{a:e}),e},f.d=function(t,e){for(var r in e)f.o(e,r)&&!f.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var p={};return!function(){"use strict";f.r(p),f.d(p,{PluginProTplClient:function(){return M},default:function(){return $}});var t=f(3772),e=f(8156),r=f.n(e),n=f(2721),o=f(482),i=f(8433);f(3238);var u="workflow-json-variable-mapping",c=f(4944),a=f.n(c),s=f(8875),l=f(3505),y="___arr$___";function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){r(t);return}c.done?e(a):Promise.resolve(a).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){b(i,n,o,u,c,"next",t)}function c(t){b(i,n,o,u,c,"throw",t)}u(void 0)})}}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function x(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r})(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function g(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[],key:""},o=n.parseArray,i=n.keys,u=n.key;if(o){var c=e?"".concat(e,".").concat(u):u;u!==y&&r.push({key:(0,s.uid)(),path:c,name:u,paths:g(i).concat([u])}),w(t,c,r,x(d({},n),{parseArray:o,keys:g(i).concat([u])}))}else{var a="".concat(e?e+(u===y?"":"."):"").concat(u?u===y?"[]":u+"[]":"");u!==y&&r.push({key:(0,s.uid)(),path:"".concat(e?e+(u===y?"":"."):"").concat(u||""),name:u,paths:g(i).concat([u])}),t.forEach(function(e,o){var c=g(i);u&&c.push(u),u!==y&&c.push(y),Array.isArray(t[o])?j(e,a,r,x(d({},n),{key:y,keys:c})):Array.isArray(t[o])||"object"!==m(t[o])||null===t[o]||w(t[o],a,r,x(d({},n),{keys:g(c)}))})}return r}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[]};n.parseArray;var o=n.keys;return Object.keys(t).forEach(function(i){var u=e?"".concat(e,".").concat(i):i;Array.isArray(t[i])?j(t[i],e,r,x(d({},n),{keys:o,key:i})):Array.isArray(t[i])||"object"!==m(t[i])||null===t[i]?r.push({key:(0,s.uid)(),path:u,name:i,paths:g(o).concat([i])}):(r.push({key:(0,s.uid)(),path:u,name:i,paths:g(o).concat([i])}),w(t[i],u,r,x(d({},n),{keys:g(o).concat([i])})))}),r}var O=function(){var t=(0,l.useForm)();return{run:function(){return h(function(){var e,r;return _(this,function(n){try{e=[],r=t.values.example,Array.isArray(r)?e=j(r,"",[],{parseArray:t.values.parseArray,keys:[],key:y}):(void 0===r?"undefined":m(r))==="object"&&null!==r&&(e=w(r,"",[],{parseArray:t.values.parseArray,keys:[]})),t.query("variables").take().onInput(a()(e,"path"))}catch(t){console.error(t)}return[2]})})()}}},k=function(){var t=(0,l.useForm)();return{run:function(){return h(function(){return _(this,function(e){return t.query("variables").take().onInput([]),[2]})})()}}};function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I=function(){return!!t})()}var z=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function c(){var t,e,a;if(!(this instanceof c))throw TypeError("Cannot call a class as a function");return e=c,a=arguments,e=S(e),A(t=function(t,e){var r;if(e&&("object"==((r=e)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,I()?Reflect.construct(e,a||[],S(this).constructor):e.apply(this,a)),"title",'{{t("JSON variable mapping", { ns: "'.concat(u,'" })}}')),A(t,"type","json-variable-mapping"),A(t,"group","control"),A(t,"description",'{{t("Used for mapping any JSON data to structured variables for usage in subsequent nodes.", { ns: "'.concat(u,'" })}}')),A(t,"icon",r().createElement(o.SwapRightOutlined,null)),A(t,"fieldset",{dataSource:{type:"string",title:'{{t("JSON data source", { ns: "'.concat(u,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableInput","x-component-props":{nullable:!1,changeOnSelect:!0}},example:{type:"string",title:'{{t("Input example", { ns: "'.concat(u,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"Input.JSON","x-component-props":{placeholder:'{{t(\'Please input JSON example like { "key1": "item1", "key2": "item2" }\', { ns: "'.concat(u,'" })}}'),autoSize:{minRows:5,maxRows:10}}},parseArray:{type:"boolean",description:'{{t(\'If the JSON object contains array items, parse them. eg: { "arrayKey": [ "item1", "item2" ] will be parsed as "arrayKey", "arrayKey.0", "arrayKey.1", if set to false, only "arrayKey" will be parsed.\', { ns: "'.concat(u,'" })}}'),"x-decorator":"FormItem","x-component":"Checkbox","x-content":"{{t('Include array index in path', { ns: \"".concat(u,'" })}}'),default:!1},parseActions:{type:"void",description:"{{t('Please update other node references to the key after clicking the parse button.', { ns: \"".concat(u,'" })}}'),"x-decorator":"FormItem","x-component":"Space",properties:{parseJsonAction:{type:"void",title:"{{t('Parse', { ns: \"".concat(u,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useParseJsonAction }}",size:"small"}},clearItems:{type:"void",title:"{{t('Clear below items', { ns: \"".concat(u,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useClearItemsAction }}",size:"small",confirm:{title:"{{t('Delete items')}}",content:"{{t('Are you sure to clear below items?')}}"}},"x-reactions":[{dependencies:[".variables"],fulfill:{state:{disabled:"{{ $deps[0].length === 0 }}"}}}]}}},variables:{type:"array","x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"ArrayItems","x-component-props":{style:{marginTop:20}},default:[],items:{type:"object",properties:{space:{type:"void","x-component":"Space",properties:{path:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Key path", { ns: "'.concat(u,'" })}}')},"x-disabled":!0},alias:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Alias", { ns: "'.concat(u,'" })}}')}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}}}}),A(t,"scope",{useParseJsonAction:O,useClearItemsAction:k}),A(t,"components",{Space:n.Space,WorkflowVariableInput:i.WorkflowVariableInput,Fieldset:i.Fieldset}),t}return c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),t&&P(c,t),e=[{key:"useVariables",value:function(t,e){var r;return{value:t.key,label:t.title,children:(null!=(r=t.config.variables)?r:[]).map(function(t){var e=t.key,r=t.alias,n=t.path;return{isLeaf:!0,label:r||n,value:e,key:e}})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(i.Instruction);function E(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){r(t);return}c.done?e(a):Promise.resolve(a).then(n,o)}function F(t,e,r){return(F=C()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&q(o,r.prototype),o}).apply(null,arguments)}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(t){var e="function"==typeof Map?new Map:void 0;return(R=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return F(t,arguments,T(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),q(r,t)})(t)}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}var M=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=T(t),function(t,e){var r;if(e&&("object"==((r=e)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,C()?Reflect.construct(t,e||[],T(this).constructor):t.apply(this,e))}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&q(r,t),e=[{key:"load",value:function(){var t,e=this;return(t=function(){return function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(t){return e.app.pm.get("workflow").registerInstruction("json-variable-mapping",z),[2]})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){E(i,n,o,u,c,"next",t)}function c(t){E(i,n,o,u,c,"throw",t)}u(void 0)})})()}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,e),r}(R(t.Plugin)),$=M}(),p});
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function useT(): (str: string) => string;
10
+ export declare function tStr(key: string): string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function getObjPaths(obj: any, prefix?: string, paths?: any[], options?: {
10
+ parseArray: boolean;
11
+ keys: any[];
12
+ }): any[];
13
+ export declare const useParseJsonAction: () => {
14
+ run(): Promise<void>;
15
+ };
16
+ export declare const useClearItemsAction: () => {
17
+ run(): Promise<void>;
18
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const ARRAY_KEY_IN_PATH = "___arr$___";
10
+ export declare const ARRAY_KEY_IN_TITLE = "[]";
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var contants_exports = {};
28
+ __export(contants_exports, {
29
+ ARRAY_KEY_IN_PATH: () => ARRAY_KEY_IN_PATH,
30
+ ARRAY_KEY_IN_TITLE: () => ARRAY_KEY_IN_TITLE
31
+ });
32
+ module.exports = __toCommonJS(contants_exports);
33
+ const ARRAY_KEY_IN_PATH = "___arr$___";
34
+ const ARRAY_KEY_IN_TITLE = "[]";
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ ARRAY_KEY_IN_PATH,
38
+ ARRAY_KEY_IN_TITLE
39
+ });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ module.exports = {
11
+ "react": "18.2.0",
12
+ "antd": "5.24.2",
13
+ "@ant-design/icons": "5.6.1",
14
+ "@nocobase/plugin-workflow": "1.9.0-beta.17",
15
+ "lodash": "4.17.21",
16
+ "@formily/shared": "2.3.2",
17
+ "@formily/core": "2.3.0",
18
+ "@formily/react": "2.3.0",
19
+ "@nocobase/client": "1.9.0-beta.17",
20
+ "react-i18next": "11.18.6",
21
+ "@nocobase/server": "1.9.0-beta.17"
22
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './server';
10
+ export { default } from './server';
package/dist/index.js ADDED
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30
+ // If the importer is in node compatibility mode or this is not an ESM
31
+ // file that has been converted to a CommonJS file using a Babel-
32
+ // compatible transform (i.e. "__esModule" has not been set), then set
33
+ // "default" to the CommonJS "module.exports" for node compatibility.
34
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
35
+ mod
36
+ ));
37
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
+ var src_exports = {};
39
+ __export(src_exports, {
40
+ default: () => import_server.default
41
+ });
42
+ module.exports = __toCommonJS(src_exports);
43
+ __reExport(src_exports, require("./server"), module.exports);
44
+ var import_server = __toESM(require("./server"));
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ ...require("./server")
48
+ });
@@ -0,0 +1,14 @@
1
+ {
2
+ "JSON variable mapping": "JSON variable mapping",
3
+ "Used for mapping any JSON data to structured variables for usage in subsequent nodes.": "Used for mapping any JSON data to structured variables for usage in subsequent nodes.",
4
+ "Please update other node references to the key after clicking the parse button.": "Please update other node references to the key after clicking the parse button.",
5
+ "JSON data source": "JSON data source",
6
+ "Input example": "Input example",
7
+ "Please input JSON example like { \"key1\": \"item1\", \"key2\": \"item2\" }": "Please input JSON example like { \"key1\": \"item1\", \"key2\": \"item2\" }",
8
+ "Include array index in path": "Include array index in path",
9
+ "If the JSON object contains array items, parse them. eg: { \"arrayKey\": [ \"item1\", \"item2\" ] will be parsed as \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", if set to false, only \"arrayKey\" will be parsed.": "If the JSON object contains array items, parse them. eg: { \"arrayKey\": [ \"item1\", \"item2\" ] will be parsed as \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", if set to false, only \"arrayKey\" will be parsed.",
10
+ "Parse": "Parse",
11
+ "Clear below items": "Clear below items",
12
+ "Alias": "Alias",
13
+ "Key path": "Key path"
14
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const NAMESPACE = "workflow-json-variable-mapping";
10
+ export declare function useLang(key: string, options?: {}): string;
11
+ export declare function lang(key: string, options?: {}): string;
12
+ export declare function usePluginTranslation(options: any): import("react-i18next").UseTranslationResponse<"workflow-json-variable-mapping", undefined>;
@@ -0,0 +1,54 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var locale_exports = {};
28
+ __export(locale_exports, {
29
+ NAMESPACE: () => NAMESPACE,
30
+ lang: () => lang,
31
+ useLang: () => useLang,
32
+ usePluginTranslation: () => usePluginTranslation
33
+ });
34
+ module.exports = __toCommonJS(locale_exports);
35
+ var import_react_i18next = require("react-i18next");
36
+ var import_client = require("@nocobase/client");
37
+ const NAMESPACE = "workflow-json-variable-mapping";
38
+ function useLang(key, options = {}) {
39
+ const { t } = usePluginTranslation(options);
40
+ return t(key);
41
+ }
42
+ function lang(key, options = {}) {
43
+ return import_client.i18n.t(key, { ...options, ns: NAMESPACE });
44
+ }
45
+ function usePluginTranslation(options) {
46
+ return (0, import_react_i18next.useTranslation)(NAMESPACE, options);
47
+ }
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ NAMESPACE,
51
+ lang,
52
+ useLang,
53
+ usePluginTranslation
54
+ });
@@ -0,0 +1,14 @@
1
+ {
2
+ "JSON variable mapping": "JSON 变量映射",
3
+ "Used for mapping any JSON data to structured variables for usage in subsequent nodes.": "用于将任意 JSON 数据映射为结构化的变量,以供后续节点使用。",
4
+ "Please update other node references to the key after clicking the parse button.": "请在点击 parse 按钮后更新其它节点对 key 的引用",
5
+ "JSON data source": "JSON 输入源",
6
+ "Input example": "输入样例",
7
+ "Please input JSON example like { \"key1\": \"item1\", \"key2\": \"item2\" }": "请输入 JSON 样例,例如 { \"key1\": \"item1\", \"key2\": \"item2\" }",
8
+ "Include array index in path": "包含数组索引",
9
+ "If the JSON object contains array items, parse them. eg: { \"arrayKey\": [ \"item1\", \"item2\" ] will be parsed as \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", if set to false, only \"arrayKey\" will be parsed.": "如果样例包含数组,例如: { \"arrayKey\": [ \"item1\", \"item2\" ], 则会解析成 \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", 如果不勾选,则只解析成 \"arrayKey\"。",
10
+ "Parse": "解析",
11
+ "Clear below items": "清空下列选项",
12
+ "Alias": "别名",
13
+ "Key path": "键名"
14
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Processor, Instruction, FlowNodeModel } from '@nocobase/plugin-workflow';
10
+ type Variable = {
11
+ key: string;
12
+ path: string;
13
+ title: string;
14
+ children: Array<Variable>;
15
+ };
16
+ export type JSONVariableMappingInstructionConfig = {
17
+ variables: Array<Variable>;
18
+ dataSource: string;
19
+ };
20
+ export default class JSONVariableMappingInstruction extends Instruction {
21
+ run(node: FlowNodeModel, prevJob: any, processor: Processor): Promise<{
22
+ result: string;
23
+ status: -1;
24
+ } | {
25
+ result: {};
26
+ status: 1;
27
+ }>;
28
+ }
29
+ export {};
@@ -0,0 +1,110 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var JSONVariableMappingInstruction_exports = {};
28
+ __export(JSONVariableMappingInstruction_exports, {
29
+ default: () => JSONVariableMappingInstruction
30
+ });
31
+ module.exports = __toCommonJS(JSONVariableMappingInstruction_exports);
32
+ var import_plugin_workflow = require("@nocobase/plugin-workflow");
33
+ var import_contants = require("../contants");
34
+ function getArrValue(dataSource, paths, parseArray) {
35
+ if (!Array.isArray(dataSource)) {
36
+ return [];
37
+ }
38
+ const newPath = [...paths];
39
+ const key = newPath.shift();
40
+ let result = [];
41
+ dataSource.forEach((data) => {
42
+ if (newPath.length === 0) {
43
+ data[key] && result.push(data[key]);
44
+ } else if (key === import_contants.ARRAY_KEY_IN_PATH && Array.isArray(data)) {
45
+ result = getArrValue(data, newPath, parseArray);
46
+ } else {
47
+ const value = getVaule(data[key], newPath, parseArray);
48
+ value && result.push(value);
49
+ }
50
+ });
51
+ return result;
52
+ }
53
+ function getVaule(dataSource, paths, parseArray) {
54
+ const newPath = [...paths];
55
+ if (!dataSource) {
56
+ return dataSource;
57
+ }
58
+ if (newPath[0] === import_contants.ARRAY_KEY_IN_PATH) {
59
+ newPath.shift();
60
+ if (!parseArray) {
61
+ return getArrValue(dataSource, newPath, parseArray);
62
+ }
63
+ }
64
+ const key = newPath.shift();
65
+ const value = dataSource[key];
66
+ if (newPath.length === 0) {
67
+ return value;
68
+ }
69
+ if (!value) {
70
+ return value;
71
+ }
72
+ return getVaule(value, newPath, parseArray);
73
+ }
74
+ function parseInput(dataSource = {}, variables = [], parseArray) {
75
+ if (!Array.isArray(variables)) {
76
+ return {};
77
+ }
78
+ let result = {};
79
+ variables.forEach((item) => {
80
+ var _a;
81
+ if ((_a = item.children) == null ? void 0 : _a.length) {
82
+ const childrenResult = parseInput(dataSource, item.children, parseArray);
83
+ result = {
84
+ ...result,
85
+ ...childrenResult,
86
+ [item.key]: getVaule(dataSource, item.path, parseArray)
87
+ };
88
+ } else {
89
+ result[item.key] = getVaule(dataSource, item.paths, parseArray);
90
+ }
91
+ });
92
+ return result;
93
+ }
94
+ class JSONVariableMappingInstruction extends import_plugin_workflow.Instruction {
95
+ async run(node, prevJob, processor) {
96
+ const { dataSource, variables, parseArray } = node.config;
97
+ const input = processor.getParsedValue(dataSource, node.id);
98
+ if (typeof input !== "object" || input == null) {
99
+ return {
100
+ result: "The input data is not an object nor an array",
101
+ status: import_plugin_workflow.JOB_STATUS.FAILED
102
+ };
103
+ }
104
+ const result = parseInput(input, variables, parseArray);
105
+ return {
106
+ result,
107
+ status: import_plugin_workflow.JOB_STATUS.RESOLVED
108
+ };
109
+ }
110
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export { default } from './plugin';
@@ -0,0 +1,42 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var server_exports = {};
38
+ __export(server_exports, {
39
+ default: () => import_plugin.default
40
+ });
41
+ module.exports = __toCommonJS(server_exports);
42
+ var import_plugin = __toESM(require("./plugin"));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Plugin } from '@nocobase/server';
10
+ export declare class PluginProTplServer extends Plugin {
11
+ load(): Promise<void>;
12
+ }
13
+ export default PluginProTplServer;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var plugin_exports = {};
38
+ __export(plugin_exports, {
39
+ PluginProTplServer: () => PluginProTplServer,
40
+ default: () => plugin_default
41
+ });
42
+ module.exports = __toCommonJS(plugin_exports);
43
+ var import_server = require("@nocobase/server");
44
+ var import_plugin_workflow = __toESM(require("@nocobase/plugin-workflow"));
45
+ var import_JSONVariableMappingInstruction = __toESM(require("./JSONVariableMappingInstruction"));
46
+ class PluginProTplServer extends import_server.Plugin {
47
+ async load() {
48
+ const workflowPlugin = this.app.pm.get(import_plugin_workflow.default);
49
+ workflowPlugin.registerInstruction("json-variable-mapping", import_JSONVariableMappingInstruction.default);
50
+ }
51
+ }
52
+ var plugin_default = PluginProTplServer;
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ PluginProTplServer
56
+ });
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@nocobase/plugin-workflow-json-variable-mapping",
3
+ "version": "1.9.0-beta.17",
4
+ "displayName": "Workflow: JSON variable mapping",
5
+ "displayName.zh-CN": "工作流:JSON 变量映射",
6
+ "description": "Used for mapping any JSON data to structured variables for usage in subsequent nodes.",
7
+ "description.zh-CN": "用于将任意 JSON 数据映射为结构化的变量,以供后续节点使用。",
8
+ "main": "dist/server/index.js",
9
+ "devDependencies": {
10
+ "@nocobase/plugin-workflow-test": "1.x"
11
+ },
12
+ "peerDependencies": {
13
+ "@nocobase/client": "1.x",
14
+ "@nocobase/plugin-workflow": "1.x",
15
+ "@nocobase/server": "1.x",
16
+ "@nocobase/test": "1.x"
17
+ },
18
+ "keywords": [
19
+ "Workflow"
20
+ ],
21
+ "gitHead": "4f95b676235fa3f7583493412279d8132a20c4d0"
22
+ }
package/server.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/server';
2
+ export { default } from './dist/server';
package/server.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/server/index.js');