@byteluck-fe/runtime-engine 7.0.0-beta.6 → 7.0.0-beta.7

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.
@@ -5,7 +5,7 @@ import { FieldTypes as Qt, loadRemoteControl as XB, loadRemoteControls as vj, lo
5
5
  import * as NE from "@byteluck-fe/model-driven-engine";
6
6
  import { loopDataViewControl as Gj, parseModule as BE, Engine as sd, ES6ModulePlugin as zj, LifecycleEventPlugin as Uj, ControlsEventPlugin as Hj, StylePlugin as Wj } from "@byteluck-fe/model-driven-engine";
7
7
  import * as Op from "@byteluck-fe/global-shared";
8
- import { getCustomRequestHeader as jj, client as et, getFetch as wn, CacheManager as Xj, path as Hn, HttpCodes as JB, isArray as yn, isString as Er, ModelFieldTypes as Nt, buildUUID as QB, isDef as eV, cacheManager as Wn, CustomUtilsMounted as Yj, formatDisplayData as Kj, isObject as tV, VoBizModel as VE, isEmpty as _u, isFunction as rV, customClose as nV, customOpenOperate as FE, customUpdateCurrentTab as Zj, customInit as Jj, TenantInitUtil as Qj, ProjectType as e8, Postmate as t8, getBrowserType as r8 } from "@byteluck-fe/global-shared";
8
+ import { getCustomRequestHeader as jj, client as et, getFetch as wn, CacheManager as Xj, path as Hn, HttpCodes as JB, isArray as yn, isString as Sr, ModelFieldTypes as Nt, buildUUID as QB, isDef as eV, cacheManager as Wn, CustomUtilsMounted as Yj, formatDisplayData as Kj, isObject as tV, VoBizModel as VE, isEmpty as _u, isFunction as rV, customClose as nV, customOpenOperate as FE, customUpdateCurrentTab as Zj, customInit as Jj, TenantInitUtil as Qj, ProjectType as e8, Postmate as t8, getBrowserType as r8 } from "@byteluck-fe/global-shared";
9
9
  import n8, { get as ld, debounce as a8, isEqual as R1, map as aV, isNil as Au, uniqBy as i8, cloneDeep as Jn, isArray as ja, mapValues as o8, keyBy as s8, isEmpty as l8, keys as Mp, uniq as u8, merge as c8, set as f8 } from "lodash";
10
10
  import * as d8 from "@byteluck-fe/locale-message";
11
11
  import { getLocaleText as te, LocaleEnum as ji, initSetI18nMessages as p8, updateLocalMessage as h8 } from "@byteluck-fe/locale-message";
@@ -11303,14 +11303,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
11303
11303
  hasStandardBrowserWebWorkerEnv: one,
11304
11304
  navigator: W1,
11305
11305
  origin: sne
11306
- }, Symbol.toStringTag, { value: "Module" })), Sr = {
11306
+ }, Symbol.toStringTag, { value: "Module" })), wr = {
11307
11307
  ...lne,
11308
11308
  ...ane
11309
11309
  };
