@byteluck-fe/runtime-engine 1.1.5 → 1.2.1

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.
@@ -1,14 +1,14 @@
1
1
  import * as Mr from "vue";
2
- import { ref as Z, provide as pa, inject as ei, unref as M, onUnmounted as xr, onBeforeUnmount as ti, shallowRef as ai, toRaw as qa, computed as G, isRef as ri, watch as ke, nextTick as Oe, getCurrentInstance as Br, defineAsyncComponent as Oa, h as Gt, createVNode as Fe, reactive as Fr, shallowReactive as si } from "vue";
3
- import * as ii from "ant-design-vue";
4
- import ni, { Modal as oi, message as $t } from "ant-design-vue";
5
- import { useRoute as Nr, useRouter as li } from "vue-router";
2
+ import { ref as Z, provide as pa, inject as Ys, unref as M, onUnmounted as xr, onBeforeUnmount as Zs, shallowRef as ei, toRaw as qa, computed as G, isRef as ti, watch as ke, nextTick as Oe, getCurrentInstance as Br, defineAsyncComponent as Oa, h as Gt, createVNode as Le, reactive as Fr, shallowReactive as ai } from "vue";
3
+ import * as ri from "ant-design-vue";
4
+ import si, { Modal as ii, message as $t } from "ant-design-vue";
5
+ import { useRoute as Lr, useRouter as ni } from "vue-router";
6
6
  import * as jt from "@byteluck-fe/global-shared";
7
- import { getCustomRequestHeader as ui, getFetch as pe, CacheManager as pi, path as di, client as K, isArray as it, isString as se, isDef as ci, cacheManager as tt, formatDisplayData as yi, isObject as Lr, isEmpty as hi } from "@byteluck-fe/global-shared";
8
- import fi, { get as Ne, debounce as vi, isEqual as Ur, cloneDeep as mi, isArray as le, mapValues as Pi, keyBy as gi } from "lodash";
7
+ import { getCustomRequestHeader as oi, getFetch as de, CacheManager as li, path as ui, client as K, isArray as it, isString as ie, isDef as pi, cacheManager as tt, formatDisplayData as di, isObject as Nr, isEmpty as ci } from "@byteluck-fe/global-shared";
8
+ import yi, { get as Ne, debounce as hi, isEqual as Ur, cloneDeep as fi, isArray as ue, mapValues as vi, keyBy as mi } from "lodash";
9
9
  import Gr from "moment";
10
10
  import * as wa from "@byteluck-fe/model-driven-core-all";
11
- import { loadRemoteControl as Si, loadRemoteControls as bi, loadScriptFromFetch as Ti, loadScriptFromTag as qi, nativeFetch as $r, debounce as Oi, CONTROL_TYPE as g, OptionSetting as wi, DataBind as Le, ObjectDataBind as jr, PAGE_STATUS as Qe, JSONCopy as te, FieldTypes as he, decamelizeKeys as j, FieldFilterConditions as Hr, CONTROL_BASE_TYPE as da, isPlainObject as zr, MultistageFillingItem as Ai, DisplayBoListItem as _i, TitleConfigEnum as fe, camelizeKeys as Je, DepartmentType as Ii, DataSourceParamItem as Ci, DataSourceOrderItem as Vi, logerror as Ei, EventLogic as Di, baseControls as ki, formControls as Ri, layoutControls as Mi, listControls as xi, columnControls as Bi, searchControls as Fi, registerCustomControls as Aa, registerByteluckControls as Ni, VersionBuilder as Li, upgradeCustomControlSchema as Ui } from "@byteluck-fe/model-driven-core-all";
11
+ import { loadRemoteControl as Pi, loadRemoteControls as gi, loadScriptFromFetch as Si, loadScriptFromTag as bi, nativeFetch as $r, debounce as Ti, CONTROL_TYPE as g, OptionSetting as qi, DataBind as Oi, ObjectDataBind as wi, PAGE_STATUS as Qe, isDataBind as xe, JSONCopy as te, FieldTypes as se, decamelizeKeys as j, CONTROL_BASE_TYPE as da, isPlainObject as jr, MultistageFillingItem as Ai, DisplayBoListItem as _i, TitleConfigEnum as fe, camelizeKeys as Je, DepartmentType as Ii, DataSourceParamItem as Ci, DataSourceOrderItem as Vi, logerror as Ei, EventLogic as Di, baseControls as ki, formControls as Ri, layoutControls as Mi, listControls as xi, columnControls as Bi, searchControls as Fi, registerCustomControls as Aa, registerByteluckControls as Li, VersionBuilder as Ni, upgradeCustomControlSchema as Ui } from "@byteluck-fe/model-driven-core-all";
12
12
  import * as _a from "@byteluck-fe/model-driven-engine";
13
13
  import { loopDataViewControl as ca, parseModule as Ia, Engine as at, ES6ModulePlugin as Gi, LifecycleEventPlugin as $i, ControlsEventPlugin as ji, CalcPlugin as Hi, StylePlugin as zi } from "@byteluck-fe/model-driven-engine";
14
14
  import { defineInstance as Ki, createBaseFields as Wi, createFormBaseFields as Qi } from "@byteluck-fe/model-driven-settings";
@@ -33,7 +33,7 @@ function Yi(s, e) {
33
33
  }
34
34
  var ya = /* @__PURE__ */ ((s) => (s.SAVE = "save", s.CANCEL = "cancel", s.SAVE_AS = "save_as", s.PRINT = "print", s.CHANGE_LOG = "change_log", s.DRAFT = "draft", s))(ya || {});
