@byteluck-fe/model-driven-core 2.6.0-alpha.17e → 2.6.0-alpha.19
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/dist/esm/common/BaseControl/designer.js +0 -1
- package/dist/esm/common/BaseControl/runtime.js +0 -1
- package/dist/esm/common/ControlArray.js +12 -14
- package/dist/esm/common/FormControl/property.js +7 -10
- package/dist/esm/common/LayoutControl/designer.js +1 -1
- package/dist/esm/common/LayoutControl/runtime.js +1 -1
- package/dist/esm/common/ListControl/designer.js +1 -1
- package/dist/esm/common/ListControl/property.js +2 -2
- package/dist/esm/common/ListControl/runtime.js +2 -2
- package/dist/esm/framework/RegisterControls.js +5 -67
- package/dist/esm/framework/isDataBind.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/designer.d.ts +1 -2
- package/dist/types/common/BaseControl/property.d.ts +0 -2
- package/dist/types/common/BaseControl/runtime.d.ts +1 -2
- package/dist/types/common/ControlArray.d.ts +3 -4
- package/dist/types/common/ListControl/property.d.ts +1 -1
- package/dist/types/framework/RegisterControls.d.ts +1 -4
- package/package.json +2 -2
|
@@ -33,16 +33,14 @@ export function setPropertyDontEnum(obj, property) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export function defineParent(control, parent
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
setPropertyDontEnum(control, 'parent');
|
|
41
|
-
}
|
|
36
|
+
export function defineParent(control, parent) {
|
|
37
|
+
control.parent = parent;
|
|
38
|
+
// 如果没有被设置过不允许枚举的话,说明是第一次被代理,需要设置parent属性不允许枚举
|
|
39
|
+
setPropertyDontEnum(control, 'parent');
|
|
42
40
|
}
|
|
43
|
-
export function defineArrayParent(controls, parent
|
|
41
|
+
export function defineArrayParent(controls, parent) {
|
|
44
42
|
controls.forEach(function(item) {
|
|
45
|
-
defineParent(item, parent
|
|
43
|
+
defineParent(item, parent);
|
|
46
44
|
});
|
|
47
45
|
}
|
|
48
46
|
var targetKey = Symbol('targetKey');
|
|
@@ -50,8 +48,8 @@ function getTargetValue(value) {
|
|
|
50
48
|
var _targetKey;
|
|
51
49
|
return (_targetKey = value[targetKey]) !== null && _targetKey !== void 0 ? _targetKey : value;
|
|
52
50
|
}
|
|
53
|
-
function proxyState(target, parent
|
|
54
|
-
defineArrayParent(target, parent
|
|
51
|
+
function proxyState(target, parent) {
|
|
52
|
+
defineArrayParent(target, parent);
|
|
55
53
|
return new Proxy(target, {
|
|
56
54
|
get: function get(t, p) {
|
|
57
55
|
for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
|
|
@@ -81,21 +79,21 @@ function proxyState(target, parent, mode) {
|
|
|
81
79
|
value
|
|
82
80
|
].concat(_toConsumableArray(args)));
|
|
83
81
|
if (isPlainObject(value)) {
|
|
84
|
-
defineParent(value, parent
|
|
82
|
+
defineParent(value, parent);
|
|
85
83
|
}
|
|
86
84
|
return result;
|
|
87
85
|
}
|
|
88
86
|
});
|
|
89
87
|
}
|
|
90
|
-
export function defineControlArrayToProperty(obj, property, initialValue, parent
|
|
88
|
+
export function defineControlArrayToProperty(obj, property, initialValue, parent) {
|
|
91
89
|
var _parent = parent !== null && parent !== void 0 ? parent : obj;
|
|
92
|
-
var value = proxyState(getTargetValue(initialValue !== null && initialValue !== void 0 ? initialValue : []), _parent
|
|
90
|
+
var value = proxyState(getTargetValue(initialValue !== null && initialValue !== void 0 ? initialValue : []), _parent);
|
|
93
91
|
Object.defineProperty(obj, property, {
|
|
94
92
|
get: function get() {
|
|
95
93
|
return value;
|
|
96
94
|
},
|
|
97
95
|
set: function set(newValue) {
|
|
98
|
-
value = proxyState(getTargetValue(newValue), _parent
|
|
96
|
+
value = proxyState(getTargetValue(newValue), _parent);
|
|
99
97
|
},
|
|
100
98
|
enumerable: true
|
|
101
99
|
});
|
|
@@ -172,16 +172,13 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
|
|
|
172
172
|
_classCallCheck(this, BaseControlPropertyRuntimeRules);
|
|
173
173
|
var _this;
|
|
174
174
|
_this = _super.call(this, props);
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
})
|
|
183
|
-
});
|
|
184
|
-
}
|
|
175
|
+
_this.push({
|
|
176
|
+
type: 'string',
|
|
177
|
+
required: props.isHide ? false : props.required,
|
|
178
|
+
message: props.requiredMessage !== '' ? props.requiredMessage : RulesMessage.getMessage('runtimeRequired', {
|
|
179
|
+
caption: props.caption
|
|
180
|
+
})
|
|
181
|
+
});
|
|
185
182
|
return _this;
|
|
186
183
|
}
|
|
187
184
|
return BaseControlPropertyRuntimeRules;
|
|
@@ -213,7 +213,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl1) {
|
|
|
213
213
|
_this.controlType = 'layout';
|
|
214
214
|
var ref = _instanceof(this, LayoutControl) ? this.constructor : void 0, excludes = ref.excludes, childrenMaxLength = ref.childrenMaxLength;
|
|
215
215
|
_this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
216
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children
|
|
216
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
|
|
217
217
|
_this.excludes = JSONCopy(excludes);
|
|
218
218
|
_this.childrenMaxLength = childrenMaxLength;
|
|
219
219
|
return _this;
|
|
@@ -82,7 +82,7 @@ var LayoutControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
|
82
82
|
_this = _super.call(this, props);
|
|
83
83
|
_this.controlType = 'layout';
|
|
84
84
|
_this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children
|
|
85
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return LayoutControl;
|
|
@@ -201,7 +201,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
|
|
|
201
201
|
var _this;
|
|
202
202
|
_this = _super.call(this, props);
|
|
203
203
|
_this.controlType = 'list';
|
|
204
|
-
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props
|
|
204
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
205
205
|
return _this;
|
|
206
206
|
}
|
|
207
207
|
_createClass(ListControl, [
|
|
@@ -75,11 +75,11 @@ var ListControlProperty = /*#__PURE__*/ function(Property1) {
|
|
|
75
75
|
"use strict";
|
|
76
76
|
_inherits(ListControlProperty, Property1);
|
|
77
77
|
var _super = _createSuper(ListControlProperty);
|
|
78
|
-
function ListControlProperty(parent, props
|
|
78
|
+
function ListControlProperty(parent, props) {
|
|
79
79
|
_classCallCheck(this, ListControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent
|
|
82
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent);
|
|
83
83
|
return _this;
|
|
84
84
|
}
|
|
85
85
|
return ListControlProperty;
|
|
@@ -95,8 +95,8 @@ var ListControl = /*#__PURE__*/ function(RuntimeControl1) {
|
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
97
|
_this.controlType = 'list';
|
|
98
|
-
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props
|
|
99
|
-
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children
|
|
98
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
102
102
|
_createClass(ListControl, [
|
|
@@ -18,7 +18,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
20
|
import { error, CONTROL_BASE_TYPE, warn } from '@byteluck-fe/model-driven-shared';
|
|
21
|
-
import { setPropertyDontEnum } from "../common/ControlArray";
|
|
22
21
|
var baseStaticControls = [];
|
|
23
22
|
export var RegisterControls = /*#__PURE__*/ function() {
|
|
24
23
|
"use strict";
|
|
@@ -154,15 +153,9 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
154
153
|
createSchema = result;
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
// this.defineParentToChildren(control)
|
|
161
|
-
this._setParentPrototypeToSchema(control, this);
|
|
162
|
-
} else {
|
|
163
|
-
// @ts-ignore
|
|
164
|
-
control = new Constructor(createSchema);
|
|
165
|
-
}
|
|
156
|
+
// @ts-ignore
|
|
157
|
+
var control = new Constructor(createSchema);
|
|
158
|
+
// this.defineParentToChildren(control)
|
|
166
159
|
return control;
|
|
167
160
|
} else {
|
|
168
161
|
error(// @ts-ignore
|
|
@@ -170,45 +163,6 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
170
163
|
}
|
|
171
164
|
}
|
|
172
165
|
},
|
|
173
|
-
{
|
|
174
|
-
key: "_setParentPrototypeToSchema",
|
|
175
|
-
value: function _setParentPrototypeToSchema(schema, runtime) {
|
|
176
|
-
// if (Reflect.has(schema, 'parent')) {
|
|
177
|
-
// return
|
|
178
|
-
// }
|
|
179
|
-
if (runtime._type !== 'Runtime') {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
Object.defineProperty(schema, 'parent', {
|
|
183
|
-
get: function get() {
|
|
184
|
-
// @ts-ignore
|
|
185
|
-
var id = schema.id;
|
|
186
|
-
var controlParentIdMap = runtime._controlParentIdMap;
|
|
187
|
-
var instanceMap = runtime.instanceMap;
|
|
188
|
-
if (!controlParentIdMap || !instanceMap) {
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
var parentId = controlParentIdMap[id];
|
|
192
|
-
var selfInInstances = instanceMap[id];
|
|
193
|
-
if (!parentId && !selfInInstances) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
var selfIndex = selfInInstances.findIndex(function(item) {
|
|
197
|
-
return item == schema;
|
|
198
|
-
});
|
|
199
|
-
var parentInstances = instanceMap[parentId] || [];
|
|
200
|
-
var parentInstance;
|
|
201
|
-
if (parentInstances.length - 1 > selfIndex) {
|
|
202
|
-
parentInstance = parentInstances[0];
|
|
203
|
-
} else {
|
|
204
|
-
parentInstance = parentInstances[selfIndex];
|
|
205
|
-
}
|
|
206
|
-
return parentInstance;
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
setPropertyDontEnum(schema, 'parent');
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
166
|
{
|
|
213
167
|
key: "createControlInstance",
|
|
214
168
|
value: function createControlInstance(type, initSchema) {
|
|
@@ -236,28 +190,14 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
236
190
|
var _this = this;
|
|
237
191
|
this.constructor.staticControls.forEach(function(item) {
|
|
238
192
|
_this.register(item[type]);
|
|
239
|
-
RegisterControls.staticControlsRuntimeRules.set(item.Runtime.controlType, item.Property.RuntimeRules);
|
|
240
|
-
item.Property.mode = type;
|
|
241
193
|
});
|
|
242
194
|
}
|
|
243
195
|
}
|
|
244
196
|
], [
|
|
245
|
-
{
|
|
246
|
-
key: "staticGetRules",
|
|
247
|
-
value: function staticGetRules(controlType, props) {
|
|
248
|
-
var Rules = RegisterControls.staticControlsRuntimeRules.get(controlType);
|
|
249
|
-
var result = [];
|
|
250
|
-
if (Rules) {
|
|
251
|
-
var rules = new Rules(props);
|
|
252
|
-
result = Array.from(rules);
|
|
253
|
-
}
|
|
254
|
-
return result;
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
197
|
{
|
|
258
198
|
key: "register",
|
|
259
|
-
value: function register(control
|
|
260
|
-
var Designer = control.Designer, Runtime = control.Runtime
|
|
199
|
+
value: function register(control) {
|
|
200
|
+
var Designer = control.Designer, Runtime = control.Runtime;
|
|
261
201
|
if (!Designer || !Runtime || !Designer.__is_control__ || !Runtime.__is_control__) {
|
|
262
202
|
error("".concat(control, " is can't register as a Control"));
|
|
263
203
|
}
|
|
@@ -270,14 +210,12 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
270
210
|
}
|
|
271
211
|
this.staticRegisteredTypes.add(Designer.controlType);
|
|
272
212
|
this.staticControls.push(control);
|
|
273
|
-
Property.mode = mode;
|
|
274
213
|
return this;
|
|
275
214
|
}
|
|
276
215
|
}
|
|
277
216
|
]);
|
|
278
217
|
return RegisterControls;
|
|
279
218
|
}();
|
|
280
|
-
RegisterControls.staticControlsRuntimeRules = new Map();
|
|
281
219
|
RegisterControls.staticControls = baseStaticControls;
|
|
282
220
|
RegisterControls.staticRegisteredTypes = new Set(baseStaticControls.map(function(item) {
|
|
283
221
|
return item.Designer.controlType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function isDataBind(dataBind) {
|
|
2
|
-
if (dataBind.dataCode !== undefined && dataBind.fieldCode !== undefined) {
|
|
2
|
+
if ((dataBind === null || dataBind === void 0 ? void 0 : dataBind.dataCode) !== undefined && (dataBind === null || dataBind === void 0 ? void 0 : dataBind.fieldCode) !== undefined) {
|
|
3
3
|
return true;
|
|
4
4
|
} else {
|
|
5
5
|
return false;
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Xs=Object.defineProperty,Gs=Object.defineProperties;var Zs=Object.getOwnPropertyDescriptors;var en=Object.getOwnPropertySymbols;var Qs=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable;var tn=(s,S,M)=>S in s?Xs(s,S,{enumerable:!0,configurable:!0,writable:!0,value:M}):s[S]=M,G=(s,S)=>{for(var M in S||(S={}))Qs.call(S,M)&&tn(s,M,S[M]);if(en)for(var M of en(S))Ys.call(S,M)&&tn(s,M,S[M]);return s},Ae=(s,S)=>Gs(s,Zs(S));var le=(s,S,M)=>new Promise((oe,ce)=>{var Fe=U=>{try{Z(M.next(U))}catch(Q){ce(Q)}},De=U=>{try{Z(M.throw(U))}catch(Q){ce(Q)}},Z=U=>U.done?oe(U.value):Promise.resolve(U.value).then(Fe,De);Z((M=M.apply(s,S)).next())});(function(s,S){typeof exports=="object"&&typeof module!="undefined"?S(exports,require("regenerator-runtime")):typeof define=="function"&&define.amd?define(["exports","regenerator-runtime"],S):(s=typeof globalThis!="undefined"?globalThis:s||self,S(s.modelDrivenCore={},s.regeneratorRuntime))})(this,function(s,S){"use strict";function M(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var oe=M(S),ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Fe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",U="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Q="{caption}\u5FC5\u586B",nn="\u8BF7\u8F93\u5165\u6807\u9898",un="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",an="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",rn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",sn="\u8BF7\u7ED1\u5B9A\u8868\u5355",ln="\u8BF7\u7ED1\u5B9A\u5217\u8868",on="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",cn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",dn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",fn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",hn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",mn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",gn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",yn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",En="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",vn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Bn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Cn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",An="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Fn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Dn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",bn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Sn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",wn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",In="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Rn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Mn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Ln="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",$n="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Pn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",qn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",On="\u8BF7\u9009\u62E9\u7701",Vn="\u8BF7\u9009\u62E9\u5E02",Nn="\u8BF7\u9009\u62E9\u533A",jn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",_n="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Un="\u8BF7\u8F93\u5165\u5217\u5BBD",xn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Hn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Tn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Wn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Kn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",kn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",zn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Jn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Gn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Zn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Yn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",uu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",au="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",su="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",lu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",cu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",du="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",fu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",hu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",mu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",gu={isNotNumber:ce,isNotString:Fe,isNotObject:De,isNotArray:Z,isNotBoolean:U,runtimeRequired:Q,pleaseEnterCaption:nn,pleaseEnterCaptionTip:un,pleaseEnterPlaceholder:an,pleaseEnterFieldCode:rn,pleaseEnterForm:sn,pleaseEnterList:ln,pleaseEnterProcess:on,pleaseEnterLabel:cn,pleaseEnterValue:dn,bizKeyNotBindFiled:fn,pleaseSelectOneField:hn,pleaseEnterNumberRange:mn,pleaseEnterAValueGreaterThanMin:gn,pleaseEnterAValueLessThanMax:yn,numberRangeSetError:En,stringRangeError:vn,attachmentMaxSize:Bn,pleaseEnterTotalScoreSetting:Cn,theTotalScoreMustNotBeLessThan1:An,scoreDefaultValueRange:Fn,attachmentLimitError:Dn,PleaseReselectTheOptionalQuantity:bn,TheMaximumLengthIsGreaterThanTheMinimumLength:Sn,TheMinimumLengthIsGreaterThanTheMaximumLength:wn,PleaseSelectTheCorrectOptionSettings:In,optionIdIsRepeat:Rn,optionIsRequired:Mn,pleaseEnterDataCode:Ln,pleaseEnterValueFieldCode:$n,pleaseEnterSvcCode:Pn,pleaseBindAtLeastOneDisplayValue:qn,pleaseSelectProvince:On,pleaseSelectCity:Vn,pleaseSelectDistrict:Nn,limitRowsCannotBeLessThan0:jn,TheNumberOfRowsCannotBeLessThanMinRows:_n,pleaseEnterColumnWidth:Un,pleaseSetTheLogicalRelationshipOfAllRuleConditions:xn,pleaseCompleteAllRulesAndConditions:Hn,pleaseSelectControl:Tn,pleaseSelectAtLeastOneColumn:Wn,pleaseSelectFillBackMode:Kn,pleaseSelectDashboard:kn,rootNodeIsRequired:zn,theViewNameCannotBeEmpty:Jn,pleaseSelectOcrType:Xn,pleaseSelectAtLeastOneFieldToFillIn:Gn,pleaseChooseAtLeastOne:Zn,pleaseEnterButtonContent:Qn,pleaseEnterDataCodeInDataSetting:Yn,pleaseEnterValueFieldCodeInDataSetting:pn,pleaseEnterSvcCodeInDataSetting:eu,pleaseBindAtLeastOneDisplayValueInDataSetting:tu,rootNodeIsRequiredInDataSetting:nu,pleaseEnterMaxHeight:uu,pleaseEnter:au,pleaseEnterWatermark:iu,pleaseEnterFileName:ru,pleaseUploadAtLeastOnePrintTemplate:su,pleaseAssignBusiness:lu,pleaseAssignExternal:ou,pleaseEnterAliasCode:cu,pleaseSelectDataCode:du,pleaseSelectSvcCode:fu,pleaseSelectJoinFieldCode:hu,pleaseSelectMainFieldCode:mu},yu="Please enter a number",Eu="Please enter a string",vu="Please enter an object",Bu="Please enter an array",Cu="Please enter a boolean",Au="{caption} Required",Fu="Please enter the title",Du="Please enter the bubble prompt",bu="Please enter the prompt text",Su="Please bind data items",wu="Please bind the form",Iu="Please bind the list",Ru="Please bind the process",Mu="Please enter the displayed value",Lu="Please enter the stored value",$u="The document number is not bound to the data item",Pu="Please select at least one display field",qu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ou="Please enter a value greater than or equal to {min}",Vu="Please enter a value less than or equal to {max}",Nu="The value range is set incorrectly",ju="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",_u="The attachment size must be between 0MB and 1000MB",Uu="Please fill in the total score setting",xu="The total score cannot be less than 1",Hu="The default value must be between {min} and {max}",Tu="The number of attachments uploaded must be between {min} and {max}",Wu="Please re-select the optional quantity",Ku="The maximum length of the control must be greater than the minimum length",ku="The minimum length of the control must be less than the maximum length",zu="Please select the correct option setting",Ju="Option ID cannot be repeated",Xu="Please enter at least one option",Gu="Please bind the data source",Zu="Please bind the stored value",Qu="Please bind the service",Yu="At least one display value must be bound",pu="Please select a province",ea="Please select a city",ta="Please select a district",na="The minimum number of lines to fill in cannot be less than 0",ua="The number of rows cannot be less than {min} rows",aa="Please enter the column width",ia="Please set the logical relationship of all rule conditions",ra="Please complete all rules and conditions",sa="please select control",la="Please select the dashboard",oa="View name cannot be empty",ca="Please select recognition type",da="Please select at least one field to fill in",fa="Please select at least one",ha="Please enter the button title",ma="Please bind the business model in the data settings",ga="Please bind storage values in data settings",ya="Please bind the service in the data settings",Ea="Please bind at least one display value in the data settings",va="Please select the root node in the data settings",Ba="Please enter the maximum height",Ca="The input content cannot be empty",Aa="Watermark cannot be empty",Fa="File name cannot be empty",Da="Please upload at least one printing template!\uFF01",ba="Please select a specific business department",Sa="Please select a specified external organization",wa="Please enter a sub table alias",Ia="Please select the associated table to set the business model",Ra="Please select the association table to set the binding service",Ma="Select associated sub table fields",La="Please select the associated main table field",$a={isNotNumber:yu,isNotString:Eu,isNotObject:vu,isNotArray:Bu,isNotBoolean:Cu,runtimeRequired:Au,pleaseEnterCaption:Fu,pleaseEnterCaptionTip:Du,pleaseEnterPlaceholder:bu,pleaseEnterFieldCode:Su,pleaseEnterForm:wu,pleaseEnterList:Iu,pleaseEnterProcess:Ru,pleaseEnterLabel:Mu,pleaseEnterValue:Lu,bizKeyNotBindFiled:$u,pleaseSelectOneField:Pu,pleaseEnterNumberRange:qu,pleaseEnterAValueGreaterThanMin:Ou,pleaseEnterAValueLessThanMax:Vu,numberRangeSetError:Nu,stringRangeError:ju,attachmentMaxSize:_u,pleaseEnterTotalScoreSetting:Uu,theTotalScoreMustNotBeLessThan1:xu,scoreDefaultValueRange:Hu,attachmentLimitError:Tu,PleaseReselectTheOptionalQuantity:Wu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ku,TheMinimumLengthIsGreaterThanTheMaximumLength:ku,PleaseSelectTheCorrectOptionSettings:zu,optionIdIsRepeat:Ju,optionIsRequired:Xu,pleaseEnterDataCode:Gu,pleaseEnterValueFieldCode:Zu,pleaseEnterSvcCode:Qu,pleaseBindAtLeastOneDisplayValue:Yu,pleaseSelectProvince:pu,pleaseSelectCity:ea,pleaseSelectDistrict:ta,limitRowsCannotBeLessThan0:na,TheNumberOfRowsCannotBeLessThanMinRows:ua,pleaseEnterColumnWidth:aa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ia,pleaseCompleteAllRulesAndConditions:ra,pleaseSelectControl:sa,pleaseSelectDashboard:la,theViewNameCannotBeEmpty:oa,pleaseSelectOcrType:ca,pleaseSelectAtLeastOneFieldToFillIn:da,pleaseChooseAtLeastOne:fa,pleaseEnterButtonContent:ha,pleaseEnterDataCodeInDataSetting:ma,pleaseEnterValueFieldCodeInDataSetting:ga,pleaseEnterSvcCodeInDataSetting:ya,pleaseBindAtLeastOneDisplayValueInDataSetting:Ea,rootNodeIsRequiredInDataSetting:va,pleaseEnterMaxHeight:Ba,pleaseEnter:Ca,pleaseEnterWatermark:Aa,pleaseEnterFileName:Fa,pleaseUploadAtLeastOnePrintTemplate:Da,pleaseAssignBusiness:ba,pleaseAssignExternal:Sa,pleaseEnterAliasCode:wa,pleaseSelectDataCode:Ia,pleaseSelectSvcCode:Ra,pleaseSelectJoinFieldCode:Ma,pleaseSelectMainFieldCode:La},Pa="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Oa="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Va="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Na="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ja="{caption}\u5FC5\u9808",_a="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ua="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xa="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ha="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ta="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Wa="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ka="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ka="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",za="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ja="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Xa="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ga="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Za="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qa="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ya="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",pa="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ei="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ti="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ni="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ui="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ai="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ii="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ri="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",si="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",li="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oi="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ci="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",di="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",fi="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",hi="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",mi="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",gi="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",yi="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ei="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",vi="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Bi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ci="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ai="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Fi="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Di="please select control",bi="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Si="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",wi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ii="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ri="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Mi="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Li="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",$i="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Pi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",qi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Vi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ni="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",ji="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",_i="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ui="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",xi="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ti="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Ki="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",zi="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ji={isNotNumber:Pa,isNotString:qa,isNotObject:Oa,isNotArray:Va,isNotBoolean:Na,runtimeRequired:ja,pleaseEnterCaption:_a,pleaseEnterCaptionTip:Ua,pleaseEnterPlaceholder:xa,pleaseEnterFieldCode:Ha,pleaseEnterForm:Ta,pleaseEnterList:Wa,pleaseEnterProcess:Ka,pleaseEnterLabel:ka,pleaseEnterValue:za,bizKeyNotBindFiled:Ja,pleaseSelectOneField:Xa,pleaseEnterNumberRange:Ga,pleaseEnterAValueGreaterThanMin:Za,pleaseEnterAValueLessThanMax:Qa,numberRangeSetError:Ya,stringRangeError:pa,attachmentMaxSize:ei,pleaseEnterTotalScoreSetting:ti,theTotalScoreMustNotBeLessThan1:ni,scoreDefaultValueRange:ui,attachmentLimitError:ai,PleaseReselectTheOptionalQuantity:ii,TheMaximumLengthIsGreaterThanTheMinimumLength:ri,TheMinimumLengthIsGreaterThanTheMaximumLength:si,PleaseSelectTheCorrectOptionSettings:li,optionIdIsRepeat:oi,optionIsRequired:ci,pleaseEnterDataCode:di,pleaseEnterValueFieldCode:fi,pleaseEnterSvcCode:hi,pleaseBindAtLeastOneDisplayValue:mi,pleaseSelectProvince:gi,pleaseSelectCity:yi,pleaseSelectDistrict:Ei,limitRowsCannotBeLessThan0:vi,TheNumberOfRowsCannotBeLessThanMinRows:Bi,pleaseEnterColumnWidth:Ci,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ai,pleaseCompleteAllRulesAndConditions:Fi,pleaseSelectControl:Di,pleaseSelectDashboard:bi,theViewNameCannotBeEmpty:Si,pleaseSelectOcrType:wi,pleaseSelectAtLeastOneFieldToFillIn:Ii,pleaseChooseAtLeastOne:Ri,pleaseEnterButtonContent:Mi,pleaseEnterDataCodeInDataSetting:Li,pleaseEnterValueFieldCodeInDataSetting:$i,pleaseEnterSvcCodeInDataSetting:Pi,pleaseBindAtLeastOneDisplayValueInDataSetting:qi,rootNodeIsRequiredInDataSetting:Oi,pleaseEnterMaxHeight:Vi,pleaseEnter:Ni,pleaseEnterWatermark:ji,pleaseEnterFileName:_i,pleaseUploadAtLeastOnePrintTemplate:Ui,pleaseAssignBusiness:xi,pleaseAssignExternal:Hi,pleaseEnterAliasCode:Ti,pleaseSelectDataCode:Wi,pleaseSelectSvcCode:Ki,pleaseSelectJoinFieldCode:ki,pleaseSelectMainFieldCode:zi},Xi={zhCN:gu,enUS:$a,jaJP:Ji},st;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(st||(st={}));var lt;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(lt||(lt={}));var Gi="zh-CN";function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(k||(k={}));var L;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2"})(L||(L={}));var R;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field"})(R||(R={}));var $;$={},q($,R.ARRAY,L.ARRAY_COLUMN),q($,R.AUTO_NUMBER,L.AUTO_NUMBER_COLUMN),q($,R.DECIMAL,L.DECIMAL_COLUMN),q($,R.DEPARTMENTS,L.DEPARTMENT_COLUMN),q($,R.FILE,L.FILE_COLUMN),q($,R.IMAGE,L.IMAGE_COLUMN),q($,R.ADDRESS,L.LOCATION_COLUMN),q($,R.EMPLOYEES,L.EMPLOYEE_COLUMN),q($,R.TEXT,L.TEXT_COLUMN),q($,R.TIMESCOPE,L.TIMESCOPE_COLUMN),q($,R.TIMESTAMP,L.TIMESTAMP_COLUMN),q($,R.VARCHAR,L.VARCHAR_COLUMN),q($,R.RELATION,L.VARCHAR_COLUMN);var ot;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(ot||(ot={}));var ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Zi=ct+"0123456789";function W(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ct:Zi,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function be(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function Qi(t){if(Array.isArray(t))return be(t)}function Yi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function de(t,e,n){return pi()?de=Reflect.construct:de=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&p(c,r.prototype),c},de.apply(null,arguments)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(t)}function ft(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function er(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function tr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ur(t,e){return e&&(ar(e)==="object"||typeof e=="function")?e:Yi(t)}function p(t,e){return p=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},p(t,e)}function ht(t){return Qi(t)||tr(t)||ir(t)||nr()}var ar=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function ir(t,e){if(!!t){if(typeof t=="string")return be(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return be(t,e)}}function Se(t){var e=typeof Map=="function"?new Map:void 0;return Se=function(u){if(u===null||!er(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return de(u,arguments,Y(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p(a,u)},Se(t)}function rr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function mt(t){var e=rr();return function(){var u=Y(t),a;if(e){var i=Y(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return ur(this,a)}}var we=console;function Ie(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=we).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(ht(a)))}function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=we).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(ht(a)))}function sr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Re=function(t){ft(n,t);var e=mt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?sr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(Se(Error)),lr=function(t){ft(n,t);var e=mt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Re);function Me(t){throw new Re(t)}function yt(t){throw new lr(t)}function or(t){we.error(new Re(t))}var cr=Object.prototype.toString;function Et(t,e){return cr.call(t)==="[object "+e+"]"}function dr(t){return Et(t,"String")}function fr(t){return Et(t,"Promise")}var hr=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();fr(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,l){if(a!==void 0){var d=a[i];if(!(r===l.length-1&&!dr(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function mr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function gr(t,e,n){return e&&vt(t.prototype,e),n&&vt(t,n),t}var f=function(){function t(){mr(this,t)}return gr(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gi;return new hr({locale:n,messages:Xi})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();f.$i18n=f.resetI18n();function yr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,l,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){Ie("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return l===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var Er=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vr={exports:{}};(function(t){(function(e){var n=function(o,g,h){if(!c(g)||v(g)||A(g)||b(g)||d(g))return g;var D,w=0,j=0;if(E(g))for(D=[],j=g.length;w<j;w++)D.push(n(o,g[w],h));else{D={};for(var C in g)Object.prototype.hasOwnProperty.call(g,C)&&(D[o(C,h)]=n(o,g[C],h))}return D},u=function(o,g){g=g||{};var h=g.separator||"_",D=g.split||/(?=[A-Z])/;return o.split(D).join(h)},a=function(o){return F(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(g,h){return h?h.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var g=a(o);return g.substr(0,1).toUpperCase()+g.substr(1)},r=function(o,g){return u(o,g).toLowerCase()},l=Object.prototype.toString,d=function(o){return typeof o=="function"},c=function(o){return o===Object(o)},E=function(o){return l.call(o)=="[object Array]"},v=function(o){return l.call(o)=="[object Date]"},A=function(o){return l.call(o)=="[object RegExp]"},b=function(o){return l.call(o)=="[object Boolean]"},F=function(o){return o=o-0,o===o},m=function(o,g){var h=g&&"process"in g?g.process:g;return typeof h!="function"?o:function(D,w){return h(D,o,w)}},B={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,g){return n(m(a,g),o)},decamelizeKeys:function(o,g){return n(m(r,g),o,g)},pascalizeKeys:function(o,g){return n(m(i,g),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=B:e.humps=B})(Er)})(vr);var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});function Le(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Le(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Le(u)}return e}}var Br=Bt.default=Le;function K(t){if(t!==void 0)return typeof t=="object"?Br(t):t}function Cr(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ar(t){return Array.isArray(t)}function Fr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function $e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function Dr(t){if(Array.isArray(t))return $e(t)}function Ct(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(c){n(c);return}l.done?e(d):Promise.resolve(d).then(u,a)}function br(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){Ct(i,u,a,r,l,"next",d)}function l(d){Ct(i,u,a,r,l,"throw",d)}r(void 0)})}}function Sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function wr(t,e,n){return e&&At(t.prototype,e),n&&At(t,n),t}function Ir(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Rr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pe(t){return Dr(t)||Ir(t)||Mr(t)||Rr()}function Mr(t,e){if(!!t){if(typeof t=="string")return $e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(t,e)}}var Lr=function(){function t(){Sr(this,t),this._events=new Map,this.debug=!1}return wr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return br(oe.default.mark(function l(){var d,c,E,v,A,b,F,m,B,o;return oe.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(d=r._events.get(n),c=[],!d){h.next=42;break}E=d.slice(),v=!0,A=!1,b=void 0,h.prev=5,F=E[Symbol.iterator]();case 7:if(v=(m=F.next()).done){h.next=28;break}if(B=m.value,d.includes(B)){h.next=11;break}return h.abrupt("continue",25);case 11:return h.prev=11,r.debug&>.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(B.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+B.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(Pe(a))),h.next=15,B.apply(null,Pe(a));case 15:if(o=h.sent,r.debug&>.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(B.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+B.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Pe(a),[o])),c.push(o),o!==!1){h.next=20;break}return h.abrupt("break",28);case 20:h.next=25;break;case 22:h.prev=22,h.t0=h.catch(11),or(String(h.t0)+":"+String(h.t0.stack));case 25:v=!0,h.next=7;break;case 28:h.next=34;break;case 30:h.prev=30,h.t1=h.catch(5),A=!0,b=h.t1;case 34:h.prev=34,h.prev=35,!v&&F.return!=null&&F.return();case 37:if(h.prev=37,!A){h.next=40;break}throw b;case 40:return h.finish(37);case 41:return h.finish(34);case 42:return h.abrupt("return",c);case 43:case"end":return h.stop()}},l,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function qe(t,e){var n;((n=Object.getOwnPropertyDescriptors(t)[e])==null?void 0:n.enumerable)&&Object.defineProperty(t,e,{enumerable:!1})}function Oe(t,e,n){n==="Designer"&&(t.parent=e,qe(t,"parent"))}function Ft(t,e,n){t.forEach(u=>{Oe(u,e,n)})}const Dt=Symbol("targetKey");function bt(t){var e;return(e=t[Dt])!=null?e:t}function St(t,e,n){return Ft(t,e,n),new Proxy(t,{get(u,a,...i){return a===Dt?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if(Ar(t)&&a==="length"&&i===t.length)return!0;const l=Reflect.set(u,a,i,...r);return Cr(i)&&Oe(i,e,n),l}})}function ee(t,e,n,u,a){const i=u!=null?u:t;let r=St(bt(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(l){r=St(bt(l),i,a)},enumerable:!0})}const wt=[],Ve=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}static staticGetRules(t,e){const n=Ve.staticControlsRuntimeRules.get(t);let u=[];if(n){const a=new n(e);u=Array.from(a)}return u}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&Me(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(Ie(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||Me(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(Ie(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===k.LAYOUT}isFormControl(t){return t.controlType===k.FORM}isListControl(t){return t.controlType===k.LIST}isColumnControl(t){return t.controlType===k.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}let a;return n.mode==="Runtime"?(a=u,this._setParentPrototypeToSchema(a,this)):a=new n(u),a}else Me(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}_setParentPrototypeToSchema(t,e){e._type==="Runtime"&&(Object.defineProperty(t,"parent",{get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],r=a[n];if(!i&&!r)return;const l=r.findIndex(E=>E==t),d=a[i]||[];let c;return d.length-1>l?c=d[0]:c=d[l],c}}),qe(t,"parent"))}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),Ve.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let te=Ve;te.staticControlsRuntimeRules=new Map,te.staticControls=wt,te.staticRegisteredTypes=new Set(wt.map(t=>t.Designer.controlType)),te.staticRegisteredConfigs=new Map;class V{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Ne{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class fe extends Ne{constructor(e){super(e);var n,u;this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class $r{constructor(e){this.pc=new fe(e==null?void 0:e.pc),this.mobile=(e==null?void 0:e.mobile)?new fe(e==null?void 0:e.mobile):new fe({width:130,minWidth:180})}}class Pr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class he{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class qr extends he{constructor(e){super(e);var n;this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class It{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Or{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new It(r)))!=null?i:[]}}class Rt{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:R.VARCHAR}}class Mt extends he{constructor(e){super(e);var n,u,a,i;this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Vr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new he(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Rt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Mt(r)))!=null?i:[]}}class Lt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class je{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class ne{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:W(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var l,d;if(r.children!==void 0){const c=new ne(r);(l=this.children)==null||l.push(c)}else{const c=new me(r);(d=this.children)==null||d.push(c)}}))}}class me{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:W(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new Lt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new je(e==null?void 0:e.rightVariableBo)}}class Nr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new ge(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class $t{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class _e{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class Ue{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Pt{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:R.ANY}}class jr{constructor(e){var n,u,a,i,r,l,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new Ue(c)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(c=>new Pt(c)))!=null?d:[]}}function xe(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(l=>l.children!==void 0?new ne(l):new me(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new ne(l):new me(l)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new Ue(l)))!=null?r:[]}class ge{constructor(e){var n,u,a,i,r,l;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(d=>{var c;(c=this.displayBoList)==null||c.push(new _e(d))})),this.showOrder=(r=e==null?void 0:e.showOrder)!=null?r:!0,this.svcCode=(l=e==null?void 0:e.svcCode)!=null?l:"",xe.call(this,e)}}class _r{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class Ur{constructor(e){var n,u,a,i,r,l,d,c,E,v;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(l=e==null?void 0:e.formKey)!=null?l:void 0,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(c=e==null?void 0:e.needConfirm)!=null?c:!1,this.openType=(E=e==null?void 0:e.openType)!=null?E:"modal",this.priorityProcess=(v=e==null?void 0:e.priorityProcess)!=null?v:!0}}class He{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new _e(r)))!=null?i:[]}}class qt extends ge{constructor(e){super(e);var n,u;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new He(a)))!=null?u:[]}}class xr extends ge{constructor(e){super(e);var n,u,a;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new He(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class Hr extends qt{constructor(e){super(e);var n;this.rootNode=new je(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Ot{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new $t(r)))!=null?i:[]}}class Tr extends Ot{constructor(e){super(e);xe.call(this,e)}}class Wr extends Ot{constructor(e){super(e);var n,u;this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class Kr{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class kr{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class Te{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:W(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class Vt extends Te{constructor(e){super(e);var n,u;this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function zr(t){var e;return(e=t==null?void 0:t.map(n=>new Te(n)))!=null?e:[]}function Jr(t){var e;return(e=t==null?void 0:t.map(n=>new Vt(n)))!=null?e:[]}class ye{}class Xr extends ye{constructor(e){super();this.amount=new V(e==null?void 0:e.amount),this.currency=new V(e==null?void 0:e.currency)}}class Gr{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:We.CNY}}class Zr extends ye{constructor(e){super();this.min=new V(e==null?void 0:e.min),this.max=new V(e==null?void 0:e.max)}}class Qr{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class Yr{constructor(e){var n,u,a,i,r,l;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(l=e==null?void 0:e.provinceDisplay)!=null?l:""}}class pr extends ye{constructor(e){super();this.result=new V(e==null?void 0:e.result),this.unit=new V(e==null?void 0:e.unit)}}class es{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var We=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(We||{}),Nt=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t))(Nt||{}),Ke=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(Ke||{});class ts{constructor(e){var n,u,a,i,r,l;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(l=e==null?void 0:e.priorityProcess)!=null?l:!1}}class ns{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:W(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new It(r)))!=null?i:[],xe.call(this,e)}}class us{constructor(e){var n,u;this.key=(n=e.key)!=null?n:W(8),this.caption=(u=e.caption)!=null?u:""}}class jt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class as{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class Ee{constructor(e){this.isHide={type:"boolean"}}}class ke extends Array{constructor(e){super()}}class x{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new jt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}x.Rules=Ee,x.RuntimeRules=ke;function N(){return N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},N.apply(this,arguments)}function is(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ze(t){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ze(t)}function ve(t,e){return ve=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ve(t,e)}function rs(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Be(t,e,n){return rs()?Be=Reflect.construct:Be=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&ve(c,r.prototype),c},Be.apply(null,arguments)}function ss(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Je(t){var e=typeof Map=="function"?new Map:void 0;return Je=function(u){if(u===null||!ss(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return Be(u,arguments,ze(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ve(a,u)},Je(t)}var ls=/%[sdj%]/g,_t=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(_t=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Xe(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function O(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(ls,function(l){if(l==="%%")return"%";if(u>=i)return l;switch(l){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return l}});return r}return a}function os(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function I(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||os(e)&&typeof t=="string"&&!t)}function cs(t,e,n){var u=[],a=0,i=t.length;function r(l){u.push.apply(u,l),a++,a===i&&n(u)}t.forEach(function(l){e(l,r)})}function Ut(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var l=u;u=u+1,l<a?e(t[l],i):n([])}i([])}function ds(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var xt=function(t){is(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Je(Error));function fs(t,e,n,u){if(e.first){var a=new Promise(function(v,A){var b=function(B){return u(B),B.length?A(new xt(B,Xe(B))):v()},F=ds(t);Ut(F,n,b)});return a.catch(function(v){return v}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),l=r.length,d=0,c=[],E=new Promise(function(v,A){var b=function(m){if(c.push.apply(c,m),d++,d===l)return u(c),c.length?A(new xt(c,Xe(c))):v()};r.length||(u(c),v()),r.forEach(function(F){var m=t[F];i.indexOf(F)!==-1?Ut(m,n,b):cs(m,n,b)})});return E.catch(function(v){return v}),E}function Ht(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Tt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=N(N({},t[n]),u):t[n]=u}}return t}function Wt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||I(e,i||t.type))&&u.push(O(a.messages.required,t.fullField))}function hs(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(O(a.messages.whitespace,t.fullField))}var Ge={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ue={integer:function(e){return ue.number(e)&&parseInt(e,10)===e},float:function(e){return ue.number(e)&&!ue.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ue.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Ge.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Ge.url)},hex:function(e){return typeof e=="string"&&!!e.match(Ge.hex)}};function ms(t,e,n,u,a){if(t.required&&e===void 0){Wt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ue[r](e)||u.push(O(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(O(a.messages.types[r],t.fullField,t.type))}function gs(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,E=null,v=typeof e=="number",A=typeof e=="string",b=Array.isArray(e);if(v?E="number":A?E="string":b&&(E="array"),!E)return!1;b&&(c=e.length),A&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(O(a.messages[E].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(O(a.messages[E].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(O(a.messages[E].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(O(a.messages[E].range,t.fullField,t.min,t.max))}var z="enum";function ys(t,e,n,u,a){t[z]=Array.isArray(t[z])?t[z]:[],t[z].indexOf(e)===-1&&u.push(O(a.messages[z],t.fullField,t[z].join(", ")))}function Es(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(O(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(O(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Wt,whitespace:hs,type:ms,range:gs,enum:ys,pattern:Es};function vs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),I(e,"string")||(y.type(t,e,u,i,a),y.range(t,e,u,i,a),y.pattern(t,e,u,i,a),t.whitespace===!0&&y.whitespace(t,e,u,i,a))}n(i)}function Bs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function Cs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function As(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function Fs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),I(e)||y.type(t,e,u,i,a)}n(i)}function Ds(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function bs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Ss(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();y.required(t,e,u,i,a,"array"),e!=null&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function ws(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var Is="enum";function Rs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[Is](t,e,u,i,a)}n(i)}function Ms(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),I(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function Ls(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!I(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),y.type(t,l,u,i,a),l&&y.range(t,l.getTime(),u,i,a)}}n(i)}function $s(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;y.required(t,e,u,i,a,r),n(i)}function Ze(t,e,n,u,a){var i=t.type,r=[],l=t.required||!t.required&&u.hasOwnProperty(t.field);if(l){if(I(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),I(e,i)||y.type(t,e,u,r,a)}n(r)}function Ps(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ae={string:vs,method:Bs,number:Cs,boolean:As,regexp:Fs,integer:Ds,float:bs,array:Ss,object:ws,enum:Rs,pattern:Ms,date:Ls,url:Ze,hex:Ze,email:Ze,required:$s,any:Ps};function Qe(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ye=Qe();function T(t){this.rules=null,this._messages=Ye,this.define(t)}T.prototype={messages:function(e){return e&&(this._messages=Tt(Qe(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,l=u;if(typeof r=="function"&&(l=r,r={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function d(m){var B,o=[],g={};function h(D){if(Array.isArray(D)){var w;o=(w=o).concat.apply(w,D)}else o.push(D)}for(B=0;B<m.length;B++)h(m[B]);o.length?g=Xe(o):(o=null,g=null),l(o,g)}if(r.messages){var c=this.messages();c===Ye&&(c=Qe()),Tt(c,r.messages),r.messages=c}else r.messages=this.messages();var E,v,A={},b=r.keys||Object.keys(this.rules);b.forEach(function(m){E=a.rules[m],v=i[m],E.forEach(function(B){var o=B;typeof o.transform=="function"&&(i===e&&(i=N({},i)),v=i[m]=o.transform(v)),typeof o=="function"?o={validator:o}:o=N({},o),o.validator=a.getValidationMethod(o),o.field=m,o.fullField=o.fullField||m,o.type=a.getType(o),!!o.validator&&(A[m]=A[m]||[],A[m].push({rule:o,value:v,source:i,field:m}))})});var F={};return fs(A,r,function(m,B){var o=m.rule,g=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");g=g&&(o.required||!o.required&&m.value),o.field=m.field;function h(j,C){return N(N({},C),{},{fullField:o.fullField+"."+j})}function D(j){j===void 0&&(j=[]);var C=j;if(Array.isArray(C)||(C=[C]),!r.suppressWarning&&C.length&&T.warning("async-validator:",C),C.length&&o.message!==void 0&&(C=[].concat(o.message)),C=C.map(Ht(o)),r.first&&C.length)return F[o.field]=1,B(C);if(!g)B(C);else{if(o.required&&!m.value)return o.message!==void 0?C=[].concat(o.message).map(Ht(o)):r.error&&(C=[r.error(o,O(r.messages.required,o.field))]),B(C);var _={};if(o.defaultField)for(var Yt in m.value)m.value.hasOwnProperty(Yt)&&(_[Yt]=o.defaultField);_=N(N({},_),m.rule.fields);for(var J in _)if(_.hasOwnProperty(J)){var Js=Array.isArray(_[J])?_[J]:[_[J]];_[J]=Js.map(h.bind(null,J))}var pt=new T(_);pt.messages(r.messages),m.rule.options&&(m.rule.options.messages=r.messages,m.rule.options.error=r.error),pt.validate(m.value,m.rule.options||r,function(rt){var X=[];C&&C.length&&X.push.apply(X,C),rt&&rt.length&&X.push.apply(X,rt),B(X.length?X:null)})}}var w;o.asyncValidator?w=o.asyncValidator(o,m.value,D,m.source,r):o.validator&&(w=o.validator(o,m.value,D,m.source,r),w===!0?D():w===!1?D(o.message||o.field+" fails"):w instanceof Array?D(w):w instanceof Error&&D(w.message)),w&&w.then&&w.then(function(){return D()},function(j){return D(j)})},function(m){d(m)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ae.hasOwnProperty(e.type))throw new Error(O("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ae.required:ae[this.getType(e)]||!1}},T.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ae[e]=n},T.warning=_t,T.messages=Ye,T.validators=ae;const qs={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function Kt(t,e={}){const n=new T(t);return n.messages(Object.assign(qs,e)),n}const kt=new Lr;class P{constructor(e){var E,v,A,b;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Jt,this.removeSetting=zt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:c}=new.target;n&&u&&a||yt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(E=e==null?void 0:e.id)!=null?E:W(10),this.name=n,this.icon=u,this.type=(v=e==null?void 0:e.type)!=null?v:a,this.props=new x(e==null?void 0:e.props,new.target.controlName),this.controlType=(A=e==null?void 0:e.controlType)!=null?A:"base",this.setting=K(c),this.fieldType=(b=e==null?void 0:e.fieldType)!=null?b:i,this.eventKeys=K(r),this.customEvents=K(l),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return kt.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),yr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return le(this,null,function*(){const e=G({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return le(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:G({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Kt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:l,caption:d,required:c,maxLength:E,options:v,encrypted:A,encryptedMode:b}=this.props;if(!n&&!i&&!r)return;const F={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(F.dataBind=i),l){case"datasource":case void 0:r&&(F.datasourceBind=r);break;case"custom":F.props.options=v;break}return c!==void 0&&(F.required=c),E!==void 0&&(F.maxLength=E),A!==void 0&&(F.encrypted=A),b!==void 0&&(F.encryptedMode=b),F}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:K(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}P.mode="Designer",P.controlName="\u63A7\u4EF6",P.controlIcon="icon",P.controlType="control",P.controlEventKeys=[],P.controlCustomEvents=[],P.setting=[],P.__is_control__=!0,P.removeSettingItem=zt,P.updateSettingItem=Jt;function zt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(l=>l.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(l=>!n.hideItems.includes(l)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)==null?void 0:r.length)&&this.setting.splice(a,1))})}function Jt(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class H{constructor(e){var r,l,d,c,E;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||yt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:W(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new x(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(E=e==null?void 0:e.pageStatus)!=null?E:Ke.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}H.mode="Runtime",H.controlType="control",H.__is_control__=!0,H.controlCustomEvents=[];function pe(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:f.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:f.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(f.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=Fr(a);a.length!==i.length?u(f.getMessage("optionIdIsRepeat")):u()},message:f.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(f.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:f.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:f.getMessage("isNotBoolean")}}}}]}}])}function Os(t,e,n=!1){this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:f.getMessage("isNotString")},key:{type:"string",required:!0,message:f.getMessage("isNotString")},value:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(f.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:f.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:f.getMessage("isNotBoolean")}}}}]}}]}function Xt(t){return t.dataCode!==void 0&&t.fieldCode!==void 0}class et extends Ee{constructor(e){super(e);this.dataBind={},this.caption={type:"string",required:!0,message:f.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:f.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")}};if(Xt(e.dataBind))this.dataBind={type:"object",required:!0,fields:K(n),message:f.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:f.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:K(n),message:f.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Gt extends ke{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:f.getMessage("runtimeRequired",{caption:e.caption})})}}class ie extends x{constructor(e){super(e);var n,u,a,i,r,l,d,c,E,v;this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(l=e==null?void 0:e.labelPosition)!=null?l:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(E=e==null?void 0:e.requiredMessage)!=null?E:"",this.dataBind=new V(e==null?void 0:e.dataBind),this.defaultValue=(v=e==null?void 0:e.defaultValue)!=null?v:""}}ie.Rules=et,ie.RuntimeRules=Gt;class Vs extends et{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource"],message:f.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:f.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")}],pe.call(this,e)}}class Zt extends P{constructor(e){super(e);this.controlType="form",this.props=new ie(e==null?void 0:e.props)}}Zt.controlEventKeys=["on_change","on_focus","on_blur"];class Ns extends H{constructor(e){super(e);this.controlType="form",this.props=new ie(e==null?void 0:e.props)}}class re extends x{constructor(e){super(e)}}const js=1e4;class se extends P{constructor(e){super(e);this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new re(e==null?void 0:e.props),ee(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=K(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){var u=a=>super[a];return le(this,null,function*(){return yield u("validate").call(this,e,n),yield Promise.all(this.children.map(i=>i.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Ae(G({},e),{children:n})}}se.excludes=!1,se.childrenMaxLength=js;class tt extends H{constructor(e){super(e);this.controlType="layout",this.props=new re(e==null?void 0:e.props),ee(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class nt extends x{constructor(e,n,u){super(n);ee(this,"headers",n==null?void 0:n.headers,e,u)}}class Qt extends P{constructor(e){super(e);this.controlType="list",this.props=new nt(this,e==null?void 0:e.props,"Designer")}validate(e,n){var u=a=>super[a];return le(this,null,function*(){return yield u("validate").call(this,e),yield Promise.all(this.props.headers.map(i=>i.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Ae(G({},e),{props:Ae(G({},this.props),{headers:n,footers:u})})}}Qt.controlFieldType=R.LIST;class _s extends H{constructor(e){super(e);this.controlType="list",this.props=new nt(this,e==null?void 0:e.props,"Runtime"),ee(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class ut extends Ee{constructor(e){super(e);this.caption={type:"string",required:!0,message:f.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:f.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Ce extends x{constructor(e){super(e);var n,u,a,i,r;this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Ne(e==null?void 0:e.autoWidth),this.dataBind=new V(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Ce.Rules=ut;class Us extends ut{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:f.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:f.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")}],pe.call(this,e)}}class xs extends P{constructor(e){super(e);this.controlType="column",this.props=new Ce(e==null?void 0:e.props)}}class Hs extends H{constructor(e){super(e);this.controlType="column",this.props=new Ce(e==null?void 0:e.props)}}class at extends re{constructor(e){super(e);this.dataBind=new V(e==null?void 0:e.dataBind)}}class Ts extends se{constructor(e){super(e);this.controlType="search",this.props=new at(e==null?void 0:e.props)}}class Ws extends tt{constructor(e){super(e);this.controlType="search",this.props=new at(e==null?void 0:e.props)}}class it extends re{constructor(e){super(e)}}class Ks extends se{constructor(e){super(e);this.controlType="wrap",this.props=new it(e==null?void 0:e.props)}}class ks extends tt{constructor(e){super(e);this.controlType="wrap",this.props=new it(e==null?void 0:e.props)}}function zs(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:f.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=We,s.AddressValue=Yr,s.AmountDataBind=Xr,s.AmountValue=Gr,s.AutoWidth=Ne,s.BaseControlProperty=ie,s.BaseControlPropertyRules=et,s.BaseControlPropertyRuntimeRules=Gt,s.BaseStyle=jt,s.COMMON_SETTING_TYPE=Nt,s.CalcDataBind=pr,s.CalcValue=es,s.ColumnControlProperty=Ce,s.ColumnControlPropertyRules=ut,s.ColumnOptionAndDataSourcePropertyRules=Us,s.CustomAttributeItem=He,s.CustomPermissionItem=us,s.DataBind=V,s.DataSourceBind=ge,s.DataSourceDataSetValue=Pt,s.DataSourceOrderItem=Ue,s.DataSourceParamItem=jr,s.DataStorageDoc=Pr,s.DesignerColumnControl=xs,s.DesignerControl=P,s.DesignerFormControl=Zt,s.DesignerLayoutControl=se,s.DesignerListControl=Qt,s.DesignerSearchControl=Ts,s.DesignerWrapControl=Ks,s.DisplayBoListItem=_e,s.FieldBindItem=Rt,s.FieldFilterCondition=me,s.FieldFilterConditions=ne,s.FillBackBind=Wr,s.FillPayloadBind=Tr,s.FormBind=he,s.FormSelectBind=qr,s.ImageOptionSetting=Vt,s.JoinRelation=Nr,s.Language=Kr,s.LayoutControlProperty=re,s.LeftVariable=Lt,s.LinkOperationOption=Ur,s.ListBind=Or,s.ListControlProperty=nt,s.MetaAutoWidth=$r,s.MetaWidth=fe,s.MultistageFillingItem=$t,s.ObjectDataBind=ye,s.OperationItem=ts,s.OptObject=as,s.OptionAndDataSourcePropertyRules=Vs,s.OptionSetting=Te,s.OrganizationDataSourceBind=xr,s.PAGE_STATUS=Ke,s.Property=x,s.PropertyRules=Ee,s.PropertyRuntimeRules=ke,s.RangeDataBind=Zr,s.RangeDateValue=Qr,s.RegisterControls=te,s.RegularRules=kr,s.RightVariable=je,s.RuntimeColumnControl=Hs,s.RuntimeControl=H,s.RuntimeFormControl=Ns,s.RuntimeLayoutControl=tt,s.RuntimeListControl=_s,s.RuntimeSearchControl=Ws,s.RuntimeWrapControl=ks,s.SearchControlProperty=at,s.SelectedContentConfig=_r,s.SubListItem=Mt,s.SubListPageConfig=Vr,s.SuperDataSourceBind=qt,s.TreeDataSourceBind=Hr,s.ViewOperationItem=ns,s.WrapControlProperty=it,s.controlHooksEmitter=kt,s.createValidator=Kt,s.defineArrayParent=Ft,s.defineControlArrayToProperty=ee,s.defineParent=Oe,s.initImageOptions=Jr,s.initLinkOperationRules=zs,s.initOptionAndDataSourceRules=pe,s.initOptions=zr,s.initSuperDataSourceRules=Os,s.isDataBind=Xt,s.setPropertyDontEnum=qe,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
1
|
+
var ol=Object.defineProperty,cl=Object.defineProperties;var dl=Object.getOwnPropertyDescriptors;var Cn=Object.getOwnPropertySymbols;var fl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var Bn=(s,P,V)=>P in s?ol(s,P,{enumerable:!0,configurable:!0,writable:!0,value:V}):s[P]=V,oe=(s,P)=>{for(var V in P||(P={}))fl.call(P,V)&&Bn(s,V,P[V]);if(Cn)for(var V of Cn(P))hl.call(P,V)&&Bn(s,V,P[V]);return s},Ne=(s,P)=>cl(s,dl(P));var Fe=(s,P,V)=>new Promise((je,be)=>{var _e=X=>{try{ce(V.next(X))}catch(de){be(de)}},Ue=X=>{try{ce(V.throw(X))}catch(de){be(de)}},ce=X=>X.done?je(X.value):Promise.resolve(X.value).then(_e,Ue);ce((V=V.apply(s,P)).next())});(function(s,P){typeof exports=="object"&&typeof module!="undefined"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(s=typeof globalThis!="undefined"?globalThis:s||self,P(s.modelDrivenCore={}))})(this,function(s){"use strict";var P="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",V="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",je="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",be="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",_e="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Ue="{caption}\u5FC5\u586B",ce="\u8BF7\u8F93\u5165\u6807\u9898",X="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",de="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",An="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Fn="\u8BF7\u7ED1\u5B9A\u8868\u5355",bn="\u8BF7\u7ED1\u5B9A\u5217\u8868",Dn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Sn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",wn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",In="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Rn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Mn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Ln="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",$n="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Pn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",On="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",qn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Vn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Nn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",jn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",_n="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Un="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Tn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Hn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",xn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Wn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",kn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Kn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",zn="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Gn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Jn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Xn="\u8BF7\u9009\u62E9\u7701",Zn="\u8BF7\u9009\u62E9\u5E02",Qn="\u8BF7\u9009\u62E9\u533A",Yn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",pn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",eu="\u8BF7\u8F93\u5165\u5217\u5BBD",tu="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",nu="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",uu="\u8BF7\u9009\u62E9\u63A7\u4EF6",au="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",iu="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ru="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",su="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",lu="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ou="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",cu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",du="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",fu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",hu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",mu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",gu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",yu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",vu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Eu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Cu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Bu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Au="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Fu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",bu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Du="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Su="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",wu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Iu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Ru="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Mu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Lu={isNotNumber:P,isNotString:V,isNotObject:je,isNotArray:be,isNotBoolean:_e,runtimeRequired:Ue,pleaseEnterCaption:ce,pleaseEnterCaptionTip:X,pleaseEnterPlaceholder:de,pleaseEnterFieldCode:An,pleaseEnterForm:Fn,pleaseEnterList:bn,pleaseEnterProcess:Dn,pleaseEnterLabel:Sn,pleaseEnterValue:wn,bizKeyNotBindFiled:In,pleaseSelectOneField:Rn,pleaseEnterNumberRange:Mn,pleaseEnterAValueGreaterThanMin:Ln,pleaseEnterAValueLessThanMax:$n,numberRangeSetError:Pn,stringRangeError:On,attachmentMaxSize:qn,pleaseEnterTotalScoreSetting:Vn,theTotalScoreMustNotBeLessThan1:Nn,scoreDefaultValueRange:jn,attachmentLimitError:_n,PleaseReselectTheOptionalQuantity:Un,TheMaximumLengthIsGreaterThanTheMinimumLength:Tn,TheMinimumLengthIsGreaterThanTheMaximumLength:Hn,PleaseSelectTheCorrectOptionSettings:xn,optionIdIsRepeat:Wn,optionIsRequired:kn,pleaseEnterDataCode:Kn,pleaseEnterValueFieldCode:zn,pleaseEnterSvcCode:Gn,pleaseBindAtLeastOneDisplayValue:Jn,pleaseSelectProvince:Xn,pleaseSelectCity:Zn,pleaseSelectDistrict:Qn,limitRowsCannotBeLessThan0:Yn,TheNumberOfRowsCannotBeLessThanMinRows:pn,pleaseEnterColumnWidth:eu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:tu,pleaseCompleteAllRulesAndConditions:nu,pleaseSelectControl:uu,pleaseSelectAtLeastOneColumn:au,pleaseSelectFillBackMode:iu,pleaseSelectDashboard:ru,rootNodeIsRequired:su,theViewNameCannotBeEmpty:lu,pleaseSelectOcrType:ou,pleaseSelectAtLeastOneFieldToFillIn:cu,pleaseChooseAtLeastOne:du,pleaseEnterButtonContent:fu,pleaseEnterDataCodeInDataSetting:hu,pleaseEnterValueFieldCodeInDataSetting:mu,pleaseEnterSvcCodeInDataSetting:gu,pleaseBindAtLeastOneDisplayValueInDataSetting:yu,rootNodeIsRequiredInDataSetting:vu,pleaseEnterMaxHeight:Eu,pleaseEnter:Cu,pleaseEnterWatermark:Bu,pleaseEnterFileName:Au,pleaseUploadAtLeastOnePrintTemplate:Fu,pleaseAssignBusiness:bu,pleaseAssignExternal:Du,pleaseEnterAliasCode:Su,pleaseSelectDataCode:wu,pleaseSelectSvcCode:Iu,pleaseSelectJoinFieldCode:Ru,pleaseSelectMainFieldCode:Mu},$u="Please enter a number",Pu="Please enter a string",Ou="Please enter an object",qu="Please enter an array",Vu="Please enter a boolean",Nu="{caption} Required",ju="Please enter the title",_u="Please enter the bubble prompt",Uu="Please enter the prompt text",Tu="Please bind data items",Hu="Please bind the form",xu="Please bind the list",Wu="Please bind the process",ku="Please enter the displayed value",Ku="Please enter the stored value",zu="The document number is not bound to the data item",Gu="Please select at least one display field",Ju="Please enter a value greater than or equal to {min} and less than or equal to {max}",Xu="Please enter a value greater than or equal to {min}",Zu="Please enter a value less than or equal to {max}",Qu="The value range is set incorrectly",Yu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",pu="The attachment size must be between 0MB and 1000MB",ea="Please fill in the total score setting",ta="The total score cannot be less than 1",na="The default value must be between {min} and {max}",ua="The number of attachments uploaded must be between {min} and {max}",aa="Please re-select the optional quantity",ia="The maximum length of the control must be greater than the minimum length",ra="The minimum length of the control must be less than the maximum length",sa="Please select the correct option setting",la="Option ID cannot be repeated",oa="Please enter at least one option",ca="Please bind the data source",da="Please bind the stored value",fa="Please bind the service",ha="At least one display value must be bound",ma="Please select a province",ga="Please select a city",ya="Please select a district",va="The minimum number of lines to fill in cannot be less than 0",Ea="The number of rows cannot be less than {min} rows",Ca="Please enter the column width",Ba="Please set the logical relationship of all rule conditions",Aa="Please complete all rules and conditions",Fa="please select control",ba="Please select the dashboard",Da="View name cannot be empty",Sa="Please select recognition type",wa="Please select at least one field to fill in",Ia="Please select at least one",Ra="Please enter the button title",Ma="Please bind the business model in the data settings",La="Please bind storage values in data settings",$a="Please bind the service in the data settings",Pa="Please bind at least one display value in the data settings",Oa="Please select the root node in the data settings",qa="Please enter the maximum height",Va="The input content cannot be empty",Na="Watermark cannot be empty",ja="File name cannot be empty",_a="Please upload at least one printing template!\uFF01",Ua="Please select a specific business department",Ta="Please select a specified external organization",Ha="Please enter a sub table alias",xa="Please select the associated table to set the business model",Wa="Please select the association table to set the binding service",ka="Select associated sub table fields",Ka="Please select the associated main table field",za={isNotNumber:$u,isNotString:Pu,isNotObject:Ou,isNotArray:qu,isNotBoolean:Vu,runtimeRequired:Nu,pleaseEnterCaption:ju,pleaseEnterCaptionTip:_u,pleaseEnterPlaceholder:Uu,pleaseEnterFieldCode:Tu,pleaseEnterForm:Hu,pleaseEnterList:xu,pleaseEnterProcess:Wu,pleaseEnterLabel:ku,pleaseEnterValue:Ku,bizKeyNotBindFiled:zu,pleaseSelectOneField:Gu,pleaseEnterNumberRange:Ju,pleaseEnterAValueGreaterThanMin:Xu,pleaseEnterAValueLessThanMax:Zu,numberRangeSetError:Qu,stringRangeError:Yu,attachmentMaxSize:pu,pleaseEnterTotalScoreSetting:ea,theTotalScoreMustNotBeLessThan1:ta,scoreDefaultValueRange:na,attachmentLimitError:ua,PleaseReselectTheOptionalQuantity:aa,TheMaximumLengthIsGreaterThanTheMinimumLength:ia,TheMinimumLengthIsGreaterThanTheMaximumLength:ra,PleaseSelectTheCorrectOptionSettings:sa,optionIdIsRepeat:la,optionIsRequired:oa,pleaseEnterDataCode:ca,pleaseEnterValueFieldCode:da,pleaseEnterSvcCode:fa,pleaseBindAtLeastOneDisplayValue:ha,pleaseSelectProvince:ma,pleaseSelectCity:ga,pleaseSelectDistrict:ya,limitRowsCannotBeLessThan0:va,TheNumberOfRowsCannotBeLessThanMinRows:Ea,pleaseEnterColumnWidth:Ca,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ba,pleaseCompleteAllRulesAndConditions:Aa,pleaseSelectControl:Fa,pleaseSelectDashboard:ba,theViewNameCannotBeEmpty:Da,pleaseSelectOcrType:Sa,pleaseSelectAtLeastOneFieldToFillIn:wa,pleaseChooseAtLeastOne:Ia,pleaseEnterButtonContent:Ra,pleaseEnterDataCodeInDataSetting:Ma,pleaseEnterValueFieldCodeInDataSetting:La,pleaseEnterSvcCodeInDataSetting:$a,pleaseBindAtLeastOneDisplayValueInDataSetting:Pa,rootNodeIsRequiredInDataSetting:Oa,pleaseEnterMaxHeight:qa,pleaseEnter:Va,pleaseEnterWatermark:Na,pleaseEnterFileName:ja,pleaseUploadAtLeastOnePrintTemplate:_a,pleaseAssignBusiness:Ua,pleaseAssignExternal:Ta,pleaseEnterAliasCode:Ha,pleaseSelectDataCode:xa,pleaseSelectSvcCode:Wa,pleaseSelectJoinFieldCode:ka,pleaseSelectMainFieldCode:Ka},Ga="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ja="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Za="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qa="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ya="{caption}\u5FC5\u9808",pa="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ei="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ti="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ni="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ui="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ai="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ii="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ri="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",si="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",li="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",oi="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ci="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",di="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",fi="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",hi="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",mi="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",gi="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",yi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",vi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ei="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ci="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Bi="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ai="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Fi="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",bi="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Di="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Si="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",wi="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ii="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ri="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mi="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Li="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",$i="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Pi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Oi="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",qi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Vi="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ni="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ji="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",_i="please select control",Ui="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ti="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Hi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xi="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",zi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Gi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ji="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Xi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Zi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Yi="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",pi="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",er="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",tr="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",nr="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ur="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ar="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",ir="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",rr="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",sr="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",lr={isNotNumber:Ga,isNotString:Ja,isNotObject:Xa,isNotArray:Za,isNotBoolean:Qa,runtimeRequired:Ya,pleaseEnterCaption:pa,pleaseEnterCaptionTip:ei,pleaseEnterPlaceholder:ti,pleaseEnterFieldCode:ni,pleaseEnterForm:ui,pleaseEnterList:ai,pleaseEnterProcess:ii,pleaseEnterLabel:ri,pleaseEnterValue:si,bizKeyNotBindFiled:li,pleaseSelectOneField:oi,pleaseEnterNumberRange:ci,pleaseEnterAValueGreaterThanMin:di,pleaseEnterAValueLessThanMax:fi,numberRangeSetError:hi,stringRangeError:mi,attachmentMaxSize:gi,pleaseEnterTotalScoreSetting:yi,theTotalScoreMustNotBeLessThan1:vi,scoreDefaultValueRange:Ei,attachmentLimitError:Ci,PleaseReselectTheOptionalQuantity:Bi,TheMaximumLengthIsGreaterThanTheMinimumLength:Ai,TheMinimumLengthIsGreaterThanTheMaximumLength:Fi,PleaseSelectTheCorrectOptionSettings:bi,optionIdIsRepeat:Di,optionIsRequired:Si,pleaseEnterDataCode:wi,pleaseEnterValueFieldCode:Ii,pleaseEnterSvcCode:Ri,pleaseBindAtLeastOneDisplayValue:Mi,pleaseSelectProvince:Li,pleaseSelectCity:$i,pleaseSelectDistrict:Pi,limitRowsCannotBeLessThan0:Oi,TheNumberOfRowsCannotBeLessThanMinRows:qi,pleaseEnterColumnWidth:Vi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ni,pleaseCompleteAllRulesAndConditions:ji,pleaseSelectControl:_i,pleaseSelectDashboard:Ui,theViewNameCannotBeEmpty:Ti,pleaseSelectOcrType:Hi,pleaseSelectAtLeastOneFieldToFillIn:xi,pleaseChooseAtLeastOne:Wi,pleaseEnterButtonContent:ki,pleaseEnterDataCodeInDataSetting:Ki,pleaseEnterValueFieldCodeInDataSetting:zi,pleaseEnterSvcCodeInDataSetting:Gi,pleaseBindAtLeastOneDisplayValueInDataSetting:Ji,rootNodeIsRequiredInDataSetting:Xi,pleaseEnterMaxHeight:Zi,pleaseEnter:Qi,pleaseEnterWatermark:Yi,pleaseEnterFileName:pi,pleaseUploadAtLeastOnePrintTemplate:er,pleaseAssignBusiness:tr,pleaseAssignExternal:nr,pleaseEnterAliasCode:ur,pleaseSelectDataCode:ar,pleaseSelectSvcCode:ir,pleaseSelectJoinFieldCode:rr,pleaseSelectMainFieldCode:sr},or={zhCN:Lu,enUS:za,jaJP:lr},Dt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(Dt||(Dt={}));var St;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(St||(St={}));var cr="zh-CN";function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ie;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(ie||(ie={}));var N;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2"})(N||(N={}));var q;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field"})(q||(q={}));var j;j={},k(j,q.ARRAY,N.ARRAY_COLUMN),k(j,q.AUTO_NUMBER,N.AUTO_NUMBER_COLUMN),k(j,q.DECIMAL,N.DECIMAL_COLUMN),k(j,q.DEPARTMENTS,N.DEPARTMENT_COLUMN),k(j,q.FILE,N.FILE_COLUMN),k(j,q.IMAGE,N.IMAGE_COLUMN),k(j,q.ADDRESS,N.LOCATION_COLUMN),k(j,q.EMPLOYEES,N.EMPLOYEE_COLUMN),k(j,q.TEXT,N.TEXT_COLUMN),k(j,q.TIMESCOPE,N.TIMESCOPE_COLUMN),k(j,q.TIMESTAMP,N.TIMESTAMP_COLUMN),k(j,q.VARCHAR,N.VARCHAR_COLUMN),k(j,q.RELATION,N.VARCHAR_COLUMN);var wt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(wt||(wt={}));var It="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",dr=It+"0123456789";function ne(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?It:dr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function Te(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function fr(t){if(Array.isArray(t))return Te(t)}function hr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mr(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function De(t,e,n){return mr()?De=Reflect.construct:De=function(a,i,r){var o=[null];o.push.apply(o,i);var m=Function.bind.apply(a,o),h=new m;return r&&he(h,r.prototype),h},De.apply(null,arguments)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fe(t)}function Mt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&he(t,e)}function gr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function yr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Er(t,e){return e&&(Cr(e)==="object"||typeof e=="function")?e:hr(t)}function he(t,e){return he=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},he(t,e)}function Lt(t){return fr(t)||yr(t)||Br(t)||vr()}var Cr=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Br(t,e){if(!!t){if(typeof t=="string")return Te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(t,e)}}function He(t){var e=typeof Map=="function"?new Map:void 0;return He=function(u){if(u===null||!gr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return De(u,arguments,fe(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),he(a,u)},He(t)}function Ar(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function $t(t){var e=Ar();return function(){var u=fe(t),a;if(e){var i=fe(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Er(this,a)}}var xe=console;function We(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=xe).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(Lt(a)))}function Pt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=xe).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(Lt(a)))}function Fr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var ke=function(t){Mt(n,t);var e=$t(n);function n(u){Rt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Fr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(He(Error)),br=function(t){Mt(n,t);var e=$t(n);function n(u){Rt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(ke);function Ke(t){throw new ke(t)}function Ot(t){throw new br(t)}function Dr(t){xe.error(new ke(t))}var Sr=Object.prototype.toString;function qt(t,e){return Sr.call(t)==="[object "+e+"]"}function wr(t){return qt(t,"String")}function Ir(t){return qt(t,"Promise")}var Rr=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Ir(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,o){if(a!==void 0){var m=a[i];if(!(r===o.length-1&&!wr(m)))return m}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Mr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Lr(t,e,n){return e&&Vt(t.prototype,e),n&&Vt(t,n),t}var E=function(){function t(){Mr(this,t)}return Lr(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cr;return new Rr({locale:n,messages:or})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();E.$i18n=E.resetI18n();function $r(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,o,m){var h=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){We("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return o===m.length-1&&!Object.is(h[r],n)&&(h[r]=n,a=!0),h[r]}},t),a}var Pr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Or={exports:{}};(function(t){(function(e){var n=function(l,g,y){if(!h(g)||B(g)||M(g)||$(g)||m(g))return g;var R,S=0,T=0;if(F(g))for(R=[],T=g.length;S<T;S++)R.push(n(l,g[S],y));else{R={};for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(R[l(w,y)]=n(l,g[w],y))}return R},u=function(l,g){g=g||{};var y=g.separator||"_",R=g.split||/(?=[A-Z])/;return l.split(R).join(y)},a=function(l){return L(l)?l:(l=l.replace(/[\-_\s]+(.)?/g,function(g,y){return y?y.toUpperCase():""}),l.substr(0,1).toLowerCase()+l.substr(1))},i=function(l){var g=a(l);return g.substr(0,1).toUpperCase()+g.substr(1)},r=function(l,g){return u(l,g).toLowerCase()},o=Object.prototype.toString,m=function(l){return typeof l=="function"},h=function(l){return l===Object(l)},F=function(l){return o.call(l)=="[object Array]"},B=function(l){return o.call(l)=="[object Date]"},M=function(l){return o.call(l)=="[object RegExp]"},$=function(l){return o.call(l)=="[object Boolean]"},L=function(l){return l=l-0,l===l},C=function(l,g){var y=g&&"process"in g?g.process:g;return typeof y!="function"?l:function(R,S){return y(R,l,S)}},D={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(l,g){return n(C(a,g),l)},decamelizeKeys:function(l,g){return n(C(r,g),l,g)},pascalizeKeys:function(l,g){return n(C(i,g),l)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=D:e.humps=D})(Pr)})(Or);var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});function ze(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:ze(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:ze(u)}return e}}var qr=Nt.default=ze;function ue(t){if(t!==void 0)return typeof t=="object"?qr(t):t}function Vr(t){return Object.prototype.toString.call(t)==="[object Object]"}function Nr(t){return Array.isArray(t)}function jr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}var jt={exports:{}};(function(t){var e=function(n){var u=Object.prototype,a=u.hasOwnProperty,i=Object.defineProperty||function(d,c,f){d[c]=f.value},r,o=typeof Symbol=="function"?Symbol:{},m=o.iterator||"@@iterator",h=o.asyncIterator||"@@asyncIterator",F=o.toStringTag||"@@toStringTag";function B(d,c,f){return Object.defineProperty(d,c,{value:f,enumerable:!0,configurable:!0,writable:!0}),d[c]}try{B({},"")}catch(d){B=function(c,f,A){return c[f]=A}}function M(d,c,f,A){var v=c&&c.prototype instanceof y?c:y,I=Object.create(v.prototype),H=new At(A||[]);return i(I,"_invoke",{value:Ve(d,f,H)}),I}n.wrap=M;function $(d,c,f){try{return{type:"normal",arg:d.call(c,f)}}catch(A){return{type:"throw",arg:A}}}var L="suspendedStart",C="suspendedYield",D="executing",l="completed",g={};function y(){}function R(){}function S(){}var T={};B(T,m,function(){return this});var w=Object.getPrototypeOf,_=w&&w(w(Ft([])));_&&_!==u&&a.call(_,m)&&(T=_);var Q=S.prototype=y.prototype=Object.create(T);R.prototype=S,i(Q,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:R,configurable:!0}),R.displayName=B(S,F,"GeneratorFunction");function Y(d){["next","throw","return"].forEach(function(c){B(d,c,function(f){return this._invoke(c,f)})})}n.isGeneratorFunction=function(d){var c=typeof d=="function"&&d.constructor;return c?c===R||(c.displayName||c.name)==="GeneratorFunction":!1},n.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,S):(d.__proto__=S,B(d,F,"GeneratorFunction")),d.prototype=Object.create(Q),d},n.awrap=function(d){return{__await:d}};function se(d,c){function f(I,H,x,z){var W=$(d[I],d,H);if(W.type==="throw")z(W.arg);else{var bt=W.arg,Ae=bt.value;return Ae&&typeof Ae=="object"&&a.call(Ae,"__await")?c.resolve(Ae.__await).then(function(ae){f("next",ae,x,z)},function(ae){f("throw",ae,x,z)}):c.resolve(Ae).then(function(ae){bt.value=ae,x(bt)},function(ae){return f("throw",ae,x,z)})}}var A;function v(I,H){function x(){return new c(function(z,W){f(I,H,z,W)})}return A=A?A.then(x,x):x()}i(this,"_invoke",{value:v})}Y(se.prototype),B(se.prototype,h,function(){return this}),n.AsyncIterator=se,n.async=function(d,c,f,A,v){v===void 0&&(v=Promise);var I=new se(M(d,c,f,A),v);return n.isGeneratorFunction(c)?I:I.next().then(function(H){return H.done?H.value:I.next()})};function Ve(d,c,f){var A=L;return function(I,H){if(A===D)throw new Error("Generator is already running");if(A===l){if(I==="throw")throw H;return ll()}for(f.method=I,f.arg=H;;){var x=f.delegate;if(x){var z=le(x,f);if(z){if(z===g)continue;return z}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(A===L)throw A=l,f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);A=D;var W=$(d,c,f);if(W.type==="normal"){if(A=f.done?l:C,W.arg===g)continue;return{value:W.arg,done:f.done}}else W.type==="throw"&&(A=l,f.method="throw",f.arg=W.arg)}}}function le(d,c){var f=c.method,A=d.iterator[f];if(A===r)return c.delegate=null,f==="throw"&&d.iterator.return&&(c.method="return",c.arg=r,le(d,c),c.method==="throw")||f!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+f+"' method")),g;var v=$(A,d.iterator,c.arg);if(v.type==="throw")return c.method="throw",c.arg=v.arg,c.delegate=null,g;var I=v.arg;if(!I)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,g;if(I.done)c[d.resultName]=I.value,c.next=d.nextLoc,c.method!=="return"&&(c.method="next",c.arg=r);else return I;return c.delegate=null,g}Y(Q),B(Q,F,"Generator"),B(Q,m,function(){return this}),B(Q,"toString",function(){return"[object Generator]"});function te(d){var c={tryLoc:d[0]};1 in d&&(c.catchLoc=d[1]),2 in d&&(c.finallyLoc=d[2],c.afterLoc=d[3]),this.tryEntries.push(c)}function Bt(d){var c=d.completion||{};c.type="normal",delete c.arg,d.completion=c}function At(d){this.tryEntries=[{tryLoc:"root"}],d.forEach(te,this),this.reset(!0)}n.keys=function(d){var c=Object(d),f=[];for(var A in c)f.push(A);return f.reverse(),function v(){for(;f.length;){var I=f.pop();if(I in c)return v.value=I,v.done=!1,v}return v.done=!0,v}};function Ft(d){if(d||d===""){var c=d[m];if(c)return c.call(d);if(typeof d.next=="function")return d;if(!isNaN(d.length)){var f=-1,A=function v(){for(;++f<d.length;)if(a.call(d,f))return v.value=d[f],v.done=!1,v;return v.value=r,v.done=!0,v};return A.next=A}}throw new TypeError(typeof d+" is not iterable")}n.values=Ft;function ll(){return{value:r,done:!0}}return At.prototype={constructor:At,reset:function(d){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Bt),!d)for(var c in this)c.charAt(0)==="t"&&a.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=r)},stop:function(){this.done=!0;var d=this.tryEntries[0],c=d.completion;if(c.type==="throw")throw c.arg;return this.rval},dispatchException:function(d){if(this.done)throw d;var c=this;function f(z,W){return I.type="throw",I.arg=d,c.next=z,W&&(c.method="next",c.arg=r),!!W}for(var A=this.tryEntries.length-1;A>=0;--A){var v=this.tryEntries[A],I=v.completion;if(v.tryLoc==="root")return f("end");if(v.tryLoc<=this.prev){var H=a.call(v,"catchLoc"),x=a.call(v,"finallyLoc");if(H&&x){if(this.prev<v.catchLoc)return f(v.catchLoc,!0);if(this.prev<v.finallyLoc)return f(v.finallyLoc)}else if(H){if(this.prev<v.catchLoc)return f(v.catchLoc,!0)}else if(x){if(this.prev<v.finallyLoc)return f(v.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(d,c){for(var f=this.tryEntries.length-1;f>=0;--f){var A=this.tryEntries[f];if(A.tryLoc<=this.prev&&a.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var v=A;break}}v&&(d==="break"||d==="continue")&&v.tryLoc<=c&&c<=v.finallyLoc&&(v=null);var I=v?v.completion:{};return I.type=d,I.arg=c,v?(this.method="next",this.next=v.finallyLoc,g):this.complete(I)},complete:function(d,c){if(d.type==="throw")throw d.arg;return d.type==="break"||d.type==="continue"?this.next=d.arg:d.type==="return"?(this.rval=this.arg=d.arg,this.method="return",this.next="end"):d.type==="normal"&&c&&(this.next=c),g},finish:function(d){for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c];if(f.finallyLoc===d)return this.complete(f.completion,f.afterLoc),Bt(f),g}},catch:function(d){for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c];if(f.tryLoc===d){var A=f.completion;if(A.type==="throw"){var v=A.arg;Bt(f)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(d,c,f){return this.delegate={iterator:Ft(d),resultName:c,nextLoc:f},this.method==="next"&&(this.arg=r),g}},n}(t.exports);try{regeneratorRuntime=e}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})(jt);var _t=jt.exports;function Ge(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function _r(t){if(Array.isArray(t))return Ge(t)}function Ut(t,e,n,u,a,i,r){try{var o=t[i](r),m=o.value}catch(h){n(h);return}o.done?e(m):Promise.resolve(m).then(u,a)}function Ur(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(m){Ut(i,u,a,r,o,"next",m)}function o(m){Ut(i,u,a,r,o,"throw",m)}r(void 0)})}}function Tr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Hr(t,e,n){return e&&Tt(t.prototype,e),n&&Tt(t,n),t}function xr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Je(t){return _r(t)||xr(t)||kr(t)||Wr()}function kr(t,e){if(!!t){if(typeof t=="string")return Ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ge(t,e)}}var Kr=function(){function t(){Tr(this,t),this._events=new Map,this.debug=!1}return Hr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return Ur(_t.mark(function o(){var m,h,F,B,M,$,L,C,D,l;return _t.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(m=r._events.get(n),h=[],!m){y.next=42;break}F=m.slice(),B=!0,M=!1,$=void 0,y.prev=5,L=F[Symbol.iterator]();case 7:if(B=(C=L.next()).done){y.next=28;break}if(D=C.value,m.includes(D)){y.next=11;break}return y.abrupt("continue",25);case 11:return y.prev=11,r.debug&&Pt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(D.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+D.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(Je(a))),y.next=15,D.apply(null,Je(a));case 15:if(l=y.sent,r.debug&&Pt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(D.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+D.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Je(a),[l])),h.push(l),l!==!1){y.next=20;break}return y.abrupt("break",28);case 20:y.next=25;break;case 22:y.prev=22,y.t0=y.catch(11),Dr(String(y.t0)+":"+String(y.t0.stack));case 25:B=!0,y.next=7;break;case 28:y.next=34;break;case 30:y.prev=30,y.t1=y.catch(5),M=!0,$=y.t1;case 34:y.prev=34,y.prev=35,!B&&L.return!=null&&L.return();case 37:if(y.prev=37,!M){y.next=40;break}throw $;case 40:return y.finish(37);case 41:return y.finish(34);case 42:return y.abrupt("return",h);case 43:case"end":return y.stop()}},o,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();const Ht=[];class Se{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}registerControlConfig(e,n){return this.controlConfigMap.set(e,n),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e){const{Designer:n,Runtime:u}=e;(!n||!u||!n.__is_control__||!u.__is_control__)&&Ke(`${e} is can't register as a Control`);const a=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return a>-1&&(We(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),this}getControls(){return this._controls}register(e){e.__is_control__||Ke(`${e.name} is not a Control`);const n=this._controls.findIndex(u=>u.controlType===e.controlType);return n>-1&&(We(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(n,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===ie.LAYOUT}isFormControl(e){return e.controlType===ie.FORM}isListControl(e){return e.controlType===ie.LIST}isColumnControl(e){return e.controlType===ie.COLUMN}createControl(e,n){if(Array.isArray(e))return e.map(a=>this.createControl(a,n));if(e.children&&(e.children=e.children.map(a=>this.createControl(a,n))),this.isListControl(e)){const a=e.props;a.headers&&(a.headers=a.headers.map(i=>this.createControl(i,n))),a.footers&&(a.footers=a.footers.map(i=>{let r;return i&&(r=this.createControl(i,n)),r}))}const u=this.getControlFormType(e.type);if(u){let a=e;if(typeof n=="function"){const r=n(a);r&&(a=r)}return new u(a)}else Ke(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}createControlInstance(e,n){const u=this.getControlFormType(e);if(u)return new u(n)}getControlFormType(e){return this._controls.find(n=>n.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(n=>{this.register(n[e])})}}Se.staticControls=Ht,Se.staticRegisteredTypes=new Set(Ht.map(t=>t.Designer.controlType)),Se.staticRegisteredConfigs=new Map;class G{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Xe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class we extends Xe{constructor(e){super(e);var n,u;this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class zr{constructor(e){this.pc=new we(e==null?void 0:e.pc),this.mobile=(e==null?void 0:e.mobile)?new we(e==null?void 0:e.mobile):new we({width:130,minWidth:180})}}class Gr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class Ie{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class Jr extends Ie{constructor(e){super(e);var n;this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class xt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Xr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new xt(r)))!=null?i:[]}}class Wt{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:q.VARCHAR}}class kt extends Ie{constructor(e){super(e);var n,u,a,i;this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Zr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new Ie(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Wt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new kt(r)))!=null?i:[]}}class Kt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class Ze{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class me{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:ne(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var o,m;if(r.children!==void 0){const h=new me(r);(o=this.children)==null||o.push(h)}else{const h=new Re(r);(m=this.children)==null||m.push(h)}}))}}class Re{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:ne(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new Kt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Ze(e==null?void 0:e.rightVariableBo)}}class Qr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new Me(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class zt{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class Qe{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class Ye{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Gt{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:q.ANY}}class Yr{constructor(e){var n,u,a,i,r,o,m;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(h=>new Ye(h)))!=null?r:[],this.dataSet=(m=(o=e.dataSet)==null?void 0:o.map(h=>new Gt(h)))!=null?m:[]}}function pe(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(o=>o.children!==void 0?new me(o):new Re(o)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(o=>o.children!==void 0?new me(o):new Re(o)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(o=>new Ye(o)))!=null?r:[]}class Me{constructor(e){var n,u,a,i,r,o;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(m=>{var h;(h=this.displayBoList)==null||h.push(new Qe(m))})),this.showOrder=(r=e==null?void 0:e.showOrder)!=null?r:!0,this.svcCode=(o=e==null?void 0:e.svcCode)!=null?o:"",pe.call(this,e)}}class pr{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class es{constructor(e){var n,u,a,i,r,o,m,h,F,B;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(o=e==null?void 0:e.formKey)!=null?o:void 0,this.icon=(m=e==null?void 0:e.icon)!=null?m:"iconliulan1",this.needConfirm=(h=e==null?void 0:e.needConfirm)!=null?h:!1,this.openType=(F=e==null?void 0:e.openType)!=null?F:"modal",this.priorityProcess=(B=e==null?void 0:e.priorityProcess)!=null?B:!0}}class et{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new Qe(r)))!=null?i:[]}}class Jt extends Me{constructor(e){super(e);var n,u;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new et(a)))!=null?u:[]}}class ts extends Me{constructor(e){super(e);var n,u,a;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new et(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class ns extends Jt{constructor(e){super(e);var n;this.rootNode=new Ze(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Xt{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new zt(r)))!=null?i:[]}}class us extends Xt{constructor(e){super(e);pe.call(this,e)}}class as extends Xt{constructor(e){super(e);var n,u;this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class is{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class rs{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class tt{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:ne(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class Zt extends tt{constructor(e){super(e);var n,u;this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function ss(t){var e;return(e=t==null?void 0:t.map(n=>new tt(n)))!=null?e:[]}function ls(t){var e;return(e=t==null?void 0:t.map(n=>new Zt(n)))!=null?e:[]}class Le{}class os extends Le{constructor(e){super();this.amount=new G(e==null?void 0:e.amount),this.currency=new G(e==null?void 0:e.currency)}}class cs{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:nt.CNY}}class ds extends Le{constructor(e){super();this.min=new G(e==null?void 0:e.min),this.max=new G(e==null?void 0:e.max)}}class fs{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class hs{constructor(e){var n,u,a,i,r,o;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(o=e==null?void 0:e.provinceDisplay)!=null?o:""}}class ms extends Le{constructor(e){super();this.result=new G(e==null?void 0:e.result),this.unit=new G(e==null?void 0:e.unit)}}class gs{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var nt=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(nt||{}),Qt=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t))(Qt||{}),ut=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(ut||{});class ys{constructor(e){var n,u,a,i,r,o;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(o=e==null?void 0:e.priorityProcess)!=null?o:!1}}class vs{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:ne(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new xt(r)))!=null?i:[],pe.call(this,e)}}class Es{constructor(e){var n,u;this.key=(n=e.key)!=null?n:ne(8),this.caption=(u=e.caption)!=null?u:""}}class Yt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class Cs{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class $e{constructor(e){this.isHide={type:"boolean"}}}class at extends Array{constructor(e){super()}}class Z{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Yt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}Z.Rules=$e,Z.RuntimeRules=at;function J(){return J=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},J.apply(this,arguments)}function Bs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},it(t)}function Pe(t,e){return Pe=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Pe(t,e)}function As(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function Oe(t,e,n){return As()?Oe=Reflect.construct:Oe=function(a,i,r){var o=[null];o.push.apply(o,i);var m=Function.bind.apply(a,o),h=new m;return r&&Pe(h,r.prototype),h},Oe.apply(null,arguments)}function Fs(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function rt(t){var e=typeof Map=="function"?new Map:void 0;return rt=function(u){if(u===null||!Fs(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return Oe(u,arguments,it(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Pe(a,u)},rt(t)}var bs=/%[sdj%]/g,pt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(pt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function st(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(bs,function(o){if(o==="%%")return"%";if(u>=i)return o;switch(o){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(m){return"[Circular]"}break;default:return o}});return r}return a}function Ds(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function O(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Ds(e)&&typeof t=="string"&&!t)}function Ss(t,e,n){var u=[],a=0,i=t.length;function r(o){u.push.apply(u,o),a++,a===i&&n(u)}t.forEach(function(o){e(o,r)})}function en(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var o=u;u=u+1,o<a?e(t[o],i):n([])}i([])}function ws(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var tn=function(t){Bs(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(rt(Error));function Is(t,e,n,u){if(e.first){var a=new Promise(function(B,M){var $=function(D){return u(D),D.length?M(new tn(D,st(D))):B()},L=ws(t);en(L,n,$)});return a.catch(function(B){return B}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),o=r.length,m=0,h=[],F=new Promise(function(B,M){var $=function(C){if(h.push.apply(h,C),m++,m===o)return u(h),h.length?M(new tn(h,st(h))):B()};r.length||(u(h),B()),r.forEach(function(L){var C=t[L];i.indexOf(L)!==-1?en(C,n,$):Ss(C,n,$)})});return F.catch(function(B){return B}),F}function nn(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function un(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=J(J({},t[n]),u):t[n]=u}}return t}function an(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||O(e,i||t.type))&&u.push(K(a.messages.required,t.fullField))}function Rs(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(K(a.messages.whitespace,t.fullField))}var lt={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ge={integer:function(e){return ge.number(e)&&parseInt(e,10)===e},float:function(e){return ge.number(e)&&!ge.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ge.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(lt.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(lt.url)},hex:function(e){return typeof e=="string"&&!!e.match(lt.hex)}};function Ms(t,e,n,u,a){if(t.required&&e===void 0){an(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ge[r](e)||u.push(K(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(K(a.messages.types[r],t.fullField,t.type))}function Ls(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",o=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=e,F=null,B=typeof e=="number",M=typeof e=="string",$=Array.isArray(e);if(B?F="number":M?F="string":$&&(F="array"),!F)return!1;$&&(h=e.length),M&&(h=e.replace(m,"_").length),i?h!==t.len&&u.push(K(a.messages[F].len,t.fullField,t.len)):r&&!o&&h<t.min?u.push(K(a.messages[F].min,t.fullField,t.min)):o&&!r&&h>t.max?u.push(K(a.messages[F].max,t.fullField,t.max)):r&&o&&(h<t.min||h>t.max)&&u.push(K(a.messages[F].range,t.fullField,t.min,t.max))}var re="enum";function $s(t,e,n,u,a){t[re]=Array.isArray(t[re])?t[re]:[],t[re].indexOf(e)===-1&&u.push(K(a.messages[re],t.fullField,t[re].join(", ")))}function Ps(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(K(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(K(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var b={required:an,whitespace:Rs,type:Ms,range:Ls,enum:$s,pattern:Ps};function Os(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"string")&&!t.required)return n();b.required(t,e,u,i,a,"string"),O(e,"string")||(b.type(t,e,u,i,a),b.range(t,e,u,i,a),b.pattern(t,e,u,i,a),t.whitespace===!0&&b.whitespace(t,e,u,i,a))}n(i)}function qs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b.type(t,e,u,i,a)}n(i)}function Vs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function Ns(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b.type(t,e,u,i,a)}n(i)}function js(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),O(e)||b.type(t,e,u,i,a)}n(i)}function _s(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function Us(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function Ts(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();b.required(t,e,u,i,a,"array"),e!=null&&(b.type(t,e,u,i,a),b.range(t,e,u,i,a))}n(i)}function Hs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b.type(t,e,u,i,a)}n(i)}var xs="enum";function Ws(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a),e!==void 0&&b[xs](t,e,u,i,a)}n(i)}function ks(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"string")&&!t.required)return n();b.required(t,e,u,i,a),O(e,"string")||b.pattern(t,e,u,i,a)}n(i)}function Ks(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e,"date")&&!t.required)return n();if(b.required(t,e,u,i,a),!O(e,"date")){var o;e instanceof Date?o=e:o=new Date(e),b.type(t,o,u,i,a),o&&b.range(t,o.getTime(),u,i,a)}}n(i)}function zs(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;b.required(t,e,u,i,a,r),n(i)}function ot(t,e,n,u,a){var i=t.type,r=[],o=t.required||!t.required&&u.hasOwnProperty(t.field);if(o){if(O(e,i)&&!t.required)return n();b.required(t,e,u,r,a,i),O(e,i)||b.type(t,e,u,r,a)}n(r)}function Gs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(O(e)&&!t.required)return n();b.required(t,e,u,i,a)}n(i)}var ye={string:Os,method:qs,number:Vs,boolean:Ns,regexp:js,integer:_s,float:Us,array:Ts,object:Hs,enum:Ws,pattern:ks,date:Ks,url:ot,hex:ot,email:ot,required:zs,any:Gs};function ct(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var dt=ct();function p(t){this.rules=null,this._messages=dt,this.define(t)}p.prototype={messages:function(e){return e&&(this._messages=un(ct(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,o=u;if(typeof r=="function"&&(o=r,r={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(),Promise.resolve();function m(C){var D,l=[],g={};function y(R){if(Array.isArray(R)){var S;l=(S=l).concat.apply(S,R)}else l.push(R)}for(D=0;D<C.length;D++)y(C[D]);l.length?g=st(l):(l=null,g=null),o(l,g)}if(r.messages){var h=this.messages();h===dt&&(h=ct()),un(h,r.messages),r.messages=h}else r.messages=this.messages();var F,B,M={},$=r.keys||Object.keys(this.rules);$.forEach(function(C){F=a.rules[C],B=i[C],F.forEach(function(D){var l=D;typeof l.transform=="function"&&(i===e&&(i=J({},i)),B=i[C]=l.transform(B)),typeof l=="function"?l={validator:l}:l=J({},l),l.validator=a.getValidationMethod(l),l.field=C,l.fullField=l.fullField||C,l.type=a.getType(l),!!l.validator&&(M[C]=M[C]||[],M[C].push({rule:l,value:B,source:i,field:C}))})});var L={};return Is(M,r,function(C,D){var l=C.rule,g=(l.type==="object"||l.type==="array")&&(typeof l.fields=="object"||typeof l.defaultField=="object");g=g&&(l.required||!l.required&&C.value),l.field=C.field;function y(T,w){return J(J({},w),{},{fullField:l.fullField+"."+T})}function R(T){T===void 0&&(T=[]);var w=T;if(Array.isArray(w)||(w=[w]),!r.suppressWarning&&w.length&&p.warning("async-validator:",w),w.length&&l.message!==void 0&&(w=[].concat(l.message)),w=w.map(nn(l)),r.first&&w.length)return L[l.field]=1,D(w);if(!g)D(w);else{if(l.required&&!C.value)return l.message!==void 0?w=[].concat(l.message).map(nn(l)):r.error&&(w=[r.error(l,K(r.messages.required,l.field))]),D(w);var _={};if(l.defaultField)for(var Q in C.value)C.value.hasOwnProperty(Q)&&(_[Q]=l.defaultField);_=J(J({},_),C.rule.fields);for(var Y in _)if(_.hasOwnProperty(Y)){var se=Array.isArray(_[Y])?_[Y]:[_[Y]];_[Y]=se.map(y.bind(null,Y))}var Ve=new p(_);Ve.messages(r.messages),C.rule.options&&(C.rule.options.messages=r.messages,C.rule.options.error=r.error),Ve.validate(C.value,C.rule.options||r,function(le){var te=[];w&&w.length&&te.push.apply(te,w),le&&le.length&&te.push.apply(te,le),D(te.length?te:null)})}}var S;l.asyncValidator?S=l.asyncValidator(l,C.value,R,C.source,r):l.validator&&(S=l.validator(l,C.value,R,C.source,r),S===!0?R():S===!1?R(l.message||l.field+" fails"):S instanceof Array?R(S):S instanceof Error&&R(S.message)),S&&S.then&&S.then(function(){return R()},function(T){return R(T)})},function(C){m(C)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ye.hasOwnProperty(e.type))throw new Error(K("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ye.required:ye[this.getType(e)]||!1}},p.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ye[e]=n},p.warning=pt,p.messages=dt,p.validators=ye;const Js={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function rn(t,e={}){const n=new p(t);return n.messages(Object.assign(Js,e)),n}const sn=new Kr;class U{constructor(e){var F,B,M,$;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=on,this.removeSetting=ln,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:o,name:m,setting:h}=new.target;n&&u&&a||Ot(`The ${m} controlName,controlIcon,controlType is not define`),this.id=(F=e==null?void 0:e.id)!=null?F:ne(10),this.name=n,this.icon=u,this.type=(B=e==null?void 0:e.type)!=null?B:a,this.props=new Z(e==null?void 0:e.props,new.target.controlName),this.controlType=(M=e==null?void 0:e.controlType)!=null?M:"base",this.setting=ue(h),this.fieldType=($=e==null?void 0:e.fieldType)!=null?$:i,this.eventKeys=ue(r),this.customEvents=ue(o),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return sn.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),$r(this.props,e,n),this.postUpdate(e,n)}preValidate(){return Fe(this,null,function*(){const e=oe({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return Fe(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:oe({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=rn(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:o,caption:m,required:h,maxLength:F,options:B,encrypted:M,encryptedMode:$}=this.props;if(!n&&!i&&!r)return;const L={parentId:e,fieldType:n,controlId:u,caption:m,type:a,props:{}};switch(i&&(L.dataBind=i),o){case"datasource":case void 0:r&&(L.datasourceBind=r);break;case"custom":L.props.options=B;break}return h!==void 0&&(L.required=h),F!==void 0&&(L.maxLength=F),M!==void 0&&(L.encrypted=M),$!==void 0&&(L.encryptedMode=$),L}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:ue(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}U.controlName="\u63A7\u4EF6",U.controlIcon="icon",U.controlType="control",U.controlEventKeys=[],U.controlCustomEvents=[],U.setting=[],U.__is_control__=!0,U.removeSettingItem=ln,U.updateSettingItem=on;function ln(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(o=>o.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(o=>!n.hideItems.includes(o)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)==null?void 0:r.length)&&this.setting.splice(a,1))})}function on(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class ee{constructor(e){var r,o,m,h,F;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Ot(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:ne(10),this.type=(o=e==null?void 0:e.type)!=null?o:n,this.props=new Z(e==null?void 0:e.props),this.customEvents=i,this.controlType=(m=e==null?void 0:e.controlType)!=null?m:"base",this.fieldType=(h=e==null?void 0:e.fieldType)!=null?h:u,this.pageStatus=(F=e==null?void 0:e.pageStatus)!=null?F:ut.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}ee.controlType="control",ee.__is_control__=!0,ee.controlCustomEvents=[];function ft(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:E.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:E.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(E.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=jr(a);a.length!==i.length?u(E.getMessage("optionIdIsRepeat")):u()},message:E.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(E.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:E.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:E.getMessage("isNotBoolean")}}}}]}}])}function Xs(t,e,n=!1){this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:E.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:E.getMessage("isNotString")},key:{type:"string",required:!0,message:E.getMessage("isNotString")},value:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(E.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:E.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:E.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:E.getMessage("isNotBoolean")}}}}]}}]}function cn(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class ht extends $e{constructor(e){super(e);this.dataBind={},this.caption={type:"string",required:!0,message:E.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:E.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:E.getMessage("pleaseEnterFieldCode")}};if(cn(e.dataBind))this.dataBind={type:"object",required:!0,fields:ue(n),message:E.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:E.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:ue(n),message:E.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class dn extends at{constructor(e){super(e);this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:E.getMessage("runtimeRequired",{caption:e.caption})})}}class ve extends Z{constructor(e){super(e);var n,u,a,i,r,o,m,h,F,B;this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(o=e==null?void 0:e.labelPosition)!=null?o:"top",this.placeholder=(m=e==null?void 0:e.placeholder)!=null?m:"",this.required=(h=e==null?void 0:e.required)!=null?h:!1,this.requiredMessage=(F=e==null?void 0:e.requiredMessage)!=null?F:"",this.dataBind=new G(e==null?void 0:e.dataBind),this.defaultValue=(B=e==null?void 0:e.defaultValue)!=null?B:""}}ve.Rules=ht,ve.RuntimeRules=dn;class Zs extends ht{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource"],message:E.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:E.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")}],ft.call(this,e)}}class fn extends U{constructor(e){super(e);this.controlType="form",this.props=new ve(e==null?void 0:e.props)}}fn.controlEventKeys=["on_change","on_focus","on_blur"];class Qs extends ee{constructor(e){super(e);this.controlType="form",this.props=new ve(e==null?void 0:e.props)}}class Ee extends Z{constructor(e){super(e)}}function hn(t,e){var n;((n=Object.getOwnPropertyDescriptors(t)[e])==null?void 0:n.enumerable)&&Object.defineProperty(t,e,{enumerable:!1})}function mt(t,e){t.parent=e,hn(t,"parent")}function mn(t,e){t.forEach(n=>{mt(n,e)})}const gn=Symbol("targetKey");function yn(t){var e;return(e=t[gn])!=null?e:t}function vn(t,e){return mn(t,e),new Proxy(t,{get(n,u,...a){return u===gn?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(Nr(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return Vr(a)&&mt(a,e),r}})}function Ce(t,e,n,u){const a=u!=null?u:t;let i=vn(yn(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=vn(yn(r),a)},enumerable:!0})}const Ys=1e4;class Be extends U{constructor(e){super(e);this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new Ee(e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children),this.excludes=ue(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){var u=a=>super[a];return Fe(this,null,function*(){return yield u("validate").call(this,e,n),yield Promise.all(this.children.map(i=>i.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const o=r.filter(m=>!!m);return[...a,...o]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Ne(oe({},e),{children:n})}}Be.excludes=!1,Be.childrenMaxLength=Ys;class gt extends ee{constructor(e){super(e);this.controlType="layout",this.props=new Ee(e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children)}}class yt extends Z{constructor(e,n){super(n);Ce(this,"headers",n==null?void 0:n.headers,e)}}class En extends U{constructor(e){super(e);this.controlType="list",this.props=new yt(this,e==null?void 0:e.props)}validate(e,n){var u=a=>super[a];return Fe(this,null,function*(){return yield u("validate").call(this,e),yield Promise.all(this.props.headers.map(i=>i.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const o=r.filter(m=>!!m);return[...a,...o]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Ne(oe({},e),{props:Ne(oe({},this.props),{headers:n,footers:u})})}}En.controlFieldType=q.LIST;class ps extends ee{constructor(e){super(e);this.controlType="list",this.props=new yt(this,e==null?void 0:e.props),Ce(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class vt extends $e{constructor(e){super(e);this.caption={type:"string",required:!0,message:E.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:E.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class qe extends Z{constructor(e){super(e);var n,u,a,i,r;this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Xe(e==null?void 0:e.autoWidth),this.dataBind=new G(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}qe.Rules=vt;class el extends vt{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:E.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:E.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:E.getMessage("isNotObject")}],ft.call(this,e)}}class tl extends U{constructor(e){super(e);this.controlType="column",this.props=new qe(e==null?void 0:e.props)}}class nl extends ee{constructor(e){super(e);this.controlType="column",this.props=new qe(e==null?void 0:e.props)}}class Et extends Ee{constructor(e){super(e);this.dataBind=new G(e==null?void 0:e.dataBind)}}class ul extends Be{constructor(e){super(e);this.controlType="search",this.props=new Et(e==null?void 0:e.props)}}class al extends gt{constructor(e){super(e);this.controlType="search",this.props=new Et(e==null?void 0:e.props)}}class Ct extends Ee{constructor(e){super(e)}}class il extends Be{constructor(e){super(e);this.controlType="wrap",this.props=new Ct(e==null?void 0:e.props)}}class rl extends gt{constructor(e){super(e);this.controlType="wrap",this.props=new Ct(e==null?void 0:e.props)}}function sl(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:E.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=nt,s.AddressValue=hs,s.AmountDataBind=os,s.AmountValue=cs,s.AutoWidth=Xe,s.BaseControlProperty=ve,s.BaseControlPropertyRules=ht,s.BaseControlPropertyRuntimeRules=dn,s.BaseStyle=Yt,s.COMMON_SETTING_TYPE=Qt,s.CalcDataBind=ms,s.CalcValue=gs,s.ColumnControlProperty=qe,s.ColumnControlPropertyRules=vt,s.ColumnOptionAndDataSourcePropertyRules=el,s.CustomAttributeItem=et,s.CustomPermissionItem=Es,s.DataBind=G,s.DataSourceBind=Me,s.DataSourceDataSetValue=Gt,s.DataSourceOrderItem=Ye,s.DataSourceParamItem=Yr,s.DataStorageDoc=Gr,s.DesignerColumnControl=tl,s.DesignerControl=U,s.DesignerFormControl=fn,s.DesignerLayoutControl=Be,s.DesignerListControl=En,s.DesignerSearchControl=ul,s.DesignerWrapControl=il,s.DisplayBoListItem=Qe,s.FieldBindItem=Wt,s.FieldFilterCondition=Re,s.FieldFilterConditions=me,s.FillBackBind=as,s.FillPayloadBind=us,s.FormBind=Ie,s.FormSelectBind=Jr,s.ImageOptionSetting=Zt,s.JoinRelation=Qr,s.Language=is,s.LayoutControlProperty=Ee,s.LeftVariable=Kt,s.LinkOperationOption=es,s.ListBind=Xr,s.ListControlProperty=yt,s.MetaAutoWidth=zr,s.MetaWidth=we,s.MultistageFillingItem=zt,s.ObjectDataBind=Le,s.OperationItem=ys,s.OptObject=Cs,s.OptionAndDataSourcePropertyRules=Zs,s.OptionSetting=tt,s.OrganizationDataSourceBind=ts,s.PAGE_STATUS=ut,s.Property=Z,s.PropertyRules=$e,s.PropertyRuntimeRules=at,s.RangeDataBind=ds,s.RangeDateValue=fs,s.RegisterControls=Se,s.RegularRules=rs,s.RightVariable=Ze,s.RuntimeColumnControl=nl,s.RuntimeControl=ee,s.RuntimeFormControl=Qs,s.RuntimeLayoutControl=gt,s.RuntimeListControl=ps,s.RuntimeSearchControl=al,s.RuntimeWrapControl=rl,s.SearchControlProperty=Et,s.SelectedContentConfig=pr,s.SubListItem=kt,s.SubListPageConfig=Zr,s.SuperDataSourceBind=Jt,s.TreeDataSourceBind=ns,s.ViewOperationItem=vs,s.WrapControlProperty=Ct,s.controlHooksEmitter=sn,s.createValidator=rn,s.defineArrayParent=mn,s.defineControlArrayToProperty=Ce,s.defineParent=mt,s.initImageOptions=ls,s.initLinkOperationRules=sl,s.initOptionAndDataSourceRules=ft,s.initOptions=ss,s.initSuperDataSourceRules=Xs,s.isDataBind=cn,s.setPropertyDontEnum=hn,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
@@ -2,11 +2,10 @@ import Property, { PropertyRules } from './property';
|
|
|
2
2
|
import { FieldTypes, CustomEventItem } from '@byteluck-fe/model-driven-shared';
|
|
3
3
|
import { Messages } from '../Validator';
|
|
4
4
|
import { DataBindModelType, HideOptions, SettingOption } from './types';
|
|
5
|
-
import { BaseControlSchema, BaseControlTypes, ControlsKeys
|
|
5
|
+
import { BaseControlSchema, BaseControlTypes, ControlsKeys } from '../../type';
|
|
6
6
|
import { Rules } from 'async-validator';
|
|
7
7
|
import { COMMON_SETTING_TYPE } from '../../framework';
|
|
8
8
|
declare class Control {
|
|
9
|
-
static mode: MODE;
|
|
10
9
|
static readonly controlName: string;
|
|
11
10
|
static readonly controlIcon: string;
|
|
12
11
|
static readonly controlType: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RuleItem } from '../Validator';
|
|
2
2
|
import { BaseStyle } from '../../framework';
|
|
3
|
-
import { MODE } from 'type';
|
|
4
3
|
declare class PropertyRules {
|
|
5
4
|
[field: string]: RuleItem | RuleItem[];
|
|
6
5
|
isHide: RuleItem;
|
|
@@ -11,7 +10,6 @@ declare class PropertyRuntimeRules extends Array<RuleItem> {
|
|
|
11
10
|
constructor(props: Property);
|
|
12
11
|
}
|
|
13
12
|
declare class Property {
|
|
14
|
-
static mode: MODE;
|
|
15
13
|
static readonly Rules: typeof PropertyRules;
|
|
16
14
|
static readonly RuntimeRules: typeof PropertyRuntimeRules;
|
|
17
15
|
isHide: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Property, { PropertyRuntimeRules } from './property';
|
|
2
2
|
import { CustomEventItem, FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
-
import { ControlsKeys, BaseControlSchema, BaseControlTypes
|
|
3
|
+
import { ControlsKeys, BaseControlSchema, BaseControlTypes } from '../../type';
|
|
4
4
|
import { PAGE_STATUS } from '../../framework';
|
|
5
5
|
declare class Control {
|
|
6
|
-
static mode: MODE;
|
|
7
6
|
static readonly controlType: string;
|
|
8
7
|
static readonly controlFieldType: FieldTypes;
|
|
9
8
|
static readonly __is_control__ = true;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { MODE } from '../type';
|
|
2
1
|
export declare function setPropertyDontEnum<T extends object>(obj: T, property: string): void;
|
|
3
2
|
export declare function defineParent<T extends object>(control: T & {
|
|
4
3
|
parent: any;
|
|
5
|
-
}, parent: T | null
|
|
4
|
+
}, parent: T | null): void;
|
|
6
5
|
export declare function defineArrayParent<T extends object & {
|
|
7
6
|
parent: any;
|
|
8
|
-
}>(controls: T[], parent: T | null
|
|
9
|
-
export declare function defineControlArrayToProperty<T>(obj: object, property: string, initialValue?: T[], parent?: object
|
|
7
|
+
}>(controls: T[], parent: T | null): void;
|
|
8
|
+
export declare function defineControlArrayToProperty<T>(obj: object, property: string, initialValue?: T[], parent?: object): void;
|
|
@@ -7,7 +7,7 @@ declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends
|
|
|
7
7
|
footers?: Control[];
|
|
8
8
|
constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
|
|
9
9
|
headers: Control[];
|
|
10
|
-
}
|
|
10
|
+
}>);
|
|
11
11
|
}
|
|
12
12
|
export default ListControlProperty;
|
|
13
13
|
export { ListControlProperty };
|
|
@@ -4,11 +4,9 @@ export interface BeforeCreateInstance {
|
|
|
4
4
|
(schema: any): any;
|
|
5
5
|
}
|
|
6
6
|
export declare class RegisterControls<Mode extends MODE> {
|
|
7
|
-
static readonly staticControlsRuntimeRules: Map<any, any>;
|
|
8
7
|
static readonly staticControls: ControlExport[];
|
|
9
8
|
static readonly staticRegisteredTypes: Set<string>;
|
|
10
9
|
static readonly staticRegisteredConfigs: Map<string, Record<string, unknown>>;
|
|
11
|
-
static staticGetRules(controlType: string, props: any): any[];
|
|
12
10
|
registeredControlTypes: Set<string>;
|
|
13
11
|
controlConfigMap: Map<string, Readonly<Record<string, unknown>>>;
|
|
14
12
|
protected _controls: ControlsConstructor<ControlsKeys, Mode>[];
|
|
@@ -16,7 +14,7 @@ export declare class RegisterControls<Mode extends MODE> {
|
|
|
16
14
|
constructor(type: Mode);
|
|
17
15
|
registerControlConfig(type: string, config: Record<string, unknown>): this;
|
|
18
16
|
getControlConfig(type: string): Readonly<Record<string, unknown>> | undefined;
|
|
19
|
-
static register(control: ControlExport
|
|
17
|
+
static register(control: ControlExport): typeof RegisterControls;
|
|
20
18
|
getControls(): ControlsConstructor<ControlsKeys, Mode>[];
|
|
21
19
|
register(control: ControlsConstructor<ControlsKeys, Mode>): this;
|
|
22
20
|
isLayoutControl(schema: Schema<any>): schema is LayoutControlSchema<any>;
|
|
@@ -29,7 +27,6 @@ export declare class RegisterControls<Mode extends MODE> {
|
|
|
29
27
|
createControl<T extends ControlsKeys>(schema: Schema<T> & {
|
|
30
28
|
type: T;
|
|
31
29
|
}, beforeCreateInstance?: BeforeCreateInstance): ControlsInstance<T, Mode>;
|
|
32
|
-
private _setParentPrototypeToSchema;
|
|
33
30
|
createControlInstance<T extends ControlsKeys>(type: T, initSchema?: DeepPartial<Schema<T>>): ControlsInstance<T, Mode> | undefined;
|
|
34
31
|
getControlFormType<T extends ControlsKeys>(type: T): ControlsConstructor<T, Mode> | undefined;
|
|
35
32
|
private _initControls;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "2.6.0-alpha.
|
|
3
|
+
"version": "2.6.0-alpha.19",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "532dd7c68c47d52d03f4cdaab110fd527bfaa1be"
|
|
34
34
|
}
|