11310
11310
  function une(r, e) {
11311
- return Ny(r, new Sr.classes.URLSearchParams(), {
11311
+ return Ny(r, new wr.classes.URLSearchParams(), {
11312
11312
  visitor: function(t, n, a, i) {
11313
- return Sr.isNode && X.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
11313
+ return wr.isNode && X.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
11314
11314
  },
11315
11315
  ...e
11316
11316
  });
@@ -11410,8 +11410,8 @@ const Bx = {
11410
11410
  maxContentLength: -1,
11411
11411
  maxBodyLength: -1,
11412
11412
  env: {
11413
- FormData: Sr.classes.FormData,
11414
- Blob: Sr.classes.Blob
11413
+ FormData: wr.classes.FormData,
11414
+ Blob: wr.classes.Blob
11415
11415
  },
11416
11416
  validateStatus: function(e) {
11417
11417
  return e >= 200 && e < 300;
@@ -11733,10 +11733,10 @@ const ng = (r, e, t = 3) => {
11733
11733
  }),
11734
11734
  e[1]
11735
11735
  ];
11736
- }, rI = (r) => (...e) => X.asap(() => r(...e)), Tne = Sr.hasStandardBrowserEnv ? ((r, e) => (t) => (t = new URL(t, Sr.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
11737
- new URL(Sr.origin),
11738
- Sr.navigator && /(msie|trident)/i.test(Sr.navigator.userAgent)
11739
- ) : () => !0, xne = Sr.hasStandardBrowserEnv ? (
11736
+ }, rI = (r) => (...e) => X.asap(() => r(...e)), Tne = wr.hasStandardBrowserEnv ? ((r, e) => (t) => (t = new URL(t, wr.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
11737
+ new URL(wr.origin),
11738
+ wr.navigator && /(msie|trident)/i.test(wr.navigator.userAgent)
11739
+ ) : () => !0, xne = wr.hasStandardBrowserEnv ? (
11740
11740
  // Standard browser envs support document.cookie
11741
11741
  {
11742
11742
  write(r, e, t, n, a, i, o) {
@@ -11859,7 +11859,7 @@ const HV = (r) => {
11859
11859
  (s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : "")
11860
11860
  )
11861
11861
  ), X.isFormData(t)) {
11862
- if (Sr.hasStandardBrowserEnv || Sr.hasStandardBrowserWebWorkerEnv)
11862
+ if (wr.hasStandardBrowserEnv || wr.hasStandardBrowserWebWorkerEnv)
11863
11863
  o.setContentType(void 0);
11864
11864
  else if (X.isFunction(t.getHeaders)) {
11865
11865
  const l = t.getHeaders(), u = ["content-type", "content-length"];
@@ -11868,7 +11868,7 @@ const HV = (r) => {
11868
11868
  });
11869
11869
  }
11870
11870
  }
11871
- if (Sr.hasStandardBrowserEnv && (n && X.isFunction(n) && (n = n(e)), n || n !== !1 && Tne(e.url))) {
11871
+ if (wr.hasStandardBrowserEnv && (n && X.isFunction(n) && (n = n(e)), n || n !== !1 && Tne(e.url))) {
11872
11872
  const l = a && i && xne.read(i);
11873
11873
  l && o.set(a, l);
11874
11874
  }
@@ -11931,7 +11931,7 @@ const HV = (r) => {
11931
11931
  g && (n(!_ || _.type ? new np(null, r, g) : _), g.abort(), g = null);
11932
11932
  }, a.cancelToken && a.cancelToken.subscribe(c), a.signal && (a.signal.aborted ? c() : a.signal.addEventListener("abort", c)));
11933
11933
  const m = bne(a.url);
11934
- if (m && Sr.protocols.indexOf(m) === -1) {
11934
+ if (m && wr.protocols.indexOf(m) === -1) {
11935
11935
  n(
11936
11936
  new Qe(
11937
11937
  "Unsupported protocol " + m + ":",
@@ -12050,7 +12050,7 @@ const HV = (r) => {
12050
12050
  return !1;
12051
12051
  const s = a && Lp(oI), l = a && (typeof sI == "function" ? ((h) => (v) => h.encode(v))(new sI()) : async (h) => new Uint8Array(await new t(h).arrayBuffer())), u = i && s && lI(() => {
12052
12052
  let h = !1;
12053
- const v = new t(Sr.origin, {
12053
+ const v = new t(wr.origin, {
12054
12054
  body: new oI(),
12055
12055
  method: "POST",
12056
12056
  get duplex() {
@@ -12079,7 +12079,7 @@ const HV = (r) => {
12079
12079
  if (X.isBlob(h))
12080
12080
  return h.size;
12081
12081
  if (X.isSpecCompliantForm(h))
12082
- return (await new t(Sr.origin, {
12082
+ return (await new t(wr.origin, {
12083
12083
  method: "POST",
12084
12084
  body: h
12085
12085
  }).arrayBuffer()).byteLength;
@@ -13317,7 +13317,7 @@ function $y(r, e) {
13317
13317
  return e?.length ? e.find((t) => t.ctrl_id === r)?.ctrl_behavior !== fr.HIDDEN : !0;
13318
13318
  }
13319
13319
  function fd(r, e, t, n) {
13320
- return r.assertInstance(t, V.SCORE) && e === t.props.defaultValue ? !0 : r.assertInstance(t, V.CALC) ? n === "unit" || n === "result" && e === 0 : r.assertInstance(t, V.AMOUNT) && n === "currency" ? !0 : yn(e) || Er(e) ? e.length === 0 : !1;
13320
+ return r.assertInstance(t, V.SCORE) && e === t.props.defaultValue ? !0 : r.assertInstance(t, V.CALC) ? n === "unit" || n === "result" && e === 0 : r.assertInstance(t, V.AMOUNT) && n === "currency" ? !0 : yn(e) || Sr(e) ? e.length === 0 : !1;
13321
13321
  }
13322
13322
  function sae(r) {
13323
13323
  return r.city === "" && r.district === "" && r.province === "";
@@ -21330,7 +21330,7 @@ class S$ {
21330
21330
  }).forEach((i) => this.applyDisplay(i, e)), await Promise.resolve();
21331
21331
  }
21332
21332
  handlerCacheInstanceIdDefaultIsHide(e) {
21333
- (Er(e) ? this.getInstances(e) : [e]).map((n) => {
21333
+ (Sr(e) ? this.getInstances(e) : [e]).map((n) => {
21334
21334
  if (!this.cacheDefaultIsHide.has(n.id))
21335
21335
  if (this.engine.inList(n.id) !== void 0) {
21336
21336
  const i = this.engine.getInstance(n.id, -1);
@@ -21604,7 +21604,7 @@ class w$ {
21604
21604
  return this.displayConfigControlIds.includes(e.id);
21605
21605
  }
21606
21606
  }
21607
- const Cl = (r) => Er(r) || yn(r) ? r?.length === 0 : !1;
21607
+ const Cl = (r) => Sr(r) || yn(r) ? r?.length === 0 : !1;
21608
21608
  let jue = 0;
21609
21609
  class T$ {
21610
21610
  pluginName = "MultistageFillingPlugin";
@@ -21783,10 +21783,7 @@ class T$ {
21783
21783
  P = P.filter(
21784
21784
  (C) => C != null
21785
21785
  );
21786
- const x = T.reduce(
21787
- (C, A) => (yn(A) ? C.push(...A) : C.push(A), C),
21788
- []
21789
- );
21786
+ const x = this.normalizeArrayControlFieldValue(T);
21790
21787
  _.display = P, _.field_value = w ? x : T.join(",");
21791
21788
  }
21792
21789
  } else
@@ -21910,6 +21907,18 @@ class T$ {
21910
21907
  }
21911
21908
  return yn(e) && (e = Array.from(new Set(e))), e;
21912
21909
  }
21910
+ normalizeArrayControlFieldValue(e) {
21911
+ return e.reduce((t, n) => {
21912
+ if (yn(n))
21913
+ t.push(...this.normalizeArrayControlFieldValue(n));
21914
+ else if (Sr(n)) {
21915
+ const a = n.split(",").filter(Boolean);
21916
+ t.push(...a);
21917
+ } else
21918
+ n != null && t.push(n);
21919
+ return t;
21920
+ }, []);
21921
+ }
21913
21922
  // 判断是否是可以被填充
21914
21923
  checkFill(e, t, n) {
21915
21924
  if (e)
@@ -22929,11 +22938,11 @@ class _P {
22929
22938
  }), i || (n ? i = n : i = e), i;
22930
22939
  }
22931
22940
  toast(e, t) {
22932
- const n = Er(t) ? t : t?.type;
22941
+ const n = Sr(t) ? t : t?.type;
22933
22942
  let a;
22934
- Er(t) ? a = arguments[2] : a = t?.show;
22943
+ Sr(t) ? a = arguments[2] : a = t?.show;
22935
22944
  let i, o = 2e3;
22936
- t && !Er(t) && (i = t.onClose, o = t.duration ?? 2e3);
22945
+ t && !Sr(t) && (i = t.onClose, o = t.duration ?? 2e3);
22937
22946
  const s = i;
22938
22947
  if (i = async function() {
22939
22948
  const l = await s?.();
@@ -23300,7 +23309,7 @@ class _P {
23300
23309
  }
23301
23310
  async validateInstance(e, t) {
23302
23311
  return await oV(), !(await this.engine.emit("validateInstance", {
23303
- instance: Er(e) ? this.engine.getInstance(e, t) : e,
23312
+ instance: Sr(e) ? this.engine.getInstance(e, t) : e,
23304
23313
  rowIndex: t
23305
23314
  })).includes(!1);
23306
23315
  }
@@ -31389,7 +31398,7 @@ function Gt(r, e, t) {
31389
31398
  else
31390
31399
  be(r, e, t);
31391
31400
  }
31392
- function wr(r) {
31401
+ function Tr(r) {
31393
31402
  return !r || typeof r == "string" ? !1 : typeof r.length == "number";
31394
31403
  }
31395
31404
  function D(r, e, t) {
@@ -31627,7 +31636,7 @@ var Iv = 180 / Math.PI;
31627
31636
  function dl(r, e) {
31628
31637
  return r == null && (r = 0), e == null && (e = 0), [r, e];
31629
31638
  }
31630
- function Pr(r, e) {
31639
+ function Cr(r, e) {
31631
31640
  return r[0] = e[0], r[1] = e[1], r;
31632
31641
  }
31633
31642
  function fi(r) {
@@ -33556,9 +33565,9 @@ function zwe(r, e, t) {
33556
33565
  }
33557
33566
  }
33558
33567
  function Kf(r) {
33559
- if (wr(r)) {
33568
+ if (Tr(r)) {
33560
33569
  var e = r.length;
33561
- if (wr(r[0])) {
33570
+ if (Tr(r[0])) {
33562
33571
  for (var t = [], n = 0; n < e; n++)
33563
33572
  t.push(Sw.call(r[n]));
33564
33573
  return t;
@@ -33571,7 +33580,7 @@ function Rv(r) {
33571
33580
  return r[0] = Math.floor(r[0]) || 0, r[1] = Math.floor(r[1]) || 0, r[2] = Math.floor(r[2]) || 0, r[3] = r[3] == null ? 1 : r[3], "rgba(" + r.join(",") + ")";
33572
33581
  }
33573
33582
  function Uwe(r) {
33574
- return wr(r && r[0]) ? 2 : 1;
33583
+ return Tr(r && r[0]) ? 2 : 1;
33575
33584
  }
33576
33585
  var uh = 0, kv = 1, hG = 2, Of = 3, ww = 4, Tw = 5, yO = 6;
33577
33586
  function mO(r) {
@@ -33595,7 +33604,7 @@ var Hc = [0, 0, 0, 0], Hwe = function() {
33595
33604
  }, r.prototype.addKeyframe = function(e, t, n) {
33596
33605
  this._needsSort = !0;
33597
33606
  var a = this.keyframes, i = a.length, o = !1, s = yO, l = t;
33598
- if (wr(t)) {
33607
+ if (Tr(t)) {
33599
33608
  var u = Uwe(t);
33600
33609
  s = u, (u === 1 && !Fe(t[0]) || u === 2 && !Fe(t[0][0])) && (o = !0);
33601
33610
  } else if (Fe(t) && !lr(t))
@@ -34682,11 +34691,11 @@ function __(r, e, t) {
34682
34691
  r[n] = e[n];
34683
34692
  }
34684
34693
  function sTe(r) {
34685
- return wr(r[0]);
34694
+ return Tr(r[0]);
34686
34695
  }
34687
34696
  function lTe(r, e, t) {
34688
- if (wr(e[t]))
34689
- if (wr(r[t]) || (r[t] = []), Or(e[t])) {
34697
+ if (Tr(e[t]))
34698
+ if (Tr(r[t]) || (r[t] = []), Or(e[t])) {
34690
34699
  var n = e[t].length;
34691
34700
  r[t].length !== n && (r[t] = new e[t].constructor(n), __(r[t], e[t], n));
34692
34701
  } else {
@@ -34702,7 +34711,7 @@ function lTe(r, e, t) {
34702
34711
  r[t] = e[t];
34703
34712
  }
34704
34713
  function uTe(r, e) {
34705
- return r === e || wr(r) && wr(e) && cTe(r, e);
34714
+ return r === e || Tr(r) && Tr(e) && cTe(r, e);
34706
34715
  }
34707
34716
  function cTe(r, e) {
34708
34717
  var t = r.length;
@@ -34717,7 +34726,7 @@ function mG(r, e, t, n, a, i, o, s) {
34717
34726
  for (var l = Ne(n), u = a.duration, c = a.delay, f = a.additive, d = a.setToFinal, p = !ye(i), h = r.animators, v = [], g = 0; g < l.length; g++) {
34718
34727
  var y = l[g], m = n[y];
34719
34728
  if (m != null && t[y] != null && (p || i[y]))
34720
- if (ye(m) && !wr(m) && !vm(m)) {
34729
+ if (ye(m) && !Tr(m) && !vm(m)) {
34721
34730
  if (e) {
34722
34731
  s || (t[y] = m, r.updateDuringAnimation(e));
34723
34732
  continue;
@@ -36492,7 +36501,7 @@ var Li = Fa.CMD, Xo = Math.PI * 2, gxe = 1e-4;
36492
36501
  function yxe(r, e) {
36493
36502
  return Math.abs(r - e) < gxe;
36494
36503
  }
36495
- var Cr = [-1, -1, -1], bn = [-1, -1];
36504
+ var Ar = [-1, -1, -1], bn = [-1, -1];
36496
36505
  function mxe() {
36497
36506
  var r = bn[0];
36498
36507
  bn[0] = bn[1], bn[1] = r;
@@ -36500,11 +36509,11 @@ function mxe() {
36500
36509
  function _xe(r, e, t, n, a, i, o, s, l, u) {
36501
36510
  if (u > e && u > n && u > i && u > s || u < e && u < n && u < i && u < s)
36502
36511
  return 0;
36503
- var c = _g(e, n, i, s, u, Cr);
36512
+ var c = _g(e, n, i, s, u, Ar);
36504
36513
  if (c === 0)
36505
36514
  return 0;
36506
36515
  for (var f = 0, d = -1, p = void 0, h = void 0, v = 0; v < c; v++) {
36507
- var g = Cr[v], y = g === 0 || g === 1 ? 0.5 : 1, m = er(r, t, a, o, g);
36516
+ var g = Ar[v], y = g === 0 || g === 1 ? 0.5 : 1, m = er(r, t, a, o, g);
36508
36517
  m < l || (d < 0 && (d = rG(e, n, i, s, bn), bn[1] < bn[0] && d > 1 && mxe(), p = er(e, n, i, s, bn[0]), d > 1 && (h = er(e, n, i, s, bn[1]))), d === 2 ? g < bn[0] ? f += p < e ? y : -y : g < bn[1] ? f += h < p ? y : -y : f += s < h ? y : -y : g < bn[0] ? f += p < e ? y : -y : f += s < p ? y : -y);
36509
36518
  }
36510
36519
  return f;
@@ -36512,18 +36521,18 @@ function _xe(r, e, t, n, a, i, o, s, l, u) {
36512
36521
  function bxe(r, e, t, n, a, i, o, s) {
36513
36522
  if (s > e && s > n && s > i || s < e && s < n && s < i)
36514
36523
  return 0;
36515
- var l = xwe(e, n, i, s, Cr);
36524
+ var l = xwe(e, n, i, s, Ar);
36516
36525
  if (l === 0)
36517
36526
  return 0;
36518
36527
  var u = aG(e, n, i);
36519
36528
  if (u >= 0 && u <= 1) {
36520
36529
  for (var c = 0, f = or(e, n, i, u), d = 0; d < l; d++) {
36521
- var p = Cr[d] === 0 || Cr[d] === 1 ? 0.5 : 1, h = or(r, t, a, Cr[d]);
36522
- h < o || (Cr[d] < u ? c += f < e ? p : -p : c += i < f ? p : -p);
36530
+ var p = Ar[d] === 0 || Ar[d] === 1 ? 0.5 : 1, h = or(r, t, a, Ar[d]);
36531
+ h < o || (Ar[d] < u ? c += f < e ? p : -p : c += i < f ? p : -p);
36523
36532
  }
36524
36533
  return c;
36525
36534
  } else {
36526
- var p = Cr[0] === 0 || Cr[0] === 1 ? 0.5 : 1, h = or(r, t, a, Cr[0]);
36535
+ var p = Ar[0] === 0 || Ar[0] === 1 ? 0.5 : 1, h = or(r, t, a, Ar[0]);
36527
36536
  return h < o ? 0 : i < e ? p : -p;
36528
36537
  }
36529
36538
  }
@@ -36531,14 +36540,14 @@ function Sxe(r, e, t, n, a, i, o, s) {
36531
36540
  if (s -= e, s > t || s < -t)
36532
36541
  return 0;
36533
36542
  var l = Math.sqrt(t * t - s * s);
36534
- Cr[0] = -l, Cr[1] = l;
36543
+ Ar[0] = -l, Ar[1] = l;
36535
36544
  var u = Math.abs(n - a);
36536
36545
  if (u < 1e-4)
36537
36546
  return 0;
36538
36547
  if (u >= Xo - 1e-4) {
36539
36548
  n = 0, a = Xo;
36540
36549
  var c = i ? 1 : -1;
36541
- return o >= Cr[0] + r && o <= Cr[1] + r ? c : 0;
36550
+ return o >= Ar[0] + r && o <= Ar[1] + r ? c : 0;
36542
36551
  }
36543
36552
  if (n > a) {
36544
36553
  var f = n;
@@ -36546,7 +36555,7 @@ function Sxe(r, e, t, n, a, i, o, s) {
36546
36555
  }
36547
36556
  n < 0 && (n += Xo, a += Xo);
36548
36557
  for (var d = 0, p = 0; p < 2; p++) {
36549
- var h = Cr[p];
36558
+ var h = Ar[p];
36550
36559
  if (h + r > o) {
36551
36560
  var v = Math.atan2(s, h), c = i ? 1 : -1;
36552
36561
  v < 0 && (v = Xo + v), (v >= n && v <= a || v + Xo >= n && v + Xo <= a) && (v > Math.PI / 2 && v < Math.PI * 1.5 && (c = -c), d += c);
@@ -37348,7 +37357,7 @@ function Vw(r, e, t, n) {
37348
37357
  var p = n.getViewOfSeriesModel(u);
37349
37358
  if (p.group.traverse(function(g) {
37350
37359
  g.__highByOuter && c && e === "self" || DC(g);
37351
- }), wr(e))
37360
+ }), Tr(e))
37352
37361
  i(u.getData(), e);
37353
37362
  else if (ye(e))
37354
37363
  for (var h = Ne(e), v = 0; v < h.length; v++)
@@ -37939,7 +37948,7 @@ var yPe = function() {
37939
37948
  }, e;
37940
37949
  }(ke);
37941
37950
  gz.prototype.type = "polyline";
37942
- const Tr = gz;
37951
+ const xr = gz;
37943
37952
  var mPe = {}, _Pe = function() {
37944
37953
  function r() {
37945
37954
  this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
@@ -38358,7 +38367,7 @@ function qs(r, e) {
38358
38367
  return t;
38359
38368
  }
38360
38369
  function Kn(r, e, t) {
38361
- return e && !wr(e) && (e = si.getLocalTransform(e)), t && (e = ea([], e)), Mt([], r, e);
38370
+ return e && !Tr(e) && (e = si.getLocalTransform(e)), t && (e = ea([], e)), Mt([], r, e);
38362
38371
  }
38363
38372
  function km(r, e, t) {
38364
38373
  var n = e[4] === 0 || e[5] === 0 || e[0] === 0 ? 1 : xa(2 * e[4] / e[0]), a = e[4] === 0 || e[5] === 0 || e[2] === 0 ? 1 : xa(2 * e[4] / e[2]), i = [r === "left" ? -n : r === "right" ? n : 0, r === "top" ? -a : r === "bottom" ? a : 0];
@@ -38561,7 +38570,7 @@ ia("ellipse", RC);
38561
38570
  ia("sector", Rr);
38562
38571
  ia("ring", Mm);
38563
38572
  ia("polygon", kr);
38564
- ia("polyline", Tr);
38573
+ ia("polyline", xr);
38565
38574
  ia("rect", Le);
38566
38575
  ia("line", Xt);
38567
38576
  ia("bezierCurve", Lm);
@@ -38583,7 +38592,7 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38583
38592
  Path: ke,
38584
38593
  Point: _e,
38585
38594
  Polygon: kr,
38586
- Polyline: Tr,
38595
+ Polyline: xr,
38587
38596
  RadialGradient: Sz,
38588
38597
  Rect: Le,
38589
38598
  Ring: Mm,
@@ -41016,7 +41025,7 @@ function hU(r) {
41016
41025
  }
41017
41026
  } else if (ye(r)) {
41018
41027
  for (var i in r)
41019
- if (le(r, i) && wr(r[i])) {
41028
+ if (le(r, i) && Tr(r[i])) {
41020
41029
  e = oa;
41021
41030
  break;
41022
41031
  }
@@ -45605,7 +45614,7 @@ var tf = ye, Ni = Z, mIe = typeof Int32Array > "u" ? Array : Int32Array, _Ie = "
45605
45614
  }, r.prototype.initData = function(e, t, n) {
45606
45615
  var a = this, i;
45607
45616
  if (e instanceof rT && (i = e), !i) {
45608
- var o = this.dimensions, s = eA(e) || wr(e) ? new gU(e, o.length) : e;
45617
+ var o = this.dimensions, s = eA(e) || Tr(e) ? new gU(e, o.length) : e;
45609
45618
  i = new rT();
45610
45619
  var l = Ni(o, function(u) {
45611
45620
  return {
@@ -47866,7 +47875,7 @@ function $L(r, e) {
47866
47875
  }
47867
47876
  }
47868
47877
  }
47869
- var Kg = [], Ar = new _e();
47878
+ var Kg = [], Er = new _e();
47870
47879
  function j3(r, e) {
47871
47880
  if (e <= 180 && e > 0) {
47872
47881
  e = e / 180 * Math.PI, Un.fromArray(r[0]), ut.fromArray(r[1]), Et.fromArray(r[2]), _e.sub(Ea, Un, ut), _e.sub(wa, Et, ut);
@@ -47876,11 +47885,11 @@ function j3(r, e) {
47876
47885
  var a = Ea.dot(wa), i = Math.cos(e);
47877
47886
  if (i < a) {
47878
47887
  var o = Yg(ut.x, ut.y, Et.x, Et.y, Un.x, Un.y, Kg, !1);
47879
- Ar.fromArray(Kg), Ar.scaleAndAdd(wa, o / Math.tan(Math.PI - e));
47880
- var s = Et.x !== ut.x ? (Ar.x - ut.x) / (Et.x - ut.x) : (Ar.y - ut.y) / (Et.y - ut.y);
47888
+ Er.fromArray(Kg), Er.scaleAndAdd(wa, o / Math.tan(Math.PI - e));
47889
+ var s = Et.x !== ut.x ? (Er.x - ut.x) / (Et.x - ut.x) : (Er.y - ut.y) / (Et.y - ut.y);
47881
47890
  if (isNaN(s))
47882
47891
  return;
47883
- s < 0 ? _e.copy(Ar, ut) : s > 1 && _e.copy(Ar, Et), Ar.toArray(r[1]);
47892
+ s < 0 ? _e.copy(Er, ut) : s > 1 && _e.copy(Er, Et), Er.toArray(r[1]);
47884
47893
  }
47885
47894
  }
47886
47895
  }
@@ -47894,18 +47903,18 @@ function NDe(r, e, t) {
47894
47903
  var i = Ea.dot(e), o = Math.cos(t);
47895
47904
  if (i < o) {
47896
47905
  var s = Yg(ut.x, ut.y, Et.x, Et.y, Un.x, Un.y, Kg, !1);
47897
- Ar.fromArray(Kg);
47906
+ Er.fromArray(Kg);
47898
47907
  var l = Math.PI / 2, u = Math.acos(wa.dot(e)), c = l + u - t;
47899
47908
  if (c >= l)
47900
- _e.copy(Ar, Et);
47909
+ _e.copy(Er, Et);
47901
47910
  else {
47902
- Ar.scaleAndAdd(wa, s / Math.tan(Math.PI / 2 - c));
47903
- var f = Et.x !== ut.x ? (Ar.x - ut.x) / (Et.x - ut.x) : (Ar.y - ut.y) / (Et.y - ut.y);
47911
+ Er.scaleAndAdd(wa, s / Math.tan(Math.PI / 2 - c));
47912
+ var f = Et.x !== ut.x ? (Er.x - ut.x) / (Et.x - ut.x) : (Er.y - ut.y) / (Et.y - ut.y);
47904
47913
  if (isNaN(f))
47905
47914
  return;
47906
- f < 0 ? _e.copy(Ar, ut) : f > 1 && _e.copy(Ar, Et);
47915
+ f < 0 ? _e.copy(Er, ut) : f > 1 && _e.copy(Er, Et);
47907
47916
  }
47908
- Ar.toArray(r[1]);
47917
+ Er.toArray(r[1]);
47909
47918
  }
47910
47919
  }
47911
47920
  }
@@ -47948,7 +47957,7 @@ function yA(r, e, t) {
47948
47957
  h && (h.ignore = !0), n && sb(n, !0, u, c);
47949
47958
  continue;
47950
47959
  }
47951
- n || (n = new Tr(), r.setTextGuideLine(n), !f && (s || !o) && sb(n, !0, "normal", e.normal), r.stateProxy && (n.stateProxy = r.stateProxy)), sb(n, !1, u, c);
47960
+ n || (n = new xr(), r.setTextGuideLine(n), !f && (s || !o) && sb(n, !0, "normal", e.normal), r.stateProxy && (n.stateProxy = r.stateProxy)), sb(n, !1, u, c);
47952
47961
  }
47953
47962
  }
47954
47963
  if (n) {
@@ -48138,7 +48147,7 @@ function GDe(r, e) {
48138
48147
  labelLinePoints: qDe(n && n.shape.points)
48139
48148
  };
48140
48149
  }
48141
- var zL = ["align", "verticalAlign", "width", "height", "fontSize"], xr = new si(), ub = Re(), zDe = Re();
48150
+ var zL = ["align", "verticalAlign", "width", "height", "fontSize"], Pr = new si(), ub = Re(), zDe = Re();
48142
48151
  function Fh(r, e, t) {
48143
48152
  for (var n = 0; n < t.length; n++) {
48144
48153
  var a = t[n];
@@ -48155,7 +48164,7 @@ var $h = ["x", "y", "rotation"], UDe = (
48155
48164
  this._labelList = [], this._chartViewList = [];
48156
48165
  }, r.prototype._addLabel = function(e, t, n, a, i) {
48157
48166
  var o = a.style, s = a.__hostTarget, l = s.textConfig || {}, u = a.getComputedTransform(), c = a.getBoundingRect().plain();
48158
- we.applyTransform(c, c, u), u ? xr.setLocalTransform(u) : (xr.x = xr.y = xr.rotation = xr.originX = xr.originY = 0, xr.scaleX = xr.scaleY = 1), xr.rotation = rn(xr.rotation);
48167
+ we.applyTransform(c, c, u), u ? Pr.setLocalTransform(u) : (Pr.x = Pr.y = Pr.rotation = Pr.originX = Pr.originY = 0, Pr.scaleX = Pr.scaleY = 1), Pr.rotation = rn(Pr.rotation);
48159
48168
  var f = a.__hostTarget, d;
48160
48169
  if (f) {
48161
48170
  d = f.getBoundingRect().plain();
@@ -48181,11 +48190,11 @@ var $h = ["x", "y", "rotation"], UDe = (
48181
48190
  defaultAttr: {
48182
48191
  ignore: a.ignore,
48183
48192
  labelGuideIgnore: h && h.ignore,
48184
- x: xr.x,
48185
- y: xr.y,
48186
- scaleX: xr.scaleX,
48187
- scaleY: xr.scaleY,
48188
- rotation: xr.rotation,
48193
+ x: Pr.x,
48194
+ y: Pr.y,
48195
+ scaleX: Pr.scaleX,
48196
+ scaleY: Pr.scaleY,
48197
+ rotation: Pr.rotation,
48189
48198
  style: {
48190
48199
  x: o.x,
48191
48200
  y: o.y,
@@ -51953,7 +51962,7 @@ var IMe = (
51953
51962
  i.removeTextGuideLine();
51954
51963
  else {
51955
51964
  var p = this.getTextGuideLine();
51956
- p || (p = new Tr(), this.setTextGuideLine(p)), yA(this, mA(o), {
51965
+ p || (p = new xr(), this.setTextGuideLine(p)), yA(this, mA(o), {
51957
51966
  stroke: u,
51958
51967
  opacity: Ir(s.get(["lineStyle", "opacity"]), c, 1)
51959
51968
  });
@@ -54313,7 +54322,7 @@ var ZLe = (
54313
54322
  s.diff(l).add(function(d) {
54314
54323
  var p = s.getItemLayout(d);
54315
54324
  if (p) {
54316
- var h = new kr(), v = new Tr(), g = {
54325
+ var h = new kr(), v = new xr(), g = {
54317
54326
  shape: {
54318
54327
  points: p
54319
54328
  }
@@ -54603,7 +54612,7 @@ var nRe = (
54603
54612
  A.push(x[I][w]);
54604
54613
  if (A[0] ? A.push(A[0].slice()) : process.env.NODE_ENV !== "production" && console.error("Can't draw value axis " + w), c) {
54605
54614
  var T = m(g, h, w);
54606
- g[T].push(new Tr({
54615
+ g[T].push(new xr({
54607
54616
  shape: {
54608
54617
  points: A
54609
54618
  }
@@ -55196,7 +55205,7 @@ var Tb, ay = {
55196
55205
  polyline: function(e, t) {
55197
55206
  var n = e.getAttribute("points"), a;
55198
55207
  n && (a = XR(n));
55199
- var i = new Tr({
55208
+ var i = new xr({
55200
55209
  shape: {
55201
55210
  points: a || []
55202
55211
  },
@@ -55751,7 +55760,7 @@ var zRe = (
55751
55760
  } else {
55752
55761
  var C = P.points;
55753
55762
  u && (C = ak(C, u, !0)), D(C, function(A) {
55754
- S.push(new Tr(d(A)));
55763
+ S.push(new xr(d(A)));
55755
55764
  });
55756
55765
  }
55757
55766
  });
@@ -56300,7 +56309,7 @@ var ik = Mt, ZRe = (
56300
56309
  return t.applyTransform(this.transform), t;
56301
56310
  }, e.prototype.dataToPoint = function(t, n, a) {
56302
56311
  var i = n ? this._rawTransform : this.transform;
56303
- return a = a || [], i ? ik(a, t, i) : Pr(a, t);
56312
+ return a = a || [], i ? ik(a, t, i) : Cr(a, t);
56304
56313
  }, e.prototype.pointToData = function(t, n, a) {
56305
56314
  a = a || [];
56306
56315
  var i = this.invTransform;
@@ -59206,7 +59215,7 @@ function R2e(r, e, t) {
59206
59215
  }
59207
59216
  for (var I = [], _ = 0; _ < m; _++) {
59208
59217
  var x = n[_];
59209
- x.fixed || (Ps(I, x.p, x.pp), Xl(x.p, x.p, I, p), Pr(x.pp, x.p));
59218
+ x.fixed || (Ps(I, x.p, x.pp), Xl(x.p, x.p, I, p), Cr(x.pp, x.p));
59210
59219
  }
59211
59220
  p = p * 0.992;
59212
59221
  var E = p < 0.01;
@@ -59252,13 +59261,13 @@ function k2e(r) {
59252
59261
  });
59253
59262
  m.beforeStep(function(_, b) {
59254
59263
  for (var S = 0, w = _.length; S < w; S++)
59255
- _[S].fixed && Pr(_[S].p, a.getNodeByIndex(S).getLayout());
59264
+ _[S].fixed && Cr(_[S].p, a.getNodeByIndex(S).getLayout());
59256
59265
  }), m.afterStep(function(_, b, S) {
59257
59266
  for (var w = 0, T = _.length; w < T; w++)
59258
59267
  _[w].fixed || a.getNodeByIndex(w).setLayout(_[w].p), n[i.getId(w)] = _[w].p;
59259
59268
  for (var w = 0, T = b.length; w < T; w++) {
59260
59269
  var P = b[w], x = a.getEdgeByIndex(w), C = P.n1.p, A = P.n2.p, I = x.getLayout();
59261
- I = I ? I.slice() : [], I[0] = I[0] || [], I[1] = I[1] || [], Pr(I[0], C), Pr(I[1], A), +P.curveness && (I[2] = [(C[0] + A[0]) / 2 - (C[1] - A[1]) * P.curveness, (C[1] + A[1]) / 2 - (A[0] - C[0]) * P.curveness]), x.setLayout(I);
59270
+ I = I ? I.slice() : [], I[0] = I[0] || [], I[1] = I[1] || [], Cr(I[0], C), Cr(I[1], A), +P.curveness && (I[2] = [(C[0] + A[0]) / 2 - (C[1] - A[1]) * P.curveness, (C[1] + A[1]) / 2 - (A[0] - C[0]) * P.curveness]), x.setLayout(I);
59262
59271
  }
59263
59272
  }), e.forceLayout = m, e.preservedPoints = n, m.step();
59264
59273
  } else
@@ -59644,7 +59653,7 @@ function $b(r, e) {
59644
59653
  u.__original || (u.__original = [fi(u[0]), fi(u[1])], u[2] && u.__original.push(fi(u[2])));
59645
59654
  var d = u.__original;
59646
59655
  if (u[2] != null) {
59647
- if (Pr(a[0], d[0]), Pr(a[1], d[2]), Pr(a[2], d[1]), c && c !== "none") {
59656
+ if (Cr(a[0], d[0]), Cr(a[1], d[2]), Cr(a[2], d[1]), c && c !== "none") {
59648
59657
  var p = Gf(s.node1), h = Rk(a, d[0], p * e);
59649
59658
  n(a[0][0], a[1][0], a[2][0], h, t), a[0][0] = t[3], a[1][0] = t[4], n(a[0][1], a[1][1], a[2][1], h, t), a[0][1] = t[3], a[1][1] = t[4];
59650
59659
  }
@@ -59652,9 +59661,9 @@ function $b(r, e) {
59652
59661
  var p = Gf(s.node2), h = Rk(a, d[1], p * e);
59653
59662
  n(a[0][0], a[1][0], a[2][0], h, t), a[1][0] = t[1], a[2][0] = t[2], n(a[0][1], a[1][1], a[2][1], h, t), a[1][1] = t[1], a[2][1] = t[2];
59654
59663
  }
59655
- Pr(u[0], a[0]), Pr(u[1], a[2]), Pr(u[2], a[1]);
59664
+ Cr(u[0], a[0]), Cr(u[1], a[2]), Cr(u[2], a[1]);
59656
59665
  } else {
59657
- if (Pr(i[0], d[0]), Pr(i[1], d[1]), Ps(o, i[1], i[0]), vc(o, o), c && c !== "none") {
59666
+ if (Cr(i[0], d[0]), Cr(i[1], d[1]), Ps(o, i[1], i[0]), vc(o, o), c && c !== "none") {
59658
59667
  var p = Gf(s.node1);
59659
59668
  iw(i[0], i[0], o, p * e);
59660
59669
  }
@@ -59662,7 +59671,7 @@ function $b(r, e) {
59662
59671
  var p = Gf(s.node2);
59663
59672
  iw(i[1], i[1], o, -p * e);
59664
59673
  }
59665
- Pr(u[0], i[0]), Pr(u[1], i[1]);
59674
+ Cr(u[0], i[0]), Cr(u[1], i[1]);
59666
59675
  }
59667
59676
  });
59668
59677
  }
@@ -61127,7 +61136,7 @@ var gNe = ["itemStyle", "opacity"], yNe = (
61127
61136
  function(r) {
61128
61137
  G(e, r);
61129
61138
  function e(t, n) {
61130
- var a = r.call(this) || this, i = a, o = new Tr(), s = new ze();
61139
+ var a = r.call(this) || this, i = a, o = new xr(), s = new ze();
61131
61140
  return i.setTextContent(s), a.setTextGuideLine(o), a.updateData(t, n, !0), a;
61132
61141
  }
61133
61142
  return e.prototype.updateData = function(t, n, a) {
@@ -61459,7 +61468,7 @@ function OH(r, e, t, n) {
61459
61468
  return a;
61460
61469
  }
61461
61470
  function Fk(r, e, t, n, a) {
61462
- var i = OH(r, t, n, a), o = new Tr({
61471
+ var i = OH(r, t, n, a), o = new xr({
61463
61472
  shape: {
61464
61473
  points: i
61465
61474
  },
@@ -62359,7 +62368,7 @@ var e0 = {
62359
62368
  polygon: {
62360
62369
  createCover: function(r, e) {
62361
62370
  var t = new ge();
62362
- return t.add(new Tr({
62371
+ return t.add(new xr({
62363
62372
  name: "main",
62364
62373
  style: XA(e),
62365
62374
  silent: !0
@@ -64063,7 +64072,7 @@ var GVe = (
64063
64072
  return i._createPolyline(t, n, a), i;
64064
64073
  }
64065
64074
  return e.prototype._createPolyline = function(t, n, a) {
64066
- var i = t.getItemLayout(n), o = new Tr({
64075
+ var i = t.getItemLayout(n), o = new xr({
64067
64076
  shape: {
64068
64077
  points: i
64069
64078
  }
@@ -66296,7 +66305,7 @@ function v$e(r, e, t, n) {
66296
66305
  }
66297
66306
  }
66298
66307
  function g$e(r, e) {
66299
- return wr(r) ? r !== e : r != null && isFinite(r);
66308
+ return Tr(r) ? r !== e : r != null && isFinite(r);
66300
66309
  }
66301
66310
  var g4;
66302
66311
  process.env.NODE_ENV !== "production" && (g4 = function(r, e) {
@@ -68717,7 +68726,7 @@ var eGe = (
68717
68726
  var i = [t[0].slice(), t[t.length - 1].slice()], o = a === "horizontal" ? 0 : 1;
68718
68727
  return i[0][o] = i[0][o] - n / 2, i[1][o] = i[1][o] + n / 2, i;
68719
68728
  }, e.prototype._drawSplitline = function(t, n, a) {
68720
- var i = new Tr({
68729
+ var i = new xr({
68721
68730
  z2: 20,
68722
68731
  shape: {
68723
68732
  points: t
@@ -75393,7 +75402,7 @@ var bf = Le, z3e = 1, T1 = 30, U3e = 7, Sf = "horizontal", nB = "vertical", H3e
75393
75402
  style: E.getModel("areaStyle").getAreaStyle(),
75394
75403
  silent: !0,
75395
75404
  z2: -20
75396
- }), M = new Tr({
75405
+ }), M = new xr({
75397
75406
  shape: {
75398
75407
  points: c
75399
75408
  },
@@ -77322,7 +77331,7 @@ function G5e(r, e) {
77322
77331
  return h.valueGetterParam = n, h.valueParser = s, h.getValue = e.getValue, h.subCondList = a, h;
77323
77332
  }
77324
77333
  function dW(r) {
77325
- return ye(r) && !wr(r);
77334
+ return ye(r) && !Tr(r);
77326
77335
  }
77327
77336
  var z5e = (
77328
77337
  /** @class */
@@ -78831,7 +78840,7 @@ function VHe(r, e, t, n, a) {
78831
78840
  break;
78832
78841
  }
78833
78842
  var ee = Vt().serializeAxisBreakIdentifier(O.breakOption);
78834
- if (C.add(new Tr({
78843
+ if (C.add(new xr({
78835
78844
  anid: "break_a_" + ee,
78836
78845
  shape: {
78837
78846
  points: q
@@ -78839,7 +78848,7 @@ function VHe(r, e, t, n, a) {
78839
78848
  style: L,
78840
78849
  z: d
78841
78850
  })), O.gapReal !== 0) {
78842
- C.add(new Tr({
78851
+ C.add(new xr({
78843
78852
  anid: "break_b_" + ee,
78844
78853
  shape: {
78845
78854
  // Not reverse to keep the dash stable when dragging resizing.
@@ -81193,7 +81202,7 @@ class xW {
81193
81202
  ],
81194
81203
  l?.props
81195
81204
  );
81196
- u.displayBoList, "attributes" in u && u.attributes !== null && u.attributes?.length && u.attributes[0].value, Array.isArray(h) ? h.map((m) => m.trim()).join(",") : Er(h) && h.trim();
81205
+ u.displayBoList, "attributes" in u && u.attributes !== null && u.attributes?.length && u.attributes[0].value, Array.isArray(h) ? h.map((m) => m.trim()).join(",") : Sr(h) && h.trim();
81197
81206
  let g = Jn(
81198
81207
  l?.props?.datasourceBind?.assignDepartment
81199
81208
  );
@@ -81281,7 +81290,7 @@ class xW {
81281
81290
  const { instance: n, options: a = {} } = e, { params: i = void 0, isNewRequset: o } = a;
81282
81291
  if (e.rowIndex === -1)
81283
81292
  return [];
81284
- const s = Er(e.value) ? e.value?.trim() : e.value, l = n.id, u = n.props?.datasourceBind;
81293
+ const s = Sr(e.value) ? e.value?.trim() : e.value, l = n.id, u = n.props?.datasourceBind;
81285
81294
  if (!u)
81286
81295
  return [];
81287
81296
  const c = u.filters ?? [];
@@ -81305,7 +81314,7 @@ class xW {
81305
81314
  let g = u.displayBoList;
81306
81315
  "attributes" in u && u.attributes !== null && u.attributes?.length && (g = u.attributes[0].value);
81307
81316
  let y = "";
81308
- Array.isArray(s) ? y = s.map((P) => P?.trim())?.join(",") : Er(s) ? y = s?.trim() : y = s;
81317
+ Array.isArray(s) ? y = s.map((P) => P?.trim())?.join(",") : Sr(s) ? y = s?.trim() : y = s;
81309
81318
  let m = [];
81310
81319
  const _ = u?.keywordMapping;
81311
81320
  !Au(_) && _ !== "" ? m = [
@@ -81391,7 +81400,7 @@ class xW {
81391
81400
  return;
81392
81401
  if (e.rowIndex === -1)
81393
81402
  return [];
81394
- const s = Er(e.value) ? e.value?.trim() : e.value;
81403
+ const s = Sr(e.value) ? e.value?.trim() : e.value;
81395
81404
  if ((_u(s) || s == null) && (this.engine.assertInstance(n, V.EMPLOYEE2) || this.engine.assertInstance(n, V.EMPLOYEE)))
81396
81405
  return;
81397
81406
  const l = n.id, u = n.props?.datasourceBind;
@@ -81418,7 +81427,7 @@ class xW {
81418
81427
  let g = u.displayBoList;
81419
81428
  "attributes" in u && u.attributes !== null && u.attributes?.length && (g = u.attributes[0].value);
81420
81429
  let y = "";
81421
- Array.isArray(s) ? y = s.map((w) => w?.trim()).join(",") : Er(s) ? y = s?.trim() : y = s;
81430
+ Array.isArray(s) ? y = s.map((w) => w?.trim()).join(",") : Sr(s) ? y = s?.trim() : y = s;
81422
81431
  let m = [];
81423
81432
  const _ = u?.keywordMapping;
81424
81433
  !Au(_) && _ !== "" ? m = [
@@ -85327,7 +85336,7 @@ class ej {
85327
85336
  this.engine = e, this.initInstancesIsHide(), this.watchInstanceIsHideChange();
85328
85337
  }
85329
85338
  handlerCacheInstanceIdDefaultIsHide(e) {
85330
- (Er(e) ? this.getInstances(e) : [e]).map((n) => {
85339
+ (Sr(e) ? this.getInstances(e) : [e]).map((n) => {
85331
85340
  if (!this.cacheDefaultIsHide.has(n.id))
85332
85341
  if (this.engine.inList(n.id) !== void 0) {
85333
85342
  const i = this.engine.getInstance(n.id, -1);
@@ -85723,7 +85732,7 @@ function mWe(r, e) {
85723
85732
  }
85724
85733
  function Px(r, e, t) {
85725
85734
  if (r !== void 0) {
85726
- if (Er(t) && Er(r[e]) && t !== "") {
85735
+ if (Sr(t) && Sr(r[e]) && t !== "") {
85727
85736
  r[e] = t;
85728
85737
  return;
85729
85738
  }
@@ -85935,11 +85944,22 @@ class wWe {
85935
85944
  });
85936
85945
  setTimeout(() => {
85937
85946
  const h = document.createElement("div");
85938
- h.setAttribute("id", this.getId(t, n)), h.setAttribute("class", "ai-conversation-modal"), document.body.appendChild(h), p.mount(h), l || (d.el._instance.exposed.initSetInfo(o), setTimeout(() => {
85947
+ h.setAttribute("id", this.getId(t, n)), h.setAttribute("class", "ai-conversation-modal"), document.body.appendChild(h), p.mount(h), this.setAiConversationInfo(d, o), l || setTimeout(() => {
85939
85948
  d.el.visible = !0;
85940
- }, 50));
85949
+ }, 50);
85941
85950
  }, 10);
85942
85951
  }
85952
+ setAiConversationInfo(e, t) {
85953
+ const n = () => {
85954
+ const a = e.el, i = a?._instance?.exposed?.initSetInfo;
85955
+ if (i) {
85956
+ i(t);
85957
+ return;
85958
+ }
85959
+ a && (a.info = t);
85960
+ };
85961
+ n(), setTimeout(n, 0);
85962
+ }
85943
85963
  receiveAiMessage(e, t, n) {
85944
85964
  const a = e.detail[0], i = a?.type, o = JSON.parse(a?.data || "{}");
85945
85965
  switch (i) {
@@ -68,6 +68,7 @@ export declare class AiConversationModalPlugin implements Plugin {
68
68
  apply(engine: Engine): void;
69
69
  init(): void;
70
70
  show(payload: Payload): void;
71
+ setAiConversationInfo(aiNode: VNode, aiSetting: Record<string, any>): void;
71
72
  receiveAiMessage(e: any, payload: Payload, vnode: VNode): void;
72
73
  checkToFill(payload: Payload, data: any): void;
73
74
  getPrompt(payload: Payload): string;
@@ -17,6 +17,7 @@ export declare class MultistageFillingPlugin implements Plugin {
17
17
  private formatFieldsValue;
18
18
  private updateStore;
19
19
  private convertValueBeforeUpdate;
20
+ private normalizeArrayControlFieldValue;
20
21
  private checkFill;
21
22
  }
22
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "7.0.0-beta.6",
3
+ "version": "7.0.0-beta.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",