@byteluck-fe/model-driven-engine 4.54.0-lx2 → 4.65.0-lx0

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.
@@ -957,9 +957,9 @@ var Engine = /*#__PURE__*/ function(Watcher) {
957
957
  }
958
958
  },
959
959
  {
960
- /**
961
- * 设置payload的options,提供在不是使用标准api修改state的时候可以传递options,会在本次任务执行完成之后清空
962
- * @param options 需要携带的options
960
+ /**
961
+ * 设置payload的options,提供在不是使用标准api修改state的时候可以传递options,会在本次任务执行完成之后清空
962
+ * @param options 需要携带的options
963
963
  * */ key: "setPayloadOptions",
964
964
  value: function setPayloadOptions(options) {
965
965
  eventOptionsTemp = options;
@@ -976,9 +976,9 @@ var Engine = /*#__PURE__*/ function(Watcher) {
976
976
  }
977
977
  },
978
978
  {
979
- /**
980
- * 向Store设置一组值,明细表必须全量赋值,并触发事件(触发事件是根据组件在页面中的顺序逐个触发)
981
- * @param states
979
+ /**
980
+ * 向Store设置一组值,明细表必须全量赋值,并触发事件(触发事件是根据组件在页面中的顺序逐个触发)
981
+ * @param states
982
982
  */ key: "setStates",
983
983
  value: function setStates(states, rowIndex, options) {
984
984
  var _this = this;
@@ -1049,11 +1049,11 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1049
1049
  }
1050
1050
  },
1051
1051
  {
1052
- /**
1053
- * 通过dataCode和fieldCode来获取控件的值
1054
- * @param dataCode 模型编码 - 如果是主表的话就是主表的模型编码,明细子表的话就是子表的模型编码
1055
- * @param fieldCode 字段编码 - 控件绑定的数据项的编码
1056
- * @param rowIndex 行下标 - 如果是明细子表中的控件需要提供
1052
+ /**
1053
+ * 通过dataCode和fieldCode来获取控件的值
1054
+ * @param dataCode 模型编码 - 如果是主表的话就是主表的模型编码,明细子表的话就是子表的模型编码
1055
+ * @param fieldCode 字段编码 - 控件绑定的数据项的编码
1056
+ * @param rowIndex 行下标 - 如果是明细子表中的控件需要提供
1057
1057
  * */ key: "getField",
1058
1058
  value: function getField(dataCode, fieldCode, rowIndex) {
1059
1059
  if (!fieldCode) {
@@ -1166,13 +1166,13 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1166
1166
  }
1167
1167
  },
1168
1168
  {
1169
- /**
1170
- * 通过dataCode和fieldCode来设置控件的值
1171
- * @param dataCode 模型编码 - 如果是主表的话就是主表的模型编码,明细子表的话就是子表的模型编码
1172
- * @param fieldCode 字段编码 - 控件绑定的数据项的编码
1173
- * @param value 修改的值
1174
- * @param rowIndex 行下标 - 如果是明细子表中的控件需要提供
1175
- * @param options 触发事件携带的参数
1169
+ /**
1170
+ * 通过dataCode和fieldCode来设置控件的值
1171
+ * @param dataCode 模型编码 - 如果是主表的话就是主表的模型编码,明细子表的话就是子表的模型编码
1172
+ * @param fieldCode 字段编码 - 控件绑定的数据项的编码
1173
+ * @param value 修改的值
1174
+ * @param rowIndex 行下标 - 如果是明细子表中的控件需要提供
1175
+ * @param options 触发事件携带的参数
1176
1176
  * */ key: "setField",
1177
1177
  value: function setField(dataCode, fieldCode, value, rowIndex, options) {
1178
1178
  var dataBindMapping = this.getDataBindMapping(dataCode, fieldCode);
@@ -1200,12 +1200,12 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1200
1200
  }
1201
1201
  },
1202
1202
  {
1203
- /**
1204
- * 通过dataCode和 state来给一组控件赋值,并触发事件携带options
1205
- * @param dataCode 需要赋值的目标模型
1206
- * @param state 赋值对象,以fieldCode为key组成的对象
1207
- * @param rowIndex 行下标,给明细子表赋值时指定赋值某行
1208
- * @param options 触发事件携带的参数
1203
+ /**
1204
+ * 通过dataCode和 state来给一组控件赋值,并触发事件携带options
1205
+ * @param dataCode 需要赋值的目标模型
1206
+ * @param state 赋值对象,以fieldCode为key组成的对象
1207
+ * @param rowIndex 行下标,给明细子表赋值时指定赋值某行
1208
+ * @param options 触发事件携带的参数
1209
1209
  * */ key: "setFields",
1210
1210
  value: function setFields(dataCode, state, rowIndex, options) {
1211
1211
  var _this = this;
@@ -1246,10 +1246,10 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1246
1246
  }
1247
1247
  },
1248
1248
  {
1249
- /**
1250
- * 通过dataCode来将state转化为标准的state结构
1251
- * @param dataCode 需要转换的目标模型code
1252
- * @param state 值对象,以fieldCode为key组成的对象
1249
+ /**
1250
+ * 通过dataCode来将state转化为标准的state结构
1251
+ * @param dataCode 需要转换的目标模型code
1252
+ * @param state 值对象,以fieldCode为key组成的对象
1253
1253
  * */ key: "buildFields",
1254
1254
  value: function buildFields(dataCode, state) {
1255
1255
  var _this = this;
@@ -1290,10 +1290,10 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1290
1290
  }
1291
1291
  },
1292
1292
  {
1293
- /**
1294
- * 向Store设置一组值,并触发事件携带options
1295
- * @param dataSet
1296
- * @options 传递给关联事件中 EventPayload中的options,一般在plugin中监听使用
1293
+ /**
1294
+ * 向Store设置一组值,并触发事件携带options
1295
+ * @param dataSet
1296
+ * @options 传递给关联事件中 EventPayload中的options,一般在plugin中监听使用
1297
1297
  */ key: "setData",
1298
1298
  value: function setData(dataSet, options) {
1299
1299
  var _this = this;
@@ -1430,19 +1430,19 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1430
1430
  }
1431
1431
  },
1432
1432
  {
1433
- /**
1434
- * 获取控件的dataBind
1435
- * @param controlId
1433
+ /**
1434
+ * 获取控件的dataBind
1435
+ * @param controlId
1436
1436
  * */ key: "getDataBind",
1437
1437
  value: function getDataBind(controlId) {
1438
1438
  return this.store.getDataBind(controlId);
1439
1439
  }
1440
1440
  },
1441
1441
  {
1442
- /**
1443
- * 获取组件实例,传入rowIndex代表获取明细表内的控件实例,rowIndex传入-1代表获取表头内的实例
1444
- * @param controlId
1445
- * @param rowIndex
1442
+ /**
1443
+ * 获取组件实例,传入rowIndex代表获取明细表内的控件实例,rowIndex传入-1代表获取表头内的实例
1444
+ * @param controlId
1445
+ * @param rowIndex
1446
1446
  */ key: "getInstance",
1447
1447
  value: function getInstance(controlId, rowIndex) {
1448
1448
  var instances = this.getInstances(controlId, rowIndex === -1);
@@ -1461,10 +1461,10 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1461
1461
  }
1462
1462
  },
1463
1463
  {
1464
- /**
1465
- * 获取组件实例,明细表中的组件将会得到数组, 第二个参数为(false/不传入)则获取到的是明细表内不包含表头内实例的所有控件实例,传入true则获取到包含表头内实例的所有控件实例,表头内实例永远在下标0的位置
1466
- * @param controlId
1467
- * @param header 明细表内是否获取表头的控件
1464
+ /**
1465
+ * 获取组件实例,明细表中的组件将会得到数组, 第二个参数为(false/不传入)则获取到的是明细表内不包含表头内实例的所有控件实例,传入true则获取到包含表头内实例的所有控件实例,表头内实例永远在下标0的位置
1466
+ * @param controlId
1467
+ * @param header 明细表内是否获取表头的控件
1468
1468
  */ // getInstances(
1469
1469
  // controlId?: string,
1470
1470
  // header: boolean = false
@@ -1586,6 +1586,57 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1586
1586
  }
1587
1587
  }
1588
1588
  },
