@baishuyun/ai-feat-utils 2.0.43 → 2.0.44

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.
@@ -10,18 +10,18 @@ const y = (e) => {
10
10
  console.error("invalid raw data");
11
11
  }
12
12
  return t || e.providerMetadata.raw.data;
13
- }, W = (e) => {
13
+ }, L = (e) => {
14
14
  if ((e == null ? void 0 : e.type) === "error")
15
15
  return !0;
16
16
  const t = y(e);
17
17
  return (t == null ? void 0 : t.type) === "agent-error";
18
- }, Ee = (e) => {
18
+ }, Fe = (e) => {
19
19
  const t = y(e);
20
20
  return (t == null ? void 0 : t.type) === "agent-fake-msg";
21
- }, qe = (e) => (e == null ? void 0 : e.type) === "file", Fe = (e) => {
21
+ }, Re = (e) => (e == null ? void 0 : e.type) === "file", De = (e) => {
22
22
  const t = y(e);
23
23
  return (t == null ? void 0 : t.type) === "query-stream-parsed-info";
24
- }, Re = (e) => {
24
+ }, Te = (e) => {
25
25
  const t = y(e);
26
26
  if ((t == null ? void 0 : t.type) !== "query-stream-parsed-info")
27
27
  return null;
@@ -32,32 +32,32 @@ const y = (e) => {
32
32
  } catch (n) {
33
33
  return console.error("invalid query result data"), null;
34
34
  }
35
- }, Te = (e) => {
35
+ }, $e = (e) => {
36
36
  if (!Array.isArray(e))
37
37
  return !1;
38
38
  for (const t of e)
39
39
  if ((t == null ? void 0 : t.type) === "file")
40
40
  return !0;
41
41
  return !1;
42
- }, De = (e) => {
42
+ }, Oe = (e) => {
43
43
  const t = y(e);
44
44
  return (t == null ? void 0 : t.type) === "agent-loading";
45
- }, $e = (e) => {
45
+ }, Pe = (e) => {
46
46
  const t = y(e);
47
47
  return (t == null ? void 0 : t.type) !== "agent-loading" ? "" : (t == null ? void 0 : t.label) || "加载中";
48
- }, Pe = (e) => {
49
- if (!W(e))
48
+ }, Ie = (e) => {
49
+ if (!L(e))
50
50
  return "";
51
51
  if (e != null && e.errorText)
52
52
  return e.errorText;
53
53
  const t = y(e);
54
54
  return (t == null ? void 0 : t.error) || "未知错误";
55
- }, Oe = (e) => {
55
+ }, Le = (e) => {
56
56
  if (e != null && e.errorText)
57
57
  return e.errorText;
58
58
  const t = y(e);
59
59
  return (t == null ? void 0 : t.error) || "未知错误";
60
- }, M = "data-shadow-slot-injected", v = "host-clone", B = (e) => {
60
+ }, E = "data-shadow-slot-injected", v = "host-clone", W = (e) => {
61
61
  try {
62
62
  const t = new CSSStyleSheet();
63
63
  t.replaceSync(e);
@@ -78,26 +78,26 @@ ${a.join(`
78
78
  ${e}
79
79
  }`;
80
80
  }
81
- }, Le = (e, t) => {
82
- if (e.querySelector(`[${M}]`)) return;
81
+ }, We = (e, t) => {
82
+ if (e.querySelector(`[${E}]`)) return;
83
83
  const r = [], n = [], l = (o) => {
84
84
  if (o instanceof HTMLLinkElement) {
85
85
  const s = `@import url("${o.href}") layer(${v})`;
86
86
  r.push(o.media ? `${s} ${o.media};` : `${s};`);
87
- } else o instanceof HTMLStyleElement && n.push(B(o.textContent || ""));
87
+ } else o instanceof HTMLStyleElement && n.push(W(o.textContent || ""));
88
88
  };
89
89
  document.head.querySelectorAll("style").forEach(l), document.head.querySelectorAll('link[rel="stylesheet"]').forEach(l);
90
90
  let a = t.parentNode;
91
91
  for (; a; )
92
92
  a instanceof ShadowRoot && (a.querySelectorAll("style").forEach(l), a.querySelectorAll('link[rel="stylesheet"]').forEach(l)), a = a.parentNode;
93
93
  const i = document.createElement("style");
94
- i.setAttribute(M, ""), i.textContent = [
94
+ i.setAttribute(E, ""), i.textContent = [
95
95
  `@layer ${v};`,
96
96
  ...r,
97
97
  ...n
98
98
  ].join(`
99
99
  `), e.appendChild(i);
100
- }, _ = "data-bs-host-style", k = /* @__PURE__ */ new WeakMap(), C = (e, t) => e.replace(
100
+ }, _ = "data-bs-host-style", k = /* @__PURE__ */ new WeakMap(), N = (e, t) => e.replace(
101
101
  /url\(\s*(?:"([^"\n]*)"|'([^'\n]*)'|([^\s)]*))\s*\)/gi,
102
102
  (r, n, l, a) => {
103
103
  var o;
@@ -109,14 +109,14 @@ ${e}
109
109
  return r;
110
110
  }
111
111
  }
112
- ), I = (e) => e.replace(/(^|,\s*)(?::root|html)(?=$|[\s>.:#\[])/g, "$1:host").replace(/:host\s+(?:>\s*)?body(?=$|[\s>.:#\[])/g, ":host > [data-bs-shadow-content]").replace(/(^|,\s*)body(?=$|[\s>.:#\[])/g, "$1[data-bs-shadow-content]"), N = (e, t) => Array.from(e).map((r) => {
112
+ ), B = (e) => e.replace(/(^|,\s*)(?::root|html)(?=$|[\s>.:#\[])/g, "$1:host").replace(/:host\s+(?:>\s*)?body(?=$|[\s>.:#\[])/g, ":host > [data-bs-shadow-content]").replace(/(^|,\s*)body(?=$|[\s>.:#\[])/g, "$1[data-bs-shadow-content]"), C = (e, t) => Array.from(e).map((r) => {
113
113
  if (r.type === 1) {
114
114
  const n = r, l = r.cssText.slice(r.cssText.indexOf("{"));
115
- return I(n.selectorText) + C(l, t);
115
+ return B(n.selectorText) + N(l, t);
116
116
  }
117
- return "cssRules" in r && r.type !== 7 ? r.cssText.slice(0, r.cssText.indexOf("{") + 1) + N(r.cssRules, t) + "}" : C(r.cssText, t);
117
+ return "cssRules" in r && r.type !== 7 ? r.cssText.slice(0, r.cssText.indexOf("{") + 1) + C(r.cssRules, t) + "}" : N(r.cssText, t);
118
118
  }).join(`
119
- `), E = (e) => {
119
+ `), M = (e) => {
120
120
  var n, l;
121
121
  const t = e.nodeType === 9 ? e : e.ownerDocument, r = [];
122
122
  if (e.nodeType === 9 && t.body) {
@@ -128,7 +128,7 @@ ${e}
128
128
  const i = a.media || "", o = a.nonce || "";
129
129
  try {
130
130
  if (a.sheet) {
131
- r.push({ source: a, css: N(a.sheet.cssRules, a.sheet.href || a.baseURI), media: i, nonce: o });
131
+ r.push({ source: a, css: C(a.sheet.cssRules, a.sheet.href || a.baseURI), media: i, nonce: o });
132
132
  continue;
133
133
  }
134
134
  } catch (s) {
@@ -137,19 +137,19 @@ ${e}
137
137
  continue;
138
138
  }
139
139
  }
140
- a.tagName === "LINK" ? r.push({ source: a, href: a.href, media: i, nonce: o }) : r.push({ source: a, css: C(a.textContent || "", a.baseURI), media: i, nonce: o });
140
+ a.tagName === "LINK" ? r.push({ source: a, href: a.href, media: i, nonce: o }) : r.push({ source: a, css: N(a.textContent || "", a.baseURI), media: i, nonce: o });
141
141
  }
142
142
  for (const a of Array.from(e.adoptedStyleSheets || []))
143
- a.disabled || r.push({ source: a, css: N(a.cssRules, t.baseURI), media: a.media.mediaText, nonce: "" });
143
+ a.disabled || r.push({ source: a, css: C(a.cssRules, t.baseURI), media: a.media.mediaText, nonce: "" });
144
144
  return ((l = r[0]) == null ? void 0 : l.source) === t && r.push(r.shift()), r;
145
145
  }, j = (e) => {
146
146
  const t = k.get(e);
147
147
  if (t) return t;
148
148
  const r = e.nodeType === 9 ? e : e.ownerDocument;
149
- let n = E(e), l = !1;
149
+ let n = M(e), l = !1;
150
150
  const a = /* @__PURE__ */ new Set(), i = () => {
151
151
  l = !1;
152
- const u = E(e);
152
+ const u = M(e);
153
153
  u.length === n.length && u.every((c, b) => c.source === n[b].source && c.css === n[b].css && c.href === n[b].href && c.media === n[b].media && c.nonce === n[b].nonce && c.classes === n[b].classes) || (n = u, a.forEach((c) => c()));
154
154
  }, o = () => {
155
155
  l || (l = !0, queueMicrotask(() => {
@@ -174,7 +174,7 @@ ${e}
174
174
  }
175
175
  };
176
176
  return k.set(e, d), d;
177
- }, We = (e, t) => {
177
+ }, Be = (e, t) => {
178
178
  const r = [t.ownerDocument];
179
179
  let n = t.getRootNode();
180
180
  for (; n.nodeType === 11 && "host" in n; ) {
@@ -185,19 +185,19 @@ ${e}
185
185
  e.prepend(a);
186
186
  const i = /* @__PURE__ */ new Map(), o = () => {
187
187
  var x;
188
- const d = l.reduce((f, m) => f.concat(m.read()), []), u = e.querySelector("[data-bs-shadow-content]"), c = `${t.ownerDocument.documentElement.className} ${((x = t.ownerDocument.body) == null ? void 0 : x.className) || ""}`;
188
+ const d = l.reduce((f, g) => f.concat(g.read()), []), u = e.querySelector("[data-bs-shadow-content]"), c = `${t.ownerDocument.documentElement.className} ${((x = t.ownerDocument.body) == null ? void 0 : x.className) || ""}`;
189
189
  u && u.className !== c && (u.className = c);
190
190
  const b = new Set(d.map((f) => f.source));
191
- for (const [f, m] of i) b.has(f) || (m.remove(), i.delete(f));
191
+ for (const [f, g] of i) b.has(f) || (g.remove(), i.delete(f));
192
192
  let h = a;
193
193
  for (const f of d) {
194
- let m = i.get(f.source);
195
- const L = f.href ? "LINK" : "STYLE";
196
- if (m && m.tagName !== L && (m.remove(), i.delete(f.source), m = void 0), m || (m = t.ownerDocument.createElement(f.href ? "link" : "style"), m.setAttribute(_, ""), i.set(f.source, m)), m.media = f.media, m.nonce = f.nonce, f.href) {
197
- const A = m;
194
+ let g = i.get(f.source);
195
+ const I = f.href ? "LINK" : "STYLE";
196
+ if (g && g.tagName !== I && (g.remove(), i.delete(f.source), g = void 0), g || (g = t.ownerDocument.createElement(f.href ? "link" : "style"), g.setAttribute(_, ""), i.set(f.source, g)), g.media = f.media, g.nonce = f.nonce, f.href) {
197
+ const A = g;
198
198
  A.rel = "stylesheet", A.href !== f.href && (A.href = f.href);
199
- } else m.textContent !== f.css && (m.textContent = f.css || "");
200
- h.nextSibling !== m && h.after(m), h = m;
199
+ } else g.textContent !== f.css && (g.textContent = f.css || "");
200
+ h.nextSibling !== g && h.after(g), h = g;
201
201
  }
202
202
  }, s = l.map((d) => d.subscribe(o));
203
203
  o();
@@ -219,7 +219,7 @@ function G(e) {
219
219
  (t) => typeof t == "object" && t !== null && "label" in t && "value" in t && typeof t.label == "string" && typeof t.value == "string"
220
220
  ) : !1;
221
221
  }
222
- const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ") : e, H = /* @__PURE__ */ new Set([
222
+ const je = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ") : e, H = /* @__PURE__ */ new Set([
223
223
  "password",
224
224
  "textarea",
225
225
  "datetime",
@@ -230,16 +230,16 @@ const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ")
230
230
  "combocheck",
231
231
  "checkboxgroup",
232
232
  "number"
233
- ]), Ie = (e) => Array.isArray(e) ? e.filter((t) => t.widget ? H.has(t.widget.type) : !1) : [], z = (e) => (t) => {
233
+ ]), Ue = (e) => Array.isArray(e) ? e.filter((t) => t.widget ? H.has(t.widget.type) : !1) : [], z = (e) => (t) => {
234
234
  const r = y(t);
235
235
  return (r == null ? void 0 : r.type) === e;
236
- }, je = (e) => (t) => {
236
+ }, Ge = (e) => (t) => {
237
237
  const r = t, n = r == null ? void 0 : r.part;
238
238
  return z(e)(n);
239
- }, Ue = (e) => (t) => {
239
+ }, He = (e) => (t) => {
240
240
  const r = y(t);
241
241
  return (r == null ? void 0 : r.type) !== e ? null : (r == null ? void 0 : r.field) || null;
242
- }, Ge = (e) => (t) => Array.isArray(t) && t.length > 0 ? t.filter(e) : e(t) ? [t] : [], He = (e) => {
242
+ }, ze = (e) => (t) => Array.isArray(t) && t.length > 0 ? t.filter(e) : e(t) ? [t] : [], Qe = (e) => {
243
243
  if (typeof e != "string")
244
244
  return e;
245
245
  try {
@@ -247,14 +247,14 @@ const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ")
247
247
  } catch (t) {
248
248
  return console.info("[safeParseJson] Failed to parse JSON:", t), null;
249
249
  }
250
- }, q = (e) => !!(e && typeof e == "object" && e.qnKey), ze = (e) => {
250
+ }, q = (e) => !!(e && typeof e == "object" && e.qnKey), Ye = (e) => {
251
251
  var n, l;
252
252
  const t = (n = e == null ? void 0 : e.widget) == null ? void 0 : n.value, r = (l = e == null ? void 0 : e.widget) == null ? void 0 : l.type;
253
253
  return t == null || t === "" || Array.isArray(t) && t.length === 0 || typeof t == "number" && Number.isNaN(t) || typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? !1 : r === "signature" ? q(t) : r === "upload" || r === "image" ? Array.isArray(t) && t.length > 0 && t.every(q) : !0;
254
254
  }, Q = (e = "_widget_") => {
255
255
  const t = Date.now(), r = String(t), n = r.length, l = r.slice(0, n - 5), a = String(Math.floor(Math.random() * 1e5)).padStart(5, "0");
256
256
  return `${e}${l}${a}`;
257
- }, Qe = (e, t) => ({
257
+ }, Ke = (e, t) => ({
258
258
  field: e,
259
259
  onLoaded: () => {
260
260
  t.fillWidget({
@@ -271,13 +271,13 @@ const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ")
271
271
  };
272
272
  t.fillWidget(i);
273
273
  }
274
- }), Ke = 10, Ye = (e, t = "image/png") => new Promise((r) => {
274
+ }), Ve = 10, Xe = (e, t = "image/png") => new Promise((r) => {
275
275
  const n = new Image();
276
276
  n.crossOrigin = "anonymous", n.onload = () => {
277
277
  const l = document.createElement("canvas");
278
278
  l.width = n.naturalWidth, l.height = n.naturalHeight, l.getContext("2d").drawImage(n, 0, 0), r(l.toDataURL(t));
279
279
  }, n.onerror = () => r(e), n.src = e;
280
- }), Ve = {
280
+ }), Y = {
281
281
  eq: "等于",
282
282
  neq: "不等于",
283
283
  gt: "大于",
@@ -295,6 +295,19 @@ const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ")
295
295
  like: "模糊匹配",
296
296
  unlike: "模糊不匹配"
297
297
  }, K = {
298
+ usergroup: { in: "包含任意一个" },
299
+ deptgroup: { in: "包含任意一个" },
300
+ checkboxgroup: { in: "包含任意一个" },
301
+ combocheck: { in: "包含任意一个" },
302
+ address: { in: "属于", nin: "不属于" },
303
+ location: { in: "包含", nin: "不包含" }
304
+ };
305
+ function Ze(e, t) {
306
+ var n, l;
307
+ const r = t ? K[t] : void 0;
308
+ return (l = (n = r == null ? void 0 : r[e]) != null ? n : Y[e]) != null ? l : e;
309
+ }
310
+ const V = {
298
311
  // Text-like: equality, fuzzy, empty checks
299
312
  text: ["eq", "neq", "in", "nin", "contains", "not_contains", "empty", "not_empty"],
300
313
  password: ["eq", "neq", "contains", "not_contains", "empty", "not_empty"],
@@ -338,7 +351,7 @@ const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ")
338
351
  button: [],
339
352
  subform: [],
340
353
  unknown: []
341
- }, Y = {
354
+ }, X = {
342
355
  text: "eq",
343
356
  password: "eq",
344
357
  radiogroup: "eq",
@@ -366,18 +379,18 @@ const Be = (e) => U(e) ? e.join(", ") : G(e) ? e.map((r) => r.value).join(", ")
366
379
  dataload: "eq",
367
380
  formula: "eq"
368
381
  };
369
- function Xe(e) {
382
+ function Je(e) {
370
383
  var t;
371
- return e ? (t = K[e]) != null ? t : [] : [];
384
+ return e ? (t = V[e]) != null ? t : [] : [];
372
385
  }
373
- function Ze(e) {
386
+ function et(e) {
374
387
  var t;
375
- return e && (t = Y[e]) != null ? t : "eq";
388
+ return e && (t = X[e]) != null ? t : "eq";
376
389
  }
377
390
  function S(e) {
378
391
  return typeof e == "object" && e !== null && !Array.isArray(e);
379
392
  }
380
- function P(e) {
393
+ function O(e) {
381
394
  return S(e) ? e : null;
382
395
  }
383
396
  function F(e) {
@@ -395,27 +408,27 @@ function R(e, t) {
395
408
  }
396
409
  return String(e) === String(t);
397
410
  }
398
- function T(e, t) {
411
+ function D(e, t) {
399
412
  if (S(t)) {
400
- const n = P(e);
413
+ const n = O(e);
401
414
  return !(!n || t.province !== void 0 && String(n.province) !== String(t.province) || t.city !== void 0 && String(n.city) !== String(t.city) || t.district !== void 0 && String(n.district) !== String(t.district));
402
415
  }
403
416
  const r = Array.isArray(t) ? t.map(String) : [];
404
417
  return Array.isArray(e) ? e.some((n) => r.includes(String(n))) : r.includes(String(e));
405
418
  }
406
- function V(e, t) {
419
+ function Z(e, t) {
407
420
  const r = Array.isArray(t) ? t.map(String) : [];
408
421
  if (r.length === 0) return !1;
409
422
  const n = Array.isArray(e) ? e.map(String) : [];
410
423
  return r.every((l) => n.includes(l));
411
424
  }
412
- function X(e, t) {
413
- const r = P(t);
425
+ function J(e, t) {
426
+ const r = O(t);
414
427
  if (!r) return !1;
415
428
  const n = Number(e);
416
429
  return !(isNaN(n) || r.min !== void 0 && r.min !== null && n < Number(r.min) || r.max !== void 0 && r.max !== null && n > Number(r.max));
417
430
  }
418
- function Z(e, t) {
431
+ function ee(e, t) {
419
432
  var i;
420
433
  const r = (i = e.field.widget) == null ? void 0 : i.widgetName;
421
434
  if (!r) return !1;
@@ -444,28 +457,28 @@ function Z(e, t) {
444
457
  case "lte":
445
458
  return Number(n) <= Number(a);
446
459
  case "in":
447
- return T(n, a);
460
+ return D(n, a);
448
461
  case "nin":
449
- return !T(n, a);
462
+ return !D(n, a);
450
463
  case "all":
451
- return V(n, a);
464
+ return Z(n, a);
452
465
  case "range":
453
- return X(n, a);
466
+ return J(n, a);
454
467
  default:
455
468
  return !1;
456
469
  }
457
470
  }
458
- function Je(e, t) {
471
+ function tt(e, t) {
459
472
  if (!e.enabled)
460
473
  return !1;
461
474
  const r = e.triggerCondition;
462
475
  if (!r) return !0;
463
476
  const { items: n, quantifier: l } = r;
464
477
  if (!n || n.length === 0) return !0;
465
- const a = n.map((i) => Z(i, t));
478
+ const a = n.map((i) => ee(i, t));
466
479
  return l === "any" ? a.some((i) => i) : a.every((i) => i);
467
480
  }
468
- const et = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form" && t.params.formId === e.formId : e.appId ? (t.type === "app" || t.type === "form") && t.params.appId === e.appId : t.type === "global" || t.type === "app" || t.type === "form", J = {
481
+ const rt = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form" && t.params.formId === e.formId : e.appId ? (t.type === "app" || t.type === "form") && t.params.appId === e.appId : t.type === "global" || t.type === "app" || t.type === "form", te = {
469
482
  eq: "eq",
470
483
  neq: "ne",
471
484
  gt: "gt",
@@ -482,7 +495,7 @@ const et = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form
482
495
  empty: "empty",
483
496
  not_empty: "not_empty",
484
497
  range: "range"
485
- }, ee = {
498
+ }, re = {
486
499
  eq: "eq",
487
500
  ne: "neq",
488
501
  gt: "gt",
@@ -500,10 +513,10 @@ const et = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form
500
513
  not_empty: "not_empty",
501
514
  range: "range"
502
515
  };
503
- function tt(e) {
516
+ function nt(e) {
504
517
  const t = e.quantifier === "any" ? "or" : "and", r = e.items.map((n) => {
505
518
  var i, o, s, p, d, u;
506
- const l = (i = J[n.operator]) != null ? i : "eq";
519
+ const l = (i = te[n.operator]) != null ? i : "eq";
507
520
  let a;
508
521
  return n.operator === "range" && S(n.value) ? a = [n.value.min, n.value.max] : Array.isArray(n.value) ? a = n.value : a = [n.value], {
509
522
  field: (p = (s = (o = n.field) == null ? void 0 : o.widget) == null ? void 0 : s.widgetName) != null ? p : "",
@@ -514,10 +527,10 @@ function tt(e) {
514
527
  });
515
528
  return JSON.stringify({ rel: t, cond: r });
516
529
  }
517
- function rt(e) {
530
+ function at(e) {
518
531
  const t = JSON.parse(e), r = t.rel === "or" ? "any" : "all", n = t.cond.map((l, a) => {
519
532
  var s, p;
520
- const i = (s = ee[l.method]) != null ? s : "eq";
533
+ const i = (s = re[l.method]) != null ? s : "eq";
521
534
  let o = l.value;
522
535
  return i === "range" ? o = { min: l.value[0], max: l.value[1] } : ["eq", "neq", "contains", "not_contains", "gt", "gte", "lt", "lte"].includes(i) && (o = l.value[0]), {
523
536
  id: `${l.field}_${a}`,
@@ -535,23 +548,23 @@ function rt(e) {
535
548
  });
536
549
  return { targetName: "", quantifier: r, items: n };
537
550
  }
538
- function nt(e) {
551
+ function lt(e) {
539
552
  const t = (r) => String(r).padStart(2, "0");
540
553
  return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
541
554
  }
542
- function at(e, t, r = 1) {
555
+ function it(e, t, r = 1) {
543
556
  const n = [], l = [];
544
557
  for (const a of e)
545
558
  t(a) ? l.push(a) : (l.length > 0 && (n.push(l.length >= r ? [...l] : l[0]), l.length = 0), n.push(a));
546
559
  return l.length > 0 && n.push(l.length >= 2 ? [...l] : l[0]), n;
547
560
  }
548
- function O(e) {
561
+ function P(e) {
549
562
  const t = [];
550
563
  for (const r of e)
551
- Array.isArray(r) ? t.push(...O(r)) : t.push(r);
564
+ Array.isArray(r) ? t.push(...P(r)) : t.push(r);
552
565
  return t;
553
566
  }
554
- const te = {
567
+ const ne = {
555
568
  projectdevelopment: "e914",
556
569
  resourcelibrary: "e915",
557
570
  Plugin2: "e90e",
@@ -958,11 +971,11 @@ const te = {
958
971
  Automation1: "ea95",
959
972
  Avatar: "ea96"
960
973
  };
961
- function lt(e) {
962
- const t = te[e];
974
+ function ot(e) {
975
+ const t = ne[e];
963
976
  return t ? `&#x${t};` : void 0;
964
977
  }
965
- const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6: "e7b8", 7: "e7c8", 8: "e7c1", 9: "e7bb", 10: "e7ca", 11: "e7c4", 12: "e7b4", 13: "e7ba", 14: "e7b6", 15: "e7c5", 16: "e7bf", 17: "e7c3", 18: "e7c2", 19: "e7c6", 20: "e7bd", 21: "e7c0", 22: "e7cb", 23: "e7b7", 24: "e7b9", 25: "e814", 26: "e81d", 27: "e81c", 28: "e81a", 29: "e813", 30: "e81b", 31: "e818", 32: "e819", 33: "e817", 34: "e816", 35: "e810", 36: "e815", 37: "e812", 38: "e811", 39: "e80e", 40: "e80f", 41: "e80d", 42: "e807", 43: "e80b", 44: "e80a", 45: "e81d", 46: "e809", 47: "e808", 48: "e805", 49: "e7ff", 50: "e803", 51: "e806", 52: "e802", 53: "e800", 54: "e804", 55: "e801", 56: "e7fe", 57: "e7fc", 58: "e7fd", 59: "e7fb", 60: "e7fa" }, ot = (e, t, r) => {
978
+ const st = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6: "e7b8", 7: "e7c8", 8: "e7c1", 9: "e7bb", 10: "e7ca", 11: "e7c4", 12: "e7b4", 13: "e7ba", 14: "e7b6", 15: "e7c5", 16: "e7bf", 17: "e7c3", 18: "e7c2", 19: "e7c6", 20: "e7bd", 21: "e7c0", 22: "e7cb", 23: "e7b7", 24: "e7b9", 25: "e814", 26: "e81d", 27: "e81c", 28: "e81a", 29: "e813", 30: "e81b", 31: "e818", 32: "e819", 33: "e817", 34: "e816", 35: "e810", 36: "e815", 37: "e812", 38: "e811", 39: "e80e", 40: "e80f", 41: "e80d", 42: "e807", 43: "e80b", 44: "e80a", 45: "e81d", 46: "e809", 47: "e808", 48: "e805", 49: "e7ff", 50: "e803", 51: "e806", 52: "e802", 53: "e800", 54: "e804", 55: "e801", 56: "e7fe", 57: "e7fc", 58: "e7fd", 59: "e7fb", 60: "e7fa" }, ut = (e, t, r) => {
966
979
  if (!r)
967
980
  return {
968
981
  translated: ""
@@ -984,10 +997,10 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
984
997
  }
985
998
  );
986
999
  return {
987
- meta: l.length ? O(l) : null,
1000
+ meta: l.length ? P(l) : null,
988
1001
  translated: (a != null ? a : "").trim()
989
1002
  };
990
- }, re = {
1003
+ }, ae = {
991
1004
  手机号码: "^((\\(\\d{2,3}\\))|(\\d{3}\\-))?1\\d{10}$",
992
1005
  电话号码: "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$",
993
1006
  邮政编码: "^\\d{6}$",
@@ -999,8 +1012,8 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
999
1012
  二维码图片: "qrcode",
1000
1013
  条形码图片: "barcode",
1001
1014
  自定义: "custom"
1002
- }, D = (e) => {
1003
- const { widget: t, labelStyle: r, label: n, ...l } = e || {}, a = re[r] || "";
1015
+ }, T = (e) => {
1016
+ const { widget: t, labelStyle: r, label: n, ...l } = e || {}, a = ae[r] || "";
1004
1017
  return {
1005
1018
  widget: {
1006
1019
  widgetName: `_widget_${Date.now()}`,
@@ -1048,18 +1061,18 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1048
1061
  tab: null,
1049
1062
  ...l
1050
1063
  };
1051
- }, g = (e = "_widget", t) => {
1064
+ }, m = (e = "_widget", t) => {
1052
1065
  const r = `${e}_${Date.now()}`;
1053
1066
  if (t === void 0)
1054
1067
  return r;
1055
1068
  const n = t.toString().length;
1056
1069
  return `${r.slice(0, -n)}${t}`;
1057
- }, ne = (e) => {
1070
+ }, le = (e) => {
1058
1071
  const { widget: t, label: r, ...n } = e || {};
1059
1072
  return {
1060
1073
  widget: {
1061
1074
  type: "number",
1062
- widgetName: g(),
1075
+ widgetName: m(),
1063
1076
  widgetNameAlias: "",
1064
1077
  triggerEvent: !1,
1065
1078
  customCls: null,
@@ -1119,7 +1132,7 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1119
1132
  tab: null,
1120
1133
  ...n
1121
1134
  };
1122
- }, ae = (e) => {
1135
+ }, ie = (e) => {
1123
1136
  const { widget: t, label: r, ...n } = e || {};
1124
1137
  return {
1125
1138
  widget: {
@@ -1192,7 +1205,7 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1192
1205
  ...n,
1193
1206
  labelStyle: r
1194
1207
  };
1195
- }, le = (e) => {
1208
+ }, oe = (e) => {
1196
1209
  const { widget: t, label: r, ...n } = e || {};
1197
1210
  return {
1198
1211
  widget: {
@@ -1259,12 +1272,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1259
1272
  tab: null,
1260
1273
  ...n
1261
1274
  };
1262
- }, w = (e) => e, ie = (e) => {
1275
+ }, w = (e) => e, se = (e) => {
1263
1276
  const { widget: t, label: r, ...n } = e || {};
1264
1277
  return {
1265
1278
  widget: {
1266
1279
  type: "deptgroup",
1267
- widgetName: g(),
1280
+ widgetName: m(),
1268
1281
  widgetNameAlias: "",
1269
1282
  customCls: null,
1270
1283
  height: "34",
@@ -1293,12 +1306,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1293
1306
  tab: null,
1294
1307
  ...n
1295
1308
  };
1296
- }, oe = (e) => {
1309
+ }, ue = (e) => {
1297
1310
  const { widget: t, label: r, ...n } = e || {};
1298
1311
  return {
1299
1312
  widget: {
1300
1313
  type: "sn",
1301
- widgetName: g(),
1314
+ widgetName: m(),
1302
1315
  widgetNameAlias: "",
1303
1316
  triggerEvent: 0,
1304
1317
  customCls: null,
@@ -1330,12 +1343,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1330
1343
  tab: null,
1331
1344
  ...n
1332
1345
  };
1333
- }, se = (e) => {
1346
+ }, de = (e) => {
1334
1347
  const { widget: t, label: r, ...n } = e || {};
1335
1348
  return {
1336
1349
  widget: {
1337
1350
  type: "dept",
1338
- widgetName: g(),
1351
+ widgetName: m(),
1339
1352
  widgetNameAlias: "",
1340
1353
  customCls: null,
1341
1354
  height: "34",
@@ -1364,12 +1377,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1364
1377
  tab: null,
1365
1378
  ...n
1366
1379
  };
1367
- }, ue = (e) => {
1380
+ }, ce = (e) => {
1368
1381
  const { widget: t, label: r, ...n } = e || {};
1369
1382
  return {
1370
1383
  widget: {
1371
1384
  type: "usergroup",
1372
- widgetName: g(),
1385
+ widgetName: m(),
1373
1386
  widgetNameAlias: "",
1374
1387
  customCls: null,
1375
1388
  height: "34",
@@ -1401,11 +1414,11 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1401
1414
  tab: null,
1402
1415
  ...n
1403
1416
  };
1404
- }, de = (e) => {
1417
+ }, me = (e) => {
1405
1418
  const { widget: t, label: r, ...n } = e || {};
1406
1419
  return {
1407
1420
  widget: {
1408
- widgetName: g(),
1421
+ widgetName: m(),
1409
1422
  widgetNameAlias: "",
1410
1423
  customCls: null,
1411
1424
  enable: !0,
@@ -1429,7 +1442,7 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1429
1442
  tab: null,
1430
1443
  ...n
1431
1444
  };
1432
- }, ce = (e) => !e || !e.length ? e : e.map((t, r) => ({
1445
+ }, ge = (e) => !e || !e.length ? e : e.map((t, r) => ({
1433
1446
  id: r,
1434
1447
  // name: "_widget_1761976674767",
1435
1448
  // form: "a2f34ef882158a3e97da4ef7",
@@ -1441,16 +1454,16 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1441
1454
  isEditable: !0,
1442
1455
  group: "dimension,filter,select",
1443
1456
  formula: ""
1444
- })), ge = (e) => !e || !e.length ? e : e.map((t) => ({
1457
+ })), fe = (e) => !e || !e.length ? e : e.map((t) => ({
1445
1458
  mode: "depend",
1446
1459
  ...t
1447
- })), me = (e) => {
1460
+ })), pe = (e) => {
1448
1461
  var l, a, i;
1449
1462
  const { widget: t, label: r, ...n } = e || {};
1450
1463
  return {
1451
1464
  widget: {
1452
1465
  type: "dataload",
1453
- widgetName: g(),
1466
+ widgetName: m(),
1454
1467
  widgetNameAlias: "",
1455
1468
  customCls: null,
1456
1469
  width: 350,
@@ -1486,8 +1499,8 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1486
1499
  forms: (l = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : l.forms,
1487
1500
  selectArg: [],
1488
1501
  selectRel: "and",
1489
- fields: ce((a = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : a.mapFields),
1490
- mapFields: ge((i = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : i.mapFields)
1502
+ fields: ge((a = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : a.mapFields),
1503
+ mapFields: fe((i = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : i.mapFields)
1491
1504
  },
1492
1505
  labelStyle: r
1493
1506
  },
@@ -1496,12 +1509,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1496
1509
  tab: null,
1497
1510
  ...n
1498
1511
  };
1499
- }, fe = (e) => {
1512
+ }, be = (e) => {
1500
1513
  const { widget: t, label: r, ...n } = e || {};
1501
1514
  return {
1502
1515
  widget: {
1503
1516
  type: "user",
1504
- widgetName: g(),
1517
+ widgetName: m(),
1505
1518
  widgetNameAlias: "",
1506
1519
  customCls: null,
1507
1520
  height: "34",
@@ -1533,12 +1546,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1533
1546
  tab: null,
1534
1547
  ...n
1535
1548
  };
1536
- }, pe = (e) => {
1549
+ }, ye = (e) => {
1537
1550
  const { widget: t, label: r, ...n } = e || {};
1538
1551
  return {
1539
1552
  widget: {
1540
1553
  type: "signature",
1541
- widgetName: g(),
1554
+ widgetName: m(),
1542
1555
  widgetNameAlias: "",
1543
1556
  customCls: null,
1544
1557
  height: 34,
@@ -1556,12 +1569,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1556
1569
  tab: null,
1557
1570
  ...n
1558
1571
  };
1559
- }, be = (e) => {
1572
+ }, he = (e) => {
1560
1573
  const { widget: t, label: r, ...n } = e || {};
1561
1574
  return {
1562
1575
  widget: {
1563
1576
  type: "image",
1564
- widgetName: g(),
1577
+ widgetName: m(),
1565
1578
  widgetNameAlias: "",
1566
1579
  customCls: null,
1567
1580
  height: 100,
@@ -1628,12 +1641,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1628
1641
  tab: null,
1629
1642
  ...n
1630
1643
  };
1631
- }, ye = (e) => {
1644
+ }, we = (e) => {
1632
1645
  const { widget: t, label: r, ...n } = e || {};
1633
1646
  return {
1634
1647
  widget: {
1635
1648
  type: "upload",
1636
- widgetName: g(),
1649
+ widgetName: m(),
1637
1650
  widgetNameAlias: "",
1638
1651
  customCls: null,
1639
1652
  enable: !0,
@@ -1663,12 +1676,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1663
1676
  tab: null,
1664
1677
  ...n
1665
1678
  };
1666
- }, he = (e) => {
1679
+ }, Se = (e) => {
1667
1680
  const { widget: t, label: r, ...n } = e || {};
1668
1681
  return {
1669
1682
  widget: {
1670
1683
  type: "checkboxgroup",
1671
- widgetName: g(),
1684
+ widgetName: m(),
1672
1685
  widgetNameAlias: "",
1673
1686
  customCls: null,
1674
1687
  enable: !0,
@@ -1697,12 +1710,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1697
1710
  tab: null,
1698
1711
  ...n
1699
1712
  };
1700
- }, we = (e) => {
1713
+ }, ve = (e) => {
1701
1714
  const { widget: t, label: r, ...n } = e || {};
1702
1715
  return {
1703
1716
  widget: {
1704
1717
  type: "separator",
1705
- widgetName: g(),
1718
+ widgetName: m(),
1706
1719
  widgetNameAlias: "",
1707
1720
  customCls: null,
1708
1721
  enable: !0,
@@ -1716,12 +1729,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1716
1729
  tab: null,
1717
1730
  ...n
1718
1731
  };
1719
- }, Se = (e) => {
1732
+ }, Ae = (e) => {
1720
1733
  const { widget: t, label: r, ...n } = e || {};
1721
1734
  return {
1722
1735
  widget: {
1723
1736
  type: "combocheck",
1724
- widgetName: g(),
1737
+ widgetName: m(),
1725
1738
  widgetNameAlias: "",
1726
1739
  customCls: null,
1727
1740
  height: 34,
@@ -1753,12 +1766,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1753
1766
  tab: null,
1754
1767
  ...n
1755
1768
  };
1756
- }, ve = (e) => {
1769
+ }, ke = (e) => {
1757
1770
  const { widget: t, label: r, ...n } = e || {};
1758
1771
  return {
1759
1772
  widget: {
1760
1773
  type: "location",
1761
- widgetName: g(),
1774
+ widgetName: m(),
1762
1775
  widgetNameAlias: "",
1763
1776
  customCls: null,
1764
1777
  enable: !0,
@@ -1790,12 +1803,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1790
1803
  tab: null,
1791
1804
  ...n
1792
1805
  };
1793
- }, Ae = (e) => {
1806
+ }, Ne = (e) => {
1794
1807
  const { widget: t, label: r, ...n } = e || {};
1795
1808
  return {
1796
1809
  widget: {
1797
1810
  type: "textarea",
1798
- widgetName: g(),
1811
+ widgetName: m(),
1799
1812
  widgetNameAlias: "",
1800
1813
  triggerEvent: !1,
1801
1814
  customCls: null,
@@ -1833,12 +1846,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1833
1846
  tab: null,
1834
1847
  ...n
1835
1848
  };
1836
- }, ke = (e = {}) => {
1849
+ }, Ce = (e = {}) => {
1837
1850
  const { widget: t, label: r, ...n } = e;
1838
1851
  return {
1839
1852
  widget: {
1840
1853
  type: "button",
1841
- widgetName: g(),
1854
+ widgetName: m(),
1842
1855
  widgetNameAlias: "",
1843
1856
  triggerEvent: 0,
1844
1857
  customCls: null,
@@ -1877,12 +1890,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1877
1890
  tab: null,
1878
1891
  ...n
1879
1892
  };
1880
- }, Ce = (e = {}) => {
1893
+ }, _e = (e = {}) => {
1881
1894
  const { widget: t, label: r, ...n } = e;
1882
1895
  return {
1883
1896
  widget: {
1884
1897
  type: "address",
1885
- widgetName: g(),
1898
+ widgetName: m(),
1886
1899
  widgetNameAlias: "",
1887
1900
  customCls: null,
1888
1901
  width: 720,
@@ -1911,12 +1924,12 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1911
1924
  tab: null,
1912
1925
  ...n
1913
1926
  };
1914
- }, Ne = (e = {}) => {
1927
+ }, xe = (e = {}) => {
1915
1928
  const { widget: t, label: r, ...n } = e;
1916
1929
  return {
1917
1930
  widget: {
1918
1931
  type: "subform",
1919
- widgetName: g(),
1932
+ widgetName: m(),
1920
1933
  widgetNameAlias: "",
1921
1934
  customCls: null,
1922
1935
  enable: !0,
@@ -1931,8 +1944,8 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1931
1944
  version: 1
1932
1945
  },
1933
1946
  items: (t.items || []).map((l, a) => {
1934
- const i = Me(l, !0);
1935
- return i.widget.widgetName = g("_widget", a), i;
1947
+ const i = qe(l, !0);
1948
+ return i.widget.widgetName = m("_widget", a), i;
1936
1949
  }),
1937
1950
  sortable: !0,
1938
1951
  //启用子表单数据排序
@@ -1994,11 +2007,11 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
1994
2007
  lineWidth: 12,
1995
2008
  tab: null
1996
2009
  };
1997
- }, _e = (e) => {
2010
+ }, Ee = (e) => {
1998
2011
  const { widget: t, label: r, ...n } = e || {};
1999
2012
  return {
2000
2013
  widget: {
2001
- widgetName: g(),
2014
+ widgetName: m(),
2002
2015
  widgetNameAlias: "",
2003
2016
  customCls: null,
2004
2017
  enable: !0,
@@ -2028,100 +2041,110 @@ const it = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
2028
2041
  tab: null,
2029
2042
  ...n
2030
2043
  };
2031
- }, xe = {
2032
- address: Ce,
2033
- button: ke,
2034
- textarea: Ae,
2035
- datetime: le,
2036
- text: D,
2037
- password: D,
2038
- location: ve,
2044
+ }, Me = {
2045
+ address: _e,
2046
+ button: Ce,
2047
+ textarea: Ne,
2048
+ datetime: oe,
2049
+ text: T,
2050
+ password: T,
2051
+ location: ke,
2039
2052
  radiogroup: $,
2040
2053
  radio: $,
2041
- combo: ae,
2042
- combocheck: Se,
2043
- separator: we,
2044
- checkboxgroup: he,
2045
- upload: ye,
2046
- number: ne,
2047
- image: be,
2048
- signature: pe,
2049
- user: fe,
2050
- dataload: me,
2051
- linkdata: de,
2052
- linkquery: _e,
2053
- usergroup: ue,
2054
- subform: Ne,
2055
- dept: se,
2056
- sn: oe,
2057
- deptgroup: ie,
2054
+ combo: ie,
2055
+ combocheck: Ae,
2056
+ separator: ve,
2057
+ checkboxgroup: Se,
2058
+ upload: we,
2059
+ number: le,
2060
+ image: he,
2061
+ signature: ye,
2062
+ user: be,
2063
+ dataload: pe,
2064
+ linkdata: me,
2065
+ linkquery: Ee,
2066
+ usergroup: ce,
2067
+ subform: xe,
2068
+ dept: de,
2069
+ sn: ue,
2070
+ deptgroup: se,
2058
2071
  flowState: w,
2059
2072
  flowstate: w,
2060
2073
  formula: w,
2061
2074
  unknown: w
2062
- }, Me = (e, t = !1) => {
2075
+ }, qe = (e, t = !1) => {
2063
2076
  var a, i;
2064
2077
  if (!e || !e.widget || !e.widget.type)
2065
2078
  return e;
2066
2079
  const r = e.widget.type || "unknown";
2067
- return t && r === "subform" ? w(e) : (((i = (a = e == null ? void 0 : e.widget) == null ? void 0 : a.widgetName) != null ? i : "").startsWith("_widget_") || (e.widget.widgetName = Q()), (xe[r] || w)(e));
2068
- }, st = (e) => {
2080
+ return t && r === "subform" ? w(e) : (((i = (a = e == null ? void 0 : e.widget) == null ? void 0 : a.widgetName) != null ? i : "").startsWith("_widget_") || (e.widget.widgetName = Q()), (Me[r] || w)(e));
2081
+ }, dt = (e) => {
2069
2082
  var t, r, n, l, a, i, o, s;
2070
2083
  return !e || !((t = e.corp) != null && t.name) || !((r = e.user) != null && r.nickname) ? "" : `${(n = e.corp) == null ? void 0 : n.name} ${(l = e.user) == null ? void 0 : l.nickname}(${(a = e.user) == null ? void 0 : a.username}) ${(i = e.appName) != null ? i : ""} ${(o = e.entryName) != null ? o : ""} ${(s = e.agentName) != null ? s : ""}`;
2071
- }, ut = (e) => {
2084
+ }, ct = (e) => {
2085
+ var r;
2072
2086
  if (!e)
2073
2087
  return "";
2088
+ const t = {
2089
+ corpId: (r = e.corp) == null ? void 0 : r.id,
2090
+ userId: e.user._id,
2091
+ appName: e.appName,
2092
+ appId: e.appId,
2093
+ entryName: e.entryName,
2094
+ entryId: e.entryId,
2095
+ agentName: e.agentName
2096
+ };
2074
2097
  try {
2075
- return JSON.stringify({
2076
- ...e
2077
- });
2078
- } catch (t) {
2079
- return console.warn("getChatCtxForMcp error", t), "";
2098
+ return JSON.stringify(t);
2099
+ } catch (n) {
2100
+ return console.warn("getChatCtxForMcp error", n), "";
2080
2101
  }
2081
2102
  };
2082
2103
  export {
2083
- Ke as DATA_COUNT_PER_BATCH,
2084
- K as FIELD_TYPE_OPERATOR_MAP,
2085
- it as FORM_ICON_UNICODE_MAP,
2086
- $e as GetLoadingMsg,
2087
- Pe as GetPartErrMsg,
2088
- Re as GetQueryResult,
2089
- Ie as GetSafeFormStructure,
2090
- te as ICON_UNICODE_MAP,
2091
- W as IsErrorPart,
2092
- Ee as IsFakeMsgPart,
2093
- Te as IsFileGroupPart,
2094
- qe as IsFilePart,
2095
- De as IsLoadingPart,
2096
- Fe as IsQueryResultPart,
2097
- Ve as OPERATOR_LABEL_MAP,
2104
+ Ve as DATA_COUNT_PER_BATCH,
2105
+ K as FIELD_TYPE_OPERATOR_LABEL_OVERRIDES,
2106
+ V as FIELD_TYPE_OPERATOR_MAP,
2107
+ st as FORM_ICON_UNICODE_MAP,
2108
+ Pe as GetLoadingMsg,
2109
+ Ie as GetPartErrMsg,
2110
+ Te as GetQueryResult,
2111
+ Ue as GetSafeFormStructure,
2112
+ ne as ICON_UNICODE_MAP,
2113
+ L as IsErrorPart,
2114
+ Fe as IsFakeMsgPart,
2115
+ $e as IsFileGroupPart,
2116
+ Re as IsFilePart,
2117
+ Oe as IsLoadingPart,
2118
+ De as IsQueryResultPart,
2119
+ Y as OPERATOR_LABEL_MAP,
2098
2120
  H as WHITE_LIST_FIELDS_SET,
2099
- rt as bsConditionParse2Condition,
2100
- tt as conditionStringify2bsCondition,
2101
- Ge as createFieldPartsExtractor,
2102
- Ue as createGetFieldJsonInfo,
2121
+ at as bsConditionParse2Condition,
2122
+ nt as conditionStringify2bsCondition,
2123
+ ze as createFieldPartsExtractor,
2124
+ He as createGetFieldJsonInfo,
2103
2125
  z as createPartTypeChecker,
2104
- je as createPayloadTypeChecker,
2126
+ Ge as createPayloadTypeChecker,
2105
2127
  y as extractTextPartMeta,
2106
- Qe as field2config,
2107
- O as flatArr,
2108
- nt as formatLocalDate,
2109
- Xe as getAvailableOperators,
2110
- st as getChatCtxForHuman,
2111
- ut as getChatCtxForMcp,
2112
- Ze as getDefaultOperator,
2113
- lt as getIconUnicode,
2114
- Oe as getMetaErrorMsg,
2115
- ze as hasValidFieldValue,
2116
- Ye as imageUrlToBase64,
2117
- Le as injectHostStylesIntoShadow,
2118
- et as isCtxMatch,
2119
- Je as isHelperCondMet,
2120
- at as mergeConsecutiveTargets,
2121
- ot as promptParser,
2122
- Me as rebuildFieldsJsonStructure,
2123
- He as safeParseJson,
2124
- We as syncHostStylesIntoShadow,
2125
- Be as valueNormalizer
2128
+ Ke as field2config,
2129
+ P as flatArr,
2130
+ lt as formatLocalDate,
2131
+ Je as getAvailableOperators,
2132
+ dt as getChatCtxForHuman,
2133
+ ct as getChatCtxForMcp,
2134
+ et as getDefaultOperator,
2135
+ ot as getIconUnicode,
2136
+ Le as getMetaErrorMsg,
2137
+ Ze as getOperatorLabel,
2138
+ Ye as hasValidFieldValue,
2139
+ Xe as imageUrlToBase64,
2140
+ We as injectHostStylesIntoShadow,
2141
+ rt as isCtxMatch,
2142
+ tt as isHelperCondMet,
2143
+ it as mergeConsecutiveTargets,
2144
+ ut as promptParser,
2145
+ qe as rebuildFieldsJsonStructure,
2146
+ Qe as safeParseJson,
2147
+ Be as syncHostStylesIntoShadow,
2148
+ je as valueNormalizer
2126
2149
  };
2127
2150
  //# sourceMappingURL=ai-feat-utils.js.map