35
35
  function Zi() {
36
- const { name: s } = Nr(), { resolve: e } = li(), t = Z([]);
36
+ const { name: s } = Lr(), { resolve: e } = ni(), t = Z([]);
37
37
  return {
38
38
  printUrlList: t,
39
39
  setPrintUrlList: (r) => {
@@ -42,20 +42,20 @@ function Zi() {
42
42
  const n = (r.data?.content?.button_groups ?? []).filter((q) => q.type === ya.PRINT)[0], o = r?.uId || r.data?.process_param.biz_key;
43
43
  if (!n?.props.value || !o)
44
44
  return;
45
- const u = r.data.process_param || {}, { notice_id: l, process_instance_id: p, task_instance_id: d } = u, c = n.props.formKey && !n.props.formKeyList?.length ? [
45
+ const l = r.data.process_param || {}, { notice_id: u, process_instance_id: p, task_instance_id: d } = l, c = n.props.formKey && !n.props.formKeyList?.length ? [
46
46
  {
47
47
  formKey: n.props.formKey,
48
48
  formKeyName: "系统模版"
49
49
  }
50
50
  ] : n.props.formKeyList ?? [];
51
- Object.keys(u).length ? c?.forEach(
51
+ Object.keys(l).length ? c?.forEach(
52
52
  (q) => {
53
53
  const y = {
54
54
  formKey: q.formKey,
55
55
  printUrl: e({
56
56
  path: `/print/${r.data.app_id}/${q.formKey}`,
57
57
  query: {
58
- notice_id: l,
58
+ notice_id: u,
59
59
  process_instance_id: p,
60
60
  task_instance_id: d,
61
61
  // 产品:不勾选优先访问流程表单时,调用processViewRender接口
@@ -10222,7 +10222,7 @@ class an {
10222
10222
  url: "/social/hasPermission",
10223
10223
  method: "POST",
10224
10224
  params: {},
10225
- headers: ui({
10225
+ headers: oi({
10226
10226
  auth: t.auth,
10227
10227
  href: a
10228
10228
  }),
@@ -10230,13 +10230,13 @@ class an {
10230
10230
  });
10231
10231
  }
10232
10232
  }
10233
- function Kr(s = 300) {
10233
+ function Hr(s = 300) {
10234
10234
  return new Promise((e) => {
10235
10235
  setTimeout(e, s);
10236
10236
  });
10237
10237
  }
10238
10238
  const zt = navigator.userAgent.toLowerCase();
10239
- function Wr() {
10239
+ function zr() {
10240
10240
  const s = (a) => a.test(zt), [e = "unknow", t = "unknow"] = (/* @__PURE__ */ new Map([
10241
10241
  [
10242
10242
  s(/applewebkit/g),
@@ -10261,8 +10261,8 @@ function Wr() {
10261
10261
  ])).get(!0) || ["unknow", "unknow"];
10262
10262
  return t;
10263
10263
  }
10264
- Wr();
10265
- Wr();
10264
+ zr();
10265
+ zr();
10266
10266
  zt.includes("dingtalk") && zt.includes("mobile safari");
10267
10267
  const rn = {
10268
10268
  oneOf(s, e) {
@@ -10323,27 +10323,27 @@ function sn(s) {
10323
10323
  return Ki(s);
10324
10324
  }
10325
10325
  function nn(s) {
10326
- return pe(s);
10326
+ return de(s);
10327
10327
  }
10328
10328
  const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10329
10329
  __proto__: null,
10330
- CacheManager: pi,
10330
+ CacheManager: li,
10331
10331
  createBaseFields: Wi,
10332
10332
  createFormBaseFields: Qi,
10333
10333
  defineInstance: sn,
10334
10334
  getHttp: nn,
10335
- loadRemoteControl: Si,
10336
- loadRemoteControls: bi,
10337
- loadScriptFromFetch: Ti,
10338
- loadScriptFromTag: qi,
10335
+ loadRemoteControl: Pi,
10336
+ loadRemoteControls: gi,
10337
+ loadScriptFromFetch: Si,
10338
+ loadScriptFromTag: bi,
10339
10339
  nativeFetch: $r,
10340
- path: di
10340
+ path: ui
10341
10341
  }, Symbol.toStringTag, { value: "Module" })), ln = "context";
10342
10342
  function un(s) {
10343
10343
  pa(ln, s);
10344
10344
  }
10345
10345
  function Ae() {
10346
- return ei("context");
10346
+ return Ys("context");
10347
10347
  }
10348
10348
  function nt(s, e) {
10349
10349
  const t = Ae(), a = M(t);
@@ -10351,22 +10351,22 @@ function nt(s, e) {
10351
10351
  a?.off(s, e);
10352
10352
  }));
10353
10353
  }
10354
- function Qr(s) {
10354
+ function Kr(s) {
10355
10355
  var e;
10356
10356
  const t = Ae();
10357
- (e = M(t)) == null || e.on("schema-change", s), ti(() => {
10357
+ (e = M(t)) == null || e.on("schema-change", s), Zs(() => {
10358
10358
  var a;
10359
10359
  (a = M(t)) == null || a.off("schema-change", s);
10360
10360
  });
10361
10361
  }
10362
- function Jr(s) {
10363
- const e = ai(s.props);
10364
- return Qr((t) => {
10362
+ function Wr(s) {
10363
+ const e = ei(s.props);
10364
+ return Kr((t) => {
10365
10365
  qa(t.instance) === qa(s) && (e.value = { ...t.instance.props });
10366
10366
  }), e;
10367
10367
  }
10368
- function Xr() {
10369
- const s = Z(), e = Oi(() => {
10368
+ function Qr() {
10369
+ const s = Z(), e = Ti(() => {
10370
10370
  var t, a;
10371
10371
  (a = (t = s.value) == null ? void 0 : t.validateField) == null || a.call(t);
10372
10372
  });
@@ -10375,17 +10375,17 @@ function Xr() {
10375
10375
  formItemValidate: e
10376
10376
  };
10377
10377
  }
10378
- function Yr(s, e, t) {
10378
+ function Jr(s, e, t) {
10379
10379
  const a = Ae(), r = G(() => {
10380
10380
  var f;
10381
10381
  return (f = M(a)) == null ? void 0 : f.getAction().actionUtils;
10382
- }), i = Jr(s), { formItemRef: n, formItemValidate: o } = Xr();
10382
+ }), i = Wr(s), { formItemRef: n, formItemValidate: o } = Qr();
10383
10383
  nt("validateInstance", (f) => {
10384
10384
  f.instance.id === s.id && e === f.rowIndex && o();
10385
- }), ri(t) && ke(t, (f, v) => {
10385
+ }), ti(t) && ke(t, (f, v) => {
10386
10386
  !(a != null && a.value.isMounted) || Array.isArray(f) && Array.isArray(v) && f.length === v.length || o();
10387
10387
  });
10388
- const u = G(() => i.value.defaultState === "readonly"), l = G(() => i.value.placeholder), p = G(() => s?.pageStatus), d = G(() => [1, 3, 5].includes(p.value)), c = G(() => p.value === 2), q = G(() => p.value === 2 && !u.value), y = G(() => p.value == 5), b = G(() => e !== void 0), T = (f) => {
10388
+ const l = G(() => i.value.defaultState === "readonly"), u = G(() => i.value.placeholder), p = G(() => s?.pageStatus), d = G(() => [1, 3, 5].includes(p.value)), c = G(() => p.value === 2), q = G(() => p.value === 2 && !l.value), y = G(() => p.value == 5), b = G(() => e !== void 0), T = (f) => {
10389
10389
  var v;
10390
10390
  const O = (v = M(a)) == null ? void 0 : v.getState(s.id, e);
10391
10391
  Ur(O, f) || a == null || a.value.setState(s.id, f, e);
@@ -10393,11 +10393,11 @@ function Yr(s, e, t) {
10393
10393
  var f, v, O, E, h;
10394
10394
  const S = (f = M(a)) == null ? void 0 : f.getState("DISPLAY"), _ = (v = M(s).props) != null ? v : {};
10395
10395
  if (_.dataBind !== void 0)
10396
- if (_.dataBind instanceof Le) {
10396
+ if (_.dataBind instanceof Oi) {
10397
10397
  const { dataCode: P, fieldCode: w } = _.dataBind;
10398
10398
  e === void 0 ? (O = S[P]) != null && O[w] && (S[P][w] = void 0) : (h = (E = S[P]) == null ? void 0 : E[e]) != null && h[w] && (S[P][e][w] = void 0);
10399
10399
  } else
10400
- _.dataBind instanceof jr && (e === void 0 ? Object.keys(_.dataBind).map((P) => {
10400
+ _.dataBind instanceof wi && (e === void 0 ? Object.keys(_.dataBind).map((P) => {
10401
10401
  var w;
10402
10402
  const I = _.dataBind[P], { dataCode: C, fieldCode: R } = I;
10403
10403
  (w = S[C]) != null && w[R] && (S[C][R] = void 0);
@@ -10412,8 +10412,8 @@ function Yr(s, e, t) {
10412
10412
  return {
10413
10413
  context: a,
10414
10414
  utils: r,
10415
- isDisabled: u,
10416
- placeholder: l,
10415
+ isDisabled: l,
10416
+ placeholder: u,
10417
10417
  updateValue: T,
10418
10418
  clearDisplay: m,
10419
10419
  pageStatus: p,
@@ -10428,11 +10428,11 @@ function Yr(s, e, t) {
10428
10428
  props: i
10429
10429
  };
10430
10430
  }
10431
- function Zr(s) {
10431
+ function Xr(s) {
10432
10432
  const e = M(Ae());
10433
10433
  e != null && e.isMounted ? s() : nt("engine-mounted", s);
10434
10434
  }
10435
- function es(s, e) {
10435
+ function Yr(s, e) {
10436
10436
  nt("forceUpdate", (t) => {
10437
10437
  t.instance === M(s) && e(t);
10438
10438
  });
@@ -10483,10 +10483,10 @@ function dn(s) {
10483
10483
  }
10484
10484
  var Kt = /* @__PURE__ */ ((s) => (s.DRAFT = "DRAFT", s.COMPLETE = "COMPLETE", s.TERMINATION = "TERMINATION", s.RUNNING = "RUNNING", s))(Kt || {});
10485
10485
  function cn(s) {
10486
- const e = Z([]), { updateValue: t, isEditable: a, props: r, isSubtable: i, context: n } = Yr(
10486
+ const e = Z([]), { updateValue: t, isEditable: a, props: r, isSubtable: i, context: n } = Jr(
10487
10487
  s.instance,
10488
10488
  s.rowIndex
10489
- ), o = Z(!1), u = Z(), l = G(
10489
+ ), o = Z(!1), l = Z(), u = G(
10490
10490
  () => s.instance.type === "select-multiple" || s.instance.type === "checkbox"
10491
10491
  ), p = G(
10492
10492
  () => s.instance.type === "select-multiple" || s.instance.type === "select"
@@ -10507,7 +10507,7 @@ function cn(s) {
10507
10507
  ));
10508
10508
  }
10509
10509
  }
10510
- const c = Z(!1), q = vi(async (h) => {
10510
+ const c = Z(!1), q = hi(async (h) => {
10511
10511
  d.value || ((s.instance.type === "select" || s.instance.type === "select-multiple") && !h && !r.value.defaultShowOptions ? e.value = [] : (c.value = !0, await n?.value.emit("search", {
10512
10512
  instance: s.instance,
10513
10513
  value: h,
@@ -10534,7 +10534,7 @@ function cn(s) {
10534
10534
  rowIndex: s.rowIndex,
10535
10535
  options: {
10536
10536
  params: {
10537
- queryType: "IN",
10537
+ queryType: "LIKE",
10538
10538
  queryMode: "VALUE"
10539
10539
  }
10540
10540
  }
@@ -10581,7 +10581,7 @@ function cn(s) {
10581
10581
  I.includes(w[C]) || (f.value.splice(
10582
10582
  C,
10583
10583
  0,
10584
- new wi({ label: w[C], value: w[C] })
10584
+ new qi({ label: w[C], value: w[C] })
10585
10585
  ), C < f.value.length - 1 && C++), C++;
10586
10586
  }
10587
10587
  },
@@ -10594,28 +10594,28 @@ function cn(s) {
10594
10594
  if (K.isPc() && (s.instance.type === "radio" || s.instance.type === "checkbox") && !s.rowIndex && s.rowIndex !== 0)
10595
10595
  return;
10596
10596
  s.value && b(
10597
- l.value ? (S = s.value) == null ? void 0 : S.join(",") : s.value
10597
+ u.value ? (S = s.value) == null ? void 0 : S.join(",") : s.value
10598
10598
  );
10599
10599
  }
10600
- E(), u.value = M(f).map((_) => _.label);
10600
+ E(), l.value = M(f).map((_) => _.label);
10601
10601
  }
10602
10602
  );
10603
10603
  const v = () => {
10604
10604
  var h;
10605
10605
  p.value && b(
10606
- l.value ? (h = s.value) == null ? void 0 : h.join(",") : s.value,
10606
+ u.value ? (h = s.value) == null ? void 0 : h.join(",") : s.value,
10607
10607
  !0
10608
10608
  );
10609
10609
  };
10610
- es(s.instance, v), ke(
10610
+ Yr(s.instance, v), ke(
10611
10611
  f,
10612
10612
  () => {
10613
- u.value = M(f).map((h) => h.label);
10613
+ l.value = M(f).map((h) => h.label);
10614
10614
  },
10615
10615
  { deep: !0, immediate: !0 }
10616
- ), Zr(() => {
10616
+ ), Xr(() => {
10617
10617
  var h, S;
10618
- (Array.isArray(s.value) ? s.value.length : s.value && s.instance.type !== "amount") && ((!a.value || s.rowIndex !== void 0) && (Array.isArray(s.display) ? s.display.length : s.display) ? s.instance.props.optionConfig !== "custom" && (u.value = Array.isArray(s.display) ? s.display : [s.display]) : b(
10618
+ (Array.isArray(s.value) ? s.value.length : s.value && s.instance.type !== "amount") && ((!a.value || s.rowIndex !== void 0) && (Array.isArray(s.display) ? s.display.length : s.display) ? s.instance.props.optionConfig !== "custom" && (l.value = Array.isArray(s.display) ? s.display : [s.display]) : b(
10619
10619
  Array.isArray(s.value) ? s.value.join(",") : s.value
10620
10620
  )), a.value && ((S = (h = s.instance) == null ? void 0 : h.props) != null && S.defaultShowOptions) && ((Array.isArray(s.value) ? s.value.length : s.value) && p.value ? b(
10621
10621
  Array.isArray(s.value) ? s.value.join(",") : s.value
@@ -10641,14 +10641,14 @@ function cn(s) {
10641
10641
  value: s.value
10642
10642
  }
10643
10643
  ];
10644
- u.value = Array.isArray(s.display) ? s.display : [s.display];
10644
+ l.value = Array.isArray(s.display) ? s.display : [s.display];
10645
10645
  }
10646
10646
  };
10647
10647
  return i.value && E(), {
10648
10648
  options: e,
10649
10649
  searchHandle: q,
10650
10650
  searchLoading: c,
10651
- readerValue: u,
10651
+ readerValue: l,
10652
10652
  readOnlyOptions: f,
10653
10653
  filterOption: d,
10654
10654
  getDisplay: b,
@@ -10658,36 +10658,36 @@ function cn(s) {
10658
10658
  };
10659
10659
  }
10660
10660
  function yn(s) {
10661
- return pe(s);
10661
+ return de(s);
10662
10662
  }
10663
10663
  const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10664
10664
  __proto__: null,
10665
10665
  PAGE_STATUS: Qe,
10666
10666
  getHttp: yn,
10667
10667
  onEngineEvent: nt,
10668
- useBaseForm: Yr,
10668
+ useBaseForm: Jr,
10669
10669
  useEngine: Ae,
10670
- useEngineMounted: Zr,
10670
+ useEngineMounted: Xr,
10671
10671
  useEngineProvider: un,
10672
- useForceUpdate: es,
10672
+ useForceUpdate: Yr,
10673
10673
  useFormEvents: pn,
10674
- useFormItemValidate: Xr,
10674
+ useFormItemValidate: Qr,
10675
10675
  useI18n: dn,
10676
- useInstanceProps: Jr,
10677
- useInstanceSchemaChange: Qr,
10676
+ useInstanceProps: Wr,
10677
+ useInstanceSchemaChange: Kr,
10678
10678
  useOptions: cn
10679
10679
  }, Symbol.toStringTag, { value: "Module" }));
10680
10680
  function fn(s) {
10681
10681
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
10682
10682
  }
10683
- var ha = { exports: {} }, ts = function(e, t) {
10683
+ var ha = { exports: {} }, Zr = function(e, t) {
10684
10684
  return function() {
10685
10685
  for (var r = new Array(arguments.length), i = 0; i < r.length; i++)
10686
10686
  r[i] = arguments[i];
10687
10687
  return e.apply(t, r);
10688
10688
  };
10689
- }, vn = ts, _e = Object.prototype.toString;
10690
- function as(s) {
10689
+ }, vn = Zr, _e = Object.prototype.toString;
10690
+ function es(s) {
10691
10691
  return _e.call(s) === "[object Array]";
10692
10692
  }
10693
10693
  function Wt(s) {
@@ -10712,7 +10712,7 @@ function bn(s) {
10712
10712
  function Tn(s) {
10713
10713
  return typeof s == "number";
10714
10714
  }
10715
- function rs(s) {
10715
+ function ts(s) {
10716
10716
  return s !== null && typeof s == "object";
10717
10717
  }
10718
10718
  function qn(s) {
@@ -10724,11 +10724,11 @@ function On(s) {
10724
10724
  function wn(s) {
10725
10725
  return _e.call(s) === "[object Blob]";
10726
10726
  }
10727
- function ss(s) {
10727
+ function as(s) {
10728
10728
  return _e.call(s) === "[object Function]";
10729
10729
  }
10730
10730
  function An(s) {
10731
- return rs(s) && ss(s.pipe);
10731
+ return ts(s) && as(s.pipe);
10732
10732
  }
10733
10733
  function _n(s) {
10734
10734
  return typeof URLSearchParams < "u" && s instanceof URLSearchParams;
@@ -10741,17 +10741,17 @@ function Cn() {
10741
10741
  }
10742
10742
  function ot(s, e) {
10743
10743
  if (!(s === null || typeof s > "u"))
10744
- if (typeof s != "object" && (s = [s]), as(s))
10744
+ if (typeof s != "object" && (s = [s]), es(s))
10745
10745
  for (var t = 0, a = s.length; t < a; t++)
10746
10746
  e.call(null, s[t], t, s);
10747
10747
  else
10748
10748
  for (var r in s)
10749
10749
  Object.prototype.hasOwnProperty.call(s, r) && e.call(null, s[r], r, s);
10750
10750
  }
10751
- function is() {
10751
+ function rs() {
10752
10752
  var s = {};
10753
10753
  function e(r, i) {
10754
- typeof s[i] == "object" && typeof r == "object" ? s[i] = is(s[i], r) : s[i] = r;
10754
+ typeof s[i] == "object" && typeof r == "object" ? s[i] = rs(s[i], r) : s[i] = r;
10755
10755
  }
10756
10756
  for (var t = 0, a = arguments.length; t < a; t++)
10757
10757
  ot(arguments[t], e);
@@ -10772,24 +10772,24 @@ function Vn(s, e, t) {
10772
10772
  }), s;
10773
10773
  }
10774
10774
  var ee = {
10775
- isArray: as,
10775
+ isArray: es,
10776
10776
  isArrayBuffer: Pn,
10777
10777
  isBuffer: mn,
10778
10778
  isFormData: gn,
10779
10779
  isArrayBufferView: Sn,
10780
10780
  isString: bn,
10781
10781
  isNumber: Tn,
10782
- isObject: rs,
10782
+ isObject: ts,
10783
10783
  isUndefined: Wt,
10784
10784
  isDate: qn,
10785
10785
  isFile: On,
10786
10786
  isBlob: wn,
10787
- isFunction: ss,
10787
+ isFunction: as,
10788
10788
  isStream: An,
10789
10789
  isURLSearchParams: _n,
10790
10790
  isStandardBrowserEnv: Cn,
10791
10791
  forEach: ot,
10792
- merge: is,
10792
+ merge: rs,
10793
10793
  deepMerge: Qt,
10794
10794
  extend: Vn,
10795
10795
  trim: In
@@ -10797,7 +10797,7 @@ var ee = {
10797
10797
  function Va(s) {
10798
10798
  return encodeURIComponent(s).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
10799
10799
  }
10800
- var ns = function(e, t, a) {
10800
+ var ss = function(e, t, a) {
10801
10801
  if (!t)
10802
10802
  return e;
10803
10803
  var r;
@@ -10807,9 +10807,9 @@ var ns = function(e, t, a) {
10807
10807
  r = t.toString();
10808
10808
  else {
10809
10809
  var i = [];
10810
- ge.forEach(t, function(u, l) {
10811
- u === null || typeof u > "u" || (ge.isArray(u) ? l = l + "[]" : u = [u], ge.forEach(u, function(d) {
10812
- ge.isDate(d) ? d = d.toISOString() : ge.isObject(d) && (d = JSON.stringify(d)), i.push(Va(l) + "=" + Va(d));
10810
+ ge.forEach(t, function(l, u) {
10811
+ l === null || typeof l > "u" || (ge.isArray(l) ? u = u + "[]" : l = [l], ge.forEach(l, function(d) {
10812
+ ge.isDate(d) ? d = d.toISOString() : ge.isObject(d) && (d = JSON.stringify(d)), i.push(Va(u) + "=" + Va(d));
10813
10813
  }));
10814
10814
  }), r = i.join("&");
10815
10815
  }
@@ -10841,7 +10841,7 @@ var Dn = lt, kn = ee, Rn = function(e, t, a) {
10841
10841
  e = i(e, t);
10842
10842
  }), e;
10843
10843
  }, ct, Ea;
10844
- function os() {
10844
+ function is() {
10845
10845
  return Ea || (Ea = 1, ct = function(e) {
10846
10846
  return !!(e && e.__CANCEL__);
10847
10847
  }), ct;
@@ -10874,7 +10874,7 @@ function Bn() {
10874
10874
  }), yt;
10875
10875
  }
10876
10876
  var ht, ka;
10877
- function ls() {
10877
+ function ns() {
10878
10878
  if (ka)
10879
10879
  return ht;
10880
10880
  ka = 1;
@@ -10889,7 +10889,7 @@ function Fn() {
10889
10889
  if (Ra)
10890
10890
  return ft;
10891
10891
  Ra = 1;
10892
- var s = ls();
10892
+ var s = ns();
10893
10893
  return ft = function(t, a, r) {
10894
10894
  var i = r.config.validateStatus;
10895
10895
  !i || i(r.status) ? t(r) : a(s(
@@ -10902,13 +10902,13 @@ function Fn() {
10902
10902
  }, ft;
10903
10903
  }
10904
10904
  var vt, Ma;
10905
- function Nn() {
10905
+ function Ln() {
10906
10906
  return Ma || (Ma = 1, vt = function(e) {
10907
10907
  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e);
10908
10908
  }), vt;
10909
10909
  }
10910
10910
  var mt, xa;
10911
- function Ln() {
10911
+ function Nn() {
10912
10912
  return xa || (xa = 1, mt = function(e, t) {
10913
10913
  return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
10914
10914
  }), mt;
@@ -10918,7 +10918,7 @@ function Un() {
10918
10918
  if (Ba)
10919
10919
  return Pt;
10920
10920
  Ba = 1;
10921
- var s = Nn(), e = Ln();
10921
+ var s = Ln(), e = Nn();
10922
10922
  return Pt = function(a, r) {
10923
10923
  return a && !s(r) ? e(a, r) : r;
10924
10924
  }, Pt;
@@ -10950,8 +10950,8 @@ function Gn() {
10950
10950
  return gt = function(a) {
10951
10951
  var r = {}, i, n, o;
10952
10952
  return a && s.forEach(a.split(`
10953
- `), function(l) {
10954
- if (o = l.indexOf(":"), i = s.trim(l.substr(0, o)).toLowerCase(), n = s.trim(l.substr(o + 1)), i) {
10953
+ `), function(u) {
10954
+ if (o = u.indexOf(":"), i = s.trim(u.substr(0, o)).toLowerCase(), n = s.trim(u.substr(o + 1)), i) {
10955
10955
  if (r[i] && e.indexOf(i) >= 0)
10956
10956
  return;
10957
10957
  i === "set-cookie" ? r[i] = (r[i] ? r[i] : []).concat([n]) : r[i] = r[i] ? r[i] + ", " + n : n;
@@ -10959,11 +10959,11 @@ function Gn() {
10959
10959
  }), r;
10960
10960
  }, gt;
10961
10961
  }
10962
- var St, Na;
10962
+ var St, La;
10963
10963
  function $n() {
10964
- if (Na)
10964
+ if (La)
10965
10965
  return St;
10966
- Na = 1;
10966
+ La = 1;
10967
10967
  var s = ee;
10968
10968
  return St = s.isStandardBrowserEnv() ? (
10969
10969
  // Standard browser envs have full support of the APIs needed to test
@@ -10984,8 +10984,8 @@ function $n() {
10984
10984
  };
10985
10985
  }
10986
10986
  return r = i(window.location.href), function(o) {
10987
- var u = s.isString(o) ? i(o) : o;
10988
- return u.protocol === r.protocol && u.host === r.host;
10987
+ var l = s.isString(o) ? i(o) : o;
10988
+ return l.protocol === r.protocol && l.host === r.host;
10989
10989
  };
10990
10990
  }()
10991
10991
  ) : (
@@ -10997,19 +10997,19 @@ function $n() {
10997
10997
  }()
10998
10998
  ), St;
10999
10999
  }
11000
- var bt, La;
11000
+ var bt, Na;
11001
11001
  function jn() {
11002
- if (La)
11002
+ if (Na)
11003
11003
  return bt;
11004
- La = 1;
11004
+ Na = 1;
11005
11005
  var s = ee;
11006
11006
  return bt = s.isStandardBrowserEnv() ? (
11007
11007
  // Standard browser envs support document.cookie
11008
11008
  function() {
11009
11009
  return {
11010
- write: function(a, r, i, n, o, u) {
11011
- var l = [];
11012
- l.push(a + "=" + encodeURIComponent(r)), s.isNumber(i) && l.push("expires=" + new Date(i).toGMTString()), s.isString(n) && l.push("path=" + n), s.isString(o) && l.push("domain=" + o), u === !0 && l.push("secure"), document.cookie = l.join("; ");
11010
+ write: function(a, r, i, n, o, l) {
11011
+ var u = [];
11012
+ u.push(a + "=" + encodeURIComponent(r)), s.isNumber(i) && u.push("expires=" + new Date(i).toGMTString()), s.isString(n) && u.push("path=" + n), s.isString(o) && u.push("domain=" + o), l === !0 && u.push("secure"), document.cookie = u.join("; ");
11013
11013
  },
11014
11014
  read: function(a) {
11015
11015
  var r = document.cookie.match(new RegExp("(^|;\\s*)(" + a + ")=([^;]*)"));
@@ -11040,55 +11040,55 @@ function Ga() {
11040
11040
  if (Ua)
11041
11041
  return Tt;
11042
11042
  Ua = 1;
11043
- var s = ee, e = Fn(), t = ns, a = Un(), r = Gn(), i = $n(), n = ls();
11044
- return Tt = function(u) {
11043
+ var s = ee, e = Fn(), t = ss, a = Un(), r = Gn(), i = $n(), n = ns();
11044
+ return Tt = function(l) {
11045
11045
  return new Promise(function(p, d) {
11046
- var c = u.data, q = u.headers;
11046
+ var c = l.data, q = l.headers;
11047
11047
  s.isFormData(c) && delete q["Content-Type"];
11048
11048
  var y = new XMLHttpRequest();
11049
- if (u.auth) {
11050
- var b = u.auth.username || "", T = u.auth.password || "";
11049
+ if (l.auth) {
11050
+ var b = l.auth.username || "", T = l.auth.password || "";
11051
11051
  q.Authorization = "Basic " + btoa(b + ":" + T);
11052
11052
  }
11053
- var m = a(u.baseURL, u.url);
11054
- if (y.open(u.method.toUpperCase(), t(m, u.params, u.paramsSerializer), !0), y.timeout = u.timeout, y.onreadystatechange = function() {
11053
+ var m = a(l.baseURL, l.url);
11054
+ if (y.open(l.method.toUpperCase(), t(m, l.params, l.paramsSerializer), !0), y.timeout = l.timeout, y.onreadystatechange = function() {
11055
11055
  if (!(!y || y.readyState !== 4) && !(y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0))) {
11056
- var O = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, E = !u.responseType || u.responseType === "text" ? y.responseText : y.response, h = {
11056
+ var O = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, E = !l.responseType || l.responseType === "text" ? y.responseText : y.response, h = {
11057
11057
  data: E,
11058
11058
  status: y.status,
11059
11059
  statusText: y.statusText,
11060
11060
  headers: O,
11061
- config: u,
11061
+ config: l,
11062
11062
  request: y
11063
11063
  };
11064
11064
  e(p, d, h), y = null;
11065
11065
  }
11066
11066
  }, y.onabort = function() {
11067
- y && (d(n("Request aborted", u, "ECONNABORTED", y)), y = null);
11067
+ y && (d(n("Request aborted", l, "ECONNABORTED", y)), y = null);
11068
11068
  }, y.onerror = function() {
11069
- d(n("Network Error", u, null, y)), y = null;
11069
+ d(n("Network Error", l, null, y)), y = null;
11070
11070
  }, y.ontimeout = function() {
11071
- var O = "timeout of " + u.timeout + "ms exceeded";
11072
- u.timeoutErrorMessage && (O = u.timeoutErrorMessage), d(n(
11071
+ var O = "timeout of " + l.timeout + "ms exceeded";
11072
+ l.timeoutErrorMessage && (O = l.timeoutErrorMessage), d(n(
11073
11073
  O,
11074
- u,
11074
+ l,
11075
11075
  "ECONNABORTED",
11076
11076
  y
11077
11077
  )), y = null;
11078
11078
  }, s.isStandardBrowserEnv()) {
11079
- var A = jn(), f = (u.withCredentials || i(m)) && u.xsrfCookieName ? A.read(u.xsrfCookieName) : void 0;
11080
- f && (q[u.xsrfHeaderName] = f);
11079
+ var A = jn(), f = (l.withCredentials || i(m)) && l.xsrfCookieName ? A.read(l.xsrfCookieName) : void 0;
11080
+ f && (q[l.xsrfHeaderName] = f);
11081
11081
  }
11082
11082
  if ("setRequestHeader" in y && s.forEach(q, function(O, E) {
11083
11083
  typeof c > "u" && E.toLowerCase() === "content-type" ? delete q[E] : y.setRequestHeader(E, O);
11084
- }), s.isUndefined(u.withCredentials) || (y.withCredentials = !!u.withCredentials), u.responseType)
11084
+ }), s.isUndefined(l.withCredentials) || (y.withCredentials = !!l.withCredentials), l.responseType)
11085
11085
  try {
11086
- y.responseType = u.responseType;
11086
+ y.responseType = l.responseType;
11087
11087
  } catch (v) {
11088
- if (u.responseType !== "json")
11088
+ if (l.responseType !== "json")
11089
11089
  throw v;
11090
11090
  }
11091
- typeof u.onDownloadProgress == "function" && y.addEventListener("progress", u.onDownloadProgress), typeof u.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", u.onUploadProgress), u.cancelToken && u.cancelToken.promise.then(function(O) {
11091
+ typeof l.onDownloadProgress == "function" && y.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", l.onUploadProgress), l.cancelToken && l.cancelToken.promise.then(function(O) {
11092
11092
  y && (y.abort(), d(O), y = null);
11093
11093
  }), c === void 0 && (c = null), y.send(c);
11094
11094
  });
@@ -11140,7 +11140,7 @@ J.forEach(["delete", "get", "head"], function(e) {
11140
11140
  J.forEach(["post", "put", "patch"], function(e) {
11141
11141
  ut.headers[e] = J.merge(Hn);
11142
11142
  });
11143
- var us = ut, Ha = ee, qt = Rn, Kn = os(), Wn = us;
11143
+ var os = ut, Ha = ee, qt = Rn, Kn = is(), Wn = os;
11144
11144
  function Ot(s) {
11145
11145
  s.cancelToken && s.cancelToken.throwIfRequested();
11146
11146
  }
@@ -11173,7 +11173,7 @@ var Qn = function(e) {
11173
11173
  e.transformResponse
11174
11174
  ))), Promise.reject(r);
11175
11175
  });
11176
- }, ce = ee, ps = function(e, t) {
11176
+ }, ce = ee, ls = function(e, t) {
11177
11177
  t = t || {};
11178
11178
  var a = {}, r = ["url", "method", "params", "data"], i = ["headers", "auth", "proxy"], n = [
11179
11179
  "baseURL",
@@ -11204,13 +11204,13 @@ var Qn = function(e) {
11204
11204
  }), ce.forEach(n, function(p) {
11205
11205
  typeof t[p] < "u" ? a[p] = t[p] : typeof e[p] < "u" && (a[p] = e[p]);
11206
11206
  });
11207
- var o = r.concat(i).concat(n), u = Object.keys(t).filter(function(p) {
11207
+ var o = r.concat(i).concat(n), l = Object.keys(t).filter(function(p) {
11208
11208
  return o.indexOf(p) === -1;
11209
11209
  });
11210
- return ce.forEach(u, function(p) {
11210
+ return ce.forEach(l, function(p) {
11211
11211
  typeof t[p] < "u" ? a[p] = t[p] : typeof e[p] < "u" && (a[p] = e[p]);
11212
11212
  }), a;
11213
- }, rt = ee, Jn = ns, za = Dn, Xn = Qn, ds = ps;
11213
+ }, rt = ee, Jn = ss, za = Dn, Xn = Qn, us = ls;
11214
11214
  function Ue(s) {
11215
11215
  this.defaults = s, this.interceptors = {
11216
11216
  request: new za(),
@@ -11218,7 +11218,7 @@ function Ue(s) {
11218
11218
  };
11219
11219
  }
11220
11220
  Ue.prototype.request = function(e) {
11221
- typeof e == "string" ? (e = arguments[1] || {}, e.url = arguments[0]) : e = e || {}, e = ds(this.defaults, e), e.method ? e.method = e.method.toLowerCase() : this.defaults.method ? e.method = this.defaults.method.toLowerCase() : e.method = "get";
11221
+ typeof e == "string" ? (e = arguments[1] || {}, e.url = arguments[0]) : e = e || {}, e = us(this.defaults, e), e.method ? e.method = e.method.toLowerCase() : this.defaults.method ? e.method = this.defaults.method.toLowerCase() : e.method = "get";
11222
11222
  var t = [Xn, void 0], a = Promise.resolve(e);
11223
11223
  for (this.interceptors.request.forEach(function(i) {
11224
11224
  t.unshift(i.fulfilled, i.rejected);
@@ -11229,7 +11229,7 @@ Ue.prototype.request = function(e) {
11229
11229
  return a;
11230
11230
  };
11231
11231
  Ue.prototype.getUri = function(e) {
11232
- return e = ds(this.defaults, e), Jn(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
11232
+ return e = us(this.defaults, e), Jn(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
11233
11233
  };
11234
11234
  rt.forEach(["delete", "get", "head", "options"], function(e) {
11235
11235
  Ue.prototype[e] = function(t, a) {
@@ -11249,7 +11249,7 @@ rt.forEach(["post", "put", "patch"], function(e) {
11249
11249
  };
11250
11250
  });
11251
11251
  var Yn = Ue, wt, Ka;
11252
- function cs() {
11252
+ function ps() {
11253
11253
  if (Ka)
11254
11254
  return wt;
11255
11255
  Ka = 1;
@@ -11265,7 +11265,7 @@ function Zn() {
11265
11265
  if (Wa)
11266
11266
  return At;
11267
11267
  Wa = 1;
11268
- var s = cs();
11268
+ var s = ps();
11269
11269
  function e(t) {
11270
11270
  if (typeof t != "function")
11271
11271
  throw new TypeError("executor must be a function.");
@@ -11299,25 +11299,25 @@ function eo() {
11299
11299
  };
11300
11300
  }), _t;
11301
11301
  }
11302
- var Ja = ee, to = ts, Xe = Yn, ao = ps, ro = us;
11303
- function ys(s) {
11302
+ var Ja = ee, to = Zr, Xe = Yn, ao = ls, ro = os;
11303
+ function ds(s) {
11304
11304
  var e = new Xe(s), t = to(Xe.prototype.request, e);
11305
11305
  return Ja.extend(t, Xe.prototype, e), Ja.extend(t, e), t;
11306
11306
  }
11307
- var ne = ys(ro);
11308
- ne.Axios = Xe;
11309
- ne.create = function(e) {
11310
- return ys(ao(ne.defaults, e));
11307
+ var oe = ds(ro);
11308
+ oe.Axios = Xe;
11309
+ oe.create = function(e) {
11310
+ return ds(ao(oe.defaults, e));
11311
11311
  };
11312
- ne.Cancel = cs();
11313
- ne.CancelToken = Zn();
11314
- ne.isCancel = os();
11315
- ne.all = function(e) {
11312
+ oe.Cancel = ps();
11313
+ oe.CancelToken = Zn();
11314
+ oe.isCancel = is();
11315
+ oe.all = function(e) {
11316
11316
  return Promise.all(e);
11317
11317
  };
11318
- ne.spread = eo();
11319
- ha.exports = ne;
11320
- ha.exports.default = ne;
11318
+ oe.spread = eo();
11319
+ ha.exports = oe;
11320
+ ha.exports.default = oe;
11321
11321
  var so = ha.exports, io = so;
11322
11322
  const no = /* @__PURE__ */ fn(io);
11323
11323
  function qe(s) {
@@ -11329,7 +11329,7 @@ function qe(s) {
11329
11329
  "@byteluck-fe/model-driven-engine": _a,
11330
11330
  "@byteluck/model-driven-engine": _a,
11331
11331
  moment: Gr,
11332
- lodash: fi,
11332
+ lodash: yi,
11333
11333
  axios: no,
11334
11334
  decimal: we,
11335
11335
  "@byteluck-fe/custom-control-sdk/main": on,
@@ -11337,7 +11337,7 @@ function qe(s) {
11337
11337
  "@byteluck-fe/global-shared": jt,
11338
11338
  "@byteluck/global-shared": jt
11339
11339
  },
11340
- s ? { "ant-design-vue": ni, vant: {} } : { "ant-design-vue": {}, vant: Ji }
11340
+ s ? { "ant-design-vue": si, vant: {} } : { "ant-design-vue": {}, vant: Ji }
11341
11341
  );
11342
11342
  }
11343
11343
  const Xa = [
@@ -11420,15 +11420,15 @@ Ya.concat(
11420
11420
  Ya.map((s) => s.toLocaleUpperCase())
11421
11421
  );
11422
11422
  let Se = null;
11423
- async function hs() {
11424
- Se || (Se = document.createElement("input"), Se.style.display = "none", document.body.appendChild(Se)), document.activeElement?.blur?.(), window.tinyMCE?.activeEditor && window.tinyMCE?.activeEditor.save?.(), document.body.click(), Se.focus(), Se.blur(), await Kr();
11423
+ async function cs() {
11424
+ Se || (Se = document.createElement("input"), Se.style.display = "none", document.body.appendChild(Se)), document.activeElement?.blur?.(), window.tinyMCE?.activeEditor && window.tinyMCE?.activeEditor.save?.(), document.body.click(), Se.focus(), Se.blur(), await Hr();
11425
11425
  }
11426
11426
  var z = /* @__PURE__ */ ((s) => (s[s.NONE = 0] = "NONE", s[s.HIDDEN = 1] = "HIDDEN", s[s.READONLY = 2] = "READONLY", s[s.EDIT = 6] = "EDIT", s[s.READONLY_NOT_REQUIRED = 8] = "READONLY_NOT_REQUIRED", s[s.EDIT_NOT_REQUIRED = 24] = "EDIT_NOT_REQUIRED", s[s.EDIT_REQUIRE = 56] = "EDIT_REQUIRE", s))(z || {});
11427
11427
  function Za(s, e) {
11428
11428
  return e?.length ? e.find((t) => t.ctrl_id === s)?.ctrl_behavior !== z.HIDDEN : !0;
11429
11429
  }
11430
11430
  function er(s, e, t, a) {
11431
- return s.assertInstance(t, g.SCORE) && e === t.props.defaultValue ? !0 : s.assertInstance(t, g.CALC) ? a === "unit" || a === "result" && e === 0 : s.assertInstance(t, g.AMOUNT) && a === "currency" ? !0 : it(e) || se(e) ? e.length === 0 : !1;
11431
+ return s.assertInstance(t, g.SCORE) && e === t.props.defaultValue ? !0 : s.assertInstance(t, g.CALC) ? a === "unit" || a === "result" && e === 0 : s.assertInstance(t, g.AMOUNT) && a === "currency" ? !0 : it(e) || ie(e) ? e.length === 0 : !1;
11432
11432
  }
11433
11433
  function oo(s) {
11434
11434
  return s.city === "" && s.district === "" && s.province === "";
@@ -11436,24 +11436,24 @@ function oo(s) {
11436
11436
  function je(s, e) {
11437
11437
  let t = s;
11438
11438
  switch (e) {
11439
- case he.ADDRESS:
11439
+ case se.ADDRESS:
11440
11440
  t = s === void 0 || oo(s) ? "" : j(s);
11441
11441
  break;
11442
- case he.BIGINT:
11442
+ case se.BIGINT:
11443
11443
  t = s || s === 0 || s === "0" ? Number(s) : null;
11444
11444
  break;
11445
11445
  }
11446
11446
  return t;
11447
11447
  }
11448
- function fs(s, e, t, a) {
11449
- const r = qs(s), i = [], n = [];
11448
+ function ys(s, e, t, a) {
11449
+ const r = bs(s), i = [], n = [];
11450
11450
  Object.keys(s.getControlIdMapping()).map((d) => {
11451
11451
  const c = s.getControlIdMapping()[d], q = s.getInstance(d);
11452
11452
  if (c.children === void 0) {
11453
11453
  const y = s.getState(e);
11454
11454
  if (!Za(d, a))
11455
11455
  return;
11456
- if (c.dataBind instanceof Le) {
11456
+ if (xe(c.dataBind)) {
11457
11457
  const T = c.dataBind.fieldCode, m = c.dataBind.fieldType, A = {
11458
11458
  code: T,
11459
11459
  field_type: "",
@@ -11504,7 +11504,7 @@ function fs(s, e, t, a) {
11504
11504
  Object.keys(c.children ?? {}).map((h) => {
11505
11505
  const S = s.getInstance(h), _ = f[h], P = c.children[h].dataBind;
11506
11506
  if (Za(h, a))
11507
- if (P instanceof Le) {
11507
+ if (xe(P)) {
11508
11508
  const I = P.fieldCode, C = P.fieldType || S.fieldType, R = {
11509
11509
  code: I,
11510
11510
  value: je(
@@ -11514,7 +11514,7 @@ function fs(s, e, t, a) {
11514
11514
  };
11515
11515
  er(s, R.value, S) && E.push(I), O.row_data.push(R);
11516
11516
  } else
11517
- P instanceof jr && Object.keys(P).map((I) => {
11517
+ xe(P) || Object.keys(P).map((I) => {
11518
11518
  const C = P[I].fieldCode, R = P[I].fieldType || S.fieldType, V = {
11519
11519
  code: C,
11520
11520
  value: je(
@@ -11539,17 +11539,17 @@ function fs(s, e, t, a) {
11539
11539
  code: r,
11540
11540
  value: t?.uId
11541
11541
  });
11542
- const u = s?.externalParams?.url;
11543
- u?.dataOrigin === "sublist" && i.find(
11544
- (c) => c.code === u?.relation_key
11542
+ const l = s?.externalParams?.url;
11543
+ l?.dataOrigin === "sublist" && i.find(
11544
+ (c) => c.code === l?.relation_key
11545
11545
  ) === void 0 && i.push({
11546
- code: u?.relation_key,
11547
- value: u?.relation_uid
11546
+ code: l?.relation_key,
11547
+ value: l?.relation_uid
11548
11548
  }), i[i.length - 1]?.code !== r && i.push({
11549
11549
  code: r,
11550
11550
  value: t?.uId
11551
11551
  });
11552
- const l = s.getInstances().find((d) => s.assertInstance(d, g.TITLE)), p = {
11552
+ const u = s.getInstances().find((d) => s.assertInstance(d, g.TITLE)), p = {
11553
11553
  app_id: o.app_id ?? "",
11554
11554
  sapp_id: t.sappId,
11555
11555
  // ? 取自路由,是否合理
@@ -11557,7 +11557,7 @@ function fs(s, e, t, a) {
11557
11557
  data_code: o.data_code,
11558
11558
  values: i
11559
11559
  },
11560
- page_title: l?.props.caption,
11560
+ page_title: u?.props.caption,
11561
11561
  subtable_data_set: n,
11562
11562
  form_key: o.form_key,
11563
11563
  data_uid: t.isEditing ? t?.uId : "",
@@ -11632,11 +11632,11 @@ const st = {
11632
11632
  });
11633
11633
  }
11634
11634
  };
11635
- var L = /* @__PURE__ */ ((s) => (s.SUCCESS = "000000", s.NO_AUTH = "1202106", s.NOT_AUTH = "617000", s.NOT_AUTH_EXTERNAL = "617033", s.NOT_FOUND = "617001", s.FORM_NOT_FOUND = "617011", s.FORM_NOT_ENABLE = "617035", s.FORM_NOT_IN_TIME = "617037", s.TABLE_NO_DELETE = "617039", s.LIGHT_APP_STOPPED = "501", s))(L || {});
11636
- let N;
11635
+ var N = /* @__PURE__ */ ((s) => (s.SUCCESS = "000000", s.NO_AUTH = "1202106", s.NOT_AUTH = "617000", s.NOT_AUTH_EXTERNAL = "617033", s.NOT_FOUND = "617001", s.FORM_NOT_FOUND = "617011", s.FORM_NOT_ENABLE = "617035", s.FORM_NOT_IN_TIME = "617037", s.TABLE_NO_DELETE = "617039", s.LIGHT_APP_STOPPED = "501", s))(N || {});
11636
+ let L;
11637
11637
  const lo = {
11638
11638
  install(s) {
11639
- N = s;
11639
+ L = s;
11640
11640
  }
11641
11641
  };
11642
11642
  class pt {
@@ -11663,31 +11663,31 @@ class pt {
11663
11663
  let n, o;
11664
11664
  if (r)
11665
11665
  if (this.cacheResult[i]) {
11666
- const l = this.cacheResult[i];
11667
- if (l instanceof Promise) {
11668
- const p = await l;
11666
+ const u = this.cacheResult[i];
11667
+ if (u instanceof Promise) {
11668
+ const p = await u;
11669
11669
  return te(p);
11670
11670
  }
11671
- return te(l);
11671
+ return te(u);
11672
11672
  } else
11673
- this.cacheResult[i] = new Promise((l, p) => {
11674
- n = l, o = p;
11673
+ this.cacheResult[i] = new Promise((u, p) => {
11674
+ n = u, o = p;
11675
11675
  });
11676
- const u = await e.call(this.service, {
11676
+ const l = await e.call(this.service, {
11677
11677
  payload: t
11678
11678
  });
11679
- if (u.code === L.SUCCESS) {
11680
- const l = a?.(u) ?? u;
11681
- return r && (n?.(l), this.cacheResult[i] = l), l;
11679
+ if (l.code === N.SUCCESS) {
11680
+ const u = a?.(l) ?? l;
11681
+ return r && (n?.(u), this.cacheResult[i] = u), u;
11682
11682
  } else
11683
- u.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (N.config.globalProperties.$message.error({
11684
- content: u.message
11683
+ l.code === "1201702" && JSON.parse(sessionStorage.getItem("flag") || "true") && (sessionStorage.setItem("flag", "false"), K.isPc() ? (L.config.globalProperties.$message.error({
11684
+ content: l.message
11685
11685
  }), setTimeout(() => {
11686
11686
  sessionStorage.setItem("flag", "true");
11687
- }, 3e3)) : N.config.globalProperties.$toast({ message: u.message })), o?.(u);
11687
+ }, 3e3)) : L.config.globalProperties.$toast({ message: l.message })), o?.(l);
11688
11688
  }
11689
11689
  }
11690
- async function vs({
11690
+ async function hs({
11691
11691
  context: s,
11692
11692
  uId: e,
11693
11693
  queryInfo: t,
@@ -11695,7 +11695,7 @@ async function vs({
11695
11695
  orders: r,
11696
11696
  dataCode: i
11697
11697
  }) {
11698
- const n = de(), o = {}, u = {}, l = {}, p = {}, d = te(t);
11698
+ const n = he(), o = {}, l = {}, u = {}, p = {}, d = te(t);
11699
11699
  return delete d.process_param, await Promise.all(
11700
11700
  Object.keys(s.getControlIdMapping()).map(async (c) => {
11701
11701
  if (s.getControlIdMapping()[c].children !== void 0 && (!i || s.getControlIdMapping()[c]?.dataBind?.dataCode === i)) {
@@ -11725,11 +11725,11 @@ async function vs({
11725
11725
  }, f = await n.default.ListDataSubtablePagePrivateV1ApiAppsPOST({
11726
11726
  payload: A
11727
11727
  });
11728
- o[T] = [], u[T] = [], f.data?.rows?.map((O) => {
11728
+ o[T] = [], l[T] = [], f.data?.rows?.map((O) => {
11729
11729
  const E = O.row_data, h = {}, S = {};
11730
11730
  E?.map((_) => {
11731
11731
  h[_.code ?? "unknown"] = _.value, S[_.code ?? "unknown"] = _.display;
11732
- }), o[T].push(h), u[T].push(S);
11732
+ }), o[T].push(h), l[T].push(S);
11733
11733
  }), p[c] = f.data?.rows;
11734
11734
  const v = await s.emit("list-mounted", {
11735
11735
  instance: s.getInstances(c)[0],
@@ -11740,19 +11740,19 @@ async function vs({
11740
11740
  if (O[0] !== void 0) {
11741
11741
  o[T] = O[0];
11742
11742
  const E = o[T].map((h) => h.uid);
11743
- u[T] = u[T].filter(
11743
+ l[T] = l[T].filter(
11744
11744
  (h) => E.includes(h.uid)
11745
11745
  ), p[c] = p[c].filter(
11746
11746
  (h) => E.includes(h.uid)
11747
11747
  );
11748
11748
  }
11749
11749
  }
11750
- l.pagination = { [c]: f.data?.page };
11750
+ u.pagination = { [c]: f.data?.page };
11751
11751
  }
11752
11752
  })
11753
- ), { subDataSet: o, orginData: p, subDataDisplay: u, subDataPagination: l };
11753
+ ), { subDataSet: o, orginData: p, subDataDisplay: l, subDataPagination: u };
11754
11754
  }
11755
- function ms(s) {
11755
+ function fs(s) {
11756
11756
  let e = "";
11757
11757
  return s?.map((t) => {
11758
11758
  if (t.code === "uid") {
@@ -11771,9 +11771,9 @@ function fa(s, e) {
11771
11771
  t[s][r.code ?? "unknown"] = r.value, a[s][r.code ?? "unknown"] = r.display;
11772
11772
  }), { dataSet: t, dataDisplay: a };
11773
11773
  }
11774
- function Ps(s, e, t) {
11774
+ function vs(s, e, t) {
11775
11775
  ca(s.runtime.instance, (a) => {
11776
- s.getState(a.id).uid = ms(
11776
+ s.getState(a.id).uid = fs(
11777
11777
  e ?? []
11778
11778
  ), t !== void 0 && Object.keys(t).map((r) => {
11779
11779
  const i = s.getState(r);
@@ -11787,7 +11787,7 @@ async function uo(s) {
11787
11787
  s.setLoading && s.setLoading(!0);
11788
11788
  const e = s.context;
11789
11789
  let t = Promise.resolve();
11790
- ci(s.uId) && s.uId !== "" && (t = vs({
11790
+ pi(s.uId) && s.uId !== "" && (t = hs({
11791
11791
  context: e,
11792
11792
  uId: s.uId,
11793
11793
  queryInfo: s.query
@@ -11804,14 +11804,14 @@ async function uo(s) {
11804
11804
  a?.data_set.values,
11805
11805
  a?.data_set.data_code
11806
11806
  ), r && r.subDataDisplay && r.orginData) {
11807
- const l = Object.keys(
11807
+ const u = Object.keys(
11808
11808
  r.subDataDisplay
11809
11809
  ), p = Object.values(
11810
11810
  r.orginData
11811
11811
  );
11812
- for (let d = 0; d < l.length; d++)
11812
+ for (let d = 0; d < u.length; d++)
11813
11813
  for (const c of p[d])
11814
- tt.handleAllDisplayData(c.row_data, l[d]);
11814
+ tt.handleAllDisplayData(c.row_data, u[d]);
11815
11815
  }
11816
11816
  const i = a ?? {
11817
11817
  data_set: {}
@@ -11820,26 +11820,26 @@ async function uo(s) {
11820
11820
  const o = fa(
11821
11821
  M(e)?.externalParams?.data.data_code,
11822
11822
  i.data_set.values
11823
- ), u = Object.assign({}, { ...o.dataDisplay });
11823
+ ), l = Object.assign({}, { ...o.dataDisplay });
11824
11824
  if (r) {
11825
- const l = r;
11826
- Object.entries(l.subDataSet).forEach(([p, d]) => {
11825
+ const u = r;
11826
+ Object.entries(u.subDataSet).forEach(([p, d]) => {
11827
11827
  const c = d;
11828
- l.subDataSet[p] = c;
11829
- }), Object.assign(o.dataSet, l.subDataSet), Object.assign(
11830
- u,
11831
- l.subDataDisplay,
11828
+ u.subDataSet[p] = c;
11829
+ }), Object.assign(o.dataSet, u.subDataSet), Object.assign(
11830
+ l,
11831
+ u.subDataDisplay,
11832
11832
  // 明细表分页信息
11833
- l.subDataPagination
11834
- ), n = l.orginData, M(e).setState("FORMPARAMS", {
11833
+ u.subDataPagination
11834
+ ), n = u.orginData, M(e).setState("FORMPARAMS", {
11835
11835
  subtab_query: s.query
11836
11836
  });
11837
11837
  }
11838
- s.isCopyPage && (st.resetDataSet(o.dataSet), st.resetDataSet(u)), await M(e)?.emit("custom:setSearchCache", { value: !0 }), M(e).setData(o.dataSet), setTimeout(() => {
11838
+ s.isCopyPage && (st.resetDataSet(o.dataSet), st.resetDataSet(l)), await M(e)?.emit("custom:setSearchCache", { value: !0 }), M(e).setData(o.dataSet), setTimeout(() => {
11839
11839
  Oe(() => {
11840
11840
  M(e)?.emit("custom:setSearchCache", { value: !1 });
11841
11841
  });
11842
- }, 1e3), Ps(e, i.data_set.values, n), s.setLoading && setTimeout(() => s.setLoading(!1), 300), await M(e)?.emit("custom:beforeEngineMounted", {
11842
+ }, 1e3), vs(e, i.data_set.values, n), s.setLoading && setTimeout(() => s.setLoading(!1), 300), await M(e)?.emit("custom:beforeEngineMounted", {
11843
11843
  value: te(o.dataSet)
11844
11844
  }), await M(e)?.emit("engine-mounted", {
11845
11845
  value: te(o.dataSet)
@@ -11859,7 +11859,7 @@ async function co(s) {
11859
11859
  s.setLoading && s.setLoading(!0);
11860
11860
  const e = s.context?.getState("FORMPARAMS")?.subtab_query;
11861
11861
  let t = {};
11862
- const a = await vs({
11862
+ const a = await hs({
11863
11863
  context: s.context,
11864
11864
  uId: e?.main_uid,
11865
11865
  queryInfo: e,
@@ -11870,8 +11870,8 @@ async function co(s) {
11870
11870
  dataCode: s?.dataCode
11871
11871
  });
11872
11872
  Object.entries(a.subDataSet).forEach(([n, o]) => {
11873
- const u = o;
11874
- a.subDataSet[n] = u;
11873
+ const l = o;
11874
+ a.subDataSet[n] = l;
11875
11875
  }), t = a.orginData;
11876
11876
  const r = s.context?.getState("DISPLAY"), i = Object.assign({}, { ...r }, a.subDataDisplay);
11877
11877
  s.context?.setState("DISPLAY", Object.freeze(i)), await s.context?.emit("custom:setSearchCache", { value: !0 }), s.context?.setData(a.subDataSet), setTimeout(() => {
@@ -11881,7 +11881,10 @@ async function co(s) {
11881
11881
  }, 1e3), po(s.context, t), s.setLoading && setTimeout(() => s.setLoading(!1), 300);
11882
11882
  }
11883
11883
  function yo(s) {
11884
- return s instanceof Hr || s.type === "conditions";
11884
+ return (
11885
+ // filterCondition instanceof FieldFilterConditions ||
11886
+ s.type === "conditions"
11887
+ );
11885
11888
  }
11886
11889
  function Pe(s, e, t, a, r) {
11887
11890
  const i = a ?? [], n = [];
@@ -11892,19 +11895,19 @@ function Pe(s, e, t, a, r) {
11892
11895
  o.children,
11893
11896
  t,
11894
11897
  a
11895
- ).forEach((l) => {
11896
- n.includes(l.code) || i.push(l);
11898
+ ).forEach((u) => {
11899
+ n.includes(u.code) || i.push(u);
11897
11900
  });
11898
11901
  else {
11899
11902
  const {
11900
- rightVariableBo: { type: u, value: l }
11903
+ rightVariableBo: { type: l, value: u }
11901
11904
  } = o;
11902
- u === "form" && l.forEach((p) => {
11905
+ l === "form" && u.forEach((p) => {
11903
11906
  const d = s.getDataBind(p);
11904
11907
  if (!d)
11905
11908
  return;
11906
11909
  let c;
11907
- if (s.getInstance(p)?.parent?.type === "subtable-column" ? c = s.getState(p, t) : c = s.getState(p), d instanceof Le) {
11910
+ if (s.getInstance(p)?.parent?.type === "subtable-column" ? c = s.getState(p, t) : c = s.getState(p), xe(d)) {
11908
11911
  if (n.includes(d.fieldCode))
11909
11912
  return;
11910
11913
  i.push({ code: d.fieldCode, value: c }), n.push(d.fieldCode);
@@ -12053,23 +12056,23 @@ function _o(s, e) {
12053
12056
  }
12054
12057
  function ar(s, e, t, a, r, i, n) {
12055
12058
  try {
12056
- var o = s[i](n), u = o.value;
12057
- } catch (l) {
12058
- t(l);
12059
+ var o = s[i](n), l = o.value;
12060
+ } catch (u) {
12061
+ t(u);
12059
12062
  return;
12060
12063
  }
12061
- o.done ? e(u) : Promise.resolve(u).then(a, r);
12064
+ o.done ? e(l) : Promise.resolve(l).then(a, r);
12062
12065
  }
12063
12066
  function Io(s) {
12064
12067
  return function() {
12065
12068
  var e = this, t = arguments;
12066
12069
  return new Promise(function(a, r) {
12067
12070
  var i = s.apply(e, t);
12068
- function n(u) {
12069
- ar(i, a, r, n, o, "next", u);
12071
+ function n(l) {
12072
+ ar(i, a, r, n, o, "next", l);
12070
12073
  }
12071
- function o(u) {
12072
- ar(i, a, r, n, o, "throw", u);
12074
+ function o(l) {
12075
+ ar(i, a, r, n, o, "throw", l);
12073
12076
  }
12074
12077
  n(void 0);
12075
12078
  });
@@ -12114,82 +12117,82 @@ function Eo(s, e) {
12114
12117
  }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
12115
12118
  return this;
12116
12119
  }), i;
12117
- function o(l) {
12120
+ function o(u) {
12118
12121
  return function(p) {
12119
- return u([
12120
- l,
12122
+ return l([
12123
+ u,
12121
12124
  p
12122
12125
  ]);
12123
12126
  };
12124
12127
  }
12125
- function u(l) {
12128
+ function l(u) {
12126
12129
  if (t)
12127
12130
  throw new TypeError("Generator is already executing.");
12128
12131
  for (; n; )
12129
12132
  try {
12130
- if (t = 1, a && (r = l[0] & 2 ? a.return : l[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, l[1])).done)
12133
+ if (t = 1, a && (r = u[0] & 2 ? a.return : u[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, u[1])).done)
12131
12134
  return r;
12132
- switch (a = 0, r && (l = [
12133
- l[0] & 2,
12135
+ switch (a = 0, r && (u = [
12136
+ u[0] & 2,
12134
12137
  r.value
12135
- ]), l[0]) {
12138
+ ]), u[0]) {
12136
12139
  case 0:
12137
12140
  case 1:
12138
- r = l;
12141
+ r = u;
12139
12142
  break;
12140
12143
  case 4:
12141
12144
  return n.label++, {
12142
- value: l[1],
12145
+ value: u[1],
12143
12146
  done: !1
12144
12147
  };
12145
12148
  case 5:
12146
- n.label++, a = l[1], l = [
12149
+ n.label++, a = u[1], u = [
12147
12150
  0
12148
12151
  ];
12149
12152
  continue;
12150
12153
  case 7:
12151
- l = n.ops.pop(), n.trys.pop();
12154
+ u = n.ops.pop(), n.trys.pop();
12152
12155
  continue;
12153
12156
  default:
12154
- if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12157
+ if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (u[0] === 6 || u[0] === 2)) {
12155
12158
  n = 0;
12156
12159
  continue;
12157
12160
  }
12158
- if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
12159
- n.label = l[1];
12161
+ if (u[0] === 3 && (!r || u[1] > r[0] && u[1] < r[3])) {
12162
+ n.label = u[1];
12160
12163
  break;
12161
12164
  }
12162
- if (l[0] === 6 && n.label < r[1]) {
12163
- n.label = r[1], r = l;
12165
+ if (u[0] === 6 && n.label < r[1]) {
12166
+ n.label = r[1], r = u;
12164
12167
  break;
12165
12168
  }
12166
12169
  if (r && n.label < r[2]) {
12167
- n.label = r[2], n.ops.push(l);
12170
+ n.label = r[2], n.ops.push(u);
12168
12171
  break;
12169
12172
  }
12170
12173
  r[2] && n.ops.pop(), n.trys.pop();
12171
12174
  continue;
12172
12175
  }
12173
- l = e.call(s, n);
12176
+ u = e.call(s, n);
12174
12177
  } catch (p) {
12175
- l = [
12178
+ u = [
12176
12179
  6,
12177
12180
  p
12178
12181
  ], a = 0;
12179
12182
  } finally {
12180
12183
  t = r = 0;
12181
12184
  }
12182
- if (l[0] & 5)
12183
- throw l[1];
12185
+ if (u[0] & 5)
12186
+ throw u[1];
12184
12187
  return {
12185
- value: l[0] ? l[1] : void 0,
12188
+ value: u[0] ? u[1] : void 0,
12186
12189
  done: !0
12187
12190
  };
12188
12191
  }
12189
12192
  }
12190
- var gs = "FunctionExpression", ve = /* @__PURE__ */ function() {
12193
+ var ms = "FunctionExpression", ve = /* @__PURE__ */ function() {
12191
12194
  function s(e, t) {
12192
- Co(this, s), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "arguments", void 0), this.name = e, this.type = gs, this.arguments = t;
12195
+ Co(this, s), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "arguments", void 0), this.name = e, this.type = ms, this.arguments = t;
12193
12196
  }
12194
12197
  return Vo(s, [
12195
12198
  {
@@ -12201,8 +12204,8 @@ var gs = "FunctionExpression", ve = /* @__PURE__ */ function() {
12201
12204
  return Eo(this, function(o) {
12202
12205
  switch (o.label) {
12203
12206
  case 0:
12204
- return r = a.arguments.map(function(u) {
12205
- return u.handler(t, a.name);
12207
+ return r = a.arguments.map(function(l) {
12208
+ return l.handler(t, a.name);
12206
12209
  }), [
12207
12210
  4,
12208
12211
  Promise.all(r)
@@ -12234,7 +12237,7 @@ var gs = "FunctionExpression", ve = /* @__PURE__ */ function() {
12234
12237
  }();
12235
12238
  Ye(ve, "HandlerMap", /* @__PURE__ */ new Map());
12236
12239
  function Do(s) {
12237
- return s.type === gs;
12240
+ return s.type === ms;
12238
12241
  }
12239
12242
  function ko(s, e) {
12240
12243
  if (!(s instanceof e))
@@ -12257,9 +12260,9 @@ function ir(s, e, t) {
12257
12260
  writable: !0
12258
12261
  }) : s[e] = t, s;
12259
12262
  }
12260
- var Ss = "StaticExpression", nr = /* @__PURE__ */ function() {
12263
+ var Ps = "StaticExpression", nr = /* @__PURE__ */ function() {
12261
12264
  function s(e) {
12262
- ko(this, s), ir(this, "code", void 0), ir(this, "type", void 0), this.code = e, this.type = Ss;
12265
+ ko(this, s), ir(this, "code", void 0), ir(this, "type", void 0), this.code = e, this.type = Ps;
12263
12266
  }
12264
12267
  return Ro(s, [
12265
12268
  {
@@ -12281,7 +12284,7 @@ var Ss = "StaticExpression", nr = /* @__PURE__ */ function() {
12281
12284
  ]), s;
12282
12285
  }();
12283
12286
  function or(s) {
12284
- return s.type === Ss;
12287
+ return s.type === Ps;
12285
12288
  }
12286
12289
  function Mo(s, e) {
12287
12290
  if (!(s instanceof e))
@@ -12304,9 +12307,9 @@ function Re(s, e, t) {
12304
12307
  writable: !0
12305
12308
  }) : s[e] = t, s;
12306
12309
  }
12307
- var bs = "VariableExpression", xe = /* @__PURE__ */ function() {
12310
+ var gs = "VariableExpression", Be = /* @__PURE__ */ function() {
12308
12311
  function s(e) {
12309
- Mo(this, s), Re(this, "name", void 0), Re(this, "type", void 0), Re(this, "variableName", void 0), Re(this, "keys", void 0), this.name = e, this.type = bs;
12312
+ Mo(this, s), Re(this, "name", void 0), Re(this, "type", void 0), Re(this, "variableName", void 0), Re(this, "keys", void 0), this.name = e, this.type = gs;
12310
12313
  var t = e.split(".");
12311
12314
  this.variableName = t.shift(), this.keys = t;
12312
12315
  }
@@ -12332,9 +12335,9 @@ var bs = "VariableExpression", xe = /* @__PURE__ */ function() {
12332
12335
  }
12333
12336
  ]), s;
12334
12337
  }();
12335
- Re(xe, "HandlerMap", /* @__PURE__ */ new Map());
12338
+ Re(Be, "HandlerMap", /* @__PURE__ */ new Map());
12336
12339
  function Bo(s) {
12337
- return s.type === bs;
12340
+ return s.type === gs;
12338
12341
  }
12339
12342
  function Zt(s, e) {
12340
12343
  (e == null || e > s.length) && (e = s.length);
@@ -12348,29 +12351,29 @@ function Fo(s) {
12348
12351
  }
12349
12352
  function ur(s, e, t, a, r, i, n) {
12350
12353
  try {
12351
- var o = s[i](n), u = o.value;
12352
- } catch (l) {
12353
- t(l);
12354
+ var o = s[i](n), l = o.value;
12355
+ } catch (u) {
12356
+ t(u);
12354
12357
  return;
12355
12358
  }
12356
- o.done ? e(u) : Promise.resolve(u).then(a, r);
12359
+ o.done ? e(l) : Promise.resolve(l).then(a, r);
12357
12360
  }
12358
- function No(s) {
12361
+ function Lo(s) {
12359
12362
  return function() {
12360
12363
  var e = this, t = arguments;
12361
12364
  return new Promise(function(a, r) {
12362
12365
  var i = s.apply(e, t);
12363
- function n(u) {
12364
- ur(i, a, r, n, o, "next", u);
12366
+ function n(l) {
12367
+ ur(i, a, r, n, o, "next", l);
12365
12368
  }
12366
- function o(u) {
12367
- ur(i, a, r, n, o, "throw", u);
12369
+ function o(l) {
12370
+ ur(i, a, r, n, o, "throw", l);
12368
12371
  }
12369
12372
  n(void 0);
12370
12373
  });
12371
12374
  };
12372
12375
  }
12373
- function Lo(s, e) {
12376
+ function No(s, e) {
12374
12377
  if (!(s instanceof e))
12375
12378
  throw new TypeError("Cannot call a class as a function");
12376
12379
  }
@@ -12430,114 +12433,114 @@ function Ho(s, e) {
12430
12433
  }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
12431
12434
  return this;
12432
12435
  }), i;
12433
- function o(l) {
12436
+ function o(u) {
12434
12437
  return function(p) {
12435
- return u([
12436
- l,
12438
+ return l([
12439
+ u,
12437
12440
  p
12438
12441
  ]);
12439
12442
  };
12440
12443
  }
12441
- function u(l) {
12444
+ function l(u) {
12442
12445
  if (t)
12443
12446
  throw new TypeError("Generator is already executing.");
12444
12447
  for (; n; )
12445
12448
  try {
12446
- if (t = 1, a && (r = l[0] & 2 ? a.return : l[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, l[1])).done)
12449
+ if (t = 1, a && (r = u[0] & 2 ? a.return : u[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, u[1])).done)
12447
12450
  return r;
12448
- switch (a = 0, r && (l = [
12449
- l[0] & 2,
12451
+ switch (a = 0, r && (u = [
12452
+ u[0] & 2,
12450
12453
  r.value
12451
- ]), l[0]) {
12454
+ ]), u[0]) {
12452
12455
  case 0:
12453
12456
  case 1:
12454
- r = l;
12457
+ r = u;
12455
12458
  break;
12456
12459
  case 4:
12457
12460
  return n.label++, {
12458
- value: l[1],
12461
+ value: u[1],
12459
12462
  done: !1
12460
12463
  };
12461
12464
  case 5:
12462
- n.label++, a = l[1], l = [
12465
+ n.label++, a = u[1], u = [
12463
12466
  0
12464
12467
  ];
12465
12468
  continue;
12466
12469
  case 7:
12467
- l = n.ops.pop(), n.trys.pop();
12470
+ u = n.ops.pop(), n.trys.pop();
12468
12471
  continue;
12469
12472
  default:
12470
- if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12473
+ if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (u[0] === 6 || u[0] === 2)) {
12471
12474
  n = 0;
12472
12475
  continue;
12473
12476
  }
12474
- if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
12475
- n.label = l[1];
12477
+ if (u[0] === 3 && (!r || u[1] > r[0] && u[1] < r[3])) {
12478
+ n.label = u[1];
12476
12479
  break;
12477
12480
  }
12478
- if (l[0] === 6 && n.label < r[1]) {
12479
- n.label = r[1], r = l;
12481
+ if (u[0] === 6 && n.label < r[1]) {
12482
+ n.label = r[1], r = u;
12480
12483
  break;
12481
12484
  }
12482
12485
  if (r && n.label < r[2]) {
12483
- n.label = r[2], n.ops.push(l);
12486
+ n.label = r[2], n.ops.push(u);
12484
12487
  break;
12485
12488
  }
12486
12489
  r[2] && n.ops.pop(), n.trys.pop();
12487
12490
  continue;
12488
12491
  }
12489
- l = e.call(s, n);
12492
+ u = e.call(s, n);
12490
12493
  } catch (p) {
12491
- l = [
12494
+ u = [
12492
12495
  6,
12493
12496
  p
12494
12497
  ], a = 0;
12495
12498
  } finally {
12496
12499
  t = r = 0;
12497
12500
  }
12498
- if (l[0] & 5)
12499
- throw l[1];
12501
+ if (u[0] & 5)
12502
+ throw u[1];
12500
12503
  return {
12501
- value: l[0] ? l[1] : void 0,
12504
+ value: u[0] ? u[1] : void 0,
12502
12505
  done: !0
12503
12506
  };
12504
12507
  }
12505
12508
  }
12506
- var Ts = "Expressions", va = /* @__PURE__ */ function() {
12509
+ var Ss = "Expressions", va = /* @__PURE__ */ function() {
12507
12510
  function s(e) {
12508
- Lo(this, s), dr(this, "value", void 0), dr(this, "type", void 0), this.value = e, this.type = Ts;
12511
+ No(this, s), dr(this, "value", void 0), dr(this, "type", void 0), this.value = e, this.type = Ss;
12509
12512
  }
12510
12513
  return Uo(s, [
12511
12514
  {
12512
12515
  key: "handler",
12513
12516
  value: function(t) {
12514
12517
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, r = this;
12515
- return No(function() {
12516
- var i, n, o, u, l;
12518
+ return Lo(function() {
12519
+ var i, n, o, l, u;
12517
12520
  return Ho(this, function(p) {
12518
12521
  switch (p.label) {
12519
12522
  case 0:
12520
- return i = this, n = "", o = [], u = [], r.value.forEach(function(d) {
12523
+ return i = this, n = "", o = [], l = [], r.value.forEach(function(d) {
12521
12524
  if (or(d)) {
12522
12525
  o.push(d.code);
12523
12526
  return;
12524
12527
  }
12525
- u.push(d.handler(t, a)), o.push("arguments[".concat(u.length - 1, "]"));
12528
+ l.push(d.handler(t, a)), o.push("arguments[".concat(l.length - 1, "]"));
12526
12529
  }), [
12527
12530
  4,
12528
- Promise.all(u)
12531
+ Promise.all(l)
12529
12532
  ];
12530
12533
  case 1:
12531
- l = p.sent();
12534
+ u = p.sent();
12532
12535
  try {
12533
12536
  return [
12534
12537
  2,
12535
- new Function("return ".concat(o.join(""))).apply(this, He(l))
12538
+ new Function("return ".concat(o.join(""))).apply(this, He(u))
12536
12539
  ];
12537
12540
  } catch {
12538
12541
  return o.forEach(function(c) {
12539
12542
  try {
12540
- n += new Function("return ".concat(c)).apply(i, He(l));
12543
+ n += new Function("return ".concat(c)).apply(i, He(u));
12541
12544
  } catch (q) {
12542
12545
  throw new Error('Error evaluating expressions "'.concat(c, '" error: ').concat(q.message));
12543
12546
  }
@@ -12558,20 +12561,20 @@ var Ts = "Expressions", va = /* @__PURE__ */ function() {
12558
12561
  key: "handlerSync",
12559
12562
  value: function(t) {
12560
12563
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, r = this, i = "", n = [], o = [];
12561
- this.value.forEach(function(l) {
12562
- if (or(l)) {
12563
- n.push(l.code);
12564
+ this.value.forEach(function(u) {
12565
+ if (or(u)) {
12566
+ n.push(u.code);
12564
12567
  return;
12565
12568
  }
12566
- o.push(l.handlerSync(t, a)), n.push("arguments[".concat(o.length - 1, "]"));
12569
+ o.push(u.handlerSync(t, a)), n.push("arguments[".concat(o.length - 1, "]"));
12567
12570
  });
12568
- var u = o;
12571
+ var l = o;
12569
12572
  try {
12570
- return new Function("return ".concat(n.join(""))).apply(this, He(u));
12573
+ return new Function("return ".concat(n.join(""))).apply(this, He(l));
12571
12574
  } catch {
12572
12575
  return n.forEach(function(p) {
12573
12576
  try {
12574
- i += new Function("return ".concat(p)).apply(r, He(u));
12577
+ i += new Function("return ".concat(p)).apply(r, He(l));
12575
12578
  } catch (d) {
12576
12579
  throw new Error('Error evaluating expressions "'.concat(p, '" error: ').concat(d.message));
12577
12580
  }
@@ -12582,31 +12585,31 @@ var Ts = "Expressions", va = /* @__PURE__ */ function() {
12582
12585
  ]), s;
12583
12586
  }();
12584
12587
  function zo(s) {
12585
- return s.type === Ts;
12588
+ return s.type === Ss;
12586
12589
  }
12587
12590
  var Ko = /\s+/;
12588
12591
  function Wo(s) {
12589
12592
  for (var e = function() {
12590
12593
  n && (i.push(n.trim()), n = "");
12591
12594
  }, t = 0, a = 0, r = 0, i = [], n = "", o = []; t < s.length; ) {
12592
- var u = s.charAt(t);
12593
- if (u === "(" && o.length === 0) {
12594
- a = t, o.push(u), t++;
12595
+ var l = s.charAt(t);
12596
+ if (l === "(" && o.length === 0) {
12597
+ a = t, o.push(l), t++;
12595
12598
  continue;
12596
12599
  }
12597
- if (u === "," && o.length === 1) {
12600
+ if (l === "," && o.length === 1) {
12598
12601
  e(), t++;
12599
12602
  continue;
12600
12603
  }
12601
- if (!n.length && Ko.test(u)) {
12604
+ if (!n.length && Ko.test(l)) {
12602
12605
  t++;
12603
12606
  continue;
12604
12607
  }
12605
- if (u === "(" ? o.push(u) : u === ")" && o.pop(), o.length === 0) {
12608
+ if (l === "(" ? o.push(l) : l === ")" && o.pop(), o.length === 0) {
12606
12609
  r = t, e();
12607
12610
  break;
12608
12611
  }
12609
- n += u, t++;
12612
+ n += l, t++;
12610
12613
  }
12611
12614
  if (o.length !== 0)
12612
12615
  throw new Error("The function is not closed: ".concat(s));
@@ -12634,8 +12637,8 @@ function Jo(s, e) {
12634
12637
  try {
12635
12638
  for (t = t.call(s); !(r = (n = t.next()).done) && (a.push(n.value), !(e && a.length === e)); r = !0)
12636
12639
  ;
12637
- } catch (u) {
12638
- i = !0, o = u;
12640
+ } catch (l) {
12641
+ i = !0, o = l;
12639
12642
  } finally {
12640
12643
  try {
12641
12644
  !r && t.return != null && t.return();
@@ -12677,8 +12680,8 @@ function ma(s) {
12677
12680
  }
12678
12681
  ), r = function(A) {
12679
12682
  t();
12680
- var f = It(Array.from(A.match(l)), 2), v = f[0], O = f[1];
12681
- c.push(new xe(O)), d += v.length;
12683
+ var f = It(Array.from(A.match(u)), 2), v = f[0], O = f[1];
12684
+ c.push(new Be(O)), d += v.length;
12682
12685
  }, i = function(A) {
12683
12686
  var f = It(Array.from(A.match(p)), 2), v = f[1];
12684
12687
  t();
@@ -12687,13 +12690,13 @@ function ma(s) {
12687
12690
  return new va(P);
12688
12691
  });
12689
12692
  c.push(new ve(v, S)), d += v.length + h + 1;
12690
- }, n = e.functionKeywords, o = n === void 0 ? [] : n, u = e.variableRegexp, l = u === void 0 ? Zo : u, p = new RegExp("^(".concat(o.join("|"), ")\\s*\\(.*?\\)")), d = 0, c = [], q = "", y = s.replaceAll(el, " "); d < y.length; ) {
12693
+ }, n = e.functionKeywords, o = n === void 0 ? [] : n, l = e.variableRegexp, u = l === void 0 ? Zo : l, p = new RegExp("^(".concat(o.join("|"), ")\\s*\\(.*?\\)")), d = 0, c = [], q = "", y = s.replaceAll(el, " "); d < y.length; ) {
12691
12694
  var b = y.charAt(d), T = y.substring(d);
12692
12695
  if (yr.test(T)) {
12693
12696
  a(T);
12694
12697
  continue;
12695
12698
  }
12696
- if (l.test(T)) {
12699
+ if (u.test(T)) {
12697
12700
  r(T);
12698
12701
  continue;
12699
12702
  }
@@ -12707,23 +12710,23 @@ function ma(s) {
12707
12710
  }
12708
12711
  function hr(s, e, t, a, r, i, n) {
12709
12712
  try {
12710
- var o = s[i](n), u = o.value;
12711
- } catch (l) {
12712
- t(l);
12713
+ var o = s[i](n), l = o.value;
12714
+ } catch (u) {
12715
+ t(u);
12713
12716
  return;
12714
12717
  }
12715
- o.done ? e(u) : Promise.resolve(u).then(a, r);
12718
+ o.done ? e(l) : Promise.resolve(l).then(a, r);
12716
12719
  }
12717
12720
  function tl(s) {
12718
12721
  return function() {
12719
12722
  var e = this, t = arguments;
12720
12723
  return new Promise(function(a, r) {
12721
12724
  var i = s.apply(e, t);
12722
- function n(u) {
12723
- hr(i, a, r, n, o, "next", u);
12725
+ function n(l) {
12726
+ hr(i, a, r, n, o, "next", l);
12724
12727
  }
12725
- function o(u) {
12726
- hr(i, a, r, n, o, "throw", u);
12728
+ function o(l) {
12729
+ hr(i, a, r, n, o, "throw", l);
12727
12730
  }
12728
12731
  n(void 0);
12729
12732
  });
@@ -12747,75 +12750,75 @@ function al(s, e) {
12747
12750
  }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
12748
12751
  return this;
12749
12752
  }), i;
12750
- function o(l) {
12753
+ function o(u) {
12751
12754
  return function(p) {
12752
- return u([
12753
- l,
12755
+ return l([
12756
+ u,
12754
12757
  p
12755
12758
  ]);
12756
12759
  };
12757
12760
  }
12758
- function u(l) {
12761
+ function l(u) {
12759
12762
  if (t)
12760
12763
  throw new TypeError("Generator is already executing.");
12761
12764
  for (; n; )
12762
12765
  try {
12763
- if (t = 1, a && (r = l[0] & 2 ? a.return : l[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, l[1])).done)
12766
+ if (t = 1, a && (r = u[0] & 2 ? a.return : u[0] ? a.throw || ((r = a.return) && r.call(a), 0) : a.next) && !(r = r.call(a, u[1])).done)
12764
12767
  return r;
12765
- switch (a = 0, r && (l = [
12766
- l[0] & 2,
12768
+ switch (a = 0, r && (u = [
12769
+ u[0] & 2,
12767
12770
  r.value
12768
- ]), l[0]) {
12771
+ ]), u[0]) {
12769
12772
  case 0:
12770
12773
  case 1:
12771
- r = l;
12774
+ r = u;
12772
12775
  break;
12773
12776
  case 4:
12774
12777
  return n.label++, {
12775
- value: l[1],
12778
+ value: u[1],
12776
12779
  done: !1
12777
12780
  };
12778
12781
  case 5:
12779
- n.label++, a = l[1], l = [
12782
+ n.label++, a = u[1], u = [
12780
12783
  0
12781
12784
  ];
12782
12785
  continue;
12783
12786
  case 7:
12784
- l = n.ops.pop(), n.trys.pop();
12787
+ u = n.ops.pop(), n.trys.pop();
12785
12788
  continue;
12786
12789
  default:
12787
- if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
12790
+ if (r = n.trys, !(r = r.length > 0 && r[r.length - 1]) && (u[0] === 6 || u[0] === 2)) {
12788
12791
  n = 0;
12789
12792
  continue;
12790
12793
  }
12791
- if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
12792
- n.label = l[1];
12794
+ if (u[0] === 3 && (!r || u[1] > r[0] && u[1] < r[3])) {
12795
+ n.label = u[1];
12793
12796
  break;
12794
12797
  }
12795
- if (l[0] === 6 && n.label < r[1]) {
12796
- n.label = r[1], r = l;
12798
+ if (u[0] === 6 && n.label < r[1]) {
12799
+ n.label = r[1], r = u;
12797
12800
  break;
12798
12801
  }
12799
12802
  if (r && n.label < r[2]) {
12800
- n.label = r[2], n.ops.push(l);
12803
+ n.label = r[2], n.ops.push(u);
12801
12804
  break;
12802
12805
  }
12803
12806
  r[2] && n.ops.pop(), n.trys.pop();
12804
12807
  continue;
12805
12808
  }
12806
- l = e.call(s, n);
12809
+ u = e.call(s, n);
12807
12810
  } catch (p) {
12808
- l = [
12811
+ u = [
12809
12812
  6,
12810
12813
  p
12811
12814
  ], a = 0;
12812
12815
  } finally {
12813
12816
  t = r = 0;
12814
12817
  }
12815
- if (l[0] & 5)
12816
- throw l[1];
12818
+ if (u[0] & 5)
12819
+ throw u[1];
12817
12820
  return {
12818
- value: l[0] ? l[1] : void 0,
12821
+ value: u[0] ? u[1] : void 0,
12819
12822
  done: !0
12820
12823
  };
12821
12824
  }
@@ -12996,19 +12999,19 @@ var k = /* @__PURE__ */ function() {
12996
12999
  {
12997
13000
  key: "addVariable",
12998
13001
  value: function(t, a) {
12999
- xe.HandlerMap.set(t, a);
13002
+ Be.HandlerMap.set(t, a);
13000
13003
  }
13001
13004
  },
13002
13005
  {
13003
13006
  key: "deleteVariable",
13004
13007
  value: function(t) {
13005
- xe.HandlerMap.delete(t);
13008
+ Be.HandlerMap.delete(t);
13006
13009
  }
13007
13010
  },
13008
13011
  {
13009
13012
  key: "clearVariables",
13010
13013
  value: function() {
13011
- xe.HandlerMap.clear();
13014
+ Be.HandlerMap.clear();
13012
13015
  }
13013
13016
  },
13014
13017
  {
@@ -13147,10 +13150,10 @@ function Bl(s, e, t) {
13147
13150
  function Fl(s) {
13148
13151
  return s.length;
13149
13152
  }
13150
- function Nl(s) {
13153
+ function Ll(s) {
13151
13154
  return s.trim();
13152
13155
  }
13153
- function Ll(s) {
13156
+ function Nl(s) {
13154
13157
  return Array.from(new Set(s));
13155
13158
  }
13156
13159
  function Ul(s, e, t, a) {
@@ -13224,8 +13227,8 @@ k.addFunction("LEFT", Ml);
13224
13227
  k.addFunction("RIGHT", xl);
13225
13228
  k.addFunction("MID", Bl);
13226
13229
  k.addFunction("LEN", Fl);
13227
- k.addFunction("TRIM", Nl);
13228
- k.addFunction("UNION", Ll);
13230
+ k.addFunction("TRIM", Ll);
13231
+ k.addFunction("UNION", Nl);
13229
13232
  k.addFunction("REPLACE", Ul);
13230
13233
  k.addFunction("UPPER", Gl);
13231
13234
  k.addFunction("LOWER", $l);
@@ -13289,7 +13292,7 @@ class Wl {
13289
13292
  return sessionStorage.getItem(t);
13290
13293
  }
13291
13294
  }
13292
- const Lp = /* @__PURE__ */ Yi({
13295
+ const Np = /* @__PURE__ */ Yi({
13293
13296
  __proto__: null,
13294
13297
  CacheRequest: pt,
13295
13298
  ExpressionTools: Wl,
@@ -13298,9 +13301,9 @@ const Lp = /* @__PURE__ */ Yi({
13298
13301
  buildFiltersToDataSetValues: Pe,
13299
13302
  divide: go,
13300
13303
  getCurrentProxy: bo,
13301
- getFormDataUID: ms,
13304
+ getFormDataUID: fs,
13302
13305
  getMasterData: fa,
13303
- handleFillDataSet: Ps,
13306
+ handleFillDataSet: vs,
13304
13307
  multiply: Po,
13305
13308
  setFormDataNew: uo,
13306
13309
  setSubtableData: co,
@@ -13308,7 +13311,7 @@ const Lp = /* @__PURE__ */ Yi({
13308
13311
  toFixed: So,
13309
13312
  vueApp: lo
13310
13313
  }, [jt]);
13311
- function qs(s) {
13314
+ function bs(s) {
13312
13315
  return s?.externalParams?.data?.data_model?.data_field_list?.find(
13313
13316
  (e) => e.is_primary === 1
13314
13317
  )?.field_code ?? "uid";
@@ -13345,34 +13348,34 @@ class me {
13345
13348
  function Ve(s) {
13346
13349
  return s.requestFilters.push(me.request), s.responseFilters.push(me.response), s;
13347
13350
  }
13348
- function de() {
13351
+ function he() {
13349
13352
  if (Ct === void 0) {
13350
13353
  const s = Ve(
13351
- pe(process.env.VUE_APP_BASE_PATH ?? "/")
13354
+ de(process.env.VUE_APP_BASE_PATH ?? "/")
13352
13355
  );
13353
13356
  Ct = new en(s);
13354
13357
  }
13355
13358
  if (Vt === void 0) {
13356
13359
  const s = Ve(
13357
- pe(process.env.VUE_APP_API_PORTAL ?? "")
13360
+ de(process.env.VUE_APP_API_PORTAL ?? "")
13358
13361
  );
13359
13362
  Vt = new tn(s);
13360
13363
  }
13361
13364
  if (Et === void 0) {
13362
13365
  const s = Ve(
13363
- pe(process.env.VUE_APP_API_BASE ?? "")
13366
+ de(process.env.VUE_APP_API_BASE ?? "")
13364
13367
  );
13365
13368
  Et = new Ca(s);
13366
13369
  }
13367
13370
  if (kt === void 0) {
13368
13371
  const s = Ve(
13369
- pe(process.env.VUE_APP_API_INFO ?? "")
13372
+ de(process.env.VUE_APP_API_INFO ?? "")
13370
13373
  );
13371
13374
  kt = new Ca(s);
13372
13375
  }
13373
13376
  if (Dt === void 0) {
13374
13377
  const s = Ve(
13375
- pe(process.env.VUE_APP_WIDGETS_API_PATH ?? "")
13378
+ de(process.env.VUE_APP_WIDGETS_API_PATH ?? "")
13376
13379
  );
13377
13380
  Dt = new an(s);
13378
13381
  }
@@ -13385,14 +13388,14 @@ function de() {
13385
13388
  };
13386
13389
  }
13387
13390
  var Ql = Object.prototype.toString;
13388
- function Os(s, e) {
13391
+ function Ts(s, e) {
13389
13392
  return Ql.call(s) === "[object " + e + "]";
13390
13393
  }
13391
13394
  function Jl(s) {
13392
- return Os(s, "String");
13395
+ return Ts(s, "String");
13393
13396
  }
13394
13397
  function Xl(s) {
13395
- return Os(s, "Promise");
13398
+ return Ts(s, "Promise");
13396
13399
  }
13397
13400
  var Yl = (
13398
13401
  /** @class */
@@ -13419,9 +13422,9 @@ var Yl = (
13419
13422
  return this._messageCache.get(e);
13420
13423
  var t = this.getPathArray(e), a = t.reduce(function(r, i, n, o) {
13421
13424
  if (r !== void 0) {
13422
- var u = r[i];
13423
- if (!(n === o.length - 1 && !Jl(u)))
13424
- return u;
13425
+ var l = r[i];
13426
+ if (!(n === o.length - 1 && !Jl(l)))
13427
+ return l;
13425
13428
  }
13426
13429
  }, this.message);
13427
13430
  return this._messageCache.set(e, a), a;
@@ -13479,9 +13482,9 @@ function tu(s) {
13479
13482
  }
13480
13483
  };
13481
13484
  }
13482
- const ws = localStorage.getItem("locale") || "zh-CN", ie = tu({
13485
+ const qs = localStorage.getItem("locale") || "zh-CN", ne = tu({
13483
13486
  // zh en ja
13484
- locale: ws
13487
+ locale: qs
13485
13488
  // messages: {
13486
13489
  // enUS,
13487
13490
  // jaJP,
@@ -13489,45 +13492,45 @@ const ws = localStorage.getItem("locale") || "zh-CN", ie = tu({
13489
13492
  });
13490
13493
  function mr(s = "page") {
13491
13494
  const e = eu(), t = (r) => {
13492
- N.config.globalProperties.$warning !== void 0 ? N.config.globalProperties.$warning({ content: r }) : N.config.globalProperties.$toast(r);
13493
- }, a = de().default;
13495
+ L.config.globalProperties.$warning !== void 0 ? L.config.globalProperties.$warning({ content: r }) : L.config.globalProperties.$toast(r);
13496
+ }, a = he().default;
13494
13497
  a.ExportRecordsPageOprPrivateV1ApiAppsPOST = function(r) {
13495
13498
  return {
13496
- code: L.SUCCESS
13499
+ code: N.SUCCESS
13497
13500
  };
13498
13501
  }, a.ExportPageOprPrivateV1ApiAppsPOST = function(r) {
13499
13502
  return {
13500
- code: L.SUCCESS
13503
+ code: N.SUCCESS
13501
13504
  };
13502
13505
  }, a.TemplateExportDataPrivateV1ApiAppsGET = function(r) {
13503
13506
  return {
13504
- code: L.SUCCESS
13507
+ code: N.SUCCESS
13505
13508
  };
13506
13509
  }, a.DataImportDataPrivateV1ApiAppsPOST = function(r) {
13507
13510
  return {
13508
- code: L.SUCCESS
13511
+ code: N.SUCCESS
13509
13512
  };
13510
13513
  }, a.BatchSubmitPageOprPrivateV1ApiAppsPOST = function(r) {
13511
13514
  return {
13512
- code: L.SUCCESS
13515
+ code: N.SUCCESS
13513
13516
  };
13514
13517
  }, a.ProcessRecordsPageOprPrivateV1ApiAppsPOST = function(r) {
13515
13518
  return {
13516
- code: L.SUCCESS
13519
+ code: N.SUCCESS
13517
13520
  };
13518
13521
  }, s === "page" && (a.ListDataPagePrivateV1ApiAppsPOST = function(r) {
13519
13522
  return new Promise((i, n) => {
13520
13523
  i({
13521
- code: L.SUCCESS
13524
+ code: N.SUCCESS
13522
13525
  });
13523
13526
  });
13524
13527
  }), a.GetViewConfigPageOprPrivateV1ApiAppsPOST = function(r) {
13525
13528
  return {
13526
- code: L.SUCCESS
13529
+ code: N.SUCCESS
13527
13530
  };
13528
13531
  }, a.SaveViewConfigPageOprPrivateV1ApiAppsPOST = function(r) {
13529
13532
  return {
13530
- code: L.SUCCESS
13533
+ code: N.SUCCESS
13531
13534
  };
13532
13535
  }, a.ApplySubmitPagePrivateV1ApiAppsPOST = function(r) {
13533
13536
  return new Promise((i, n) => {
@@ -13608,7 +13611,7 @@ function mr(s = "page") {
13608
13611
  }
13609
13612
  const au = Symbol("isPreview");
13610
13613
  function ru() {
13611
- const s = Nr(), e = Z(!1);
13614
+ const s = Lr(), e = Z(!1);
13612
13615
  return s?.query?.isPreview === "true" || s?.name === "Preview" ? (e.value = !0, mr()) : window.location.host === "preview.baiteda.com" && (e.value = !0, mr("site")), pa(au, e), e;
13613
13616
  }
13614
13617
  function su(s) {
@@ -13635,13 +13638,13 @@ function ou(s, e) {
13635
13638
  }
13636
13639
  function ra(s, e, t) {
13637
13640
  if (s !== void 0) {
13638
- if (se(t) && se(s[e]) && t !== "") {
13641
+ if (ie(t) && ie(s[e]) && t !== "") {
13639
13642
  s[e] = t;
13640
13643
  return;
13641
13644
  }
13642
13645
  Array.isArray(t) && t.forEach((a, r) => {
13643
13646
  ra(s[e], r, a);
13644
- }), zr(t) && Object.keys(t).forEach((a) => {
13647
+ }), jr(t) && Object.keys(t).forEach((a) => {
13645
13648
  ra(s[e], a, t[a]);
13646
13649
  });
13647
13650
  }
@@ -13656,30 +13659,30 @@ function uu(s, e, t = null) {
13656
13659
  );
13657
13660
  }
13658
13661
  function pu(s, e, t = []) {
13659
- if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== he.RELATION_FIELD || !s.props.multistageFilling)
13662
+ if (s.controlType !== "form" || !s.props.dataBind || s.props.dataBind.fieldType !== se.RELATION_FIELD || !s.props.multistageFilling)
13660
13663
  return;
13661
13664
  const a = lu(e, s.props.dataBind.dataCode);
13662
13665
  if (!a)
13663
13666
  return;
13664
13667
  const r = a.data_field_list?.filter(
13665
- (u) => u.field_type === he.REFERENCE_FIELD && u.props.reference_relation_field_code === s.props.dataBind.fieldCode
13668
+ (l) => l.field_type === se.REFERENCE_FIELD && l.props.reference_relation_field_code === s.props.dataBind.fieldCode
13666
13669
  ) ?? [], i = t.find(
13667
- (u) => u.controlId === s.id
13668
- )?.parentId, n = r.map((u) => {
13669
- const l = uu(
13670
+ (l) => l.controlId === s.id
13671
+ )?.parentId, n = r.map((l) => {
13672
+ const u = uu(
13670
13673
  t,
13671
- u.field_code,
13674
+ l.field_code,
13672
13675
  i
13673
13676
  );
13674
- if (l)
13677
+ if (u)
13675
13678
  return new Ai({
13676
- controlId: l?.controlId,
13677
- fieldCode: u.props.reference_field_code
13679
+ controlId: u?.controlId,
13680
+ fieldCode: l.props.reference_field_code
13678
13681
  });
13679
13682
  }).filter(Boolean);
13680
13683
  s.props.multistageFilling.push(...n);
13681
13684
  const o = a.data_field_list?.find(
13682
- (u) => u.field_code === s.props.dataBind.fieldCode
13685
+ (l) => l.field_code === s.props.dataBind.fieldCode
13683
13686
  );
13684
13687
  s.props.datasourceBind && o && (s.props.datasourceBind.displayBoList = [
13685
13688
  new _i({
@@ -13687,20 +13690,20 @@ function pu(s, e, t = []) {
13687
13690
  })
13688
13691
  ]);
13689
13692
  }
13690
- const As = /* @__PURE__ */ new Map();
13693
+ const Os = /* @__PURE__ */ new Map();
13691
13694
  function du(s, e) {
13692
13695
  const t = e + ":" + s.id;
13693
- return As.set(t, s);
13696
+ return Os.set(t, s);
13694
13697
  }
13695
13698
  function cu(s, e) {
13696
13699
  const t = e + ":" + s;
13697
- As.delete(t);
13700
+ Os.delete(t);
13698
13701
  }
13699
13702
  class yu {
13700
13703
  pluginName = "CustomVueControlPlugin";
13701
13704
  engine;
13702
13705
  config;
13703
- service = de();
13706
+ service = he();
13704
13707
  byteluckVuePages = {};
13705
13708
  constructor(e) {
13706
13709
  this.config = e;
@@ -13718,23 +13721,23 @@ class yu {
13718
13721
  form_keys: e
13719
13722
  }
13720
13723
  }).then((o) => {
13721
- const u = o.data?.[a];
13722
- u?.rel_form_keys?.length && this.loadDependencyComponent(
13723
- u.rel_form_keys,
13724
+ const l = o.data?.[a];
13725
+ l?.rel_form_keys?.length && this.loadDependencyComponent(
13726
+ l.rel_form_keys,
13724
13727
  t
13725
13728
  );
13726
- const l = Ia(
13727
- u.custom,
13729
+ const u = Ia(
13730
+ l.custom,
13728
13731
  t,
13729
13732
  qe(K.isPc())
13730
13733
  );
13731
- u.style;
13734
+ l.style;
13732
13735
  {
13733
13736
  const p = document.createElement("style");
13734
- p.className = "component-css", p.innerHTML = u.style.compiled, document.head.appendChild(p);
13737
+ p.className = "component-css", p.innerHTML = l.style.compiled, document.head.appendChild(p);
13735
13738
  }
13736
13739
  i(
13737
- l ? l.variables[u.custom?.names[0]?.name] : null
13740
+ u ? u.variables[l.custom?.names[0]?.name] : null
13738
13741
  );
13739
13742
  });
13740
13743
  })
@@ -13758,17 +13761,17 @@ class yu {
13758
13761
  return;
13759
13762
  const n = {};
13760
13763
  e.names?.map((o) => {
13761
- const u = Oa(
13762
- () => new Promise((l, p) => {
13763
- l(i.variables[o.name]);
13764
+ const l = Oa(
13765
+ () => new Promise((u, p) => {
13766
+ u(i.variables[o.name]);
13764
13767
  })
13765
13768
  );
13766
- N.component("custom-vue-" + o.id, u), n["custom-vue-" + o.id] = u;
13769
+ L.component("custom-vue-" + o.id, l), n["custom-vue-" + o.id] = l;
13767
13770
  }), this.engine.getAction().sources = n;
13768
13771
  }
13769
13772
  }
13770
- var _s = /* @__PURE__ */ ((s) => (s.EQ = "EQ", s.IN = "IN", s))(_s || {});
13771
- class Is {
13773
+ var ws = /* @__PURE__ */ ((s) => (s.EQ = "EQ", s.IN = "IN", s))(ws || {});
13774
+ class As {
13772
13775
  pluginName = "DisplayPlugin";
13773
13776
  config;
13774
13777
  behaviors;
@@ -13876,16 +13879,16 @@ class Is {
13876
13879
  });
13877
13880
  const a = e.instance.props;
13878
13881
  t.filter((i) => {
13879
- const n = a.optionConfig === "custom" ? a.options : tt.getCacheDisplay(a.dataBind, i.option_ids).map((o, u) => ({
13880
- value: i.option_ids[u],
13882
+ const n = a.optionConfig === "custom" ? a.options : tt.getCacheDisplay(a.dataBind, i.option_ids).map((o, l) => ({
13883
+ value: i.option_ids[l],
13881
13884
  label: o,
13882
- id: i.option_ids[u]
13885
+ id: i.option_ids[l]
13883
13886
  }));
13884
13887
  return this.filterDisplayConfig(i, n, e);
13885
13888
  }).forEach((i) => this.applyDisplay(i, e)), await Promise.resolve();
13886
13889
  }
13887
13890
  handlerCacheInstanceIdDefaultIsHide(e) {
13888
- const t = se(e) ? this.getInstances(e) : [e];
13891
+ const t = ie(e) ? this.getInstances(e) : [e];
13889
13892
  t.map((a) => {
13890
13893
  if (!this.cacheDefaultIsHide.has(a)) {
13891
13894
  const r = this.engine.getInstanceRowIndex(a);
@@ -13925,7 +13928,7 @@ class Is {
13925
13928
  // ? displayItem.option_ids.includes(item.id)
13926
13929
  // : displayItem.condition.includes(item.value)
13927
13930
  ).map((o) => o.value) : e.condition;
13928
- return e.type === _s.EQ ? Array.isArray(r) ? n.every((o) => r.includes(o)) && n.length === r.length : n[0] === r : Array.isArray(r) ? n.some((o) => r.includes(o)) : n.includes(r);
13931
+ return e.type === ws.EQ ? Array.isArray(r) ? n.every((o) => r.includes(o)) && n.length === r.length : n[0] === r : Array.isArray(r) ? n.some((o) => r.includes(o)) : n.includes(r);
13929
13932
  }
13930
13933
  /**
13931
13934
  * @description 执行显隐操作逻辑
@@ -14052,7 +14055,7 @@ class Is {
14052
14055
  );
14053
14056
  }
14054
14057
  }
14055
- class Cs {
14058
+ class _s {
14056
14059
  pluginName = "JurisdictionPlugin";
14057
14060
  engine;
14058
14061
  behaviors;
@@ -14132,12 +14135,12 @@ class Cs {
14132
14135
  return this.displayConfigControlIds.includes(e.id);
14133
14136
  }
14134
14137
  }
14135
- const Pr = (s) => se(s) || it(s) ? s.length === 0 : !1;
14138
+ const Pr = (s) => ie(s) || it(s) ? s.length === 0 : !1;
14136
14139
  let hu = 0;
14137
- class Vs {
14140
+ class Is {
14138
14141
  pluginName = "MultistageFillingPlugin";
14139
14142
  engine;
14140
- service = de();
14143
+ service = he();
14141
14144
  cacheRequest = new pt(this.service.default);
14142
14145
  weakMap = /* @__PURE__ */ new WeakMap();
14143
14146
  config;
@@ -14155,12 +14158,12 @@ class Vs {
14155
14158
  (r, i) => {
14156
14159
  const n = (r?.parent).children.findIndex((o) => o === r);
14157
14160
  r.children.map((o) => {
14158
- o.children.map(async (u) => {
14159
- const l = t.options?.data[i][u.id];
14160
- if (!Pr(l)) {
14161
+ o.children.map(async (l) => {
14162
+ const u = t.options?.data[i][l.id];
14163
+ if (!Pr(u)) {
14161
14164
  const p = {
14162
- instance: u,
14163
- value: l,
14165
+ instance: l,
14166
+ value: u,
14164
14167
  // rowIndex: this.engine.getInstanceRowIndex(control),
14165
14168
  rowIndex: n
14166
14169
  //qiyu 2023-6-8 在明细表数据行超过100行时,调用API消耗很大。
@@ -14198,20 +14201,20 @@ class Vs {
14198
14201
  g.EMPLOYEE,
14199
14202
  g.EMPLOYEE2
14200
14203
  ])) {
14201
- const u = e.value;
14202
- let l;
14203
- if (u.length) {
14204
+ const l = e.value;
14205
+ let u;
14206
+ if (l.length) {
14204
14207
  if (this.engine.assertInstance(e.instance, g.EMPLOYEE))
14205
- l = await this.cacheRequest.request(
14208
+ u = await this.cacheRequest.request(
14206
14209
  this.service.default.ListUserInfoByIdsUserPrivateV1ApiAppsPOST,
14207
14210
  {
14208
- user_ids: u
14211
+ user_ids: l
14209
14212
  }
14210
14213
  );
14211
14214
  else if (this.engine.assertInstance(e.instance, g.EMPLOYEE2)) {
14212
14215
  const c = await this.engine.emit("search", {
14213
14216
  instance: e.instance,
14214
- value: u.join(","),
14217
+ value: l.join(","),
14215
14218
  rowIndex: e.rowIndex,
14216
14219
  options: {
14217
14220
  params: {
@@ -14222,15 +14225,15 @@ class Vs {
14222
14225
  }
14223
14226
  }
14224
14227
  });
14225
- l = {
14226
- code: L.SUCCESS,
14228
+ u = {
14229
+ code: N.SUCCESS,
14227
14230
  data: c[0]
14228
14231
  };
14229
14232
  } else if (this.engine.assertInstance(e.instance, g.DEPARTMENT))
14230
- l = await this.cacheRequest.request(
14233
+ u = await this.cacheRequest.request(
14231
14234
  this.service.default.GetDepartmentsByIdsDeptPrivateV1ApiAppsPOST,
14232
14235
  {
14233
- department_ids: u,
14236
+ department_ids: l,
14234
14237
  display_level: e.instance.props.displayLevel
14235
14238
  }
14236
14239
  );
@@ -14240,7 +14243,7 @@ class Vs {
14240
14243
  )) {
14241
14244
  const c = await this.engine.emit("search", {
14242
14245
  instance: e.instance,
14243
- value: u?.join(","),
14246
+ value: l?.join(","),
14244
14247
  rowIndex: e.rowIndex,
14245
14248
  options: {
14246
14249
  isNewRequset: !0,
@@ -14252,8 +14255,8 @@ class Vs {
14252
14255
  }
14253
14256
  }
14254
14257
  });
14255
- l = {
14256
- code: L.SUCCESS,
14258
+ u = {
14259
+ code: N.SUCCESS,
14257
14260
  data: c[0]
14258
14261
  };
14259
14262
  }
@@ -14279,8 +14282,8 @@ class Vs {
14279
14282
  field_value: null,
14280
14283
  controlId: q
14281
14284
  };
14282
- if (l && l.code === L.SUCCESS) {
14283
- const b = l.data?.[0];
14285
+ if (u && u.code === N.SUCCESS) {
14286
+ const b = u.data?.[0];
14284
14287
  b && (y.display = b?.fieldValue ? b?.fieldValue[c.fieldCode] : b[c.fieldCode], y.field_value = b?.fieldValue ? b?.fieldValue[c.fieldCode] : b[c.fieldCode]);
14285
14288
  } else
14286
14289
  y.display = null, y.field_value = null;
@@ -14292,27 +14295,27 @@ class Vs {
14292
14295
  const T = this.engine.getInstance(b.controlId);
14293
14296
  return (e.instance?.props).dataBind?.fieldType === "relation-field" && T && T.props?.dataBind?.fieldType === "reference-field" ? `${b.controlId}&${T.props?.dataBind?.fieldCode}` : b.fieldCode;
14294
14297
  });
14295
- const u = e.instance.props.datasourceBind;
14296
- let l = this.engine.getInstanceRowIndex(e.instance);
14297
- l = l !== -1 ? l : void 0;
14298
+ const l = e.instance.props.datasourceBind;
14299
+ let u = this.engine.getInstanceRowIndex(e.instance);
14300
+ u = u !== -1 ? u : void 0;
14298
14301
  let p = "";
14299
14302
  const d = this.engine?.externalParams.data?.content?.model_bind_info_list;
14300
14303
  d && (p = JSON.stringify(d));
14301
14304
  const c = {
14302
- app_id: u.appId,
14303
- data_code: u.dataCode,
14304
- svc_code: u.svcCode,
14305
+ app_id: l.appId,
14306
+ data_code: l.dataCode,
14307
+ svc_code: l.svcCode,
14305
14308
  form_key: (this.engine?.externalParams).data.form_key,
14306
14309
  model_version: this.engine?.externalParams?.data?.content.schema_version,
14307
14310
  data_set: {
14308
- data_code: u.dataCode,
14311
+ data_code: l.dataCode,
14309
14312
  // 有数据过滤的话,需要把数据过滤的值都拿到
14310
- values: u.filters ? Pe(this.engine, u.filters, l) : []
14313
+ values: l.filters ? Pe(this.engine, l.filters, u) : []
14311
14314
  },
14312
14315
  // model_bind_info_list_str: modelBindInfoListStr,
14313
14316
  element_id: e.instance?.id,
14314
14317
  query_map: {
14315
- [u.valueFieldCode]: e.value
14318
+ [l.valueFieldCode]: e.value
14316
14319
  },
14317
14320
  fields: [...t]
14318
14321
  };
@@ -14323,7 +14326,7 @@ class Vs {
14323
14326
  c
14324
14327
  )), this.weakMap.get(e.instance) !== o)
14325
14328
  return;
14326
- if (this.weakMap.delete(e.instance), y && y.code === L.SUCCESS) {
14329
+ if (this.weakMap.delete(e.instance), y && y.code === N.SUCCESS) {
14327
14330
  const b = this.engine.getInstanceRowIndex(
14328
14331
  e.instance
14329
14332
  ), m = y.data.field_value_list, A = e.instance.props.multistageFilling.map((f) => {
@@ -14348,12 +14351,11 @@ class Vs {
14348
14351
  updateStore(e, t) {
14349
14352
  e.forEach((a) => {
14350
14353
  const { controlId: r, field_value: i } = a;
14351
- if (!r || i === "")
14352
- return;
14353
14354
  let n = i;
14354
- if (it(n)) {
14355
- const o = this.engine.getInstance(r, t);
14356
- (o?.fieldType === he.EMPLOYEES || o?.fieldType === he.DEPARTMENTS) && (n = o.props.multiple ? i : i.slice(0, 1));
14355
+ const o = this.engine.getInstance(r, t);
14356
+ if ((o?.fieldType === se.EMPLOYEES || o?.fieldType === se.DEPARTMENTS) && i === "" && (n = void 0), it(n)) {
14357
+ const l = this.engine.getInstance(r, t);
14358
+ (l?.fieldType === se.EMPLOYEES || l?.fieldType === se.DEPARTMENTS) && (n = l.props.multiple ? i : i.slice(0, 1));
14357
14359
  }
14358
14360
  this.engine.setState(
14359
14361
  a.controlId,
@@ -14371,7 +14373,7 @@ class Vs {
14371
14373
  return r.id;
14372
14374
  }
14373
14375
  }
14374
- class Es {
14376
+ class Cs {
14375
14377
  pluginName = "TitlePlugin";
14376
14378
  headerData;
14377
14379
  dataSet;
@@ -14391,7 +14393,7 @@ class Es {
14391
14393
  init() {
14392
14394
  this.engine?.externalParams?.data.header_data && (this.headerData = this.engine?.externalParams?.data.header_data, this.headerData.printUrlList = this.printUrlList, this.dataSet = this.engine?.externalParams?.data.data_set, Array.isArray(this.buttonGroups) ? this.headerData.canCopyDocument = !!this.buttonGroups.find(
14393
14395
  (e) => e.type === ya.SAVE_AS
14394
- )?.props.value : zr(this.buttonGroups) && (this.headerData.canCopyDocument = !!this.buttonGroups.save_as), this.initTitle());
14396
+ )?.props.value : jr(this.buttonGroups) && (this.headerData.canCopyDocument = !!this.buttonGroups.save_as), this.initTitle());
14395
14397
  }
14396
14398
  initTitle() {
14397
14399
  const e = this.engine.runtime.flatInstances.find(
@@ -14459,7 +14461,7 @@ function gu(s, e, t) {
14459
14461
  }
14460
14462
  function Su(s, e, t) {
14461
14463
  s = ae(s, 255), e = ae(e, 255), t = ae(t, 255);
14462
- var a = Math.max(s, e, t), r = Math.min(s, e, t), i = 0, n = a, o = a - r, u = a === 0 ? 0 : o / a;
14464
+ var a = Math.max(s, e, t), r = Math.min(s, e, t), i = 0, n = a, o = a - r, l = a === 0 ? 0 : o / a;
14463
14465
  if (a === r)
14464
14466
  i = 0;
14465
14467
  else {
@@ -14476,12 +14478,12 @@ function Su(s, e, t) {
14476
14478
  }
14477
14479
  i /= 6;
14478
14480
  }
14479
- return { h: i, s: u, v: n };
14481
+ return { h: i, s: l, v: n };
14480
14482
  }
14481
14483
  function bu(s, e, t) {
14482
14484
  s = ae(s, 360) * 6, e = ae(e, 100), t = ae(t, 100);
14483
- var a = Math.floor(s), r = s - a, i = t * (1 - e), n = t * (1 - r * e), o = t * (1 - (1 - r) * e), u = a % 6, l = [t, n, i, i, o, t][u], p = [o, t, t, n, i, i][u], d = [i, i, o, t, t, n][u];
14484
- return { r: l * 255, g: p * 255, b: d * 255 };
14485
+ var a = Math.floor(s), r = s - a, i = t * (1 - e), n = t * (1 - r * e), o = t * (1 - (1 - r) * e), l = a % 6, u = [t, n, i, i, o, t][l], p = [o, t, t, n, i, i][l], d = [i, i, o, t, t, n][l];
14486
+ return { r: u * 255, g: p * 255, b: d * 255 };
14485
14487
  }
14486
14488
  function Tu(s, e, t, a) {
14487
14489
  var r = [
@@ -14649,7 +14651,7 @@ var Sr = {
14649
14651
  };
14650
14652
  function Ee(s) {
14651
14653
  var e = { r: 0, g: 0, b: 0 }, t = 1, a = null, r = null, i = null, n = !1, o = !1;
14652
- return typeof s == "string" && (s = wu(s)), typeof s == "object" && (ue(s.r) && ue(s.g) && ue(s.b) ? (e = Pu(s.r, s.g, s.b), n = !0, o = String(s.r).substr(-1) === "%" ? "prgb" : "rgb") : ue(s.h) && ue(s.s) && ue(s.v) ? (a = ze(s.s), r = ze(s.v), e = bu(s.h, a, r), n = !0, o = "hsv") : ue(s.h) && ue(s.s) && ue(s.l) && (a = ze(s.s), i = ze(s.l), e = gu(s.h, a, i), n = !0, o = "hsl"), Object.prototype.hasOwnProperty.call(s, "a") && (t = s.a)), t = mu(t), {
14654
+ return typeof s == "string" && (s = wu(s)), typeof s == "object" && (pe(s.r) && pe(s.g) && pe(s.b) ? (e = Pu(s.r, s.g, s.b), n = !0, o = String(s.r).substr(-1) === "%" ? "prgb" : "rgb") : pe(s.h) && pe(s.s) && pe(s.v) ? (a = ze(s.s), r = ze(s.v), e = bu(s.h, a, r), n = !0, o = "hsv") : pe(s.h) && pe(s.s) && pe(s.l) && (a = ze(s.s), i = ze(s.l), e = gu(s.h, a, i), n = !0, o = "hsl"), Object.prototype.hasOwnProperty.call(s, "a") && (t = s.a)), t = mu(t), {
14653
14655
  ok: n,
14654
14656
  format: s.format || o,
14655
14657
  r: Math.min(255, Math.max(e.r, 0)),
@@ -14704,10 +14706,10 @@ function wu(s) {
14704
14706
  format: e ? "name" : "hex"
14705
14707
  } : !1)))))))));
14706
14708
  }
14707
- function ue(s) {
14709
+ function pe(s) {
14708
14710
  return !!re.CSS_UNIT.exec(String(s));
14709
14711
  }
14710
- var Ke = 2, br = 0.16, Au = 0.05, _u = 0.05, Iu = 0.15, Ds = 5, ks = 4, Cu = [{
14712
+ var Ke = 2, br = 0.16, Au = 0.05, _u = 0.05, Iu = 0.15, Vs = 5, Es = 4, Cu = [{
14711
14713
  index: 7,
14712
14714
  opacity: 0.15
14713
14715
  }, {
@@ -14766,14 +14768,14 @@ function Or(s, e, t) {
14766
14768
  if (s.h === 0 && s.s === 0)
14767
14769
  return s.s;
14768
14770
  var a;
14769
- return t ? a = s.s - br * e : e === ks ? a = s.s + br : a = s.s + Au * e, a > 1 && (a = 1), t && e === Ds && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
14771
+ return t ? a = s.s - br * e : e === Es ? a = s.s + br : a = s.s + Au * e, a > 1 && (a = 1), t && e === Vs && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
14770
14772
  }
14771
14773
  function wr(s, e, t) {
14772
14774
  var a;
14773
14775
  return t ? a = s.v + _u * e : a = s.v - Iu * e, a > 1 && (a = 1), Number(a.toFixed(2));
14774
14776
  }
14775
14777
  function sa(s) {
14776
- for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Ee(s), r = Ds; r > 0; r -= 1) {
14778
+ for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], a = Ee(s), r = Vs; r > 0; r -= 1) {
14777
14779
  var i = Tr(a), n = We(Ee({
14778
14780
  h: qr(i, r, !0),
14779
14781
  s: Or(i, r, !0),
@@ -14782,13 +14784,13 @@ function sa(s) {
14782
14784
  t.push(n);
14783
14785
  }
14784
14786
  t.push(We(a));
14785
- for (var o = 1; o <= ks; o += 1) {
14786
- var u = Tr(a), l = We(Ee({
14787
- h: qr(u, o),
14788
- s: Or(u, o),
14789
- v: wr(u, o)
14787
+ for (var o = 1; o <= Es; o += 1) {
14788
+ var l = Tr(a), u = We(Ee({
14789
+ h: qr(l, o),
14790
+ s: Or(l, o),
14791
+ v: wr(l, o)
14790
14792
  }));
14791
- t.push(l);
14793
+ t.push(u);
14792
14794
  }
14793
14795
  return e.theme === "dark" ? Cu.map(function(p) {
14794
14796
  var d = p.index, c = p.opacity, q = We(Vu(Ee(e.backgroundColor || "#141414"), Ee(t[d]), c * 100));
@@ -14809,12 +14811,12 @@ var Ft = {
14809
14811
  purple: "#722ED1",
14810
14812
  magenta: "#EB2F96",
14811
14813
  grey: "#666666"
14812
- }, Nt = {}, Lt = {};
14814
+ }, Lt = {}, Nt = {};
14813
14815
  Object.keys(Ft).forEach(function(s) {
14814
- Nt[s] = sa(Ft[s]), Nt[s].primary = Nt[s][5], Lt[s] = sa(Ft[s], {
14816
+ Lt[s] = sa(Ft[s]), Lt[s].primary = Lt[s][5], Nt[s] = sa(Ft[s], {
14815
14817
  theme: "dark",
14816
14818
  backgroundColor: "#141414"
14817
- }), Lt[s].primary = Lt[s][5];
14819
+ }), Nt[s].primary = Nt[s][5];
14818
14820
  });
14819
14821
  var Ar = [], De = [], Eu = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
14820
14822
  function Du() {
@@ -14863,10 +14865,10 @@ function ia(s, e, t) {
14863
14865
  return ia(a, "".concat(e, "-").concat(s.tag, "-").concat(r));
14864
14866
  }));
14865
14867
  }
14866
- function Rs(s) {
14868
+ function Ds(s) {
14867
14869
  return sa(s)[0];
14868
14870
  }
14869
- function Ms(s) {
14871
+ function ks(s) {
14870
14872
  return s ? Array.isArray(s) ? s : [s] : [];
14871
14873
  }
14872
14874
  var Bu = `
@@ -14930,8 +14932,8 @@ var Bu = `
14930
14932
  prepend: !0
14931
14933
  }), Cr = !0);
14932
14934
  });
14933
- }, Nu = ["icon", "primaryColor", "secondaryColor"];
14934
- function Lu(s, e) {
14935
+ }, Lu = ["icon", "primaryColor", "secondaryColor"];
14936
+ function Nu(s, e) {
14935
14937
  if (s == null)
14936
14938
  return {};
14937
14939
  var t = Uu(s, e), a, r;
@@ -14964,30 +14966,30 @@ function Ze(s) {
14964
14966
  function Gu(s, e, t) {
14965
14967
  return e in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
14966
14968
  }
14967
- var Be = {
14969
+ var Fe = {
14968
14970
  primaryColor: "#333",
14969
14971
  secondaryColor: "#E6E6E6",
14970
14972
  calculated: !1
14971
14973
  };
14972
14974
  function $u(s) {
14973
14975
  var e = s.primaryColor, t = s.secondaryColor;
14974
- Be.primaryColor = e, Be.secondaryColor = t || Rs(e), Be.calculated = !!t;
14976
+ Fe.primaryColor = e, Fe.secondaryColor = t || Ds(e), Fe.calculated = !!t;
14975
14977
  }
14976
14978
  function ju() {
14977
- return Ze({}, Be);
14979
+ return Ze({}, Fe);
14978
14980
  }
14979
14981
  var Ie = function(e, t) {
14980
- var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Lu(a, Nu), u = Be;
14981
- if (i && (u = {
14982
+ var a = Ze({}, e, t.attrs), r = a.icon, i = a.primaryColor, n = a.secondaryColor, o = Nu(a, Lu), l = Fe;
14983
+ if (i && (l = {
14982
14984
  primaryColor: i,
14983
- secondaryColor: n || Rs(i)
14985
+ secondaryColor: n || Ds(i)
14984
14986
  }), Fu(), xu(Ir(r), "icon should be icon definiton, but got ".concat(r)), !Ir(r))
14985
14987
  return null;
14986
- var l = r;
14987
- return l && typeof l.icon == "function" && (l = Ze({}, l, {
14988
- icon: l.icon(u.primaryColor, u.secondaryColor)
14989
- })), ia(l.icon, "svg-".concat(l.name), Ze({}, o, {
14990
- "data-icon": l.name,
14988
+ var u = r;
14989
+ return u && typeof u.icon == "function" && (u = Ze({}, u, {
14990
+ icon: u.icon(l.primaryColor, l.secondaryColor)
14991
+ })), ia(u.icon, "svg-".concat(u.name), Ze({}, o, {
14992
+ "data-icon": u.name,
14991
14993
  width: "1em",
14992
14994
  height: "1em",
14993
14995
  fill: "currentColor",
@@ -15036,8 +15038,8 @@ function Wu(s, e) {
15036
15038
  try {
15037
15039
  for (t = t.call(s); !(r = (n = t.next()).done) && (a.push(n.value), !(e && a.length === e)); r = !0)
15038
15040
  ;
15039
- } catch (u) {
15040
- i = !0, o = u;
15041
+ } catch (l) {
15042
+ i = !0, o = l;
15041
15043
  } finally {
15042
15044
  try {
15043
15045
  !r && t.return != null && t.return();
@@ -15053,8 +15055,8 @@ function Qu(s) {
15053
15055
  if (Array.isArray(s))
15054
15056
  return s;
15055
15057
  }
15056
- function xs(s) {
15057
- var e = Ms(s), t = Hu(e, 2), a = t[0], r = t[1];
15058
+ function Rs(s) {
15059
+ var e = ks(s), t = Hu(e, 2), a = t[0], r = t[1];
15058
15060
  return ga.setTwoToneColors({
15059
15061
  primaryColor: a,
15060
15062
  secondaryColor: r
@@ -15096,8 +15098,8 @@ function tp(s, e) {
15096
15098
  try {
15097
15099
  for (t = t.call(s); !(r = (n = t.next()).done) && (a.push(n.value), !(e && a.length === e)); r = !0)
15098
15100
  ;
15099
- } catch (u) {
15100
- i = !0, o = u;
15101
+ } catch (l) {
15102
+ i = !0, o = l;
15101
15103
  } finally {
15102
15104
  try {
15103
15105
  !r && t.return != null && t.return();
@@ -15146,23 +15148,23 @@ function sp(s, e) {
15146
15148
  r = a[i], !(e.indexOf(r) >= 0) && (t[r] = s[r]);
15147
15149
  return t;
15148
15150
  }
15149
- xs("#1890ff");
15151
+ Rs("#1890ff");
15150
15152
  var Ce = function(e, t) {
15151
- var a, r = Dr({}, e, t.attrs), i = r.class, n = r.icon, o = r.spin, u = r.rotate, l = r.tabindex, p = r.twoToneColor, d = r.onClick, c = rp(r, Xu), q = (a = {
15153
+ var a, r = Dr({}, e, t.attrs), i = r.class, n = r.icon, o = r.spin, l = r.rotate, u = r.tabindex, p = r.twoToneColor, d = r.onClick, c = rp(r, Xu), q = (a = {
15152
15154
  anticon: !0
15153
- }, na(a, "anticon-".concat(n.name), !!n.name), na(a, i, i), a), y = o === "" || o || n.name === "loading" ? "anticon-spin" : "", b = l;
15155
+ }, na(a, "anticon-".concat(n.name), !!n.name), na(a, i, i), a), y = o === "" || o || n.name === "loading" ? "anticon-spin" : "", b = u;
15154
15156
  b === void 0 && d && (b = -1, c.tabindex = b);
15155
- var T = u ? {
15156
- msTransform: "rotate(".concat(u, "deg)"),
15157
- transform: "rotate(".concat(u, "deg)")
15158
- } : void 0, m = Ms(p), A = Yu(m, 2), f = A[0], v = A[1];
15159
- return Fe("span", Dr({
15157
+ var T = l ? {
15158
+ msTransform: "rotate(".concat(l, "deg)"),
15159
+ transform: "rotate(".concat(l, "deg)")
15160
+ } : void 0, m = ks(p), A = Yu(m, 2), f = A[0], v = A[1];
15161
+ return Le("span", Dr({
15160
15162
  role: "img",
15161
15163
  "aria-label": n.name
15162
15164
  }, c, {
15163
15165
  onClick: d,
15164
15166
  class: q
15165
- }), [Fe(ga, {
15167
+ }), [Le(ga, {
15166
15168
  class: y,
15167
15169
  icon: n,
15168
15170
  primaryColor: f,
@@ -15179,8 +15181,8 @@ Ce.props = {
15179
15181
  Ce.displayName = "AntdIcon";
15180
15182
  Ce.inheritAttrs = !1;
15181
15183
  Ce.getTwoToneColor = Ju;
15182
- Ce.setTwoToneColor = xs;
15183
- const Bs = Ce;
15184
+ Ce.setTwoToneColor = Rs;
15185
+ const Ms = Ce;
15184
15186
  var ip = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
15185
15187
  const np = ip;
15186
15188
  function kr(s) {
@@ -15199,7 +15201,7 @@ function op(s, e, t) {
15199
15201
  }
15200
15202
  var Sa = function(e, t) {
15201
15203
  var a = kr({}, e, t.attrs);
15202
- return Fe(Bs, kr({}, a, {
15204
+ return Le(Ms, kr({}, a, {
15203
15205
  icon: np
15204
15206
  }), null);
15205
15207
  };
@@ -15224,14 +15226,14 @@ function dp(s, e, t) {
15224
15226
  }
15225
15227
  var ba = function(e, t) {
15226
15228
  var a = Rr({}, e, t.attrs);
15227
- return Fe(Bs, Rr({}, a, {
15229
+ return Le(Ms, Rr({}, a, {
15228
15230
  icon: pp
15229
15231
  }), null);
15230
15232
  };
15231
15233
  ba.displayName = "QuestionCircleOutlined";
15232
15234
  ba.inheritAttrs = !1;
15233
15235
  const cp = ba;
15234
- class Fs {
15236
+ class xs {
15235
15237
  pluginName = "ActionUtilsPlugin";
15236
15238
  engine;
15237
15239
  config;
@@ -15281,46 +15283,46 @@ class Fs {
15281
15283
  return this.config.language;
15282
15284
  }
15283
15285
  toast(e, t) {
15284
- const a = se(t) ? t : t?.type;
15286
+ const a = ie(t) ? t : t?.type;
15285
15287
  let r, i = 2e3;
15286
- t && !se(t) && (r = t.onClose, i = t.duration ?? 2e3);
15288
+ t && !ie(t) && (r = t.onClose, i = t.duration ?? 2e3);
15287
15289
  const n = r;
15288
15290
  if (r = function() {
15289
15291
  n?.(), setTimeout(() => {
15290
15292
  document.body.style.overflow = "";
15291
15293
  }, 500);
15292
- }, console.log(N.config.globalProperties), this.getDevice() === "desktop") {
15294
+ }, console.log(L.config.globalProperties), this.getDevice() === "desktop") {
15293
15295
  switch (a) {
15294
15296
  case "success":
15295
- N.config.globalProperties.$success({
15297
+ L.config.globalProperties.$success({
15296
15298
  class: "bl-modal-content-pre bl-clear-active",
15297
15299
  content: e,
15298
15300
  onOk: r
15299
15301
  });
15300
15302
  break;
15301
15303
  case "error":
15302
- N.config.globalProperties.$error({
15304
+ L.config.globalProperties.$error({
15303
15305
  class: "bl-modal-content-pre bl-clear-active",
15304
15306
  content: e,
15305
15307
  onOk: r
15306
15308
  });
15307
15309
  break;
15308
15310
  case "warning":
15309
- N.config.globalProperties.$warning({
15311
+ L.config.globalProperties.$warning({
15310
15312
  class: "bl-modal-content-pre bl-clear-active",
15311
15313
  content: e,
15312
15314
  onOk: r
15313
15315
  });
15314
15316
  break;
15315
15317
  default:
15316
- N.config.globalProperties.$info({
15318
+ L.config.globalProperties.$info({
15317
15319
  class: "bl-modal-content-pre bl-clear-active",
15318
15320
  content: e,
15319
15321
  onOk: r
15320
15322
  });
15321
15323
  break;
15322
15324
  }
15323
- hs();
15325
+ cs();
15324
15326
  } else {
15325
15327
  let o = { message: e, onClose: r, duration: i };
15326
15328
  if (a === "warning")
@@ -15341,24 +15343,24 @@ class Fs {
15341
15343
  o = { type: "loading", ...o };
15342
15344
  break;
15343
15345
  }
15344
- N.config.globalProperties.$toast(o);
15346
+ L.config.globalProperties.$toast(o);
15345
15347
  }
15346
15348
  }
15347
15349
  confirm(e, t) {
15348
15350
  return new Promise((a) => {
15349
- this.getDevice() === "desktop" ? N.config.globalProperties.$confirm({
15351
+ this.getDevice() === "desktop" ? L.config.globalProperties.$confirm({
15350
15352
  title: e,
15351
15353
  content: t,
15352
15354
  icon: () => Gt(lp),
15353
- okText: ie.$t("common.confirm", "确定"),
15354
- cancelText: ie.$t("common.cancel", "取消"),
15355
+ okText: ne.$t("common.confirm", "确定"),
15356
+ cancelText: ne.$t("common.cancel", "取消"),
15355
15357
  onOk() {
15356
15358
  a(!0);
15357
15359
  },
15358
15360
  onCancel() {
15359
15361
  a(!1);
15360
15362
  }
15361
- }) : N.config.globalProperties.$dialog.confirm({
15363
+ }) : L.config.globalProperties.$dialog.confirm({
15362
15364
  title: e,
15363
15365
  message: t
15364
15366
  }).then(() => {
@@ -15370,7 +15372,7 @@ class Fs {
15370
15372
  }
15371
15373
  getHttp(e) {
15372
15374
  const t = process.env.VUE_APP_API_RUN;
15373
- return pe(e ?? t);
15375
+ return de(e ?? t);
15374
15376
  }
15375
15377
  getBasePath() {
15376
15378
  return process.env.VUE_APP_BASE_PATH || "";
@@ -15402,7 +15404,7 @@ class Fs {
15402
15404
  emp_ids: i,
15403
15405
  org_type: Ii.INTERNAL
15404
15406
  })), this.engine.assertInstance(e, g.EMPLOYEE2)) {
15405
- const u = await this.engine.emit("search", {
15407
+ const l = await this.engine.emit("search", {
15406
15408
  instance: e,
15407
15409
  value: Array.isArray(i) ? i.join(",") : i,
15408
15410
  options: {
@@ -15414,8 +15416,8 @@ class Fs {
15414
15416
  }
15415
15417
  });
15416
15418
  o = {
15417
- code: L.SUCCESS,
15418
- data: u[0]
15419
+ code: N.SUCCESS,
15420
+ data: l[0]
15419
15421
  };
15420
15422
  }
15421
15423
  if (this.engine.assertInstance(e, [
@@ -15433,9 +15435,9 @@ class Fs {
15433
15435
  g.SELECT_RELATION,
15434
15436
  g.AMOUNT
15435
15437
  ])) {
15436
- let u = "";
15437
- const l = this.engine?.externalParams.data?.content?.model_bind_info_list;
15438
- l && (u = JSON.stringify(l));
15438
+ let l = "";
15439
+ const u = this.engine?.externalParams.data?.content?.model_bind_info_list;
15440
+ u && (l = JSON.stringify(u));
15439
15441
  const { datasourceBind: p, dataBind: d, optionConfig: c, options: q } = e.props;
15440
15442
  if (c === "custom")
15441
15443
  o = {
@@ -15481,17 +15483,17 @@ class Fs {
15481
15483
  limit: 100,
15482
15484
  query_mode: "VALUE"
15483
15485
  };
15484
- this.config.isPreview ? b.model_bind_info_list_str = u : b?.model_bind_info_list_str && delete b.model_bind_info_list_str, o = await this.getHttp().post(
15486
+ this.config.isPreview ? b.model_bind_info_list_str = l : b?.model_bind_info_list_str && delete b.model_bind_info_list_str, o = await this.getHttp().post(
15485
15487
  "/v1/private/bizModel/getFieldsValueWithFilter",
15486
15488
  b
15487
15489
  );
15488
15490
  }
15489
15491
  }
15490
- if (o && o.code === L.SUCCESS)
15492
+ if (o && o.code === N.SUCCESS)
15491
15493
  return o.data;
15492
15494
  {
15493
- const u = this.getDevice() === "desktop";
15494
- o?.code == "1201702" && (u ? N.config.globalProperties.$message.error(o?.message) : N.config.globalProperties.$toast.fail(o?.message));
15495
+ const l = this.getDevice() === "desktop";
15496
+ o?.code == "1201702" && (l ? L.config.globalProperties.$message.error(o?.message) : L.config.globalProperties.$toast.fail(o?.message));
15495
15497
  }
15496
15498
  return null;
15497
15499
  }
@@ -15511,7 +15513,7 @@ class Fs {
15511
15513
  return i = n.value, i;
15512
15514
  {
15513
15515
  const o = await this.getDisplay(e, t);
15514
- return i = yi(o), i;
15516
+ return i = di(o), i;
15515
15517
  }
15516
15518
  }
15517
15519
  getPageStatus() {
@@ -15537,7 +15539,7 @@ class Fs {
15537
15539
  ), JSON.parse(JSON.stringify(this.engine.externalParams?.url || {}));
15538
15540
  }
15539
15541
  getRouter() {
15540
- const e = N.config.globalProperties.$router;
15542
+ const e = L.config.globalProperties.$router;
15541
15543
  return {
15542
15544
  push: e.push,
15543
15545
  replace: e.replace,
@@ -15547,13 +15549,13 @@ class Fs {
15547
15549
  };
15548
15550
  }
15549
15551
  async validateInstance(e, t) {
15550
- return await Kr(), !(await this.engine.emit("validateInstance", {
15551
- instance: se(e) ? this.engine.getInstance(e, t) : e,
15552
+ return await Hr(), !(await this.engine.emit("validateInstance", {
15553
+ instance: ie(e) ? this.engine.getInstance(e, t) : e,
15552
15554
  rowIndex: t
15553
15555
  })).includes(!1);
15554
15556
  }
15555
15557
  }
15556
- class Ns {
15558
+ class Bs {
15557
15559
  pluginName = "DataViewPlugin";
15558
15560
  engine;
15559
15561
  buttonGroups;
@@ -15602,7 +15604,7 @@ class Ns {
15602
15604
  (n) => n.type === "draft"
15603
15605
  )) {
15604
15606
  const o = e.data_model.data_field_list.some(
15605
- (u) => u.field_code === "process_status"
15607
+ (l) => l.field_code === "process_status"
15606
15608
  );
15607
15609
  a.props.saveAs.isShow === !1 && o && this.setSaveDraftButton(!0);
15608
15610
  }
@@ -15617,7 +15619,7 @@ class Ns {
15617
15619
  async handlerFormSubmit(e) {
15618
15620
  const t = e.options?.type, a = this.engine?.externalParams?.data?.form_process_param.draft, r = t === "saveAs", i = !!this.uId;
15619
15621
  e.options?.changeSubmitStatus("disable");
15620
- const n = fs(
15622
+ const n = ys(
15621
15623
  this.engine,
15622
15624
  e.instance.id,
15623
15625
  {
@@ -15643,16 +15645,16 @@ class Ns {
15643
15645
  o
15644
15646
  ) ?? n;
15645
15647
  if (p === !1)
15646
- e.options?.fail(ie.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
15648
+ e.options?.fail(ne.$t("common.cancel", "操作取消")), e.options?.changeSubmitStatus("reset");
15647
15649
  else {
15648
- const d = de(), c = await rn.awaitWraper(
15650
+ const d = he(), c = await rn.awaitWraper(
15649
15651
  i && !r && !a ? d.default.UpdateDataPagePrivateV1ApiAppsPOST({
15650
15652
  payload: p
15651
15653
  }) : d.default.ApplySubmitPagePrivateV1ApiAppsPOST({
15652
15654
  payload: p
15653
15655
  })
15654
15656
  );
15655
- c && c.code === L.SUCCESS ? await this.onAfterSubmit(p, c, o) ? await e.options?.success() : e.options?.changeSubmitStatus("reset") : (await e.options?.fail(c.message), e.options?.changeSubmitStatus("reset"));
15657
+ c && c.code === N.SUCCESS ? await this.onAfterSubmit(p, c, o) ? await e.options?.success() : e.options?.changeSubmitStatus("reset") : (await e.options?.fail(c.message), e.options?.changeSubmitStatus("reset"));
15656
15658
  }
15657
15659
  }
15658
15660
  async onBeforeSubmit(e, t = {}) {
@@ -15672,16 +15674,16 @@ class Ns {
15672
15674
  options: t
15673
15675
  }
15674
15676
  );
15675
- return a?.[0] === !1 ? !1 : a?.[0]?.find((i) => Lr(i)) || void 0;
15677
+ return a?.[0] === !1 ? !1 : a?.[0]?.find((i) => Nr(i)) || void 0;
15676
15678
  }
15677
15679
  async onAfterSubmit(e, t, a = {}) {
15678
15680
  const r = te(e);
15679
15681
  if (!r.data_uid) {
15680
15682
  r.data_uid = t.data;
15681
- const o = qs(this.engine), u = r.data_set.values.find(
15682
- (l) => l.code === o
15683
+ const o = bs(this.engine), l = r.data_set.values.find(
15684
+ (u) => u.code === o
15683
15685
  );
15684
- u && (u.value = t.data);
15686
+ l && (l.value = t.data);
15685
15687
  }
15686
15688
  const i = await this.engine?.emit("engine-submitted", {
15687
15689
  // 统一engine-submitted事件value参数,都是uid
@@ -15715,7 +15717,7 @@ class Ns {
15715
15717
  function Ut(...s) {
15716
15718
  console.log(...s);
15717
15719
  }
15718
- class Ls {
15720
+ class Fs {
15719
15721
  pluginName = "ApprovalPlugin";
15720
15722
  engine;
15721
15723
  behaviors;
@@ -15741,11 +15743,11 @@ class Ls {
15741
15743
  // 审批确认提示框
15742
15744
  approvalConfirm(e) {
15743
15745
  const t = e.options.runTask.command_type, a = e.options.hiddenModal;
15744
- t !== "rejectAndTerminate" && K.isPc() && !e.options.isNewApproval && !a ? oi.confirm({
15746
+ t !== "rejectAndTerminate" && K.isPc() && !e.options.isNewApproval && !a ? ii.confirm({
15745
15747
  content: e.options.runTask.sureMessage,
15746
- icon: Fe(cp),
15747
- okText: ie.$t("common.confirm", "确定"),
15748
- cancelText: ie.$t("common.cancel", "取消"),
15748
+ icon: Le(cp),
15749
+ okText: ne.$t("common.confirm", "确定"),
15750
+ cancelText: ne.$t("common.cancel", "取消"),
15749
15751
  okButtonProps: this.okButtonProps,
15750
15752
  onOk: () => (Ut(e, "ApprovalPlugin.ts, onOk, ~777~"), new Promise((r, i) => {
15751
15753
  this.okButtonProps.loading = !0, this.submitData(e, r, i);
@@ -15755,11 +15757,11 @@ class Ls {
15755
15757
  // 审批提交数据
15756
15758
  async submitData(e, t, a) {
15757
15759
  Ut(e, "ApprovalPlugin.ts, submitData, ~777~");
15758
- const r = de(), i = await this.genApprovalSubmitPayload(e);
15759
- i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(ie.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
15760
+ const r = he(), i = await this.genApprovalSubmitPayload(e);
15761
+ i === !1 ? (this.okButtonProps.loading = !1, a && a(), e.options.fail(ne.$t("common.cancel", "操作取消"))) : r.default.ApprovalSubmitPagePrivateV1ApiAppsPOST({
15760
15762
  payload: i
15761
15763
  }).then((n) => {
15762
- n.code === L.SUCCESS ? this.engine?.emit("engine-submitted", {
15764
+ n.code === N.SUCCESS ? this.engine?.emit("engine-submitted", {
15763
15765
  value: n.data,
15764
15766
  options: {
15765
15767
  payload: i
@@ -15773,7 +15775,7 @@ class Ls {
15773
15775
  async genApprovalSubmitPayload(e) {
15774
15776
  const t = [];
15775
15777
  ca(this.engine?.runtime.instance, (i) => {
15776
- const n = fs(
15778
+ const n = ys(
15777
15779
  this.engine,
15778
15780
  i.id,
15779
15781
  {
@@ -15785,7 +15787,7 @@ class Ls {
15785
15787
  n.run_task = e.options.runTask, t.push(n);
15786
15788
  });
15787
15789
  const r = await this.onBeforeSubmitFormatParams(t[0]) ?? t[0];
15788
- return mi(r);
15790
+ return fi(r);
15789
15791
  }
15790
15792
  async onBeforeSubmitFormatParams(e) {
15791
15793
  const t = await this.engine?.emit(
@@ -15794,10 +15796,10 @@ class Ls {
15794
15796
  value: te(e)
15795
15797
  }
15796
15798
  );
15797
- return t?.[0] === !1 ? !1 : t?.[0]?.find((r) => Lr(r)) || void 0;
15799
+ return t?.[0] === !1 ? !1 : t?.[0]?.find((r) => Nr(r)) || void 0;
15798
15800
  }
15799
15801
  }
15800
- class Us {
15802
+ class Ls {
15801
15803
  pluginName = "FormRelationFieldPlugin";
15802
15804
  engine;
15803
15805
  apply(e) {
@@ -15806,7 +15808,7 @@ class Us {
15806
15808
  if (t?.dataOrigin === "sublist") {
15807
15809
  const r = e.getControlIdMapping();
15808
15810
  Object.keys(r).map((i) => {
15809
- if (r[i].dataBind instanceof Le && r[i].dataBind.fieldCode === t?.relation_key && t?.relation_key) {
15811
+ if (xe(r[i].dataBind) && r[i].dataBind.fieldCode === t?.relation_key && t?.relation_key) {
15810
15812
  const n = e.getInstance(i);
15811
15813
  n !== void 0 && n.controlType !== "list" && (e.setFields(a, {
15812
15814
  [t.relation_key]: t.relation_uid
@@ -15818,10 +15820,10 @@ class Us {
15818
15820
  }
15819
15821
  }
15820
15822
  let yp = 0;
15821
- class Gs {
15823
+ class Ns {
15822
15824
  pluginName = "DataSourceSearchPlugin";
15823
15825
  engine;
15824
- service = de();
15826
+ service = he();
15825
15827
  cacheRequest = new pt(this.service.default);
15826
15828
  config;
15827
15829
  weakMap = /* @__PURE__ */ new WeakMap();
@@ -15852,40 +15854,40 @@ class Gs {
15852
15854
  async onDataSourceSearch(e, t = { page_size: 50, page_index: 1 }, a) {
15853
15855
  const { instance: r, value: i } = e, n = r.props, o = String(++yp);
15854
15856
  this.weakMap.set(r, o);
15855
- let u;
15857
+ let l;
15856
15858
  if (this.engine.assertInstance(r, g.EMPLOYEE))
15857
- u = (await this.getUserListByIds(i)).data;
15859
+ l = (await this.getUserListByIds(i)).data;
15858
15860
  else if (this.engine.assertInstance(r, [
15859
15861
  g.DEPARTMENT,
15860
15862
  g.DEPARTMENT_COLUMN
15861
15863
  ]))
15862
- u = Array.isArray(i) ? await this.getDepartmentsByIds(
15864
+ l = Array.isArray(i) ? await this.getDepartmentsByIds(
15863
15865
  i,
15864
15866
  r.props.displayLevel
15865
15867
  ) : await this.remoteHandle(e);
15866
15868
  else if (this.engine.assertInstance(r, g.TREE))
15867
- a ? u = await this.getScreenItem(e, {
15869
+ a ? l = await this.getScreenItem(e, {
15868
15870
  page_size: 500,
15869
15871
  page_index: 1
15870
- }) : u = await this.remoteTreeHandle(e);
15872
+ }) : l = await this.remoteTreeHandle(e);
15871
15873
  else if (this.engine.assertInstance(r, g.EMPLOYEE2))
15872
- u = await this.remoteHandle(e, t);
15874
+ l = await this.remoteHandle(e, t);
15873
15875
  else if (this.engine.assertInstance(r, g.DEPARTMENT2))
15874
- u = await this.remoteHandle(e, t);
15876
+ l = await this.remoteHandle(e, t);
15875
15877
  else if (this.engine.assertInstance(r, g.ORGANIZATION_SELECTION))
15876
- u = await this.remoteOrganizationHandle(e, t), console.log("搜索组织", u);
15878
+ l = await this.remoteOrganizationHandle(e, t), console.log("搜索组织", l);
15877
15879
  else if (this.isOptions(n))
15878
- u = n.options, u = this.differenceBy(u, e);
15880
+ l = n.options, l = this.differenceBy(l, e);
15879
15881
  else if (this.isDataSourceBind(n) && r?.type !== "list-view") {
15880
- u = await this.remoteHandle(e);
15881
- const p = u.map((d) => ({ label: d.label, value: d.value }));
15882
+ l = await this.remoteHandle(e);
15883
+ const p = l.map((d) => ({ label: d.label, value: d.value }));
15882
15884
  this.engine.setInstance(r, "options", p, e.rowIndex);
15883
15885
  }
15884
- const l = {
15886
+ const u = {
15885
15887
  ...e,
15886
- value: u
15888
+ value: l
15887
15889
  };
15888
- return await this.engine.emit("resolve", l), l.value;
15890
+ return await this.engine.emit("resolve", u), u.value;
15889
15891
  }
15890
15892
  async getUserListByIds(e) {
15891
15893
  if (e.length)
@@ -15906,10 +15908,10 @@ class Gs {
15906
15908
  const { options: a = {} } = e, { params: r = void 0 } = a;
15907
15909
  let i = "", n = [], o = "";
15908
15910
  e.options?.getInfoById ? n = e.value : e.options?.mobileTree ? o = e.value : i = e.value;
15909
- const u = e.instance, l = u.props?.datasourceBind;
15910
- if (!l)
15911
+ const l = e.instance, u = l.props?.datasourceBind;
15912
+ if (!u)
15911
15913
  return [];
15912
- const p = l.filters ?? [], d = Array.isArray(r) ? r : [r ?? {}], q = u.props?.dataBind?.fieldCode, y = e.value, b = Pe(
15914
+ const p = u.filters ?? [], d = Array.isArray(r) ? r : [r ?? {}], q = l.props?.dataBind?.fieldCode, y = e.value, b = Pe(
15913
15915
  this.engine,
15914
15916
  p,
15915
15917
  e.rowIndex,
@@ -15919,24 +15921,24 @@ class Gs {
15919
15921
  value: y
15920
15922
  }
15921
15923
  ],
15922
- u?.props
15924
+ l?.props
15923
15925
  );
15924
- l.displayBoList, "attributes" in l && l.attributes !== null && l.attributes[0].value, r?.isFilter || (Array.isArray(y) ? y.map((m) => m.trim()).join(",") : se(y) && y.trim());
15926
+ u.displayBoList, "attributes" in u && u.attributes !== null && u.attributes[0].value, r?.isFilter || (Array.isArray(y) ? y.map((m) => m.trim()).join(",") : ie(y) && y.trim());
15925
15927
  const T = {
15926
- app_id: l.appId || this.engine?.externalParams?.data?.app_id,
15928
+ app_id: u.appId || this.engine?.externalParams?.data?.app_id,
15927
15929
  key_word: i,
15928
- org_schema_id: e.options?.organizationView || u?.props.organizationView || "6",
15930
+ org_schema_id: e.options?.organizationView || l?.props?.organizationView || "6",
15929
15931
  ...t,
15930
15932
  parent_org_unit_id: o,
15931
15933
  org_unit_ids: n,
15932
15934
  data_set: {
15933
- data_code: l.dataCode,
15935
+ data_code: u.dataCode,
15934
15936
  values: b
15935
15937
  },
15936
- relation_form_key: l.formCode,
15938
+ relation_form_key: u.formCode,
15937
15939
  save_form_key: this.engine?.externalParams?.data?.form_key,
15938
15940
  filters: j(p),
15939
- orders: j(l.orders ?? [])
15941
+ orders: j(u.orders ?? [])
15940
15942
  };
15941
15943
  return await this.cacheRequest.request(
15942
15944
  this.service.default.SelectBizOrgUnitListFilterDeptPrivateV1ApiAppsPOST,
@@ -15954,7 +15956,7 @@ class Gs {
15954
15956
  i.orders?.forEach((d) => {
15955
15957
  o[d.columnName] = d.desc ? "desc" : "asc";
15956
15958
  });
15957
- const u = i.attributes.filter((d) => {
15959
+ const l = i.attributes.filter((d) => {
15958
15960
  if (d.key === "displayBoList")
15959
15961
  return d.value;
15960
15962
  });
@@ -15972,14 +15974,14 @@ class Gs {
15972
15974
  data_filters: j(i.filters)
15973
15975
  },
15974
15976
  save_datas: {},
15975
- response_display_bo_list: u[0]?.value ?? [],
15977
+ response_display_bo_list: l[0]?.value ?? [],
15976
15978
  response_fields: [],
15977
15979
  value_field_code: i.valueFieldCode,
15978
15980
  query_mode: "LABEL",
15979
15981
  filters: [
15980
15982
  {
15981
15983
  ctrl_value: e.value,
15982
- display_bo_list: u[0]?.value ?? [],
15984
+ display_bo_list: l[0]?.value ?? [],
15983
15985
  query_type: "LIKE"
15984
15986
  }
15985
15987
  ]
@@ -15997,10 +15999,10 @@ class Gs {
15997
15999
  // 临时限制3000条
15998
16000
  // --bug=1015867 --user=孟庆飞 【testqw环境-设计c态、运行态-人员组件】前后端做中间数据的懒加载,不能只限制50条 https://www.tapd.cn/67265839/s/1334587
15999
16001
  async remoteHandle(e, t = { page_size: 100, page_index: 1 }) {
16000
- const { instance: a, options: r = {} } = e, { params: i = void 0, isNewRequset: n } = r, o = e.value, u = a.id, l = a.props?.datasourceBind;
16001
- if (!l)
16002
+ const { instance: a, options: r = {} } = e, { params: i = void 0, isNewRequset: n } = r, o = e.value, l = a.id, u = a.props?.datasourceBind;
16003
+ if (!u)
16002
16004
  return [];
16003
- const p = l.filters ?? [];
16005
+ const p = u.filters ?? [];
16004
16006
  let d = "";
16005
16007
  this.engine.assertInstance(a, g.AMOUNT) ? d = a.props.dataBind.currency.fieldCode : d = a.props?.dataBind?.fieldCode;
16006
16008
  const c = Array.isArray(i) ? i : [i ?? {}], q = Pe(
@@ -16018,12 +16020,12 @@ class Gs {
16018
16020
  let y;
16019
16021
  const b = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16020
16022
  b && this.config.isPreviewMode && (y = JSON.stringify(b));
16021
- let T = l.displayBoList;
16022
- "attributes" in l && l.attributes !== null && (T = l.attributes[0].value);
16023
+ let T = u.displayBoList;
16024
+ "attributes" in u && u.attributes !== null && (T = u.attributes[0].value);
16023
16025
  let m = "";
16024
- i?.isFilter ? m = "" : Array.isArray(o) ? m = o.map((h) => h.trim()).join(",") : se(o) ? m = o.trim() : m = o;
16026
+ i?.isFilter ? m = "" : Array.isArray(o) ? m = o.map((h) => h.trim()).join(",") : ie(o) ? m = o.trim() : m = o;
16025
16027
  let A = [];
16026
- const f = l?.keywordMapping;
16028
+ const f = u?.keywordMapping;
16027
16029
  f !== void 0 && f !== "" ? A = [
16028
16030
  {
16029
16031
  ctrl_value: m,
@@ -16037,20 +16039,20 @@ class Gs {
16037
16039
  // 人员
16038
16040
  }));
16039
16041
  const v = {
16040
- app_id: l.appId || this.engine?.externalParams?.data?.app_id,
16041
- data_code: l.dataCode,
16042
- svc_code: l.svcCode,
16042
+ app_id: u.appId || this.engine?.externalParams?.data?.app_id,
16043
+ data_code: u.dataCode,
16044
+ svc_code: u.svcCode,
16043
16045
  field_code: d,
16044
16046
  data_set: {
16045
- data_code: l.dataCode,
16047
+ data_code: u.dataCode,
16046
16048
  values: q
16047
16049
  },
16048
- element_id: u,
16049
- value_field_code: i?.valueFieldCode ?? l.valueFieldCode,
16050
+ element_id: l,
16051
+ value_field_code: i?.valueFieldCode ?? u.valueFieldCode,
16050
16052
  filters: A,
16051
16053
  model: "",
16052
16054
  model_version: this.engine?.externalParams?.data?.content.schema_version,
16053
- orders: j(l.orders ?? []),
16055
+ orders: j(u.orders ?? []),
16054
16056
  response_display_bo_list: j(T),
16055
16057
  form_key: this.engine?.externalParams?.data.form_key,
16056
16058
  ...t,
@@ -16096,10 +16098,10 @@ class Gs {
16096
16098
  const { instance: t, options: a = {} } = e, r = t?.props, { params: i = void 0 } = a, { selectFilterVlaue: n } = a;
16097
16099
  let o = e.value;
16098
16100
  e.value && (o = String(e.value).trim());
16099
- const u = t.id, l = t.props?.datasourceBind;
16100
- if (!l)
16101
+ const l = t.id, u = t.props?.datasourceBind;
16102
+ if (!u)
16101
16103
  return [];
16102
- const p = l.filters ?? [];
16104
+ const p = u.filters ?? [];
16103
16105
  let d = "";
16104
16106
  d = (t.props?.dataBind).fieldCode;
16105
16107
  const q = Pe(
@@ -16117,36 +16119,36 @@ class Gs {
16117
16119
  let y;
16118
16120
  const b = this.engine?.externalParams?.data?.content?.model_bind_info_list;
16119
16121
  b && this.config.isPreviewMode && (y = JSON.stringify(b));
16120
- const T = l.attributes[0].value, m = () => {
16122
+ const T = u.attributes[0].value, m = () => {
16121
16123
  const P = {
16122
16124
  user_name: "employee_name",
16123
16125
  current_user_id: "employee_id",
16124
16126
  email: "email",
16125
16127
  phone: "phone",
16126
16128
  department_id: "department_id"
16127
- }, w = l.rootNode;
16129
+ }, w = u.rootNode;
16128
16130
  let I = w.value[0];
16129
16131
  if (w.type === "system") {
16130
16132
  const C = P[I];
16131
16133
  I = this.config.userInfo[C];
16132
16134
  }
16133
16135
  return I;
16134
- }, A = l?.attributes[1]?.value[0]?.value, f = r?.defaultCollapse === "specified" ? r.defaultCollapseLevel ?? 1 : 1, v = r?.defaultCollapse === "all" ? 1 : 0;
16136
+ }, A = u?.attributes[1]?.value[0]?.value, f = r?.defaultCollapse === "specified" ? r.defaultCollapseLevel ?? 1 : 1, v = r?.defaultCollapse === "all" ? 1 : 0;
16135
16137
  let O = [];
16136
16138
  n && (O = [
16137
16139
  {
16138
- column_name: l.filterCode,
16140
+ column_name: u.filterCode,
16139
16141
  column_name_list: [],
16140
16142
  query_type: 0,
16141
16143
  value: [n]
16142
16144
  }
16143
16145
  ]);
16144
16146
  let E = [];
16145
- const h = l?.keywordMapping;
16147
+ const h = u?.keywordMapping;
16146
16148
  h !== void 0 && h !== "" ? E = [
16147
16149
  {
16148
16150
  ctrl_value: i?.isFilter ? "" : o,
16149
- field_code: l.keywordMapping
16151
+ field_code: u.keywordMapping
16150
16152
  }
16151
16153
  ] : E = [
16152
16154
  {
@@ -16157,21 +16159,21 @@ class Gs {
16157
16159
  ];
16158
16160
  const S = {
16159
16161
  app_id: this.engine?.externalParams?.data?.app_id,
16160
- data_code: l.dataCode,
16161
- svc_code: l.svcCode,
16162
+ data_code: u.dataCode,
16163
+ svc_code: u.svcCode,
16162
16164
  field_code: d,
16163
16165
  custom_data: O,
16164
16166
  data_set: {
16165
- data_code: l.dataCode,
16167
+ data_code: u.dataCode,
16166
16168
  values: q
16167
16169
  },
16168
- element_id: u,
16169
- value_field_code: l.valueFieldCode,
16170
+ element_id: l,
16171
+ value_field_code: u.valueFieldCode,
16170
16172
  filters: E,
16171
16173
  model: "",
16172
16174
  model_version: this.engine?.externalParams?.data?.content.schema_version,
16173
16175
  model_bind_info_list_str: y,
16174
- orders: j(l.orders ?? []),
16176
+ orders: j(u.orders ?? []),
16175
16177
  response_display_bo_list: j(T),
16176
16178
  form_key: this.engine?.externalParams?.data.form_key,
16177
16179
  query_mode: i?.queryMode || "LABLE",
@@ -16229,7 +16231,7 @@ class Gs {
16229
16231
  }
16230
16232
  }
16231
16233
  let hp = 0;
16232
- class $s {
16234
+ class Us {
16233
16235
  pluginName = "DataFilterPlugin";
16234
16236
  engine;
16235
16237
  // 缓存控件change会影响哪些控件的数据过滤
@@ -16273,7 +16275,7 @@ class $s {
16273
16275
  r.map(async (i) => {
16274
16276
  const n = this.engine.getInstanceRowIndex(i), o = String(++hp);
16275
16277
  this.weakMap.set(i, o);
16276
- const u = await this.engine.emit("search", {
16278
+ const l = await this.engine.emit("search", {
16277
16279
  instance: i,
16278
16280
  rowIndex: n,
16279
16281
  value: this.engine.getState(i.id, n),
@@ -16285,15 +16287,15 @@ class $s {
16285
16287
  });
16286
16288
  if (this.weakMap.get(i) === o) {
16287
16289
  if (n !== void 0) {
16288
- const l = i.parent?.parent;
16289
- if (!(l?.parent).children.find((d) => d === l)) {
16290
+ const u = i.parent?.parent;
16291
+ if (!(u?.parent).children.find((d) => d === u)) {
16290
16292
  this.weakMap.delete(i);
16291
16293
  return;
16292
16294
  }
16293
16295
  }
16294
16296
  this.weakMap.delete(i), this.resetValue(
16295
16297
  i,
16296
- u,
16298
+ l,
16297
16299
  n
16298
16300
  );
16299
16301
  }
@@ -16308,20 +16310,20 @@ class $s {
16308
16310
  const i = this.engine.getState(e.id, a), n = e.props.options ?? [];
16309
16311
  if (Array.isArray(i)) {
16310
16312
  const o = [];
16311
- for (const u of n)
16312
- i.includes(u.value) && o.push(u.value);
16313
+ for (const l of n)
16314
+ i.includes(l.value) && o.push(l.value);
16313
16315
  i.slice().sort().toString() !== o.slice().sort().toString() && (r = o);
16314
16316
  } else
16315
- n.filter((u) => u.value === i).length || (r = "");
16317
+ n.filter((l) => l.value === i).length || (r = "");
16316
16318
  if (this.engine.assertInstance(e, g.TREE) && t[0].length && i.length) {
16317
16319
  r = [];
16318
- const o = Array.isArray(i) ? i : [i], u = (l, p, d) => {
16319
- if (l.forEach((c) => {
16320
- p.includes(c.value) ? d.push(c.value) : c.children.length && u(c.children, p, d);
16320
+ const o = Array.isArray(i) ? i : [i], l = (u, p, d) => {
16321
+ if (u.forEach((c) => {
16322
+ p.includes(c.value) ? d.push(c.value) : c.children.length && l(c.children, p, d);
16321
16323
  }), d.length === p.length || d === p)
16322
16324
  return d;
16323
16325
  };
16324
- u(t[0], o, r);
16326
+ l(t[0], o, r);
16325
16327
  }
16326
16328
  r !== void 0 && i.length !== 0 && e.controlType === "form" && this.engine.setState(e.id, r, a);
16327
16329
  }
@@ -16346,11 +16348,17 @@ class $s {
16346
16348
  getFiltersImpactInstanceIds(e) {
16347
16349
  const t = [];
16348
16350
  return e.forEach((a) => {
16349
- a instanceof Hr ? t.push(...this.getFiltersImpactInstanceIds(a.children)) : a?.rightVariableBo?.type === "form" && t.push(...a.rightVariableBo.value[0].split(","));
16351
+ if (a.type === "conditions") {
16352
+ const r = a;
16353
+ t.push(...this.getFiltersImpactInstanceIds(r.children));
16354
+ } else {
16355
+ const r = a;
16356
+ r?.rightVariableBo?.type === "form" && t.push(...r.rightVariableBo.value[0].split(","));
16357
+ }
16350
16358
  }), t;
16351
16359
  }
16352
16360
  }
16353
- class js {
16361
+ class Gs {
16354
16362
  pluginName = "ReferenceAndCalcFieldPlugin";
16355
16363
  engine;
16356
16364
  apply(e) {
@@ -16361,13 +16369,13 @@ class js {
16361
16369
  if (e.props !== "defaultState" || e.value === "readonly")
16362
16370
  return;
16363
16371
  const t = e.instance.props.dataBind;
16364
- !t || ![he.REFERENCE_FIELD, he.CALC_FIELD].includes(
16372
+ !t || ![se.REFERENCE_FIELD, se.CALC_FIELD].includes(
16365
16373
  t.fieldType
16366
16374
  ) || this.engine.setInstance(e.instance, "defaultState", "readonly");
16367
16375
  });
16368
16376
  }
16369
16377
  }
16370
- class Hs {
16378
+ class $s {
16371
16379
  pluginName = "SubtableChangePlugin";
16372
16380
  engine;
16373
16381
  apply(e) {
@@ -16399,17 +16407,17 @@ class Hs {
16399
16407
  return;
16400
16408
  const r = this.engine.rawStore.DELETE_IDS;
16401
16409
  r[t.id] === void 0 && (r[t.id] = []);
16402
- const i = a.map((n) => n?.uid).filter((n) => !Jt(n));
16410
+ const i = a.map((n) => n?.uid).filter((n) => !Jt(n)).filter((n) => !e.value.some((l) => l.uid === n));
16403
16411
  r[t.id] = r[t.id].concat(i);
16404
16412
  }
16405
16413
  }
16406
- class zs {
16414
+ class js {
16407
16415
  pluginName = "DataSourceManagePlugin";
16408
16416
  engine;
16409
16417
  configs;
16410
16418
  content;
16411
16419
  isPreviewMode = !1;
16412
- service = de();
16420
+ service = he();
16413
16421
  cacheRequest = new pt(this.service.default);
16414
16422
  constructor(e, t) {
16415
16423
  this.content = e, this.configs = e.datasources, this.isPreviewMode = t;
@@ -16574,23 +16582,23 @@ class Ta {
16574
16582
  if (i === "new" && !this.engine?.externalParams?.data.data_set)
16575
16583
  return "";
16576
16584
  const n = this.engine?.externalParams?.data?.data_set?.values, o = n.find(
16577
- (l) => l.code === r
16585
+ (u) => u.code === r
16578
16586
  ).field_type;
16579
- let u = n.find((l) => l.code === r).display;
16587
+ let l = n.find((u) => u.code === r).display;
16580
16588
  switch (o) {
16581
16589
  case "people":
16582
- u = u.map((l) => l.employee_name).join("/");
16590
+ l = l.map((u) => u.employee_name).join("/");
16583
16591
  break;
16584
16592
  case "department":
16585
- u = u.map((l) => l.department_name).join("/");
16593
+ l = l.map((u) => u.department_name).join("/");
16586
16594
  break;
16587
16595
  case "timestamp":
16588
- u ? u = Gr(u).format("YYYY-MM-DD") : u = "";
16596
+ l ? l = Gr(l).format("YYYY-MM-DD") : l = "";
16589
16597
  break;
16590
16598
  default:
16591
- u = u;
16599
+ l = l;
16592
16600
  }
16593
- return u;
16601
+ return l;
16594
16602
  }
16595
16603
  }
16596
16604
  }
@@ -16599,7 +16607,7 @@ let fp = class {
16599
16607
  this.controlId = e, this.property = t, this.expression = a;
16600
16608
  }
16601
16609
  };
16602
- class Ks extends Ta {
16610
+ class Hs extends Ta {
16603
16611
  constructor(e) {
16604
16612
  super(), this.options = e, this.parserFXConfig();
16605
16613
  }
@@ -16640,20 +16648,20 @@ class Ks extends Ta {
16640
16648
  r,
16641
16649
  n
16642
16650
  );
16643
- let u = !1;
16651
+ let l = !1;
16644
16652
  Kl.eachExpressions(
16645
16653
  n,
16646
- (l) => {
16647
- if (Bo(l) && l.variableName === "__datasource__") {
16648
- u = !0;
16649
- const p = l.keys[0];
16654
+ (u) => {
16655
+ if (Bo(u) && u.variableName === "__datasource__") {
16656
+ l = !0;
16657
+ const p = u.keys[0];
16650
16658
  this.datasourceDependencyGraph.has(p) ? this.datasourceDependencyGraph.get(p).add(o) : this.datasourceDependencyGraph.set(
16651
16659
  p,
16652
16660
  /* @__PURE__ */ new Set([o])
16653
16661
  );
16654
16662
  }
16655
16663
  }
16656
- ), u || this.nonDatasourceDependencyGraph.add(o);
16664
+ ), l || this.nonDatasourceDependencyGraph.add(o);
16657
16665
  });
16658
16666
  });
16659
16667
  }
@@ -16719,7 +16727,7 @@ class vp {
16719
16727
  this.type = e, this.expression = t;
16720
16728
  }
16721
16729
  }
16722
- class Ws extends Ta {
16730
+ class zs extends Ta {
16723
16731
  constructor(e) {
16724
16732
  super(), this.options = e, this.parserFXConfig();
16725
16733
  }
@@ -16754,19 +16762,19 @@ class Ws extends Ta {
16754
16762
  default:
16755
16763
  n = i;
16756
16764
  }
16757
- const o = r.getTenant(), u = t.find((T) => T.type === n);
16758
- if (!u)
16765
+ const o = r.getTenant(), l = t.find((T) => T.type === n);
16766
+ if (!l)
16759
16767
  return;
16760
- let l = "";
16768
+ let u = "";
16761
16769
  const {
16762
16770
  props: { value: p, i18n: d, fx: c }
16763
- } = u;
16771
+ } = l;
16764
16772
  if (!p)
16765
16773
  return;
16766
16774
  let { data: q, url: y } = this.engine.externalParams;
16767
- const b = ws.split("-")[0];
16775
+ const b = qs.split("-")[0];
16768
16776
  if (d && Object.keys(d).length) {
16769
- l = d[b] || d.zh;
16777
+ u = d[b] || d.zh;
16770
16778
  const T = a.state.multipleTabs;
16771
16779
  T[y.sappId]?.panesList?.forEach((m) => {
16772
16780
  if (m.formKey === y.formId || m.formKey === y.processInstanceId) {
@@ -16776,16 +16784,16 @@ class Ws extends Ta {
16776
16784
  m.title = A[0]?.props?.i18n[b] || d[b] || d.zh;
16777
16785
  }
16778
16786
  }), a.commit("setMultipleTabs", T), setTimeout(() => {
16779
- String(o.value).trim() !== "" ? document.title = l + "|" + o.value : document.title = l;
16787
+ String(o.value).trim() !== "" ? document.title = u + "|" + o.value : document.title = u;
16780
16788
  }, 1e3);
16781
16789
  return;
16782
16790
  }
16783
16791
  if (c && Object.keys(c).length) {
16784
16792
  const T = (A, f) => {
16785
- (f || f === 0) && (l = f), a.state.multipleTabs[y.sappId]?.panesList?.forEach((O) => {
16786
- (O.formKey === y.formId || O.formKey === y.processInstanceId) && (O.title = l);
16793
+ (f || f === 0) && (u = f), a.state.multipleTabs[y.sappId]?.panesList?.forEach((O) => {
16794
+ (O.formKey === y.formId || O.formKey === y.processInstanceId) && (O.title = u);
16787
16795
  }), setTimeout(() => {
16788
- String(o.value).trim() !== "" ? document.title = l + "|" + o.value : document.title = l;
16796
+ String(o.value).trim() !== "" ? document.title = u + "|" + o.value : document.title = u;
16789
16797
  }, 1e3);
16790
16798
  }, m = [...this.nonDatasourceDependencyGraph].find(
16791
16799
  (A) => A.type === n
@@ -16801,8 +16809,8 @@ class Ws extends Ta {
16801
16809
  if (i === "fx" && n) {
16802
16810
  const o = n?.expression;
16803
16811
  if (o) {
16804
- const u = this.expressionParser.parser(o), l = new vp(a, u);
16805
- this.nonDatasourceDependencyGraph.add(l);
16812
+ const l = this.expressionParser.parser(o), u = new vp(a, l);
16813
+ this.nonDatasourceDependencyGraph.add(u);
16806
16814
  }
16807
16815
  }
16808
16816
  });
@@ -16819,8 +16827,8 @@ const mp = {
16819
16827
  belong_dept_all: "belong_dept_all",
16820
16828
  current_dept_id: "current_dept_id"
16821
16829
  };
16822
- var Qs = /* @__PURE__ */ ((s) => (s.subtable = "subtable", s.current = "current", s))(Qs || {}), Y = /* @__PURE__ */ ((s) => (s.source = "source", s.url = "url", s.local = "local", s.fileId = "fileId", s))(Y || {});
16823
- class Js extends Ta {
16830
+ var Ks = /* @__PURE__ */ ((s) => (s.subtable = "subtable", s.current = "current", s))(Ks || {}), Y = /* @__PURE__ */ ((s) => (s.source = "source", s.url = "url", s.local = "local", s.fileId = "fileId", s))(Y || {});
16831
+ class Ws extends Ta {
16824
16832
  constructor(e) {
16825
16833
  super(), this.options = e, this.selectedRows = e.selectedRows ?? [], this.engine = e.engine;
16826
16834
  }
@@ -16878,15 +16886,15 @@ class Js extends Ta {
16878
16886
  }
16879
16887
  }
16880
16888
  let la = 0;
16881
- const Xs = (s) => {
16889
+ const Qs = (s) => {
16882
16890
  if (la += 1, !(la >= 10 || !s?.parent))
16883
- return s?.type === g.LIST_VIEW ? s.id : Xs(s?.parent);
16891
+ return s?.type === g.LIST_VIEW ? s.id : Qs(s?.parent);
16884
16892
  };
16885
16893
  async function Pp(s) {
16886
16894
  const { engine: e, handler: t, instance: a } = s;
16887
16895
  let r;
16888
- return t.params.fx.expression ? r = new Js({
16889
- selectedRows: e?.getState(Xs(a))?.selectedRows ?? [],
16896
+ return t.params.fx.expression ? r = new Ws({
16897
+ selectedRows: e?.getState(Qs(a))?.selectedRows ?? [],
16890
16898
  engine: e
16891
16899
  }).parserFXConfig(t.params.fx) : r = t.params.url, t.params.openMode === oa.newTab ? window.open(r) : t.params.openMode === oa.currentTab && (window.location.href = r), la = 0, {
16892
16900
  url: r
@@ -16908,7 +16916,7 @@ async function gp(s, e) {
16908
16916
  ), i === Y.url && (e?.setInstance(r, Y.local, ""), e?.setInstance(r, Y.fileId, "")), i === Y.local && e?.setInstance(r, Y.url, "");
16909
16917
  });
16910
16918
  }
16911
- const Ys = (s) => s?.type === g.LIST_VIEW ? s.id : Ys(s?.parent), ua = Z({}), Sp = (s, e) => {
16919
+ const Js = (s) => s?.type === g.LIST_VIEW ? s.id : Js(s?.parent), ua = Z({}), Sp = (s, e) => {
16912
16920
  Object.assign(ua.value, { [s]: e });
16913
16921
  }, bp = K.isPc();
16914
16922
  async function Tp({
@@ -16917,11 +16925,11 @@ async function Tp({
16917
16925
  }, t, a, r, i) {
16918
16926
  function n() {
16919
16927
  const P = process.env.VUE_APP_API_RUN;
16920
- return pe(P);
16928
+ return de(P);
16921
16929
  }
16922
16930
  const {
16923
- service_name: { svc_code: o, data_svc_mode: u },
16924
- input_param: l,
16931
+ service_name: { svc_code: o, data_svc_mode: l },
16932
+ input_param: u,
16925
16933
  orders: p,
16926
16934
  filters: d,
16927
16935
  return_type: { return_name: c, return_num: q },
@@ -16929,14 +16937,14 @@ async function Tp({
16929
16937
  page_type: b
16930
16938
  } = s.params, T = {
16931
16939
  app_id: t
16932
- }, m = new Js({
16933
- selectedRows: b === "list" ? a?.getState(Ys(e))?.selectedRows ?? [] : [],
16940
+ }, m = new Ws({
16941
+ selectedRows: b === "list" ? a?.getState(Js(e))?.selectedRows ?? [] : [],
16934
16942
  engine: a
16935
16943
  });
16936
- if (u !== et.selectMore) {
16944
+ if (l !== et.selectMore) {
16937
16945
  const P = {};
16938
16946
  await Promise.all(
16939
- l.map(async (w) => {
16947
+ u.map(async (w) => {
16940
16948
  let I = "";
16941
16949
  const C = w.rightVariableBo.value;
16942
16950
  switch (w.rightVariableBo.type) {
@@ -16993,7 +17001,7 @@ async function Tp({
16993
17001
  }
16994
17002
  });
16995
17003
  const { mode: O, multiple: E, fillList: h } = y;
16996
- if (u == et.selectMore || u == et.selectOne) {
17004
+ if (l == et.selectMore || l == et.selectOne) {
16997
17005
  const P = c === "all" ? 999 : c === "num" ? q : 1;
16998
17006
  Object.assign(T?.query, {
16999
17007
  page_size: P,
@@ -17018,14 +17026,14 @@ async function Tp({
17018
17026
  options: I,
17019
17027
  isOptions: !!I.length
17020
17028
  };
17021
- }, _ = (P, w, I, C, R, V) => le(a.getState(P, V)) && !le(C[I][w]) ? R === "relation-field" ? [C[I][w]?.value || ""] : C[I][w] ? C[I][w]?.split(",") : [] : R === "relation-field" ? C[I][w]?.value || "" : C[I][w];
17029
+ }, _ = (P, w, I, C, R, V) => ue(a.getState(P, V)) && !ue(C[I][w]) ? R === "relation-field" ? [C[I][w]?.value || ""] : C[I][w] ? C[I][w]?.split(",") : [] : R === "relation-field" ? C[I][w]?.value || "" : C[I][w];
17022
17030
  try {
17023
17031
  const P = await n().post(
17024
17032
  "/v1/private/dataSvc/handleDataBySvcCode?",
17025
17033
  T
17026
17034
  );
17027
17035
  if (P.data && P.data?.value) {
17028
- const w = le(P.data?.value) ? P.data?.value : [P.data?.value];
17036
+ const w = ue(P.data?.value) ? P.data?.value : [P.data?.value];
17029
17037
  if (w.length) {
17030
17038
  const I = (V, F, H, B) => {
17031
17039
  const U = w.slice(0, 50);
@@ -17033,8 +17041,8 @@ async function Tp({
17033
17041
  const W = U.filter(
17034
17042
  (D, $) => $ == 0
17035
17043
  ), Q = W.map((D) => {
17036
- const $ = {}, oe = Object.keys(D).includes(F);
17037
- return le(
17044
+ const $ = {}, le = Object.keys(D).includes(F);
17045
+ return ue(
17038
17046
  _(
17039
17047
  V,
17040
17048
  F,
@@ -17043,7 +17051,7 @@ async function Tp({
17043
17051
  H,
17044
17052
  B
17045
17053
  )
17046
- ) && oe && Object.assign($, {
17054
+ ) && le && Object.assign($, {
17047
17055
  [F]: U.map(($e, dt) => _(
17048
17056
  V,
17049
17057
  F,
@@ -17062,7 +17070,7 @@ async function Tp({
17062
17070
  // 需要为空 因为altogether已经处理
17063
17071
  B
17064
17072
  );
17065
- return le(x) ? Array.from(new Set(x)) : x;
17073
+ return ue(x) ? Array.from(new Set(x)) : x;
17066
17074
  }
17067
17075
  return _(
17068
17076
  V,
@@ -17089,7 +17097,7 @@ async function Tp({
17089
17097
  V.fieldCode,
17090
17098
  V?.fieldType,
17091
17099
  i
17092
- ), W = le(U) && H ? U.filter(
17100
+ ), W = ue(U) && H ? U.filter(
17093
17101
  (Q) => B.includes(Q)
17094
17102
  ) : U;
17095
17103
  F[V.controlId] = W;
@@ -17117,9 +17125,9 @@ async function Tp({
17117
17125
  D,
17118
17126
  x.fieldType,
17119
17127
  Q
17120
- ), oe = le($) ? $ : [$], Ge = B[x.controlId].isOptions ? oe?.filter(
17128
+ ), le = ue($) ? $ : [$], Ge = B[x.controlId].isOptions ? le?.filter(
17121
17129
  ($e) => B[x.controlId].options?.includes($e)
17122
- ) ? oe : void 0 : $;
17130
+ ) ? le : void 0 : $;
17123
17131
  V[Q][x.controlId] = Ge;
17124
17132
  }
17125
17133
  );
@@ -17135,19 +17143,19 @@ async function Tp({
17135
17143
  });
17136
17144
  }
17137
17145
  else
17138
- O === Qs.current && R.forEach((V) => {
17146
+ O === Ks.current && R.forEach((V) => {
17139
17147
  let F;
17140
17148
  const H = a.getInstance(V.controlId), B = I(
17141
17149
  V.controlId,
17142
17150
  V.fieldCode,
17143
17151
  V?.fieldType
17144
17152
  ), { isOptions: U, options: W } = S(V.controlId);
17145
- if (le(a.getState(V.controlId)))
17153
+ if (ue(a.getState(V.controlId)))
17146
17154
  H?.props?.optionConfig === "datasource" ? F = B : F = U ? B.filter(
17147
17155
  (Q) => W.includes(Q)
17148
17156
  ) : B;
17149
17157
  else {
17150
- const Q = ["radio", "select", "select-relation"], x = le(B) ? B[0] : B;
17158
+ const Q = ["radio", "select", "select-relation"], x = ue(B) ? B[0] : B;
17151
17159
  Q.includes(H?.type || "") ? H?.props?.optionConfig === "datasource" ? F = x : F = W.includes(x) ? x : "" : F = B;
17152
17160
  }
17153
17161
  a.setState(
@@ -17164,7 +17172,7 @@ async function Tp({
17164
17172
  output: P.data
17165
17173
  };
17166
17174
  {
17167
- const w = P.message || ie.$t("message.calledServiceFail", "调用服务失败");
17175
+ const w = P.message || ne.$t("message.calledServiceFail", "调用服务失败");
17168
17176
  return bp ? $t.error(w) : Ht.fail(w), {
17169
17177
  input: T,
17170
17178
  output: P.data,
@@ -17191,14 +17199,14 @@ async function qp(s) {
17191
17199
  s.params?.error
17192
17200
  );
17193
17201
  else {
17194
- const i = ie.$t(
17202
+ const i = ne.$t(
17195
17203
  "message.callJsFailed",
17196
17204
  "调用JS方法失败" + a.method + "方法不存在"
17197
17205
  );
17198
17206
  K.isPc() ? $t.error(i) : Ht.fail(i);
17199
17207
  }
17200
17208
  } catch (i) {
17201
- const n = ie.$t(
17209
+ const n = ne.$t(
17202
17210
  "message.callJsFailed",
17203
17211
  "调用JS方法失败" + a.method + "方法 " + i
17204
17212
  );
@@ -17206,7 +17214,7 @@ async function qp(s) {
17206
17214
  }
17207
17215
  }
17208
17216
  }
17209
- class Zs {
17217
+ class Xs {
17210
17218
  config;
17211
17219
  events;
17212
17220
  engine;
@@ -17224,9 +17232,9 @@ class Zs {
17224
17232
  }
17225
17233
  // 格式化事件数据,eg. sLvHxjkRTN: {on_blur: ControlsEvent}
17226
17234
  formatConfig(e) {
17227
- return hi(e) ? {} : Pi(
17235
+ return ci(e) ? {} : vi(
17228
17236
  e,
17229
- (t) => gi(t, "eventKey")
17237
+ (t) => mi(t, "eventKey")
17230
17238
  );
17231
17239
  }
17232
17240
  engineAddEventListener(e, t) {
@@ -17250,31 +17258,31 @@ class Zs {
17250
17258
  let r;
17251
17259
  for (let i = 0; i < a.cases[0].handlers.length; i++) {
17252
17260
  const n = a.cases[0].handlers, o = n[i];
17253
- let u;
17261
+ let l;
17254
17262
  if (o.method === be.openLink)
17255
17263
  await Pp({
17256
17264
  engine: this.engine,
17257
17265
  handler: o,
17258
17266
  instance: t?.instance
17259
- }), e === "on_focus" && o.params.openMode === "newTab" && hs(), r = u;
17267
+ }), e === "on_focus" && o.params.openMode === "newTab" && cs(), r = l;
17260
17268
  else if (o.method === be.setInstance)
17261
17269
  await gp(o, this.engine);
17262
17270
  else if (o.method === be.querySvc) {
17263
- const l = await Tp(
17271
+ const u = await Tp(
17264
17272
  { handler: o, instance: t?.instance },
17265
17273
  this.app_id,
17266
17274
  this.engine,
17267
17275
  this.userInfo,
17268
17276
  t?.rowIndex
17269
17277
  );
17270
- l?.error && (u = !1), r = l;
17278
+ u?.error && (l = !1), r = u;
17271
17279
  } else
17272
- o.method === be.jsMethod && (u = await qp({
17280
+ o.method === be.jsMethod && (l = await qp({
17273
17281
  handler: o,
17274
17282
  engine: this.engine,
17275
17283
  params: r
17276
17284
  }), r = void 0);
17277
- if (u === !1 && n?.[i + 1]?.method !== be.jsMethod)
17285
+ if (l === !1 && n?.[i + 1]?.method !== be.jsMethod)
17278
17286
  break;
17279
17287
  }
17280
17288
  }
@@ -17285,21 +17293,21 @@ const Op = (s, e = "date") => {
17285
17293
  s = `${s}`;
17286
17294
  let t = /* @__PURE__ */ new Date();
17287
17295
  s.length > 9 && !/:|^[^-][-]+|\//.test(s) ? t = /* @__PURE__ */ new Date(+s) : t = new Date(`${s}`.replace(/-/g, "/"));
17288
- const a = t.getFullYear(), r = t.getMonth() + 1, i = t.getDate(), n = t.getHours(), o = t.getMinutes(), u = t.getSeconds();
17289
- let l = [0, 0];
17296
+ const a = t.getFullYear(), r = t.getMonth() + 1, i = t.getDate(), n = t.getHours(), o = t.getMinutes(), l = t.getSeconds();
17297
+ let u = [0, 0];
17290
17298
  switch (e) {
17291
17299
  case "datetime":
17292
- l = [
17300
+ u = [
17293
17301
  (/* @__PURE__ */ new Date(
17294
- `${a}/${r}/${i} ${n}:${o}:${u}`
17302
+ `${a}/${r}/${i} ${n}:${o}:${l}`
17295
17303
  )).valueOf(),
17296
17304
  (/* @__PURE__ */ new Date(
17297
- `${a}/${r}/${i} ${n}:${o}:${u + 1}`
17305
+ `${a}/${r}/${i} ${n}:${o}:${l + 1}`
17298
17306
  )).valueOf() - 1
17299
17307
  ];
17300
17308
  break;
17301
17309
  case "dateminutes":
17302
- l = [
17310
+ u = [
17303
17311
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:${o}:00`)).valueOf(),
17304
17312
  (/* @__PURE__ */ new Date(
17305
17313
  `${a}/${r}/${i} ${o === 59 ? n + 1 : n}:${o === 59 ? "00" : o + 1}:00`
@@ -17307,37 +17315,37 @@ const Op = (s, e = "date") => {
17307
17315
  ];
17308
17316
  break;
17309
17317
  case "datemin":
17310
- l = [
17318
+ u = [
17311
17319
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:${o}:00`)).valueOf(),
17312
17320
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:${o}:59`)).valueOf()
17313
17321
  ];
17314
17322
  break;
17315
17323
  case "datehour":
17316
- l = [
17324
+ u = [
17317
17325
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:00:00`)).valueOf(),
17318
17326
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} ${n}:59:59`)).valueOf()
17319
17327
  ];
17320
17328
  break;
17321
17329
  case "date":
17322
- l = [
17330
+ u = [
17323
17331
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} 00:00:00`)).valueOf(),
17324
17332
  (/* @__PURE__ */ new Date(`${a}/${r}/${i} 23:59:59`)).valueOf()
17325
17333
  ];
17326
17334
  break;
17327
17335
  case "month":
17328
- l = [
17336
+ u = [
17329
17337
  (/* @__PURE__ */ new Date(`${a}/${r}/01 00:00:00`)).valueOf(),
17330
17338
  +r == 12 ? (/* @__PURE__ */ new Date(`${a + 1}/01/01 00:00:00`)).valueOf() - 1 : (/* @__PURE__ */ new Date(`${a}/${r + 1}/01 00:00:00`)).valueOf() - 1
17331
17339
  ];
17332
17340
  break;
17333
17341
  case "year":
17334
- l = [
17342
+ u = [
17335
17343
  (/* @__PURE__ */ new Date(`${a}/01/01 00:00:00`)).valueOf(),
17336
17344
  (/* @__PURE__ */ new Date(`${a + 1}/01/01 00:00:00`)).valueOf() - 1
17337
17345
  ];
17338
17346
  break;
17339
17347
  }
17340
- return l.map((p) => `${p}`);
17348
+ return u.map((p) => `${p}`);
17341
17349
  }, wp = (s) => {
17342
17350
  const e = Op((/* @__PURE__ */ new Date()).valueOf(), s);
17343
17351
  return Number(e[0]);
@@ -17358,9 +17366,9 @@ function _p(s, e, t = {}, a) {
17358
17366
  pageStatus: i,
17359
17367
  descript: n,
17360
17368
  device: o,
17361
- engineOptionsBuilder: u,
17362
- parentEngine: l,
17363
- locale: p = ie.global.locale
17369
+ engineOptionsBuilder: l,
17370
+ parentEngine: u,
17371
+ locale: p = ne.global.locale
17364
17372
  } = s, {
17365
17373
  route: d = {},
17366
17374
  store: c = {},
@@ -17368,7 +17376,7 @@ function _p(s, e, t = {}, a) {
17368
17376
  registeredConfigs: y
17369
17377
  } = t, {
17370
17378
  query: { enginedebug: b = !1, chn: T }
17371
- } = d, m = M(q), A = JSON.parse(r?.data.content?.model || "[]"), f = new Li(
17379
+ } = d, m = M(q), A = JSON.parse(r?.data.content?.model || "[]"), f = new Ni(
17372
17380
  r?.data?.content?.schema_version
17373
17381
  ), v = r?.data.content?.events;
17374
17382
  let O = r?.data.content?.control_events;
@@ -17389,7 +17397,7 @@ function _p(s, e, t = {}, a) {
17389
17397
  ), I = [
17390
17398
  r.data.data_model,
17391
17399
  ...r.data.sub_data_model_list ?? []
17392
- ], C = r?.data?.content?.i18n, R = (D, $, oe = "zh") => $?.[oe]?.[D.id], V = G(
17400
+ ], C = r?.data?.content?.i18n, R = (D, $, le = "zh") => $?.[le]?.[D.id], V = G(
17393
17401
  () => c.state.tenant?.tenant_auth?.virtual_org || c.state.tenant?.tenant_auth?.virtual_org?.external_org
17394
17402
  ), F = (D) => {
17395
17403
  D = Ui(
@@ -17404,8 +17412,8 @@ function _p(s, e, t = {}, a) {
17404
17412
  events: v
17405
17413
  }
17406
17414
  ), st.isCopy(r.url.type) && st.setClearValueFieldCode(D), D.pageStatus = i;
17407
- const $ = iu(D, w), oe = R(D, C, p.split("-")[0]);
17408
- switch ($ && nu(D, $), oe && ou(D, oe), pu(
17415
+ const $ = iu(D, w), le = R(D, C, p.split("-")[0]);
17416
+ switch ($ && nu(D, $), le && ou(D, le), pu(
17409
17417
  D,
17410
17418
  I,
17411
17419
  w
@@ -17431,7 +17439,7 @@ function _p(s, e, t = {}, a) {
17431
17439
  }, H = te(
17432
17440
  r.data?.content?.button_groups ?? r.data?.button_group ?? []
17433
17441
  ), B = [
17434
- new Fs({
17442
+ new xs({
17435
17443
  // env: '',
17436
17444
  userInfo: c.state.userInfo,
17437
17445
  tenant: c.state.tenant,
@@ -17440,26 +17448,26 @@ function _p(s, e, t = {}, a) {
17440
17448
  pageStatus: i,
17441
17449
  isPreview: m
17442
17450
  }),
17443
- new Ns({
17451
+ new Bs({
17444
17452
  buttonGroups: r.data?.content?.button_groups,
17445
17453
  behaviors: S,
17446
17454
  showDataViewOperationBtn: s.showDataViewOperationBtn,
17447
17455
  channelParamId: T
17448
17456
  }),
17449
- new js(),
17450
- new Cs(S, h),
17451
- new Is(h, S),
17452
- new Gs({
17457
+ new Gs(),
17458
+ new _s(S, h),
17459
+ new As(h, S),
17460
+ new Ns({
17453
17461
  userInfo: c.state.userInfo,
17454
17462
  isPreviewMode: m
17455
17463
  }),
17456
- new $s(),
17457
- new Es({
17464
+ new Us(),
17465
+ new Cs({
17458
17466
  descript: n,
17459
17467
  printUrlList: e,
17460
17468
  buttonGroups: H
17461
17469
  }),
17462
- new Vs({
17470
+ new Is({
17463
17471
  isPreviewMode: m
17464
17472
  }),
17465
17473
  new Gi(
@@ -17468,7 +17476,7 @@ function _p(s, e, t = {}, a) {
17468
17476
  ),
17469
17477
  new $i(v ?? {}),
17470
17478
  new ji(O ?? {}),
17471
- new Zs(
17479
+ new Xs(
17472
17480
  E ?? {},
17473
17481
  s?.state?.data?.app_id || "",
17474
17482
  c.state.userInfo || {}
@@ -17478,15 +17486,15 @@ function _p(s, e, t = {}, a) {
17478
17486
  behavior: Je(S)
17479
17487
  }),
17480
17488
  new zi(r?.data?.content?.style ?? {}),
17481
- new Ls({ behaviors: S }),
17482
- new Us(),
17483
- new Hs(),
17484
- new zs(r?.data?.content, m),
17485
- new Ks({
17489
+ new Fs({ behaviors: S }),
17490
+ new Ls(),
17491
+ new $s(),
17492
+ new js(r?.data?.content, m),
17493
+ new Hs({
17486
17494
  config: r?.data?.content?.fx ?? {},
17487
17495
  datasources: r?.data?.content?.datasources ?? {}
17488
17496
  }),
17489
- new Ws({
17497
+ new zs({
17490
17498
  config: r?.data?.content?.title_setting ?? [],
17491
17499
  store: c
17492
17500
  })
@@ -17508,20 +17516,20 @@ function _p(s, e, t = {}, a) {
17508
17516
  externalParams: r
17509
17517
  };
17510
17518
  let W = U;
17511
- if (typeof u == "function") {
17512
- const D = u(U);
17519
+ if (typeof l == "function") {
17520
+ const D = l(U);
17513
17521
  D && (W = D);
17514
17522
  }
17515
- const Q = new at(W), x = si(Q);
17516
- return l && (x.parent = l), y && y.forEach((D, $) => {
17523
+ const Q = new at(W), x = ai(Q);
17524
+ return u && (x.parent = u), y && y.forEach((D, $) => {
17517
17525
  x.setControlConfig($, D);
17518
17526
  }), x.rawStore.DELETE_IDS = {}, x.rawStore.UPDATE_IDS = {}, x.mount(), x.store = Fr(x.store), x;
17519
17527
  }
17520
17528
  function Gp(s, e, t, a) {
17521
- process.env.NODE_ENV !== "production" && (window.Vue = Mr, window.antd = ii), window.byteluckVuePages || (window.byteluckVuePages = {});
17529
+ process.env.NODE_ENV !== "production" && (window.Vue = Mr, window.antd = ri), window.byteluckVuePages || (window.byteluckVuePages = {});
17522
17530
  const r = ru(), { title: i, updateTitle: n } = su(s.isWatchTitle), o = Z({});
17523
17531
  pa("context", o);
17524
- const { printUrlList: u, setPrintUrlList: l } = Zi(), p = () => {
17532
+ const { printUrlList: l, setPrintUrlList: u } = Zi(), p = () => {
17525
17533
  const A = o.value.runtime.flatInstances.find(
17526
17534
  (f) => f.type === g.TITLE
17527
17535
  )?.props?.caption || s.state.data.name;
@@ -17530,7 +17538,7 @@ function Gp(s, e, t, a) {
17530
17538
  function c(m) {
17531
17539
  at.register(m.control);
17532
17540
  const A = m.props?.config;
17533
- A && d.set(m.control.Runtime.controlType, A), N.component(
17541
+ A && d.set(m.control.Runtime.controlType, A), L.component(
17534
17542
  `rok-${m.control.Runtime.controlType}`,
17535
17543
  K.isPc() ? m.control?.Views?.Desktop : m.control?.Views?.Mobile
17536
17544
  );
@@ -17539,7 +17547,7 @@ function Gp(s, e, t, a) {
17539
17547
  o.value instanceof at && (cu(o.value.id, e.path), o.value.destroy());
17540
17548
  }, y = async () => {
17541
17549
  if (s?.state?.data?.app_id) {
17542
- if (q(), l(s.state), Te = await Aa(
17550
+ if (q(), u(s.state), Te = await Aa(
17543
17551
  s.state.data.content.refer_component_id_list,
17544
17552
  s.state.data.content.refer_component_prop_list,
17545
17553
  qe(K.isPc()),
@@ -17548,7 +17556,7 @@ function Gp(s, e, t, a) {
17548
17556
  type: "runtime"
17549
17557
  }
17550
17558
  ), s.state.data.form_type === 5) {
17551
- const m = await Ni(
17559
+ const m = await Li(
17552
17560
  process.env.VUE_APP_BYTELUCK_CONTROLS,
17553
17561
  {
17554
17562
  type: "runtime",
@@ -17576,7 +17584,7 @@ function Gp(s, e, t, a) {
17576
17584
  }
17577
17585
  return Te?.forEach(c), o.value = _p(
17578
17586
  s,
17579
- u.value,
17587
+ l.value,
17580
17588
  {
17581
17589
  store: t,
17582
17590
  route: e,
@@ -17603,26 +17611,25 @@ function Gp(s, e, t, a) {
17603
17611
  title: i,
17604
17612
  getState: b,
17605
17613
  createEngine: y,
17606
- apiInit: de,
17607
- ActionUtilsPlugin: Fs,
17608
- ApprovalPlugin: Ls,
17609
- DataFilterPlugin: $s,
17610
- DatasourceSearchPlugin: Gs,
17611
- DataViewPlugin: Ns,
17612
- DisplayPlugin: Is,
17613
- FormRelationFieldPlugin: Us,
17614
- JurisdictionPlugin: Cs,
17615
- MultistageFillingPlugin: Vs,
17616
- ReferenceAndCalcFieldPlugin: js,
17617
- TitlePlugin: Es,
17618
- SubtableChangePlugin: Hs,
17619
- DataSourceManagePlugin: zs,
17620
- ExpressionPlugin: Ks,
17621
- TitleSettingPlugin: Ws,
17622
- EventListenerPlugin: Zs
17614
+ ActionUtilsPlugin: xs,
17615
+ ApprovalPlugin: Fs,
17616
+ DataFilterPlugin: Us,
17617
+ DatasourceSearchPlugin: Ns,
17618
+ DataViewPlugin: Bs,
17619
+ DisplayPlugin: As,
17620
+ FormRelationFieldPlugin: Ls,
17621
+ JurisdictionPlugin: _s,
17622
+ MultistageFillingPlugin: Is,
17623
+ ReferenceAndCalcFieldPlugin: Gs,
17624
+ TitlePlugin: Cs,
17625
+ SubtableChangePlugin: $s,
17626
+ DataSourceManagePlugin: js,
17627
+ ExpressionPlugin: Hs,
17628
+ TitleSettingPlugin: zs,
17629
+ EventListenerPlugin: Xs
17623
17630
  };
17624
17631
  }
17625
17632
  export {
17626
- Lp as core,
17633
+ Np as core,
17627
17634
  Gp as useRuntimeEngine
17628
17635
  };