1589
+ {
1590
+ /**
1591
+ * 前端二开新增方法,支持给多选控件动态赋值选项和默认值
1592
+ * ctx.setInstance('zQX4ViR3c0', 'options', [{ label:'初级:N<2年', value: '初级' },{ label:'高级:N>2年', value: '高级' }]);
1593
+ * ctx.setState('zQX4ViR3c0',['初级'])
1594
+ * 将以上两个方法封装成一个新的方法setInstanceAndState
1595
+ * ctx.setInstanceAndState('uexLafJeGH', 'options', [{ label:'初级:N<2年', value: '初级' ,checked: true},{ label:'初级:N>2年', value: '高级' }]);
1596
+ * 可同时设置选项和默认值
1597
+ * @param instance
1598
+ * @param props
1599
+ * @param value
1600
+ * @param rowIndex
1601
+ */ key: "setInstanceAndState",
1602
+ value: function setInstanceAndState(instance, props, value, rowIndex) {
1603
+ this.setInstance(instance, props, value, rowIndex);
1604
+ if (value && Array.isArray(value)) {
1605
+ var stateValues = [];
1606
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1607
+ try {
1608
+ for(var _iterator = value[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1609
+ var item = _step.value;
1610
+ if (item.checked) {
1611
+ stateValues.push(item.value);
1612
+ }
1613
+ }
1614
+ } catch (err) {
1615
+ _didIteratorError = true;
1616
+ _iteratorError = err;
1617
+ } finally{
1618
+ try {
1619
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1620
+ _iterator.return();
1621
+ }
1622
+ } finally{
1623
+ if (_didIteratorError) {
1624
+ throw _iteratorError;
1625
+ }
1626
+ }
1627
+ }
1628
+ if (stateValues.length > 0) {
1629
+ var instanceId = '';
1630
+ if (typeof instance !== 'string') {
1631
+ instanceId = instance.id;
1632
+ } else {
1633
+ instanceId = instance;
1634
+ }
1635
+ this.setState(instanceId, stateValues, rowIndex);
1636
+ }
1637
+ }
1638
+ }
1639
+ },
1589
1640
  {
1590
1641
  key: "getControlIdMapping",
1591
1642
  value: function getControlIdMapping() {
@@ -1636,27 +1687,27 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1636
1687
  },
1637
1688
  {
1638
1689
  key: "assertInstance",
1639
- value: /**
1640
- * 判断控件的类型,返回当前控件的正确类型
1690
+ value: /**
1691
+ * 判断控件的类型,返回当前控件的正确类型
1641
1692
  * */ function assertInstance(instance, types) {
1642
1693
  return isString(types) ? instance.type === types : types.includes(instance.type);
1643
1694
  }
1644
1695
  },
1645
1696
  {
1646
1697
  key: "assertInstanceIsCustomControl",
1647
- value: /**
1648
- * 判断控件或控件类型是一个自定义控件
1698
+ value: /**
1699
+ * 判断控件或控件类型是一个自定义控件
1649
1700
  * */ function assertInstanceIsCustomControl(instance) {
1650
1701
  return !isBuiltInControls(isString(instance) ? instance : instance.type);
1651
1702
  }
1652
1703
  },
1653
1704
  {
1654
1705
  key: "getInstanceRowIndex",
1655
- value: /**
1656
- * 获取控件在明细子表中的行下标,
1657
- * 如果控件在表头内,则返回-1
1658
- * 如果控件在表内,则返回行下标
1659
- * 如果控件不在明细表内,则返回undefined
1706
+ value: /**
1707
+ * 获取控件在明细子表中的行下标,
1708
+ * 如果控件在表头内,则返回-1
1709
+ * 如果控件在表内,则返回行下标
1710
+ * 如果控件不在明细表内,则返回undefined
1660
1711
  * */ // public getInstanceRowIndex(
1661
1712
  // instance: ControlRuntimeInstance<ControlsKeys> | RuntimeControl
1662
1713
  // ) {
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var WD=Object.defineProperty,GD=Object.defineProperties;var ZD=Object.getOwnPropertyDescriptors;var Uo=Object.getOwnPropertySymbols,JD=Object.getPrototypeOf,XD=Object.prototype.hasOwnProperty,KD=Object.prototype.propertyIsEnumerable,QD=Reflect.get;var Un=Math.pow,Vo=(G,ie,ce)=>ie in G?WD(G,ie,{enumerable:!0,configurable:!0,writable:!0,value:ce}):G[ie]=ce,ae=(G,ie)=>{for(var ce in ie||(ie={}))XD.call(ie,ce)&&Vo(G,ce,ie[ce]);if(Uo)for(var ce of Uo(ie))KD.call(ie,ce)&&Vo(G,ce,ie[ce]);return G},ou=(G,ie)=>GD(G,ZD(ie));var Ho=(G,ie,ce)=>QD(JD(G),ce,ie);var We=(G,ie,ce)=>new Promise((Vn,rn)=>{var Hn=Ge=>{try{kt(ce.next(Ge))}catch(Lt){rn(Lt)}},zn=Ge=>{try{kt(ce.throw(Ge))}catch(Lt){rn(Lt)}},kt=Ge=>Ge.done?Vn(Ge.value):Promise.resolve(Ge.value).then(Hn,zn);kt((ce=ce.apply(G,ie)).next())});(function(G,ie){typeof exports=="object"&&typeof module!="undefined"?ie(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ie):(G=typeof globalThis!="undefined"?globalThis:G||self,ie(G.modelDrivenEngine={},G.require$$0))})(this,function(G,ie){"use strict";function ce(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Vn=ce(ie),rn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Hn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",zn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",kt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ge="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Lt="{caption}\u5FC5\u586B",zo="\u8BF7\u8F93\u5165\u6807\u9898",Wo="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Go="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Zo="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Jo="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Xo="\u8BF7\u7ED1\u5B9A\u8868\u5355",Ko="\u8BF7\u7ED1\u5B9A\u5217\u8868",Qo="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Yo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ea="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ta="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",na="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ra="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ua="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ia="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",oa="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",aa="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",sa="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ca="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",la="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fa="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",da="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ha="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",pa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Da="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",ga="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",ma="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",ya="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",va="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ea="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Aa="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Fa="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ca="\u8BF7\u9009\u62E9\u7701",wa="\u8BF7\u9009\u62E9\u5E02",ba="\u8BF7\u9009\u62E9\u533A",Ba="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",_a="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Sa="\u8BF7\u8F93\u5165\u5217\u5BBD",Ma="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Na="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Ia="\u8BF7\u9009\u62E9\u63A7\u4EF6",Oa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",xa="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ta="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Pa="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",$a="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ra="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ja="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ka="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",La="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",qa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ua="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Va="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",za="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Wa="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ga="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Za="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ja="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xa="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ka="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Qa="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ya="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",es="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",ts="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",ns="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",rs="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",us="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",is={isNotNumber:rn,isNotString:Hn,isNotObject:zn,isNotArray:kt,isNotBoolean:Ge,runtimeRequired:Lt,pleaseEnterCaption:zo,pleaseEnterCaptionTip:Wo,pleaseEnterRowCaption:Go,pleaseEnterPlaceholder:Zo,pleaseEnterFieldCode:Jo,pleaseEnterForm:Xo,pleaseEnterList:Ko,pleaseEnterProcess:Qo,pleaseEnterLabel:Yo,pleaseEnterValue:ea,bizKeyNotBindFiled:ta,pleaseSelectOneField:na,pleaseEnterNumberRange:ra,pleaseEnterAValueGreaterThanMin:ua,pleaseEnterAValueLessThanMax:ia,numberRangeSetError:oa,stringRangeError:aa,attachmentMaxSize:sa,pleaseEnterTotalScoreSetting:ca,theTotalScoreMustNotBeLessThan1:la,scoreDefaultValueRange:fa,attachmentLimitError:da,PleaseReselectTheOptionalQuantity:ha,TheMaximumLengthIsGreaterThanTheMinimumLength:pa,TheMinimumLengthIsGreaterThanTheMaximumLength:Da,PleaseSelectTheCorrectOptionSettings:ga,optionIdIsRepeat:ma,optionIsRequired:ya,pleaseEnterDataCode:va,pleaseEnterValueFieldCode:Ea,pleaseEnterSvcCode:Aa,pleaseBindAtLeastOneDisplayValue:Fa,pleaseSelectProvince:Ca,pleaseSelectCity:wa,pleaseSelectDistrict:ba,limitRowsCannotBeLessThan0:Ba,TheNumberOfRowsCannotBeLessThanMinRows:_a,pleaseEnterColumnWidth:Sa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ma,pleaseCompleteAllRulesAndConditions:Na,pleaseSelectControl:Ia,pleaseSelectAtLeastOneColumn:Oa,pleaseSelectFillBackMode:xa,pleaseSelectDashboard:Ta,rootNodeIsRequired:Pa,theViewNameCannotBeEmpty:$a,pleaseSelectOcrType:Ra,pleaseSelectAtLeastOneFieldToFillIn:ja,pleaseChooseAtLeastOne:ka,pleaseEnterButtonContent:La,pleaseEnterDataCodeInDataSetting:qa,pleaseEnterValueFieldCodeInDataSetting:Ua,pleaseEnterSvcCodeInDataSetting:Va,pleaseBindAtLeastOneDisplayValueInDataSetting:Ha,rootNodeIsRequiredInDataSetting:za,pleaseEnterMaxHeight:Wa,pleaseEnter:Ga,pleaseEnterWatermark:Za,pleaseEnterFileName:Ja,pleaseUploadAtLeastOnePrintTemplate:Xa,pleaseAssignBusiness:Ka,pleaseAssignExternal:Qa,pleaseEnterAliasCode:Ya,pleaseSelectDataCode:es,pleaseSelectSvcCode:ts,pleaseSelectJoinFieldCode:ns,pleaseSelectMainFieldCode:rs,pleaseSelectSortFieldCode:us},os="Please enter a number",as="Please enter a string",ss="Please enter an object",cs="Please enter an array",ls="Please enter a boolean",fs="{caption} Required",ds="Please enter the title",hs="Please enter the bubble prompt",ps="Please enter the row title",Ds="Please enter the prompt text",gs="Please bind data items",ms="Please bind the form",ys="Please bind the list",vs="Please bind the process",Es="Please enter the displayed value",As="Please enter the stored value",Fs="The document number is not bound to the data item",Cs="Please select at least one display field",ws="Please enter a value greater than or equal to {min} and less than or equal to {max}",bs="Please enter a value greater than or equal to {min}",Bs="Please enter a value less than or equal to {max}",_s="The value range is set incorrectly",Ss="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ms="The attachment size must be between 0MB and 1000MB",Ns="Please fill in the total score setting",Is="The total score cannot be less than 1",Os="The default value must be between {min} and {max}",xs="The number of attachments uploaded must be between {min} and {max}",Ts="Please re-select the optional quantity",Ps="The maximum length of the control must be greater than the minimum length",$s="The minimum length of the control must be less than the maximum length",Rs="Please select the correct option setting",js="Option ID cannot be repeated",ks="Please enter at least one option",Ls="Please bind the data source",qs="Please bind the stored value",Us="Please bind the service",Vs="At least one display value must be bound",Hs="Please select a province",zs="Please select a city",Ws="Please select a district",Gs="The minimum number of lines to fill in cannot be less than 0",Zs="The number of rows cannot be less than {min} rows",Js="Please enter the column width",Xs="Please set the logical relationship of all rule conditions",Ks="Please complete all rules and conditions",Qs="please select control",Ys="Please select the dashboard",ec="View name cannot be empty",tc="Please select recognition type",nc="Please select at least one field to fill in",rc="Please select at least one",uc="Please enter the button title",ic="Please bind the business model in the data settings",oc="Please bind storage values in data settings",ac="Please bind the service in the data settings",sc="Please bind at least one display value in the data settings",cc="Please select the root node in the data settings",lc="Please enter the maximum height",fc="The input content cannot be empty",dc="Watermark cannot be empty",hc="File name cannot be empty",pc="Please upload at least one printing template!\uFF01",Dc="Please select a specific business department",gc="Please select a specified external organization",mc="Please enter a sub table alias",yc="Please select the associated table to set the business model",vc="Please select the association table to set the binding service",Ec="Select associated sub table fields",Ac="Please select the associated main table field",Fc="Please select the sort field",Cc={isNotNumber:os,isNotString:as,isNotObject:ss,isNotArray:cs,isNotBoolean:ls,runtimeRequired:fs,pleaseEnterCaption:ds,pleaseEnterCaptionTip:hs,pleaseEnterRowCaption:ps,pleaseEnterPlaceholder:Ds,pleaseEnterFieldCode:gs,pleaseEnterForm:ms,pleaseEnterList:ys,pleaseEnterProcess:vs,pleaseEnterLabel:Es,pleaseEnterValue:As,bizKeyNotBindFiled:Fs,pleaseSelectOneField:Cs,pleaseEnterNumberRange:ws,pleaseEnterAValueGreaterThanMin:bs,pleaseEnterAValueLessThanMax:Bs,numberRangeSetError:_s,stringRangeError:Ss,attachmentMaxSize:Ms,pleaseEnterTotalScoreSetting:Ns,theTotalScoreMustNotBeLessThan1:Is,scoreDefaultValueRange:Os,attachmentLimitError:xs,PleaseReselectTheOptionalQuantity:Ts,TheMaximumLengthIsGreaterThanTheMinimumLength:Ps,TheMinimumLengthIsGreaterThanTheMaximumLength:$s,PleaseSelectTheCorrectOptionSettings:Rs,optionIdIsRepeat:js,optionIsRequired:ks,pleaseEnterDataCode:Ls,pleaseEnterValueFieldCode:qs,pleaseEnterSvcCode:Us,pleaseBindAtLeastOneDisplayValue:Vs,pleaseSelectProvince:Hs,pleaseSelectCity:zs,pleaseSelectDistrict:Ws,limitRowsCannotBeLessThan0:Gs,TheNumberOfRowsCannotBeLessThanMinRows:Zs,pleaseEnterColumnWidth:Js,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Xs,pleaseCompleteAllRulesAndConditions:Ks,pleaseSelectControl:Qs,pleaseSelectDashboard:Ys,theViewNameCannotBeEmpty:ec,pleaseSelectOcrType:tc,pleaseSelectAtLeastOneFieldToFillIn:nc,pleaseChooseAtLeastOne:rc,pleaseEnterButtonContent:uc,pleaseEnterDataCodeInDataSetting:ic,pleaseEnterValueFieldCodeInDataSetting:oc,pleaseEnterSvcCodeInDataSetting:ac,pleaseBindAtLeastOneDisplayValueInDataSetting:sc,rootNodeIsRequiredInDataSetting:cc,pleaseEnterMaxHeight:lc,pleaseEnter:fc,pleaseEnterWatermark:dc,pleaseEnterFileName:hc,pleaseUploadAtLeastOnePrintTemplate:pc,pleaseAssignBusiness:Dc,pleaseAssignExternal:gc,pleaseEnterAliasCode:mc,pleaseSelectDataCode:yc,pleaseSelectSvcCode:vc,pleaseSelectJoinFieldCode:Ec,pleaseSelectMainFieldCode:Ac,pleaseSelectSortFieldCode:Fc},wc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_c="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sc="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mc="{caption}\u5FC5\u9808",Nc="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ic="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Oc="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xc="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Tc="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Pc="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$c="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Rc="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",jc="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",kc="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Lc="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",qc="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Uc="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vc="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hc="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",zc="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Wc="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Gc="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Zc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Jc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Kc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Qc="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Yc="\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",el="\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",tl="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nl="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",rl="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ul="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",il="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ol="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",al="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",sl="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cl="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ll="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fl="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",dl="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",hl="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pl="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Dl="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",gl="please select control",ml="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",yl="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",vl="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",El="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Al="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Fl="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Cl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",wl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",bl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Bl="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",_l="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Sl="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ml="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Nl="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Il="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ol="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",xl="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Tl="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pl="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$l="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Rl="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",jl="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",kl="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ll="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ql={isNotNumber:wc,isNotString:bc,isNotObject:Bc,isNotArray:_c,isNotBoolean:Sc,runtimeRequired:Mc,pleaseEnterCaption:Nc,pleaseEnterCaptionTip:Ic,pleaseEnterRowCaption:Oc,pleaseEnterPlaceholder:xc,pleaseEnterFieldCode:Tc,pleaseEnterForm:Pc,pleaseEnterList:$c,pleaseEnterProcess:Rc,pleaseEnterLabel:jc,pleaseEnterValue:kc,bizKeyNotBindFiled:Lc,pleaseSelectOneField:qc,pleaseEnterNumberRange:Uc,pleaseEnterAValueGreaterThanMin:Vc,pleaseEnterAValueLessThanMax:Hc,numberRangeSetError:zc,stringRangeError:Wc,attachmentMaxSize:Gc,pleaseEnterTotalScoreSetting:Zc,theTotalScoreMustNotBeLessThan1:Jc,scoreDefaultValueRange:Xc,attachmentLimitError:Kc,PleaseReselectTheOptionalQuantity:Qc,TheMaximumLengthIsGreaterThanTheMinimumLength:Yc,TheMinimumLengthIsGreaterThanTheMaximumLength:el,PleaseSelectTheCorrectOptionSettings:tl,optionIdIsRepeat:nl,optionIsRequired:rl,pleaseEnterDataCode:ul,pleaseEnterValueFieldCode:il,pleaseEnterSvcCode:ol,pleaseBindAtLeastOneDisplayValue:al,pleaseSelectProvince:sl,pleaseSelectCity:cl,pleaseSelectDistrict:ll,limitRowsCannotBeLessThan0:fl,TheNumberOfRowsCannotBeLessThanMinRows:dl,pleaseEnterColumnWidth:hl,pleaseSetTheLogicalRelationshipOfAllRuleConditions:pl,pleaseCompleteAllRulesAndConditions:Dl,pleaseSelectControl:gl,pleaseSelectDashboard:ml,theViewNameCannotBeEmpty:yl,pleaseSelectOcrType:vl,pleaseSelectAtLeastOneFieldToFillIn:El,pleaseChooseAtLeastOne:Al,pleaseEnterButtonContent:Fl,pleaseEnterDataCodeInDataSetting:Cl,pleaseEnterValueFieldCodeInDataSetting:wl,pleaseEnterSvcCodeInDataSetting:bl,pleaseBindAtLeastOneDisplayValueInDataSetting:Bl,rootNodeIsRequiredInDataSetting:_l,pleaseEnterMaxHeight:Sl,pleaseEnter:Ml,pleaseEnterWatermark:Nl,pleaseEnterFileName:Il,pleaseUploadAtLeastOnePrintTemplate:Ol,pleaseAssignBusiness:xl,pleaseAssignExternal:Tl,pleaseEnterAliasCode:Pl,pleaseSelectDataCode:$l,pleaseSelectSvcCode:Rl,pleaseSelectJoinFieldCode:jl,pleaseSelectMainFieldCode:kl,pleaseSelectSortFieldCode:Ll},Ul={zhCN:is,enUS:Cc,jaJP:ql},Ze=function(e){return e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable",e}({}),un=function(e){return e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN",e}({}),au="zh-CN";function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=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}({}),oe=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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.OPERATION_BUTTON="operation-button",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-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.GRID_LAYOUT_CONTAINER="grid-layout-container",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.ACTION_BAR="action-bar",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.GRID_LAYOUT_WRAP="grid-layout-wrap",e.SENSITIVEN_INFORMATION="sensitiven-information",e}({}),le=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}({}),ve;ve={},Se(ve,"array","array-column"),Se(ve,"auto_number","auto-number-column"),Se(ve,"decimal","decimal-column"),Se(ve,"department","department-column"),Se(ve,"file","file-column"),Se(ve,"image","image-column"),Se(ve,"location","location-column"),Se(ve,"people","employee-column"),Se(ve,"text","text-column"),Se(ve,"timescope","timescope-column"),Se(ve,"timestamp","timestamp-column"),Se(ve,"varchar","varchar-column"),Se(ve,"relation","varchar-column");var su="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Vl=su+"0123456789";function on(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?su:Vl,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function Wn(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 Hl(e){if(Array.isArray(e))return Wn(e)}function zl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cu(e,t,n){return t=qt(t),Jl(e,Zn()?Reflect.construct(t,n||[],qt(e).constructor):t.apply(e,n))}function lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t,n){return Zn()?an=Reflect.construct:an=function(u,i,o){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(u,a),l=new s;return o&&Ut(l,o.prototype),l},an.apply(null,arguments)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qt(e)}function fu(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&&Ut(e,t)}function Wl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zl(){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 Jl(e,t){return t&&(Xl(t)==="object"||typeof t=="function")?t:zl(e)}function Ut(e,t){return Ut=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ut(e,t)}function du(e){return Hl(e)||Gl(e)||Kl(e)||Zl()}function Xl(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Kl(e,t){if(!!e){if(typeof e=="string")return Wn(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 Wn(e,t)}}function Gn(e){var t=typeof Map=="function"?new Map:void 0;return Gn=function(r){if(r===null||!Wl(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,u)}function u(){return an(r,arguments,qt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Ut(u,r)},Gn(e)}function Zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Zn=function(){return!!e})()}var Jn=console;function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Jn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(du(u)))}function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Jn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(du(u)))}function Ql(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Kn=function(e){fu(t,e);function t(n){lu(this,t);var r;return r=cu(this,t,[n]),r.name="\u{1F4A5} Driven Error",r.message=n?Ql(n):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",r}return t}(Gn(Error)),Yl=function(e){fu(t,e);function t(n){lu(this,t);var r;return r=cu(this,t,[n]),r.name="\u{1F6A8} Driven Reference Error",r}return t}(Kn);function Je(e){throw new Kn(e)}function hu(e){throw new Yl(e)}function sn(e){Jn.error(new Kn(e))}function Xe(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":Xe(n==null?void 0:n.children,t);break;case"wrap":Xe(n==null?void 0:n.children,t);break;case"search":Xe(n==null?void 0:n.children,t);break;case"form":t(n)}})}var ef=Object.prototype.toString;function pu(e,t){return ef.call(e)==="[object "+t+"]"}function tf(e){return pu(e,"String")}function nf(e){return pu(e,"Promise")}var rf=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();nf(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):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 u=this.getMessage(t);return u?this.formatMessage(u,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(u,i,o,a){if(u!==void 0){var s=u[i];if(!(o===a.length-1&&!tf(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,u){var i=n[u];return i!==void 0?String(i):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 uf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Du(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 of(e,t,n){return t&&Du(e.prototype,t),n&&Du(e,n),e}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=function(){function e(){uf(this,e)}return of(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]:au;return new rf({locale:n,messages:Ul})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),e}();af(Me,"$i18n",Me.resetI18n());function Qn(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,a,s){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){tt("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return a===s.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var nt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yn={exports:{}};(function(e){(function(t){var n=function(h,m,E){if(!l(m)||f(m)||d(m)||p(m)||s(m))return m;var A,b=0,N=0;if(c(m))for(A=[],N=m.length;b<N;b++)A.push(n(h,m[b],E));else{A={};for(var I in m)Object.prototype.hasOwnProperty.call(m,I)&&(A[h(I,E)]=n(h,m[I],E))}return A},r=function(h,m){m=m||{};var E=m.separator||"_",A=m.split||/(?=[A-Z])/;return h.split(A).join(E)},u=function(h){return g(h)?h:(h=h.replace(/[\-_\s]+(.)?/g,function(m,E){return E?E.toUpperCase():""}),h.substr(0,1).toLowerCase()+h.substr(1))},i=function(h){var m=u(h);return m.substr(0,1).toUpperCase()+m.substr(1)},o=function(h,m){return r(h,m).toLowerCase()},a=Object.prototype.toString,s=function(h){return typeof h=="function"},l=function(h){return h===Object(h)},c=function(h){return a.call(h)=="[object Array]"},f=function(h){return a.call(h)=="[object Date]"},d=function(h){return a.call(h)=="[object RegExp]"},p=function(h){return a.call(h)=="[object Boolean]"},g=function(h){return h=h-0,h===h},y=function(h,m){var E=m&&"process"in m?m.process:m;return typeof E!="function"?h:function(A,b){return E(A,h,b)}},F={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(h,m){return n(y(u,m),h)},decamelizeKeys:function(h,m){return n(y(o,m),h,m)},pascalizeKeys:function(h,m){return n(y(i,m),h)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=F:t.humps=F})(nt)})(Yn);var gu={};Object.defineProperty(gu,"__esModule",{value:!0});function er(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:er(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:er(r)}return t}}var cf=gu.default=er;function mu(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function te(e){if(e!==void 0)return(typeof e=="undefined"?"undefined":mu(e))==="object"?cf(e):e}function ke(e){return Object.prototype.toString.call(e)==="[object Object]"}function lf(e){return e!=null&&(typeof e=="undefined"?"undefined":mu(e))==="object"&&Array.isArray(e)===!1}function pt(e){return Array.isArray(e)}function Ae(e){return typeof e=="string"}function cn(e){return typeof e=="number"}function yu(e){return typeof e=="function"}function ff(e){return pt(e)&&e.every(function(t){return Ae(t)})}function df(e){return pt(e)&&e.every(function(t){return cn(t)||t===""})}function vu(e){return/^\[.*?]$/.test(e)}function ln(e){return/^{.*?}$/.test(e)}function hf(e){return Object.values(oe).includes(e)}function tr(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 pf(e){if(Array.isArray(e))return tr(e)}function Eu(e,t,n,r,u,i,o){try{var a=e[i](o),s=a.value}catch(l){n(l);return}a.done?t(s):Promise.resolve(s).then(r,u)}function Df(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){Eu(i,r,u,o,a,"next",s)}function a(s){Eu(i,r,u,o,a,"throw",s)}o(void 0)})}}function gf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Au(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 mf(e,t,n){return t&&Au(e.prototype,t),n&&Au(e,n),e}function Fu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vf(){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 nr(e){return pf(e)||yf(e)||Ef(e)||vf()}function Ef(e,t){if(!!e){if(typeof e=="string")return tr(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 tr(e,t)}}function Af(e,t){var n,r,u,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(u=c[0]&2?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Cu=function(){function e(){gf(this,e),Fu(this,"_events",new Map),Fu(this,"debug",!1)}return mf(e,[{key:"emit",value:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];return Df(function(){var o,a,s,l,c,f,d,p,g,y,F,h;return Af(this,function(m){switch(m.label){case 0:if(o=this._events.get(n),a=[],!o)return[3,10];s=o.slice(),l=!0,c=!1,f=void 0,m.label=1;case 1:m.trys.push([1,8,9,10]),d=s[Symbol.iterator](),m.label=2;case 2:if(l=(p=d.next()).done)return[3,7];if(g=p.value,!o.includes(g))return[3,6];m.label=3;case 3:return m.trys.push([3,5,,6]),this.debug&&Xn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"\u3002")].concat(nr(u))),[4,g.apply(null,nr(u))];case 4:return y=m.sent(),this.debug&&Xn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(g.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+g.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(u.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(nr(u),[y])),a.push(y),y===!1?[3,7]:[3,6];case 5:return F=m.sent(),sn(String(F)+":"+String(F.stack)),[3,6];case 6:return l=!0,[3,2];case 7:return[3,10];case 8:return h=m.sent(),c=!0,f=h,[3,10];case 9:try{!l&&d.return!=null&&d.return()}finally{if(c)throw f}return[7];case 10:return[2,a]}})}).call(this)}},{key:"on",value:function(n,r){if(this._events.has(n)){var u;(u=this._events.get(n))===null||u===void 0||u.push(r)}else this._events.set(n,[r])}},{key:"off",value:function(n,r){if(this._events.has(n)){var u=this._events.get(n),i=u==null?void 0:u.indexOf(r);u==null||u.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),e}();function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wu(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 Cf(e,t,n){return t&&wu(e.prototype,t),n&&wu(e,n),e}function wf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bf=[{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"},{key:"on_list_after_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u540E",code:"list-after-import"},{key:"on_sublist_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"sublist-actions"}],bu=function(){function e(){Ff(this,e)}return Cf(e,null,[{key:"getEventsFromKeys",value:function(n){var r=typeof n=="string"?[n]:n;return e.events.filter(function(u){return r.includes(u.key)})}},{key:"getEventsFromControl",value:function(n){var r=[],u=n.eventKeys;r=r.concat(e.events.filter(function(o){return u.includes(o.key)}));var i=n.customEvents.map(function(o){var a=o.key;return{key:a,code:o.key,name:o.name}});return r=r.concat(i),r}}]),e}();wf(bu,"events",bf);function rr(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 Bf(e){if(Array.isArray(e))return rr(e)}function _f(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sf(){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 Bu(e){return Bf(e)||_f(e)||Mf(e)||Sf()}function Mf(e,t){if(!!e){if(typeof e=="string")return rr(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 rr(e,t)}}function ur(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function _u(e,t,n){n!=="Runtime"&&(e.parent=t,ur(e,"parent"))}function Nf(e,t,n){e.forEach(function(r){_u(r,t,n)})}var Su=Symbol("targetKey");function Mu(e){var t;return(t=e[Su])!==null&&t!==void 0?t:e}function Nu(e,t,n){return Nf(e,t,n),new Proxy(e,{get:function(u,i){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];var l;return i===Su?u:(l=Reflect).get.apply(l,[u,i].concat(Bu(a)))},set:function(u,i,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];var c;if(pt(e)&&i==="length"&&o===e.length)return!0;var f=(c=Reflect).set.apply(c,[u,i,o].concat(Bu(s)));return ke(o)&&_u(o,t,n),f}})}function ir(e,t,n,r,u){var i=r!=null?r:e,o=Nu(Mu(n!=null?n:[]),i,u);Object.defineProperty(e,t,{get:function(){return o},set:function(s){o=Nu(Mu(s),i,u)},enumerable:!0})}function If(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(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 Of(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),e}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ou=[],Vt=function(){function e(t){If(this,e),rt(this,"registeredControlTypes",new Set),rt(this,"controlConfigMap",new Map),rt(this,"_controls",[]),rt(this,"_type",void 0),this._type=t,this._initControls(t)}return Of(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__||Je("".concat(n.name," is not a Control"));var r=this._controls.findIndex(function(u){return u.controlType===n.controlType});return r>-1&&(tt("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===X.LAYOUT}},{key:"isFormControl",value:function(n){return n.controlType===X.FORM}},{key:"isListControl",value:function(n){return n.controlType===X.LIST}},{key:"isColumnControl",value:function(n){return n.controlType===X.COLUMN}},{key:"createControl",value:function(n,r){var u=this;if(Array.isArray(n))return n.map(function(c){return u.createControl(c,r)});if(n.children&&(n.children=n.children.map(function(c){return u.createControl(c,r)})),this.isListControl(n)){var i=n.props;i.headers&&(i.headers=i.headers.map(function(c){return u.createControl(c,r)})),i.footers&&(i.footers=i.footers.map(function(c){var f;return c&&(f=u.createControl(c,r)),f}))}var o=this.getControlFormType(n.type);if(o){var a=n;if(typeof r=="function"){var s=r(a);s&&(a=s)}var l;return o.mode==="Runtime"?(l=a,l.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(l,this)):l=new o(a),l}else Je("The constructor of ".concat(n.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(n,r){delete n.parent,Object.defineProperty(n,"parent",{configurable:!0,get:function(){return r}}),ur(n,"parent")}},{key:"_setParentPrototypeToSchema",value:function(n,r){r._type==="Runtime"&&(Object.defineProperty(n,"parent",{configurable:!0,get:function(){var i=n.id,o=r._controlParentIdMap,a=r.instanceMap;if(!(!o||!a)){var s=o[i],l=a[i];if(!(!s&&!l)){var c=l.findIndex(function(p){return p==n}),f=a[s]||[],d;return f.length!==l.length?d=f[0]:d=f[c],d}}}}),ur(n,"parent"))}},{key:"createControlInstance",value:function(n,r){var u=this.getControlFormType(n);if(u)return new u(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(u){r.register(u[n]),e.staticControlsRuntimeRules.set(u.Runtime.controlType,u.Property.RuntimeRules),u.Property.mode=n})}}],[{key:"staticGetRules",value:function(n,r){var u=e.staticControlsRuntimeRules.get(n),i=[];if(u){var o=new u(r);i=Array.from(o)}return i}},{key:"register",value:function(n,r){var u=n.Designer,i=n.Runtime,o=n.Property;(!u||!i||!u.__is_control__||!i.__is_control__)&&Je("".concat(n," is can't register as a Control"));var a=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return a>-1&&(tt("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(n),o.mode=r,this}}]),e}();rt(Vt,"staticControlsRuntimeRules",new Map),rt(Vt,"staticControls",Ou),rt(Vt,"staticRegisteredTypes",new Set(Ou.map(function(e){return e.Designer.controlType}))),rt(Vt,"staticRegisteredConfigs",new Map);function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}var or=function e(t){Dt(this,e);var n,r,u;re(this,"dataCode",void 0),re(this,"fieldCode",void 0),re(this,"fieldType",void 0),re(this,"aliasCode",void 0),this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"",this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"",this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},xf=function e(t){Dt(this,e);var n,r;re(this,"minWidth",void 0),re(this,"maxWidth",void 0),re(this,"flex",void 0),this.minWidth=(n=t==null?void 0:t.minWidth)!==null&&n!==void 0?n:150,this.maxWidth=t==null?void 0:t.maxWidth,this.flex=(r=t==null?void 0:t.flex)!==null&&r!==void 0?r:1},ar=function e(t){Dt(this,e);var n,r;re(this,"amount",void 0),re(this,"currency",void 0),this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"",this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:"CNY"},sr=function e(t){Dt(this,e);var n,r;re(this,"min",void 0),re(this,"max",void 0),this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"",this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},cr=function e(t){Dt(this,e);var n,r,u,i,o,a;re(this,"city",void 0),re(this,"cityDisplay",void 0),re(this,"district",void 0),re(this,"districtDisplay",void 0),re(this,"province",void 0),re(this,"provinceDisplay",void 0),this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"",this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"",this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"",this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"",this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"",this.provinceDisplay=(a=t==null?void 0:t.provinceDisplay)!==null&&a!==void 0?a:""},lr=function e(t){Dt(this,e);var n,r;re(this,"result",void 0),re(this,"unit",void 0),this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0,this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},Tf=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT",e}({}),Pf=function e(t){Dt(this,e);var n,r,u,i;re(this,"width",void 0),re(this,"height",void 0),re(this,"widthConfig",void 0),re(this,"heightConfig",void 0),this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"",this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"",this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill",this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function $f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rf(e,t,n){return t=Ht(t),Lf(e,hr()?Reflect.construct(t,n||[],Ht(e).constructor):t.apply(e,n))}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e,t,n){return hr()?fn=Reflect.construct:fn=function(u,i,o){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(u,a),l=new s;return o&&zt(l,o.prototype),l},fn.apply(null,arguments)}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){return Ht=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ht(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&&zt(e,t)}function kf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Lf(e,t){return t&&(qf(t)==="object"||typeof t=="function")?t:$f(e)}function zt(e,t){return zt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},zt(e,t)}function qf(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function dr(e){var t=typeof Map=="function"?new Map:void 0;return dr=function(r){if(r===null||!kf(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,u)}function u(){return fn(r,arguments,Ht(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),zt(u,r)},dr(e)}function hr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(hr=function(){return!!e})()}var pr=function e(t){fr(this,e),ut(this,"isHide",{type:"boolean"})},xu=function(e){jf(t,e);function t(n){return fr(this,t),Rf(this,t)}return t}(dr(Array)),Ke=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";fr(this,e);var r,u;ut(this,"isHide",void 0),ut(this,"className",void 0),ut(this,"style",void 0),ut(this,"caption",void 0),this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Pf(t==null?void 0:t.style),this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ut(Ke,"mode",void 0),ut(Ke,"Rules",pr),ut(Ke,"RuntimeRules",xu);function Ue(){return Ue=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},Ue.apply(this,arguments)}function Uf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Dr(e){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dr(e)}function dn(e,t){return dn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},dn(e,t)}function Vf(){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 hn(e,t,n){return Vf()?hn=Reflect.construct:hn=function(u,i,o){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(u,a),l=new s;return o&&dn(l,o.prototype),l},hn.apply(null,arguments)}function Hf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function gr(e){var t=typeof Map=="function"?new Map:void 0;return gr=function(r){if(r===null||!Hf(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,u)}function u(){return hn(r,arguments,Dr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),dn(u,r)},gr(e)}var zf=/%[sdj%]/g,Tu=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Tu=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function mr(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 Ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(zf,function(a){if(a==="%%")return"%";if(r>=i)return a;switch(a){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 a}});return o}return u}function Wf(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function fe(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Wf(t)&&typeof e=="string"&&!e)}function Gf(e,t,n){var r=[],u=0,i=e.length;function o(a){r.push.apply(r,a),u++,u===i&&n(r)}e.forEach(function(a){t(a,o)})}function Pu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var a=r;r=r+1,a<u?t(e[a],i):n([])}i([])}function Zf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var $u=function(e){Uf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(gr(Error));function Jf(e,t,n,r){if(t.first){var u=new Promise(function(f,d){var p=function(F){return r(F),F.length?d(new $u(F,mr(F))):f()},g=Zf(e);Pu(g,n,p)});return u.catch(function(f){return f}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),a=o.length,s=0,l=[],c=new Promise(function(f,d){var p=function(y){if(l.push.apply(l,y),s++,s===a)return r(l),l.length?d(new $u(l,mr(l))):f()};o.length||(r(l),f()),o.forEach(function(g){var y=e[g];i.indexOf(g)!==-1?Pu(y,n,p):Gf(y,n,p)})});return c.catch(function(f){return f}),c}function Ru(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 ju(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]=Ue(Ue({},e[n]),r):e[n]=r}}return e}function ku(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||fe(t,i||e.type))&&r.push(Ne(u.messages.required,e.fullField))}function Xf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Ne(u.messages.whitespace,e.fullField))}var yr={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},Wt={integer:function(t){return Wt.number(t)&&parseInt(t,10)===t},float:function(t){return Wt.number(t)&&!Wt.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"&&!Wt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(yr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(yr.url)},hex:function(t){return typeof t=="string"&&!!t.match(yr.hex)}};function Kf(e,t,n,r,u){if(e.required&&t===void 0){ku(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Wt[o](t)||r.push(Ne(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Ne(u.messages.types[o],e.fullField,e.type))}function Qf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",a=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,c=null,f=typeof t=="number",d=typeof t=="string",p=Array.isArray(t);if(f?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(Ne(u.messages[c].len,e.fullField,e.len)):o&&!a&&l<e.min?r.push(Ne(u.messages[c].min,e.fullField,e.min)):a&&!o&&l>e.max?r.push(Ne(u.messages[c].max,e.fullField,e.max)):o&&a&&(l<e.min||l>e.max)&&r.push(Ne(u.messages[c].range,e.fullField,e.min,e.max))}var Ft="enum";function Yf(e,t,n,r,u){e[Ft]=Array.isArray(e[Ft])?e[Ft]:[],e[Ft].indexOf(t)===-1&&r.push(Ne(u.messages[Ft],e.fullField,e[Ft].join(", ")))}function e0(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ne(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(Ne(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var W={required:ku,whitespace:Xf,type:Kf,range:Qf,enum:Yf,pattern:e0};function t0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t,"string")&&!e.required)return n();W.required(e,t,r,i,u,"string"),fe(t,"string")||(W.type(e,t,r,i,u),W.range(e,t,r,i,u),W.pattern(e,t,r,i,u),e.whitespace===!0&&W.whitespace(e,t,r,i,u))}n(i)}function n0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&W.type(e,t,r,i,u)}n(i)}function r0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&(W.type(e,t,r,i,u),W.range(e,t,r,i,u))}n(i)}function u0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&W.type(e,t,r,i,u)}n(i)}function i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),fe(t)||W.type(e,t,r,i,u)}n(i)}function o0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&(W.type(e,t,r,i,u),W.range(e,t,r,i,u))}n(i)}function a0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&(W.type(e,t,r,i,u),W.range(e,t,r,i,u))}n(i)}function s0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();W.required(e,t,r,i,u,"array"),t!=null&&(W.type(e,t,r,i,u),W.range(e,t,r,i,u))}n(i)}function c0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&W.type(e,t,r,i,u)}n(i)}var l0="enum";function f0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u),t!==void 0&&W[l0](e,t,r,i,u)}n(i)}function d0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t,"string")&&!e.required)return n();W.required(e,t,r,i,u),fe(t,"string")||W.pattern(e,t,r,i,u)}n(i)}function h0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t,"date")&&!e.required)return n();if(W.required(e,t,r,i,u),!fe(t,"date")){var a;t instanceof Date?a=t:a=new Date(t),W.type(e,a,r,i,u),a&&W.range(e,a.getTime(),r,i,u)}}n(i)}function p0(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;W.required(e,t,r,i,u,o),n(i)}function vr(e,t,n,r,u){var i=e.type,o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(fe(t,i)&&!e.required)return n();W.required(e,t,r,o,u,i),fe(t,i)||W.type(e,t,r,o,u)}n(o)}function D0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(fe(t)&&!e.required)return n();W.required(e,t,r,i,u)}n(i)}var Gt={string:t0,method:n0,number:r0,boolean:u0,regexp:i0,integer:o0,float:a0,array:s0,object:c0,enum:f0,pattern:d0,date:h0,url:vr,hex:vr,email:vr,required:p0,any:D0};function Er(){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 Ar=Er();function it(e){this.rules=null,this._messages=Ar,this.define(e)}it.prototype={messages:function(t){return t&&(this._messages=ju(Er(),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 u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,a=r;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function s(y){var F,h=[],m={};function E(A){if(Array.isArray(A)){var b;h=(b=h).concat.apply(b,A)}else h.push(A)}for(F=0;F<y.length;F++)E(y[F]);h.length?m=mr(h):(h=null,m=null),a(h,m)}if(o.messages){var l=this.messages();l===Ar&&(l=Er()),ju(l,o.messages),o.messages=l}else o.messages=this.messages();var c,f,d={},p=o.keys||Object.keys(this.rules);p.forEach(function(y){c=u.rules[y],f=i[y],c.forEach(function(F){var h=F;typeof h.transform=="function"&&(i===t&&(i=Ue({},i)),f=i[y]=h.transform(f)),typeof h=="function"?h={validator:h}:h=Ue({},h),h.validator=u.getValidationMethod(h),h.field=y,h.fullField=h.fullField||y,h.type=u.getType(h),h.validator&&(d[y]=d[y]||[],d[y].push({rule:h,value:f,source:i,field:y}))})});var g={};return Jf(d,o,function(y,F){var h=y.rule,m=(h.type==="object"||h.type==="array")&&(typeof h.fields=="object"||typeof h.defaultField=="object");m=m&&(h.required||!h.required&&y.value),h.field=y.field;function E(N,I){return Ue(Ue({},I),{},{fullField:h.fullField+"."+N})}function A(N){N===void 0&&(N=[]);var I=N;if(Array.isArray(I)||(I=[I]),!o.suppressWarning&&I.length&&it.warning("async-validator:",I),I.length&&h.message!==void 0&&(I=[].concat(h.message)),I=I.map(Ru(h)),o.first&&I.length)return g[h.field]=1,F(I);if(!m)F(I);else{if(h.required&&!y.value)return h.message!==void 0?I=[].concat(h.message).map(Ru(h)):o.error&&(I=[o.error(h,Ne(o.messages.required,h.field))]),F(I);var j={};if(h.defaultField)for(var V in y.value)y.value.hasOwnProperty(V)&&(j[V]=h.defaultField);j=Ue(Ue({},j),y.rule.fields);for(var H in j)if(j.hasOwnProperty(H)){var P=Array.isArray(j[H])?j[H]:[j[H]];j[H]=P.map(E.bind(null,H))}var R=new it(j);R.messages(o.messages),y.rule.options&&(y.rule.options.messages=o.messages,y.rule.options.error=o.error),R.validate(y.value,y.rule.options||o,function(K){var Z=[];I&&I.length&&Z.push.apply(Z,I),K&&K.length&&Z.push.apply(Z,K),F(Z.length?Z:null)})}}var b;h.asyncValidator?b=h.asyncValidator(h,y.value,A,y.source,o):h.validator&&(b=h.validator(h,y.value,A,y.source,o),b===!0?A():b===!1?A(h.message||h.field+" fails"):b instanceof Array?A(b):b instanceof Error&&A(b.message)),b&&b.then&&b.then(function(){return A()},function(N){return A(N)})},function(y){s(y)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Gt.hasOwnProperty(t.type))throw new Error(Ne("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"?Gt.required:Gt[this.getType(t)]||!1}},it.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Gt[t]=n},it.warning=Tu,it.messages=Ar,it.validators=Gt;var g0={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 m0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new it(e);return n.messages(Object.assign(g0,t)),n}var y0=new Cu;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 v0(e){if(Array.isArray(e))return e}function E0(e){if(Array.isArray(e))return Fr(e)}function Lu(e,t,n,r,u,i,o){try{var a=e[i](o),s=a.value}catch(l){n(l);return}a.done?t(s):Promise.resolve(s).then(r,u)}function qu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){Lu(i,r,u,o,a,"next",s)}function a(s){Lu(i,r,u,o,a,"throw",s)}o(void 0)})}}function A0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uu(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 F0(e,t,n){return t&&Uu(e.prototype,t),n&&Uu(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}function Vu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Hu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C0(){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 w0(){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 zu(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(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){ne(e,u,n[u])})}return e}function b0(e){return v0(e)||Hu(e)||Wu(e)||C0()}function Cr(e){return E0(e)||Hu(e)||Wu(e)||w0()}function B0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Wu(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 Gu(e,t){var n,r,u,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(u=c[0]&2?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Fe=function(){function t(n){var r=this;A0(this,t);var u,i,o,a;ne(this,"id",void 0),ne(this,"name",void 0),ne(this,"icon",void 0),ne(this,"type",void 0),ne(this,"controlType",void 0),ne(this,"props",void 0),ne(this,"setting",[]),ne(this,"fieldType",void 0),ne(this,"eventKeys",[]),ne(this,"customEvents",[]),ne(this,"parent",null),ne(this,"updateSetting",Ju),ne(this,"removeSetting",Zu),this._callControlHooks("preInstance",n);var s=Vu(this,t)?this.constructor:void 0,l=s.controlName,c=s.controlIcon,f=s.controlType,d=s.controlFieldType,p=s.controlEventKeys,g=s.controlCustomEvents,y=s.name,F=s.setting;l&&c&&f||hu("The ".concat(y," controlName,controlIcon,controlType is not define")),this.id=(u=n==null?void 0:n.id)!==null&&u!==void 0?u:on(10),this.name=l,this.icon=c,this.type=(i=n==null?void 0:n.type)!==null&&i!==void 0?i:f,this.props=new Ke(n==null?void 0:n.props,(Vu(this,t)?this.constructor:void 0).controlName),this.controlType=(o=n==null?void 0:n.controlType)!==null&&o!==void 0?o:"base",this.setting=te(F),this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:d,this.eventKeys=te(p),this.customEvents=te(g),Promise.resolve().then(function(){r._callControlHooks("postInstance",n)})}return F0(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,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];var o,a=b0(u),s=a[0],l=a.slice(1);return(o=y0).emit.apply(o,[s,this].concat(Cr(l)))}},{key:"preUpdate",value:function(r,u){this._callControlHooks("preUpdateProps",r,u)}},{key:"postUpdate",value:function(r,u){this._callControlHooks("postUpdateProps",r,u)}},{key:"updateProps",value:function(r,u){this.preUpdate(r,u),Qn(this.props,r,u),this.postUpdate(r,u)}},{key:"preValidate",value:function(){return qu(function(){var r,u,i;return Gu(this,function(o){switch(o.label){case 0:return r=zu({},this.rules),[4,this._callControlHooks("preValidate",r)];case 1:return u=o.sent(),i=u[u.length-1],[2,i===!1?void 0:i]}})}).call(this)}},{key:"validate",value:function(r,u){return qu(function(){var i,o,a,s;return Gu(this,function(l){switch(l.label){case 0:return[4,this.preValidate()];case 1:i=l.sent(),o=i!==void 0?i:zu({},this.rules),Array.isArray(u)&&u.forEach(function(c){o.hasOwnProperty(c)&&delete o[c]}),a=m0(o,r),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,a.validate(this.props)];case 3:return l.sent(),[2,!0];case 4:throw s=l.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,u=this.fieldType,i=this.id,o=this.type,a=this.props,s=a.dataBind,l=a.datasourceBind,c=a.optionConfig,f=a.caption,d=a.required,p=a.maxLength,g=a.options,y=a.encrypted,F=a.encryptedMode;if(!(!u&&!s&&!l)){var h={parentId:r,fieldType:u,controlId:i,caption:f,type:o,props:{}};switch(s&&(h.dataBind=s),c){case"datasource":case void 0:l&&(h.datasourceBind=l);break;case"custom":h.props.options=g;break}return d!==void 0&&(h.required=d),p!==void 0&&(h.maxLength=p),y!==void 0&&(h.encrypted=y),F!==void 0&&(h.encryptedMode=F),h}}},{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,u){if(r==="setting"){if(u.add){var i;(i=this.setting).push.apply(i,Cr(u.add))}u.remove&&this.removeSettingItem(u.remove),u.update}}}]),t}();ne(Fe,"mode","Designer"),ne(Fe,"controlName","\u63A7\u4EF6"),ne(Fe,"controlIcon","icon"),ne(Fe,"controlType","control"),ne(Fe,"controlFieldType",void 0),ne(Fe,"controlEventKeys",[]),ne(Fe,"controlCustomEvents",[]),ne(Fe,"setting",[]),ne(Fe,"__is_control__",!0),ne(Fe,"removeSettingItem",Zu),ne(Fe,"updateSettingItem",Ju);function Zu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,i=typeof r!="string",o=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(l){return l.key===(i?r.key:r)});if(o!==-1){var a,s;i?t.setting[o].showItems=(a=t.setting[o].showItems)===null||a===void 0?void 0:a.filter(function(l){return!r.hideItems.includes(l)}):t.setting.splice(o,1),i&&!(!((s=t.setting[o].showItems)===null||s===void 0)&&s.length)&&t.setting.splice(o,1)}})}function Ju(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if((typeof t=="undefined"?"undefined":B0(t))==="object"){var o,a=(o=t.type)!==null&&o!==void 0?o:"replace";if(a==="replace")i.showItems=t.showItems;else{var s;(s=i.showItems).push.apply(s,Cr(t.showItems))}}}})}function _0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xu(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 S0(e,t,n){return t&&Xu(e.prototype,t),n&&Xu(e,n),e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var Zt=function(){function t(n){_0(this,t);var r,u,i,o,a;Ie(this,"id",void 0),Ie(this,"type",void 0),Ie(this,"controlType",void 0),Ie(this,"props",void 0),Ie(this,"fieldType",void 0),Ie(this,"customEvents",[]),Ie(this,"pageStatus",void 0),Ie(this,"parent",null);var s=M0(this,t)?this.constructor:void 0,l=s.controlType,c=s.controlFieldType,f=s.name,d=s.controlCustomEvents;l||hu("The ".concat(f," controlType is not define")),this.id=(r=n==null?void 0:n.id)!==null&&r!==void 0?r:on(10),this.type=(u=n==null?void 0:n.type)!==null&&u!==void 0?u:l,this.props=new Ke(n==null?void 0:n.props),this.customEvents=d,this.controlType=(i=n==null?void 0:n.controlType)!==null&&i!==void 0?i:"base",this.fieldType=(o=n==null?void 0:n.fieldType)!==null&&o!==void 0?o:c,this.pageStatus=(a=n==null?void 0:n.pageStatus)!==null&&a!==void 0?a:Tf.UNKNOWN}return S0(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();Ie(Zt,"mode","Runtime"),Ie(Zt,"controlType","control"),Ie(Zt,"controlFieldType",void 0),Ie(Zt,"__is_control__",!0),Ie(Zt,"controlCustomEvents",[]);function Oe(e){return(e==null?void 0:e.dataCode)!==void 0&&(e==null?void 0:e.fieldCode)!==void 0}function N0(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){return t=pn(t),I0(e,Ku()?Reflect.construct(t,n||[],pn(e).constructor):t.apply(e,n))}function br(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}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function Br(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&&_r(e,t)}function I0(e,t){return t&&(O0(t)==="object"||typeof t=="function")?t:N0(e)}function _r(e,t){return _r=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},_r(e,t)}function O0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ku=function(){return!!e})()}var x0=function(e){Br(t,e);function t(n){br(this,t);var r;r=wr(this,t,[n]),ue(r,"dataBind",{}),ue(r,"caption",{type:"string",required:!0,message:Me.getMessage("pleaseEnterCaption")}),ue(r,"isHideCaption",{type:"boolean"}),ue(r,"labelPosition",{type:"enum",enum:["top","left"]}),ue(r,"defaultState",{type:"enum",enum:["default","readonly"]}),ue(r,"required",{type:"boolean"}),ue(r,"captionTip",{type:"string",required:!1,message:Me.getMessage("pleaseEnterCaptionTip")});var u={fieldCode:{type:"string",required:!0,message:Me.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Me.getMessage("pleaseEnterFieldCode")}};if(Oe(n.dataBind))r.dataBind={type:"object",required:!0,fields:te(u),message:Me.getMessage("pleaseEnterFieldCode")};else{var i={type:"object",required:!0,fields:{},message:Me.getMessage("pleaseEnterFieldCode")};Object.keys(n.dataBind).forEach(function(o){i.fields[o]={type:"object",required:!0,fields:te(u),message:Me.getMessage("pleaseEnterFieldCode")}}),r.dataBind=i}return n.isShowCaptionTip&&(r.captionTip.required=!0),r}return t}(pr),T0=function(e){Br(t,e);function t(n){br(this,t);var r;r=wr(this,t,[n]);var u=n.isHide?!1:n.required;return u&&r.push({type:"string",required:u,message:n.requiredMessage!==""?n.requiredMessage:Me.getMessage("runtimeRequired",{caption:n.caption})}),r}return t}(xu),Sr=function(e){Br(t,e);function t(n){br(this,t);var r,u,i,o,a,s,l,c,f,d,p,g,y,F;return r=wr(this,t,[n]),ue(r,"caption",void 0),ue(r,"captionSize",void 0),ue(r,"captionColor",void 0),ue(r,"isCaptionItalic",void 0),ue(r,"isHideCaption",void 0),ue(r,"isShowCaptionTip",void 0),ue(r,"captionTip",void 0),ue(r,"labelPosition",void 0),ue(r,"dataBind",void 0),ue(r,"defaultValue",void 0),ue(r,"placeholder",void 0),ue(r,"defaultState",void 0),ue(r,"required",void 0),ue(r,"requiredMessage",void 0),r.caption=(u=n==null?void 0:n.caption)!==null&&u!==void 0?u:"",r.captionSize=(i=n==null?void 0:n.captionSize)!==null&&i!==void 0?i:"14",r.captionColor=(o=n==null?void 0:n.captionColor)!==null&&o!==void 0?o:"",r.isCaptionItalic=(a=n==null?void 0:n.isCaptionItalic)!==null&&a!==void 0?a:!1,r.isHideCaption=(s=n==null?void 0:n.isHideCaption)!==null&&s!==void 0?s:!1,r.isShowCaptionTip=(l=n==null?void 0:n.isShowCaptionTip)!==null&&l!==void 0?l:!1,r.captionTip=(c=n==null?void 0:n.captionTip)!==null&&c!==void 0?c:"",r.defaultState=(f=n==null?void 0:n.defaultState)!==null&&f!==void 0?f:"default",r.labelPosition=(d=n==null?void 0:n.labelPosition)!==null&&d!==void 0?d:"top",r.placeholder=(p=n==null?void 0:n.placeholder)!==null&&p!==void 0?p:"",r.required=(g=n==null?void 0:n.required)!==null&&g!==void 0?g:!1,r.requiredMessage=(y=n==null?void 0:n.requiredMessage)!==null&&y!==void 0?y:"",r.dataBind=new or(n==null?void 0:n.dataBind),r.defaultValue=(F=n==null?void 0:n.defaultValue)!==null&&F!==void 0?F:"",r}return t}(Ke);ue(Sr,"Rules",x0),ue(Sr,"RuntimeRules",T0);function P0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $0(e,t,n){return t=gn(t),k0(e,Qu()?Reflect.construct(t,n||[],gn(e).constructor):t.apply(e,n))}function R0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function j0(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&&Mr(e,t)}function k0(e,t){return t&&(L0(t)==="object"||typeof t=="function")?t:P0(e)}function Mr(e,t){return Mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Mr(e,t)}function L0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Qu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Qu=function(){return!!e})()}var Yu=function(e){j0(t,e);function t(n){R0(this,t);var r;return r=$0(this,t,[n]),Dn(r,"controlType","form"),Dn(r,"props",void 0),r.props=new Sr(n==null?void 0:n.props),r}return t}(Fe);Dn(Yu,"controlEventKeys",["on_change","on_focus","on_blur"]),Dn(Yu,"controlCustomAttributes",void 0);function q0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U0(e,t,n){return t=mn(t),z0(e,ei()?Reflect.construct(t,n||[],mn(e).constructor):t.apply(e,n))}function V0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mn(e)}function H0(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&&Nr(e,t)}function z0(e,t){return t&&(W0(t)==="object"||typeof t=="function")?t:q0(e)}function Nr(e,t){return Nr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Nr(e,t)}function W0(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ei=function(){return!!e})()}var G0=function(e){H0(t,e);function t(n){return V0(this,t),U0(this,t,[n])}return t}(Ke);function Ir(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 Z0(e){if(Array.isArray(e))return Ir(e)}function J0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e,t,n,r,u,i,o){try{var a=e[i](o),s=a.value}catch(l){n(l);return}a.done?t(s):Promise.resolve(s).then(r,u)}function X0(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){ti(i,r,u,o,a,"next",s)}function a(s){ti(i,r,u,o,a,"throw",s)}o(void 0)})}}function K0(e,t,n){return t=at(t),ad(e,ui()?Reflect.construct(t,n||[],at(e).constructor):t.apply(e,n))}function Q0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ni(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 Y0(e,t,n){return t&&ni(e.prototype,t),n&&ni(e,n),e}function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Ct=Reflect.get:Ct=function(u,i,o){var a=sd(u,i);if(!!a){var s=Object.getOwnPropertyDescriptor(a,i);return s.get?s.get.call(o||u):s.value}},Ct(e,t,n||e)}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},at(e)}function ed(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&&Or(e,t)}function td(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function nd(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rd(){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 ud(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(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){ot(e,u,n[u])})}return e}function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function od(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):id(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function ad(e,t){return t&&(cd(t)==="object"||typeof t=="function")?t:J0(e)}function Or(e,t){return Or=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Or(e,t)}function sd(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=at(e),e!==null););return e}function ri(e){return Z0(e)||nd(e)||ld(e)||rd()}function cd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function ld(e,t){if(!!e){if(typeof e=="string")return Ir(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 Ir(e,t)}}function ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ui=function(){return!!e})()}function fd(e,t){var n,r,u,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(u=c[0]&2?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var dd=1e4,ii=function(t){ed(n,t);function n(r){Q0(this,n);var u;u=K0(this,n,[r]),ot(u,"controlType","layout"),ot(u,"children",void 0),ot(u,"excludes",void 0),ot(u,"childrenMaxLength",void 0),ot(u,"props",void 0);var i=td(this,n)?this.constructor:void 0,o=i.excludes,a=i.childrenMaxLength;return u.props=new G0(r==null?void 0:r.props),ir(u,"children",r==null?void 0:r.children,void 0,"Designer"),u.excludes=te(o),u.childrenMaxLength=a,u}return Y0(n,[{key:"judgeExcludesChildren",value:function(u){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(u)}},{key:"judgeJoinChildren",value:function(u){var i=this.judgeExcludesChildren(u);return i&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(u,i){var o=this,a=this,s=function(){return Ct(at(n.prototype),"validate",o)};return X0(function(){return fd(this,function(l){switch(l.label){case 0:return[4,s().call(a,u,i)];case 1:return l.sent(),[4,Promise.all(this.children.map(function(c){return c.validate(u,i)}))];case 2:return l.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=Ct(at(n.prototype),"toDataBindModel",this).call(this),o=i?[i]:[];return this.children.reduce(function(a,s){var l=s.toDataBindModel(u);if(Array.isArray(l)){var c=l.filter(function(f){return!!f});return ri(a).concat(ri(c))}return l&&a.push(l),a},o)}},{key:"toSchema",value:function(){var u=Ct(at(n.prototype),"toSchema",this).call(this),i=this.children.map(function(o){var a=o.toSchema();return a});return od(ud({},u),{children:i})}}]),n}(Fe);ot(ii,"excludes",!1),ot(ii,"childrenMaxLength",dd);function hd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pd(e,t,n){return t=yn(t),md(e,oi()?Reflect.construct(t,n||[],yn(e).constructor):t.apply(e,n))}function Dd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yn(e)}function gd(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&&xr(e,t)}function md(e,t){return t&&(yd(t)==="object"||typeof t=="function")?t:hd(e)}function xr(e,t){return xr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xr(e,t)}function yd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function oi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(oi=function(){return!!e})()}var vd=function(e){gd(t,e);function t(n,r,u){Dd(this,t);var i,o,a,s,l;return i=pd(this,t,[r]),wt(i,"headers",void 0),wt(i,"footers",void 0),wt(i,"pageIndex",void 0),wt(i,"pageSize",void 0),wt(i,"pageSizeOptions",void 0),wt(i,"totalCount",void 0),ir(i,"headers",r==null?void 0:r.headers,n,u),ir(i,"footers",r==null?void 0:r.footers,n),i.pageIndex=(o=r==null?void 0:r.pageIndex)!==null&&o!==void 0?o:1,i.pageSize=(a=r==null?void 0:r.pageSize)!==null&&a!==void 0?a:20,i.pageSizeOptions=(s=r==null?void 0:r.pageSizeOptions)!==null&&s!==void 0?s:[20],i.totalCount=(l=r==null?void 0:r.totalCount)!==null&&l!==void 0?l:0,i}return t}(Ke);function Tr(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 Ed(e){if(Array.isArray(e))return Tr(e)}function Ad(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t,n,r,u,i,o){try{var a=e[i](o),s=a.value}catch(l){n(l);return}a.done?t(s):Promise.resolve(s).then(r,u)}function Fd(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){ai(i,r,u,o,a,"next",s)}function a(s){ai(i,r,u,o,a,"throw",s)}o(void 0)})}}function Cd(e,t,n){return t=st(t),Nd(e,di()?Reflect.construct(t,n||[],st(e).constructor):t.apply(e,n))}function wd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function si(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 bd(e,t,n){return t&&si(e.prototype,t),n&&si(e,n),e}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?bt=Reflect.get:bt=function(u,i,o){var a=Id(u,i);if(!!a){var s=Object.getOwnPropertyDescriptor(a,i);return s.get?s.get.call(o||u):s.value}},bt(e,t,n||e)}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},st(e)}function Bd(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&&Pr(e,t)}function _d(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sd(){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 ci(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(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){vn(e,u,n[u])})}return e}function Md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function li(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Md(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Nd(e,t){return t&&(Od(t)==="object"||typeof t=="function")?t:Ad(e)}function Pr(e,t){return Pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Pr(e,t)}function Id(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=st(e),e!==null););return e}function fi(e){return Ed(e)||_d(e)||xd(e)||Sd()}function Od(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function xd(e,t){if(!!e){if(typeof e=="string")return Tr(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 Tr(e,t)}}function di(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(di=function(){return!!e})()}function Td(e,t){var n,r,u,i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),a=Object.defineProperty;return a(o,"next",{value:s(0)}),a(o,"throw",{value:s(1)}),a(o,"return",{value:s(2)}),typeof Symbol=="function"&&a(o,Symbol.iterator,{value:function(){return this}}),o;function s(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(u=c[0]&2?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Pd=function(e){Bd(t,e);function t(n){wd(this,t);var r;return r=Cd(this,t,[n]),vn(r,"controlType","list"),vn(r,"props",void 0),r.props=new vd(r,n==null?void 0:n.props,"Designer"),r}return bd(t,[{key:"validate",value:function(r,u){var i=this,o=this,a=function(){return bt(st(t.prototype),"validate",i)};return Fd(function(){return Td(this,function(s){switch(s.label){case 0:return[4,a().call(o,r)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(l){return l.validate(r,u)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var r=bt(st(t.prototype),"toDataBindModel",this).call(this),u=r?[r]:[],i=this.id;return this.props.headers.reduce(function(o,a){var s=a.toDataBindModel(i);if(Array.isArray(s)){var l=s.filter(function(c){return!!c});return fi(o).concat(fi(l))}return s&&o.push(s),o},u)}},{key:"toSchema",value:function(){var r,u,i=bt(st(t.prototype),"toSchema",this).call(this),o=this.props.headers.map(function(s){return s.toSchema()}),a=(u=this.props)===null||u===void 0||(r=u.footers)===null||r===void 0?void 0:r.map(function(s){if(s)return s.toSchema()});return li(ci({},i),{props:li(ci({},this.props),{headers:o,footers:a})})}}]),t}(Fe);vn(Pd,"controlFieldType",le.LIST);function $d(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hi(e,t,n){return t=En(t),Rd(e,gi()?Reflect.construct(t,n||[],En(e).constructor):t.apply(e,n))}function pi(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}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},En(e)}function Di(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&&$r(e,t)}function Rd(e,t){return t&&(jd(t)==="object"||typeof t=="function")?t:$d(e)}function $r(e,t){return $r=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},$r(e,t)}function jd(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function gi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(gi=function(){return!!e})()}var kd=function(e){Di(t,e);function t(n){pi(this,t);var r;return r=hi(this,t,[n]),Ce(r,"caption",{type:"string",required:!0,message:Me.getMessage("pleaseEnterCaption")}),Ce(r,"width",{type:"number",required:!1,message:Me.getMessage("pleaseEnterColumnWidth")}),r.width.required=n.widthType==="px",r}return t}(pr),Ld=function(e){Di(t,e);function t(n){pi(this,t);var r,u,i,o,a,s;return r=hi(this,t,[n]),Ce(r,"widthType",void 0),Ce(r,"width",void 0),Ce(r,"caption",void 0),Ce(r,"dataBind",void 0),Ce(r,"autoWidth",void 0),Ce(r,"fixed",void 0),Ce(r,"sort",void 0),Ce(r,"align",void 0),Ce(r,"colSpan",void 0),Ce(r,"autoHeight",void 0),Ce(r,"children",void 0),r.width=(u=n==null?void 0:n.width)!==null&&u!==void 0?u:150,r.widthType=(n==null?void 0:n.widthType)||"auto",r.caption=(i=n==null?void 0:n.caption)!==null&&i!==void 0?i:"",r.fixed=(o=n==null?void 0:n.fixed)!==null&&o!==void 0?o:"none",r.autoWidth=new xf(n==null?void 0:n.autoWidth),r.dataBind=new or(n==null?void 0:n.dataBind),r.sort=(a=n==null?void 0:n.sort)!==null&&a!==void 0?a:!0,r.align=n==null?void 0:n.align,r.colSpan=n==null?void 0:n.colSpan,r.autoHeight=(s=n==null?void 0:n.autoHeight)!==null&&s!==void 0?s:!1,r}return t}(Ke);Ce(Ld,"Rules",kd);function An(e){return e.controlType===X.LAYOUT||e.controlType===X.WRAP||e.controlType===X.LIST||e.controlType===X.SEARCH||e.controlType===X.COLUMN&&e.type!==oe.OPERATION_COLUMN}function gt(e,t){Array.isArray(e)&&e.map(n=>{n.type===oe.SUBTABLE?t(n,[]):An(n)?gt(n==null?void 0:n.children,t):n.controlType===X.FORM&&t(n)})}function mt(e,t){Array.isArray(e)&&e.map(n=>{n.type===oe.DATA_VIEW||n.type===oe.SIMPLE_SEARCH?t(n):An(n)&&mt(n==null?void 0:n.children,t)})}let mi=0;function Jt(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return mi++,e+"_"+n+mi+String(t)}class Ee extends Vt{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={},r={};return Fn(this._instance,"",(u,i)=>{i&&(r[u.id]=i),n[u.id]||(n[u.id]=[]),!(u.type==="subtable-column"&&n[u.id].length>0)&&(t.push(u),n[u.id].push(u))}),this._flatInstances=t,this._instanceMap=n,this._controlParentIdMap=r,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let t={},n={},r={};return mt(this._instance,u=>{let i=Ee.staticGetRules(u.type,u.props);n[u.id]=te(i[0]),t[u.id]=te(i[0]),r[u.id]=te(i[0]),gt(u.children,o=>{(o.controlType===X.FORM||o.controlType===X.LIST)&&(vi(n[u.id].fields,o,!0),Fi(t[u.id].fields,o,!0),Ei(r[u.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:t,defaultRule:n,defaultFieldRules:r}}get rules(){let t={};return mt(this._instance,n=>{let r=Ee.staticGetRules(n.type,n.props);t[n.id]=r[0],gt(n.children,u=>{(u.controlType===X.FORM||u.controlType===X.LIST)&&vi(t[n.id].fields,u)})}),t}get fieldCodeRules(){let t={};return mt(this._instance,n=>{let r=Ee.staticGetRules(n.type,n.props);t[n.id]=r[0],gt(n.children,u=>{(u.controlType===X.FORM||u.controlType===X.LIST)&&Ei(t[n.id].fields,u)})}),t}get antdRules(){let t={};return mt(this._instance,n=>{let r=Ee.staticGetRules(n.type,n.props);t[n.id]=r[0],gt(n.children,u=>{(u.controlType===X.FORM||u.controlType===X.LIST)&&Fi(t[n.id].fields,u)})}),t}}function Fn(e,t,n){(Array.isArray(e)?e:[e]).map(u=>{if(n(u,t),An(u)){const i=u;i.children||(i.children=[]),Fn(i.children,i.id,n)}yi(u,"headers")&&Fn(u.props.headers,u.id,n),yi(u,"footers")&&Fn(u.props.footers,u.id,n)})}function yi(e,t){return t in e.props&&pt(e.props[t])}function Cn(e){return e.props.isHide?!0:e.parent===null||e.parent===void 0?!1:Cn(e.parent)}function vi(e,t,n=!1){if(Cn(t))return;let r=Ee.staticGetRules(t.type,t.props);if(t.controlType===X.FORM)e[t.id]=r;else if(t.type===oe.SUBTABLE){e[t.id]=r;const u={type:"array",fields:{}};(n===!0?[{children:t.props.headers}]:t.children).forEach((i,o)=>{Xe(i.children,a=>{if(u.fields){u.fields[o]||(u.fields[o]={type:"object",required:!0,fields:{}});let s=Ee.staticGetRules(a.type,a.props);u.fields[o].fields[a.id]=s}})}),e[t.id].push(u)}}function Ei(e,t,n=!1){var u,i,o,a,s,l,c;if(Cn(t))return;let r=Ee.staticGetRules(t.type,t.props);if(t.controlType===X.FORM)if(Oe(t.props.dataBind))((u=t.props.dataBind)==null?void 0:u.fieldCode)!=""&&(e[(i=t.props.dataBind)==null?void 0:i.fieldCode]=r);else for(const f in t.props.dataBind)((o=t.props.dataBind[f])==null?void 0:o.fieldCode)!=""&&(e[(a=t.props.dataBind[f])==null?void 0:a.fieldCode]=((s=Ai(r))==null?void 0:s[f])||[]);else if(t.type===oe.SUBTABLE){e[(l=t.props.datasourceBind)==null?void 0:l.dataCode]=r;const f={type:"array",fields:{}};(n===!0?[{children:t.props.headers}]:t.children).forEach((d,p)=>{Xe(d.children,g=>{var y,F,h,m;if(f.fields){f.fields[p]||(f.fields[p]={type:"object",required:!0,fields:{}});let E=Ee.staticGetRules(g.type,g.props);if(Oe(g.props.dataBind))((h=g.props.dataBind)==null?void 0:h.fieldCode)!=""&&(f.fields[p].fields[(m=g.props.dataBind)==null?void 0:m.fieldCode]=E);else for(const A in g.props.dataBind)((y=g.props.dataBind[A])==null?void 0:y.fieldCode)!=""&&(f.fields[p].fields[g.props.dataBind[A].fieldCode]=((F=Ai(E))==null?void 0:F[A])||[])}})}),e[(c=t.props.datasourceBind)==null?void 0:c.dataCode].push(f)}}function Ai(e){let t={};return e.map(n=>{n.fields&&(t=n)}),t==null?void 0:t.fields}function Fi(e,t,n=!1){if(Cn(t))return;let r=Ee.staticGetRules(t.type,t.props);t.controlType===X.FORM?e[t.id]=r:t.type===oe.SUBTABLE&&t.children.length&&(e[t.id]=[],(n===!0?[{children:t.props.headers}]:t.children).forEach(u=>{let i={};Xe(u.children,o=>{let a=Ee.staticGetRules(o.type,o.props);i[o.id]=a}),e[t.id].push(i)}))}class qd{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o,subtableHeadersControlIdMapping:a}=Ud(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o,this.subtableHeadersControlIdMapping=a}setState(t,n,r){const u=this.controlIdMapping[t],i=te(n);u!==void 0?(u.children&&n.forEach(o=>{o.uid||Object.assign(o,{uid:"new:"+Jt("uid")})}),this.state[u.dataView][t]=i):r!==void 0?Object.keys(this.controlIdMapping).map(o=>{const a=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[a][o][r]&&(this.state[a][o][r][t]=i)})}):this.state[t]=i}getState(t,n){var u;if(this.state[t]!==void 0)return this.state[t];{const i=this.controlIdMapping[t];if(i!==void 0){const o=this.state[i.dataView][t];return n!==void 0&&Object.keys((u=i==null?void 0:i.children)!=null?u:{}).length>0?o[n]:o}else if(n!==void 0){let o;return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,l=this.controlIdMapping[a].children;l!==void 0&&Object.keys(l).map(c=>{var f;c===t&&(o=(f=this.state[s][a][n])==null?void 0:f[t])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,l=this.controlIdMapping[a].children;l!==void 0&&Object.keys(l).map(c=>{c===t&&this.state[s][a].map(f=>{o.push(f[t])})})}),o}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+Jt("uid")}),u}else{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,a=this.controlIdMapping[i].children;a!==void 0&&Object.keys(a).map(s=>{s===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function Ud(e){let t={},n={},r={},u={},i={},o={};return mt(e,a=>{const s=a.id,l={},c={};gt([a],(f,d)=>{Vd(l,c,f),Hd(r,s,f),zd(u,s,f),Wd(i,f)}),t[s]={},o[s]=l,n[s]=c}),{state:t,defaultState:o,subtableHeadersControlIdMapping:i,emptyState:n,databindMapping:r,controlidMapping:u}}function Vd(e,t,n){var r,u;if(n.controlType===X.FORM)e[n.id]=te(n.props.defaultValue),t[n.id]=te(n.props.defaultValue);else{const i={};Xe(n.props.headers,o=>{i[o.id]=te(o.props.defaultValue)}),e[n.id]=(u=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ae({uid:"new:"+Jt("uid")},te(i))))!=null?u:[],t[n.id]=i}}function Hd(e,t,n){var r,u;if(n.controlType===X.FORM)Oe(n.props.dataBind)?((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]})):Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,a=o[i].dataCode;a!==void 0&&(e[a]===void 0&&(e[a]={controlId:n.id,fields:[],dataViewId:t}),e[a].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))});else{if(n.props.datasourceBind.dataCode===""){tt(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const i=n.id;Xe(n.props.headers,o=>{Oe(o.props.dataBind)?(e[o.props.dataBind.dataCode]===void 0&&(e[o.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]})):Object.keys(o.props.dataBind).map(a=>{const s=o.props.dataBind,l=s[a].dataCode;e[l].fields.push({fieldCode:s[a].fieldCode,controlId:o.id,dataBind:s,dataViewId:[t,i]})})})}}function zd(e,t,n){n.controlType===X.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===oe.SUBTABLE&&(e[n.id]={dataBind:new or({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},Xe(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}function Wd(e,t){if(t.type===oe.SUBTABLE){const n={};t.props.headers.map(r=>{r.children.map(u=>{Object.assign(n,{[u.id]:u})})}),Object.assign(e,{[t.id]:n})}}const Ci=["splice","push","shift","pop","unshift","reverse"],Rr=Symbol("__engineProxy__"),jr=Symbol("__engineTarget__"),wi=Symbol("__engineArrayBeforeSetCallbackFlag__"),bi=Symbol("__engineProxyThisKey__"),Le={type:"",args:[],callback:Bi};function Bi(){}Kd();function Gd(e,t,n,r,u){if(Le.type){Le.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Je(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Ci.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const a=n,s=e.length;if(a>e.length){Je("Do not directly modify the length of the array data, please add new rows");return}return a===e.length?void 0:()=>u.call(null,e,r,"splice",[a,s-a])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function Zd(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===Rr?!0:u===jr?r:Array.isArray(r)&&u===wi?n:u===bi?e:Reflect.get(r,u,i)},set(r,u,i,o){var d;let a=te(i);const s=r[u],l=e===""?u:e+"."+u;function c(p){if(typeof p=="object"&&p!==null)return p[Rr]!==!0?wn(p,t,n,l):wn(p[jr],t,n,l)}a=(d=c(a))!=null?d:a;let f;if(Array.isArray(r)){const p=Gd(r,u,a,e,t);f=Reflect.set(r,u,a,o),p&&p()}else{try{let p=a;if(a=n.call(null,r,l,a,s),p!==a){const g=c(a);g!==void 0&&(a=g)}}catch(p){return sn(`${l} set error ${p}`),!0}f=Reflect.set(r,u,a,o),t.call(null,r,l,a,s)}return f||!0}}}function wn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=wn(o,t,n,i))}return new Proxy(e,Zd(r,t,n))}function kr(e,t){if(e==="")return{instance:void 0,rowIndex:void 0};var n=e.split(".");if(n.length===0)return{instance:void 0,rowIndex:void 0};const r=n.filter(s=>!isNaN(s)).at(-1),u=r?n.lastIndexOf(r):-1;let i,o;return u>-1?(i=Number(n[u]),o=n==null?void 0:n[u+1]):o=n[1],{instance:t.getInstance(o,i),rowIndex:i}}function Jd(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Xd(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function Kd(){Ci.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[Rr]){let u;const i=Jd(e,n);if(i.length){const o=(r=this[wi])==null?void 0:r.call(this,this[jr],this[bi],i),a=Xd(e,n,o);Le.type=e,Le.args=a,u=t.apply(this,a)}else Le.type=e,Le.args=n,u=t.apply(this,n);return typeof Le.callback=="function"&&Le.callback(e,n,u),Le.type="",Le.args=[],Le.callback=Bi,u}else return t.apply(this,n)}})}class Qd{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return We(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){return sn(`${u.id} Exception during calling action: ${i}`),!1}})}addAction(t,n){this.actionMap.has(t)&&Je("duplicated action key");const r=new Yd(t,n);this.actionMap.set(t,r)}}class Yd{constructor(t,n){this.id="",this.id=t,this.func=n}}class eh{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return te(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return We(this,null,function*(){return this.executer===void 0?(sn("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class ct{}class Xt extends ct{validate(t){return Ae(t)}transform(t){if(t==null)return"";if(!ke(t)&&!yu(t))return String(t);if(lf(t))return JSON.stringify(t);throw`${t} is not a string`}}class Lr extends ct{validate(t){return cn(t)||t===""}transform(t){if(t==null)return"";const n=!ke(t)&&!yu(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class th extends ct{validate(t){return ff(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(pt(t))return n(t);if(Ae(t)&&vu(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class nh extends ct{validate(t){return df(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(pt(t))return n(t);if(Ae(t)&&vu(t))try{const u=JSON.parse(t);if(pt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class rh extends ct{validate(t){return ke(t)&&"amount"in t&&cn(t.amount)&&"currency"in t&&Ae(t.currency)}transform(t,n){if(t==null||t==="")return new ar({currency:n==null?void 0:n.currency});let r;if(ke(t)&&(r=new ar(ae(ae({},n),t))),Ae(t)&&ln(t))try{const u=JSON.parse(t);r=new ar(ae(ae({},n),u))}catch(u){}if(r){const u=new Lr,i=new Xt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class uh extends ct{validate(t){return ke(t)&&"min"in t&&Ae(t.min)&&"max"in t&&Ae(t.max)}transform(t,n){if(t==null||t==="")return new sr;let r;if(ke(t)&&(r=new sr(ae(ae({},n),t))),Ae(t)&&ln(t))try{const u=JSON.parse(t);r=new sr(ae(ae({},n),u))}catch(u){}if(r){const u=new Xt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class ih extends ct{validate(t){return ke(t)&&"result"in t&&cn(t.result)&&"unit"in t&&Ae(t.unit)}transform(t,n){if(t==null||t==="")return new lr({unit:n==null?void 0:n.unit});let r;if(ke(t)&&(r=new lr(ae(ae({},n),t))),Ae(t)&&ln(t))try{const u=JSON.parse(t);r=new lr(ae(ae({},n),u))}catch(u){}if(r){const u=new Lr,i=new Xt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class oh extends ct{validate(t){return!!ke(t)}transform(t,n){if(t==null||t==="")return new cr;let r;if(ke(t)&&(r=new cr(ae(ae({},n),Yn.exports.camelizeKeys(t)))),Ae(t)&&ln(t))try{const u=JSON.parse(t);r=new cr(ae(ae({},n),Yn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Xt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class ah{static getValueChecker(t){let n;switch(t){case le.VARCHAR:case le.TIMESTAMP:case le.TEXT:case le.RELATION:case le.AUTO_NUMBER:n=new Xt;break;case le.DECIMAL:n=new Lr;break;case le.EMPLOYEES:case le.DEPARTMENTS:case le.IMAGE:case le.FILE:case le.ARRAY:n=new th;break;case le.MONEY:n=new rh;break;case le.TIMESCOPE:n=new uh;break;case le.CALC:n=new ih;break;case le.DECIMAL_RANGE:n=new nh;break;case le.ADDRESS:n=new oh;break}return n}}function sh(e){if(["min","max","currency","unit"].includes(e))return le.VARCHAR;if(["result","amount"].includes(e))return le.DECIMAL}function _i(e,t,n,r){var o;let u=(o=sh(t))!=null?o:e,i=ah.getValueChecker(u);if(!i||i.validate(n))return n;try{const a=i.transform(n,r);return a!==void 0?a:n}catch(a){throw`${t} ${a}`}}function ch(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=_i(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let Bt=null,Kt="";class qr extends Cu{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=on(8),this.__pluginsApplied=!1,this.actionManager=new Qd,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=au,debug:a=!1}=this.$options;Me.setLocale(o),this.debug=a,this.runtime=new Ee({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new qd({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Xn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(t){return Ee.register(t,"Runtime")}static judgeControlIsRegistered(t){return Ee.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=wn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const{instance:i,rowIndex:o}=kr(n,this);if(!i)return r;if(this.assertInstance(i,oe.SUBTABLE)){if(r===null)return[];const l=i.props.headers.reduce((f,d)=>{const p=d.children[0];return p&&p.controlType===X.FORM&&(f[p.id]=p.fieldType),f},{}),c=this.getEmptyState(i.id);return r==null?void 0:r.map(f=>ch(l,f,c))}const a=n.split("."),s=a[a.length-1];try{return _i(i.fieldType,s,r,u)}catch(l){throw tt(`the id=${i.id}'s instance setState error, %o ${l}.`,r),l}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const a=kr(n,this).instance;if((a==null?void 0:a.controlType)!==X.LIST)return;const s=g=>{const y=[];for(let F=0;F<g;F++){const h=this.listControlCreateRow(a,"subtable-row");h&&y.push(h)}return y},l=Bt;let c=[],f=[],d=[],p=!1;if(r&&u){switch(r){case"push":case"unshift":const y=u.length;c=s(y),f=u,a.children[r](...c),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const F=u.length-2,h=u.slice(2);c=s(F),f=h;const m=u[0],E=u[1];a.children[r](m,E,...c),this.runtime.getFlatInstances()}else{const F=u[0],h=u[1];F+h===a.children.length-1&&(p=!0),a.children[r](...u),this.runtime.getFlatInstances()}break;default:a.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?d=i:["pop","shift"].includes(r)&&(d=[i]);const g=this.getState(a.id);this._handlerSubtableUpdateUid(g),this.emit("list-change",{instance:a,value:g,options:Object.assign({},l,{changed:c,data:f,deleted:d!=null?d:[],jsonValue:JSON.stringify(g),isDeleteLastOne:p,type:r,args:u})}),Bt=null}}_handlerSubtableUpdateUid(t){t.forEach(n=>{n.uid||Object.assign(n,{uid:"new:"+Jt("uid")})})}_handlerObjectUpdate(t,n,r,u){const{instance:i,rowIndex:o}=kr(n,this);if(!i)return;const a=o,s=Bt||{};if(i.controlType===X.LIST&&i.type===oe.SUBTABLE){i.children.length=0;const l=r;let c=[];for(let d=0;d<l.length;d++){const p=this.listControlCreateRow(i,"subtable-row");p&&c.push(p)}i.children.push(...c),this.runtime.getFlatInstances();let f=u!=null?u:[];(s==null?void 0:s.setData)===!0&&(f=[]),this._handlerSubtableUpdateUid(l),this.emit("list-change",{instance:i,value:r,options:ou(ae({},s),{changed:c,data:l,deleted:f,type:"push",jsonValue:JSON.stringify(l)})})}else this.emit("change",{instance:i,value:this.getState(i.id,a),rowIndex:a,options:ou(ae({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Kt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Je(`${Kt} Plugin apply Error
2
- ${r}`)}finally{Kt=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){let r;if(n==="subtable-row"?r={children:[],controlType:X.LAYOUT,id:on(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:r=this.runtime.createControlInstance(n),!!r){if(r.controlType===X.LAYOUT){const u=r,i=te(t.props.headers),o=this.createControl(i);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,u);u.children.push(...o)}return r.parent=t,r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return We(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return tt("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield Ho(qr.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Kt&&(n.applyingPluginName=Kt),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRule(t,n){return Ee.staticGetRules(t,n)}getAllRules(t){var r,u;const n=this.runtime.allRules;return t===void 0?n:{rules:(r=n.rules[t])==null?void 0:r.fields,antdRules:(u=n.antdRules[t])==null?void 0:u.fields}}getRules(t,n=!1){var a,s,l,c,f,d,p;const r=this.runtime.rules,u=this.runtime.fieldCodeRules,i=this.store.controlIdMapping,o=n?u:r;if(t===void 0)return n?u:o;{if(t=n?(a=i[t])!=null&&a.children?(s=i[t].dataBind)==null?void 0:s.dataCode:((l=i[t].dataBind)==null?void 0:l.fieldCode)||t:t,t in o)return(c=o[t])==null?void 0:c.fields;let g;for(const y in o)if(t in(((f=o[y])==null?void 0:f.fields)||{})){g=(p=(d=o[y])==null?void 0:d.fields)==null?void 0:p[t];break}return g}}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return te(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){Bt=t}setState(t,n,r,u){Bt=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),Bt=null}setStates(t,n,r){let u=t!=null?t:{};Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===i){const s=u[i][o];s!==void 0&&this.setState(o,s,n,r)}else(o===i||a.children&&a.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getTitleField(t){const n=Object.values(this.store.state).filter(r=>r.submit_user)[0];return t?n[t]:n}getSystemField(t){var u,i;const n=["creator","process_location","create_time","uid","update_time","process_status","process_instance_id","process_key"],r=((u=this.externalParams)==null?void 0:u.data.data_set.values.filter(o=>n.some(a=>a==o.code)))||[];return t?(i=r.filter(o=>o.code==t)[0])==null?void 0:i.value:r}getField(t,n,r){if(!n){const s=this.getDataBindMapping(t);if(s){const{controlId:l}=s;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,a=this.getState(o,r);return Oe(i)?a:Object.entries(i).reduce((s,[l,c])=>c.fieldCode===n?s[l]:s,a)}getData(t){var u,i,o,a,s,l,c,f,d;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:p}=n,g=this.getField(t);if(Array.isArray(g))return g.map(F=>{var m,E,A,b,N,I;let h={};for(let j in F){const V=(A=(E=(m=r[p])==null?void 0:m.children[j])==null?void 0:E.dataBind)==null?void 0:A.fieldCode;if(V!==""){if(V)h[V]=F[j];else if((b=r[p])!=null&&b.children[j])for(let H in F[j])h[(I=(N=r[p])==null?void 0:N.children[j])==null?void 0:I.dataBind[H].fieldCode]=F[j][H]}}return h});{let y={};for(let F in g)if((i=(u=r[F])==null?void 0:u.dataBind)!=null&&i.fieldCode)y[(o=r[F])==null?void 0:o.dataBind.fieldCode]=g[F];else if((s=(a=r[F])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(g[F])&&(y[(l=r[F])==null?void 0:l.dataBind.dataCode]=(c=g[F])==null?void 0:c.map(h=>{var E,A,b,N,I,j;let m={};for(let V in h){const H=((E=r[F])==null?void 0:E.children)&&V?(I=(N=(b=(A=r[F])==null?void 0:A.children)==null?void 0:b[V])==null?void 0:N.dataBind)==null?void 0:I.fieldCode:"";if(H!=="")if(H)m[H]=h[V];else for(let P in h[V])m[(j=r[F].children[V])==null?void 0:j.dataBind[P].fieldCode]=h[V][P]}return m}));else if(r[F])for(let h in g[F])y[(d=(f=r[F])==null?void 0:f.dataBind[h])==null?void 0:d.fieldCode]=g[F][h];return y}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:a,controlId:s}=o;if(Oe(a))this.setState(s,r,u,i);else{const c=(l=te(this.getState(s,u)))!=null?l:this.getEmptyState(s),f=Object.entries(a).reduce((d,[p,g])=>(g.fieldCode===n&&(d[p]=r),d),c);this.setState(s,f,u,i)}}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(a=>{var f;const{dataBind:s,controlId:l,fieldCode:c}=a;if(!o.includes(c)&&!!Object.hasOwnProperty.call(n,c))if(Oe(s))this.setState(l,n[c],r,u);else{const d=(f=te(this.getState(l,r)))!=null?f:this.getEmptyState(l),p=Object.entries(s).reduce((g,[y,F])=>{o.push(F.fieldCode);const h=n[F.fieldCode];return h!==void 0&&(g[y]=h),g},d);this.setState(a.controlId,p,r,u)}})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r||!r.fields)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(Oe(a))i[s]=n[l];else{const c=this.getEmptyState(s);i[o.controlId]=Object.entries(a).reduce((f,[d,p])=>{u.push(p.fieldCode);const g=n[p.fieldCode];return g!==void 0&&(f[d]=g),f},c)}}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);const r=n==null?void 0:n.onlySetData;let u=this.store.defaultState;r===!0&&(u={}),Object.keys(t).map(i=>{var a,s,l,c;const o=t[i];if(Array.isArray(o)){const f=this.getDataBindMapping(i);if(!f)return;u[f.dataViewId]||(u[f.dataViewId]={}),o.length?u[f.dataViewId][f.controlId]=[]:u[f.dataViewId][f.controlId]=(a=u[f.dataViewId][f.controlId])!=null?a:[];let d={},p={};o.map(g=>{let y=te(this.store.emptyState[f.dataViewId][f.controlId]),F=[];Object.keys(g).map(h=>{var E,A,b;if(F.includes(h))return;p.hasOwnProperty(h)===!1&&(p[h]=(A=(E=this.store.dataBindMapping[i])==null?void 0:E.fields)==null?void 0:A.find(N=>N.fieldCode===h));const m=p[h];if(m){if(Oe(m.dataBind)&&g[h]!==void 0)y[m.controlId]=g[h];else if(!Oe(m.dataBind)){d.hasOwnProperty(m.controlId)===!1&&(d[m.controlId]=te((b=this.getEmptyState(m.controlId))!=null?b:{}));let N=te(d[m.controlId]);Object.keys(m.dataBind).map(I=>{const j=m.dataBind[I];g[j.fieldCode]!==void 0&&(N[I]=g[j.fieldCode]),F.push(j.fieldCode)}),y[m.controlId]=N}}else h==="uid"&&g.uid!==void 0?y.uid=g.uid:h==="virtualStore"&&g.virtualStore!==void 0&&(y.virtualStore=Object.freeze(g.virtualStore))}),u[f.dataViewId][f.controlId].push(y)})}else if(o){let f=[];const d=te(this.store.emptyState);(s=Object.keys(o))!=null&&s.length&&Object.keys(o).map(g=>{var F;if(f.includes(g))return;const y=this.getDataBindMapping(i,g);if(y){if(u[y.dataViewId[0]]||(u[y.dataViewId[0]]={}),Oe(y.dataBind)&&o[g]!==void 0)u[y.dataViewId[0]][y.controlId]=o[g]!==void 0?o[g]:d[y.dataViewId[0]][y.controlId];else if(!Oe(y.dataBind)){let h=(F=this.getEmptyState(y.controlId))!=null?F:{};Object.keys(y.dataBind).map(m=>{const E=y.dataBind[m];o[E.fieldCode]!==void 0&&(h[m]=o[E.fieldCode]),f.push(E.fieldCode)}),u[y.dataViewId[0]][y.controlId]=h}}});const p=this.getDataBindMapping(i);if(p){const g=(l=p==null?void 0:p.fields)==null?void 0:l.map(h=>h==null?void 0:h.controlId),y=this.getEmptyState(p==null?void 0:p.controlId),F=Object.keys((c=u==null?void 0:u[p==null?void 0:p.controlId])!=null?c:{});g==null||g.forEach(h=>{!F.includes(h)&&h!=="uid"&&u[p==null?void 0:p.controlId]&&(Object.keys(u).length?Object.assign(u[p==null?void 0:p.controlId],{[h]:y[h]}):Object.assign(u,{[p.controlId]:{[h]:y[h]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u),this.setStates(u,void 0,ae({setData:!0},n)),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){if(t===void 0)return this.runtime.flatInstances;const r=Array.from(this.runtime.instanceMap[t]||[]);if(n&&r.length){const u=r[0],i=this.findSubtableHeadersControl(u.id);i!==void 0&&r.unshift(i)}return r}setInstance(t,n,r,u){try{if(typeof t=="string"&&u===-1)this.getInstances(t,u===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,n,r),Qn(o.props,n,r),this.schemaEvent("schema-change",{instance:o,props:n,value:r,rowIndex:u}))});else{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),Qn(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r,rowIndex:u})}}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){tt(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){tt(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new eh(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Ae(n)?t.type===n:n.includes(t.type)}assertInstanceIsCustomControl(t){return!hf(Ae(t)?t:t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,oe.SUBTABLE_COLUMN)&&this.assertInstance(t.parent.parent,oe.SUBTABLE))n=-1;else if(this.getInstanceParentControl(t,oe.SUBTABLE_COLUMN)){const i=this.runtime.instanceMap[t.id];if(Object.prototype.toString.call(i)==="[object Array]"){const o=i.findIndex(a=>a===t);o>-1&&(n=o)}}return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,oe.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,oe.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,oe.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}inList(t){const n=this.store.subtableHeadersControlIdMapping;let r;for(const u in n)if(t in n[u]){r=u;break}return r}findSubtableHeadersControl(t){const n=this.store.subtableHeadersControlIdMapping;let r;for(const u in n)if(t in n[u]){r=n[u][t];break}return r}}class lh{}class fh{constructor(t,n,r){this.config=t,this.env=n,this.eventJs=r}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=t.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:t,utils:r.actionUtils});for(let[u,i]of Object.entries(this.eventJs))r.addAction(u,i)}else{const u=Si(n,t,this.env);if(!u)return;for(let[i,o]of Object.entries(u.funcMap))r.addAction(i,o)}}}function Si(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(a){Je(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Je("fail to parse the module")}const i={},o={};for(const[a,s]of Object.entries(u.exports))typeof s=="function"?i[a]=s:o[a]=s;return{funcMap:i,variables:o}}const dh={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class hh{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(dh).forEach(([n,r])=>{t.on(n,u=>We(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return We(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>We(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class ph{constructor(t){this.config=t}apply(t){this.engine=t,bu.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>We(this,null,function*(){if(!((t==="change"||t==="list-change")&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return We(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>We(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(null,arguments)}var Mi={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function De(e){return typeof e=="number"}function Qe(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function Ni(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function Ii(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Oi(e){return e&&e.constructor.prototype.isUnit===!0||!1}function Bn(e){return typeof e=="string"}var xe=Array.isArray;function _t(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ur(e){return Array.isArray(e)||_t(e)}function Dh(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function gh(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function mh(e){return e&&e.constructor.prototype.isRange===!0||!1}function xi(e){return e&&e.constructor.prototype.isIndex===!0||!1}function yh(e){return typeof e=="boolean"}function vh(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function Eh(e){return e&&e.constructor.prototype.isHelp===!0||!1}function Ah(e){return typeof e=="function"}function Fh(e){return e instanceof Date}function Ch(e){return e instanceof RegExp}function Ti(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!Ni(e)&&!Ii(e))}function wh(e){return e===null}function bh(e){return e===void 0}function Bh(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function _h(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sh(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mh(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nh(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ih(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oh(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function xh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Th(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ph(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function $h(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rh(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function jh(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function kh(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Lh(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function qh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Uh(e){return e&&e.constructor.prototype.isChain===!0||!1}function Vr(e){var t=typeof e;return t==="object"?e===null?"null":Qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function yt(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return yt(n)});if(e instanceof Date)return new Date(e.valueOf());if(Qe(e))return e;if(Ti(e))return Vh(e,yt);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function Vh(e,t){var n={};for(var r in e)_n(e,r)&&(n[r]=t(e[r]));return n}function Qt(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!Qt(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Qt(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function _n(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Hh(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var zh=["Matrix","Array"],Wh=["number","BigNumber","Fraction"],Pi=function(t){if(t)throw new Error(`The global config is readonly.
2
+ ${r}`)}finally{Kt=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){let r;if(n==="subtable-row"?r={children:[],controlType:X.LAYOUT,id:on(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:r=this.runtime.createControlInstance(n),!!r){if(r.controlType===X.LAYOUT){const u=r,i=te(t.props.headers),o=this.createControl(i);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,u);u.children.push(...o)}return r.parent=t,r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return We(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return tt("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield Ho(qr.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Kt&&(n.applyingPluginName=Kt),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRule(t,n){return Ee.staticGetRules(t,n)}getAllRules(t){var r,u;const n=this.runtime.allRules;return t===void 0?n:{rules:(r=n.rules[t])==null?void 0:r.fields,antdRules:(u=n.antdRules[t])==null?void 0:u.fields}}getRules(t,n=!1){var a,s,l,c,f,d,p;const r=this.runtime.rules,u=this.runtime.fieldCodeRules,i=this.store.controlIdMapping,o=n?u:r;if(t===void 0)return n?u:o;{if(t=n?(a=i[t])!=null&&a.children?(s=i[t].dataBind)==null?void 0:s.dataCode:((l=i[t].dataBind)==null?void 0:l.fieldCode)||t:t,t in o)return(c=o[t])==null?void 0:c.fields;let g;for(const y in o)if(t in(((f=o[y])==null?void 0:f.fields)||{})){g=(p=(d=o[y])==null?void 0:d.fields)==null?void 0:p[t];break}return g}}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return te(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){Bt=t}setState(t,n,r,u){Bt=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),Bt=null}setStates(t,n,r){let u=t!=null?t:{};Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===i){const s=u[i][o];s!==void 0&&this.setState(o,s,n,r)}else(o===i||a.children&&a.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getTitleField(t){const n=Object.values(this.store.state).filter(r=>r.submit_user)[0];return t?n[t]:n}getSystemField(t){var u,i;const n=["creator","process_location","create_time","uid","update_time","process_status","process_instance_id","process_key"],r=((u=this.externalParams)==null?void 0:u.data.data_set.values.filter(o=>n.some(a=>a==o.code)))||[];return t?(i=r.filter(o=>o.code==t)[0])==null?void 0:i.value:r}getField(t,n,r){if(!n){const s=this.getDataBindMapping(t);if(s){const{controlId:l}=s;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,a=this.getState(o,r);return Oe(i)?a:Object.entries(i).reduce((s,[l,c])=>c.fieldCode===n?s[l]:s,a)}getData(t){var u,i,o,a,s,l,c,f,d;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:p}=n,g=this.getField(t);if(Array.isArray(g))return g.map(F=>{var m,E,A,b,N,I;let h={};for(let j in F){const V=(A=(E=(m=r[p])==null?void 0:m.children[j])==null?void 0:E.dataBind)==null?void 0:A.fieldCode;if(V!==""){if(V)h[V]=F[j];else if((b=r[p])!=null&&b.children[j])for(let H in F[j])h[(I=(N=r[p])==null?void 0:N.children[j])==null?void 0:I.dataBind[H].fieldCode]=F[j][H]}}return h});{let y={};for(let F in g)if((i=(u=r[F])==null?void 0:u.dataBind)!=null&&i.fieldCode)y[(o=r[F])==null?void 0:o.dataBind.fieldCode]=g[F];else if((s=(a=r[F])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(g[F])&&(y[(l=r[F])==null?void 0:l.dataBind.dataCode]=(c=g[F])==null?void 0:c.map(h=>{var E,A,b,N,I,j;let m={};for(let V in h){const H=((E=r[F])==null?void 0:E.children)&&V?(I=(N=(b=(A=r[F])==null?void 0:A.children)==null?void 0:b[V])==null?void 0:N.dataBind)==null?void 0:I.fieldCode:"";if(H!=="")if(H)m[H]=h[V];else for(let P in h[V])m[(j=r[F].children[V])==null?void 0:j.dataBind[P].fieldCode]=h[V][P]}return m}));else if(r[F])for(let h in g[F])y[(d=(f=r[F])==null?void 0:f.dataBind[h])==null?void 0:d.fieldCode]=g[F][h];return y}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:a,controlId:s}=o;if(Oe(a))this.setState(s,r,u,i);else{const c=(l=te(this.getState(s,u)))!=null?l:this.getEmptyState(s),f=Object.entries(a).reduce((d,[p,g])=>(g.fieldCode===n&&(d[p]=r),d),c);this.setState(s,f,u,i)}}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(a=>{var f;const{dataBind:s,controlId:l,fieldCode:c}=a;if(!o.includes(c)&&!!Object.hasOwnProperty.call(n,c))if(Oe(s))this.setState(l,n[c],r,u);else{const d=(f=te(this.getState(l,r)))!=null?f:this.getEmptyState(l),p=Object.entries(s).reduce((g,[y,F])=>{o.push(F.fieldCode);const h=n[F.fieldCode];return h!==void 0&&(g[y]=h),g},d);this.setState(a.controlId,p,r,u)}})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r||!r.fields)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(Oe(a))i[s]=n[l];else{const c=this.getEmptyState(s);i[o.controlId]=Object.entries(a).reduce((f,[d,p])=>{u.push(p.fieldCode);const g=n[p.fieldCode];return g!==void 0&&(f[d]=g),f},c)}}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);const r=n==null?void 0:n.onlySetData;let u=this.store.defaultState;r===!0&&(u={}),Object.keys(t).map(i=>{var a,s,l,c;const o=t[i];if(Array.isArray(o)){const f=this.getDataBindMapping(i);if(!f)return;u[f.dataViewId]||(u[f.dataViewId]={}),o.length?u[f.dataViewId][f.controlId]=[]:u[f.dataViewId][f.controlId]=(a=u[f.dataViewId][f.controlId])!=null?a:[];let d={},p={};o.map(g=>{let y=te(this.store.emptyState[f.dataViewId][f.controlId]),F=[];Object.keys(g).map(h=>{var E,A,b;if(F.includes(h))return;p.hasOwnProperty(h)===!1&&(p[h]=(A=(E=this.store.dataBindMapping[i])==null?void 0:E.fields)==null?void 0:A.find(N=>N.fieldCode===h));const m=p[h];if(m){if(Oe(m.dataBind)&&g[h]!==void 0)y[m.controlId]=g[h];else if(!Oe(m.dataBind)){d.hasOwnProperty(m.controlId)===!1&&(d[m.controlId]=te((b=this.getEmptyState(m.controlId))!=null?b:{}));let N=te(d[m.controlId]);Object.keys(m.dataBind).map(I=>{const j=m.dataBind[I];g[j.fieldCode]!==void 0&&(N[I]=g[j.fieldCode]),F.push(j.fieldCode)}),y[m.controlId]=N}}else h==="uid"&&g.uid!==void 0?y.uid=g.uid:h==="virtualStore"&&g.virtualStore!==void 0&&(y.virtualStore=Object.freeze(g.virtualStore))}),u[f.dataViewId][f.controlId].push(y)})}else if(o){let f=[];const d=te(this.store.emptyState);(s=Object.keys(o))!=null&&s.length&&Object.keys(o).map(g=>{var F;if(f.includes(g))return;const y=this.getDataBindMapping(i,g);if(y){if(u[y.dataViewId[0]]||(u[y.dataViewId[0]]={}),Oe(y.dataBind)&&o[g]!==void 0)u[y.dataViewId[0]][y.controlId]=o[g]!==void 0?o[g]:d[y.dataViewId[0]][y.controlId];else if(!Oe(y.dataBind)){let h=(F=this.getEmptyState(y.controlId))!=null?F:{};Object.keys(y.dataBind).map(m=>{const E=y.dataBind[m];o[E.fieldCode]!==void 0&&(h[m]=o[E.fieldCode]),f.push(E.fieldCode)}),u[y.dataViewId[0]][y.controlId]=h}}});const p=this.getDataBindMapping(i);if(p){const g=(l=p==null?void 0:p.fields)==null?void 0:l.map(h=>h==null?void 0:h.controlId),y=this.getEmptyState(p==null?void 0:p.controlId),F=Object.keys((c=u==null?void 0:u[p==null?void 0:p.controlId])!=null?c:{});g==null||g.forEach(h=>{!F.includes(h)&&h!=="uid"&&u[p==null?void 0:p.controlId]&&(Object.keys(u).length?Object.assign(u[p==null?void 0:p.controlId],{[h]:y[h]}):Object.assign(u,{[p.controlId]:{[h]:y[h]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",u),this.setStates(u,void 0,ae({setData:!0},n)),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){if(t===void 0)return this.runtime.flatInstances;const r=Array.from(this.runtime.instanceMap[t]||[]);if(n&&r.length){const u=r[0],i=this.findSubtableHeadersControl(u.id);i!==void 0&&r.unshift(i)}return r}setInstance(t,n,r,u){try{if(typeof t=="string"&&u===-1)this.getInstances(t,u===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,n,r),Qn(o.props,n,r),this.schemaEvent("schema-change",{instance:o,props:n,value:r,rowIndex:u}))});else{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),Qn(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r,rowIndex:u})}}catch(i){throw i}}setInstanceAndState(t,n,r,u){if(this.setInstance(t,n,r,u),r&&Array.isArray(r)){const i=[];for(const o of r)o.checked&&i.push(o.value);if(i.length>0){let o="";typeof t!="string"?o=t.id:o=t,this.setState(o,i,u)}}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){tt(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){tt(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new eh(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Ae(n)?t.type===n:n.includes(t.type)}assertInstanceIsCustomControl(t){return!hf(Ae(t)?t:t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,oe.SUBTABLE_COLUMN)&&this.assertInstance(t.parent.parent,oe.SUBTABLE))n=-1;else if(this.getInstanceParentControl(t,oe.SUBTABLE_COLUMN)){const i=this.runtime.instanceMap[t.id];if(Object.prototype.toString.call(i)==="[object Array]"){const o=i.findIndex(a=>a===t);o>-1&&(n=o)}}return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,oe.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,oe.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,oe.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}inList(t){const n=this.store.subtableHeadersControlIdMapping;let r;for(const u in n)if(t in n[u]){r=u;break}return r}findSubtableHeadersControl(t){const n=this.store.subtableHeadersControlIdMapping;let r;for(const u in n)if(t in n[u]){r=n[u][t];break}return r}}class lh{}class fh{constructor(t,n,r){this.config=t,this.env=n,this.eventJs=r}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=t.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:t,utils:r.actionUtils});for(let[u,i]of Object.entries(this.eventJs))r.addAction(u,i)}else{const u=Si(n,t,this.env);if(!u)return;for(let[i,o]of Object.entries(u.funcMap))r.addAction(i,o)}}}function Si(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(a){Je(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Je("fail to parse the module")}const i={},o={};for(const[a,s]of Object.entries(u.exports))typeof s=="function"?i[a]=s:o[a]=s;return{funcMap:i,variables:o}}const dh={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class hh{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(dh).forEach(([n,r])=>{t.on(n,u=>We(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return We(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>We(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class ph{constructor(t){this.config=t}apply(t){this.engine=t,bu.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>We(this,null,function*(){if(!((t==="change"||t==="list-change")&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return We(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>We(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(null,arguments)}var Mi={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function De(e){return typeof e=="number"}function Qe(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function Ni(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function Ii(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Oi(e){return e&&e.constructor.prototype.isUnit===!0||!1}function Bn(e){return typeof e=="string"}var xe=Array.isArray;function _t(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ur(e){return Array.isArray(e)||_t(e)}function Dh(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function gh(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function mh(e){return e&&e.constructor.prototype.isRange===!0||!1}function xi(e){return e&&e.constructor.prototype.isIndex===!0||!1}function yh(e){return typeof e=="boolean"}function vh(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function Eh(e){return e&&e.constructor.prototype.isHelp===!0||!1}function Ah(e){return typeof e=="function"}function Fh(e){return e instanceof Date}function Ch(e){return e instanceof RegExp}function Ti(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!Ni(e)&&!Ii(e))}function wh(e){return e===null}function bh(e){return e===void 0}function Bh(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function _h(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sh(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mh(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nh(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ih(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oh(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function xh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Th(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ph(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function $h(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rh(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function jh(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function kh(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Lh(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function qh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function Uh(e){return e&&e.constructor.prototype.isChain===!0||!1}function Vr(e){var t=typeof e;return t==="object"?e===null?"null":Qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function yt(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return yt(n)});if(e instanceof Date)return new Date(e.valueOf());if(Qe(e))return e;if(Ti(e))return Vh(e,yt);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function Vh(e,t){var n={};for(var r in e)_n(e,r)&&(n[r]=t(e[r]));return n}function Qt(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!Qt(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Qt(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function _n(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Hh(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var zh=["Matrix","Array"],Wh=["number","BigNumber","Fraction"],Pi=function(t){if(t)throw new Error(`The global config is readonly.
3
3
  Please create a mathjs instance if you want to change the default configuration.
4
4
  Example:
5
5
 
@@ -164,6 +164,19 @@ declare class Engine extends Watcher<EventKeys> {
164
164
  */
165
165
  getInstances(controlId?: string, header?: boolean): ControlRuntimeInstance<ControlsKeys>[];
166
166
  setInstance(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
167
+ /**
168
+ * 前端二开新增方法,支持给多选控件动态赋值选项和默认值
169
+ * ctx.setInstance('zQX4ViR3c0', 'options', [{ label:'初级:N<2年', value: '初级' },{ label:'高级:N>2年', value: '高级' }]);
170
+ * ctx.setState('zQX4ViR3c0',['初级'])
171
+ * 将以上两个方法封装成一个新的方法setInstanceAndState
172
+ * ctx.setInstanceAndState('uexLafJeGH', 'options', [{ label:'初级:N<2年', value: '初级' ,checked: true},{ label:'初级:N>2年', value: '高级' }]);
173
+ * 可同时设置选项和默认值
174
+ * @param instance
175
+ * @param props
176
+ * @param value
177
+ * @param rowIndex
178
+ */
179
+ setInstanceAndState(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
167
180
  getControlIdMapping(): import("./Store").controlIdMappingType;
168
181
  getDataBindMapping(): dataBindMappingType;
169
182
  getDataBindMapping(dataCode: string): DataBindMappingTypeItem | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "4.54.0-lx2",
3
+ "version": "4.65.0-lx0",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "@types/node": "~18.0.6"
36
36
  },
37
- "gitHead": "ae1ecda2984d1ba75b25c7d0fd2fa470e5a3213a"
37
+ "gitHead": "8e28eda8371ee36c614b32b00997503e64396041"
38
38
  }