@byteluck-fe/model-driven-driven 2.5.9-beta.2 → 2.5.9-beta.5

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.
@@ -41,6 +41,10 @@ function _async_to_generator(fn) {
41
41
  });
42
42
  };
43
43
  }
44
+ function _call_super(_this, derived, args) {
45
+ derived = _get_prototype_of(derived);
46
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
47
+ }
44
48
  function _class_call_check(instance, Constructor) {
45
49
  if (!(instance instanceof Constructor)) {
46
50
  throw new TypeError("Cannot call a class as a function");
@@ -134,31 +138,15 @@ function _unsupported_iterable_to_array(o, minLen) {
134
138
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
135
139
  }
136
140
  function _is_native_reflect_construct() {
137
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
138
- if (Reflect.construct.sham) return false;
139
- if (typeof Proxy === "function") return true;
140
141
  try {
141
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
142
- return true;
143
- } catch (e) {
144
- return false;
145
- }
146
- }
147
- function _create_super(Derived) {
148
- var hasNativeReflectConstruct = _is_native_reflect_construct();
149
- return function _createSuperInternal() {
150
- var Super = _get_prototype_of(Derived), result;
151
- if (hasNativeReflectConstruct) {
152
- var NewTarget = _get_prototype_of(this).constructor;
153
- result = Reflect.construct(Super, arguments, NewTarget);
154
- } else {
155
- result = Super.apply(this, arguments);
156
- }
157
- return _possible_constructor_return(this, result);
158
- };
142
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
143
+ } catch (_) {}
144
+ return (_is_native_reflect_construct = function() {
145
+ return !!result;
146
+ })();
159
147
  }
160
148
  function _ts_generator(thisArg, body) {
161
- var f, y, t, g, _ = {
149
+ var f, y, t, _ = {
162
150
  label: 0,
163
151
  sent: function() {
164
152
  if (t[0] & 1) throw t[1];
@@ -166,12 +154,8 @@ function _ts_generator(thisArg, body) {
166
154
  },
167
155
  trys: [],
168
156
  ops: []
169
- };
170
- return g = {
171
- next: verb(0),
172
- "throw": verb(1),
173
- "return": verb(2)
174
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
157
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
158
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
175
159
  return this;
176
160
  }), g;
177
161
  function verb(n) {
@@ -184,7 +168,7 @@ function _ts_generator(thisArg, body) {
184
168
  }
185
169
  function step(op) {
186
170
  if (f) throw new TypeError("Generator is already executing.");
187
- while(_)try {
171
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
188
172
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
189
173
  if (y = 0, t) op = [
190
174
  op[0] & 2,
@@ -259,16 +243,12 @@ import { toSchema, getModelBindInfoList, checkSchema } from './utils';
259
243
  var Designer = /*#__PURE__*/ function _target(RegisterControls) {
260
244
  "use strict";
261
245
  _inherits(Designer, RegisterControls);
262
- var _super = _create_super(Designer);
263
246
  function Designer() {
264
247
  _class_call_check(this, Designer);
265
248
  var _this;
266
- _this = _super.call(this, 'Designer');
267
- _define_property(_assert_this_initialized(_this), "toolbox", []);
268
- _define_property(_assert_this_initialized(_this), "services", {});
269
- _define_property(_assert_this_initialized(_this), "eventLogic", new EventLogic());
270
- _define_property(_assert_this_initialized(_this), "fieldTypes", FieldTypes);
271
- _define_property(_assert_this_initialized(_this), "controlSettingMap", new Map());
249
+ _this = _call_super(this, Designer, [
250
+ 'Designer'
251
+ ]), _define_property(_this, "toolbox", []), _define_property(_this, "services", {}), _define_property(_this, "eventLogic", new EventLogic()), _define_property(_this, "fieldTypes", FieldTypes), _define_property(_this, "controlSettingMap", new Map());
272
252
  (_instanceof(this, Designer) ? this.constructor : void 0).staticControls.forEach(function(control) {
273
253
  var _$Designer = control.Designer, Setting = control.Setting;
274
254
  _this.controlSettingMap.set(_$Designer.controlType, Setting);
@@ -279,6 +259,7 @@ var Designer = /*#__PURE__*/ function _target(RegisterControls) {
279
259
  {
280
260
  key: "registerControl",
281
261
  value: function registerControl(control) {
262
+ ;
282
263
  this.constructor.register(control);
283
264
  var DesignerClass = control.Designer, Setting = control.Setting;
284
265
  this.register(DesignerClass);
@@ -15,6 +15,10 @@ function _assert_this_initialized(self) {
15
15
  }
16
16
  return self;
17
17
  }
18
+ function _call_super(_this, derived, args) {
19
+ derived = _get_prototype_of(derived);
20
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
21
+ }
18
22
  function _class_call_check(instance, Constructor) {
19
23
  if (!(instance instanceof Constructor)) {
20
24
  throw new TypeError("Cannot call a class as a function");
@@ -169,28 +173,12 @@ function _unsupported_iterable_to_array(o, minLen) {
169
173
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
170
174
  }
171
175
  function _is_native_reflect_construct() {
172
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
173
- if (Reflect.construct.sham) return false;
174
- if (typeof Proxy === "function") return true;
175
176
  try {
176
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
177
- return true;
178
- } catch (e) {
179
- return false;
180
- }
181
- }
182
- function _create_super(Derived) {
183
- var hasNativeReflectConstruct = _is_native_reflect_construct();
184
- return function _createSuperInternal() {
185
- var Super = _get_prototype_of(Derived), result;
186
- if (hasNativeReflectConstruct) {
187
- var NewTarget = _get_prototype_of(this).constructor;
188
- result = Reflect.construct(Super, arguments, NewTarget);
189
- } else {
190
- result = Super.apply(this, arguments);
191
- }
192
- return _possible_constructor_return(this, result);
193
- };
177
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
178
+ } catch (_) {}
179
+ return (_is_native_reflect_construct = function() {
180
+ return !!result;
181
+ })();
194
182
  }
195
183
  import { CONTROL_BASE_TYPE, error, genNonDuplicateId, isArray, isBuiltInControls, isObject, isString, updateValueFromKeys, warn, Watcher } from '@byteluck-fe/model-driven-shared';
196
184
  import { findInstanceDataScopeParent, Store } from './Store';
@@ -205,37 +193,23 @@ var applyingPluginName = '';
205
193
  * */ var Driven = /*#__PURE__*/ function(Watcher) {
206
194
  "use strict";
207
195
  _inherits(Driven, Watcher);
208
- var _super = _create_super(Driven);
209
196
  function Driven(options) {
210
197
  _class_call_check(this, Driven);
211
198
  var _this;
212
- _this = _super.call(this);
213
- _define_property(_assert_this_initialized(_this), "mode", void 0);
214
- _define_property(_assert_this_initialized(_this), "isMounted", false);
215
- _define_property(_assert_this_initialized(_this), "id", genNonDuplicateId(8));
216
- /**
199
+ _this = _call_super(this, Driven), _define_property(_this, "mode", void 0), _define_property(_this, "isMounted", false), _define_property(_this, "id", genNonDuplicateId(8)), /**
217
200
  * 控件可选的事件
218
- * */ _define_property(_assert_this_initialized(_this), "eventLogic", void 0);
219
- /**
201
+ * */ _define_property(_this, "eventLogic", void 0), /**
220
202
  * 处理数据存储,存放模型等
221
- * */ _define_property(_assert_this_initialized(_this), "store", void 0);
222
- /**
203
+ * */ _define_property(_this, "store", void 0), /**
223
204
  * 额外参数存储
224
- */ _define_property(_assert_this_initialized(_this), "externalParams", void 0);
225
- /**
205
+ */ _define_property(_this, "externalParams", void 0), /**
226
206
  * 处理instance,和schema存储
227
- * */ _define_property(_assert_this_initialized(_this), "designer", void 0);
228
- /**
207
+ * */ _define_property(_this, "designer", void 0), /**
229
208
  * 插件数组
230
- * */ _define_property(_assert_this_initialized(_this), "__plugins", void 0);
231
- _define_property(_assert_this_initialized(_this), "__pluginsApplied", false);
232
- _define_property(_assert_this_initialized(_this), "$options", void 0);
233
- // TODO 拿到schema
234
- _define_property(_assert_this_initialized(_this), "getSchema", toSchema);
235
- // TODO 拿到model_bind_info_list
236
- _define_property(_assert_this_initialized(_this), "getModelBindInfoList", getModelBindInfoList);
237
- // TODO 拿到permission_controls
238
- _define_property(_assert_this_initialized(_this), "generatePermissions", generatePermissions);
209
+ * */ _define_property(_this, "__plugins", void 0), _define_property(_this, "__pluginsApplied", false), _define_property(_this, "$options", void 0), // TODO 拿到schema
210
+ _define_property(_this, "getSchema", toSchema), // TODO 拿到model_bind_info_list
211
+ _define_property(_this, "getModelBindInfoList", getModelBindInfoList), // TODO 拿到permission_controls
212
+ _define_property(_this, "generatePermissions", generatePermissions);
239
213
  _this.$options = Object.freeze(options);
240
214
  var _this_$options = _this.$options, _this_$options_autoMount = _this_$options.autoMount, autoMount = _this_$options_autoMount === void 0 ? false : _this_$options_autoMount, tmp = _this_$options.Designer, DesignerClass = tmp === void 0 ? Designer : tmp, schema = _this_$options.schema, _this_$options_mode = _this_$options.mode, mode = _this_$options_mode === void 0 ? 'form' : _this_$options_mode, tmp1 = _this_$options.store, storeOptions = tmp1 === void 0 ? {} : tmp1;
241
215
  _this.eventLogic = new EventLogic();
package/dist/esm/utils.js CHANGED
@@ -86,7 +86,7 @@ function _unsupported_iterable_to_array(o, minLen) {
86
86
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
87
87
  }
88
88
  function _ts_generator(thisArg, body) {
89
- var f, y, t, g, _ = {
89
+ var f, y, t, _ = {
90
90
  label: 0,
91
91
  sent: function() {
92
92
  if (t[0] & 1) throw t[1];
@@ -94,12 +94,8 @@ function _ts_generator(thisArg, body) {
94
94
  },
95
95
  trys: [],
96
96
  ops: []
97
- };
98
- return g = {
99
- next: verb(0),
100
- "throw": verb(1),
101
- "return": verb(2)
102
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
97
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
98
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
103
99
  return this;
104
100
  }), g;
105
101
  function verb(n) {
@@ -112,7 +108,7 @@ function _ts_generator(thisArg, body) {
112
108
  }
113
109
  function step(op) {
114
110
  if (f) throw new TypeError("Generator is already executing.");
115
- while(_)try {
111
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
116
112
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
117
113
  if (y = 0, t) op = [
118
114
  op[0] & 2,
@@ -215,6 +211,7 @@ export function getMasterFormControls(controls) {
215
211
  dataBind.dataCode = dataCode;
216
212
  });
217
213
  } else {
214
+ ;
218
215
  item.dataBind.fieldCode = fieldCodeBeforeAddPrefix(item.controlId);
219
216
  item.dataBind.dataCode = dataCode;
220
217
  }
@@ -317,10 +314,7 @@ function getModelBindInfoList(controls) {
317
314
  return controls.toDataBindModel();
318
315
  }
319
316
  function checkSchema(controls, messages, ignore) {
320
- return _checkSchema.apply(this, arguments);
321
- }
322
- function _checkSchema() {
323
- _checkSchema = _async_to_generator(function(controls, messages, ignore) {
317
+ return _async_to_generator(function() {
324
318
  var result;
325
319
  return _ts_generator(this, function(_state) {
326
320
  switch(_state.label){
@@ -355,8 +349,7 @@ function _checkSchema() {
355
349
  ];
356
350
  }
357
351
  });
358
- });
359
- return _checkSchema.apply(this, arguments);
352
+ })();
360
353
  }
361
354
  // 不可以被权限控制的控件
362
355
  var PermissionExcludeControlTypes = [
package/dist/index.umd.js CHANGED
@@ -1,3 +1,3 @@
1
- var sp=Object.defineProperty;var Kr=Object.getOwnPropertySymbols;var cp=Object.prototype.hasOwnProperty,lp=Object.prototype.propertyIsEnumerable;var Xr=(m,C,O)=>C in m?sp(m,C,{enumerable:!0,configurable:!0,writable:!0,value:O}):m[C]=O,de=(m,C)=>{for(var O in C||(C={}))cp.call(C,O)&&Xr(m,O,C[O]);if(Kr)for(var O of Kr(C))lp.call(C,O)&&Xr(m,O,C[O]);return m};var mn=(m,C,O)=>new Promise((ut,De)=>{var ot=G=>{try{he(O.next(G))}catch(ye){De(ye)}},at=G=>{try{he(O.throw(G))}catch(ye){De(ye)}},he=G=>G.done?ut(G.value):Promise.resolve(G.value).then(ot,at);he((O=O.apply(m,C)).next())});(function(m,C){typeof exports=="object"&&typeof module!="undefined"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(m=typeof globalThis!="undefined"?globalThis:m||self,C(m.modelDrivenDriven={}))})(this,function(m){"use strict";var C="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",O="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",ut="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",ot="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",at="{caption}\u5FC5\u586B",he="\u8BF7\u8F93\u5165\u6807\u9898",G="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ye="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Jr="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Zr="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Qr="\u8BF7\u7ED1\u5B9A\u8868\u5355",Yr="\u8BF7\u7ED1\u5B9A\u5217\u8868",ei="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",ti="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ni="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ri="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",ii="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ui="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",oi="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ai="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",si="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",ci="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",li="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",fi="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",pi="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",di="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",hi="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",yi="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",vi="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",_i="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",gi="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",mi="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ei="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",bi="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",wi="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Bi="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ai="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Si="\u8BF7\u9009\u62E9\u7701",Fi="\u8BF7\u9009\u62E9\u5E02",Ii="\u8BF7\u9009\u62E9\u533A",$i="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Di="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ci="\u8BF7\u8F93\u5165\u5217\u5BBD",Oi="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ri="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Pi="\u8BF7\u9009\u62E9\u63A7\u4EF6",xi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Mi="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ti="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Li="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ji="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",qi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Vi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ui="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ni="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ki="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Hi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Wi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",zi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Gi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ki="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Xi="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ji="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Zi="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Qi="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Yi="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",eu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",tu={isNotNumber:C,isNotString:O,isNotObject:ut,isNotArray:De,isNotBoolean:ot,runtimeRequired:at,pleaseEnterCaption:he,pleaseEnterCaptionTip:G,pleaseEnterRowCaption:ye,pleaseEnterPlaceholder:Jr,pleaseEnterFieldCode:Zr,pleaseEnterForm:Qr,pleaseEnterList:Yr,pleaseEnterProcess:ei,pleaseEnterLabel:ti,pleaseEnterValue:ni,bizKeyNotBindFiled:ri,pleaseSelectOneField:ii,pleaseEnterNumberRange:ui,pleaseEnterAValueGreaterThanMin:oi,pleaseEnterAValueLessThanMax:ai,numberRangeSetError:si,stringRangeError:ci,attachmentMaxSize:li,pleaseEnterTotalScoreSetting:fi,theTotalScoreMustNotBeLessThan1:pi,scoreDefaultValueRange:di,attachmentLimitError:hi,PleaseReselectTheOptionalQuantity:yi,TheMaximumLengthIsGreaterThanTheMinimumLength:vi,TheMinimumLengthIsGreaterThanTheMaximumLength:_i,PleaseSelectTheCorrectOptionSettings:gi,optionIdIsRepeat:mi,optionIsRequired:Ei,pleaseEnterDataCode:bi,pleaseEnterValueFieldCode:wi,pleaseEnterSvcCode:Bi,pleaseBindAtLeastOneDisplayValue:Ai,pleaseSelectProvince:Si,pleaseSelectCity:Fi,pleaseSelectDistrict:Ii,limitRowsCannotBeLessThan0:$i,TheNumberOfRowsCannotBeLessThanMinRows:Di,pleaseEnterColumnWidth:Ci,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Oi,pleaseCompleteAllRulesAndConditions:Ri,pleaseSelectControl:Pi,pleaseSelectAtLeastOneColumn:xi,pleaseSelectFillBackMode:Mi,pleaseSelectDashboard:Ti,rootNodeIsRequired:Li,theViewNameCannotBeEmpty:ji,pleaseSelectOcrType:qi,pleaseSelectAtLeastOneFieldToFillIn:Vi,pleaseChooseAtLeastOne:Ui,pleaseEnterButtonContent:Ni,pleaseEnterDataCodeInDataSetting:ki,pleaseEnterValueFieldCodeInDataSetting:Hi,pleaseEnterSvcCodeInDataSetting:Wi,pleaseBindAtLeastOneDisplayValueInDataSetting:zi,rootNodeIsRequiredInDataSetting:Gi,pleaseEnterMaxHeight:Ki,pleaseEnter:Xi,pleaseEnterWatermark:Ji,pleaseEnterFileName:Zi,pleaseUploadAtLeastOnePrintTemplate:Qi,pleaseAssignBusiness:Yi,pleaseAssignExternal:eu},nu="Please enter a number",ru="Please enter a string",iu="Please enter an object",uu="Please enter an array",ou="Please enter a boolean",au="{caption} Required",su="Please enter the title",cu="Please enter the bubble prompt",lu="Please enter the row title",fu="Please enter the prompt text",pu="Please bind data items",du="Please bind the form",hu="Please bind the list",yu="Please bind the process",vu="Please enter the displayed value",_u="Please enter the stored value",gu="The document number is not bound to the data item",mu="Please select at least one display field",Eu="Please enter a value greater than or equal to {min} and less than or equal to {max}",bu="Please enter a value greater than or equal to {min}",wu="Please enter a value less than or equal to {max}",Bu="The value range is set incorrectly",Au="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Su="The attachment size must be between 0MB and 1000MB",Fu="Please fill in the total score setting",Iu="The total score cannot be less than 1",$u="The default value must be between {min} and {max}",Du="The number of attachments uploaded must be between {min} and {max}",Cu="Please re-select the optional quantity",Ou="The maximum length of the control must be greater than the minimum length",Ru="The minimum length of the control must be less than the maximum length",Pu="Please select the correct option setting",xu="Option ID cannot be repeated",Mu="Please enter at least one option",Tu="Please bind the data source",Lu="Please bind the stored value",ju="Please bind the service",qu="At least one display value must be bound",Vu="Please select a province",Uu="Please select a city",Nu="Please select a district",ku="The minimum number of lines to fill in cannot be less than 0",Hu="The number of rows cannot be less than {min} rows",Wu="Please enter the column width",zu="Please set the logical relationship of all rule conditions",Gu="Please complete all rules and conditions",Ku="please select control",Xu="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ju="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Zu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Qu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Yu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",eo="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",to="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",no="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ro="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",io="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",uo="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",oo="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ao="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",so="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",co="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",lo="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",fo="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",po="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",ho={isNotNumber:nu,isNotString:ru,isNotObject:iu,isNotArray:uu,isNotBoolean:ou,runtimeRequired:au,pleaseEnterCaption:su,pleaseEnterCaptionTip:cu,pleaseEnterRowCaption:lu,pleaseEnterPlaceholder:fu,pleaseEnterFieldCode:pu,pleaseEnterForm:du,pleaseEnterList:hu,pleaseEnterProcess:yu,pleaseEnterLabel:vu,pleaseEnterValue:_u,bizKeyNotBindFiled:gu,pleaseSelectOneField:mu,pleaseEnterNumberRange:Eu,pleaseEnterAValueGreaterThanMin:bu,pleaseEnterAValueLessThanMax:wu,numberRangeSetError:Bu,stringRangeError:Au,attachmentMaxSize:Su,pleaseEnterTotalScoreSetting:Fu,theTotalScoreMustNotBeLessThan1:Iu,scoreDefaultValueRange:$u,attachmentLimitError:Du,PleaseReselectTheOptionalQuantity:Cu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ou,TheMinimumLengthIsGreaterThanTheMaximumLength:Ru,PleaseSelectTheCorrectOptionSettings:Pu,optionIdIsRepeat:xu,optionIsRequired:Mu,pleaseEnterDataCode:Tu,pleaseEnterValueFieldCode:Lu,pleaseEnterSvcCode:ju,pleaseBindAtLeastOneDisplayValue:qu,pleaseSelectProvince:Vu,pleaseSelectCity:Uu,pleaseSelectDistrict:Nu,limitRowsCannotBeLessThan0:ku,TheNumberOfRowsCannotBeLessThanMinRows:Hu,pleaseEnterColumnWidth:Wu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:zu,pleaseCompleteAllRulesAndConditions:Gu,pleaseSelectControl:Ku,pleaseSelectDashboard:Xu,theViewNameCannotBeEmpty:Ju,pleaseSelectOcrType:Zu,pleaseSelectAtLeastOneFieldToFillIn:Qu,pleaseChooseAtLeastOne:Yu,pleaseEnterButtonContent:eo,pleaseEnterDataCodeInDataSetting:to,pleaseEnterValueFieldCodeInDataSetting:no,pleaseEnterSvcCodeInDataSetting:ro,pleaseBindAtLeastOneDisplayValueInDataSetting:io,rootNodeIsRequiredInDataSetting:uo,pleaseEnterMaxHeight:oo,pleaseEnter:ao,pleaseEnterWatermark:so,pleaseEnterFileName:co,pleaseUploadAtLeastOnePrintTemplate:lo,pleaseAssignBusiness:fo,pleaseAssignExternal:po},yo="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vo="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_o="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",go="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",mo="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Eo="{caption}\u5FC5\u9808",bo="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wo="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Bo="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ao="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",So="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Fo="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Io="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$o="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Do="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Co="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Oo="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Ro="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Po="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xo="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Mo="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",To="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Lo="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",jo="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",qo="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Vo="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Uo="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",No="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ko="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ho="\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",Wo="\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",zo="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Go="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ko="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Xo="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jo="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zo="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qo="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Yo="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ea="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ta="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",na="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ra="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ia="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ua="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",oa="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",aa="please select control",sa="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ca="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",la="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",fa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",pa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",da="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ya="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",va="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",_a="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ga="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ma="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ea="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ba="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",wa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ba="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Aa="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Sa="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Fa={isNotNumber:yo,isNotString:vo,isNotObject:_o,isNotArray:go,isNotBoolean:mo,runtimeRequired:Eo,pleaseEnterCaption:bo,pleaseEnterCaptionTip:wo,pleaseEnterRowCaption:Bo,pleaseEnterPlaceholder:Ao,pleaseEnterFieldCode:So,pleaseEnterForm:Fo,pleaseEnterList:Io,pleaseEnterProcess:$o,pleaseEnterLabel:Do,pleaseEnterValue:Co,bizKeyNotBindFiled:Oo,pleaseSelectOneField:Ro,pleaseEnterNumberRange:Po,pleaseEnterAValueGreaterThanMin:xo,pleaseEnterAValueLessThanMax:Mo,numberRangeSetError:To,stringRangeError:Lo,attachmentMaxSize:jo,pleaseEnterTotalScoreSetting:qo,theTotalScoreMustNotBeLessThan1:Vo,scoreDefaultValueRange:Uo,attachmentLimitError:No,PleaseReselectTheOptionalQuantity:ko,TheMaximumLengthIsGreaterThanTheMinimumLength:Ho,TheMinimumLengthIsGreaterThanTheMaximumLength:Wo,PleaseSelectTheCorrectOptionSettings:zo,optionIdIsRepeat:Go,optionIsRequired:Ko,pleaseEnterDataCode:Xo,pleaseEnterValueFieldCode:Jo,pleaseEnterSvcCode:Zo,pleaseBindAtLeastOneDisplayValue:Qo,pleaseSelectProvince:Yo,pleaseSelectCity:ea,pleaseSelectDistrict:ta,limitRowsCannotBeLessThan0:na,TheNumberOfRowsCannotBeLessThanMinRows:ra,pleaseEnterColumnWidth:ia,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ua,pleaseCompleteAllRulesAndConditions:oa,pleaseSelectControl:aa,pleaseSelectDashboard:sa,theViewNameCannotBeEmpty:ca,pleaseSelectOcrType:la,pleaseSelectAtLeastOneFieldToFillIn:fa,pleaseChooseAtLeastOne:pa,pleaseEnterButtonContent:da,pleaseEnterDataCodeInDataSetting:ha,pleaseEnterValueFieldCodeInDataSetting:ya,pleaseEnterSvcCodeInDataSetting:va,pleaseBindAtLeastOneDisplayValueInDataSetting:_a,rootNodeIsRequiredInDataSetting:ga,pleaseEnterMaxHeight:ma,pleaseEnter:Ea,pleaseEnterWatermark:ba,pleaseEnterFileName:wa,pleaseUploadAtLeastOnePrintTemplate:Ba,pleaseAssignBusiness:Aa,pleaseAssignExternal:Sa},Ia={zhCN:tu,enUS:ho,jaJP:Fa},En;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(En||(En={}));var bn;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(bn||(bn={}));var $a="zh-CN",Da=function(){};function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(R||(R={}));var h;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(h||(h={}));var U;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(U||(U={}));var P,Ca=(P={},x(P,"array","array-column"),x(P,"auto_number","auto-number-column"),x(P,"decimal","decimal-column"),x(P,"department","department-column"),x(P,"file","file-column"),x(P,"image","image-column"),x(P,"location","location-column"),x(P,"people","employee-column"),x(P,"text","text-column"),x(P,"timescope","timescope-column"),x(P,"timestamp","timestamp-column"),x(P,"varchar","varchar-column"),x(P,"relation","varchar-column"),P),wn;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(wn||(wn={}));var Bn="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Oa=Bn+"0123456789";function st(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?Bn:Oa,i=Math.random()*r.length;t+=r[parseInt(String(i),10)]}return t}function ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ra(e){if(Array.isArray(e))return ct(e)}function Pa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t,n){return In()?Ce=Reflect.construct:Ce=function(i,u,o){var s=[null];s.push.apply(s,u);var c=Function.bind.apply(i,s),a=new c;return o&&_e(a,o.prototype),a},Ce.apply(null,arguments)}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ve(e)}function Sn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}function xa(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ma(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ta(){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 La(e,t){return t&&(ja(t)==="object"||typeof t=="function")?t:Pa(e)}function _e(e,t){return _e=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_e(e,t)}function Fn(e){return Ra(e)||Ma(e)||qa(e)||Ta()}function ja(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function qa(e,t){if(!!e){if(typeof e=="string")return ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ct(e,t)}}function lt(e){var t=typeof Map=="function"?new Map:void 0;return lt=function(r){if(r===null||!xa(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Ce(r,arguments,ve(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_e(i,r)},lt(e)}function In(){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(e){return!1}}function $n(e){var t=In();return function(){var r=ve(e),i;if(t){var u=ve(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return La(this,i)}}var ft=console;function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t.slice(1);(r=ft).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(Fn(i)))}function Dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t.slice(1);(r=ft).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(Fn(i)))}function Va(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var pt=function(e){Sn(n,e);var t=$n(n);function n(r){An(this,n);var i;return i=t.call(this,r),i.name="\u{1F4A5} Driven Error",i.message=r?Va(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",i}return n}(lt(Error)),Ua=function(e){Sn(n,e);var t=$n(n);function n(r){An(this,n);var i;return i=t.call(this,r),i.name="\u{1F6A8} Driven Reference Error",i}return n}(pt);function ge(e){throw new pt(e)}function Cn(e){throw new Ua(e)}function Na(e){ft.error(new pt(e))}var ka=Object.prototype.toString;function On(e,t){return ka.call(e)==="[object "+t+"]"}function Ha(e){return On(e,"String")}function Wa(e){return On(e,"Promise")}var za=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();Wa(r)?r.then(function(i){n._messageCache.clear(),n.messages[n.localeInMessageKey]=i}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var i=this.getMessage(t);return i?this.formatMessage(i,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(i,u,o,s){if(i!==void 0){var c=i[u];if(!(o===s.length-1&&!Ha(c)))return c}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,i){var u=n[i];return u!==void 0?String(u):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ka(e,t,n){return t&&Rn(e.prototype,t),n&&Rn(e,n),e}function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=function(){function e(){Ga(this,e)}return Ka(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$a;return new za({locale:n,messages:Ia})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();Xa(q,"$i18n",q.resetI18n());function Pn(e,t,n){var r=t.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return r.reduce(function(u,o,s,c){var a=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Oe("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return s===c.length-1&&!Object.is(a[o],n)&&(a[o]=n,i=!0),a[o]}},e),i}var Ja=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Za={exports:{}};(function(e){(function(t){var n=function(l,y,b){if(!a(y)||d(y)||v(y)||E(y)||c(y))return y;var B,F=0,W=0;if(f(y))for(B=[],W=y.length;F<W;F++)B.push(n(l,y[F],b));else{B={};for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(B[l(S,b)]=n(l,y[S],b))}return B},r=function(l,y){y=y||{};var b=y.separator||"_",B=y.split||/(?=[A-Z])/;return l.split(B).join(b)},i=function(l){return w(l)?l:(l=l.replace(/[\-_\s]+(.)?/g,function(y,b){return b?b.toUpperCase():""}),l.substr(0,1).toLowerCase()+l.substr(1))},u=function(l){var y=i(l);return y.substr(0,1).toUpperCase()+y.substr(1)},o=function(l,y){return r(l,y).toLowerCase()},s=Object.prototype.toString,c=function(l){return typeof l=="function"},a=function(l){return l===Object(l)},f=function(l){return s.call(l)=="[object Array]"},d=function(l){return s.call(l)=="[object Date]"},v=function(l){return s.call(l)=="[object RegExp]"},E=function(l){return s.call(l)=="[object Boolean]"},w=function(l){return l=l-0,l===l},p=function(l,y){var b=y&&"process"in y?y.process:y;return typeof b!="function"?l:function(B,F){return b(B,l,F)}},_={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(l,y){return n(p(i,y),l)},decamelizeKeys:function(l,y){return n(p(o,y),l,y)},pascalizeKeys:function(l,y){return n(p(u,y),l)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(Ja)})(Za);var xn={};Object.defineProperty(xn,"__esModule",{value:!0});function dt(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:dt(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:dt(r)}return t}}var Qa=xn.default=dt;function Mn(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function te(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":Mn(e))==="object"?Qa(e):e}function ht(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ya(e){return e!=null&&(typeof e=="undefined"?"undefined":Mn(e))==="object"&&Array.isArray(e)===!1}function me(e){return Array.isArray(e)}function yt(e){return typeof e=="string"}function es(e){return Object.values(h).includes(e)}function vt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ts(e){if(Array.isArray(e))return vt(e)}function Tn(e,t,n,r,i,u,o){try{var s=e[u](o),c=s.value}catch(a){n(a);return}s.done?t(c):Promise.resolve(c).then(r,i)}function ns(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(c){Tn(u,r,i,o,s,"next",c)}function s(c){Tn(u,r,i,o,s,"throw",c)}o(void 0)})}}function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t,n){return t&&Ln(e.prototype,t),n&&Ln(e,n),e}function jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function us(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function os(){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 _t(e){return ts(e)||us(e)||as(e)||os()}function as(e,t){if(!!e){if(typeof e=="string")return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vt(e,t)}}function ss(e,t){var n,r,i,u,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var qn=function(){function e(){rs(this,e),jn(this,"_events",new Map),jn(this,"debug",!1)}return is(e,[{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];var o=this;return ns(function(){var s,c,a,f,d,v,E,w,p,_,l,y;return ss(this,function(b){switch(b.label){case 0:if(s=o._events.get(n),c=[],!s)return[3,10];a=s.slice(),f=!0,d=!1,v=void 0,b.label=1;case 1:b.trys.push([1,8,9,10]),E=a[Symbol.iterator](),b.label=2;case 2:if(f=(w=E.next()).done)return[3,7];if(p=w.value,!s.includes(p))return[3,6];b.label=3;case 3:return b.trys.push([3,5,,6]),o.debug&&Dn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(p.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+p.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(_t(i))),[4,p.apply(null,_t(i))];case 4:return _=b.sent(),o.debug&&Dn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(p.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+p.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(_t(i),[_])),c.push(_),_===!1?[3,7]:[3,6];case 5:return l=b.sent(),Na(String(l)+":"+String(l.stack)),[3,6];case 6:return f=!0,[3,2];case 7:return[3,10];case 8:return y=b.sent(),d=!0,v=y,[3,10];case 9:try{!f&&E.return!=null&&E.return()}finally{if(d)throw v}return[7];case 10:return[2,c]}})})()}},{key:"on",value:function(n,r){if(this._events.has(n)){var i;(i=this._events.get(n))===null||i===void 0||i.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var i=this._events.get(n),u=i==null?void 0:i.indexOf(r);i==null||i.splice(u,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ls(e,t,n){return t&&Vn(e.prototype,t),n&&Vn(e,n),e}function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ps=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],Ee=function(){function e(){cs(this,e)}return ls(e,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(i){return r.includes(i.key)})}}]),e}();fs(Ee,"events",ps);function ds(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hs(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=[],Re=function(){function e(t){ds(this,e),ne(this,"registeredControlTypes",new Set),ne(this,"controlConfigMap",new Map),ne(this,"_controls",[]),ne(this,"_type",void 0),this._type=t,this._initControls(t)}return hs(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||ge("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(i){return i.controlType===n.controlType});return r>-1&&(Oe("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===R.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===R.FORM}},{key:"isListControl",value:function(n){return n.controlType===R.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===R.COLUMN}},{key:"createControl",value:function(n,r){var i=this;if(Array.isArray(n))return n.map(function(a){return i.createControl(a,r)});n.children&&(n.children=n.children.map(function(a){return i.createControl(a,r)})),this.isListControl(n)&&n.props.headers&&(n.props.headers=n.props.headers.map(function(a){return i.createControl(a,r)}));var u=this.getControlFormType(n.type);if(u){var o=n;if(typeof r=="function"){var s=r(o);s&&(o=s)}var c=new u(o);return c}else ge("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"createControlInstance",value:function(n,r){var i=this.getControlFormType(n);if(i)return new i(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(i){r.register(i[n])})}}],[{key:"register",value:function(n){var r=n.Designer,i=n.Runtime;(!r||!i||!r.__is_control__||!i.__is_control__)&&ge("".concat(n," is can't register as a Control"));var u=this.staticControls.findIndex(function(o){return o.Designer.controlType===r.controlType});return u>-1&&(Oe("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(u,1)),this.staticRegisteredTypes.add(r.controlType),this.staticControls.push(n),this}}]),e}();ne(Re,"staticControls",Nn),ne(Re,"staticRegisteredTypes",new Set(Nn.map(function(e){return e.Designer.controlType}))),ne(Re,"staticRegisteredConfigs",new Map);function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe=function e(t){gt(this,e),N(this,"dataCode",void 0),N(this,"fieldCode",void 0),N(this,"fieldType",void 0);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var i;this.fieldType=(i=t==null?void 0:t.fieldType)!==null&&i!==void 0?i:""},ys=function e(t){gt(this,e),N(this,"minWidth",void 0),N(this,"maxWidth",void 0),N(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},kn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(kn||(kn={}));var Hn;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions",e.IS_PASTE="isPaste"})(Hn||(Hn={}));var mt;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(mt||(mt={}));var vs=function e(t){gt(this,e),N(this,"width",void 0),N(this,"height",void 0),N(this,"widthConfig",void 0),N(this,"heightConfig",void 0);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var i;this.widthConfig=(i=t==null?void 0:t.widthConfig)!==null&&i!==void 0?i:"fill";var u;this.heightConfig=(u=t==null?void 0:t.heightConfig)!==null&&u!==void 0?u:"fill"};function _s(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t,n){return Wn()?xe=Reflect.construct:xe=function(i,u,o){var s=[null];s.push.apply(s,u);var c=Function.bind.apply(i,s),a=new c;return o&&we(a,o.prototype),a},xe.apply(null,arguments)}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},be(e)}function gs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&we(e,t)}function ms(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Es(e,t){return t&&(bs(t)==="object"||typeof t=="function")?t:_s(e)}function we(e,t){return we=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},we(e,t)}function bs(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function bt(e){var t=typeof Map=="function"?new Map:void 0;return bt=function(r){if(r===null||!ms(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return xe(r,arguments,be(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),we(i,r)},bt(e)}function Wn(){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(e){return!1}}function ws(e){var t=Wn();return function(){var r=be(e),i;if(t){var u=be(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Es(this,i)}}var wt=function e(t){Et(this,e),re(this,"isHide",{type:"boolean"})},zn=function(e){gs(n,e);var t=ws(n);function n(r){return Et(this,n),t.call(this)}return n}(bt(Array)),X=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Et(this,e),re(this,"isHide",void 0),re(this,"className",void 0),re(this,"style",void 0),re(this,"caption",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new vs(t==null?void 0:t.style);var i;this.caption=(i=t==null?void 0:t.caption)!==null&&i!==void 0?i:n};re(X,"Rules",wt),re(X,"RuntimeRules",zn);function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}function Bs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bt(e)}function Me(e,t){return Me=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Me(e,t)}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(e){return!1}}function Te(e,t,n){return As()?Te=Reflect.construct:Te=function(i,u,o){var s=[null];s.push.apply(s,u);var c=Function.bind.apply(i,s),a=new c;return o&&Me(a,o.prototype),a},Te.apply(null,arguments)}function Ss(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function At(e){var t=typeof Map=="function"?new Map:void 0;return At=function(r){if(r===null||!Ss(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Te(r,arguments,Bt(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Me(i,r)},At(e)}var Fs=/%[sdj%]/g,Gn=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Gn=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function St(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],u=t.length;if(typeof i=="function")return i.apply(null,t.slice(1));if(typeof i=="string"){var o=String(i).replace(Fs,function(s){if(s==="%%")return"%";if(r>=u)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(c){return"[Circular]"}break;default:return s}});return o}return i}function Is(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Is(t)&&typeof e=="string"&&!e)}function $s(e,t,n){var r=[],i=0,u=e.length;function o(s){r.push.apply(r,s),i++,i===u&&n(r)}e.forEach(function(s){t(s,o)})}function Kn(e,t,n){var r=0,i=e.length;function u(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?t(e[s],u):n([])}u([])}function Ds(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Xn=function(e){Bs(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(At(Error));function Cs(e,t,n,r){if(t.first){var i=new Promise(function(d,v){var E=function(_){return r(_),_.length?v(new Xn(_,St(_))):d()},w=Ds(e);Kn(w,n,E)});return i.catch(function(d){return d}),i}var u=t.firstFields||[];u===!0&&(u=Object.keys(e));var o=Object.keys(e),s=o.length,c=0,a=[],f=new Promise(function(d,v){var E=function(p){if(a.push.apply(a,p),c++,c===s)return r(a),a.length?v(new Xn(a,St(a))):d()};o.length||(r(a),d()),o.forEach(function(w){var p=e[w];u.indexOf(w)!==-1?Kn(p,n,E):$s(p,n,E)})});return f.catch(function(d){return d}),f}function Jn(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function Zn(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=k(k({},e[n]),r):e[n]=r}}return e}function Qn(e,t,n,r,i,u){e.required&&(!n.hasOwnProperty(e.field)||$(t,u||e.type))&&r.push(M(i.messages.required,e.fullField))}function Os(e,t,n,r,i){(/^\s+$/.test(t)||t==="")&&r.push(M(i.messages.whitespace,e.fullField))}var Ft={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},Be={integer:function(t){return Be.number(t)&&parseInt(t,10)===t},float:function(t){return Be.number(t)&&!Be.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Be.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Ft.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Ft.url)},hex:function(t){return typeof t=="string"&&!!t.match(Ft.hex)}};function Rs(e,t,n,r,i){if(e.required&&t===void 0){Qn(e,t,n,r,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;u.indexOf(o)>-1?Be[o](t)||r.push(M(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(M(i.messages.types[o],e.fullField,e.type))}function Ps(e,t,n,r,i){var u=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a=t,f=null,d=typeof t=="number",v=typeof t=="string",E=Array.isArray(t);if(d?f="number":v?f="string":E&&(f="array"),!f)return!1;E&&(a=t.length),v&&(a=t.replace(c,"_").length),u?a!==e.len&&r.push(M(i.messages[f].len,e.fullField,e.len)):o&&!s&&a<e.min?r.push(M(i.messages[f].min,e.fullField,e.min)):s&&!o&&a>e.max?r.push(M(i.messages[f].max,e.fullField,e.max)):o&&s&&(a<e.min||a>e.max)&&r.push(M(i.messages[f].range,e.fullField,e.min,e.max))}var oe="enum";function xs(e,t,n,r,i){e[oe]=Array.isArray(e[oe])?e[oe]:[],e[oe].indexOf(t)===-1&&r.push(M(i.messages[oe],e.fullField,e[oe].join(", ")))}function Ms(e,t,n,r,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(M(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var u=new RegExp(e.pattern);u.test(t)||r.push(M(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var g={required:Qn,whitespace:Os,type:Rs,range:Ps,enum:xs,pattern:Ms};function Ts(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t,"string")&&!e.required)return n();g.required(e,t,r,u,i,"string"),$(t,"string")||(g.type(e,t,r,u,i),g.range(e,t,r,u,i),g.pattern(e,t,r,u,i),e.whitespace===!0&&g.whitespace(e,t,r,u,i))}n(u)}function Ls(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g.type(e,t,r,u,i)}n(u)}function js(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),$(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function qs(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g.type(e,t,r,u,i)}n(u)}function Vs(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),$(t)||g.type(e,t,r,u,i)}n(u)}function Us(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function Ns(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function ks(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();g.required(e,t,r,u,i,"array"),t!=null&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function Hs(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g.type(e,t,r,u,i)}n(u)}var Ws="enum";function zs(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g[Ws](e,t,r,u,i)}n(u)}function Gs(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t,"string")&&!e.required)return n();g.required(e,t,r,u,i),$(t,"string")||g.pattern(e,t,r,u,i)}n(u)}function Ks(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t,"date")&&!e.required)return n();if(g.required(e,t,r,u,i),!$(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),g.type(e,s,r,u,i),s&&g.range(e,s.getTime(),r,u,i)}}n(u)}function Xs(e,t,n,r,i){var u=[],o=Array.isArray(t)?"array":typeof t;g.required(e,t,r,u,i,o),n(u)}function It(e,t,n,r,i){var u=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if($(t,u)&&!e.required)return n();g.required(e,t,r,o,i,u),$(t,u)||g.type(e,t,r,o,i)}n(o)}function Js(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if($(t)&&!e.required)return n();g.required(e,t,r,u,i)}n(u)}var Ae={string:Ts,method:Ls,number:js,boolean:qs,regexp:Vs,integer:Us,float:Ns,array:ks,object:Hs,enum:zs,pattern:Gs,date:Ks,url:It,hex:It,email:It,required:Xs,any:Js};function $t(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Dt=$t();function J(e){this.rules=null,this._messages=Dt,this.define(e)}J.prototype={messages:function(t){return t&&(this._messages=Zn($t(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var u=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function c(p){var _,l=[],y={};function b(B){if(Array.isArray(B)){var F;l=(F=l).concat.apply(F,B)}else l.push(B)}for(_=0;_<p.length;_++)b(p[_]);l.length?y=St(l):(l=null,y=null),s(l,y)}if(o.messages){var a=this.messages();a===Dt&&(a=$t()),Zn(a,o.messages),o.messages=a}else o.messages=this.messages();var f,d,v={},E=o.keys||Object.keys(this.rules);E.forEach(function(p){f=i.rules[p],d=u[p],f.forEach(function(_){var l=_;typeof l.transform=="function"&&(u===t&&(u=k({},u)),d=u[p]=l.transform(d)),typeof l=="function"?l={validator:l}:l=k({},l),l.validator=i.getValidationMethod(l),l.field=p,l.fullField=l.fullField||p,l.type=i.getType(l),l.validator&&(v[p]=v[p]||[],v[p].push({rule:l,value:d,source:u,field:p}))})});var w={};return Cs(v,o,function(p,_){var l=p.rule,y=(l.type==="object"||l.type==="array")&&(typeof l.fields=="object"||typeof l.defaultField=="object");y=y&&(l.required||!l.required&&p.value),l.field=p.field;function b(W,S){return k(k({},S),{},{fullField:l.fullField+"."+W})}function B(W){W===void 0&&(W=[]);var S=W;if(Array.isArray(S)||(S=[S]),!o.suppressWarning&&S.length&&J.warning("async-validator:",S),S.length&&l.message!==void 0&&(S=[].concat(l.message)),S=S.map(Jn(l)),o.first&&S.length)return w[l.field]=1,_(S);if(!y)_(S);else{if(l.required&&!p.value)return l.message!==void 0?S=[].concat(l.message).map(Jn(l)):o.error&&(S=[o.error(l,M(o.messages.required,l.field))]),_(S);var z={};if(l.defaultField)for(var zr in p.value)p.value.hasOwnProperty(zr)&&(z[zr]=l.defaultField);z=k(k({},z),p.rule.fields);for(var fe in z)if(z.hasOwnProperty(fe)){var ap=Array.isArray(z[fe])?z[fe]:[z[fe]];z[fe]=ap.map(b.bind(null,fe))}var Gr=new J(z);Gr.messages(o.messages),p.rule.options&&(p.rule.options.messages=o.messages,p.rule.options.error=o.error),Gr.validate(p.value,p.rule.options||o,function(gn){var pe=[];S&&S.length&&pe.push.apply(pe,S),gn&&gn.length&&pe.push.apply(pe,gn),_(pe.length?pe:null)})}}var F;l.asyncValidator?F=l.asyncValidator(l,p.value,B,p.source,o):l.validator&&(F=l.validator(l,p.value,B,p.source,o),F===!0?B():F===!1?B(l.message||l.field+" fails"):F instanceof Array?B(F):F instanceof Error&&B(F.message)),F&&F.then&&F.then(function(){return B()},function(W){return B(W)})},function(p){c(p)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Ae.hasOwnProperty(t.type))throw new Error(M("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Ae.required:Ae[this.getType(t)]||!1}},J.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ae[t]=n},J.warning=Gn,J.messages=Dt,J.validators=Ae;var Zs={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 Qs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new J(e);return n.messages(Object.assign(Zs,t)),n}var Yn=new qn;function Ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ys(e){if(Array.isArray(e))return e}function ec(e){if(Array.isArray(e))return Ct(e)}function er(e,t,n,r,i,u,o){try{var s=e[u](o),c=s.value}catch(a){n(a);return}s.done?t(c):Promise.resolve(c).then(r,i)}function tr(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(c){er(u,r,i,o,s,"next",c)}function s(c){er(u,r,i,o,s,"throw",c)}o(void 0)})}}function tc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t,n){return t&&nr(e.prototype,t),n&&nr(e,n),e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ir(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ic(){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(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){A(e,i,n[i])})}return e}function uc(e){return Ys(e)||ir(e)||or(e)||rc()}function Ot(e){return ec(e)||ir(e)||or(e)||ic()}function oc(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function or(e,t){if(!!e){if(typeof e=="string")return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ct(e,t)}}function ar(e,t){var n,r,i,u,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var T=function(){function t(n){var r=this;tc(this,t),A(this,"id",void 0),A(this,"name",void 0),A(this,"icon",void 0),A(this,"type",void 0),A(this,"controlType",void 0),A(this,"props",void 0),A(this,"setting",[]),A(this,"fieldType",void 0),A(this,"eventKeys",[]),A(this,"customEvents",[]),A(this,"parent",null),A(this,"updateSetting",cr),A(this,"removeSetting",sr),this._callControlHooks("preInstance",n);var i=rr(this,t)?this.constructor:void 0,u=i.controlName,o=i.controlIcon,s=i.controlType,c=i.controlFieldType,a=i.controlEventKeys,f=i.controlCustomEvents,d=i.name,v=i.setting;u&&o&&s||Cn("The ".concat(d," controlName,controlIcon,controlType is not define"));var E;this.id=(E=n==null?void 0:n.id)!==null&&E!==void 0?E:st(10),this.name=u,this.icon=o;var w;this.type=(w=n==null?void 0:n.type)!==null&&w!==void 0?w:s,this.props=new X(n==null?void 0:n.props,(rr(this,t)?this.constructor:void 0).controlName);var p;this.controlType=(p=n==null?void 0:n.controlType)!==null&&p!==void 0?p:"base",this.setting=te(v);var _;this.fieldType=(_=n==null?void 0:n.fieldType)!==null&&_!==void 0?_:c,this.eventKeys=te(a),this.customEvents=te(f),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return nc(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];var o,s=uc(i),c=s[0],a=s.slice(1);return(o=Yn).emit.apply(o,[c,this].concat(Ot(a)))}},{key:"preUpdate",value:function(r,i){this._callControlHooks("preUpdateProps",r,i)}},{key:"postUpdate",value:function(r,i){this._callControlHooks("postUpdateProps",r,i)}},{key:"updateProps",value:function(r,i){this.preUpdate(r,i),Pn(this.props,r,i),this.postUpdate(r,i)}},{key:"preValidate",value:function(){var r=this;return tr(function(){var i,u,o;return ar(this,function(s){switch(s.label){case 0:return i=ur({},r.rules),[4,r._callControlHooks("preValidate",i)];case 1:return u=s.sent(),o=u[u.length-1],[2,o===!1?void 0:o]}})})()}},{key:"validate",value:function(r,i){var u=this;return tr(function(){var o,s,c,a;return ar(this,function(f){switch(f.label){case 0:return[4,u.preValidate()];case 1:o=f.sent(),s=o!==void 0?o:ur({},u.rules),Array.isArray(i)&&i.forEach(function(d){s.hasOwnProperty(d)&&delete s[d]}),c=Qs(s,r),f.label=2;case 2:return f.trys.push([2,4,,5]),[4,c.validate(u.props)];case 3:return f.sent(),[2,!0];case 4:throw a=f.sent(),a.control||(a.control=u),a;case 5:return[2]}})})()}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,s=this.props,c=s.dataBind,a=s.datasourceBind,f=s.optionConfig,d=s.caption,v=s.required,E=s.maxLength,w=s.options,p=s.encrypted,_=s.encryptedMode;if(!(!i&&!c&&!a)){var l={parentId:r,fieldType:i,controlId:u,caption:d,type:o,props:{}};switch(c&&(l.dataBind=c),f){case"datasource":case void 0:a&&(l.datasourceBind=a);break;case"custom":l.props.options=w;break}return v!==void 0&&(l.required=v),E!==void 0&&(l.maxLength=E),p!==void 0&&(l.encrypted=p),_!==void 0&&(l.encryptedMode=_),l}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:te(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,i){if(r==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,Ot(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),t}();A(T,"controlName","\u63A7\u4EF6"),A(T,"controlIcon","icon"),A(T,"controlType","control"),A(T,"controlFieldType",void 0),A(T,"controlEventKeys",[]),A(T,"controlCustomEvents",[]),A(T,"setting",[]),A(T,"__is_control__",!0),A(T,"removeSettingItem",sr),A(T,"updateSettingItem",cr);function sr(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var i=typeof r!="string",u=t.setting.findIndex(function(c){return c.key===(i?r.key:r)});if(u!==-1){var o,s;i?t.setting[u].showItems=(o=t.setting[u].showItems)===null||o===void 0?void 0:o.filter(function(c){return!r.hideItems.includes(c)}):t.setting.splice(u,1),i&&!(!((s=t.setting[u].showItems)===null||s===void 0)&&s.length)&&t.setting.splice(u,1)}})}function cr(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(i){var u=n.setting.find(function(a){return a.key===i});if(u){if(typeof t=="boolean")u.visible=t;else if((typeof t=="undefined"?"undefined":oc(t))==="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")u.showItems=t.showItems;else{var c;(c=u.showItems).push.apply(c,Ot(t.showItems))}}}})}function ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sc(e,t,n){return t&&lr(e.prototype,t),n&&lr(e,n),e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cc(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Le=function(){function t(n){ac(this,t),V(this,"id",void 0),V(this,"type",void 0),V(this,"controlType",void 0),V(this,"props",void 0),V(this,"fieldType",void 0),V(this,"customEvents",[]),V(this,"pageStatus",void 0),V(this,"parent",null);var r=cc(this,t)?this.constructor:void 0,i=r.controlType,u=r.controlFieldType,o=r.name,s=r.controlCustomEvents;i||Cn("The ".concat(o," controlType is not define"));var c;this.id=(c=n==null?void 0:n.id)!==null&&c!==void 0?c:st(10);var a;this.type=(a=n==null?void 0:n.type)!==null&&a!==void 0?a:i,this.props=new X(n==null?void 0:n.props),this.customEvents=s;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var d;this.fieldType=(d=n==null?void 0:n.fieldType)!==null&&d!==void 0?d:u;var v;this.pageStatus=(v=n==null?void 0:n.pageStatus)!==null&&v!==void 0?v:mt.UNKNOWN}return sc(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var i=new r(this.props);return Array.from(i)}return[]}}]),t}();V(Le,"controlType","control"),V(Le,"controlFieldType",void 0),V(Le,"__is_control__",!0),V(Le,"controlCustomEvents",[]);function D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},je(e)}function Pt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}function lc(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function fc(e,t){return t&&(pc(t)==="object"||typeof t=="function")?t:D(e)}function xt(e,t){return xt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xt(e,t)}function pc(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function dc(){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(e){return!1}}function Mt(e){var t=dc();return function(){var r=je(e),i;if(t){var u=je(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return fc(this,i)}}var hc=function(e){Pt(n,e);var t=Mt(n);function n(r){Rt(this,n);var i;i=t.call(this,r),I(D(i),"dataBind",{}),I(D(i),"caption",{type:"string",required:!0,message:q.getMessage("pleaseEnterCaption")}),I(D(i),"isHideCaption",{type:"boolean"}),I(D(i),"labelPosition",{type:"enum",enum:["top","left"]}),I(D(i),"defaultState",{type:"enum",enum:["default","readonly"]}),I(D(i),"required",{type:"boolean"}),I(D(i),"captionTip",{type:"string",required:!1,message:q.getMessage("pleaseEnterCaptionTip")});var u={fieldCode:{type:"string",required:!0,message:q.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:q.getMessage("pleaseEnterFieldCode")}};if(lc(r.dataBind,Pe))i.dataBind={type:"object",required:!0,fields:te(u),message:q.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:q.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(s){o.fields[s]={type:"object",required:!0,fields:te(u),message:q.getMessage("pleaseEnterFieldCode")}}),i.dataBind=o}return r.isShowCaptionTip&&(i.captionTip.required=!0),i}return n}(wt),yc=function(e){Pt(n,e);var t=Mt(n);function n(r){Rt(this,n);var i;return i=t.call(this,r),i.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:q.getMessage("runtimeRequired",{caption:r.caption})}),i}return n}(zn),Tt=function(e){Pt(n,e);var t=Mt(n);function n(r){Rt(this,n);var i;i=t.call(this,r),I(D(i),"caption",void 0),I(D(i),"isHideCaption",void 0),I(D(i),"isShowCaptionTip",void 0),I(D(i),"captionTip",void 0),I(D(i),"labelPosition",void 0),I(D(i),"dataBind",void 0),I(D(i),"defaultValue",void 0),I(D(i),"placeholder",void 0),I(D(i),"defaultState",void 0),I(D(i),"required",void 0),I(D(i),"requiredMessage",void 0);var u;i.caption=(u=r==null?void 0:r.caption)!==null&&u!==void 0?u:"";var o;i.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var s;i.isShowCaptionTip=(s=r==null?void 0:r.isShowCaptionTip)!==null&&s!==void 0?s:!1;var c;i.captionTip=(c=r==null?void 0:r.captionTip)!==null&&c!==void 0?c:"";var a;i.defaultState=(a=r==null?void 0:r.defaultState)!==null&&a!==void 0?a:"default";var f;i.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var d;i.placeholder=(d=r==null?void 0:r.placeholder)!==null&&d!==void 0?d:"";var v;i.required=(v=r==null?void 0:r.required)!==null&&v!==void 0?v:!1;var E;i.requiredMessage=(E=r==null?void 0:r.requiredMessage)!==null&&E!==void 0?E:"",i.dataBind=new Pe(r==null?void 0:r.dataBind);var w;return i.defaultValue=(w=r==null?void 0:r.defaultValue)!==null&&w!==void 0?w:"",i}return n}(X);I(Tt,"Rules",hc),I(Tt,"RuntimeRules",yc);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ve(e)}function _c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}function gc(e,t){return t&&(mc(t)==="object"||typeof t=="function")?t:Lt(e)}function jt(e,t){return jt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jt(e,t)}function mc(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ec(){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(e){return!1}}function bc(e){var t=Ec();return function(){var r=Ve(e),i;if(t){var u=Ve(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return gc(this,i)}}var fr=function(e){_c(n,e);var t=bc(n);function n(r){vc(this,n);var i;return i=t.call(this,r),qe(Lt(i),"controlType","form"),qe(Lt(i),"props",void 0),i.props=new Tt(r==null?void 0:r.props),i}return n}(T);qe(fr,"controlEventKeys",["on_change","on_focus","on_blur"]),qe(fr,"controlCustomAttributes",void 0);function wc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ue(e)}function Ac(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}function Sc(e,t){return t&&(Fc(t)==="object"||typeof t=="function")?t:wc(e)}function qt(e,t){return qt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qt(e,t)}function Fc(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ic(){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(e){return!1}}function $c(e){var t=Ic();return function(){var r=Ue(e),i;if(t){var u=Ue(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Sc(this,i)}}var Dc=function(e){Ac(n,e);var t=$c(n);function n(r){return Bc(this,n),t.call(this,r)}return n}(X);function Vt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e){if(Array.isArray(e))return Vt(e)}function Oc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rc(){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 pr(e){return Cc(e)||Oc(e)||Pc(e)||Rc()}function Pc(e,t){if(!!e){if(typeof e=="string")return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(e,t)}}function xc(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function dr(e,t){e.parent=t,xc(e,"parent")}function Mc(e,t){e.forEach(function(n){dr(n,t)})}var hr=Symbol("targetKey");function yr(e){var t;return(t=e[hr])!==null&&t!==void 0?t:e}function vr(e,t){return Mc(e,t),new Proxy(e,{get:function(r,i){for(var u=arguments.length,o=new Array(u>2?u-2:0),s=2;s<u;s++)o[s-2]=arguments[s];var c;return i===hr?r:(c=Reflect).get.apply(c,[r,i].concat(pr(o)))},set:function(r,i,u){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];var a;if(me(e)&&i==="length"&&u===e.length)return!0;var f=(a=Reflect).set.apply(a,[r,i,u].concat(pr(s)));return ht(u)&&dr(u,t),f}})}function _r(e,t,n,r){var i=r!=null?r:e,u=vr(yr(n!=null?n:[]),i);Object.defineProperty(e,t,{get:function(){return u},set:function(s){u=vr(yr(s),i)},enumerable:!0})}function Ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tc(e){if(Array.isArray(e))return Ut(e)}function ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e,t,n,r,i,u,o){try{var s=e[u](o),c=s.value}catch(a){n(a);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Lc(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(c){gr(u,r,i,o,s,"next",c)}function s(c){gr(u,r,i,o,s,"throw",c)}o(void 0)})}}function jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qc(e,t,n){return t&&mr(e.prototype,t),n&&mr(e,n),e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?ae=Reflect.get:ae=function(i,u,o){var s=Kc(i,u);if(!!s){var c=Object.getOwnPropertyDescriptor(s,u);return c.get?c.get.call(o||i):c.value}},ae(e,t,n||e)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Q(e)}function Vc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nt(e,t)}function Uc(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Nc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kc(){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 Hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Z(e,i,n[i])})}return e}function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zc(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wc(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Gc(e,t){return t&&(Xc(t)==="object"||typeof t=="function")?t:ie(e)}function Nt(e,t){return Nt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Nt(e,t)}function Kc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Q(e),e!==null););return e}function Er(e){return Tc(e)||Nc(e)||Jc(e)||kc()}function Xc(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Jc(e,t){if(!!e){if(typeof e=="string")return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}}function Zc(){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(e){return!1}}function Qc(e){var t=Zc();return function(){var r=Q(e),i;if(t){var u=Q(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Gc(this,i)}}function Yc(e,t){var n,r,i,u,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var el=1e4,br=function(t){Vc(r,t);var n=Qc(r);function r(i){jc(this,r);var u;u=n.call(this,i),Z(ie(u),"controlType","layout"),Z(ie(u),"children",void 0),Z(ie(u),"excludes",void 0),Z(ie(u),"childrenMaxLength",void 0),Z(ie(u),"props",void 0);var o=Uc(this,r)?this.constructor:void 0,s=o.excludes,c=o.childrenMaxLength;return u.props=new Dc(i==null?void 0:i.props),_r(ie(u),"children",i==null?void 0:i.children),u.excludes=te(s),u.childrenMaxLength=c,u}return qc(r,[{key:"judgeExcludesChildren",value:function(u){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(u)}},{key:"judgeJoinChildren",value:function(u){var o=this.judgeExcludesChildren(u);return o&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(u,o){var s=this,c=this,a=function(){return ae(Q(r.prototype),"validate",s)};return Lc(function(){return Yc(this,function(f){switch(f.label){case 0:return[4,a().call(c,u,o)];case 1:return f.sent(),[4,Promise.all(c.children.map(function(d){return d.validate(u,o)}))];case 2:return f.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=ae(Q(r.prototype),"toDataBindModel",this).call(this),s=o?[o]:[];return this.children.reduce(function(c,a){var f=a.toDataBindModel(u);if(Array.isArray(f)){var d=f.filter(function(v){return!!v});return Er(c).concat(Er(d))}return f&&c.push(f),c},s)}},{key:"toSchema",value:function(){var u=ae(Q(r.prototype),"toSchema",this).call(this),o=this.children.map(function(s){var c=s.toSchema();return c});return zc(Hc({},u),{children:o})}}]),r}(T);Z(br,"excludes",!1),Z(br,"childrenMaxLength",el);function kt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e){return Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ne(e)}function rl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ht(e,t)}function il(e,t){return t&&(ul(t)==="object"||typeof t=="function")?t:kt(e)}function Ht(e,t){return Ht=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ht(e,t)}function ul(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ol(){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(e){return!1}}function al(e){var t=ol();return function(){var r=Ne(e),i;if(t){var u=Ne(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return il(this,i)}}var sl=function(e){rl(n,e);var t=al(n);function n(r,i){tl(this,n);var u;return u=t.call(this,i),nl(kt(u),"headers",void 0),_r(kt(u),"headers",i==null?void 0:i.headers,r),u}return n}(X);function Wt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cl(e){if(Array.isArray(e))return Wt(e)}function ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wr(e,t,n,r,i,u,o){try{var s=e[u](o),c=s.value}catch(a){n(a);return}s.done?t(c):Promise.resolve(c).then(r,i)}function ll(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(c){wr(u,r,i,o,s,"next",c)}function s(c){wr(u,r,i,o,s,"throw",c)}o(void 0)})}}function fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pl(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?se=Reflect.get:se=function(i,u,o){var s=gl(i,u);if(!!s){var c=Object.getOwnPropertyDescriptor(s,u);return c.get?c.get.call(o||i):c.value}},se(e,t,n||e)}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(e)}function dl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zt(e,t)}function hl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yl(){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 Ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){He(e,i,n[i])})}return e}function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sr(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vl(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function _l(e,t){return t&&(ml(t)==="object"||typeof t=="function")?t:ke(e)}function zt(e,t){return zt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zt(e,t)}function gl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Y(e),e!==null););return e}function Fr(e){return cl(e)||hl(e)||El(e)||yl()}function ml(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function El(e,t){if(!!e){if(typeof e=="string")return Wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wt(e,t)}}function bl(){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(e){return!1}}function wl(e){var t=bl();return function(){var r=Y(e),i;if(t){var u=Y(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return _l(this,i)}}function Bl(e,t){var n,r,i,u,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var Al=function(e){dl(n,e);var t=wl(n);function n(r){fl(this,n);var i;return i=t.call(this,r),He(ke(i),"controlType","list"),He(ke(i),"props",void 0),i.props=new sl(ke(i),r==null?void 0:r.props),i}return pl(n,[{key:"validate",value:function(i,u){var o=this,s=this,c=function(){return se(Y(n.prototype),"validate",o)};return ll(function(){return Bl(this,function(a){switch(a.label){case 0:return[4,c().call(s,i)];case 1:return a.sent(),[4,Promise.all(s.props.headers.map(function(f){return f.validate(i,u)}))];case 2:return a.sent(),[2,!0]}})})()}},{key:"toDataBindModel",value:function(){var i=se(Y(n.prototype),"toDataBindModel",this).call(this),u=i?[i]:[],o=this.id;return this.props.headers.reduce(function(s,c){var a=c.toDataBindModel(o);if(Array.isArray(a)){var f=a.filter(function(d){return!!d});return Fr(s).concat(Fr(f))}return a&&s.push(a),s},u)}},{key:"toSchema",value:function(){var i=se(Y(n.prototype),"toSchema",this).call(this),u=this.props.headers.map(function(o){return o.toSchema()});return Sr(Ar({},i),{props:Sr(Ar({},this.props),{headers:u})})}}]),n}(T);He(Al,"controlFieldType",U.LIST);function L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},We(e)}function $r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gt(e,t)}function Sl(e,t){return t&&(Fl(t)==="object"||typeof t=="function")?t:L(e)}function Gt(e,t){return Gt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Gt(e,t)}function Fl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Il(){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(e){return!1}}function Dr(e){var t=Il();return function(){var r=We(e),i;if(t){var u=We(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Sl(this,i)}}var $l=function(e){$r(n,e);var t=Dr(n);function n(r){Ir(this,n);var i;return i=t.call(this,r),j(L(i),"caption",{type:"string",required:!0,message:q.getMessage("pleaseEnterCaption")}),j(L(i),"width",{type:"number",required:!1,message:q.getMessage("pleaseEnterColumnWidth")}),i.width.required=r.widthType==="px",i}return n}(wt),Dl=function(e){$r(n,e);var t=Dr(n);function n(r){Ir(this,n);var i;i=t.call(this,r),j(L(i),"widthType",void 0),j(L(i),"width",void 0),j(L(i),"caption",void 0),j(L(i),"dataBind",void 0),j(L(i),"autoWidth",void 0),j(L(i),"fixed",void 0),j(L(i),"sort",void 0),j(L(i),"align",void 0),j(L(i),"colSpan",void 0),j(L(i),"autoHeight",void 0);var u;i.width=(u=r==null?void 0:r.width)!==null&&u!==void 0?u:150,i.widthType=(r==null?void 0:r.widthType)||"auto";var o;i.caption=(o=r==null?void 0:r.caption)!==null&&o!==void 0?o:"";var s;i.fixed=(s=r==null?void 0:r.fixed)!==null&&s!==void 0?s:"none",i.autoWidth=new ys(r==null?void 0:r.autoWidth),i.dataBind=new Pe(r==null?void 0:r.dataBind);var c;i.sort=(c=r==null?void 0:r.sort)!==null&&c!==void 0?c:!0,i.align=r==null?void 0:r.align,i.colSpan=r==null?void 0:r.colSpan;var a;return i.autoHeight=(a=r==null?void 0:r.autoHeight)!==null&&a!==void 0?a:!1,i}return n}(X);j(Dl,"Rules",$l);function Kt(e){return"children"in e&&me(e.children)}function Cr(e){return"headers"in e.props&&me(e.props.headers)}function ze(e,t){Array.isArray(e)&&e.map(n=>{n.type===h.SUBTABLE?ze(n.props.headers,t):Kt(n)?ze(n==null?void 0:n.children,t):n.controlType===R.FORM&&t(n)})}const Or=[h.AMOUNT,h.CALC,h.DATE_RANGE],Rr={amount:{caption:"\u91D1\u989D",fieldType:U.DECIMAL},currency:{caption:"\u5E01\u79CD",fieldType:U.VARCHAR},result:{caption:"\u7ED3\u679C",fieldType:U.DECIMAL},unit:{caption:"\u5355\u4F4D",fieldType:U.VARCHAR},min:{caption:"\u5F00\u59CB\u65F6\u95F4",fieldType:U.TIMESTAMP},max:{caption:"\u7ED3\u675F\u65F6\u95F4",fieldType:U.TIMESTAMP}};function Cl(e){let t=[];return ze(e,n=>{n.controlType===R.FORM?t.push(n):(n.type,h.SUBTABLE)}),t}function Ol(e,t=""){return!e||!Array.isArray(e)?[]:e.map(n=>{if(!n.dataBind||n.type===h.TITLE)return n;if(Or.includes(n.type)){const r=n.dataBind;Object.keys(r).forEach(i=>{const u=r[i],o=n.controlId+"_"+i;u.fieldCode=Pr(o),u.dataCode=t})}else n.dataBind.fieldCode=Pr(n.controlId),n.dataBind.dataCode=t;return n})}function Pr(e){const t="field_";return e.startsWith(t)?e:t+e}function Ge(e){return Ca[e]}function Rl(e){const t=new ee,n=[];return e.forEach(r=>{if(!(r.parentId||!r.dataBind))if(Or.includes(r.type)){const i=r.dataBind,u=r.datasourceBind;Object.keys(i).forEach(o=>{const s=i[o],c=Rr[o].fieldType,a=r.caption+"_"+Rr[o].caption,f=Ge(c);if(!f)return;const d={caption:a,dataBind:s};o==="currency"&&(d.optionConfig="datasource",d.datasourceBind=u);const v=t.createControlInstance(f,{props:d});v&&n.push(v)})}else{const i=Ge(r.fieldType);if(!i)return;const u=t.createControlInstance(i,{props:{caption:r.caption,dataBind:r.dataBind,datasourceBind:r.datasourceBind}});u&&n.push(u)}}),n}function Pl(e){const t=new ee,r=(Array.isArray(e)?e:[e]).map(i=>{const u=Ge(i);return t.createControlInstance(u)});return Array.isArray(e)?r:r[0]}function Xt(e){return Array.isArray(e)?e.map(t=>t.toSchema()):e.toSchema()}function Jt(e){return Array.isArray(e)?e.map(t=>t.toDataBindModel()).filter(t=>!!t).flat():e.toDataBindModel()}function Zt(e,t,n){return mn(this,null,function*(){return Array.isArray(e)?(yield Promise.all(e.map(i=>i.validate(t,n)))).every(i=>i):yield e.validate(t,n)})}const xl=[h.TITLE,h.GRID_TABLE_COLUMN,h.SUBTABLE_COLUMN,h.OPERATION_COLUMN,h.DATA_VIEW,h.LIST_VIEW,h.HEADER,h.FOOTER,h.SIMPLE_SEARCH,h.ROW,h.GRID_ROW,h.COL,h.GRID,h.DIVIDER,h.TAB_PANE,h.TAB,h.CARD_GROUP],Ml=[h.CALC],Tl={check:{id:"listPageCheckBtnId",caption:"\u67E5\u770B"},edit:{id:"listPageEditBtnId",caption:"\u7F16\u8F91"},delete:{id:"listPageDeleteBtnId",caption:"\u5220\u9664"}};function Se(e,t){var r,i,u,o,s,c,a,f,d;const n=[];if(me(e))n.push(...e.map(v=>Se(v,t)).flat());else{const v=e.type,{caption:E,content:w}=e.props;let p;if(xl.includes(v))v===h.OPERATION_COLUMN&&Object.entries(Tl).reduce((_,[l,{caption:y,id:b}])=>{var F;const B=e.props[l];return B&&B.isShow&&_.push({controlId:b,caption:y,type:e.type,controlType:e.controlType,parentId:(F=t==null?void 0:t.controlId)!=null?F:null,canEdit:!1,canRead:!1,canHide:!0,group:"element"}),_},n);else if(p={controlId:e.id,caption:E||w||e.name,type:e.type,controlType:e.controlType,parentId:(r=t==null?void 0:t.controlId)!=null?r:null,canEdit:!Ml.includes(v),canRead:!0,canHide:!0,group:"element"},t&&t.type===h.SUBTABLE&&(p.caption=t.caption+"_"+p.caption),v===h.VUE_FORM_ITEM&&(p.caption=e.props.controlExportName||e.name),(e.controlType===R.FORM||e.controlType===R.COLUMN)&&((u=(i=e.props)==null?void 0:i.dataBind)==null?void 0:u.fieldCode)!==void 0&&((s=(o=e.props)==null?void 0:o.dataBind)==null?void 0:s.fieldCode)!==""&&(p.group="field"),n.push(p),v===h.VUE_FORM_ITEM){let _="element";((a=(c=e.props)==null?void 0:c.dataBind)==null?void 0:a.fieldCode)!==void 0&&((d=(f=e.props)==null?void 0:f.dataBind)==null?void 0:d.fieldCode)!==""&&(_="field");const l=e.props.permissions;l==null||l.map(y=>{var b;p={controlId:y.key,caption:y.caption,type:e.type,controlType:e.controlType,parentId:(b=e.id)!=null?b:null,canEdit:!0,canRead:!0,canHide:!0,group:_},n.push(p)})}e.children&&n.push(...e.children.map(_=>Se(_,t)).flat()),e.controlType===R.LIST&&n.push(...e.props.headers.map(_=>Se(_,p)).flat())}return n}class ee extends Re{constructor(){super("Designer"),this.toolbox=[],this.services={},this.eventLogic=new Ee,this.fieldTypes=U,this.controlSettingMap=new Map,new.target.staticControls.forEach(t=>{const{Designer:n,Setting:r}=t;this.controlSettingMap.set(n.controlType,r)})}registerControl(t){this.constructor.register(t);const{Designer:n,Setting:r}=t;this.register(n),this.registeredControlTypes.add(n.controlType),this.controlSettingMap.set(n.controlType,r)}getControlSetting(t){const n=this.controlSettingMap.get(t);return n||null}setInstance(t,n,r){try{if(!t)return;t.updateProps(n,r)}catch(i){throw i}}eachControls(t){this.getControls().forEach(t)}getInitControl(){return[this.createControlInstance("grid")]}checkSchema(...t){return mn(this,null,function*(){return Zt(...t)})}getModelBindInfoList(...t){return Jt(...t)}getSchema(...t){return Xt(...t)}listenControlHook(...t){return Yn.on(...t)}}ee.EventLogic=Ee;class Ll{constructor(){this.designer=new ee}ListPageBuilder(){const t=this.designer.createControlInstance(h.LIST_VIEW),n=this.designer.createControlInstance(h.SIMPLE_SEARCH),r=this.designer.createControlInstance(h.GRID_TABLE),i=this.designer.createControlInstance(h.CREATE_FORM_LIST_BUTTON),u=this.designer.createControlInstance(h.IMPORT_RECORD_LIST_BUTTON),o=this.designer.createControlInstance(h.EXPORT_LIST_BUTTON),s=this.designer.createControlInstance(h.EXPORT_RECORD_LIST_BUTTON);return r.children.push(i),r.children.push(u),r.children.push(o),r.children.push(s),t.children.push(n),t.children.push(r),t}ProListPageBuilder(){const t=this.designer.createControlInstance(h.LIST_VIEW);t.props.countType="async";const n=this.designer.createControlInstance(h.SIMPLE_SEARCH),r=this.designer.createControlInstance(h.GRID_TABLE),i=this.designer.createControlInstance(h.EXPORT_LIST_BUTTON),u=this.designer.createControlInstance(h.EXPORT_RECORD_LIST_BUTTON);return r.children.push(i),r.children.push(u),t.children.push(n),t.children.push(r),t}FormPageBuilder(){const t=this.designer.createControlInstance(h.DATA_VIEW),n=this.designer.createControlInstance(h.TITLE),r=this.designer.createControlInstance(h.GRID);return t.children.push(n),t.children.push(r),t}VuePageBuilder(){const t=this.designer.createControlInstance(h.GRID),n=this.designer.createControlInstance(h.VUE_FORM_ITEM);return n.props.isHideCaption=!0,n.props.controlExportName="VuePage",t.children.push(n),t}}function jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ql(e,t,n){return t&&xr(e.prototype,t),n&&xr(e,n),e}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(){function e(t){jl(this,e),Mr(this,"visible",void 0),Mr(this,"expression",void 0);var n;this.visible=(n=t==null?void 0:t.visible)!==null&&n!==void 0?n:!0;var r;this.expression=(r=t==null?void 0:t.expression)!==null&&r!==void 0?r:!1}return ql(e,[{key:"isAtomicComponent",get:function(){return!0}}]),e}();function Vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ul(e,t,n){return t&&Tr(e.prototype,t),n&&Tr(e,n),e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nl=function(){function e(t){Vl(this,e),H(this,"type",void 0),H(this,"label",void 0),H(this,"key",void 0),H(this,"component",void 0),H(this,"effect",void 0),H(this,"scopeEffect",void 0),H(this,"defaultValue",void 0),H(this,"validator",void 0),H(this,"props",void 0),H(this,"effectKeys",void 0),this.type=t.type,this.label=t.label,this.key=t.key,this.component=t.component;var n;this.effect=(n=t.effect)!==null&&n!==void 0?n:{};var r;this.scopeEffect=(r=t.scopeEffect)!==null&&r!==void 0?r:Da,this.defaultValue=t.defaultValue,this.validator=t.validator;var i;this.props=(i=t.props)!==null&&i!==void 0?i:new K,this.effectKeys=Object.keys(this.effect)}return Ul(e,[{key:"filterEffects",value:function(n){var r=this;return n===""?Object.values(this.effect):this.effectKeys.filter(function(i){var u=new RegExp("^".concat(i,"(\\.\\w+)*$"));return u.test(n)}).map(function(i){return r.effect[i]})}},{key:"callEffectFn",value:function(n,r){try{var i=n.apply(null,r);ht(i)&&Object.assign(this.props,i)}catch(u){ge(`effect error
2
- `.concat(u))}}},{key:"callEffect",value:function(n){for(var r=this,i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];this.filterEffects(n).forEach(function(s){return r.callEffectFn(s,u)})}},{key:"callScopeEffect",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];this.callEffectFn(this.scopeEffect,r)}}]),e}();function kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qt=function e(t){kl(this,e),ce(this,"type","group"),ce(this,"title",void 0),ce(this,"required",void 0),ce(this,"items",void 0),ce(this,"tips",void 0),ce(this,"fromId",void 0);var n;this.title=(n=t.title)!==null&&n!==void 0?n:"";var r;this.required=(r=t.required)!==null&&r!==void 0?r:!1,this.items=t.items,this.tips=t.tips};function Hl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wl(e){return"type"in e&&e.type==="tab"}var en=function e(t){Hl(this,e),Yt(this,"type","tab"),Yt(this,"title",void 0),Yt(this,"items",void 0),this.title=t.title,this.items=t.items};function Lr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zl(e){if(Array.isArray(e))return e}function Gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ke(e)}function Xl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}function Jl(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,u=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(c){u=!0,s=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(u)throw s}}return r}}function Zl(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ql(e,t){return t&&(ef(t)==="object"||typeof t=="function")?t:Gl(e)}function tn(e,t){return tn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tn(e,t)}function Yl(e,t){return zl(e)||Jl(e,t)||tf(e,t)||Zl()}function ef(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function tf(e,t){if(!!e){if(typeof e=="string")return Lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lr(e,t)}}function nf(){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(e){return!1}}function rf(e){var t=nf();return function(){var r=Ke(e),i;if(t){var u=Ke(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Ql(this,i)}}var uf=function(e){Xl(n,e);var t=rf(n);function n(r){Kl(this,n);var i;return i=t.call(this,r),ht(r)&&Object.entries(r).forEach(function(u){var o=Yl(u,2),s=o[0],c=o[1];i[s]=c}),i}return n}(K);function Fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function of(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Je(e)}function af(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nn(e,t)}function sf(e,t){return t&&(cf(t)==="object"||typeof t=="function")?t:Fe(e)}function nn(e,t){return nn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nn(e,t)}function cf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function lf(){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(e){return!1}}function ff(e){var t=lf();return function(){var r=Je(e),i;if(t){var u=Je(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return sf(this,i)}}var pf=function(e){af(n,e);var t=ff(n);function n(r){of(this,n);var i;i=t.call(this,r),Xe(Fe(i),"maxLength",void 0),Xe(Fe(i),"minLength",void 0),Xe(Fe(i),"placeholder",void 0),Xe(Fe(i),"i18n",void 0);var u;i.maxLength=(u=r==null?void 0:r.maxLength)!==null&&u!==void 0?u:"";var o;i.minLength=(o=r==null?void 0:r.minLength)!==null&&o!==void 0?o:"";var s;i.placeholder=(s=r==null?void 0:r.placeholder)!==null&&s!==void 0?s:"";var c;return i.i18n=(c=r==null?void 0:r.i18n)!==null&&c!==void 0?c:!1,i}return n}(K);function Ze(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qe(e)}function hf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&un(e,t)}function yf(e,t){return t&&(vf(t)==="object"||typeof t=="function")?t:Ze(e)}function un(e,t){return un=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},un(e,t)}function vf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function _f(){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(e){return!1}}function gf(e){var t=_f();return function(){var r=Qe(e),i;if(t){var u=Qe(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return yf(this,i)}}var mf=function(e){hf(n,e);var t=gf(n);function n(r){df(this,n);var i;i=t.call(this,r),rn(Ze(i),"max",void 0),rn(Ze(i),"min",void 0),rn(Ze(i),"placeholder",void 0);var u;i.max=(u=r==null?void 0:r.max)!==null&&u!==void 0?u:"";var o;i.min=(o=r==null?void 0:r.min)!==null&&o!==void 0?o:"";var s;return i.placeholder=(s=r==null?void 0:r.placeholder)!==null&&s!==void 0?s:"",i}return n}(K);function Ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ef(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function bf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&an(e,t)}function wf(e,t){return t&&(Bf(t)==="object"||typeof t=="function")?t:Ye(e)}function an(e,t){return an=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},an(e,t)}function Bf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Af(){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(e){return!1}}function Sf(e){var t=Af();return function(){var r=et(e),i;if(t){var u=et(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return wf(this,i)}}var Ff=function(e){bf(n,e);var t=Sf(n);function n(r){Ef(this,n);var i;i=t.call(this,r),on(Ye(i),"showType",void 0),on(Ye(i),"tips",void 0),on(Ye(i),"disabled",void 0);var u;i.showType=(u=r==null?void 0:r.showType)!==null&&u!==void 0?u:"switch";var o;i.tips=(o=r==null?void 0:r.tips)!==null&&o!==void 0?o:"";var s;return i.disabled=(s=r==null?void 0:r.disabled)!==null&&s!==void 0?s:!1,i}return n}(K);function jr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function If(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e){return tt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tt(e)}function Df(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sn(e,t)}function Cf(e,t){return t&&(Of(t)==="object"||typeof t=="function")?t:jr(e)}function sn(e,t){return sn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sn(e,t)}function Of(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Rf(){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(e){return!1}}function Pf(e){var t=Rf();return function(){var r=tt(e),i;if(t){var u=tt(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Cf(this,i)}}var xf=function(e){Df(n,e);var t=Pf(n);function n(r){If(this,n);var i;i=t.call(this,r),$f(jr(i),"options",void 0);var u;return i.options=(u=r==null?void 0:r.options)!==null&&u!==void 0?u:[],i}return n}(K);function cn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nt(e)}function Tf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ln(e,t)}function Lf(e,t){return t&&(jf(t)==="object"||typeof t=="function")?t:cn(e)}function ln(e,t){return ln=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ln(e,t)}function jf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function qf(){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(e){return!1}}function Vf(e){var t=qf();return function(){var r=nt(e),i;if(t){var u=nt(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Lf(this,i)}}var Uf=function(e){Tf(n,e);var t=Vf(n);function n(r){Mf(this,n);var i;i=t.call(this,r),qr(cn(i),"placeholder",void 0),qr(cn(i),"options",void 0);var u;i.placeholder=(u=r==null?void 0:r.placeholder)!==null&&u!==void 0?u:"";var o;return i.options=(o=r==null?void 0:r.options)!==null&&o!==void 0?o:[],i}return n}(K);function fn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rt(e)}function kf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pn(e,t)}function Hf(e,t){return t&&(Wf(t)==="object"||typeof t=="function")?t:fn(e)}function pn(e,t){return pn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},pn(e,t)}function Wf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function zf(){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(e){return!1}}function Gf(e){var t=zf();return function(){var r=rt(e),i;if(t){var u=rt(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Hf(this,i)}}var Kf=function(e){kf(n,e);var t=Gf(n);function n(r){Nf(this,n);var i;i=t.call(this,r),Vr(fn(i),"options",void 0),Vr(fn(i),"showType",void 0);var u;i.options=(u=r==null?void 0:r.options)!==null&&u!==void 0?u:[];var o;return i.showType=(o=r==null?void 0:r.showType)!==null&&o!==void 0?o:"outline",i}return n}(K);function ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},it(e)}function Jf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dn(e,t)}function Zf(e,t){return t&&(Qf(t)==="object"||typeof t=="function")?t:ue(e)}function dn(e,t){return dn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},dn(e,t)}function Qf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Yf(){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(e){return!1}}function ep(e){var t=Yf();return function(){var r=it(e),i;if(t){var u=it(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Zf(this,i)}}var tp=function(e){Jf(n,e);var t=ep(n);function n(r){Xf(this,n);var i;i=t.call(this,r),le(ue(i),"maxLength",void 0),le(ue(i),"minLength",void 0),le(ue(i),"placeholder",void 0),le(ue(i),"i18n",void 0),le(ue(i),"maxRows",void 0),le(ue(i),"minRows",void 0);var u;i.maxLength=(u=r==null?void 0:r.maxLength)!==null&&u!==void 0?u:"";var o;i.minLength=(o=r==null?void 0:r.minLength)!==null&&o!==void 0?o:"";var s;i.placeholder=(s=r==null?void 0:r.placeholder)!==null&&s!==void 0?s:"";var c;i.maxRows=(c=r==null?void 0:r.maxRows)!==null&&c!==void 0?c:"";var a;i.minRows=(a=r==null?void 0:r.minRows)!==null&&a!==void 0?a:"";var f;return i.i18n=(f=r==null?void 0:r.i18n)!==null&&f!==void 0?f:!1,i}return n}(K);function np(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){np(e,i,n[i])})}return e}function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yn(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rp(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ip(e,t){switch(e){case"input":return new pf(t);case"textarea":return new tp(t);case"input-number":return new mf(t);case"switch":return new Ff(t);case"radio":return new Kf(t);case"checkbox":return new xf(t);case"select":return new Uf(t);default:return new uf(t)}}function up(e){return function(t){var n=e.get(t);if(!!n)return new Nl(yn(hn({},n),{props:ip(n.component,"props"in n?n.props:void 0)}))}}function op(e){var t=e.fields.reduce(function(i,u){return i.set(u.key,u),i},new Map);function n(i){return new Qt(yn(hn({},i),{items:i.items.map(up(t)).filter(Boolean)}))}function r(i){return i.map(n)}return e.groups.map(function(i){return Wl(i)?new en(yn(hn({},i),{items:r(i.items)})):n(i)})}class Ur{constructor(t){var n;this.selected=null,this.selectedInstanceDataScopeParent=null,this.selectedDataScopeFlatInstances=[],this.selectedInstanceSetting=[],this.selectedInstanceSettingItems=[],this.selectedFieldItem=null,this.external={},this.movingInstance=null,this.movingInstanceOldParent=null,this.movingInstanceOldDataScopeParent=null,this.getParentBeforeInstanceMove=(n=t.getParentBeforeInstanceMove)!=null?n:r=>r.parent,this.instance=t.instance,this.getFlatInstances()}get selectedRules(){return this.selected?this.selected.rules:null}get selectedAntdRules(){const t=this.selectedRules;return t||null}setInstances(t){this.instance=t,this.getFlatInstances()}setSelectInstance(t){this.selected=t,this.selectedInstanceDataScopeParent=t?$e(t):null,this.selectedDataScopeFlatInstances=this.selectedInstanceDataScopeParent?Hr(this.selectedInstanceDataScopeParent):[]}setSelectInstanceSettings(t){this.selectedInstanceSetting=t,this.selectedInstanceSettingItems=[],this.selectedInstanceSetting.forEach(n=>{this.selectedInstanceSettingItems.push(...this.getSettingItems(n))})}getSettingItems(t){return t instanceof Qt?t.items:t.items.reduce((n,r)=>(n.push(...r.items),n),[])}setSelectedFieldItem(t){this.selectedFieldItem=t}setMovingInstance(t){this.movingInstance=t,this.movingInstanceOldParent=t?this.getParentBeforeInstanceMove(t):null,this.movingInstanceOldDataScopeParent=$e(t)}updateDataFieldCodeMap(t){const n=$e(t);if(!n)return;const r=this.dataFieldCodeMap.get(n.props.datasourceBind.dataCode);if(!!r){for(const[i,u]of r.entries())if(u.id===t.id){r.delete(i);break}kr(t,this.dataFieldCodeMap)}}getFlatInstances(){const t=[],n=new Map,r=new Map;Ie(this.instance,i=>{t.push(i),n.set(i.id,i),kr(i,r)}),this.flatInstances=t,this.instanceIdMap=n,this.dataFieldCodeMap=r}}function Nr(e,t,n){const{dataCode:r,fieldCode:i}=t;r&&i&&(e.has(r)||e.set(r,new Map),e.get(r).set(i,n))}function kr(e,t){if(e.controlType===R.FORM){const n=e.props.dataBind;n instanceof Pe?Nr(t,n,e):Object.values(n).forEach(r=>{Nr(t,r,e)})}}function Ie(e,t){(Array.isArray(e)?e:[e]).forEach(r=>{t(r),Kt(r)&&Ie(r.children,t),Cr(r)&&Ie(r.props.headers,t)})}function vn(e){return[h.SUBTABLE,h.DATA_VIEW,h.LIST_VIEW].includes(e.type)}function $e(e){let t=e?e.parent:null;if(!t)return null;for(;t&&!vn(t);)t=t.parent;return t}function Hr(e){const t=[e];return Ie(e,n=>{n!==e&&t.includes(n.parent)&&!vn(n)&&t.push(n)}),t}let _n="";class Wr extends qn{constructor(t){super(),this.isMounted=!1,this.id=st(8),this.__pluginsApplied=!1,this.getSchema=Xt,this.getModelBindInfoList=Jt,this.generatePermissions=Se,this.$options=Object.freeze(t);const{autoMount:n=!1,Designer:r=ee,schema:i,mode:u="form",store:o={}}=this.$options;this.eventLogic=new Ee,this.designer=new r,this.store=new Ur(de({instance:this.designer.createControl(Array.isArray(i)?i:[i])},o)),this.mode=u,n&&this.mount()}mount(){const{plugins:t=[]}=this.$options;this.__plugins=t,this.applyPlugins(),this.isMounted=!0}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{_n=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this),_n=""}catch(r){ge(`${_n||t.constructor.name} Plugin apply Error
3
- ${r}`)}}),this.__pluginsApplied=!0)}emit(t,...n){return super.emit(t,n)}on(t,n){return super.on(t,n)}setInstances(t,n){this.store.setInstances(this.designer.createControl(Array.isArray(t)?t:[t],n))}beforeSelectInstance(){this.store.setSelectInstance(null),this.setSelectedFieldItem(null),this.store.setSelectInstanceSettings([])}afterSelectInstance(){const t=this.store.selected;!t||(this.setSelectedInstanceSetting(),this.emit("select",{instance:t}))}setSelectedInstanceSetting(){var i,u;const t=this.store.selected;if(!t)return;let n=this.getControlSetting(t.type);if(((i=t.parent)==null?void 0:i.controlType)===R.WRAP){const o=this.getControlSetting((u=t.parent)==null?void 0:u.type);n=this.concatSetting(n,o,t.parent.id)}this.store.setSelectInstanceSettings(n),this.callSelectedEffect("");const r={from:null,current:this.store.selectedInstanceDataScopeParent,oldParent:null,newParent:t.parent};this.callSelectedScopeEffect(r)}concatSetting(t,n,r){var u,o,s,c;let i=t;if(((u=t[0])==null?void 0:u.type)==="tab"&&((o=n[0])==null?void 0:o.type)==="tab"){const a=t,f=n.slice(0);i=a.map((d,v)=>{const E=new en(d),w=f.findIndex(_=>_.title===d.title);if(w===-1)return E;const p=f.splice(w,1)[0];return p&&(E.items=[...this.formatGroupSetting(p.items,r),...E.items]),E}),f.length&&(i=[...i,...f.map(d=>this.formatGroupSetting(d,r))])}else if(((s=t[0])==null?void 0:s.type)==="group"&&((c=n[0])==null?void 0:c.type)==="group"){const a=t,f=n;i=[...this.formatGroupSetting(f,r),...a]}return i}formatGroupSetting(t,n){if(me(t))return t.map(r=>{const i=new Qt(r);return i.fromId=n,i});{const r=new en(t);return r.items=this.formatGroupSetting(r.items,n),r}}setControlConfig(...t){return this.designer.registerControlConfig(...t)}getControlConfig(t){return this.designer.getControlConfig(t)}getControlSetting(t){const n=this.designer.getControlSetting(t);return n?op(n):[]}selectInstance(t){this.beforeSelectInstance(),this.store.setSelectInstance(t),this.afterSelectInstance()}setSelectedFieldItem(t){this.store.setSelectedFieldItem(t),this.callSelectedEffect("dataBind",{fieldItem:t})}moveStart(t){const n=this.getInstance(t);n&&this.store.setMovingInstance(n)}moveEnd(t=this.store.movingInstance){var c;if(t===null)return;const n=this.getInstance(t);if(!n)return;const r=this.store.movingInstanceOldDataScopeParent,i=$e(n),u=this.store.movingInstanceOldParent,o=n.parent;this.store.setMovingInstance(null),n.id!==((c=this.store.selected)==null?void 0:c.id)?this.selectInstance(n):this.store.setSelectInstance(n),this.store.getFlatInstances();const s={from:r,current:i,oldParent:u,newParent:o};this.callSelectedScopeEffect(s),u?this.emit("moved",de({},s)):this.emit("joined",de({},s))}createInstance(t,n){return this.designer.createControlInstance(t,n)}getInstance(t){return typeof t=="string"?this.store.instanceIdMap.get(t):t}getInstances(){return this.store.flatInstances}getInstancesFromType(t){return this.getInstances().filter(n=>n.type===t)}getDataScopeInstances(){return this.store.selectedDataScopeFlatInstances}getDataScopeInstancesFromType(t){return this.getDataScopeInstances().filter(n=>n.type===t)}updateInstancePropValue(t,n,r,i){var o;!Pn(t.props,n,r)||(n.startsWith("dataBind")&&this.store.updateDataFieldCodeMap(t),t.id===((o=this.store.selected)==null?void 0:o.id)&&this.callSelectedEffect(n,i),this.emit("updated",{instance:t,propName:n,value:r}))}updateInstanceProps(t,n,r,i=""){Object.entries(n).forEach(([u,o])=>{const s=`${i?i+".":""}${u}`;Ya(o)?this.updateInstanceProps(t,o,r,s):this.updateInstancePropValue(t,s,o,r)})}setInstance(t,n,r,i){yt(n)?this.updateInstancePropValue(t,String(n),r,i):this.updateInstanceProps(t,n,r)}removeInstance(t){const n=t.parent;if(!n)return;const r=n.controlType===R.LIST&&n.props.headers.includes(t)?n.props.headers:n.children,i=r.findIndex(u=>u===t);i>-1&&r.splice(i,1),this.store.getFlatInstances(),this.emit("removed",{instance:t,index:i,parent:n})}replaceInstance(t,n){const r=t.parent;if(!r)return;const i=r.controlType===R.LIST&&r.props.headers.includes(t)?r.props.headers:r.children,u=i.findIndex(o=>o===t);u>-1&&i.splice(u,1,n),this.store.getFlatInstances()}updateInstanceType(t,n){const r=t.toSchema(),i=this.createInstance(n,{id:r.id,props:r.props});if(!i){Oe(`can\u2018t update instance type to ${n}`);return}return i}validate(t,n){return Zt(this.store.instance,t,n)}getCustomControlsInUse(){return this.getInstances().filter(this.assertInstanceIsCustomControl).reduce((t,n)=>(t.includes(n.type)||t.push(n.type),t),[])}assertInstanceIsCustomControl(t){return!es(yt(t)?t:t.type)}static register(...t){return ee.register(...t),this}static judgeControlIsRegistered(t){return ee.staticRegisteredTypes.has(t.Designer.controlType)}judgeControlIsRegistered(t){return this.designer.registeredControlTypes.has(t.Designer.controlType)}register(...t){return this.designer.registerControl(...t),this}assertInstance(t,n){return yt(n)?t.type===n:n.includes(t.type)}getInstanceInListControl(t){let n=t;for(;n;){if(n.controlType===R.LIST)return!0;n=n.parent}return!1}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}callSelectedEffect(t,n={}){this.store.selectedInstanceSettingItems.forEach(r=>{r.callEffect(t,this,de({control:this.store.selected},n))})}callSelectedScopeEffect(t={}){this.store.selectedInstanceSettingItems.forEach(n=>{n.callScopeEffect(this,de({control:this.store.selected},t))})}}Wr.EventLogic=Ee,m.Builder=Ll,m.Designer=ee,m.Driven=Wr,m.Store=Ur,m.checkSchema=Zt,m.fillModelBindInfoListFieldCode=Ol,m.findInstanceDataScopeParent=$e,m.generatePermissions=Se,m.getColumnTypeFromFiledType=Ge,m.getColumnsFromFiledType=Pl,m.getColumnsFromModelBindInfoList=Rl,m.getDataScopeFlatInstances=Hr,m.getMasterFormControls=Cl,m.getModelBindInfoList=Jt,m.hasChildrenControl=Kt,m.hasHeaderControl=Cr,m.isDataScopeInstance=vn,m.loop=Ie,m.loopFormControl=ze,m.toSchema=Xt,Object.defineProperty(m,"__esModule",{value:!0})});
1
+ var rp=Object.defineProperty;var Hr=Object.getOwnPropertySymbols;var ip=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable;var Gr=(m,$,C)=>$ in m?rp(m,$,{enumerable:!0,configurable:!0,writable:!0,value:C}):m[$]=C,se=(m,$)=>{for(var C in $||($={}))ip.call($,C)&&Gr(m,C,$[C]);if(Hr)for(var C of Hr($))up.call($,C)&&Gr(m,C,$[C]);return m};var cn=(m,$,C)=>new Promise((Qe,Ae)=>{var Ze=H=>{try{le(C.next(H))}catch(fe){Ae(fe)}},Ye=H=>{try{le(C.throw(H))}catch(fe){Ae(fe)}},le=H=>H.done?Qe(H.value):Promise.resolve(H.value).then(Ze,Ye);le((C=C.apply(m,$)).next())});(function(m,$){typeof exports=="object"&&typeof module!="undefined"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(m=typeof globalThis!="undefined"?globalThis:m||self,$(m.modelDrivenDriven={}))})(this,function(m){"use strict";var $="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",C="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Qe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Ae="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ze="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Ye="{caption}\u5FC5\u586B",le="\u8BF7\u8F93\u5165\u6807\u9898",H="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",fe="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Wr="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",zr="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Kr="\u8BF7\u7ED1\u5B9A\u8868\u5355",Xr="\u8BF7\u7ED1\u5B9A\u5217\u8868",Jr="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Qr="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Zr="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Yr="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",ei="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ti="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ni="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ri="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ii="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",ui="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",oi="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ai="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",ci="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",si="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",li="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",fi="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",pi="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",di="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",hi="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",yi="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",vi="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",_i="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",gi="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",mi="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ei="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",bi="\u8BF7\u9009\u62E9\u7701",wi="\u8BF7\u9009\u62E9\u5E02",Bi="\u8BF7\u9009\u62E9\u533A",Ai="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Si="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Fi="\u8BF7\u8F93\u5165\u5217\u5BBD",Oi="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ii="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",$i="\u8BF7\u9009\u62E9\u63A7\u4EF6",Ci="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Di="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Pi="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ti="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Mi="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ri="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",xi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Li="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ji="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",qi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ni="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Ui="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Vi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ki="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Hi="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Gi="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Wi="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",zi="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ki="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Xi="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ji="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Qi={isNotNumber:$,isNotString:C,isNotObject:Qe,isNotArray:Ae,isNotBoolean:Ze,runtimeRequired:Ye,pleaseEnterCaption:le,pleaseEnterCaptionTip:H,pleaseEnterRowCaption:fe,pleaseEnterPlaceholder:Wr,pleaseEnterFieldCode:zr,pleaseEnterForm:Kr,pleaseEnterList:Xr,pleaseEnterProcess:Jr,pleaseEnterLabel:Qr,pleaseEnterValue:Zr,bizKeyNotBindFiled:Yr,pleaseSelectOneField:ei,pleaseEnterNumberRange:ti,pleaseEnterAValueGreaterThanMin:ni,pleaseEnterAValueLessThanMax:ri,numberRangeSetError:ii,stringRangeError:ui,attachmentMaxSize:oi,pleaseEnterTotalScoreSetting:ai,theTotalScoreMustNotBeLessThan1:ci,scoreDefaultValueRange:si,attachmentLimitError:li,PleaseReselectTheOptionalQuantity:fi,TheMaximumLengthIsGreaterThanTheMinimumLength:pi,TheMinimumLengthIsGreaterThanTheMaximumLength:di,PleaseSelectTheCorrectOptionSettings:hi,optionIdIsRepeat:yi,optionIsRequired:vi,pleaseEnterDataCode:_i,pleaseEnterValueFieldCode:gi,pleaseEnterSvcCode:mi,pleaseBindAtLeastOneDisplayValue:Ei,pleaseSelectProvince:bi,pleaseSelectCity:wi,pleaseSelectDistrict:Bi,limitRowsCannotBeLessThan0:Ai,TheNumberOfRowsCannotBeLessThanMinRows:Si,pleaseEnterColumnWidth:Fi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Oi,pleaseCompleteAllRulesAndConditions:Ii,pleaseSelectControl:$i,pleaseSelectAtLeastOneColumn:Ci,pleaseSelectFillBackMode:Di,pleaseSelectDashboard:Pi,rootNodeIsRequired:Ti,theViewNameCannotBeEmpty:Mi,pleaseSelectOcrType:Ri,pleaseSelectAtLeastOneFieldToFillIn:xi,pleaseChooseAtLeastOne:Li,pleaseEnterButtonContent:ji,pleaseEnterDataCodeInDataSetting:qi,pleaseEnterValueFieldCodeInDataSetting:Ni,pleaseEnterSvcCodeInDataSetting:Ui,pleaseBindAtLeastOneDisplayValueInDataSetting:Vi,rootNodeIsRequiredInDataSetting:ki,pleaseEnterMaxHeight:Hi,pleaseEnter:Gi,pleaseEnterWatermark:Wi,pleaseEnterFileName:zi,pleaseUploadAtLeastOnePrintTemplate:Ki,pleaseAssignBusiness:Xi,pleaseAssignExternal:Ji},Zi="Please enter a number",Yi="Please enter a string",eu="Please enter an object",tu="Please enter an array",nu="Please enter a boolean",ru="{caption} Required",iu="Please enter the title",uu="Please enter the bubble prompt",ou="Please enter the row title",au="Please enter the prompt text",cu="Please bind data items",su="Please bind the form",lu="Please bind the list",fu="Please bind the process",pu="Please enter the displayed value",du="Please enter the stored value",hu="The document number is not bound to the data item",yu="Please select at least one display field",vu="Please enter a value greater than or equal to {min} and less than or equal to {max}",_u="Please enter a value greater than or equal to {min}",gu="Please enter a value less than or equal to {max}",mu="The value range is set incorrectly",Eu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",bu="The attachment size must be between 0MB and 1000MB",wu="Please fill in the total score setting",Bu="The total score cannot be less than 1",Au="The default value must be between {min} and {max}",Su="The number of attachments uploaded must be between {min} and {max}",Fu="Please re-select the optional quantity",Ou="The maximum length of the control must be greater than the minimum length",Iu="The minimum length of the control must be less than the maximum length",$u="Please select the correct option setting",Cu="Option ID cannot be repeated",Du="Please enter at least one option",Pu="Please bind the data source",Tu="Please bind the stored value",Mu="Please bind the service",Ru="At least one display value must be bound",xu="Please select a province",Lu="Please select a city",ju="Please select a district",qu="The minimum number of lines to fill in cannot be less than 0",Nu="The number of rows cannot be less than {min} rows",Uu="Please enter the column width",Vu="Please set the logical relationship of all rule conditions",ku="Please complete all rules and conditions",Hu="please select control",Gu="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Wu="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",zu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ku="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Xu="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ju="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Qu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Zu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Yu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",eo="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",to="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",no="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ro="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",io="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",uo="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",oo="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ao="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",co="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",so={isNotNumber:Zi,isNotString:Yi,isNotObject:eu,isNotArray:tu,isNotBoolean:nu,runtimeRequired:ru,pleaseEnterCaption:iu,pleaseEnterCaptionTip:uu,pleaseEnterRowCaption:ou,pleaseEnterPlaceholder:au,pleaseEnterFieldCode:cu,pleaseEnterForm:su,pleaseEnterList:lu,pleaseEnterProcess:fu,pleaseEnterLabel:pu,pleaseEnterValue:du,bizKeyNotBindFiled:hu,pleaseSelectOneField:yu,pleaseEnterNumberRange:vu,pleaseEnterAValueGreaterThanMin:_u,pleaseEnterAValueLessThanMax:gu,numberRangeSetError:mu,stringRangeError:Eu,attachmentMaxSize:bu,pleaseEnterTotalScoreSetting:wu,theTotalScoreMustNotBeLessThan1:Bu,scoreDefaultValueRange:Au,attachmentLimitError:Su,PleaseReselectTheOptionalQuantity:Fu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ou,TheMinimumLengthIsGreaterThanTheMaximumLength:Iu,PleaseSelectTheCorrectOptionSettings:$u,optionIdIsRepeat:Cu,optionIsRequired:Du,pleaseEnterDataCode:Pu,pleaseEnterValueFieldCode:Tu,pleaseEnterSvcCode:Mu,pleaseBindAtLeastOneDisplayValue:Ru,pleaseSelectProvince:xu,pleaseSelectCity:Lu,pleaseSelectDistrict:ju,limitRowsCannotBeLessThan0:qu,TheNumberOfRowsCannotBeLessThanMinRows:Nu,pleaseEnterColumnWidth:Uu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Vu,pleaseCompleteAllRulesAndConditions:ku,pleaseSelectControl:Hu,pleaseSelectDashboard:Gu,theViewNameCannotBeEmpty:Wu,pleaseSelectOcrType:zu,pleaseSelectAtLeastOneFieldToFillIn:Ku,pleaseChooseAtLeastOne:Xu,pleaseEnterButtonContent:Ju,pleaseEnterDataCodeInDataSetting:Qu,pleaseEnterValueFieldCodeInDataSetting:Zu,pleaseEnterSvcCodeInDataSetting:Yu,pleaseBindAtLeastOneDisplayValueInDataSetting:eo,rootNodeIsRequiredInDataSetting:to,pleaseEnterMaxHeight:no,pleaseEnter:ro,pleaseEnterWatermark:io,pleaseEnterFileName:uo,pleaseUploadAtLeastOnePrintTemplate:oo,pleaseAssignBusiness:ao,pleaseAssignExternal:co},lo="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",fo="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",po="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ho="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yo="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vo="{caption}\u5FC5\u9808",_o="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",go="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",mo="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Eo="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bo="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",wo="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Bo="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ao="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",So="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fo="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Oo="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Io="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",$o="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Co="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Do="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Po="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",To="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Mo="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ro="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",xo="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Lo="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",jo="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",qo="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",No="\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",Uo="\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",Vo="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ko="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ho="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Go="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Wo="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",zo="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ko="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Xo="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Jo="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Qo="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Zo="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Yo="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ea="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ta="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",na="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",ra="please select control",ia="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ua="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",oa="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",aa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ca="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",sa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",la="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",pa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",da="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ya="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",va="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",_a="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ga="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ma="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ea="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ba="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",wa={isNotNumber:lo,isNotString:fo,isNotObject:po,isNotArray:ho,isNotBoolean:yo,runtimeRequired:vo,pleaseEnterCaption:_o,pleaseEnterCaptionTip:go,pleaseEnterRowCaption:mo,pleaseEnterPlaceholder:Eo,pleaseEnterFieldCode:bo,pleaseEnterForm:wo,pleaseEnterList:Bo,pleaseEnterProcess:Ao,pleaseEnterLabel:So,pleaseEnterValue:Fo,bizKeyNotBindFiled:Oo,pleaseSelectOneField:Io,pleaseEnterNumberRange:$o,pleaseEnterAValueGreaterThanMin:Co,pleaseEnterAValueLessThanMax:Do,numberRangeSetError:Po,stringRangeError:To,attachmentMaxSize:Mo,pleaseEnterTotalScoreSetting:Ro,theTotalScoreMustNotBeLessThan1:xo,scoreDefaultValueRange:Lo,attachmentLimitError:jo,PleaseReselectTheOptionalQuantity:qo,TheMaximumLengthIsGreaterThanTheMinimumLength:No,TheMinimumLengthIsGreaterThanTheMaximumLength:Uo,PleaseSelectTheCorrectOptionSettings:Vo,optionIdIsRepeat:ko,optionIsRequired:Ho,pleaseEnterDataCode:Go,pleaseEnterValueFieldCode:Wo,pleaseEnterSvcCode:zo,pleaseBindAtLeastOneDisplayValue:Ko,pleaseSelectProvince:Xo,pleaseSelectCity:Jo,pleaseSelectDistrict:Qo,limitRowsCannotBeLessThan0:Zo,TheNumberOfRowsCannotBeLessThanMinRows:Yo,pleaseEnterColumnWidth:ea,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ta,pleaseCompleteAllRulesAndConditions:na,pleaseSelectControl:ra,pleaseSelectDashboard:ia,theViewNameCannotBeEmpty:ua,pleaseSelectOcrType:oa,pleaseSelectAtLeastOneFieldToFillIn:aa,pleaseChooseAtLeastOne:ca,pleaseEnterButtonContent:sa,pleaseEnterDataCodeInDataSetting:la,pleaseEnterValueFieldCodeInDataSetting:fa,pleaseEnterSvcCodeInDataSetting:pa,pleaseBindAtLeastOneDisplayValueInDataSetting:da,rootNodeIsRequiredInDataSetting:ha,pleaseEnterMaxHeight:ya,pleaseEnter:va,pleaseEnterWatermark:_a,pleaseEnterFileName:ga,pleaseUploadAtLeastOnePrintTemplate:ma,pleaseAssignBusiness:Ea,pleaseAssignExternal:ba},Ba={zhCN:Qi,enUS:so,jaJP:wa},Aa="zh-CN",Sa=function(){};function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(e){return e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search",e}({}),h=function(e){return e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2",e}({}),W=function(e){return e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field",e}({}),D,Fa=(D={},T(D,"array","array-column"),T(D,"auto_number","auto-number-column"),T(D,"decimal","decimal-column"),T(D,"department","department-column"),T(D,"file","file-column"),T(D,"image","image-column"),T(D,"location","location-column"),T(D,"people","employee-column"),T(D,"text","text-column"),T(D,"timescope","timescope-column"),T(D,"timestamp","timestamp-column"),T(D,"varchar","varchar-column"),T(D,"relation","varchar-column"),D),sn="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Oa=sn+"0123456789";function et(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?sn:Oa,i=Math.random()*r.length;t+=r[parseInt(String(i),10)]}return t}function tt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ia(e){if(Array.isArray(e))return tt(e)}function $a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ln(e,t,n){return t=pe(t),Ta(e,rt()?Reflect.construct(t,n||[],pe(e).constructor):t.apply(e,n))}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t,n){return rt()?Se=Reflect.construct:Se=function(i,u,o){var c=[null];c.push.apply(c,u);var s=Function.bind.apply(i,c),a=new s;return o&&de(a,o.prototype),a},Se.apply(null,arguments)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pe(e)}function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&de(e,t)}function Ca(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Da(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pa(){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 Ta(e,t){return t&&(Ma(t)==="object"||typeof t=="function")?t:$a(e)}function de(e,t){return de=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},de(e,t)}function dn(e){return Ia(e)||Da(e)||Ra(e)||Pa()}function Ma(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ra(e,t){if(!!e){if(typeof e=="string")return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}}function nt(e){var t=typeof Map=="function"?new Map:void 0;return nt=function(r){if(r===null||!Ca(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Se(r,arguments,pe(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),de(i,r)},nt(e)}function rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(rt=function(){return!!e})()}var it=console;function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t.slice(1);(r=it).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(dn(i)))}function hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t.slice(1);(r=it).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(dn(i)))}function xa(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var ut=function(e){pn(t,e);function t(n){fn(this,t);var r;return r=ln(this,t,[n]),r.name="\u{1F4A5} Driven Error",r.message=n?xa(n):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",r}return t}(nt(Error)),La=function(e){pn(t,e);function t(n){fn(this,t);var r;return r=ln(this,t,[n]),r.name="\u{1F6A8} Driven Reference Error",r}return t}(ut);function he(e){throw new ut(e)}function yn(e){throw new La(e)}function ja(e){it.error(new ut(e))}var qa=Object.prototype.toString;function vn(e,t){return qa.call(e)==="[object "+t+"]"}function Na(e){return vn(e,"String")}function Ua(e){return vn(e,"Promise")}var Va=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();Ua(r)?r.then(function(i){n._messageCache.clear(),n.messages[n.localeInMessageKey]=i}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var i=this.getMessage(t);return i?this.formatMessage(i,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(i,u,o,c){if(i!==void 0){var s=i[u];if(!(o===c.length-1&&!Na(s)))return s}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,i){var u=n[i];return u!==void 0?String(u):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function ka(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t,n){return t&&_n(e.prototype,t),n&&_n(e,n),e}function Ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(){function e(){ka(this,e)}return Ha(e,null,[{key:"getMessage",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Aa;return new Va({locale:n,messages:Ba})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();Ga(L,"$i18n",L.resetI18n());function gn(e,t,n){var r=t.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return r.reduce(function(u,o,c,s){var a=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Fe("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return c===s.length-1&&!Object.is(a[o],n)&&(a[o]=n,i=!0),a[o]}},e),i}var Wa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},za={exports:{}};(function(e){(function(t){var n=function(l,d,O){if(!a(d)||y(d)||v(d)||E(d)||s(d))return d;var w,S=0,V=0;if(f(d))for(w=[],V=d.length;S<V;S++)w.push(n(l,d[S],O));else{w={};for(var A in d)Object.prototype.hasOwnProperty.call(d,A)&&(w[l(A,O)]=n(l,d[A],O))}return w},r=function(l,d){d=d||{};var O=d.separator||"_",w=d.split||/(?=[A-Z])/;return l.split(w).join(O)},i=function(l){return b(l)?l:(l=l.replace(/[\-_\s]+(.)?/g,function(d,O){return O?O.toUpperCase():""}),l.substr(0,1).toLowerCase()+l.substr(1))},u=function(l){var d=i(l);return d.substr(0,1).toUpperCase()+d.substr(1)},o=function(l,d){return r(l,d).toLowerCase()},c=Object.prototype.toString,s=function(l){return typeof l=="function"},a=function(l){return l===Object(l)},f=function(l){return c.call(l)=="[object Array]"},y=function(l){return c.call(l)=="[object Date]"},v=function(l){return c.call(l)=="[object RegExp]"},E=function(l){return c.call(l)=="[object Boolean]"},b=function(l){return l=l-0,l===l},p=function(l,d){var O=d&&"process"in d?d.process:d;return typeof O!="function"?l:function(w,S){return O(w,l,S)}},_={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(l,d){return n(p(i,d),l)},decamelizeKeys:function(l,d){return n(p(o,d),l,d)},pascalizeKeys:function(l,d){return n(p(u,d),l)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(Wa)})(za);var mn={};Object.defineProperty(mn,"__esModule",{value:!0});function ot(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:ot(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:ot(r)}return t}}var Ka=mn.default=ot;function En(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Y(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":En(e))==="object"?Ka(e):e}function at(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xa(e){return e!=null&&(typeof e=="undefined"?"undefined":En(e))==="object"&&Array.isArray(e)===!1}function ye(e){return Array.isArray(e)}function ct(e){return typeof e=="string"}function Ja(e){return Object.values(h).includes(e)}function st(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qa(e){if(Array.isArray(e))return st(e)}function bn(e,t,n,r,i,u,o){try{var c=e[u](o),s=c.value}catch(a){n(a);return}c.done?t(s):Promise.resolve(s).then(r,i)}function Za(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(s){bn(u,r,i,o,c,"next",s)}function c(s){bn(u,r,i,o,c,"throw",s)}o(void 0)})}}function Ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ec(e,t,n){return t&&wn(e.prototype,t),n&&wn(e,n),e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nc(){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 lt(e){return Qa(e)||tc(e)||rc(e)||nc()}function rc(e,t){if(!!e){if(typeof e=="string")return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(e,t)}}function ic(e,t){var n,r,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(a){return function(f){return s([a,f])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(a[0]===6&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var An=function(){function e(){Ya(this,e),Bn(this,"_events",new Map),Bn(this,"debug",!1)}return ec(e,[{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return Za(function(){var o,c,s,a,f,y,v,E,b,p,_,l;return ic(this,function(d){switch(d.label){case 0:if(o=this._events.get(n),c=[],!o)return[3,10];s=o.slice(),a=!0,f=!1,y=void 0,d.label=1;case 1:d.trys.push([1,8,9,10]),v=s[Symbol.iterator](),d.label=2;case 2:if(a=(E=v.next()).done)return[3,7];if(b=E.value,!o.includes(b))return[3,6];d.label=3;case 3:return d.trys.push([3,5,,6]),this.debug&&hn.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(i.map(function(){return"%o"}).join(","),"\u3002")].concat(lt(i))),[4,b.apply(null,lt(i))];case 4:return p=d.sent(),this.debug&&hn.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(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(lt(i),[p])),c.push(p),p===!1?[3,7]:[3,6];case 5:return _=d.sent(),ja(String(_)+":"+String(_.stack)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return l=d.sent(),f=!0,y=l,[3,10];case 9:try{!a&&v.return!=null&&v.return()}finally{if(f)throw y}return[7];case 10:return[2,c]}})}).call(this)}},{key:"on",value:function(n,r){if(this._events.has(n)){var i;(i=this._events.get(n))===null||i===void 0||i.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var i=this._events.get(n),u=i==null?void 0:i.indexOf(r);i==null||i.splice(u,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oc(e,t,n){return t&&Sn(e.prototype,t),n&&Sn(e,n),e}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cc=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],ve=function(){function e(){uc(this,e)}return oc(e,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(i){return r.includes(i.key)})}}]),e}();ac(ve,"events",cc);function sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lc(e,t,n){return t&&Fn(e.prototype,t),n&&Fn(e,n),e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var On=[],Oe=function(){function e(t){sc(this,e),ee(this,"registeredControlTypes",new Set),ee(this,"controlConfigMap",new Map),ee(this,"_controls",[]),ee(this,"_type",void 0),this._type=t,this._initControls(t)}return lc(e,[{key:"registerControlConfig",value:function(n,r){return this.controlConfigMap.set(n,r),this}},{key:"getControlConfig",value:function(n){return this.controlConfigMap.get(n)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(n){n.__is_control__||he("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(i){return i.controlType===n.controlType});return r>-1&&(Fe("The ".concat(n.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(r,1)),this.registeredControlTypes.add(n.controlType),this._controls.push(n),this}},{key:"isLayoutControl",value:function(n){return n.controlType===P.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===P.FORM}},{key:"isListControl",value:function(n){return n.controlType===P.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===P.COLUMN}},{key:"createControl",value:function(n,r){var i=this;if(Array.isArray(n))return n.map(function(a){return i.createControl(a,r)});n.children&&(n.children=n.children.map(function(a){return i.createControl(a,r)})),this.isListControl(n)&&n.props.headers&&(n.props.headers=n.props.headers.map(function(a){return i.createControl(a,r)}));var u=this.getControlFormType(n.type);if(u){var o=n;if(typeof r=="function"){var c=r(o);c&&(o=c)}var s=new u(o);return s}else he("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"createControlInstance",value:function(n,r){var i=this.getControlFormType(n);if(i)return new i(r)}},{key:"getControlFormType",value:function(n){return this._controls.find(function(r){return r.controlType===n})}},{key:"_initControls",value:function(n){var r=this;this.constructor.staticControls.forEach(function(i){r.register(i[n])})}}],[{key:"register",value:function(n){var r=n.Designer,i=n.Runtime;(!r||!i||!r.__is_control__||!i.__is_control__)&&he("".concat(n," is can't register as a Control"));var u=this.staticControls.findIndex(function(o){return o.Designer.controlType===r.controlType});return u>-1&&(Fe("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(u,1)),this.staticRegisteredTypes.add(r.controlType),this.staticControls.push(n),this}}]),e}();ee(Oe,"staticControls",On),ee(Oe,"staticRegisteredTypes",new Set(On.map(function(e){return e.Designer.controlType}))),ee(Oe,"staticRegisteredConfigs",new Map);function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=function e(t){ft(this,e),q(this,"dataCode",void 0),q(this,"fieldCode",void 0),q(this,"fieldType",void 0);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var i;this.fieldType=(i=t==null?void 0:t.fieldType)!==null&&i!==void 0?i:""},fc=function e(t){ft(this,e),q(this,"minWidth",void 0),q(this,"maxWidth",void 0),q(this,"flex",void 0);var n;this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth;var r;this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},pc=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT",e}({}),dc=function e(t){ft(this,e),q(this,"width",void 0),q(this,"height",void 0),q(this,"widthConfig",void 0),q(this,"heightConfig",void 0);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var i;this.widthConfig=(i=t==null?void 0:t.widthConfig)!==null&&i!==void 0?i:"fill";var u;this.heightConfig=(u=t==null?void 0:t.heightConfig)!==null&&u!==void 0?u:"fill"};function hc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yc(e,t,n){return t=_e(t),gc(e,ht()?Reflect.construct(t,n||[],_e(e).constructor):t.apply(e,n))}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t,n){return ht()?$e=Reflect.construct:$e=function(i,u,o){var c=[null];c.push.apply(c,u);var s=Function.bind.apply(i,c),a=new s;return o&&ge(a,o.prototype),a},$e.apply(null,arguments)}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_e(e)}function vc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}function _c(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function gc(e,t){return t&&(mc(t)==="object"||typeof t=="function")?t:hc(e)}function ge(e,t){return ge=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ge(e,t)}function mc(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function dt(e){var t=typeof Map=="function"?new Map:void 0;return dt=function(r){if(r===null||!_c(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return $e(r,arguments,_e(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ge(i,r)},dt(e)}function ht(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ht=function(){return!!e})()}var yt=function e(t){pt(this,e),te(this,"isHide",{type:"boolean"})},In=function(e){vc(t,e);function t(n){return pt(this,t),yc(this,t)}return t}(dt(Array)),z=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";pt(this,e),te(this,"isHide",void 0),te(this,"className",void 0),te(this,"style",void 0),te(this,"caption",void 0);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new dc(t==null?void 0:t.style);var i;this.caption=(i=t==null?void 0:t.caption)!==null&&i!==void 0?i:n};te(z,"Rules",yt),te(z,"RuntimeRules",In);function N(){return N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function Ec(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vt(e)}function Ce(e,t){return Ce=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ce(e,t)}function bc(){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(e){return!1}}function De(e,t,n){return bc()?De=Reflect.construct:De=function(i,u,o){var c=[null];c.push.apply(c,u);var s=Function.bind.apply(i,c),a=new s;return o&&Ce(a,o.prototype),a},De.apply(null,arguments)}function wc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _t(e){var t=typeof Map=="function"?new Map:void 0;return _t=function(r){if(r===null||!wc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return De(r,arguments,vt(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ce(i,r)},_t(e)}var Bc=/%[sdj%]/g,$n=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&($n=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function gt(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],u=t.length;if(typeof i=="function")return i.apply(null,t.slice(1));if(typeof i=="string"){var o=String(i).replace(Bc,function(c){if(c==="%%")return"%";if(r>=u)return c;switch(c){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(s){return"[Circular]"}break;default:return c}});return o}return i}function Ac(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function I(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ac(t)&&typeof e=="string"&&!e)}function Sc(e,t,n){var r=[],i=0,u=e.length;function o(c){r.push.apply(r,c),i++,i===u&&n(r)}e.forEach(function(c){t(c,o)})}function Cn(e,t,n){var r=0,i=e.length;function u(o){if(o&&o.length){n(o);return}var c=r;r=r+1,c<i?t(e[c],u):n([])}u([])}function Fc(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Dn=function(e){Ec(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(_t(Error));function Oc(e,t,n,r){if(t.first){var i=new Promise(function(y,v){var E=function(_){return r(_),_.length?v(new Dn(_,gt(_))):y()},b=Fc(e);Cn(b,n,E)});return i.catch(function(y){return y}),i}var u=t.firstFields||[];u===!0&&(u=Object.keys(e));var o=Object.keys(e),c=o.length,s=0,a=[],f=new Promise(function(y,v){var E=function(p){if(a.push.apply(a,p),s++,s===c)return r(a),a.length?v(new Dn(a,gt(a))):y()};o.length||(r(a),y()),o.forEach(function(b){var p=e[b];u.indexOf(b)!==-1?Cn(p,n,E):Sc(p,n,E)})});return f.catch(function(y){return y}),f}function Pn(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function Tn(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=N(N({},e[n]),r):e[n]=r}}return e}function Mn(e,t,n,r,i,u){e.required&&(!n.hasOwnProperty(e.field)||I(t,u||e.type))&&r.push(M(i.messages.required,e.fullField))}function Ic(e,t,n,r,i){(/^\s+$/.test(t)||t==="")&&r.push(M(i.messages.whitespace,e.fullField))}var mt={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},me={integer:function(t){return me.number(t)&&parseInt(t,10)===t},float:function(t){return me.number(t)&&!me.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!me.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(mt.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(mt.url)},hex:function(t){return typeof t=="string"&&!!t.match(mt.hex)}};function $c(e,t,n,r,i){if(e.required&&t===void 0){Mn(e,t,n,r,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;u.indexOf(o)>-1?me[o](t)||r.push(M(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(M(i.messages.types[o],e.fullField,e.type))}function Cc(e,t,n,r,i){var u=typeof e.len=="number",o=typeof e.min=="number",c=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a=t,f=null,y=typeof t=="number",v=typeof t=="string",E=Array.isArray(t);if(y?f="number":v?f="string":E&&(f="array"),!f)return!1;E&&(a=t.length),v&&(a=t.replace(s,"_").length),u?a!==e.len&&r.push(M(i.messages[f].len,e.fullField,e.len)):o&&!c&&a<e.min?r.push(M(i.messages[f].min,e.fullField,e.min)):c&&!o&&a>e.max?r.push(M(i.messages[f].max,e.fullField,e.max)):o&&c&&(a<e.min||a>e.max)&&r.push(M(i.messages[f].range,e.fullField,e.min,e.max))}var ne="enum";function Dc(e,t,n,r,i){e[ne]=Array.isArray(e[ne])?e[ne]:[],e[ne].indexOf(t)===-1&&r.push(M(i.messages[ne],e.fullField,e[ne].join(", ")))}function Pc(e,t,n,r,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(M(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var u=new RegExp(e.pattern);u.test(t)||r.push(M(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var g={required:Mn,whitespace:Ic,type:$c,range:Cc,enum:Dc,pattern:Pc};function Tc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t,"string")&&!e.required)return n();g.required(e,t,r,u,i,"string"),I(t,"string")||(g.type(e,t,r,u,i),g.range(e,t,r,u,i),g.pattern(e,t,r,u,i),e.whitespace===!0&&g.whitespace(e,t,r,u,i))}n(u)}function Mc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g.type(e,t,r,u,i)}n(u)}function Rc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function xc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g.type(e,t,r,u,i)}n(u)}function Lc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),I(t)||g.type(e,t,r,u,i)}n(u)}function jc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function qc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function Nc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();g.required(e,t,r,u,i,"array"),t!=null&&(g.type(e,t,r,u,i),g.range(e,t,r,u,i))}n(u)}function Uc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g.type(e,t,r,u,i)}n(u)}var Vc="enum";function kc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i),t!==void 0&&g[Vc](e,t,r,u,i)}n(u)}function Hc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t,"string")&&!e.required)return n();g.required(e,t,r,u,i),I(t,"string")||g.pattern(e,t,r,u,i)}n(u)}function Gc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t,"date")&&!e.required)return n();if(g.required(e,t,r,u,i),!I(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),g.type(e,c,r,u,i),c&&g.range(e,c.getTime(),r,u,i)}}n(u)}function Wc(e,t,n,r,i){var u=[],o=Array.isArray(t)?"array":typeof t;g.required(e,t,r,u,i,o),n(u)}function Et(e,t,n,r,i){var u=e.type,o=[],c=e.required||!e.required&&r.hasOwnProperty(e.field);if(c){if(I(t,u)&&!e.required)return n();g.required(e,t,r,o,i,u),I(t,u)||g.type(e,t,r,o,i)}n(o)}function zc(e,t,n,r,i){var u=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(I(t)&&!e.required)return n();g.required(e,t,r,u,i)}n(u)}var Ee={string:Tc,method:Mc,number:Rc,boolean:xc,regexp:Lc,integer:jc,float:qc,array:Nc,object:Uc,enum:kc,pattern:Hc,date:Gc,url:Et,hex:Et,email:Et,required:Wc,any:zc};function bt(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var wt=bt();function K(e){this.rules=null,this._messages=wt,this.define(e)}K.prototype={messages:function(t){return t&&(this._messages=Tn(bt(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var u=t,o=n,c=r;if(typeof o=="function"&&(c=o,o={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(),Promise.resolve();function s(p){var _,l=[],d={};function O(w){if(Array.isArray(w)){var S;l=(S=l).concat.apply(S,w)}else l.push(w)}for(_=0;_<p.length;_++)O(p[_]);l.length?d=gt(l):(l=null,d=null),c(l,d)}if(o.messages){var a=this.messages();a===wt&&(a=bt()),Tn(a,o.messages),o.messages=a}else o.messages=this.messages();var f,y,v={},E=o.keys||Object.keys(this.rules);E.forEach(function(p){f=i.rules[p],y=u[p],f.forEach(function(_){var l=_;typeof l.transform=="function"&&(u===t&&(u=N({},u)),y=u[p]=l.transform(y)),typeof l=="function"?l={validator:l}:l=N({},l),l.validator=i.getValidationMethod(l),l.field=p,l.fullField=l.fullField||p,l.type=i.getType(l),l.validator&&(v[p]=v[p]||[],v[p].push({rule:l,value:y,source:u,field:p}))})});var b={};return Oc(v,o,function(p,_){var l=p.rule,d=(l.type==="object"||l.type==="array")&&(typeof l.fields=="object"||typeof l.defaultField=="object");d=d&&(l.required||!l.required&&p.value),l.field=p.field;function O(V,A){return N(N({},A),{},{fullField:l.fullField+"."+V})}function w(V){V===void 0&&(V=[]);var A=V;if(Array.isArray(A)||(A=[A]),!o.suppressWarning&&A.length&&K.warning("async-validator:",A),A.length&&l.message!==void 0&&(A=[].concat(l.message)),A=A.map(Pn(l)),o.first&&A.length)return b[l.field]=1,_(A);if(!d)_(A);else{if(l.required&&!p.value)return l.message!==void 0?A=[].concat(l.message).map(Pn(l)):o.error&&(A=[o.error(l,M(o.messages.required,l.field))]),_(A);var k={};if(l.defaultField)for(var Vr in p.value)p.value.hasOwnProperty(Vr)&&(k[Vr]=l.defaultField);k=N(N({},k),p.rule.fields);for(var ae in k)if(k.hasOwnProperty(ae)){var np=Array.isArray(k[ae])?k[ae]:[k[ae]];k[ae]=np.map(O.bind(null,ae))}var kr=new K(k);kr.messages(o.messages),p.rule.options&&(p.rule.options.messages=o.messages,p.rule.options.error=o.error),kr.validate(p.value,p.rule.options||o,function(an){var ce=[];A&&A.length&&ce.push.apply(ce,A),an&&an.length&&ce.push.apply(ce,an),_(ce.length?ce:null)})}}var S;l.asyncValidator?S=l.asyncValidator(l,p.value,w,p.source,o):l.validator&&(S=l.validator(l,p.value,w,p.source,o),S===!0?w():S===!1?w(l.message||l.field+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)),S&&S.then&&S.then(function(){return w()},function(V){return w(V)})},function(p){s(p)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Ee.hasOwnProperty(t.type))throw new Error(M("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Ee.required:Ee[this.getType(t)]||!1}},K.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ee[t]=n},K.warning=$n,K.messages=wt,K.validators=Ee;var Kc={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 Xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new K(e);return n.messages(Object.assign(Kc,t)),n}var Rn=new An;function Bt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jc(e){if(Array.isArray(e))return e}function Qc(e){if(Array.isArray(e))return Bt(e)}function xn(e,t,n,r,i,u,o){try{var c=e[u](o),s=c.value}catch(a){n(a);return}c.done?t(s):Promise.resolve(s).then(r,i)}function Ln(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(s){xn(u,r,i,o,c,"next",s)}function c(s){xn(u,r,i,o,c,"throw",s)}o(void 0)})}}function Zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yc(e,t,n){return t&&jn(e.prototype,t),n&&jn(e,n),e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Nn(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function es(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ts(){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 Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){B(e,i,n[i])})}return e}function ns(e){return Jc(e)||Nn(e)||Vn(e)||es()}function At(e){return Qc(e)||Nn(e)||Vn(e)||ts()}function rs(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Vn(e,t){if(!!e){if(typeof e=="string")return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bt(e,t)}}function kn(e,t){var n,r,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(a){return function(f){return s([a,f])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(a[0]===6&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var R=function(){function t(n){var r=this;Zc(this,t),B(this,"id",void 0),B(this,"name",void 0),B(this,"icon",void 0),B(this,"type",void 0),B(this,"controlType",void 0),B(this,"props",void 0),B(this,"setting",[]),B(this,"fieldType",void 0),B(this,"eventKeys",[]),B(this,"customEvents",[]),B(this,"parent",null),B(this,"updateSetting",Gn),B(this,"removeSetting",Hn),this._callControlHooks("preInstance",n);var i=qn(this,t)?this.constructor:void 0,u=i.controlName,o=i.controlIcon,c=i.controlType,s=i.controlFieldType,a=i.controlEventKeys,f=i.controlCustomEvents,y=i.name,v=i.setting;u&&o&&c||yn("The ".concat(y," controlName,controlIcon,controlType is not define"));var E;this.id=(E=n==null?void 0:n.id)!==null&&E!==void 0?E:et(10),this.name=u,this.icon=o;var b;this.type=(b=n==null?void 0:n.type)!==null&&b!==void 0?b:c,this.props=new z(n==null?void 0:n.props,(qn(this,t)?this.constructor:void 0).controlName);var p;this.controlType=(p=n==null?void 0:n.controlType)!==null&&p!==void 0?p:"base",this.setting=Y(v);var _;this.fieldType=(_=n==null?void 0:n.fieldType)!==null&&_!==void 0?_:s,this.eventKeys=Y(a),this.customEvents=Y(f),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return Yc(t,[{key:"rules",get:function(){var r=this.props.constructor.Rules;return r?new r(this.props):{}}},{key:"_callControlHooks",value:function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];var o,c=ns(i),s=c[0],a=c.slice(1);return(o=Rn).emit.apply(o,[s,this].concat(At(a)))}},{key:"preUpdate",value:function(r,i){this._callControlHooks("preUpdateProps",r,i)}},{key:"postUpdate",value:function(r,i){this._callControlHooks("postUpdateProps",r,i)}},{key:"updateProps",value:function(r,i){this.preUpdate(r,i),gn(this.props,r,i),this.postUpdate(r,i)}},{key:"preValidate",value:function(){return Ln(function(){var r,i,u;return kn(this,function(o){switch(o.label){case 0:return r=Un({},this.rules),[4,this._callControlHooks("preValidate",r)];case 1:return i=o.sent(),u=i[i.length-1],[2,u===!1?void 0:u]}})}).call(this)}},{key:"validate",value:function(r,i){return Ln(function(){var u,o,c,s;return kn(this,function(a){switch(a.label){case 0:return[4,this.preValidate()];case 1:u=a.sent(),o=u!==void 0?u:Un({},this.rules),Array.isArray(i)&&i.forEach(function(f){o.hasOwnProperty(f)&&delete o[f]}),c=Xc(o,r),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,c.validate(this.props)];case 3:return a.sent(),[2,!0];case 4:throw s=a.sent(),s.control||(s.control=this),s;case 5:return[2]}})}).call(this)}},{key:"toDataBindModel",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,c=this.props,s=c.dataBind,a=c.datasourceBind,f=c.optionConfig,y=c.caption,v=c.required,E=c.maxLength,b=c.options,p=c.encrypted,_=c.encryptedMode;if(!(!i&&!s&&!a)){var l={parentId:r,fieldType:i,controlId:u,caption:y,type:o,props:{}};switch(s&&(l.dataBind=s),f){case"datasource":case void 0:a&&(l.datasourceBind=a);break;case"custom":l.props.options=b;break}return v!==void 0&&(l.required=v),E!==void 0&&(l.maxLength=E),p!==void 0&&(l.encrypted=p),_!==void 0&&(l.encryptedMode=_),l}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:Y(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(r,i){if(r==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,At(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),t}();B(R,"controlName","\u63A7\u4EF6"),B(R,"controlIcon","icon"),B(R,"controlType","control"),B(R,"controlFieldType",void 0),B(R,"controlEventKeys",[]),B(R,"controlCustomEvents",[]),B(R,"setting",[]),B(R,"__is_control__",!0),B(R,"removeSettingItem",Hn),B(R,"updateSettingItem",Gn);function Hn(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var i=typeof r!="string",u=t.setting.findIndex(function(s){return s.key===(i?r.key:r)});if(u!==-1){var o,c;i?t.setting[u].showItems=(o=t.setting[u].showItems)===null||o===void 0?void 0:o.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(u,1),i&&!(!((c=t.setting[u].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(u,1)}})}function Gn(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(i){var u=n.setting.find(function(a){return a.key===i});if(u){if(typeof t=="boolean")u.visible=t;else if((typeof t=="undefined"?"undefined":rs(t))==="object"){var o,c=(o=t.type)!==null&&o!==void 0?o:"replace";if(c==="replace")u.showItems=t.showItems;else{var s;(s=u.showItems).push.apply(s,At(t.showItems))}}}})}function is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function us(e,t,n){return t&&Wn(e.prototype,t),n&&Wn(e,n),e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Pe=function(){function t(n){is(this,t),j(this,"id",void 0),j(this,"type",void 0),j(this,"controlType",void 0),j(this,"props",void 0),j(this,"fieldType",void 0),j(this,"customEvents",[]),j(this,"pageStatus",void 0),j(this,"parent",null);var r=os(this,t)?this.constructor:void 0,i=r.controlType,u=r.controlFieldType,o=r.name,c=r.controlCustomEvents;i||yn("The ".concat(o," controlType is not define"));var s;this.id=(s=n==null?void 0:n.id)!==null&&s!==void 0?s:et(10);var a;this.type=(a=n==null?void 0:n.type)!==null&&a!==void 0?a:i,this.props=new z(n==null?void 0:n.props),this.customEvents=c;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var y;this.fieldType=(y=n==null?void 0:n.fieldType)!==null&&y!==void 0?y:u;var v;this.pageStatus=(v=n==null?void 0:n.pageStatus)!==null&&v!==void 0?v:pc.UNKNOWN}return us(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var i=new r(this.props);return Array.from(i)}return[]}}]),t}();j(Pe,"controlType","control"),j(Pe,"controlFieldType",void 0),j(Pe,"__is_control__",!0),j(Pe,"controlCustomEvents",[]);function as(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e,t,n){return t=Te(t),ss(e,zn()?Reflect.construct(t,n||[],Te(e).constructor):t.apply(e,n))}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Te(e)}function Ot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}function cs(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ss(e,t){return t&&(ls(t)==="object"||typeof t=="function")?t:as(e)}function It(e,t){return It=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},It(e,t)}function ls(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(zn=function(){return!!e})()}var fs=function(e){Ot(t,e);function t(n){Ft(this,t);var r;r=St(this,t,[n]),F(r,"dataBind",{}),F(r,"caption",{type:"string",required:!0,message:L.getMessage("pleaseEnterCaption")}),F(r,"isHideCaption",{type:"boolean"}),F(r,"labelPosition",{type:"enum",enum:["top","left"]}),F(r,"defaultState",{type:"enum",enum:["default","readonly"]}),F(r,"required",{type:"boolean"}),F(r,"captionTip",{type:"string",required:!1,message:L.getMessage("pleaseEnterCaptionTip")});var i={fieldCode:{type:"string",required:!0,message:L.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:L.getMessage("pleaseEnterFieldCode")}};if(cs(n.dataBind,Ie))r.dataBind={type:"object",required:!0,fields:Y(i),message:L.getMessage("pleaseEnterFieldCode")};else{var u={type:"object",required:!0,fields:{},message:L.getMessage("pleaseEnterFieldCode")};Object.keys(n.dataBind).forEach(function(o){u.fields[o]={type:"object",required:!0,fields:Y(i),message:L.getMessage("pleaseEnterFieldCode")}}),r.dataBind=u}return n.isShowCaptionTip&&(r.captionTip.required=!0),r}return t}(yt),ps=function(e){Ot(t,e);function t(n){Ft(this,t);var r;return r=St(this,t,[n]),r.push({type:"string",required:n.isHide?!1:n.required,message:n.requiredMessage!==""?n.requiredMessage:L.getMessage("runtimeRequired",{caption:n.caption})}),r}return t}(In),$t=function(e){Ot(t,e);function t(n){Ft(this,t);var r;r=St(this,t,[n]),F(r,"caption",void 0),F(r,"isHideCaption",void 0),F(r,"isShowCaptionTip",void 0),F(r,"captionTip",void 0),F(r,"labelPosition",void 0),F(r,"dataBind",void 0),F(r,"defaultValue",void 0),F(r,"placeholder",void 0),F(r,"defaultState",void 0),F(r,"required",void 0),F(r,"requiredMessage",void 0);var i;r.caption=(i=n==null?void 0:n.caption)!==null&&i!==void 0?i:"";var u;r.isHideCaption=(u=n==null?void 0:n.isHideCaption)!==null&&u!==void 0?u:!1;var o;r.isShowCaptionTip=(o=n==null?void 0:n.isShowCaptionTip)!==null&&o!==void 0?o:!1;var c;r.captionTip=(c=n==null?void 0:n.captionTip)!==null&&c!==void 0?c:"";var s;r.defaultState=(s=n==null?void 0:n.defaultState)!==null&&s!==void 0?s:"default";var a;r.labelPosition=(a=n==null?void 0:n.labelPosition)!==null&&a!==void 0?a:"top";var f;r.placeholder=(f=n==null?void 0:n.placeholder)!==null&&f!==void 0?f:"";var y;r.required=(y=n==null?void 0:n.required)!==null&&y!==void 0?y:!1;var v;r.requiredMessage=(v=n==null?void 0:n.requiredMessage)!==null&&v!==void 0?v:"",r.dataBind=new Ie(n==null?void 0:n.dataBind);var E;return r.defaultValue=(E=n==null?void 0:n.defaultValue)!==null&&E!==void 0?E:"",r}return t}(z);F($t,"Rules",fs),F($t,"RuntimeRules",ps);function ds(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hs(e,t,n){return t=Re(t),_s(e,Kn()?Reflect.construct(t,n||[],Re(e).constructor):t.apply(e,n))}function ys(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Re(e)}function vs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ct(e,t)}function _s(e,t){return t&&(gs(t)==="object"||typeof t=="function")?t:ds(e)}function Ct(e,t){return Ct=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ct(e,t)}function gs(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Kn=function(){return!!e})()}var Xn=function(e){vs(t,e);function t(n){ys(this,t);var r;return r=hs(this,t,[n]),Me(r,"controlType","form"),Me(r,"props",void 0),r.props=new $t(n==null?void 0:n.props),r}return t}(R);Me(Xn,"controlEventKeys",["on_change","on_focus","on_blur"]),Me(Xn,"controlCustomAttributes",void 0);function ms(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Es(e,t,n){return t=xe(t),Bs(e,Jn()?Reflect.construct(t,n||[],xe(e).constructor):t.apply(e,n))}function bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xe(e)}function ws(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dt(e,t)}function Bs(e,t){return t&&(As(t)==="object"||typeof t=="function")?t:ms(e)}function Dt(e,t){return Dt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Dt(e,t)}function As(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Jn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Jn=function(){return!!e})()}var Ss=function(e){ws(t,e);function t(n){return bs(this,t),Es(this,t,[n])}return t}(z);function Pt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fs(e){if(Array.isArray(e))return Pt(e)}function Os(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Is(){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 Qn(e){return Fs(e)||Os(e)||$s(e)||Is()}function $s(e,t){if(!!e){if(typeof e=="string")return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pt(e,t)}}function Cs(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Zn(e,t){e.parent=t,Cs(e,"parent")}function Ds(e,t){e.forEach(function(n){Zn(n,t)})}var Yn=Symbol("targetKey");function er(e){var t;return(t=e[Yn])!==null&&t!==void 0?t:e}function tr(e,t){return Ds(e,t),new Proxy(e,{get:function(r,i){for(var u=arguments.length,o=new Array(u>2?u-2:0),c=2;c<u;c++)o[c-2]=arguments[c];var s;return i===Yn?r:(s=Reflect).get.apply(s,[r,i].concat(Qn(o)))},set:function(r,i,u){for(var o=arguments.length,c=new Array(o>3?o-3:0),s=3;s<o;s++)c[s-3]=arguments[s];var a;if(ye(e)&&i==="length"&&u===e.length)return!0;var f=(a=Reflect).set.apply(a,[r,i,u].concat(Qn(c)));return at(u)&&Zn(u,t),f}})}function nr(e,t,n,r){var i=r!=null?r:e,u=tr(er(n!=null?n:[]),i);Object.defineProperty(e,t,{get:function(){return u},set:function(c){u=tr(er(c),i)},enumerable:!0})}function Tt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ps(e){if(Array.isArray(e))return Tt(e)}function Ts(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rr(e,t,n,r,i,u,o){try{var c=e[u](o),s=c.value}catch(a){n(a);return}c.done?t(s):Promise.resolve(s).then(r,i)}function Ms(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(s){rr(u,r,i,o,c,"next",s)}function c(s){rr(u,r,i,o,c,"throw",s)}o(void 0)})}}function Rs(e,t,n){return t=J(t),Gs(e,or()?Reflect.construct(t,n||[],J(e).constructor):t.apply(e,n))}function xs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ls(e,t,n){return t&&ir(e.prototype,t),n&&ir(e,n),e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?re=Reflect.get:re=function(i,u,o){var c=Ws(i,u);if(!!c){var s=Object.getOwnPropertyDescriptor(c,u);return s.get?s.get.call(o||i):s.value}},re(e,t,n||e)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},J(e)}function js(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}function qs(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ns(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Us(){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 Vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){X(e,i,n[i])})}return e}function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hs(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ks(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Gs(e,t){return t&&(zs(t)==="object"||typeof t=="function")?t:Ts(e)}function Mt(e,t){return Mt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mt(e,t)}function Ws(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=J(e),e!==null););return e}function ur(e){return Ps(e)||Ns(e)||Ks(e)||Us()}function zs(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ks(e,t){if(!!e){if(typeof e=="string")return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(e,t)}}function or(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(or=function(){return!!e})()}function Xs(e,t){var n,r,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(a){return function(f){return s([a,f])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(a[0]===6&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var Js=1e4,ar=function(t){js(n,t);function n(r){xs(this,n);var i;i=Rs(this,n,[r]),X(i,"controlType","layout"),X(i,"children",void 0),X(i,"excludes",void 0),X(i,"childrenMaxLength",void 0),X(i,"props",void 0);var u=qs(this,n)?this.constructor:void 0,o=u.excludes,c=u.childrenMaxLength;return i.props=new Ss(r==null?void 0:r.props),nr(i,"children",r==null?void 0:r.children),i.excludes=Y(o),i.childrenMaxLength=c,i}return Ls(n,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var u=this.judgeExcludesChildren(i);return u&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,u){var o=this,c=this,s=function(){return re(J(n.prototype),"validate",o)};return Ms(function(){return Xs(this,function(a){switch(a.label){case 0:return[4,s().call(c,i,u)];case 1:return a.sent(),[4,Promise.all(this.children.map(function(f){return f.validate(i,u)}))];case 2:return a.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=re(J(n.prototype),"toDataBindModel",this).call(this),o=u?[u]:[];return this.children.reduce(function(c,s){var a=s.toDataBindModel(i);if(Array.isArray(a)){var f=a.filter(function(y){return!!y});return ur(c).concat(ur(f))}return a&&c.push(a),c},o)}},{key:"toSchema",value:function(){var i=re(J(n.prototype),"toSchema",this).call(this),u=this.children.map(function(o){var c=o.toSchema();return c});return Hs(Vs({},i),{children:u})}}]),n}(R);X(ar,"excludes",!1),X(ar,"childrenMaxLength",Js);function Qs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zs(e,t,n){return t=Le(t),nl(e,cr()?Reflect.construct(t,n||[],Le(e).constructor):t.apply(e,n))}function Ys(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function el(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Le(e)}function tl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}function nl(e,t){return t&&(rl(t)==="object"||typeof t=="function")?t:Qs(e)}function Rt(e,t){return Rt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Rt(e,t)}function rl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(cr=function(){return!!e})()}var il=function(e){tl(t,e);function t(n,r){Ys(this,t);var i;return i=Zs(this,t,[r]),el(i,"headers",void 0),nr(i,"headers",r==null?void 0:r.headers,n),i}return t}(z);function xt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ul(e){if(Array.isArray(e))return xt(e)}function ol(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e,t,n,r,i,u,o){try{var c=e[u](o),s=c.value}catch(a){n(a);return}c.done?t(s):Promise.resolve(s).then(r,i)}function al(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function o(s){sr(u,r,i,o,c,"next",s)}function c(s){sr(u,r,i,o,c,"throw",s)}o(void 0)})}}function cl(e,t,n){return t=Q(t),yl(e,hr()?Reflect.construct(t,n||[],Q(e).constructor):t.apply(e,n))}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ll(e,t,n){return t&&lr(e.prototype,t),n&&lr(e,n),e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?ie=Reflect.get:ie=function(i,u,o){var c=vl(i,u);if(!!c){var s=Object.getOwnPropertyDescriptor(c,u);return s.get?s.get.call(o||i):s.value}},ie(e,t,n||e)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Q(e)}function fl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lt(e,t)}function pl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dl(){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 fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){je(e,i,n[i])})}return e}function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pr(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hl(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function yl(e,t){return t&&(_l(t)==="object"||typeof t=="function")?t:ol(e)}function Lt(e,t){return Lt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lt(e,t)}function vl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Q(e),e!==null););return e}function dr(e){return ul(e)||pl(e)||gl(e)||dl()}function _l(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function gl(e,t){if(!!e){if(typeof e=="string")return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(e,t)}}function hr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(hr=function(){return!!e})()}function ml(e,t){var n,r,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(a){return function(f){return s([a,f])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(a[0]===6&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(f){a=[6,f],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var El=function(e){fl(t,e);function t(n){sl(this,t);var r;return r=cl(this,t,[n]),je(r,"controlType","list"),je(r,"props",void 0),r.props=new il(r,n==null?void 0:n.props),r}return ll(t,[{key:"validate",value:function(r,i){var u=this,o=this,c=function(){return ie(Q(t.prototype),"validate",u)};return al(function(){return ml(this,function(s){switch(s.label){case 0:return[4,c().call(o,r)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(a){return a.validate(r,i)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var r=ie(Q(t.prototype),"toDataBindModel",this).call(this),i=r?[r]:[],u=this.id;return this.props.headers.reduce(function(o,c){var s=c.toDataBindModel(u);if(Array.isArray(s)){var a=s.filter(function(f){return!!f});return dr(o).concat(dr(a))}return s&&o.push(s),o},i)}},{key:"toSchema",value:function(){var r=ie(Q(t.prototype),"toSchema",this).call(this),i=this.props.headers.map(function(u){return u.toSchema()});return pr(fr({},r),{props:pr(fr({},this.props),{headers:i})})}}]),t}(R);je(El,"controlFieldType",W.LIST);function bl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yr(e,t,n){return t=qe(t),wl(e,gr()?Reflect.construct(t,n||[],qe(e).constructor):t.apply(e,n))}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qe(e)}function _r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}function wl(e,t){return t&&(Bl(t)==="object"||typeof t=="function")?t:bl(e)}function jt(e,t){return jt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jt(e,t)}function Bl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function gr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(gr=function(){return!!e})()}var Al=function(e){_r(t,e);function t(n){vr(this,t);var r;return r=yr(this,t,[n]),x(r,"caption",{type:"string",required:!0,message:L.getMessage("pleaseEnterCaption")}),x(r,"width",{type:"number",required:!1,message:L.getMessage("pleaseEnterColumnWidth")}),r.width.required=n.widthType==="px",r}return t}(yt),Sl=function(e){_r(t,e);function t(n){vr(this,t);var r;r=yr(this,t,[n]),x(r,"widthType",void 0),x(r,"width",void 0),x(r,"caption",void 0),x(r,"dataBind",void 0),x(r,"autoWidth",void 0),x(r,"fixed",void 0),x(r,"sort",void 0),x(r,"align",void 0),x(r,"colSpan",void 0),x(r,"autoHeight",void 0);var i;r.width=(i=n==null?void 0:n.width)!==null&&i!==void 0?i:150,r.widthType=(n==null?void 0:n.widthType)||"auto";var u;r.caption=(u=n==null?void 0:n.caption)!==null&&u!==void 0?u:"";var o;r.fixed=(o=n==null?void 0:n.fixed)!==null&&o!==void 0?o:"none",r.autoWidth=new fc(n==null?void 0:n.autoWidth),r.dataBind=new Ie(n==null?void 0:n.dataBind);var c;r.sort=(c=n==null?void 0:n.sort)!==null&&c!==void 0?c:!0,r.align=n==null?void 0:n.align,r.colSpan=n==null?void 0:n.colSpan;var s;return r.autoHeight=(s=n==null?void 0:n.autoHeight)!==null&&s!==void 0?s:!1,r}return t}(z);x(Sl,"Rules",Al);function qt(e){return"children"in e&&ye(e.children)}function mr(e){return"headers"in e.props&&ye(e.props.headers)}function Ne(e,t){Array.isArray(e)&&e.map(n=>{n.type===h.SUBTABLE?Ne(n.props.headers,t):qt(n)?Ne(n==null?void 0:n.children,t):n.controlType===P.FORM&&t(n)})}const Er=[h.AMOUNT,h.CALC,h.DATE_RANGE],br={amount:{caption:"\u91D1\u989D",fieldType:W.DECIMAL},currency:{caption:"\u5E01\u79CD",fieldType:W.VARCHAR},result:{caption:"\u7ED3\u679C",fieldType:W.DECIMAL},unit:{caption:"\u5355\u4F4D",fieldType:W.VARCHAR},min:{caption:"\u5F00\u59CB\u65F6\u95F4",fieldType:W.TIMESTAMP},max:{caption:"\u7ED3\u675F\u65F6\u95F4",fieldType:W.TIMESTAMP}};function Fl(e){let t=[];return Ne(e,n=>{n.controlType===P.FORM?t.push(n):(n.type,h.SUBTABLE)}),t}function Ol(e,t=""){return!e||!Array.isArray(e)?[]:e.map(n=>{if(!n.dataBind||n.type===h.TITLE)return n;if(Er.includes(n.type)){const r=n.dataBind;Object.keys(r).forEach(i=>{const u=r[i],o=n.controlId+"_"+i;u.fieldCode=wr(o),u.dataCode=t})}else n.dataBind.fieldCode=wr(n.controlId),n.dataBind.dataCode=t;return n})}function wr(e){const t="field_";return e.startsWith(t)?e:t+e}function Ue(e){return Fa[e]}function Il(e){const t=new Z,n=[];return e.forEach(r=>{if(!(r.parentId||!r.dataBind))if(Er.includes(r.type)){const i=r.dataBind,u=r.datasourceBind;Object.keys(i).forEach(o=>{const c=i[o],s=br[o].fieldType,a=r.caption+"_"+br[o].caption,f=Ue(s);if(!f)return;const y={caption:a,dataBind:c};o==="currency"&&(y.optionConfig="datasource",y.datasourceBind=u);const v=t.createControlInstance(f,{props:y});v&&n.push(v)})}else{const i=Ue(r.fieldType);if(!i)return;const u=t.createControlInstance(i,{props:{caption:r.caption,dataBind:r.dataBind,datasourceBind:r.datasourceBind}});u&&n.push(u)}}),n}function $l(e){const t=new Z,r=(Array.isArray(e)?e:[e]).map(i=>{const u=Ue(i);return t.createControlInstance(u)});return Array.isArray(e)?r:r[0]}function Nt(e){return Array.isArray(e)?e.map(t=>t.toSchema()):e.toSchema()}function Ut(e){return Array.isArray(e)?e.map(t=>t.toDataBindModel()).filter(t=>!!t).flat():e.toDataBindModel()}function Vt(e,t,n){return cn(this,null,function*(){return Array.isArray(e)?(yield Promise.all(e.map(i=>i.validate(t,n)))).every(i=>i):yield e.validate(t,n)})}const Cl=[h.TITLE,h.GRID_TABLE_COLUMN,h.SUBTABLE_COLUMN,h.OPERATION_COLUMN,h.DATA_VIEW,h.LIST_VIEW,h.HEADER,h.FOOTER,h.SIMPLE_SEARCH,h.ROW,h.GRID_ROW,h.COL,h.GRID,h.DIVIDER,h.TAB_PANE,h.TAB,h.CARD_GROUP],Dl=[h.CALC],Pl={check:{id:"listPageCheckBtnId",caption:"\u67E5\u770B"},edit:{id:"listPageEditBtnId",caption:"\u7F16\u8F91"},delete:{id:"listPageDeleteBtnId",caption:"\u5220\u9664"}};function be(e,t){var r,i,u,o,c,s,a,f,y;const n=[];if(ye(e))n.push(...e.map(v=>be(v,t)).flat());else{const v=e.type,{caption:E,content:b}=e.props;let p;if(Cl.includes(v))v===h.OPERATION_COLUMN&&Object.entries(Pl).reduce((_,[l,{caption:d,id:O}])=>{var S;const w=e.props[l];return w&&w.isShow&&_.push({controlId:O,caption:d,type:e.type,controlType:e.controlType,parentId:(S=t==null?void 0:t.controlId)!=null?S:null,canEdit:!1,canRead:!1,canHide:!0,group:"element"}),_},n);else if(p={controlId:e.id,caption:E||b||e.name,type:e.type,controlType:e.controlType,parentId:(r=t==null?void 0:t.controlId)!=null?r:null,canEdit:!Dl.includes(v),canRead:!0,canHide:!0,group:"element"},t&&t.type===h.SUBTABLE&&(p.caption=t.caption+"_"+p.caption),v===h.VUE_FORM_ITEM&&(p.caption=e.props.controlExportName||e.name),(e.controlType===P.FORM||e.controlType===P.COLUMN)&&((u=(i=e.props)==null?void 0:i.dataBind)==null?void 0:u.fieldCode)!==void 0&&((c=(o=e.props)==null?void 0:o.dataBind)==null?void 0:c.fieldCode)!==""&&(p.group="field"),n.push(p),v===h.VUE_FORM_ITEM){let _="element";((a=(s=e.props)==null?void 0:s.dataBind)==null?void 0:a.fieldCode)!==void 0&&((y=(f=e.props)==null?void 0:f.dataBind)==null?void 0:y.fieldCode)!==""&&(_="field");const l=e.props.permissions;l==null||l.map(d=>{var O;p={controlId:d.key,caption:d.caption,type:e.type,controlType:e.controlType,parentId:(O=e.id)!=null?O:null,canEdit:!0,canRead:!0,canHide:!0,group:_},n.push(p)})}e.children&&n.push(...e.children.map(_=>be(_,t)).flat()),e.controlType===P.LIST&&n.push(...e.props.headers.map(_=>be(_,p)).flat())}return n}class Z extends Oe{constructor(){super("Designer"),this.toolbox=[],this.services={},this.eventLogic=new ve,this.fieldTypes=W,this.controlSettingMap=new Map,new.target.staticControls.forEach(t=>{const{Designer:n,Setting:r}=t;this.controlSettingMap.set(n.controlType,r)})}registerControl(t){this.constructor.register(t);const{Designer:n,Setting:r}=t;this.register(n),this.registeredControlTypes.add(n.controlType),this.controlSettingMap.set(n.controlType,r)}getControlSetting(t){const n=this.controlSettingMap.get(t);return n||null}setInstance(t,n,r){try{if(!t)return;t.updateProps(n,r)}catch(i){throw i}}eachControls(t){this.getControls().forEach(t)}getInitControl(){return[this.createControlInstance("grid")]}checkSchema(...t){return cn(this,null,function*(){return Vt(...t)})}getModelBindInfoList(...t){return Ut(...t)}getSchema(...t){return Nt(...t)}listenControlHook(...t){return Rn.on(...t)}}Z.EventLogic=ve;class Tl{constructor(){this.designer=new Z}ListPageBuilder(){const t=this.designer.createControlInstance(h.LIST_VIEW),n=this.designer.createControlInstance(h.SIMPLE_SEARCH),r=this.designer.createControlInstance(h.GRID_TABLE),i=this.designer.createControlInstance(h.CREATE_FORM_LIST_BUTTON),u=this.designer.createControlInstance(h.IMPORT_RECORD_LIST_BUTTON),o=this.designer.createControlInstance(h.EXPORT_LIST_BUTTON),c=this.designer.createControlInstance(h.EXPORT_RECORD_LIST_BUTTON);return r.children.push(i),r.children.push(u),r.children.push(o),r.children.push(c),t.children.push(n),t.children.push(r),t}ProListPageBuilder(){const t=this.designer.createControlInstance(h.LIST_VIEW);t.props.countType="async";const n=this.designer.createControlInstance(h.SIMPLE_SEARCH),r=this.designer.createControlInstance(h.GRID_TABLE),i=this.designer.createControlInstance(h.EXPORT_LIST_BUTTON),u=this.designer.createControlInstance(h.EXPORT_RECORD_LIST_BUTTON);return r.children.push(i),r.children.push(u),t.children.push(n),t.children.push(r),t}FormPageBuilder(){const t=this.designer.createControlInstance(h.DATA_VIEW),n=this.designer.createControlInstance(h.TITLE),r=this.designer.createControlInstance(h.GRID);return t.children.push(n),t.children.push(r),t}VuePageBuilder(){const t=this.designer.createControlInstance(h.GRID),n=this.designer.createControlInstance(h.VUE_FORM_ITEM);return n.props.isHideCaption=!0,n.props.controlExportName="VuePage",t.children.push(n),t}}function Ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rl(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),e}function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(){function e(t){Ml(this,e),Ar(this,"visible",void 0),Ar(this,"expression",void 0);var n;this.visible=(n=t==null?void 0:t.visible)!==null&&n!==void 0?n:!0;var r;this.expression=(r=t==null?void 0:t.expression)!==null&&r!==void 0?r:!1}return Rl(e,[{key:"isAtomicComponent",get:function(){return!0}}]),e}();function xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ll(e,t,n){return t&&Sr(e.prototype,t),n&&Sr(e,n),e}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jl=function(){function e(t){xl(this,e),U(this,"type",void 0),U(this,"label",void 0),U(this,"key",void 0),U(this,"component",void 0),U(this,"effect",void 0),U(this,"scopeEffect",void 0),U(this,"defaultValue",void 0),U(this,"validator",void 0),U(this,"props",void 0),U(this,"effectKeys",void 0),this.type=t.type,this.label=t.label,this.key=t.key,this.component=t.component;var n;this.effect=(n=t.effect)!==null&&n!==void 0?n:{};var r;this.scopeEffect=(r=t.scopeEffect)!==null&&r!==void 0?r:Sa,this.defaultValue=t.defaultValue,this.validator=t.validator;var i;this.props=(i=t.props)!==null&&i!==void 0?i:new G,this.effectKeys=Object.keys(this.effect)}return Ll(e,[{key:"filterEffects",value:function(n){var r=this;return n===""?Object.values(this.effect):this.effectKeys.filter(function(i){var u=new RegExp("^".concat(i,"(\\.\\w+)*$"));return u.test(n)}).map(function(i){return r.effect[i]})}},{key:"callEffectFn",value:function(n,r){try{var i=n.apply(null,r);at(i)&&Object.assign(this.props,i)}catch(u){he(`effect error
2
+ `.concat(u))}}},{key:"callEffect",value:function(n){for(var r=this,i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];this.filterEffects(n).forEach(function(c){return r.callEffectFn(c,u)})}},{key:"callScopeEffect",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];this.callEffectFn(this.scopeEffect,r)}}]),e}();function ql(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt=function e(t){ql(this,e),ue(this,"type","group"),ue(this,"title",void 0),ue(this,"required",void 0),ue(this,"items",void 0),ue(this,"tips",void 0),ue(this,"fromId",void 0);var n;this.title=(n=t.title)!==null&&n!==void 0?n:"";var r;this.required=(r=t.required)!==null&&r!==void 0?r:!1,this.items=t.items,this.tips=t.tips};function Nl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e){return"type"in e&&e.type==="tab"}var Gt=function e(t){Nl(this,e),Ht(this,"type","tab"),Ht(this,"title",void 0),Ht(this,"items",void 0),this.title=t.title,this.items=t.items};function Fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vl(e){if(Array.isArray(e))return e}function kl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hl(e,t,n){return t=Ve(t),Xl(e,Or()?Reflect.construct(t,n||[],Ve(e).constructor):t.apply(e,n))}function Gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ve(e)}function Wl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}function zl(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,u=!1,o,c;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){u=!0,c=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(u)throw c}}return r}}function Kl(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xl(e,t){return t&&(Ql(t)==="object"||typeof t=="function")?t:kl(e)}function Wt(e,t){return Wt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wt(e,t)}function Jl(e,t){return Vl(e)||zl(e,t)||Zl(e,t)||Kl()}function Ql(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Zl(e,t){if(!!e){if(typeof e=="string")return Fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fr(e,t)}}function Or(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Or=function(){return!!e})()}var Yl=function(e){Wl(t,e);function t(n){Gl(this,t);var r;return r=Hl(this,t,[n]),at(n)&&Object.entries(n).forEach(function(i){var u=Jl(i,2),o=u[0],c=u[1];r[o]=c}),r}return t}(G);function ef(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tf(e,t,n){return t=He(t),uf(e,Ir()?Reflect.construct(t,n||[],He(e).constructor):t.apply(e,n))}function nf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},He(e)}function rf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zt(e,t)}function uf(e,t){return t&&(of(t)==="object"||typeof t=="function")?t:ef(e)}function zt(e,t){return zt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zt(e,t)}function of(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ir=function(){return!!e})()}var af=function(e){rf(t,e);function t(n){nf(this,t);var r;r=tf(this,t,[n]),ke(r,"maxLength",void 0),ke(r,"minLength",void 0),ke(r,"placeholder",void 0),ke(r,"i18n",void 0);var i;r.maxLength=(i=n==null?void 0:n.maxLength)!==null&&i!==void 0?i:"";var u;r.minLength=(u=n==null?void 0:n.minLength)!==null&&u!==void 0?u:"";var o;r.placeholder=(o=n==null?void 0:n.placeholder)!==null&&o!==void 0?o:"";var c;return r.i18n=(c=n==null?void 0:n.i18n)!==null&&c!==void 0?c:!1,r}return t}(G);function cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sf(e,t,n){return t=Ge(t),pf(e,$r()?Reflect.construct(t,n||[],Ge(e).constructor):t.apply(e,n))}function lf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ge(e)}function ff(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xt(e,t)}function pf(e,t){return t&&(df(t)==="object"||typeof t=="function")?t:cf(e)}function Xt(e,t){return Xt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xt(e,t)}function df(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function $r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return($r=function(){return!!e})()}var hf=function(e){ff(t,e);function t(n){lf(this,t);var r;r=sf(this,t,[n]),Kt(r,"max",void 0),Kt(r,"min",void 0),Kt(r,"placeholder",void 0);var i;r.max=(i=n==null?void 0:n.max)!==null&&i!==void 0?i:"";var u;r.min=(u=n==null?void 0:n.min)!==null&&u!==void 0?u:"";var o;return r.placeholder=(o=n==null?void 0:n.placeholder)!==null&&o!==void 0?o:"",r}return t}(G);function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vf(e,t,n){return t=We(t),mf(e,Cr()?Reflect.construct(t,n||[],We(e).constructor):t.apply(e,n))}function _f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},We(e)}function gf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qt(e,t)}function mf(e,t){return t&&(Ef(t)==="object"||typeof t=="function")?t:yf(e)}function Qt(e,t){return Qt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Qt(e,t)}function Ef(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Cr=function(){return!!e})()}var bf=function(e){gf(t,e);function t(n){_f(this,t);var r;r=vf(this,t,[n]),Jt(r,"showType",void 0),Jt(r,"tips",void 0),Jt(r,"disabled",void 0);var i;r.showType=(i=n==null?void 0:n.showType)!==null&&i!==void 0?i:"switch";var u;r.tips=(u=n==null?void 0:n.tips)!==null&&u!==void 0?u:"";var o;return r.disabled=(o=n==null?void 0:n.disabled)!==null&&o!==void 0?o:!1,r}return t}(G);function wf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bf(e,t,n){return t=ze(t),Of(e,Dr()?Reflect.construct(t,n||[],ze(e).constructor):t.apply(e,n))}function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ze(e)}function Ff(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zt(e,t)}function Of(e,t){return t&&(If(t)==="object"||typeof t=="function")?t:wf(e)}function Zt(e,t){return Zt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zt(e,t)}function If(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Dr=function(){return!!e})()}var $f=function(e){Ff(t,e);function t(n){Af(this,t);var r;r=Bf(this,t,[n]),Sf(r,"options",void 0);var i;return r.options=(i=n==null?void 0:n.options)!==null&&i!==void 0?i:[],r}return t}(G);function Cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Df(e,t,n){return t=Ke(t),Mf(e,Tr()?Reflect.construct(t,n||[],Ke(e).constructor):t.apply(e,n))}function Pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ke(e)}function Tf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}function Mf(e,t){return t&&(Rf(t)==="object"||typeof t=="function")?t:Cf(e)}function Yt(e,t){return Yt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Yt(e,t)}function Rf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Tr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Tr=function(){return!!e})()}var xf=function(e){Tf(t,e);function t(n){Pf(this,t);var r;r=Df(this,t,[n]),Pr(r,"placeholder",void 0),Pr(r,"options",void 0);var i;r.placeholder=(i=n==null?void 0:n.placeholder)!==null&&i!==void 0?i:"";var u;return r.options=(u=n==null?void 0:n.options)!==null&&u!==void 0?u:[],r}return t}(G);function Lf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jf(e,t,n){return t=Xe(t),Uf(e,Rr()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}function qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xe(e)}function Nf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&en(e,t)}function Uf(e,t){return t&&(Vf(t)==="object"||typeof t=="function")?t:Lf(e)}function en(e,t){return en=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},en(e,t)}function Vf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Rr=function(){return!!e})()}var kf=function(e){Nf(t,e);function t(n){qf(this,t);var r;r=jf(this,t,[n]),Mr(r,"options",void 0),Mr(r,"showType",void 0);var i;r.options=(i=n==null?void 0:n.options)!==null&&i!==void 0?i:[];var u;return r.showType=(u=n==null?void 0:n.showType)!==null&&u!==void 0?u:"outline",r}return t}(G);function Hf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gf(e,t,n){return t=Je(t),Kf(e,xr()?Reflect.construct(t,n||[],Je(e).constructor):t.apply(e,n))}function Wf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Je(e)}function zf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}function Kf(e,t){return t&&(Xf(t)==="object"||typeof t=="function")?t:Hf(e)}function tn(e,t){return tn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tn(e,t)}function Xf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function xr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xr=function(){return!!e})()}var Jf=function(e){zf(t,e);function t(n){Wf(this,t);var r;r=Gf(this,t,[n]),oe(r,"maxLength",void 0),oe(r,"minLength",void 0),oe(r,"placeholder",void 0),oe(r,"i18n",void 0),oe(r,"maxRows",void 0),oe(r,"minRows",void 0);var i;r.maxLength=(i=n==null?void 0:n.maxLength)!==null&&i!==void 0?i:"";var u;r.minLength=(u=n==null?void 0:n.minLength)!==null&&u!==void 0?u:"";var o;r.placeholder=(o=n==null?void 0:n.placeholder)!==null&&o!==void 0?o:"";var c;r.maxRows=(c=n==null?void 0:n.maxRows)!==null&&c!==void 0?c:"";var s;r.minRows=(s=n==null?void 0:n.minRows)!==null&&s!==void 0?s:"";var a;return r.i18n=(a=n==null?void 0:n.i18n)!==null&&a!==void 0?a:!1,r}return t}(G);function Qf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Qf(e,i,n[i])})}return e}function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rn(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Zf(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Yf(e,t){switch(e){case"input":return new af(t);case"textarea":return new Jf(t);case"input-number":return new hf(t);case"switch":return new bf(t);case"radio":return new kf(t);case"checkbox":return new $f(t);case"select":return new xf(t);default:return new Yl(t)}}function ep(e){return function(t){var n=e.get(t);if(!!n)return new jl(rn(nn({},n),{props:Yf(n.component,"props"in n?n.props:void 0)}))}}function tp(e){var t=e.fields.reduce(function(i,u){return i.set(u.key,u),i},new Map);function n(i){return new kt(rn(nn({},i),{items:i.items.map(ep(t)).filter(Boolean)}))}function r(i){return i.map(n)}return e.groups.map(function(i){return Ul(i)?new Gt(rn(nn({},i),{items:r(i.items)})):n(i)})}class Lr{constructor(t){var n;this.selected=null,this.selectedInstanceDataScopeParent=null,this.selectedDataScopeFlatInstances=[],this.selectedInstanceSetting=[],this.selectedInstanceSettingItems=[],this.selectedFieldItem=null,this.external={},this.movingInstance=null,this.movingInstanceOldParent=null,this.movingInstanceOldDataScopeParent=null,this.getParentBeforeInstanceMove=(n=t.getParentBeforeInstanceMove)!=null?n:r=>r.parent,this.instance=t.instance,this.getFlatInstances()}get selectedRules(){return this.selected?this.selected.rules:null}get selectedAntdRules(){const t=this.selectedRules;return t||null}setInstances(t){this.instance=t,this.getFlatInstances()}setSelectInstance(t){this.selected=t,this.selectedInstanceDataScopeParent=t?Be(t):null,this.selectedDataScopeFlatInstances=this.selectedInstanceDataScopeParent?Nr(this.selectedInstanceDataScopeParent):[]}setSelectInstanceSettings(t){this.selectedInstanceSetting=t,this.selectedInstanceSettingItems=[],this.selectedInstanceSetting.forEach(n=>{this.selectedInstanceSettingItems.push(...this.getSettingItems(n))})}getSettingItems(t){return t instanceof kt?t.items:t.items.reduce((n,r)=>(n.push(...r.items),n),[])}setSelectedFieldItem(t){this.selectedFieldItem=t}setMovingInstance(t){this.movingInstance=t,this.movingInstanceOldParent=t?this.getParentBeforeInstanceMove(t):null,this.movingInstanceOldDataScopeParent=Be(t)}updateDataFieldCodeMap(t){const n=Be(t);if(!n)return;const r=this.dataFieldCodeMap.get(n.props.datasourceBind.dataCode);if(!!r){for(const[i,u]of r.entries())if(u.id===t.id){r.delete(i);break}qr(t,this.dataFieldCodeMap)}}getFlatInstances(){const t=[],n=new Map,r=new Map;we(this.instance,i=>{t.push(i),n.set(i.id,i),qr(i,r)}),this.flatInstances=t,this.instanceIdMap=n,this.dataFieldCodeMap=r}}function jr(e,t,n){const{dataCode:r,fieldCode:i}=t;r&&i&&(e.has(r)||e.set(r,new Map),e.get(r).set(i,n))}function qr(e,t){if(e.controlType===P.FORM){const n=e.props.dataBind;n instanceof Ie?jr(t,n,e):Object.values(n).forEach(r=>{jr(t,r,e)})}}function we(e,t){(Array.isArray(e)?e:[e]).forEach(r=>{t(r),qt(r)&&we(r.children,t),mr(r)&&we(r.props.headers,t)})}function un(e){return[h.SUBTABLE,h.DATA_VIEW,h.LIST_VIEW].includes(e.type)}function Be(e){let t=e?e.parent:null;if(!t)return null;for(;t&&!un(t);)t=t.parent;return t}function Nr(e){const t=[e];return we(e,n=>{n!==e&&t.includes(n.parent)&&!un(n)&&t.push(n)}),t}let on="";class Ur extends An{constructor(t){super(),this.isMounted=!1,this.id=et(8),this.__pluginsApplied=!1,this.getSchema=Nt,this.getModelBindInfoList=Ut,this.generatePermissions=be,this.$options=Object.freeze(t);const{autoMount:n=!1,Designer:r=Z,schema:i,mode:u="form",store:o={}}=this.$options;this.eventLogic=new ve,this.designer=new r,this.store=new Lr(se({instance:this.designer.createControl(Array.isArray(i)?i:[i])},o)),this.mode=u,n&&this.mount()}mount(){const{plugins:t=[]}=this.$options;this.__plugins=t,this.applyPlugins(),this.isMounted=!0}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{on=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this),on=""}catch(r){he(`${on||t.constructor.name} Plugin apply Error
3
+ ${r}`)}}),this.__pluginsApplied=!0)}emit(t,...n){return super.emit(t,n)}on(t,n){return super.on(t,n)}setInstances(t,n){this.store.setInstances(this.designer.createControl(Array.isArray(t)?t:[t],n))}beforeSelectInstance(){this.store.setSelectInstance(null),this.setSelectedFieldItem(null),this.store.setSelectInstanceSettings([])}afterSelectInstance(){const t=this.store.selected;!t||(this.setSelectedInstanceSetting(),this.emit("select",{instance:t}))}setSelectedInstanceSetting(){var i,u;const t=this.store.selected;if(!t)return;let n=this.getControlSetting(t.type);if(((i=t.parent)==null?void 0:i.controlType)===P.WRAP){const o=this.getControlSetting((u=t.parent)==null?void 0:u.type);n=this.concatSetting(n,o,t.parent.id)}this.store.setSelectInstanceSettings(n),this.callSelectedEffect("");const r={from:null,current:this.store.selectedInstanceDataScopeParent,oldParent:null,newParent:t.parent};this.callSelectedScopeEffect(r)}concatSetting(t,n,r){var u,o,c,s;let i=t;if(((u=t[0])==null?void 0:u.type)==="tab"&&((o=n[0])==null?void 0:o.type)==="tab"){const a=t,f=n.slice(0);i=a.map((y,v)=>{const E=new Gt(y),b=f.findIndex(_=>_.title===y.title);if(b===-1)return E;const p=f.splice(b,1)[0];return p&&(E.items=[...this.formatGroupSetting(p.items,r),...E.items]),E}),f.length&&(i=[...i,...f.map(y=>this.formatGroupSetting(y,r))])}else if(((c=t[0])==null?void 0:c.type)==="group"&&((s=n[0])==null?void 0:s.type)==="group"){const a=t,f=n;i=[...this.formatGroupSetting(f,r),...a]}return i}formatGroupSetting(t,n){if(ye(t))return t.map(r=>{const i=new kt(r);return i.fromId=n,i});{const r=new Gt(t);return r.items=this.formatGroupSetting(r.items,n),r}}setControlConfig(...t){return this.designer.registerControlConfig(...t)}getControlConfig(t){return this.designer.getControlConfig(t)}getControlSetting(t){const n=this.designer.getControlSetting(t);return n?tp(n):[]}selectInstance(t){this.beforeSelectInstance(),this.store.setSelectInstance(t),this.afterSelectInstance()}setSelectedFieldItem(t){this.store.setSelectedFieldItem(t),this.callSelectedEffect("dataBind",{fieldItem:t})}moveStart(t){const n=this.getInstance(t);n&&this.store.setMovingInstance(n)}moveEnd(t=this.store.movingInstance){var s;if(t===null)return;const n=this.getInstance(t);if(!n)return;const r=this.store.movingInstanceOldDataScopeParent,i=Be(n),u=this.store.movingInstanceOldParent,o=n.parent;this.store.setMovingInstance(null),n.id!==((s=this.store.selected)==null?void 0:s.id)?this.selectInstance(n):this.store.setSelectInstance(n),this.store.getFlatInstances();const c={from:r,current:i,oldParent:u,newParent:o};this.callSelectedScopeEffect(c),u?this.emit("moved",se({},c)):this.emit("joined",se({},c))}createInstance(t,n){return this.designer.createControlInstance(t,n)}getInstance(t){return typeof t=="string"?this.store.instanceIdMap.get(t):t}getInstances(){return this.store.flatInstances}getInstancesFromType(t){return this.getInstances().filter(n=>n.type===t)}getDataScopeInstances(){return this.store.selectedDataScopeFlatInstances}getDataScopeInstancesFromType(t){return this.getDataScopeInstances().filter(n=>n.type===t)}updateInstancePropValue(t,n,r,i){var o;!gn(t.props,n,r)||(n.startsWith("dataBind")&&this.store.updateDataFieldCodeMap(t),t.id===((o=this.store.selected)==null?void 0:o.id)&&this.callSelectedEffect(n,i),this.emit("updated",{instance:t,propName:n,value:r}))}updateInstanceProps(t,n,r,i=""){Object.entries(n).forEach(([u,o])=>{const c=`${i?i+".":""}${u}`;Xa(o)?this.updateInstanceProps(t,o,r,c):this.updateInstancePropValue(t,c,o,r)})}setInstance(t,n,r,i){ct(n)?this.updateInstancePropValue(t,String(n),r,i):this.updateInstanceProps(t,n,r)}removeInstance(t){const n=t.parent;if(!n)return;const r=n.controlType===P.LIST&&n.props.headers.includes(t)?n.props.headers:n.children,i=r.findIndex(u=>u===t);i>-1&&r.splice(i,1),this.store.getFlatInstances(),this.emit("removed",{instance:t,index:i,parent:n})}replaceInstance(t,n){const r=t.parent;if(!r)return;const i=r.controlType===P.LIST&&r.props.headers.includes(t)?r.props.headers:r.children,u=i.findIndex(o=>o===t);u>-1&&i.splice(u,1,n),this.store.getFlatInstances()}updateInstanceType(t,n){const r=t.toSchema(),i=this.createInstance(n,{id:r.id,props:r.props});if(!i){Fe(`can\u2018t update instance type to ${n}`);return}return i}validate(t,n){return Vt(this.store.instance,t,n)}getCustomControlsInUse(){return this.getInstances().filter(this.assertInstanceIsCustomControl).reduce((t,n)=>(t.includes(n.type)||t.push(n.type),t),[])}assertInstanceIsCustomControl(t){return!Ja(ct(t)?t:t.type)}static register(...t){return Z.register(...t),this}static judgeControlIsRegistered(t){return Z.staticRegisteredTypes.has(t.Designer.controlType)}judgeControlIsRegistered(t){return this.designer.registeredControlTypes.has(t.Designer.controlType)}register(...t){return this.designer.registerControl(...t),this}assertInstance(t,n){return ct(n)?t.type===n:n.includes(t.type)}getInstanceInListControl(t){let n=t;for(;n;){if(n.controlType===P.LIST)return!0;n=n.parent}return!1}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}callSelectedEffect(t,n={}){this.store.selectedInstanceSettingItems.forEach(r=>{r.callEffect(t,this,se({control:this.store.selected},n))})}callSelectedScopeEffect(t={}){this.store.selectedInstanceSettingItems.forEach(n=>{n.callScopeEffect(this,se({control:this.store.selected},t))})}}Ur.EventLogic=ve,m.Builder=Tl,m.Designer=Z,m.Driven=Ur,m.Store=Lr,m.checkSchema=Vt,m.fillModelBindInfoListFieldCode=Ol,m.findInstanceDataScopeParent=Be,m.generatePermissions=be,m.getColumnTypeFromFiledType=Ue,m.getColumnsFromFiledType=$l,m.getColumnsFromModelBindInfoList=Il,m.getDataScopeFlatInstances=Nr,m.getMasterFormControls=Fl,m.getModelBindInfoList=Ut,m.hasChildrenControl=qt,m.hasHeaderControl=mr,m.isDataScopeInstance=un,m.loop=we,m.loopFormControl=Ne,m.toSchema=Nt,Object.defineProperty(m,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-driven",
3
- "version": "2.5.9-beta.2",
3
+ "version": "2.5.9-beta.5",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,10 +26,10 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-controls": "2.5.9-beta.2",
29
+ "@byteluck-fe/model-driven-controls": "2.5.9-beta.5",
30
30
  "@byteluck-fe/model-driven-core": "2.5.3",
31
31
  "@byteluck-fe/model-driven-settings": "2.5.3",
32
32
  "@byteluck-fe/model-driven-shared": "2.5.3"
33
33
  },
34
- "gitHead": "3cbe959ab53882567359f99def54e4426e19ea41"
34
+ "gitHead": "7e298ded459d91f50ad34b7867a8ed9017d0bdee"
35
35
  }