@skopon-cool/form-sdk 0.4.0 → 0.4.2

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.
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import './form-sdk.css';
2
- var In = Object.defineProperty;
3
- var Mn = (e, t, n) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var G = (e, t, n) => Mn(e, typeof t != "symbol" ? t + "" : t, n);
5
- import { jsx as u, jsxs as I } from "react/jsx-runtime";
6
- import { useRef as T, useState as U, useCallback as $, useMemo as j, createContext as ye, useContext as ve, useEffect as z, useSyncExternalStore as Fn, forwardRef as Nn, useImperativeHandle as En } from "react";
7
- import { Spin as ct, Button as ze, Typography as te, Avatar as Un, Tag as fe, Select as nt, Checkbox as Rn, Radio as wn, Switch as Pn, TimePicker as zn, DatePicker as On, Upload as Ke, Input as Ge, InputNumber as qn, ConfigProvider as Bn, Tooltip as pe } from "antd";
8
- import { ReloadOutlined as Dt, FileTextOutlined as Ht, UserOutlined as Ln, FileImageOutlined as Vn, FileExcelOutlined as jn, FileOutlined as Kt, PictureOutlined as $n, SoundOutlined as Dn, VideoCameraOutlined as Hn } from "@ant-design/icons";
9
- import { createBinderlessComponentImplementation as Q, basicCatalog as Ee, A2uiSurface as Gt } from "@a2ui/react/v0_9";
2
+ var Fn = Object.defineProperty;
3
+ var En = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var G = (e, t, n) => En(e, typeof t != "symbol" ? t + "" : t, n);
5
+ import { jsx as c, jsxs as I } from "react/jsx-runtime";
6
+ import { useRef as A, useState as R, useCallback as $, useMemo as j, createContext as ye, useContext as ve, useEffect as z, useSyncExternalStore as Un, forwardRef as Rn, useImperativeHandle as wn } from "react";
7
+ import { Spin as mt, Button as ze, Typography as te, Avatar as Pn, Tag as fe, Select as ot, Checkbox as zn, Radio as On, Switch as qn, TimePicker as Bn, DatePicker as Ln, Upload as Je, Input as We, InputNumber as Vn, ConfigProvider as jn, Tooltip as pe } from "antd";
8
+ import { ReloadOutlined as Gt, FileTextOutlined as Jt, UserOutlined as $n, FileImageOutlined as Dn, FileExcelOutlined as Hn, FileOutlined as Wt, PictureOutlined as Kn, SoundOutlined as Gn, VideoCameraOutlined as Jn } from "@ant-design/icons";
9
+ import { createBinderlessComponentImplementation as Q, basicCatalog as Ee, A2uiSurface as Yt } from "@a2ui/react/v0_9";
10
10
  import { z as h } from "zod";
11
- import { Catalog as Kn, MessageProcessor as Jt } from "@a2ui/web_core/v0_9";
12
- import { injectBasicCatalogStyles as Wt } from "@a2ui/web_core/v0_9/basic_catalog";
13
- import { injectStyles as Yt } from "@a2ui/react/styles";
14
- import Ot from "dayjs";
15
- const Zi = "v0.9", Gn = [
11
+ import { Catalog as Wn, MessageProcessor as Qt } from "@a2ui/web_core/v0_9";
12
+ import { injectBasicCatalogStyles as Xt } from "@a2ui/web_core/v0_9/basic_catalog";
13
+ import { injectStyles as Zt } from "@a2ui/react/styles";
14
+ import Lt from "dayjs";
15
+ const ns = "v0.9", Yn = [
16
16
  "huge",
17
17
  "large",
18
18
  "medium",
@@ -28,7 +28,7 @@ function Oe(e) {
28
28
  function ae(e) {
29
29
  return !Oe(e) && !Ue(e);
30
30
  }
31
- function Jn() {
31
+ function Qn() {
32
32
  if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
33
33
  return crypto.randomUUID();
34
34
  if (typeof crypto < "u" && typeof crypto.getRandomValues == "function") {
@@ -43,10 +43,10 @@ function Jn() {
43
43
  });
44
44
  }
45
45
  function Se(e) {
46
- const t = Jn().replace(/-/g, "").slice(0, 8);
46
+ const t = Qn().replace(/-/g, "").slice(0, 8);
47
47
  return `${e}${t}`;
48
48
  }
49
- const Qt = [
49
+ const en = [
50
50
  { value: "image/*", label: "图片" },
51
51
  { value: "video/*", label: "视频" },
52
52
  { value: "audio/*", label: "音频" },
@@ -57,7 +57,7 @@ const Qt = [
57
57
  { value: "text/plain", label: "纯文本" },
58
58
  { value: "application/zip", label: "ZIP 压缩包" },
59
59
  { value: "application/x-rar-compressed", label: "RAR 压缩包" }
60
- ], Wn = {
60
+ ], Xn = {
61
61
  "image/*": ["image/*"],
62
62
  "video/*": ["video/*"],
63
63
  "audio/*": ["audio/*"],
@@ -77,7 +77,7 @@ const Qt = [
77
77
  "text/plain": ["text/plain"],
78
78
  "application/zip": ["application/zip"],
79
79
  "application/x-rar-compressed": ["application/x-rar-compressed"]
80
- }, Yn = {
80
+ }, Zn = {
81
81
  "image/*": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"],
82
82
  "video/*": [".mp4", ".mov", ".avi", ".webm"],
83
83
  "audio/*": [".mp3", ".wav", ".ogg", ".m4a"],
@@ -88,14 +88,14 @@ const Qt = [
88
88
  "text/plain": [".txt"],
89
89
  "application/zip": [".zip", ".7z"],
90
90
  "application/x-rar-compressed": [".rar"]
91
- }, Qn = {
91
+ }, er = {
92
92
  "application/msword": "office/word",
93
93
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "office/word",
94
94
  "application/vnd.ms-excel": "office/excel",
95
95
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "office/excel",
96
96
  "application/vnd.ms-powerpoint": "office/ppt",
97
97
  "application/vnd.openxmlformats-officedocument.presentationml.presentation": "office/ppt"
98
- }, ut = [
98
+ }, dt = [
99
99
  { value: ".jpg", label: ".jpg" },
100
100
  { value: ".jpeg", label: ".jpeg" },
101
101
  { value: ".png", label: ".png" },
@@ -121,18 +121,18 @@ const Qt = [
121
121
  { value: ".zip", label: ".zip" },
122
122
  { value: ".rar", label: ".rar" },
123
123
  { value: ".7z", label: ".7z" }
124
- ], Xn = Object.fromEntries(
125
- Qt.map((e) => [e.value, e.label])
126
- ), Zn = Object.fromEntries(
127
- ut.map((e) => [e.value, e.label])
128
- ), er = new Set(Qt.map((e) => e.value)), tr = new Set(
129
- ut.map((e) => e.value)
124
+ ], tr = Object.fromEntries(
125
+ en.map((e) => [e.value, e.label])
126
+ ), nr = Object.fromEntries(
127
+ dt.map((e) => [e.value, e.label])
128
+ ), rr = new Set(en.map((e) => e.value)), or = new Set(
129
+ dt.map((e) => e.value)
130
130
  );
131
- function nr(e) {
131
+ function ir(e) {
132
132
  const t = e.trim();
133
- return t ? er.has(t) ? t : Qn[t] ?? null : null;
133
+ return t ? rr.has(t) ? t : er[t] ?? null : null;
134
134
  }
135
- function rr(e) {
135
+ function sr(e) {
136
136
  return Array.isArray(e) ? e.map((t) => {
137
137
  const n = t.trim().toLowerCase();
138
138
  return n ? n.startsWith(".") ? n : `.${n}` : "";
@@ -142,87 +142,87 @@ function be(e) {
142
142
  if (!Array.isArray(e)) return [];
143
143
  const t = [], n = /* @__PURE__ */ new Set();
144
144
  for (const r of e) {
145
- const o = nr(r);
145
+ const o = ir(r);
146
146
  o && !n.has(o) && (n.add(o), t.push(o));
147
147
  }
148
148
  return t;
149
149
  }
150
- function or(e) {
150
+ function ar(e) {
151
151
  const t = be(e), n = [];
152
152
  for (const r of t)
153
- n.push(...Wn[r] ?? [r]);
153
+ n.push(...Xn[r] ?? [r]);
154
154
  return n;
155
155
  }
156
- function ir(e) {
156
+ function lr(e) {
157
157
  const t = be(e);
158
158
  if (t.length === 0) return [];
159
159
  const n = /* @__PURE__ */ new Set();
160
160
  for (const r of t)
161
- for (const o of Yn[r] ?? [])
161
+ for (const o of Zn[r] ?? [])
162
162
  n.add(o);
163
- return ut.filter((r) => n.has(r.value));
163
+ return dt.filter((r) => n.has(r.value));
164
164
  }
165
- function mt(e, t) {
166
- const n = rr(t), r = be(e);
165
+ function pt(e, t) {
166
+ const n = sr(t), r = be(e);
167
167
  if (r.length === 0)
168
- return n.filter((i) => tr.has(i));
168
+ return n.filter((i) => or.has(i));
169
169
  const o = new Set(
170
- ir(r).map((i) => i.value)
170
+ lr(r).map((i) => i.value)
171
171
  );
172
172
  return n.filter((i) => o.has(i));
173
173
  }
174
- function sr(e, t) {
175
- const n = or(e), r = mt(e, t), o = [...n, ...r];
174
+ function cr(e, t) {
175
+ const n = ar(e), r = pt(e, t), o = [...n, ...r];
176
176
  return o.length > 0 ? o.join(",") : void 0;
177
177
  }
178
- function ar(e, t) {
179
- const n = be(e), r = mt(
178
+ function ur(e, t) {
179
+ const n = be(e), r = pt(
180
180
  n,
181
181
  t
182
182
  ), o = [
183
- ...n.map((i) => Xn[i] ?? i),
184
- ...r.map((i) => Zn[i] ?? i)
183
+ ...n.map((i) => tr[i] ?? i),
184
+ ...r.map((i) => nr[i] ?? i)
185
185
  ];
186
186
  return o.length === 0 ? null : o.join("、");
187
187
  }
188
- const lr = [
188
+ const mr = [
189
189
  "video",
190
190
  "audio",
191
191
  "image",
192
192
  "file",
193
193
  "spreadsheet",
194
194
  "document"
195
- ], cr = new Set(lr);
196
- function ur(e) {
197
- return e && cr.has(e) ? e : "file";
195
+ ], dr = new Set(mr);
196
+ function pr(e) {
197
+ return e && dr.has(e) ? e : "file";
198
198
  }
199
199
  function ke(e) {
200
- return typeof e == "string" && Gn.includes(e) ? e : "medium";
200
+ return typeof e == "string" && Yn.includes(e) ? e : "medium";
201
201
  }
202
- function mr(e, t) {
202
+ function fr(e, t) {
203
203
  var o;
204
204
  const n = Math.max(1, t);
205
205
  let r = [];
206
206
  return Array.isArray(e.mediaUrls) ? r = e.mediaUrls.map((i) => String(i).trim()) : (o = e.mediaUrl) != null && o.trim() && (r = [e.mediaUrl.trim()]), r.length === 0 ? [""] : r.slice(0, n);
207
207
  }
208
- function dr(e) {
208
+ function hr(e) {
209
209
  var t;
210
210
  return Array.isArray(e.mediaUrls) ? e.mediaUrls.map((n) => n.trim()).filter(Boolean) : (t = e.mediaUrl) != null && t.trim() ? [e.mediaUrl.trim()] : [];
211
211
  }
212
- function pr(e) {
212
+ function gr(e) {
213
213
  return `form-media-size-${ke(e)}`;
214
214
  }
215
- function fr(e) {
216
- return `form-media-preview form-media-list ${pr(e)}`;
215
+ function yr(e) {
216
+ return `form-media-preview form-media-list ${gr(e)}`;
217
217
  }
218
- const hr = 10;
219
- function dt(e) {
218
+ const vr = 10;
219
+ function ft(e) {
220
220
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
221
221
  }
222
222
  function Ce(e) {
223
223
  return e === !0 || e === "true" || e === 1 || e === "1";
224
224
  }
225
- function qt(e, t = 1) {
225
+ function Vt(e, t = 1) {
226
226
  const n = typeof e == "number" ? e : Number(e);
227
227
  return Number.isFinite(n) ? Math.max(0, Math.floor(n)) : t;
228
228
  }
@@ -230,15 +230,15 @@ function Me(e, t = 1) {
230
230
  const n = typeof e == "number" ? e : Number(e);
231
231
  return Number.isFinite(n) ? Math.max(1, Math.floor(n)) : t;
232
232
  }
233
- function gr(e, t) {
233
+ function Sr(e, t) {
234
234
  if (t !== void 0)
235
235
  return e === "toggle" ? Ce(t) : e === "multiselect" || e === "checkbox" || e === "resume_multiselect" || e === "case_multiselect" ? Array.isArray(t) ? t.map(String) : typeof t == "string" && t ? [t] : [] : typeof t == "boolean" ? t ? "true" : "false" : Array.isArray(t) ? t.map(String) : String(t);
236
236
  }
237
- function yr(e) {
237
+ function br(e) {
238
238
  const t = typeof (e == null ? void 0 : e.pageSize) == "number" ? e.pageSize : Number(e == null ? void 0 : e.pageSize), n = Number.isFinite(t) && t >= 1 && t <= 100 ? Math.floor(t) : 20, r = typeof (e == null ? void 0 : e.agentKind) == "string" && e.agentKind.trim() ? e.agentKind.trim() : void 0, o = typeof (e == null ? void 0 : e.agentUniqueId) == "string" && e.agentUniqueId.trim() ? e.agentUniqueId.trim() : void 0, i = typeof (e == null ? void 0 : e.flowType) == "string" && e.flowType.trim() ? e.flowType.trim() : void 0, s = typeof (e == null ? void 0 : e.category) == "string" && e.category.trim() ? e.category.trim() : void 0, a = Array.isArray(e == null ? void 0 : e.flowUniqueIds) ? e.flowUniqueIds.map(String).filter(Boolean) : [];
239
239
  return { agentKind: r, agentUniqueId: o, flowType: i, category: s, flowUniqueIds: a, pageSize: n };
240
240
  }
241
- function vr(e) {
241
+ function kr(e) {
242
242
  const t = typeof (e == null ? void 0 : e.pageSize) == "number" ? e.pageSize : Number(e == null ? void 0 : e.pageSize), n = Number.isFinite(t) && t >= 1 && t <= 100 ? Math.floor(t) : 20;
243
243
  return {
244
244
  names: Array.isArray(e == null ? void 0 : e.names) ? e.names.map(String).filter(Boolean) : [],
@@ -247,14 +247,14 @@ function vr(e) {
247
247
  pageSize: n
248
248
  };
249
249
  }
250
- function Sr(e) {
250
+ function Cr(e) {
251
251
  if (e.type !== "case_singleselect") return e;
252
252
  const t = typeof e.defaultValue == "string" && e.defaultValue.trim() ? [e.defaultValue.trim()] : Array.isArray(e.defaultValue) ? e.defaultValue.map(String).filter(Boolean) : [];
253
253
  return { ...e, type: "case_multiselect", defaultValue: t };
254
254
  }
255
- function br(e) {
255
+ function Ar(e) {
256
256
  var o, i;
257
- const t = Sr(e), n = be(t.fileAcceptTypes), r = t.type;
257
+ const t = Cr(e), n = be(t.fileAcceptTypes), r = t.type;
258
258
  return {
259
259
  id: ((o = t.id) == null ? void 0 : o.trim()) || Se("block-"),
260
260
  type: r,
@@ -263,32 +263,32 @@ function br(e) {
263
263
  placeholder: t.placeholder ?? "",
264
264
  help: t.help ?? "",
265
265
  required: t.required === !0,
266
- mediaUrls: Ue(r) ? mr(t, hr) : void 0,
266
+ mediaUrls: Ue(r) ? fr(t, vr) : void 0,
267
267
  mediaSize: Ue(r) ? ke(t.mediaSize) : void 0,
268
268
  fileAcceptTypes: n,
269
- fileAcceptExtensions: mt(
269
+ fileAcceptExtensions: pt(
270
270
  n,
271
271
  t.fileAcceptExtensions
272
272
  ),
273
- filePlaceholderIcon: ur(t.filePlaceholderIcon),
274
- fileMinCount: r === "file" ? qt(t.fileMinCount, 1) : void 0,
275
- fileMaxCount: r === "file" ? qt(t.fileMaxCount, 1) : void 0,
276
- defaultValue: gr(r, t.defaultValue),
273
+ filePlaceholderIcon: pr(t.filePlaceholderIcon),
274
+ fileMinCount: r === "file" ? Vt(t.fileMinCount, 1) : void 0,
275
+ fileMaxCount: r === "file" ? Vt(t.fileMaxCount, 1) : void 0,
276
+ defaultValue: Sr(r, t.defaultValue),
277
277
  options: Array.isArray(t.options) ? t.options.map((s, a) => {
278
- var l, c;
278
+ var l, u;
279
279
  return {
280
280
  value: ((l = s.value) == null ? void 0 : l.trim()) || `option_${a + 1}`,
281
- label: ((c = s.label) == null ? void 0 : c.trim()) || `选项 ${a + 1}`
281
+ label: ((u = s.label) == null ? void 0 : u.trim()) || `选项 ${a + 1}`
282
282
  };
283
283
  }) : void 0,
284
284
  resumeEnableRefresh: r === "resume_multiselect" ? t.resumeEnableRefresh !== !1 : void 0,
285
285
  resumeMinCount: r === "resume_multiselect" && t.resumeMinCount != null ? Me(t.resumeMinCount, 1) : void 0,
286
286
  resumeMaxCount: r === "resume_multiselect" && t.resumeMaxCount != null ? Me(t.resumeMaxCount, 1) : void 0,
287
- resumeFilter: r === "resume_multiselect" ? vr(t.resumeFilter) : void 0,
287
+ resumeFilter: r === "resume_multiselect" ? kr(t.resumeFilter) : void 0,
288
288
  caseEnableRefresh: r === "case_multiselect" ? t.caseEnableRefresh !== !1 : void 0,
289
289
  caseMinCount: r === "case_multiselect" && t.caseMinCount != null ? Me(t.caseMinCount, 1) : void 0,
290
290
  caseMaxCount: r === "case_multiselect" && t.caseMaxCount != null ? Me(t.caseMaxCount, 1) : void 0,
291
- caseFilter: r === "case_multiselect" ? yr(t.caseFilter) : void 0
291
+ caseFilter: r === "case_multiselect" ? br(t.caseFilter) : void 0
292
292
  };
293
293
  }
294
294
  function Re(e) {
@@ -299,18 +299,18 @@ function Re(e) {
299
299
  jsonSchema: e.jsonSchema ?? {}
300
300
  };
301
301
  }
302
- function me(e) {
302
+ function ue(e) {
303
303
  if (!e || !Array.isArray(e.blocks))
304
304
  return Re({ title: "", description: "", blocks: [], jsonSchema: {} });
305
- const t = e.blocks.map(br);
305
+ const t = e.blocks.map(Ar);
306
306
  return Re({
307
307
  title: typeof e.title == "string" ? e.title : "",
308
308
  description: typeof e.description == "string" ? e.description : "",
309
309
  blocks: t,
310
- jsonSchema: dt(e.jsonSchema)
310
+ jsonSchema: ft(e.jsonSchema)
311
311
  });
312
312
  }
313
- function kr(e) {
313
+ function _r(e) {
314
314
  const t = typeof e.pageSize == "number" ? e.pageSize : Number(e.pageSize), n = typeof e.agentKind == "string" && e.agentKind.trim() ? e.agentKind.trim() : void 0, r = typeof e.agentUniqueId == "string" && e.agentUniqueId.trim() ? e.agentUniqueId.trim() : void 0, o = typeof e.flowType == "string" && e.flowType.trim() ? e.flowType.trim() : void 0, i = typeof e.category == "string" && e.category.trim() ? e.category.trim() : void 0, s = Array.isArray(e.flowUniqueIds) ? e.flowUniqueIds.map(String).filter(Boolean) : [];
315
315
  return {
316
316
  agentKind: n,
@@ -321,14 +321,14 @@ function kr(e) {
321
321
  pageSize: Number.isFinite(t) && t >= 1 && t <= 100 ? Math.floor(t) : 20
322
322
  };
323
323
  }
324
- function Bt(e) {
324
+ function jt(e) {
325
325
  if (e == null) return;
326
326
  const t = typeof e == "number" ? e : Number(e);
327
327
  if (!(!Number.isFinite(t) || t < 1))
328
328
  return Math.floor(t);
329
329
  }
330
- function Cr(e, t) {
331
- var s, a, l, c, m, d;
330
+ function Tr(e, t) {
331
+ var s, a, l, u, m, d;
332
332
  const { id: n, label: r, path: o, withData: i } = t;
333
333
  return i({
334
334
  id: n,
@@ -341,7 +341,7 @@ function Cr(e, t) {
341
341
  agentKind: (s = e.caseFilter) == null ? void 0 : s.agentKind,
342
342
  agentUniqueId: (a = e.caseFilter) == null ? void 0 : a.agentUniqueId,
343
343
  flowType: (l = e.caseFilter) == null ? void 0 : l.flowType,
344
- category: (c = e.caseFilter) == null ? void 0 : c.category,
344
+ category: (u = e.caseFilter) == null ? void 0 : u.category,
345
345
  flowUniqueIds: ((m = e.caseFilter) == null ? void 0 : m.flowUniqueIds) ?? [],
346
346
  pageSize: ((d = e.caseFilter) == null ? void 0 : d.pageSize) ?? 20
347
347
  },
@@ -350,7 +350,7 @@ function Cr(e, t) {
350
350
  value: { path: o }
351
351
  });
352
352
  }
353
- function Ar(e, t, n) {
353
+ function xr(e, t, n) {
354
354
  const r = n.nameFromValue(e.value), o = {
355
355
  ...t("case_multiselect"),
356
356
  name: r,
@@ -358,23 +358,23 @@ function Ar(e, t, n) {
358
358
  }, i = n.asLiteral(e.placeholder);
359
359
  i && (o.placeholder = i);
360
360
  const s = n.asLiteral(e.help);
361
- s && (o.help = s), e.caseFilter && typeof e.caseFilter == "object" && (o.caseFilter = kr(e.caseFilter));
362
- const a = Bt(e.minCount);
361
+ s && (o.help = s), e.caseFilter && typeof e.caseFilter == "object" && (o.caseFilter = _r(e.caseFilter));
362
+ const a = jt(e.minCount);
363
363
  a !== void 0 && (o.caseMinCount = a);
364
- const l = Bt(e.maxCount);
364
+ const l = jt(e.maxCount);
365
365
  return l !== void 0 && (o.caseMaxCount = l), o;
366
366
  }
367
- const Xt = ye(
367
+ const tn = ye(
368
368
  null
369
369
  );
370
- function _r(e) {
370
+ function Ir(e) {
371
371
  try {
372
372
  return JSON.stringify(e);
373
373
  } catch {
374
374
  return String(e.length);
375
375
  }
376
376
  }
377
- const Tr = {
377
+ const Mr = {
378
378
  publishLiveOptions: () => {
379
379
  },
380
380
  liveOptions: /* @__PURE__ */ new Map(),
@@ -383,8 +383,8 @@ const Tr = {
383
383
  clearPendingChangeFields: () => {
384
384
  }
385
385
  };
386
- function xr({ children: e }) {
387
- const t = T(/* @__PURE__ */ new Map()), n = T(/* @__PURE__ */ new Map()), r = T([]), [o, i] = U(0), [s, a] = U(() => /* @__PURE__ */ new Map()), [l, c] = U(
386
+ function Nr({ children: e }) {
387
+ const t = A(/* @__PURE__ */ new Map()), n = A(/* @__PURE__ */ new Map()), r = A([]), [o, i] = R(0), [s, a] = R(() => /* @__PURE__ */ new Map()), [l, u] = R(
388
388
  []
389
389
  ), m = $(
390
390
  (g, b) => {
@@ -393,12 +393,12 @@ function xr({ children: e }) {
393
393
  const k = b.map((p) => ({
394
394
  value: String(p.value ?? ""),
395
395
  label: String(p.label ?? p.value ?? "")
396
- })), f = _r(k);
397
- n.current.get(y) !== f && (n.current.set(y, f), t.current.set(y, k), r.current.includes(y) || (r.current = [...r.current, y]), a(new Map(t.current)), c(r.current), i((p) => p + 1));
396
+ })), f = Ir(k);
397
+ n.current.get(y) !== f && (n.current.set(y, f), t.current.set(y, k), r.current.includes(y) || (r.current = [...r.current, y]), a(new Map(t.current)), u(r.current), i((p) => p + 1));
398
398
  },
399
399
  []
400
400
  ), d = $(() => {
401
- r.current = [], c([]);
401
+ r.current = [], u([]);
402
402
  }, []), S = j(
403
403
  () => ({
404
404
  publishLiveOptions: m,
@@ -415,26 +415,26 @@ function xr({ children: e }) {
415
415
  d
416
416
  ]
417
417
  );
418
- return /* @__PURE__ */ u(Xt.Provider, { value: S, children: e });
418
+ return /* @__PURE__ */ c(tn.Provider, { value: S, children: e });
419
419
  }
420
- function pt() {
421
- return ve(Xt) ?? Tr;
420
+ function ht() {
421
+ return ve(tn) ?? Mr;
422
422
  }
423
- const Zt = ye({ interactive: !0 });
424
- function rt({
423
+ const nn = ye({ interactive: !0 });
424
+ function it({
425
425
  interactive: e,
426
426
  children: t
427
427
  }) {
428
- return /* @__PURE__ */ u(Zt.Provider, { value: { interactive: e }, children: t });
428
+ return /* @__PURE__ */ c(nn.Provider, { value: { interactive: e }, children: t });
429
429
  }
430
- function oe() {
431
- return ve(Zt);
430
+ function ie() {
431
+ return ve(nn);
432
432
  }
433
- const en = ye(null);
434
- function Ir(e) {
433
+ const rn = ye(null);
434
+ function Fr(e) {
435
435
  return e != null && (typeof e == "object" || typeof e == "function") && typeof e.then == "function";
436
436
  }
437
- const Mr = {
437
+ const Er = {
438
438
  reportEvent: () => {
439
439
  },
440
440
  reportData: () => {
@@ -442,7 +442,7 @@ const Mr = {
442
442
  runAutoControl: (e) => e(),
443
443
  isAutoControl: () => !1
444
444
  };
445
- function Fr(e) {
445
+ function Ur(e) {
446
446
  const t = {};
447
447
  for (const [n, r] of Object.entries(e.form_values ?? {}))
448
448
  r !== void 0 && (t[n] = r);
@@ -452,34 +452,34 @@ function Fr(e) {
452
452
  form_change: Array.isArray(e.form_change) ? [...e.form_change] : []
453
453
  };
454
454
  }
455
- function Nr({
455
+ function Rr({
456
456
  client: e,
457
457
  children: t
458
458
  }) {
459
- const n = T(0), r = T(e);
459
+ const n = A(0), r = A(e);
460
460
  r.current = e;
461
- const o = $((c) => {
461
+ const o = $((u) => {
462
462
  const m = r.current;
463
463
  if (!m) return;
464
464
  const d = {
465
- action: c.action,
466
- component: c.component
465
+ action: u.action,
466
+ component: u.component
467
467
  };
468
- c.field !== void 0 && (d.field = c.field), c.value !== void 0 && (d.value = c.value);
468
+ u.field !== void 0 && (d.field = u.field), u.value !== void 0 && (d.value = u.value);
469
469
  const S = n.current > 0 ? "form_auto_control_bac_event" : "form_runtime_event";
470
470
  m.send(S, d);
471
- }, []), i = $((c) => {
471
+ }, []), i = $((u) => {
472
472
  const m = r.current;
473
- m && m.send("form_runtime_data", Fr(c));
474
- }, []), s = $((c) => {
473
+ m && m.send("form_runtime_data", Ur(u));
474
+ }, []), s = $((u) => {
475
475
  n.current += 1;
476
476
  let m;
477
477
  try {
478
- m = c();
478
+ m = u();
479
479
  } catch (d) {
480
480
  throw n.current = Math.max(0, n.current - 1), d;
481
481
  }
482
- return Ir(m) ? Promise.resolve(m).finally(() => {
482
+ return Fr(m) ? Promise.resolve(m).finally(() => {
483
483
  n.current = Math.max(0, n.current - 1);
484
484
  }) : (n.current = Math.max(0, n.current - 1), m);
485
485
  }, []), a = $(
@@ -494,38 +494,38 @@ function Nr({
494
494
  }),
495
495
  [o, i, s, a]
496
496
  );
497
- return /* @__PURE__ */ u(en.Provider, { value: l, children: t });
497
+ return /* @__PURE__ */ c(rn.Provider, { value: l, children: t });
498
498
  }
499
- function tn() {
500
- return ve(en) ?? Mr;
499
+ function on() {
500
+ return ve(rn) ?? Er;
501
501
  }
502
- const Er = 300;
503
- function nn(e) {
502
+ const wr = 300;
503
+ function sn(e) {
504
504
  return e && typeof e == "object" && "path" in e && String(e.path ?? "").trim() || null;
505
505
  }
506
- function Ur(e) {
506
+ function Pr(e) {
507
507
  if (!e) return;
508
508
  const t = e.trim();
509
509
  if (t)
510
510
  return t.startsWith("/") ? t.slice(1) : t;
511
511
  }
512
- function Lt(e, t = "value") {
512
+ function $t(e, t = "value") {
513
513
  const r = e.componentModel.properties[t];
514
- if (!(!nn(r) || r === void 0))
514
+ if (!(!sn(r) || r === void 0))
515
515
  return e.dataContext.resolveDynamicValue(r);
516
516
  }
517
- function ie(e, t = "value", n = {}) {
518
- const o = e.componentModel.properties[t], i = nn(o), s = Ur(i), a = tn(), {
517
+ function se(e, t = "value", n = {}) {
518
+ const o = e.componentModel.properties[t], i = sn(o), s = Pr(i), a = on(), {
519
519
  component: l = "Unknown",
520
- changeAction: c = "change",
520
+ changeAction: u = "change",
521
521
  debounceChange: m = !1
522
- } = n, d = T(null), S = T(void 0), g = T(!1), b = T(a);
522
+ } = n, d = A(null), S = A(void 0), g = A(!1), b = A(a);
523
523
  b.current = a;
524
- const y = T(c);
525
- y.current = c;
526
- const k = T(l);
524
+ const y = A(u);
525
+ y.current = u;
526
+ const k = A(l);
527
527
  k.current = l;
528
- const f = T(s);
528
+ const f = A(s);
529
529
  f.current = s, z(() => () => {
530
530
  d.current != null && (clearTimeout(d.current), d.current = null), g.current && f.current && (g.current = !1, b.current.reportEvent({
531
531
  action: y.current,
@@ -538,43 +538,43 @@ function ie(e, t = "value", n = {}) {
538
538
  (O) => {
539
539
  if (!i || o === void 0) return () => {
540
540
  };
541
- const q = e.dataContext.subscribeDynamicValue(o, () => O());
542
- return () => q.unsubscribe();
541
+ const B = e.dataContext.subscribeDynamicValue(o, () => O());
542
+ return () => B.unsubscribe();
543
543
  },
544
544
  [e, o, i]
545
545
  ), v = $(() => {
546
546
  if (!(!i || o === void 0))
547
547
  return e.dataContext.resolveDynamicValue(o);
548
- }, [e, o, i]), x = Fn(p, v, v), M = $(
548
+ }, [e, o, i]), x = Un(p, v, v), M = $(
549
549
  (O) => {
550
550
  if (!s) return;
551
- const q = () => {
551
+ const B = () => {
552
552
  g.current = !1, b.current.reportEvent({
553
- action: c,
553
+ action: u,
554
554
  component: l,
555
555
  field: s,
556
556
  value: O
557
557
  });
558
558
  };
559
559
  if (!m) {
560
- q();
560
+ B();
561
561
  return;
562
562
  }
563
563
  S.current = O, g.current = !0, d.current != null && clearTimeout(d.current), d.current = setTimeout(() => {
564
- d.current = null, q();
565
- }, Er);
564
+ d.current = null, B();
565
+ }, wr);
566
566
  },
567
- [s, c, l, m]
568
- ), A = $(
567
+ [s, u, l, m]
568
+ ), _ = $(
569
569
  (O) => {
570
570
  !i || !o || typeof o != "object" || !("path" in o) || e.dataContext.set(String(o.path), O);
571
571
  },
572
572
  [e, o, i]
573
- ), R = $(
573
+ ), w = $(
574
574
  (O) => {
575
- A(O), M(O);
575
+ _(O), M(O);
576
576
  },
577
- [A, M]
577
+ [_, M]
578
578
  ), C = $(() => {
579
579
  s && b.current.reportEvent({
580
580
  action: "focus",
@@ -584,9 +584,9 @@ function ie(e, t = "value", n = {}) {
584
584
  }, [s, l]);
585
585
  return {
586
586
  value: x,
587
- setValue: R,
587
+ setValue: w,
588
588
  /** 写入 dataModel 但不上报(用于模式切换规范化等内部同步) */
589
- setValueSilent: A,
589
+ setValueSilent: _,
590
590
  hasBinding: !!i,
591
591
  fieldName: s,
592
592
  reportFocus: C
@@ -599,7 +599,7 @@ function he(e) {
599
599
  function Y(e) {
600
600
  return Array.isArray(e) ? e.map(String) : typeof e == "string" && e ? [e] : [];
601
601
  }
602
- function rn(e, t) {
602
+ function an(e, t) {
603
603
  return t ? Array.isArray(e) ? null : Y(e) : Array.isArray(e) ? e.length > 0 ? String(e[0]) : "" : e == null || typeof e == "string" || typeof e == "number" ? null : "";
604
604
  }
605
605
  function we(e) {
@@ -608,49 +608,49 @@ function we(e) {
608
608
  if (!(!Number.isFinite(t) || t < 1))
609
609
  return Math.floor(t);
610
610
  }
611
- function on(e, t, n, r) {
611
+ function ln(e, t, n, r) {
612
612
  if (e.includes(t)) {
613
613
  const i = e.filter((s) => s !== t);
614
614
  return n !== void 0 && i.length < n ? null : i;
615
615
  }
616
616
  return r !== void 0 && e.length >= r ? null : [...e, t];
617
617
  }
618
- function sn(e, t, n, r, o) {
618
+ function cn(e, t, n, r, o) {
619
619
  if (!n) return !0;
620
620
  const i = e.includes(t);
621
621
  return !!(!i && o !== void 0 && e.length >= o || i && r !== void 0 && e.length <= r);
622
622
  }
623
- function an(e, t) {
623
+ function un(e, t) {
624
624
  return t === void 0 || e.length <= t ? null : e.slice(0, t);
625
625
  }
626
- const ln = ye(null);
627
- function ot({
626
+ const mn = ye(null);
627
+ function st({
628
628
  caseSearch: e,
629
629
  children: t
630
630
  }) {
631
- return /* @__PURE__ */ u(ln.Provider, { value: e ?? null, children: t });
631
+ return /* @__PURE__ */ c(mn.Provider, { value: e ?? null, children: t });
632
632
  }
633
- function Rr() {
634
- return ve(ln);
633
+ function zr() {
634
+ return ve(mn);
635
635
  }
636
- function Je(e) {
636
+ function Ye(e) {
637
637
  return typeof e == "string" ? e : "";
638
638
  }
639
- function We(e) {
639
+ function Qe(e) {
640
640
  if (!e || typeof e != "object")
641
641
  return { flowUniqueIds: [], pageSize: 20 };
642
642
  const t = e, n = typeof t.pageSize == "number" ? t.pageSize : Number(t.pageSize), r = Number.isFinite(n) && n >= 1 && n <= 100 ? Math.floor(n) : 20, o = typeof t.agentKind == "string" && t.agentKind.trim() ? t.agentKind.trim() : void 0, i = typeof t.agentUniqueId == "string" && t.agentUniqueId.trim() ? t.agentUniqueId.trim() : void 0, s = typeof t.flowType == "string" && t.flowType.trim() ? t.flowType.trim() : void 0, a = typeof t.category == "string" && t.category.trim() ? t.category.trim() : void 0, l = Array.isArray(t.flowUniqueIds) ? t.flowUniqueIds.map(String).filter(Boolean) : [];
643
643
  return { agentKind: o, agentUniqueId: i, flowType: s, category: a, flowUniqueIds: l, pageSize: r };
644
644
  }
645
- function Ye(e) {
645
+ function Xe(e) {
646
646
  var r;
647
647
  const t = !!((r = e.flowUniqueIds) != null && r.length), n = !!(e.agentUniqueId && e.flowType && e.category);
648
648
  return t || n;
649
649
  }
650
- function wr(e) {
650
+ function Or(e) {
651
651
  return JSON.stringify(e);
652
652
  }
653
- const Pr = {
653
+ const qr = {
654
654
  name: "SkoponCaseSelect",
655
655
  schema: h.object({
656
656
  label: h.any().optional(),
@@ -663,7 +663,7 @@ const Pr = {
663
663
  value: h.any().optional()
664
664
  }).passthrough()
665
665
  };
666
- function zr({
666
+ function Br({
667
667
  item: e,
668
668
  selected: t,
669
669
  disabled: n,
@@ -677,10 +677,10 @@ function zr({
677
677
  disabled: n,
678
678
  onClick: r,
679
679
  children: [
680
- /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-avatar", children: /* @__PURE__ */ u(Ht, { style: { fontSize: 24, color: "var(--color-primary, #208368)" } }) }),
680
+ /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-avatar", children: /* @__PURE__ */ c(Jt, { style: { fontSize: 24, color: "var(--color-primary, #208368)" } }) }),
681
681
  /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-body", children: [
682
- /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-name", children: e.name }),
683
- e.description ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-desc", children: e.description }) : null,
682
+ /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-name", children: e.name }),
683
+ e.description ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-desc", children: e.description }) : null,
684
684
  /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-meta", children: [
685
685
  e.caseUniqueId,
686
686
  e.platform ? ` · ${e.platform}` : "",
@@ -691,38 +691,38 @@ function zr({
691
691
  }
692
692
  );
693
693
  }
694
- function Or({ context: e }) {
695
- const { interactive: t } = oe(), n = Rr(), { publishLiveOptions: r } = pt(), { value: o, setValue: i, setValueSilent: s, fieldName: a } = ie(e, "value", {
694
+ function Lr({ context: e }) {
695
+ const { interactive: t } = ie(), n = zr(), { publishLiveOptions: r } = ht(), { value: o, setValue: i, setValueSilent: s, fieldName: a } = se(e, "value", {
696
696
  component: "SkoponCaseSelect",
697
697
  changeAction: "click"
698
- }), l = e.componentModel.properties, c = Je(l.label), m = Je(l.placeholder), d = Je(l.help), S = l.enableRefresh !== !1, g = we(l.minCount), b = we(l.maxCount), y = j(() => We(l.caseFilter), [l.caseFilter]), k = wr(y), [f, p] = U(1), [v, x] = U(!1), [M, A] = U(""), [R, C] = U([]), [O, q] = U(0), [le, K] = U(y.pageSize ?? 20), D = T(0), J = Y(o);
698
+ }), l = e.componentModel.properties, u = Ye(l.label), m = Ye(l.placeholder), d = Ye(l.help), S = l.enableRefresh !== !1, g = we(l.minCount), b = we(l.maxCount), y = j(() => Qe(l.caseFilter), [l.caseFilter]), k = Or(y), [f, p] = R(1), [v, x] = R(!1), [M, _] = R(""), [w, C] = R([]), [O, B] = R(0), [ne, K] = R(y.pageSize ?? 20), D = A(0), J = Y(o);
699
699
  z(() => {
700
- const _ = an(J, b);
701
- _ !== null && s(_);
700
+ const T = un(J, b);
701
+ T !== null && s(T);
702
702
  }, [b, J, s]);
703
- const Z = j(() => n ? Ye(y) ? M || m || "暂无匹配的案例" : "未配置案例列表筛选条件" : "未配置案例搜索服务", [n, y, M, m]), ee = $(
704
- async (_) => {
705
- const V = We(JSON.parse(k)), w = ++D.current;
706
- if (!n || !Ye(V)) {
707
- C([]), q(0), A(""), x(!1);
703
+ const Z = j(() => n ? Xe(y) ? M || m || "暂无匹配的案例" : "未配置案例列表筛选条件" : "未配置案例搜索服务", [n, y, M, m]), ee = $(
704
+ async (T) => {
705
+ const V = Qe(JSON.parse(k)), P = ++D.current;
706
+ if (!n || !Xe(V)) {
707
+ C([]), B(0), _(""), x(!1);
708
708
  return;
709
709
  }
710
- x(!0), A("");
710
+ x(!0), _("");
711
711
  try {
712
- const F = await n({ filter: V, page: _ });
713
- if (w !== D.current) return;
714
- C(F.list), q(F.total), p(F.page), K(F.pageSize), a && r(
712
+ const N = await n({ filter: V, page: T });
713
+ if (P !== D.current) return;
714
+ C(N.list), B(N.total), p(N.page), K(N.pageSize), a && r(
715
715
  a,
716
- F.list.map((W) => ({
716
+ N.list.map((W) => ({
717
717
  value: W.caseUniqueId,
718
718
  label: W.name || W.caseUniqueId
719
719
  }))
720
720
  );
721
- } catch (F) {
722
- if (w !== D.current) return;
723
- C([]), q(0), A(F instanceof Error ? F.message : "加载案例列表失败");
721
+ } catch (N) {
722
+ if (P !== D.current) return;
723
+ C([]), B(0), _(N instanceof Error ? N.message : "加载案例列表失败");
724
724
  } finally {
725
- w === D.current && x(!1);
725
+ P === D.current && x(!1);
726
726
  }
727
727
  },
728
728
  [n, k, a, r]
@@ -730,18 +730,18 @@ function Or({ context: e }) {
730
730
  z(() => {
731
731
  p(1), ee(1);
732
732
  }, [k, ee]);
733
- const N = (_) => {
733
+ const F = (T) => {
734
734
  if (!t) return;
735
- const V = on(
735
+ const V = ln(
736
736
  J,
737
- _,
737
+ T,
738
738
  g,
739
739
  b
740
740
  );
741
741
  V !== null && i(V);
742
742
  }, L = () => {
743
- const _ = We(JSON.parse(k)), V = le || _.pageSize || 20, w = Math.max(1, Math.ceil(O / V)), F = f >= w ? 1 : f + 1;
744
- ee(F);
743
+ const T = Qe(JSON.parse(k)), V = ne || T.pageSize || 20, P = Math.max(1, Math.ceil(O / V)), N = f >= P ? 1 : f + 1;
744
+ ee(N);
745
745
  };
746
746
  return /* @__PURE__ */ I(
747
747
  "div",
@@ -749,63 +749,63 @@ function Or({ context: e }) {
749
749
  className: "form-block-preview skopon-resume-select",
750
750
  "data-skopon-field": a || void 0,
751
751
  children: [
752
- c ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: c }) : null,
753
- v && R.length === 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-status", children: [
754
- /* @__PURE__ */ u(ct, { size: "small" }),
752
+ u ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: u }) : null,
753
+ v && w.length === 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-status", children: [
754
+ /* @__PURE__ */ c(mt, { size: "small" }),
755
755
  " 加载案例…"
756
756
  ] }) : null,
757
- !v && R.length === 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-empty", children: Z }) : null,
758
- R.length > 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-list", children: R.map((_) => /* @__PURE__ */ u(
759
- zr,
757
+ !v && w.length === 0 ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-empty", children: Z }) : null,
758
+ w.length > 0 ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-list", children: w.map((T) => /* @__PURE__ */ c(
759
+ Br,
760
760
  {
761
- item: _,
762
- selected: J.includes(_.caseUniqueId),
763
- disabled: sn(
761
+ item: T,
762
+ selected: J.includes(T.caseUniqueId),
763
+ disabled: cn(
764
764
  J,
765
- _.caseUniqueId,
765
+ T.caseUniqueId,
766
766
  t,
767
767
  g,
768
768
  b
769
769
  ),
770
- onToggle: () => N(_.caseUniqueId)
770
+ onToggle: () => F(T.caseUniqueId)
771
771
  },
772
- _.caseUniqueId
772
+ T.caseUniqueId
773
773
  )) }) : null,
774
- S && n && Ye(y) ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-actions", children: /* @__PURE__ */ u(
774
+ S && n && Xe(y) ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-actions", children: /* @__PURE__ */ c(
775
775
  ze,
776
776
  {
777
777
  type: "default",
778
778
  size: "small",
779
- icon: /* @__PURE__ */ u(Dt, {}),
779
+ icon: /* @__PURE__ */ c(Gt, {}),
780
780
  loading: v,
781
781
  disabled: !t,
782
782
  onClick: L,
783
783
  children: "换一批"
784
784
  }
785
785
  ) }) : null,
786
- d ? /* @__PURE__ */ u(te.Text, { type: "secondary", className: "form-block-preview-help", children: d }) : null
786
+ d ? /* @__PURE__ */ c(te.Text, { type: "secondary", className: "form-block-preview-help", children: d }) : null
787
787
  ]
788
788
  }
789
789
  );
790
790
  }
791
- const qr = Q(
792
- Pr,
793
- Or
794
- ), Br = {
791
+ const Vr = Q(
792
+ qr,
793
+ Lr
794
+ ), jr = {
795
795
  type: "case_multiselect",
796
796
  componentName: "SkoponCaseSelect",
797
- toComponent: Cr,
798
- fromComponent: Ar,
799
- catalogComponents: [qr]
797
+ toComponent: Tr,
798
+ fromComponent: xr,
799
+ catalogComponents: [Vr]
800
800
  };
801
- function Vt(e) {
801
+ function Dt(e) {
802
802
  if (e == null) return;
803
803
  const t = typeof e == "number" ? e : Number(e);
804
804
  if (!(!Number.isFinite(t) || t < 1))
805
805
  return Math.floor(t);
806
806
  }
807
- function Lr(e, t) {
808
- var s, a, l, c;
807
+ function $r(e, t) {
808
+ var s, a, l, u;
809
809
  const { id: n, label: r, path: o, withData: i } = t;
810
810
  return i({
811
811
  id: n,
@@ -818,14 +818,14 @@ function Lr(e, t) {
818
818
  names: ((s = e.resumeFilter) == null ? void 0 : s.names) ?? [],
819
819
  agentUniqueIds: ((a = e.resumeFilter) == null ? void 0 : a.agentUniqueIds) ?? [],
820
820
  resumeUniqueIds: ((l = e.resumeFilter) == null ? void 0 : l.resumeUniqueIds) ?? [],
821
- pageSize: ((c = e.resumeFilter) == null ? void 0 : c.pageSize) ?? 20
821
+ pageSize: ((u = e.resumeFilter) == null ? void 0 : u.pageSize) ?? 20
822
822
  },
823
823
  ...e.resumeMinCount !== void 0 ? { minCount: e.resumeMinCount } : {},
824
824
  ...e.resumeMaxCount !== void 0 ? { maxCount: e.resumeMaxCount } : {},
825
825
  value: { path: o }
826
826
  });
827
827
  }
828
- function Vr(e, t, n) {
828
+ function Dr(e, t, n) {
829
829
  const r = n.nameFromValue(e.value), o = {
830
830
  ...t("resume_multiselect"),
831
831
  name: r,
@@ -834,42 +834,42 @@ function Vr(e, t, n) {
834
834
  i && (o.placeholder = i);
835
835
  const s = n.asLiteral(e.help);
836
836
  if (s && (o.help = s), e.resumeFilter && typeof e.resumeFilter == "object") {
837
- const c = e.resumeFilter;
837
+ const u = e.resumeFilter;
838
838
  o.resumeFilter = {
839
- names: Array.isArray(c.names) ? c.names.map(String) : [],
840
- agentUniqueIds: Array.isArray(c.agentUniqueIds) ? c.agentUniqueIds.map(String) : [],
841
- resumeUniqueIds: Array.isArray(c.resumeUniqueIds) ? c.resumeUniqueIds.map(String) : [],
842
- pageSize: typeof c.pageSize == "number" ? c.pageSize : 20
839
+ names: Array.isArray(u.names) ? u.names.map(String) : [],
840
+ agentUniqueIds: Array.isArray(u.agentUniqueIds) ? u.agentUniqueIds.map(String) : [],
841
+ resumeUniqueIds: Array.isArray(u.resumeUniqueIds) ? u.resumeUniqueIds.map(String) : [],
842
+ pageSize: typeof u.pageSize == "number" ? u.pageSize : 20
843
843
  };
844
844
  }
845
- const a = Vt(e.minCount);
845
+ const a = Dt(e.minCount);
846
846
  a !== void 0 && (o.resumeMinCount = a);
847
- const l = Vt(e.maxCount);
847
+ const l = Dt(e.maxCount);
848
848
  return l !== void 0 && (o.resumeMaxCount = l), o;
849
849
  }
850
- const cn = ye(null);
851
- function it({
850
+ const dn = ye(null);
851
+ function at({
852
852
  resumeSearch: e,
853
853
  children: t
854
854
  }) {
855
- return /* @__PURE__ */ u(cn.Provider, { value: e ?? null, children: t });
855
+ return /* @__PURE__ */ c(dn.Provider, { value: e ?? null, children: t });
856
856
  }
857
- function jr() {
858
- return ve(cn);
857
+ function Hr() {
858
+ return ve(dn);
859
859
  }
860
- function Qe(e) {
860
+ function Ze(e) {
861
861
  return typeof e == "string" ? e : "";
862
862
  }
863
- function Xe(e) {
863
+ function et(e) {
864
864
  if (!e || typeof e != "object")
865
865
  return { names: [], agentUniqueIds: [], resumeUniqueIds: [], pageSize: 20 };
866
866
  const t = e, n = Array.isArray(t.names) ? t.names.map(String).filter(Boolean) : [], r = Array.isArray(t.agentUniqueIds) ? t.agentUniqueIds.map(String).filter(Boolean) : [], o = Array.isArray(t.resumeUniqueIds) ? t.resumeUniqueIds.map(String).filter(Boolean) : [], i = typeof t.pageSize == "number" ? t.pageSize : Number(t.pageSize), s = Number.isFinite(i) && i >= 1 && i <= 100 ? Math.floor(i) : 20;
867
867
  return { names: n, agentUniqueIds: r, resumeUniqueIds: o, pageSize: s };
868
868
  }
869
- function $r(e) {
869
+ function Kr(e) {
870
870
  return JSON.stringify(e);
871
871
  }
872
- const Dr = {
872
+ const Gr = {
873
873
  name: "SkoponResumeSelect",
874
874
  schema: h.object({
875
875
  label: h.any().optional(),
@@ -881,39 +881,39 @@ const Dr = {
881
881
  maxCount: h.any().optional(),
882
882
  value: h.any().optional()
883
883
  }).passthrough()
884
- }, Hr = 3, Kr = 2;
885
- function Ze(e, t) {
886
- const n = (t ?? []).filter(Boolean), r = n.slice(0, Hr), o = n.length - r.length;
884
+ }, Jr = 3, Wr = 2;
885
+ function tt(e, t) {
886
+ const n = (t ?? []).filter(Boolean), r = n.slice(0, Jr), o = n.length - r.length;
887
887
  return /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-tags", children: [
888
- /* @__PURE__ */ u("span", { className: "skopon-resume-select-card-tags-label", children: e }),
888
+ /* @__PURE__ */ c("span", { className: "skopon-resume-select-card-tags-label", children: e }),
889
889
  n.length > 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-tags-list", children: [
890
- r.map((i) => /* @__PURE__ */ u(fe, { className: "skopon-resume-select-card-tag", children: i }, i)),
890
+ r.map((i) => /* @__PURE__ */ c(fe, { className: "skopon-resume-select-card-tag", children: i }, i)),
891
891
  o > 0 ? /* @__PURE__ */ I(fe, { className: "skopon-resume-select-card-tag", children: [
892
892
  "+",
893
893
  o
894
894
  ] }) : null
895
- ] }) : /* @__PURE__ */ u("span", { className: "skopon-resume-select-card-tags-empty", children: "暂无" })
895
+ ] }) : /* @__PURE__ */ c("span", { className: "skopon-resume-select-card-tags-empty", children: "暂无" })
896
896
  ] });
897
897
  }
898
- function Gr(e) {
898
+ function Yr(e) {
899
899
  return /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-field", children: [
900
- /* @__PURE__ */ u("span", { className: "skopon-resume-select-card-tags-label", children: "满意度" }),
901
- /* @__PURE__ */ u("span", { className: "skopon-resume-select-card-field-value", children: typeof e == "number" ? `${e}%` : "暂无" })
900
+ /* @__PURE__ */ c("span", { className: "skopon-resume-select-card-tags-label", children: "满意度" }),
901
+ /* @__PURE__ */ c("span", { className: "skopon-resume-select-card-field-value", children: typeof e == "number" ? `${e}%` : "暂无" })
902
902
  ] });
903
903
  }
904
- function Jr({ work: e }) {
904
+ function Qr({ work: e }) {
905
905
  return /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-work", children: [
906
- /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-work-cover", children: e.coverUrl ? /* @__PURE__ */ u("img", { src: e.coverUrl, alt: "", className: "skopon-resume-select-card-work-img" }) : /* @__PURE__ */ u(Vn, { className: "skopon-resume-select-card-work-placeholder" }) }),
907
- /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-work-title", children: e.title || "未命名作品" })
906
+ /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-work-cover", children: e.coverUrl ? /* @__PURE__ */ c("img", { src: e.coverUrl, alt: "", className: "skopon-resume-select-card-work-img" }) : /* @__PURE__ */ c(Dn, { className: "skopon-resume-select-card-work-placeholder" }) }),
907
+ /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-work-title", children: e.title || "未命名作品" })
908
908
  ] });
909
909
  }
910
- function Wr({
910
+ function Xr({
911
911
  item: e,
912
912
  selected: t,
913
913
  disabled: n,
914
914
  onToggle: r
915
915
  }) {
916
- const o = (e.works ?? []).slice(0, Kr);
916
+ const o = (e.works ?? []).slice(0, Wr);
917
917
  return /* @__PURE__ */ I(
918
918
  "button",
919
919
  {
@@ -922,62 +922,62 @@ function Wr({
922
922
  disabled: n,
923
923
  onClick: r,
924
924
  children: [
925
- /* @__PURE__ */ u(
926
- Un,
925
+ /* @__PURE__ */ c(
926
+ Pn,
927
927
  {
928
928
  size: 48,
929
929
  src: e.avatarUrl || void 0,
930
- icon: e.avatarUrl ? void 0 : /* @__PURE__ */ u(Ln, {}),
930
+ icon: e.avatarUrl ? void 0 : /* @__PURE__ */ c($n, {}),
931
931
  className: "skopon-resume-select-card-avatar"
932
932
  }
933
933
  ),
934
- /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-name", children: e.name || "未命名简历" }),
934
+ /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-name", children: e.name || "未命名简历" }),
935
935
  /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-body", children: [
936
- Gr(e.satisfaction),
937
- Ze("性格", e.personality),
938
- Ze("专长", e.specialties),
939
- Ze("擅长领域", e.traits),
936
+ Yr(e.satisfaction),
937
+ tt("性格", e.personality),
938
+ tt("专长", e.specialties),
939
+ tt("擅长领域", e.traits),
940
940
  /* @__PURE__ */ I("div", { className: "skopon-resume-select-card-works", children: [
941
- /* @__PURE__ */ u("span", { className: "skopon-resume-select-card-works-label", children: "过往作品" }),
942
- o.length > 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-works-list", children: o.map((i, s) => /* @__PURE__ */ u(Jr, { work: i }, `${i.title}-${s}`)) }) : /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-works-empty", children: "暂无作品" })
941
+ /* @__PURE__ */ c("span", { className: "skopon-resume-select-card-works-label", children: "过往作品" }),
942
+ o.length > 0 ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-works-list", children: o.map((i, s) => /* @__PURE__ */ c(Qr, { work: i }, `${i.title}-${s}`)) }) : /* @__PURE__ */ c("div", { className: "skopon-resume-select-card-works-empty", children: "暂无作品" })
943
943
  ] })
944
944
  ] })
945
945
  ]
946
946
  }
947
947
  );
948
948
  }
949
- function Yr({ context: e }) {
950
- const { interactive: t } = oe(), n = jr(), { publishLiveOptions: r } = pt(), { value: o, setValue: i, setValueSilent: s, fieldName: a } = ie(e, "value", {
949
+ function Zr({ context: e }) {
950
+ const { interactive: t } = ie(), n = Hr(), { publishLiveOptions: r } = ht(), { value: o, setValue: i, setValueSilent: s, fieldName: a } = se(e, "value", {
951
951
  component: "SkoponResumeSelect",
952
952
  changeAction: "click"
953
- }), l = e.componentModel.properties, c = Qe(l.label), m = Qe(l.placeholder), d = Qe(l.help), S = l.enableRefresh !== !1, g = we(l.minCount), b = we(l.maxCount), y = j(() => Xe(l.resumeFilter), [l.resumeFilter]), k = $r(y), [f, p] = U(1), [v, x] = U(!1), [M, A] = U(""), [R, C] = U([]), [O, q] = U(0), [le, K] = U(y.pageSize ?? 20), D = T(0), J = Y(o);
953
+ }), l = e.componentModel.properties, u = Ze(l.label), m = Ze(l.placeholder), d = Ze(l.help), S = l.enableRefresh !== !1, g = we(l.minCount), b = we(l.maxCount), y = j(() => et(l.resumeFilter), [l.resumeFilter]), k = Kr(y), [f, p] = R(1), [v, x] = R(!1), [M, _] = R(""), [w, C] = R([]), [O, B] = R(0), [ne, K] = R(y.pageSize ?? 20), D = A(0), J = Y(o);
954
954
  z(() => {
955
- const _ = an(J, b);
956
- _ !== null && s(_);
955
+ const T = un(J, b);
956
+ T !== null && s(T);
957
957
  }, [b, J, s]);
958
958
  const Z = $(
959
- async (_) => {
960
- const V = Xe(JSON.parse(k)), w = ++D.current;
959
+ async (T) => {
960
+ const V = et(JSON.parse(k)), P = ++D.current;
961
961
  if (!n) {
962
- C([]), q(0), A("未配置简历搜索服务"), x(!1);
962
+ C([]), B(0), _("未配置简历搜索服务"), x(!1);
963
963
  return;
964
964
  }
965
- x(!0), A("");
965
+ x(!0), _("");
966
966
  try {
967
- const F = await n({ filter: V, page: _ });
968
- if (w !== D.current) return;
969
- C(F.list), q(F.total), p(F.page), K(F.pageSize), a && r(
967
+ const N = await n({ filter: V, page: T });
968
+ if (P !== D.current) return;
969
+ C(N.list), B(N.total), p(N.page), K(N.pageSize), a && r(
970
970
  a,
971
- F.list.map((W) => ({
971
+ N.list.map((W) => ({
972
972
  value: W.resumeUniqueId,
973
973
  label: W.name || W.resumeUniqueId
974
974
  }))
975
975
  );
976
- } catch (F) {
977
- if (w !== D.current) return;
978
- C([]), q(0), A(F instanceof Error ? F.message : "加载简历列表失败");
976
+ } catch (N) {
977
+ if (P !== D.current) return;
978
+ C([]), B(0), _(N instanceof Error ? N.message : "加载简历列表失败");
979
979
  } finally {
980
- w === D.current && x(!1);
980
+ P === D.current && x(!1);
981
981
  }
982
982
  },
983
983
  [n, k, a, r]
@@ -985,18 +985,18 @@ function Yr({ context: e }) {
985
985
  z(() => {
986
986
  p(1), Z(1);
987
987
  }, [k, Z]);
988
- const ee = (_) => {
988
+ const ee = (T) => {
989
989
  if (!t) return;
990
- const V = on(
990
+ const V = ln(
991
991
  J,
992
- _,
992
+ T,
993
993
  g,
994
994
  b
995
995
  );
996
996
  V !== null && i(V);
997
- }, N = () => {
998
- const _ = Xe(JSON.parse(k)), V = le || _.pageSize || 20, w = Math.max(1, Math.ceil(O / V)), F = f >= w ? 1 : f + 1;
999
- Z(F);
997
+ }, F = () => {
998
+ const T = et(JSON.parse(k)), V = ne || T.pageSize || 20, P = Math.max(1, Math.ceil(O / V)), N = f >= P ? 1 : f + 1;
999
+ Z(N);
1000
1000
  }, L = m || "暂无匹配的简历";
1001
1001
  return /* @__PURE__ */ I(
1002
1002
  "div",
@@ -1004,103 +1004,103 @@ function Yr({ context: e }) {
1004
1004
  className: "form-block-preview skopon-resume-select",
1005
1005
  "data-skopon-field": a || void 0,
1006
1006
  children: [
1007
- c ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: c }) : null,
1008
- v && R.length === 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-status", children: [
1009
- /* @__PURE__ */ u(ct, { size: "small" }),
1007
+ u ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: u }) : null,
1008
+ v && w.length === 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-status", children: [
1009
+ /* @__PURE__ */ c(mt, { size: "small" }),
1010
1010
  " 加载简历…"
1011
1011
  ] }) : null,
1012
- !v && M ? /* @__PURE__ */ u(te.Text, { type: "danger", className: "skopon-resume-select-status", children: M }) : null,
1013
- !v && !M && R.length === 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-empty", children: L }) : null,
1014
- R.length > 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-list", children: R.map((_) => /* @__PURE__ */ u(
1015
- Wr,
1012
+ !v && M ? /* @__PURE__ */ c(te.Text, { type: "danger", className: "skopon-resume-select-status", children: M }) : null,
1013
+ !v && !M && w.length === 0 ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-empty", children: L }) : null,
1014
+ w.length > 0 ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-list", children: w.map((T) => /* @__PURE__ */ c(
1015
+ Xr,
1016
1016
  {
1017
- item: _,
1018
- selected: J.includes(_.resumeUniqueId),
1019
- disabled: sn(
1017
+ item: T,
1018
+ selected: J.includes(T.resumeUniqueId),
1019
+ disabled: cn(
1020
1020
  J,
1021
- _.resumeUniqueId,
1021
+ T.resumeUniqueId,
1022
1022
  t,
1023
1023
  g,
1024
1024
  b
1025
1025
  ),
1026
- onToggle: () => ee(_.resumeUniqueId)
1026
+ onToggle: () => ee(T.resumeUniqueId)
1027
1027
  },
1028
- _.resumeUniqueId
1028
+ T.resumeUniqueId
1029
1029
  )) }) : null,
1030
- S && n ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-actions", children: /* @__PURE__ */ u(
1030
+ S && n ? /* @__PURE__ */ c("div", { className: "skopon-resume-select-actions", children: /* @__PURE__ */ c(
1031
1031
  ze,
1032
1032
  {
1033
1033
  type: "default",
1034
1034
  size: "small",
1035
- icon: /* @__PURE__ */ u(Dt, {}),
1035
+ icon: /* @__PURE__ */ c(Gt, {}),
1036
1036
  loading: v,
1037
1037
  disabled: !t,
1038
- onClick: N,
1038
+ onClick: F,
1039
1039
  children: "换一批"
1040
1040
  }
1041
1041
  ) }) : null,
1042
- d ? /* @__PURE__ */ u(te.Text, { type: "secondary", className: "form-block-preview-help", children: d }) : null
1042
+ d ? /* @__PURE__ */ c(te.Text, { type: "secondary", className: "form-block-preview-help", children: d }) : null
1043
1043
  ]
1044
1044
  }
1045
1045
  );
1046
1046
  }
1047
- const Qr = Q(
1048
- Dr,
1049
- Yr
1050
- ), Xr = {
1047
+ const eo = Q(
1048
+ Gr,
1049
+ Zr
1050
+ ), to = {
1051
1051
  type: "resume_multiselect",
1052
1052
  componentName: "SkoponResumeSelect",
1053
- toComponent: Lr,
1054
- fromComponent: Vr,
1055
- catalogComponents: [Qr]
1056
- }, qe = [Xr, Br], Zr = new Map(
1053
+ toComponent: $r,
1054
+ fromComponent: Dr,
1055
+ catalogComponents: [eo]
1056
+ }, qe = [to, jr], no = new Map(
1057
1057
  qe.map((e) => [e.type, e])
1058
- ), eo = new Map(
1058
+ ), ro = new Map(
1059
1059
  qe.map((e) => [e.componentName, e])
1060
1060
  );
1061
- function to(e) {
1062
- return Zr.get(e);
1061
+ function oo(e) {
1062
+ return no.get(e);
1063
1063
  }
1064
- function no(e) {
1065
- return eo.get(e);
1064
+ function io(e) {
1065
+ return ro.get(e);
1066
1066
  }
1067
- function ro() {
1067
+ function so() {
1068
1068
  return qe.flatMap((e) => e.catalogComponents);
1069
1069
  }
1070
- function oo() {
1070
+ function ao() {
1071
1071
  return qe.map((e) => e.componentName);
1072
1072
  }
1073
- const Pe = "root", st = "__title__", at = "__desc__", ft = "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$";
1074
- function io(e) {
1073
+ const Pe = "root", lt = "__title__", ct = "__desc__", gt = "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$";
1074
+ function lo(e) {
1075
1075
  return `/${e}`;
1076
1076
  }
1077
- function jt(e) {
1077
+ function Ht(e) {
1078
1078
  return e && typeof e == "object" && "path" in e ? String(e.path ?? "").replace(/^\//, "") : "";
1079
1079
  }
1080
1080
  function H(e) {
1081
1081
  if (typeof e == "string") return e;
1082
1082
  }
1083
- function so(e) {
1083
+ function co(e) {
1084
1084
  const t = e.id || Se("a2-"), n = e.type === "video" ? "video" : e.type === "audio" ? "audio" : "image";
1085
1085
  return {
1086
1086
  id: t,
1087
1087
  component: "SkoponMedia",
1088
1088
  mediaType: n,
1089
- urls: dr(e),
1089
+ urls: hr(e),
1090
1090
  mediaSize: ke(e.mediaSize),
1091
1091
  label: e.label ?? "",
1092
1092
  help: e.help ?? "",
1093
1093
  placeholder: e.placeholder ?? ""
1094
1094
  };
1095
1095
  }
1096
- function ao(e) {
1096
+ function uo(e) {
1097
1097
  if (Array.isArray(e.urls))
1098
1098
  return e.urls.map((n) => String(n).trim()).filter(Boolean);
1099
1099
  const t = H(e.url);
1100
1100
  return t != null && t.trim() ? [t.trim()] : [];
1101
1101
  }
1102
- function Fe(e, t, n) {
1103
- const r = typeof e.id == "string" ? e.id : Se("block-"), o = ao(e), i = H(e.label) ?? H(e.description) ?? n, s = H(e.help), a = H(e.placeholder), l = ke(e.mediaSize);
1102
+ function Ne(e, t, n) {
1103
+ const r = typeof e.id == "string" ? e.id : Se("block-"), o = uo(e), i = H(e.label) ?? H(e.description) ?? n, s = H(e.help), a = H(e.placeholder), l = ke(e.mediaSize);
1104
1104
  return {
1105
1105
  id: r,
1106
1106
  type: t,
@@ -1111,7 +1111,7 @@ function Fe(e, t, n) {
1111
1111
  mediaUrls: o.length > 0 ? o : [""]
1112
1112
  };
1113
1113
  }
1114
- function lo(e) {
1114
+ function mo(e) {
1115
1115
  switch (e.type) {
1116
1116
  case "toggle":
1117
1117
  return Ce(e.defaultValue);
@@ -1128,9 +1128,9 @@ function lo(e) {
1128
1128
  return typeof e.defaultValue == "string" ? e.defaultValue : "";
1129
1129
  }
1130
1130
  }
1131
- function co(e) {
1132
- var c;
1133
- const t = e.id || Se("a2-"), n = e.label ?? "", r = ((c = e.name) == null ? void 0 : c.trim()) || "", o = r ? io(r) : void 0, i = (e.options ?? []).map((m) => ({ label: m.label, value: m.value })), s = (m) => r ? { node: m, dataKey: r, dataValue: lo(e) } : { node: m }, a = { id: t, label: n, name: r, path: o, withData: s }, l = to(e.type);
1131
+ function po(e) {
1132
+ var u;
1133
+ const t = e.id || Se("a2-"), n = e.label ?? "", r = ((u = e.name) == null ? void 0 : u.trim()) || "", o = r ? lo(r) : void 0, i = (e.options ?? []).map((m) => ({ label: m.label, value: m.value })), s = (m) => r ? { node: m, dataKey: r, dataValue: mo(e) } : { node: m }, a = { id: t, label: n, name: r, path: o, withData: s }, l = oo(e.type);
1134
1134
  if (l)
1135
1135
  return l.toComponent(e, a);
1136
1136
  switch (e.type) {
@@ -1155,7 +1155,7 @@ function co(e) {
1155
1155
  component: "TextField",
1156
1156
  label: n,
1157
1157
  variant: "shortText",
1158
- validationRegexp: ft,
1158
+ validationRegexp: gt,
1159
1159
  ...e.placeholder ? { placeholder: e.placeholder } : {},
1160
1160
  value: { path: o }
1161
1161
  });
@@ -1241,7 +1241,7 @@ function co(e) {
1241
1241
  case "image":
1242
1242
  case "video":
1243
1243
  case "audio":
1244
- return { node: so(e) };
1244
+ return { node: co(e) };
1245
1245
  case "file":
1246
1246
  return s({
1247
1247
  id: t,
@@ -1258,31 +1258,31 @@ function co(e) {
1258
1258
  return { node: null };
1259
1259
  }
1260
1260
  }
1261
- function lt(e) {
1261
+ function ut(e) {
1262
1262
  if (!e || !Array.isArray(e.components) || e.components.length === 0) return !0;
1263
1263
  const t = e.components.find((r) => r.id === Pe);
1264
1264
  if (!t) return e.components.length === 0;
1265
1265
  const n = t.children;
1266
1266
  return !Array.isArray(n) || n.length === 0;
1267
1267
  }
1268
- function un(e, t) {
1268
+ function pn(e, t) {
1269
1269
  const n = [], r = [], o = {}, i = (t == null ? void 0 : t.includeHeader) !== !1, s = (e.title ?? "").trim(), a = (e.description ?? "").trim();
1270
- i && s && (n.push({ id: st, component: "Text", text: s, variant: "h2" }), r.push(st)), i && a && (n.push({ id: at, component: "Text", text: a, variant: "body" }), r.push(at));
1270
+ i && s && (n.push({ id: lt, component: "Text", text: s, variant: "h2" }), r.push(lt)), i && a && (n.push({ id: ct, component: "Text", text: a, variant: "body" }), r.push(ct));
1271
1271
  for (const m of e.blocks ?? []) {
1272
- const { node: d, dataKey: S, dataValue: g } = co(m);
1272
+ const { node: d, dataKey: S, dataValue: g } = po(m);
1273
1273
  d && (n.push(d), r.push(d.id), S && (o[S] = g));
1274
1274
  }
1275
1275
  n.unshift({ id: Pe, component: "Column", children: r });
1276
- const l = { root: Pe, components: n, dataModel: o }, c = t == null ? void 0 : t.styleId;
1277
- return c !== void 0 && (l.surfaceProperties = { styleId: c ?? null }), l;
1276
+ const l = { root: Pe, components: n, dataModel: o }, u = t == null ? void 0 : t.styleId;
1277
+ return u !== void 0 && (l.surfaceProperties = { styleId: u ?? null }), l;
1278
1278
  }
1279
- function uo(e) {
1279
+ function fo(e) {
1280
1280
  const t = /* @__PURE__ */ new Map();
1281
1281
  for (const n of e.components ?? [])
1282
1282
  n && typeof n.id == "string" && t.set(n.id, n);
1283
1283
  return t;
1284
1284
  }
1285
- function et(e) {
1285
+ function nt(e) {
1286
1286
  const t = e.options;
1287
1287
  return Array.isArray(t) ? t.map((n) => {
1288
1288
  if (!n || typeof n != "object") return null;
@@ -1293,10 +1293,10 @@ function et(e) {
1293
1293
  };
1294
1294
  }).filter((n) => !!n) : [];
1295
1295
  }
1296
- function mo(e) {
1297
- const t = typeof e.id == "string" ? e.id : Se("block-"), n = String(e.component ?? ""), r = H(e.label) ?? H(e.text) ?? "", o = jt(e.value), i = (a) => ({ id: t, type: a, label: r }), s = no(n);
1296
+ function ho(e) {
1297
+ const t = typeof e.id == "string" ? e.id : Se("block-"), n = String(e.component ?? ""), r = H(e.label) ?? H(e.text) ?? "", o = Ht(e.value), i = (a) => ({ id: t, type: a, label: r }), s = io(n);
1298
1298
  if (s)
1299
- return s.fromComponent(e, i, { asLiteral: H, nameFromValue: jt });
1299
+ return s.fromComponent(e, i, { asLiteral: H, nameFromValue: Ht });
1300
1300
  switch (n) {
1301
1301
  case "Text": {
1302
1302
  const a = String(e.variant ?? "body"), l = /^h[1-6]$/i.test(a) || a === "title" || a === "subtitle";
@@ -1305,19 +1305,19 @@ function mo(e) {
1305
1305
  case "TextField": {
1306
1306
  const a = String(e.variant ?? "shortText");
1307
1307
  let l = "text";
1308
- a === "longText" ? l = "textarea" : a === "number" ? l = "number" : H(e.validationRegexp) === ft && (l = "email");
1309
- const c = { ...i(l), name: o }, m = H(e.placeholder);
1310
- return m && (c.placeholder = m), c;
1308
+ a === "longText" ? l = "textarea" : a === "number" ? l = "number" : H(e.validationRegexp) === gt && (l = "email");
1309
+ const u = { ...i(l), name: o }, m = H(e.placeholder);
1310
+ return m && (u.placeholder = m), u;
1311
1311
  }
1312
1312
  case "CheckBox":
1313
1313
  return { ...i("toggle"), name: o };
1314
1314
  case "SkoponSelect": {
1315
- const l = String(e.mode ?? "single") === "multiple" ? "multiselect" : "select", c = {
1315
+ const l = String(e.mode ?? "single") === "multiple" ? "multiselect" : "select", u = {
1316
1316
  ...i(l),
1317
1317
  name: o,
1318
- options: et(e)
1318
+ options: nt(e)
1319
1319
  }, m = H(e.placeholder);
1320
- return m && (c.placeholder = m), c;
1320
+ return m && (u.placeholder = m), u;
1321
1321
  }
1322
1322
  case "ChoicePicker": {
1323
1323
  const a = H(e.skoponPickerType);
@@ -1325,12 +1325,12 @@ function mo(e) {
1325
1325
  const m = {
1326
1326
  ...i(a),
1327
1327
  name: o,
1328
- options: et(e)
1328
+ options: nt(e)
1329
1329
  }, d = H(e.placeholder);
1330
1330
  return d && (m.placeholder = d), m;
1331
1331
  }
1332
- const c = String(e.variant ?? "mutuallyExclusive") === "multipleSelection" ? "checkbox" : "radio";
1333
- return { ...i(c), name: o, options: et(e) };
1332
+ const u = String(e.variant ?? "mutuallyExclusive") === "multipleSelection" ? "checkbox" : "radio";
1333
+ return { ...i(u), name: o, options: nt(e) };
1334
1334
  }
1335
1335
  case "DateTimeInput": {
1336
1336
  const a = e.enableDate === !0, l = e.enableTime === !0, m = { ...i(!a && l ? "time" : "datetime"), name: o }, d = H(e.placeholder);
@@ -1338,23 +1338,23 @@ function mo(e) {
1338
1338
  }
1339
1339
  case "SkoponMedia": {
1340
1340
  const a = String(e.mediaType ?? "image");
1341
- return Fe(e, a === "video" ? "video" : a === "audio" ? "audio" : "image", r);
1341
+ return Ne(e, a === "video" ? "video" : a === "audio" ? "audio" : "image", r);
1342
1342
  }
1343
1343
  case "Image":
1344
- return Fe(e, "image", r);
1344
+ return Ne(e, "image", r);
1345
1345
  case "Video":
1346
- return Fe(e, "video", r);
1346
+ return Ne(e, "video", r);
1347
1347
  case "AudioPlayer":
1348
- return Fe(e, "audio", r);
1348
+ return Ne(e, "audio", r);
1349
1349
  case "FileUpload": {
1350
1350
  const a = H(e.accept) ?? "", l = { ...i("file"), name: o };
1351
- return a && (l.fileAcceptExtensions = a.split(",").map((c) => c.trim()).filter(Boolean)), Array.isArray(e.fileAcceptTypes) && (l.fileAcceptTypes = e.fileAcceptTypes.map(String)), typeof e.filePlaceholderIcon == "string" && (l.filePlaceholderIcon = e.filePlaceholderIcon), typeof e.minCount == "number" && (l.fileMinCount = e.minCount), typeof e.maxCount == "number" && (l.fileMaxCount = e.maxCount), l;
1351
+ return a && (l.fileAcceptExtensions = a.split(",").map((u) => u.trim()).filter(Boolean)), Array.isArray(e.fileAcceptTypes) && (l.fileAcceptTypes = e.fileAcceptTypes.map(String)), typeof e.filePlaceholderIcon == "string" && (l.filePlaceholderIcon = e.filePlaceholderIcon), typeof e.minCount == "number" && (l.fileMinCount = e.minCount), typeof e.maxCount == "number" && (l.fileMaxCount = e.maxCount), l;
1352
1352
  }
1353
1353
  default:
1354
1354
  return null;
1355
1355
  }
1356
1356
  }
1357
- function mn(e, t, n, r) {
1357
+ function fn(e, t, n, r) {
1358
1358
  if (n.has(e)) return;
1359
1359
  n.add(e);
1360
1360
  const o = t.get(e);
@@ -1362,12 +1362,12 @@ function mn(e, t, n, r) {
1362
1362
  const i = String(o.component ?? "");
1363
1363
  if ((i === "Column" || i === "Row") && Array.isArray(o.children)) {
1364
1364
  for (const s of o.children)
1365
- typeof s == "string" && mn(s, t, n, r);
1365
+ typeof s == "string" && fn(s, t, n, r);
1366
1366
  return;
1367
1367
  }
1368
1368
  r.push(o);
1369
1369
  }
1370
- function po(e, t) {
1370
+ function go(e, t) {
1371
1371
  return t ? e.map((n) => {
1372
1372
  var i;
1373
1373
  const r = (i = n.name) == null ? void 0 : i.trim();
@@ -1376,33 +1376,33 @@ function po(e, t) {
1376
1376
  return o === void 0 ? n : n.type === "toggle" ? { ...n, defaultValue: Ce(o) } : { ...n, defaultValue: o };
1377
1377
  }) : e;
1378
1378
  }
1379
- function fo(e) {
1379
+ function yo(e) {
1380
1380
  if (!e || !Array.isArray(e.components))
1381
1381
  return Re({ title: "", description: "", blocks: [], jsonSchema: {} });
1382
- const t = uo(e), n = [];
1383
- mn(e.root ?? Pe, t, /* @__PURE__ */ new Set(), n);
1382
+ const t = fo(e), n = [];
1383
+ fn(e.root ?? Pe, t, /* @__PURE__ */ new Set(), n);
1384
1384
  let r = "", o = "";
1385
1385
  const i = [];
1386
1386
  for (const s of n) {
1387
- if (s.id === st) {
1387
+ if (s.id === lt) {
1388
1388
  r = H(s.text) ?? r;
1389
1389
  continue;
1390
1390
  }
1391
- if (s.id === at) {
1391
+ if (s.id === ct) {
1392
1392
  o = H(s.text) ?? o;
1393
1393
  continue;
1394
1394
  }
1395
- const a = mo(s);
1395
+ const a = ho(s);
1396
1396
  a && i.push(a);
1397
1397
  }
1398
1398
  return Re({
1399
1399
  title: r,
1400
1400
  description: o,
1401
- blocks: po(i, e.dataModel),
1401
+ blocks: go(i, e.dataModel),
1402
1402
  jsonSchema: {}
1403
1403
  });
1404
1404
  }
1405
- function ho(e, t) {
1405
+ function vo(e, t) {
1406
1406
  const { surfaceId: n, catalogId: r } = t, o = [
1407
1407
  { version: "v0.9", createSurface: { surfaceId: n, catalogId: r } },
1408
1408
  {
@@ -1415,25 +1415,25 @@ function ho(e, t) {
1415
1415
  updateDataModel: { surfaceId: n, path: "/", value: e.dataModel }
1416
1416
  }), o;
1417
1417
  }
1418
- function dn(e) {
1418
+ function hn(e) {
1419
1419
  return !!e && typeof e == "object" && !Array.isArray(e) && Array.isArray(e.components);
1420
1420
  }
1421
- function go(e, t) {
1421
+ function So(e, t) {
1422
1422
  if (!e || typeof e != "object") return null;
1423
- const n = e, r = dn(n.a2ui) ? n.a2ui : void 0;
1424
- if (r && !lt(r)) return r;
1423
+ const n = e, r = hn(n.a2ui) ? n.a2ui : void 0;
1424
+ if (r && !ut(r)) return r;
1425
1425
  const o = Array.isArray(n.blocks) ? n.blocks : [];
1426
1426
  if (o.length === 0) return null;
1427
- const i = me({
1427
+ const i = ue({
1428
1428
  title: typeof n.title == "string" ? n.title : "",
1429
1429
  description: typeof n.description == "string" ? n.description : "",
1430
1430
  blocks: o,
1431
- jsonSchema: dt(n.jsonSchema ?? n.json_schema)
1432
- }), s = un(i, t);
1433
- return lt(s) ? null : s;
1431
+ jsonSchema: ft(n.jsonSchema ?? n.json_schema)
1432
+ }), s = pn(i, t);
1433
+ return ut(s) ? null : s;
1434
1434
  }
1435
- function yo(e, t, n) {
1436
- return un(
1435
+ function bo(e, t, n) {
1436
+ return pn(
1437
1437
  {
1438
1438
  title: e.title,
1439
1439
  description: e.description,
@@ -1442,18 +1442,18 @@ function yo(e, t, n) {
1442
1442
  n
1443
1443
  );
1444
1444
  }
1445
- function vo(e) {
1445
+ function ko(e) {
1446
1446
  if (!e || typeof e != "object" || Array.isArray(e))
1447
1447
  return;
1448
1448
  const t = e;
1449
- return !(Array.isArray(t.blocks) && t.blocks.length > 0) && dn(t.a2ui) ? fo(t.a2ui) : me({
1449
+ return !(Array.isArray(t.blocks) && t.blocks.length > 0) && hn(t.a2ui) ? yo(t.a2ui) : ue({
1450
1450
  title: typeof t.title == "string" ? t.title : "",
1451
1451
  description: typeof t.description == "string" ? t.description : "",
1452
1452
  blocks: Array.isArray(t.blocks) ? t.blocks : [],
1453
- jsonSchema: dt(t.jsonSchema ?? t.json_schema)
1453
+ jsonSchema: ft(t.jsonSchema ?? t.json_schema)
1454
1454
  });
1455
1455
  }
1456
- function So(e, t, n) {
1456
+ function Co(e, t, n) {
1457
1457
  const r = e.model.surfacesMap.get(t);
1458
1458
  if (!r) return {};
1459
1459
  const o = {};
@@ -1463,15 +1463,15 @@ function So(e, t, n) {
1463
1463
  }
1464
1464
  return o;
1465
1465
  }
1466
- function bo(e) {
1467
- return me({
1466
+ function Ao(e) {
1467
+ return ue({
1468
1468
  title: "",
1469
1469
  description: "",
1470
1470
  blocks: [e],
1471
1471
  jsonSchema: {}
1472
1472
  }).blocks[0];
1473
1473
  }
1474
- function ko(e, t) {
1474
+ function _o(e, t) {
1475
1475
  var o, i;
1476
1476
  const n = /* @__PURE__ */ new Map();
1477
1477
  for (const s of t) {
@@ -1481,7 +1481,7 @@ function ko(e, t) {
1481
1481
  const r = [];
1482
1482
  for (const s of e.blocks) {
1483
1483
  if (Oe(s.type)) {
1484
- r.push(bo(s));
1484
+ r.push(Ao(s));
1485
1485
  continue;
1486
1486
  }
1487
1487
  if (!ae(s.type)) continue;
@@ -1492,13 +1492,13 @@ function ko(e, t) {
1492
1492
  }
1493
1493
  return r;
1494
1494
  }
1495
- function Co(e, t) {
1495
+ function To(e, t) {
1496
1496
  var r;
1497
1497
  const n = {
1498
1498
  ...e,
1499
1499
  name: ((r = e.name) == null ? void 0 : r.trim()) || t.name
1500
1500
  };
1501
- return t.defaultValue !== void 0 && (n.defaultValue = t.defaultValue), me({
1501
+ return t.defaultValue !== void 0 && (n.defaultValue = t.defaultValue), ue({
1502
1502
  title: "",
1503
1503
  description: "",
1504
1504
  blocks: [n],
@@ -1508,15 +1508,15 @@ function Co(e, t) {
1508
1508
  function Be(e) {
1509
1509
  if (!e || typeof e != "object" || Array.isArray(e)) return null;
1510
1510
  const t = e;
1511
- return Array.isArray(t.blocks) ? me({
1511
+ return Array.isArray(t.blocks) ? ue({
1512
1512
  title: typeof t.title == "string" ? t.title : "",
1513
1513
  description: typeof t.description == "string" ? t.description : "",
1514
1514
  blocks: t.blocks,
1515
1515
  jsonSchema: {}
1516
1516
  }) : null;
1517
1517
  }
1518
- function Ao(e, t) {
1519
- var i, s, a, l, c, m;
1518
+ function xo(e, t) {
1519
+ var i, s, a, l, u, m;
1520
1520
  const n = /* @__PURE__ */ new Map();
1521
1521
  for (const d of (t == null ? void 0 : t.blocks) ?? [])
1522
1522
  ae(d.type) && ((i = d.name) != null && i.trim()) && n.set(d.name.trim(), d);
@@ -1526,8 +1526,8 @@ function Ao(e, t) {
1526
1526
  const S = (s = d.name) == null ? void 0 : s.trim();
1527
1527
  if (!S) continue;
1528
1528
  const g = n.get(S);
1529
- g ? r.push(Co(g, d)) : o.push(
1530
- me({
1529
+ g ? r.push(To(g, d)) : o.push(
1530
+ ue({
1531
1531
  title: "",
1532
1532
  description: "",
1533
1533
  blocks: [d],
@@ -1538,26 +1538,26 @@ function Ao(e, t) {
1538
1538
  return {
1539
1539
  matchedBlocks: r,
1540
1540
  extraBlocks: o,
1541
- renderBlocks: ko(e, r),
1541
+ renderBlocks: _o(e, r),
1542
1542
  title: ((a = e.title) == null ? void 0 : a.trim()) || ((l = t == null ? void 0 : t.title) == null ? void 0 : l.trim()) || "",
1543
- description: ((c = e.description) == null ? void 0 : c.trim()) || ((m = t == null ? void 0 : t.description) == null ? void 0 : m.trim()) || ""
1543
+ description: ((u = e.description) == null ? void 0 : u.trim()) || ((m = t == null ? void 0 : t.description) == null ? void 0 : m.trim()) || ""
1544
1544
  };
1545
1545
  }
1546
- function _o(e) {
1546
+ function Io(e) {
1547
1547
  const { type: t, defaultValue: n } = e;
1548
1548
  return n !== void 0 ? t === "toggle" ? n === !0 || n === "true" : t === "multiselect" || t === "checkbox" || t === "resume_multiselect" || t === "case_multiselect" ? Array.isArray(n) ? n.map(String) : typeof n == "string" && n ? [n] : [] : n : t === "toggle" ? !1 : t === "multiselect" || t === "checkbox" || t === "resume_multiselect" || t === "case_multiselect" ? [] : t === "number" ? null : "";
1549
1549
  }
1550
- function ht(e) {
1550
+ function yt(e) {
1551
1551
  var n;
1552
1552
  const t = {};
1553
1553
  for (const r of e) {
1554
1554
  if (!ae(r.type)) continue;
1555
1555
  const o = (n = r.name) == null ? void 0 : n.trim();
1556
- o && (t[o] = _o(r));
1556
+ o && (t[o] = Io(r));
1557
1557
  }
1558
1558
  return t;
1559
1559
  }
1560
- function To(e) {
1560
+ function Mo(e) {
1561
1561
  return e.blocks.some(
1562
1562
  (t) => {
1563
1563
  var n;
@@ -1565,61 +1565,61 @@ function To(e) {
1565
1565
  }
1566
1566
  );
1567
1567
  }
1568
- function xo(e) {
1568
+ function No(e) {
1569
1569
  return e.blocks.filter((t) => {
1570
1570
  var n;
1571
1571
  return Oe(t.type) ? !0 : ae(t.type) && !!((n = t.name) != null && n.trim());
1572
1572
  });
1573
1573
  }
1574
- function Io(e) {
1574
+ function Fo(e) {
1575
1575
  return e.blocks.filter((t) => {
1576
1576
  var n;
1577
1577
  return ae(t.type) && ((n = t.name) == null ? void 0 : n.trim());
1578
1578
  }).map((t) => t.name.trim());
1579
1579
  }
1580
- function gt(e) {
1580
+ function vt(e) {
1581
1581
  return e.replace(/'/g, "'\\''");
1582
1582
  }
1583
- function pn(e) {
1583
+ function gn(e) {
1584
1584
  var n;
1585
1585
  const t = (n = e == null ? void 0 : e.Authorization) == null ? void 0 : n.trim();
1586
- return t ? ` -H 'Authorization: ${gt(t)}' \\` : " -H 'Authorization: Bearer <token>' \\";
1586
+ return t ? ` -H 'Authorization: ${vt(t)}' \\` : " -H 'Authorization: Bearer <token>' \\";
1587
1587
  }
1588
- function fn(e, t, n) {
1588
+ function yn(e, t, n) {
1589
1589
  const r = (t ?? "").trim() || "<callback_url>", o = JSON.stringify(e ?? {}, null, 2);
1590
1590
  return [
1591
1591
  `curl -X POST '${r}' \\`,
1592
1592
  " -H 'Content-Type: application/json' \\",
1593
- pn(n),
1594
- ` -d '${gt(o)}'`
1593
+ gn(n),
1594
+ ` -d '${vt(o)}'`
1595
1595
  ].join(`
1596
1596
  `);
1597
1597
  }
1598
- function Mo(e, t) {
1598
+ function Eo(e, t) {
1599
1599
  return JSON.stringify({ ...e, ...t }, null, 2);
1600
1600
  }
1601
- function Fo({
1601
+ function Uo({
1602
1602
  cardValues: e,
1603
1603
  extraValues: t = {},
1604
1604
  callbackUrl: n,
1605
1605
  headers: r
1606
1606
  }) {
1607
- const o = (n ?? "").trim() || "<callback_url>", i = Mo(e, t);
1607
+ const o = (n ?? "").trim() || "<callback_url>", i = Eo(e, t);
1608
1608
  return [
1609
1609
  `curl -X POST '${o}' \\`,
1610
1610
  " -H 'Content-Type: application/json' \\",
1611
- pn(r),
1612
- ` -d '${gt(i)}'`
1611
+ gn(r),
1612
+ ` -d '${vt(i)}'`
1613
1613
  ].join(`
1614
1614
  `);
1615
1615
  }
1616
- function es(e, t, n) {
1616
+ function rs(e, t, n) {
1617
1617
  const r = Be(e);
1618
- if (!r) return fn(e, t, n);
1619
- const o = ht(r.blocks);
1620
- return Fo({ cardValues: o, callbackUrl: t, headers: n });
1618
+ if (!r) return yn(e, t, n);
1619
+ const o = yt(r.blocks);
1620
+ return Uo({ cardValues: o, callbackUrl: t, headers: n });
1621
1621
  }
1622
- async function hn(e, t, n) {
1622
+ async function vn(e, t, n) {
1623
1623
  const r = e.trim();
1624
1624
  if (!r)
1625
1625
  throw new Error("callback_url 为空");
@@ -1646,7 +1646,7 @@ async function hn(e, t, n) {
1646
1646
  }
1647
1647
  return { ok: i.ok, status: i.status, body: s };
1648
1648
  }
1649
- async function ts(e) {
1649
+ async function os(e) {
1650
1650
  var n;
1651
1651
  if (typeof navigator < "u" && ((n = navigator.clipboard) != null && n.writeText)) {
1652
1652
  await navigator.clipboard.writeText(e);
@@ -1662,7 +1662,7 @@ async function ts(e) {
1662
1662
  document.body.removeChild(t);
1663
1663
  }
1664
1664
  }
1665
- async function yt(e) {
1665
+ async function St(e) {
1666
1666
  let t;
1667
1667
  try {
1668
1668
  t = await e.json();
@@ -1675,8 +1675,8 @@ async function yt(e) {
1675
1675
  throw new Error(t.message || `响应缺少 data (${e.status})`);
1676
1676
  return t.data;
1677
1677
  }
1678
- const vt = "auth_user", No = "token", Eo = "answer_agent_callback_url", Uo = "realtime_ws_url", Ro = "/api/v1/mock/ask_user_answer_mock";
1679
- function St(e) {
1678
+ const bt = "auth_user", Ro = "token", wo = "answer_agent_callback_url", Po = "realtime_ws_url", zo = "/api/v1/mock/ask_user_answer_mock";
1679
+ function kt(e) {
1680
1680
  if (typeof window > "u") return null;
1681
1681
  try {
1682
1682
  return e === "localStorage" ? window.localStorage : window.sessionStorage;
@@ -1684,7 +1684,7 @@ function St(e) {
1684
1684
  return null;
1685
1685
  }
1686
1686
  }
1687
- function bt(e) {
1687
+ function Ct(e) {
1688
1688
  try {
1689
1689
  const t = JSON.parse(e);
1690
1690
  return !t || typeof t != "object" || Array.isArray(t) ? null : t;
@@ -1692,50 +1692,50 @@ function bt(e) {
1692
1692
  return null;
1693
1693
  }
1694
1694
  }
1695
- function wo(e, t) {
1696
- const n = bt(e);
1695
+ function Oo(e, t) {
1696
+ const n = Ct(e);
1697
1697
  if (!n) return "";
1698
1698
  const r = n[t];
1699
1699
  return typeof r == "string" ? r.trim().replace(/^bearer\s+/i, "").trim() : "";
1700
1700
  }
1701
- function Po(e = {}) {
1702
- const t = e.storage ?? "sessionStorage", n = e.storageKey ?? vt, r = e.answerAgentCallbackUrlField ?? Eo, o = St(t);
1701
+ function qo(e = {}) {
1702
+ const t = e.storage ?? "sessionStorage", n = e.storageKey ?? bt, r = e.answerAgentCallbackUrlField ?? wo, o = kt(t);
1703
1703
  if (!o) return "";
1704
1704
  const i = o.getItem(n);
1705
1705
  if (!i) return "";
1706
- const s = bt(i);
1706
+ const s = Ct(i);
1707
1707
  if (!s) return "";
1708
1708
  const a = s[r];
1709
- return (typeof a == "string" ? a.trim() : "") || Ro;
1709
+ return (typeof a == "string" ? a.trim() : "") || zo;
1710
1710
  }
1711
- function zo(e = {}) {
1712
- const t = e.storage ?? "sessionStorage", n = e.storageKey ?? vt, r = e.realtimeWsUrlField ?? Uo, o = St(t);
1711
+ function Bo(e = {}) {
1712
+ const t = e.storage ?? "sessionStorage", n = e.storageKey ?? bt, r = e.realtimeWsUrlField ?? Po, o = kt(t);
1713
1713
  if (!o) return "";
1714
1714
  const i = o.getItem(n);
1715
1715
  if (!i) return "";
1716
- const s = bt(i);
1716
+ const s = Ct(i);
1717
1717
  if (!s) return "";
1718
1718
  const a = s[r];
1719
1719
  return typeof a == "string" ? a.trim() : "";
1720
1720
  }
1721
- function kt(e, t) {
1721
+ function At(e, t) {
1722
1722
  return {
1723
- ...gn(t),
1723
+ ...Sn(t),
1724
1724
  ...e ?? {}
1725
1725
  };
1726
1726
  }
1727
- function gn(e = {}) {
1728
- const t = e.storage ?? "sessionStorage", n = e.storageKey ?? vt, r = e.tokenField ?? No, o = St(t);
1727
+ function Sn(e = {}) {
1728
+ const t = e.storage ?? "sessionStorage", n = e.storageKey ?? bt, r = e.tokenField ?? Ro, o = kt(t);
1729
1729
  if (!o) return {};
1730
1730
  const i = o.getItem(n);
1731
1731
  if (!i) return {};
1732
- const s = wo(i, r);
1732
+ const s = Oo(i, r);
1733
1733
  return s ? { Authorization: `Bearer ${s}` } : {};
1734
1734
  }
1735
- async function Ct(e = {}) {
1736
- return e.getHeaders ? await e.getHeaders() ?? {} : gn(e.authStorage);
1735
+ async function _t(e = {}) {
1736
+ return e.getHeaders ? await e.getHeaders() ?? {} : Sn(e.authStorage);
1737
1737
  }
1738
- function Oo(e = {}) {
1738
+ function Lo(e = {}) {
1739
1739
  const t = (e.baseUrl ?? "/api/v1").replace(/\/$/, ""), n = e.detailPath ?? "/dev/form/detail", r = e.fetch ?? fetch;
1740
1740
  async function o(i) {
1741
1741
  const s = new URLSearchParams();
@@ -1745,21 +1745,21 @@ function Oo(e = {}) {
1745
1745
  s.set("form_unique_id", i.formUniqueId);
1746
1746
  else
1747
1747
  throw new Error("form_id 或 form_unique_id 至少传一个");
1748
- const a = await Ct(e), l = await r(`${t}${n}?${s.toString()}`, {
1748
+ const a = await _t(e), l = await r(`${t}${n}?${s.toString()}`, {
1749
1749
  method: "GET",
1750
1750
  headers: a
1751
- }), c = await yt(l), m = vo(c.form_definition);
1751
+ }), u = await St(l), m = ko(u.form_definition);
1752
1752
  return {
1753
- formUniqueId: c.form_unique_id,
1754
- formId: c.form_id,
1755
- disabled: c.disabled === 1,
1753
+ formUniqueId: u.form_unique_id,
1754
+ formId: u.form_id,
1755
+ disabled: u.disabled === 1,
1756
1756
  formDefinition: m,
1757
- a2ui: go(c.form_definition) ?? void 0
1757
+ a2ui: So(u.form_definition) ?? void 0
1758
1758
  };
1759
1759
  }
1760
1760
  return { fetchDetail: o };
1761
1761
  }
1762
- function qo(e) {
1762
+ function Vo(e) {
1763
1763
  if (!e || typeof e != "object" || Array.isArray(e))
1764
1764
  return e ?? null;
1765
1765
  const t = e;
@@ -1769,13 +1769,13 @@ function qo(e) {
1769
1769
  blocks: t.blocks
1770
1770
  } : e;
1771
1771
  }
1772
- function At({
1772
+ function Tt({
1773
1773
  context: e,
1774
1774
  payload: t,
1775
1775
  form: n,
1776
1776
  answer: r
1777
1777
  }) {
1778
- const o = Be(t) ?? t, i = n ? qo(n) : o;
1778
+ const o = Be(t) ?? t, i = n ? Vo(n) : o;
1779
1779
  return {
1780
1780
  mission_id: e.missionId ?? null,
1781
1781
  tenant_id: e.tenantId ?? null,
@@ -1788,7 +1788,7 @@ function At({
1788
1788
  answer: r
1789
1789
  };
1790
1790
  }
1791
- function _t(e) {
1791
+ function xt(e) {
1792
1792
  const t = e.callback_url;
1793
1793
  if (typeof t != "string" || !t.trim())
1794
1794
  return "callback_url 为空,无法提交";
@@ -1803,34 +1803,34 @@ function _t(e) {
1803
1803
  const o = e.mission_id;
1804
1804
  return o == null || o === "" ? "mission_id 缺失,无法提交" : null;
1805
1805
  }
1806
- function ns(e) {
1807
- return _t(
1808
- At({
1806
+ function is(e) {
1807
+ return xt(
1808
+ Tt({
1809
1809
  context: e,
1810
1810
  payload: {},
1811
1811
  answer: {}
1812
1812
  })
1813
1813
  );
1814
1814
  }
1815
- const $t = "answer_agent_callback_url 未配置,无法提交";
1816
- function Bo(e) {
1815
+ const Kt = "answer_agent_callback_url 未配置,无法提交";
1816
+ function jo(e) {
1817
1817
  if ((e == null ? void 0 : e.answerAgentCallbackUrl) != null) {
1818
1818
  const n = e.answerAgentCallbackUrl.trim();
1819
1819
  if (!n)
1820
- throw new Error($t);
1820
+ throw new Error(Kt);
1821
1821
  return n;
1822
1822
  }
1823
- const t = Po(e == null ? void 0 : e.authStorage).trim();
1823
+ const t = qo(e == null ? void 0 : e.authStorage).trim();
1824
1824
  if (!t)
1825
- throw new Error($t);
1825
+ throw new Error(Kt);
1826
1826
  return t;
1827
1827
  }
1828
- function yn(e) {
1828
+ function bn(e) {
1829
1829
  if (!e || typeof e != "object" || Array.isArray(e)) return null;
1830
1830
  const n = e.data;
1831
1831
  return !n || typeof n != "object" || Array.isArray(n) ? null : n;
1832
1832
  }
1833
- function Lo(e, t) {
1833
+ function $o(e, t) {
1834
1834
  if (t && typeof t == "object" && t !== null && "message" in t) {
1835
1835
  const n = t.message;
1836
1836
  if (typeof n == "string" && n.trim())
@@ -1838,27 +1838,27 @@ function Lo(e, t) {
1838
1838
  }
1839
1839
  return typeof t == "string" && t.trim() ? `提交失败 (${e}): ${t.trim()}` : `提交失败 (${e})`;
1840
1840
  }
1841
- function Vo(e) {
1841
+ function Do(e) {
1842
1842
  return `提交失败:${typeof e.error == "string" && e.error.trim() ? e.error.trim() : `回调 HTTP ${e.callback_status ?? "失败"}`}`;
1843
1843
  }
1844
- function vn(e) {
1845
- const t = yn(e.body);
1846
- return (t == null ? void 0 : t.callback_ok) === !1 ? { type: "error", message: Vo(t) } : e.ok ? { type: "success", message: "提交成功" } : {
1844
+ function kn(e) {
1845
+ const t = bn(e.body);
1846
+ return (t == null ? void 0 : t.callback_ok) === !1 ? { type: "error", message: Do(t) } : e.ok ? { type: "success", message: "提交成功" } : {
1847
1847
  type: "error",
1848
- message: Lo(e.status, e.body)
1848
+ message: $o(e.status, e.body)
1849
1849
  };
1850
1850
  }
1851
- async function Sn(e, t) {
1852
- const n = _t(e);
1851
+ async function Cn(e, t) {
1852
+ const n = xt(e);
1853
1853
  if (n)
1854
1854
  throw new Error(n);
1855
- const r = Bo(t), o = await hn(r, e, {
1855
+ const r = jo(t), o = await vn(r, e, {
1856
1856
  ...t,
1857
- headers: kt(t == null ? void 0 : t.headers, t == null ? void 0 : t.authStorage)
1858
- }), i = yn(o.body);
1857
+ headers: At(t == null ? void 0 : t.headers, t == null ? void 0 : t.authStorage)
1858
+ }), i = bn(o.body);
1859
1859
  return o.ok && (i == null ? void 0 : i.callback_ok) === !1 ? { ok: !1, status: o.status, body: o.body } : o;
1860
1860
  }
1861
- function jo(e) {
1861
+ function Ho(e) {
1862
1862
  return {
1863
1863
  resumeUniqueId: e.resume_unique_id,
1864
1864
  resumeId: e.resume_id,
@@ -1879,38 +1879,40 @@ function jo(e) {
1879
1879
  }))
1880
1880
  };
1881
1881
  }
1882
- function $o(e, t) {
1883
- const n = new URLSearchParams();
1884
- n.set("page", String(t)), n.set("page_size", String(e.pageSize ?? 20));
1885
- for (const r of e.names ?? [])
1886
- r && n.append("name", r);
1887
- for (const r of e.agentUniqueIds ?? [])
1888
- r && n.append("agent_unique_id", r);
1889
- for (const r of e.resumeUniqueIds ?? [])
1890
- r && n.append("resume_unique_id", r);
1891
- return n;
1882
+ function Ko(e, t, n) {
1883
+ const r = new URLSearchParams();
1884
+ r.set("page", String(t)), r.set("page_size", String(e.pageSize ?? 20));
1885
+ for (const o of e.names ?? [])
1886
+ o && r.append("name", o);
1887
+ for (const o of e.agentUniqueIds ?? [])
1888
+ o && r.append("agent_unique_id", o);
1889
+ for (const o of e.resumeUniqueIds ?? [])
1890
+ o && r.append("resume_unique_id", o);
1891
+ for (const o of n)
1892
+ r.append("published", String(o));
1893
+ return r;
1892
1894
  }
1893
- function Do(e = {}) {
1894
- const t = (e.baseUrl ?? "/api/v1").replace(/\/$/, ""), n = e.searchPath ?? "/univ/resume/search", r = e.fetch ?? fetch;
1895
- return async ({ filter: o, page: i }) => {
1896
- const s = await Ct(e), a = $o(o, i), l = await r(`${t}${n}?${a.toString()}`, {
1895
+ function Go(e = {}) {
1896
+ const t = (e.baseUrl ?? "/api/v1").replace(/\/$/, ""), n = e.searchPath ?? "/univ/resume/search", r = e.fetch ?? fetch, o = e.published ?? [1];
1897
+ return async ({ filter: i, page: s }) => {
1898
+ const a = await _t(e), l = Ko(i, s, o), u = await r(`${t}${n}?${l.toString()}`, {
1897
1899
  method: "GET",
1898
- headers: s
1899
- }), c = await yt(l);
1900
+ headers: a
1901
+ }), m = await St(u);
1900
1902
  return {
1901
- list: (c.list ?? []).map(jo),
1902
- total: c.total ?? 0,
1903
- page: c.page ?? i,
1904
- pageSize: c.page_size ?? o.pageSize ?? 20
1903
+ list: (m.list ?? []).map(Ho),
1904
+ total: m.total ?? 0,
1905
+ page: m.page ?? s,
1906
+ pageSize: m.page_size ?? i.pageSize ?? 20
1905
1907
  };
1906
1908
  };
1907
1909
  }
1908
- function Ho(e) {
1910
+ function Jo(e) {
1909
1911
  var r, o, i, s;
1910
1912
  const t = !!((r = e.flowUniqueIds) != null && r.length), n = !!((o = e.agentUniqueId) != null && o.trim() && ((i = e.flowType) != null && i.trim()) && ((s = e.category) != null && s.trim()));
1911
1913
  return t || n;
1912
1914
  }
1913
- function Ko(e) {
1915
+ function Wo(e) {
1914
1916
  return {
1915
1917
  caseUniqueId: e.case_unique_id,
1916
1918
  caseId: e.case_id,
@@ -1921,7 +1923,7 @@ function Ko(e) {
1921
1923
  description: e.description ?? void 0
1922
1924
  };
1923
1925
  }
1924
- function Go(e, t, n) {
1926
+ function Yo(e, t, n) {
1925
1927
  var o, i, s;
1926
1928
  const r = new URLSearchParams();
1927
1929
  r.set("page", String(t)), r.set("page_size", String(e.pageSize ?? 20)), r.set("published", String(n)), (o = e.agentUniqueId) != null && o.trim() && r.set("agent_unique_id", e.agentUniqueId.trim()), (i = e.flowType) != null && i.trim() && r.set("flow_type", e.flowType.trim()), (s = e.category) != null && s.trim() && r.set("category_unique_id", e.category.trim());
@@ -1929,25 +1931,25 @@ function Go(e, t, n) {
1929
1931
  a && r.append("flow_unique_ids", a);
1930
1932
  return r;
1931
1933
  }
1932
- function Jo(e = {}) {
1934
+ function Qo(e = {}) {
1933
1935
  const t = (e.baseUrl ?? "/api/v1").replace(/\/$/, ""), n = e.listPath ?? "/univ/case/list", r = e.fetch ?? fetch, o = e.published ?? 1;
1934
1936
  return async ({ filter: i, page: s }) => {
1935
- if (!Ho(i))
1937
+ if (!Jo(i))
1936
1938
  return { list: [], total: 0, page: 1, pageSize: i.pageSize ?? 20 };
1937
- const a = await Ct(e), l = Go(i, s, o), c = await r(`${t}${n}?${l.toString()}`, {
1939
+ const a = await _t(e), l = Yo(i, s, o), u = await r(`${t}${n}?${l.toString()}`, {
1938
1940
  method: "GET",
1939
1941
  headers: a
1940
- }), m = await yt(c);
1942
+ }), m = await St(u);
1941
1943
  return {
1942
- list: (m.list ?? []).map(Ko),
1944
+ list: (m.list ?? []).map(Wo),
1943
1945
  total: m.total ?? 0,
1944
1946
  page: m.page ?? s,
1945
1947
  pageSize: m.page_size ?? i.pageSize ?? 20
1946
1948
  };
1947
1949
  };
1948
1950
  }
1949
- function rs(e = {}) {
1950
- var r, o, i, s;
1951
+ function ss(e = {}) {
1952
+ var r, o, i, s, a;
1951
1953
  const t = {
1952
1954
  baseUrl: e.baseUrl,
1953
1955
  fetch: e.fetch,
@@ -1955,22 +1957,23 @@ function rs(e = {}) {
1955
1957
  authStorage: e.authStorage
1956
1958
  };
1957
1959
  return {
1958
- fetchDetail: Oo({
1960
+ fetchDetail: Lo({
1959
1961
  ...t,
1960
1962
  detailPath: (r = e.form) == null ? void 0 : r.detailPath
1961
1963
  }).fetchDetail,
1962
- resumeSearch: Do({
1964
+ resumeSearch: Go({
1963
1965
  ...t,
1964
- searchPath: (o = e.resume) == null ? void 0 : o.searchPath
1966
+ searchPath: (o = e.resume) == null ? void 0 : o.searchPath,
1967
+ published: (i = e.resume) == null ? void 0 : i.published
1965
1968
  }),
1966
- caseSearch: Jo({
1969
+ caseSearch: Qo({
1967
1970
  ...t,
1968
- listPath: (i = e.case) == null ? void 0 : i.listPath,
1969
- published: (s = e.case) == null ? void 0 : s.published
1971
+ listPath: (s = e.case) == null ? void 0 : s.listPath,
1972
+ published: (a = e.case) == null ? void 0 : a.published
1970
1973
  })
1971
1974
  };
1972
1975
  }
1973
- function bn(e, t) {
1976
+ function An(e, t) {
1974
1977
  if (!t.trim()) return !0;
1975
1978
  try {
1976
1979
  return new RegExp(t).test(e);
@@ -1978,10 +1981,10 @@ function bn(e, t) {
1978
1981
  return !0;
1979
1982
  }
1980
1983
  }
1981
- function kn(e) {
1984
+ function _n(e) {
1982
1985
  return e == null ? !0 : typeof e == "string" ? !e.trim() : !1;
1983
1986
  }
1984
- function Wo(e, t) {
1987
+ function Xo(e, t) {
1985
1988
  switch (e.type) {
1986
1989
  case "multiselect":
1987
1990
  case "checkbox":
@@ -1994,28 +1997,28 @@ function Wo(e, t) {
1994
1997
  case "number":
1995
1998
  return t == null || t === "";
1996
1999
  default:
1997
- return kn(t);
2000
+ return _n(t);
1998
2001
  }
1999
2002
  }
2000
- function tt(e, t) {
2003
+ function rt(e, t) {
2001
2004
  return e.required === !0 || t > 0;
2002
2005
  }
2003
- function Yo(e, t) {
2006
+ function Zo(e, t) {
2004
2007
  var n, r;
2005
2008
  for (const o of e) {
2006
2009
  const i = (n = o.name) == null ? void 0 : n.trim();
2007
2010
  if (!i || Oe(o.type) || Ue(o.type)) continue;
2008
2011
  const s = t[i], a = ((r = o.label) == null ? void 0 : r.trim()) || i;
2009
- if (o.required && Wo(o, s))
2012
+ if (o.required && Xo(o, s))
2010
2013
  return { fieldName: i, label: a, message: `请填写「${a}」` };
2011
- if (o.type === "email" && !kn(s)) {
2014
+ if (o.type === "email" && !_n(s)) {
2012
2015
  const l = String(s).trim();
2013
- if (!bn(l, ft))
2016
+ if (!An(l, gt))
2014
2017
  return { fieldName: i, label: a, message: `「${a}」格式不正确` };
2015
2018
  }
2016
2019
  if (o.type === "file") {
2017
- const l = o.fileMinCount ?? 0, c = Y(s).length;
2018
- if (l > 0 && c < l && tt(o, c))
2020
+ const l = o.fileMinCount ?? 0, u = Y(s).length;
2021
+ if (l > 0 && u < l && rt(o, u))
2019
2022
  return {
2020
2023
  fieldName: i,
2021
2024
  label: a,
@@ -2023,8 +2026,8 @@ function Yo(e, t) {
2023
2026
  };
2024
2027
  }
2025
2028
  if (o.type === "resume_multiselect") {
2026
- const l = o.resumeMinCount, c = Y(s).length;
2027
- if (l !== void 0 && c < l && tt(o, c))
2029
+ const l = o.resumeMinCount, u = Y(s).length;
2030
+ if (l !== void 0 && u < l && rt(o, u))
2028
2031
  return {
2029
2032
  fieldName: i,
2030
2033
  label: a,
@@ -2032,8 +2035,8 @@ function Yo(e, t) {
2032
2035
  };
2033
2036
  }
2034
2037
  if (o.type === "case_multiselect") {
2035
- const l = o.caseMinCount, c = Y(s).length;
2036
- if (l !== void 0 && c < l && tt(o, c))
2038
+ const l = o.caseMinCount, u = Y(s).length;
2039
+ if (l !== void 0 && u < l && rt(o, u))
2037
2040
  return {
2038
2041
  fieldName: i,
2039
2042
  label: a,
@@ -2043,21 +2046,21 @@ function Yo(e, t) {
2043
2046
  }
2044
2047
  return null;
2045
2048
  }
2046
- const Qo = {
2047
- video: Hn,
2048
- audio: Dn,
2049
- image: $n,
2050
- file: Kt,
2051
- spreadsheet: jn,
2052
- document: Ht
2049
+ const ei = {
2050
+ video: Jn,
2051
+ audio: Gn,
2052
+ image: Kn,
2053
+ file: Wt,
2054
+ spreadsheet: Hn,
2055
+ document: Jt
2053
2056
  };
2054
- function Xo({
2057
+ function ti({
2055
2058
  type: e,
2056
2059
  size: t = 40,
2057
2060
  className: n
2058
2061
  }) {
2059
- const r = Qo[e] ?? Kt;
2060
- return /* @__PURE__ */ u(
2062
+ const r = ei[e] ?? Wt;
2063
+ return /* @__PURE__ */ c(
2061
2064
  r,
2062
2065
  {
2063
2066
  className: n ?? "skopon-form-file-placeholder-icon",
@@ -2066,7 +2069,7 @@ function Xo({
2066
2069
  }
2067
2070
  );
2068
2071
  }
2069
- const Cn = "skopon-form-v0_9", Zo = /* @__PURE__ */ new Set([
2072
+ const Tn = "skopon-form-v0_9", ni = /* @__PURE__ */ new Set([
2070
2073
  "SkoponMedia",
2071
2074
  "SkoponSelect",
2072
2075
  "Image",
@@ -2078,8 +2081,8 @@ const Cn = "skopon-form-v0_9", Zo = /* @__PURE__ */ new Set([
2078
2081
  "FileUpload",
2079
2082
  "TextField",
2080
2083
  "Text",
2081
- ...oo()
2082
- ]), ei = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "caption"]);
2084
+ ...ao()
2085
+ ]), ri = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "caption"]);
2083
2086
  function Ae(e) {
2084
2087
  const t = [...Ee.components.values()].find((n) => n.name === e);
2085
2088
  if (!t) throw new Error(`Missing basic catalog component: ${e}`);
@@ -2088,7 +2091,7 @@ function Ae(e) {
2088
2091
  function E(e) {
2089
2092
  return typeof e == "string" ? e : "";
2090
2093
  }
2091
- function An(e) {
2094
+ function xn(e) {
2092
2095
  return Array.isArray(e) ? e.map((t) => {
2093
2096
  if (!t || typeof t != "object") return null;
2094
2097
  const n = t, r = String(n.value ?? n.label ?? ""), o = String(n.label ?? n.value ?? "");
@@ -2103,10 +2106,10 @@ function Le({
2103
2106
  help: o,
2104
2107
  placeholder: i
2105
2108
  }) {
2106
- const s = r == null ? void 0 : r.trim(), a = o == null ? void 0 : o.trim(), l = fr(n), c = (i == null ? void 0 : i.trim()) || (e === "image" ? "未设置图片 URL" : e === "video" ? "未设置视频 URL" : "未设置音频 URL");
2109
+ const s = r == null ? void 0 : r.trim(), a = o == null ? void 0 : o.trim(), l = yr(n), u = (i == null ? void 0 : i.trim()) || (e === "image" ? "未设置图片 URL" : e === "video" ? "未设置视频 URL" : "未设置音频 URL");
2107
2110
  return /* @__PURE__ */ I("div", { className: "form-block-preview", children: [
2108
- s ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: s }) : null,
2109
- t.length === 0 ? /* @__PURE__ */ u("div", { className: "form-media-preview form-media-preview--empty", children: c }) : /* @__PURE__ */ u("div", { className: l, children: t.map((m, d) => e === "image" ? /* @__PURE__ */ u(
2111
+ s ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: s }) : null,
2112
+ t.length === 0 ? /* @__PURE__ */ c("div", { className: "form-media-preview form-media-preview--empty", children: u }) : /* @__PURE__ */ c("div", { className: l, children: t.map((m, d) => e === "image" ? /* @__PURE__ */ c(
2110
2113
  "img",
2111
2114
  {
2112
2115
  src: m,
@@ -2114,7 +2117,7 @@ function Le({
2114
2117
  className: "form-media-item"
2115
2118
  },
2116
2119
  `media-${d}`
2117
- ) : e === "video" ? /* @__PURE__ */ u(
2120
+ ) : e === "video" ? /* @__PURE__ */ c(
2118
2121
  "video",
2119
2122
  {
2120
2123
  src: m,
@@ -2122,7 +2125,7 @@ function Le({
2122
2125
  className: "form-media-item"
2123
2126
  },
2124
2127
  `media-${d}`
2125
- ) : /* @__PURE__ */ u(
2128
+ ) : /* @__PURE__ */ c(
2126
2129
  "audio",
2127
2130
  {
2128
2131
  src: m,
@@ -2131,7 +2134,7 @@ function Le({
2131
2134
  },
2132
2135
  `media-${d}`
2133
2136
  )) }),
2134
- a ? /* @__PURE__ */ u(te.Text, { type: "secondary", className: "form-block-preview-help", children: a }) : null
2137
+ a ? /* @__PURE__ */ c(te.Text, { type: "secondary", className: "form-block-preview-help", children: a }) : null
2135
2138
  ] });
2136
2139
  }
2137
2140
  function Ve(e, t) {
@@ -2145,7 +2148,7 @@ function Ve(e, t) {
2145
2148
  placeholder: E(e.placeholder)
2146
2149
  };
2147
2150
  }
2148
- const ti = {
2151
+ const oi = {
2149
2152
  name: "SkoponMedia",
2150
2153
  schema: h.object({
2151
2154
  mediaType: h.any().optional(),
@@ -2155,19 +2158,19 @@ const ti = {
2155
2158
  help: h.any().optional(),
2156
2159
  placeholder: h.any().optional()
2157
2160
  }).passthrough()
2158
- }, ni = Q(ti, ({ context: e }) => {
2161
+ }, ii = Q(oi, ({ context: e }) => {
2159
2162
  const t = e.componentModel.properties, n = E(t.mediaType);
2160
- return /* @__PURE__ */ u(Le, { ...Ve(t, n === "video" ? "video" : n === "audio" ? "audio" : "image") });
2161
- }), ri = Q(
2163
+ return /* @__PURE__ */ c(Le, { ...Ve(t, n === "video" ? "video" : n === "audio" ? "audio" : "image") });
2164
+ }), si = Q(
2162
2165
  { name: "Image", schema: Ae("Image") },
2163
- ({ context: e }) => /* @__PURE__ */ u(Le, { ...Ve(e.componentModel.properties, "image") })
2164
- ), oi = Q(
2166
+ ({ context: e }) => /* @__PURE__ */ c(Le, { ...Ve(e.componentModel.properties, "image") })
2167
+ ), ai = Q(
2165
2168
  { name: "Video", schema: Ae("Video") },
2166
- ({ context: e }) => /* @__PURE__ */ u(Le, { ...Ve(e.componentModel.properties, "video") })
2167
- ), ii = Q(
2169
+ ({ context: e }) => /* @__PURE__ */ c(Le, { ...Ve(e.componentModel.properties, "video") })
2170
+ ), li = Q(
2168
2171
  { name: "AudioPlayer", schema: Ae("AudioPlayer") },
2169
- ({ context: e }) => /* @__PURE__ */ u(Le, { ...Ve(e.componentModel.properties, "audio") })
2170
- ), si = {
2172
+ ({ context: e }) => /* @__PURE__ */ c(Le, { ...Ve(e.componentModel.properties, "audio") })
2173
+ ), ci = {
2171
2174
  name: "SkoponSelect",
2172
2175
  schema: h.object({
2173
2176
  label: h.any().optional(),
@@ -2177,18 +2180,18 @@ const ti = {
2177
2180
  value: h.any().optional()
2178
2181
  }).passthrough()
2179
2182
  };
2180
- function ai({ context: e }) {
2181
- const { interactive: t } = oe(), { value: n, setValue: r, setValueSilent: o, fieldName: i } = ie(e, "value", {
2183
+ function ui({ context: e }) {
2184
+ const { interactive: t } = ie(), { value: n, setValue: r, setValueSilent: o, fieldName: i } = se(e, "value", {
2182
2185
  component: "SkoponSelect",
2183
2186
  changeAction: "select"
2184
- }), s = e.componentModel.properties, a = E(s.label), l = E(s.placeholder), c = An(s.options), m = E(s.mode) === "multiple";
2187
+ }), s = e.componentModel.properties, a = E(s.label), l = E(s.placeholder), u = xn(s.options), m = E(s.mode) === "multiple";
2185
2188
  return z(() => {
2186
- const d = rn(n, m);
2189
+ const d = an(n, m);
2187
2190
  d !== null && o(d);
2188
2191
  }, [m, n, o]), /* @__PURE__ */ I("div", { className: "form-block-preview", "data-skopon-field": i || void 0, children: [
2189
- a ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: a }) : null,
2190
- /* @__PURE__ */ u(
2191
- nt,
2192
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2193
+ /* @__PURE__ */ c(
2194
+ ot,
2192
2195
  {
2193
2196
  mode: m ? "multiple" : void 0,
2194
2197
  disabled: !t,
@@ -2196,29 +2199,29 @@ function ai({ context: e }) {
2196
2199
  className: "form-block-preview-control",
2197
2200
  style: { width: "100%" },
2198
2201
  placeholder: l || (m ? "请选择多项" : "请选择"),
2199
- options: c,
2202
+ options: u,
2200
2203
  value: m ? Y(n) : he(n),
2201
2204
  onChange: (d) => r(m ? d ?? [] : d ?? "")
2202
2205
  }
2203
2206
  )
2204
2207
  ] });
2205
2208
  }
2206
- const li = Q(
2207
- si,
2208
- ai
2209
+ const mi = Q(
2210
+ ci,
2211
+ ui
2209
2212
  );
2210
- function ci({ context: e }) {
2211
- const { interactive: t } = oe(), { value: n, setValue: r, setValueSilent: o, fieldName: i } = ie(e, "value", {
2213
+ function di({ context: e }) {
2214
+ const { interactive: t } = ie(), { value: n, setValue: r, setValueSilent: o, fieldName: i } = se(e, "value", {
2212
2215
  component: "ChoicePicker",
2213
2216
  changeAction: "select"
2214
- }), s = e.componentModel.properties, a = E(s.label), l = E(s.variant) || "mutuallyExclusive", c = E(s.skoponPickerType), m = E(s.placeholder), d = An(s.options), g = c === "select" || c === "multiselect" || c === "radio" || c === "checkbox" ? c : l === "multipleSelection" ? "checkbox" : "radio", b = g === "multiselect" || g === "checkbox";
2217
+ }), s = e.componentModel.properties, a = E(s.label), l = E(s.variant) || "mutuallyExclusive", u = E(s.skoponPickerType), m = E(s.placeholder), d = xn(s.options), g = u === "select" || u === "multiselect" || u === "radio" || u === "checkbox" ? u : l === "multipleSelection" ? "checkbox" : "radio", b = g === "multiselect" || g === "checkbox";
2215
2218
  return z(() => {
2216
- const y = rn(n, b);
2219
+ const y = an(n, b);
2217
2220
  y !== null && o(y);
2218
2221
  }, [b, n, o]), /* @__PURE__ */ I("div", { className: "form-block-preview", "data-skopon-field": i || void 0, children: [
2219
- a ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: a }) : null,
2220
- g === "select" ? /* @__PURE__ */ u(
2221
- nt,
2222
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2223
+ g === "select" ? /* @__PURE__ */ c(
2224
+ ot,
2222
2225
  {
2223
2226
  disabled: !t,
2224
2227
  allowClear: !0,
@@ -2229,8 +2232,8 @@ function ci({ context: e }) {
2229
2232
  value: he(n),
2230
2233
  onChange: (y) => r(y ?? "")
2231
2234
  }
2232
- ) : g === "multiselect" ? /* @__PURE__ */ u(
2233
- nt,
2235
+ ) : g === "multiselect" ? /* @__PURE__ */ c(
2236
+ ot,
2234
2237
  {
2235
2238
  mode: "multiple",
2236
2239
  disabled: !t,
@@ -2242,8 +2245,8 @@ function ci({ context: e }) {
2242
2245
  value: Y(n),
2243
2246
  onChange: (y) => r(y ?? [])
2244
2247
  }
2245
- ) : g === "checkbox" ? /* @__PURE__ */ u(
2246
- Rn.Group,
2248
+ ) : g === "checkbox" ? /* @__PURE__ */ c(
2249
+ zn.Group,
2247
2250
  {
2248
2251
  disabled: !t,
2249
2252
  className: "form-block-preview-control",
@@ -2251,8 +2254,8 @@ function ci({ context: e }) {
2251
2254
  value: Y(n),
2252
2255
  onChange: (y) => r(y)
2253
2256
  }
2254
- ) : /* @__PURE__ */ u(
2255
- wn.Group,
2257
+ ) : /* @__PURE__ */ c(
2258
+ On.Group,
2256
2259
  {
2257
2260
  disabled: !t,
2258
2261
  className: "form-block-preview-control",
@@ -2263,7 +2266,7 @@ function ci({ context: e }) {
2263
2266
  )
2264
2267
  ] });
2265
2268
  }
2266
- const ui = Q(
2269
+ const pi = Q(
2267
2270
  {
2268
2271
  name: "ChoicePicker",
2269
2272
  schema: h.object({
@@ -2275,17 +2278,17 @@ const ui = Q(
2275
2278
  placeholder: h.any().optional()
2276
2279
  }).passthrough()
2277
2280
  },
2278
- ci
2281
+ di
2279
2282
  );
2280
- function mi({ context: e }) {
2281
- const { interactive: t } = oe(), { value: n, setValue: r, fieldName: o } = ie(e, "value", {
2283
+ function fi({ context: e }) {
2284
+ const { interactive: t } = ie(), { value: n, setValue: r, fieldName: o } = se(e, "value", {
2282
2285
  component: "CheckBox",
2283
2286
  changeAction: "change"
2284
2287
  }), i = e.componentModel.properties, s = E(i.label);
2285
2288
  return /* @__PURE__ */ I("div", { className: "form-block-preview", "data-skopon-field": o || void 0, children: [
2286
- s ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: s }) : null,
2287
- /* @__PURE__ */ u(
2288
- Pn,
2289
+ s ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: s }) : null,
2290
+ /* @__PURE__ */ c(
2291
+ qn,
2289
2292
  {
2290
2293
  disabled: !t,
2291
2294
  className: "form-block-preview-control",
@@ -2295,43 +2298,43 @@ function mi({ context: e }) {
2295
2298
  )
2296
2299
  ] });
2297
2300
  }
2298
- const di = Q(
2301
+ const hi = Q(
2299
2302
  { name: "CheckBox", schema: Ae("CheckBox") },
2300
- mi
2303
+ fi
2301
2304
  );
2302
- function pi(e, t, n) {
2305
+ function gi(e, t, n) {
2303
2306
  const r = he(e);
2304
2307
  if (!r) return;
2305
2308
  if (!t && n) {
2306
- const i = Ot(r, "HH:mm", !0);
2309
+ const i = Lt(r, "HH:mm", !0);
2307
2310
  return i.isValid() ? i : void 0;
2308
2311
  }
2309
- const o = Ot(r);
2312
+ const o = Lt(r);
2310
2313
  return o.isValid() ? o : void 0;
2311
2314
  }
2312
- function fi({ context: e }) {
2313
- const { interactive: t } = oe(), { value: n, setValue: r, fieldName: o, reportFocus: i } = ie(e, "value", {
2315
+ function yi({ context: e }) {
2316
+ const { interactive: t } = ie(), { value: n, setValue: r, fieldName: o, reportFocus: i } = se(e, "value", {
2314
2317
  component: "DateTimeInput",
2315
2318
  changeAction: "change"
2316
- }), s = e.componentModel.properties, a = E(s.label), l = E(s.placeholder), c = s.enableDate === !0, m = s.enableTime === !0, d = pi(n, c, m), S = (g) => {
2319
+ }), s = e.componentModel.properties, a = E(s.label), l = E(s.placeholder), u = s.enableDate === !0, m = s.enableTime === !0, d = gi(n, u, m), S = (g) => {
2317
2320
  if (!g) {
2318
2321
  r("");
2319
2322
  return;
2320
2323
  }
2321
- if (!c && m) {
2324
+ if (!u && m) {
2322
2325
  r(g.format("HH:mm"));
2323
2326
  return;
2324
2327
  }
2325
- if (c && m) {
2328
+ if (u && m) {
2326
2329
  r(g.format("YYYY-MM-DDTHH:mm"));
2327
2330
  return;
2328
2331
  }
2329
2332
  r(g.format("YYYY-MM-DD"));
2330
2333
  };
2331
2334
  return /* @__PURE__ */ I("div", { className: "form-block-preview", "data-skopon-field": o || void 0, children: [
2332
- a ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: a }) : null,
2333
- !c && m ? /* @__PURE__ */ u(
2334
- zn,
2335
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2336
+ !u && m ? /* @__PURE__ */ c(
2337
+ Bn,
2335
2338
  {
2336
2339
  disabled: !t,
2337
2340
  className: "form-block-preview-control",
@@ -2341,14 +2344,14 @@ function fi({ context: e }) {
2341
2344
  onChange: S,
2342
2345
  onFocus: i
2343
2346
  }
2344
- ) : /* @__PURE__ */ u(
2345
- On,
2347
+ ) : /* @__PURE__ */ c(
2348
+ Ln,
2346
2349
  {
2347
- showTime: c && m,
2350
+ showTime: u && m,
2348
2351
  disabled: !t,
2349
2352
  className: "form-block-preview-control",
2350
2353
  style: { width: "100%" },
2351
- placeholder: l || (c && m ? "选择日期时间" : "选择日期"),
2354
+ placeholder: l || (u && m ? "选择日期时间" : "选择日期"),
2352
2355
  value: d,
2353
2356
  onChange: S,
2354
2357
  onFocus: i
@@ -2356,7 +2359,7 @@ function fi({ context: e }) {
2356
2359
  )
2357
2360
  ] });
2358
2361
  }
2359
- const hi = Q(
2362
+ const vi = Q(
2360
2363
  {
2361
2364
  name: "DateTimeInput",
2362
2365
  schema: h.object({
@@ -2369,8 +2372,8 @@ const hi = Q(
2369
2372
  max: h.any().optional()
2370
2373
  }).passthrough()
2371
2374
  },
2372
- fi
2373
- ), gi = {
2375
+ yi
2376
+ ), Si = {
2374
2377
  name: "FileUpload",
2375
2378
  schema: h.object({
2376
2379
  label: h.any().optional(),
@@ -2382,20 +2385,20 @@ const hi = Q(
2382
2385
  value: h.any().optional()
2383
2386
  }).passthrough()
2384
2387
  };
2385
- function yi({ context: e }) {
2386
- const { interactive: t } = oe(), { value: n, setValue: r, fieldName: o } = ie(e, "value", {
2388
+ function bi({ context: e }) {
2389
+ const { interactive: t } = ie(), { value: n, setValue: r, fieldName: o } = se(e, "value", {
2387
2390
  component: "FileUpload",
2388
2391
  changeAction: "change"
2389
- }), i = e.componentModel.properties, s = E(i.label), a = E(i.accept), l = Array.isArray(i.fileAcceptTypes) ? i.fileAcceptTypes.map(String) : void 0, c = a ? a.split(",").map((p) => p.trim()).filter(Boolean) : void 0, m = ar(l, c), d = typeof i.filePlaceholderIcon == "string" && ["video", "audio", "image", "file", "spreadsheet", "document"].includes(
2392
+ }), i = e.componentModel.properties, s = E(i.label), a = E(i.accept), l = Array.isArray(i.fileAcceptTypes) ? i.fileAcceptTypes.map(String) : void 0, u = a ? a.split(",").map((p) => p.trim()).filter(Boolean) : void 0, m = ur(l, u), d = typeof i.filePlaceholderIcon == "string" && ["video", "audio", "image", "file", "spreadsheet", "document"].includes(
2390
2393
  i.filePlaceholderIcon
2391
2394
  ) ? i.filePlaceholderIcon : "document", S = typeof i.minCount == "number" ? Math.max(0, i.minCount) : 0, g = typeof i.maxCount == "number" ? i.maxCount : 1, b = g > 0, y = Y(n), k = b && y.length >= g, f = y.length < S;
2392
2395
  return /* @__PURE__ */ I("div", { className: "form-block-preview", "data-skopon-field": o || void 0, children: [
2393
- s ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: s }) : null,
2396
+ s ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: s }) : null,
2394
2397
  /* @__PURE__ */ I(
2395
- Ke.Dragger,
2398
+ Je.Dragger,
2396
2399
  {
2397
2400
  disabled: !t || k,
2398
- accept: sr(l, c),
2401
+ accept: cr(l, u),
2399
2402
  className: "form-file-upload-preview",
2400
2403
  showUploadList: t && y.length > 0,
2401
2404
  fileList: t ? y.map((p, v) => ({
@@ -2404,20 +2407,20 @@ function yi({ context: e }) {
2404
2407
  status: "done"
2405
2408
  })) : [],
2406
2409
  beforeUpload: (p) => {
2407
- if (!t) return Ke.LIST_IGNORE;
2408
- const v = Y(Lt(e));
2409
- if (b && v.length >= g) return Ke.LIST_IGNORE;
2410
+ if (!t) return Je.LIST_IGNORE;
2411
+ const v = Y($t(e));
2412
+ if (b && v.length >= g) return Je.LIST_IGNORE;
2410
2413
  const x = b ? [...v, p.name].slice(0, g) : [...v, p.name];
2411
2414
  return r(x), !1;
2412
2415
  },
2413
2416
  onRemove: (p) => {
2414
- const v = Y(Lt(e)), x = /^(\d+)-/.exec(p.uid ?? ""), M = x ? Number(x[1]) : -1, A = M >= 0 && M < v.length ? v.filter((R, C) => C !== M) : v.filter((R) => R !== p.name);
2415
- if (A.length < S) return !1;
2416
- r(A);
2417
+ const v = Y($t(e)), x = /^(\d+)-/.exec(p.uid ?? ""), M = x ? Number(x[1]) : -1, _ = M >= 0 && M < v.length ? v.filter((w, C) => C !== M) : v.filter((w) => w !== p.name);
2418
+ if (_.length < S) return !1;
2419
+ r(_);
2417
2420
  },
2418
2421
  children: [
2419
- /* @__PURE__ */ u("p", { className: "form-file-upload-preview-icon", children: /* @__PURE__ */ u(Xo, { type: d, size: 40 }) }),
2420
- /* @__PURE__ */ u("p", { className: "form-file-upload-preview-text", children: "点击或拖拽文件到此处上传" })
2422
+ /* @__PURE__ */ c("p", { className: "form-file-upload-preview-icon", children: /* @__PURE__ */ c(ti, { type: d, size: 40 }) }),
2423
+ /* @__PURE__ */ c("p", { className: "form-file-upload-preview-text", children: "点击或拖拽文件到此处上传" })
2421
2424
  ]
2422
2425
  }
2423
2426
  ),
@@ -2431,30 +2434,30 @@ function yi({ context: e }) {
2431
2434
  ] })
2432
2435
  ] });
2433
2436
  }
2434
- const vi = Q(
2435
- gi,
2436
- yi
2437
+ const ki = Q(
2438
+ Si,
2439
+ bi
2437
2440
  );
2438
- function Si({ context: e }) {
2439
- const { interactive: t } = oe(), { value: n, setValue: r, fieldName: o, reportFocus: i } = ie(e, "value", {
2441
+ function Ci({ context: e }) {
2442
+ const { interactive: t } = ie(), { value: n, setValue: r, fieldName: o, reportFocus: i } = se(e, "value", {
2440
2443
  component: "TextField",
2441
2444
  changeAction: "change",
2442
2445
  debounceChange: !0
2443
- }), s = e.componentModel.properties, a = E(s.label), l = E(s.placeholder), c = E(s.variant) || "shortText", m = E(s.validationRegexp), d = he(n) ?? "", S = !t, [g, b] = U(""), y = (p) => {
2446
+ }), s = e.componentModel.properties, a = E(s.label), l = E(s.placeholder), u = E(s.variant) || "shortText", m = E(s.validationRegexp), d = he(n) ?? "", S = !t, [g, b] = R(""), y = (p) => {
2444
2447
  if (!m || !p.trim()) {
2445
2448
  b("");
2446
2449
  return;
2447
2450
  }
2448
- b(bn(p, m) ? "" : "格式不正确");
2451
+ b(An(p, m) ? "" : "格式不正确");
2449
2452
  };
2450
2453
  z(() => {
2451
2454
  y(d);
2452
2455
  }, [m, d]);
2453
2456
  const k = "form-block-preview-control";
2454
2457
  let f;
2455
- if (c === "longText")
2456
- f = /* @__PURE__ */ u(
2457
- Ge.TextArea,
2458
+ if (u === "longText")
2459
+ f = /* @__PURE__ */ c(
2460
+ We.TextArea,
2458
2461
  {
2459
2462
  disabled: S,
2460
2463
  className: k,
@@ -2470,10 +2473,10 @@ function Si({ context: e }) {
2470
2473
  onBlur: (p) => y(p.target.value)
2471
2474
  }
2472
2475
  );
2473
- else if (c === "number") {
2476
+ else if (u === "number") {
2474
2477
  const p = d && Number.isFinite(Number(d)) ? Number(d) : void 0;
2475
- f = /* @__PURE__ */ u(
2476
- qn,
2478
+ f = /* @__PURE__ */ c(
2479
+ Vn,
2477
2480
  {
2478
2481
  disabled: S,
2479
2482
  className: k,
@@ -2484,8 +2487,8 @@ function Si({ context: e }) {
2484
2487
  onFocus: i
2485
2488
  }
2486
2489
  );
2487
- } else c === "obscured" ? f = /* @__PURE__ */ u(
2488
- Ge.Password,
2490
+ } else u === "obscured" ? f = /* @__PURE__ */ c(
2491
+ We.Password,
2489
2492
  {
2490
2493
  disabled: S,
2491
2494
  className: k,
@@ -2494,8 +2497,8 @@ function Si({ context: e }) {
2494
2497
  onChange: (p) => r(p.target.value),
2495
2498
  onFocus: i
2496
2499
  }
2497
- ) : f = /* @__PURE__ */ u(
2498
- Ge,
2500
+ ) : f = /* @__PURE__ */ c(
2501
+ We,
2499
2502
  {
2500
2503
  disabled: S,
2501
2504
  className: k,
@@ -2511,12 +2514,12 @@ function Si({ context: e }) {
2511
2514
  }
2512
2515
  );
2513
2516
  return /* @__PURE__ */ I("div", { className: "form-block-preview", "data-skopon-field": o || void 0, children: [
2514
- a ? /* @__PURE__ */ u("div", { className: "form-block-preview-label", children: a }) : null,
2517
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2515
2518
  f,
2516
- g ? /* @__PURE__ */ u(te.Text, { type: "danger", className: "form-block-preview-help", children: g }) : null
2519
+ g ? /* @__PURE__ */ c(te.Text, { type: "danger", className: "form-block-preview-help", children: g }) : null
2517
2520
  ] });
2518
2521
  }
2519
- const bi = Q(
2522
+ const Ai = Q(
2520
2523
  {
2521
2524
  name: "TextField",
2522
2525
  schema: h.object({
@@ -2527,37 +2530,37 @@ const bi = Q(
2527
2530
  value: h.any().optional()
2528
2531
  }).passthrough()
2529
2532
  },
2530
- Si
2533
+ Ci
2531
2534
  );
2532
- function ki({ context: e }) {
2535
+ function _i({ context: e }) {
2533
2536
  const t = e.componentModel.properties, n = E(t.text), r = E(t.variant) || "body";
2534
- return ei.has(r) ? r === "caption" ? /* @__PURE__ */ u(te.Text, { type: "secondary", className: "form-block-preview-paragraph", children: /* @__PURE__ */ u("em", { children: n }) }) : /* @__PURE__ */ u(r, { className: "form-block-preview-heading", children: n }) : /* @__PURE__ */ u(te.Paragraph, { className: "form-block-preview-paragraph", children: n });
2537
+ return ri.has(r) ? r === "caption" ? /* @__PURE__ */ c(te.Text, { type: "secondary", className: "form-block-preview-paragraph", children: /* @__PURE__ */ c("em", { children: n }) }) : /* @__PURE__ */ c(r, { className: "form-block-preview-heading", children: n }) : /* @__PURE__ */ c(te.Paragraph, { className: "form-block-preview-paragraph", children: n });
2535
2538
  }
2536
- const Ci = Q(
2539
+ const Ti = Q(
2537
2540
  { name: "Text", schema: Ae("Text") },
2538
- ki
2541
+ _i
2539
2542
  );
2540
- function _n() {
2543
+ function In() {
2541
2544
  const t = [
2542
2545
  ...[...Ee.components.values()].filter(
2543
- (r) => !Zo.has(r.name)
2546
+ (r) => !ni.has(r.name)
2544
2547
  ),
2545
- ni,
2546
- li,
2547
- ri,
2548
- oi,
2549
2548
  ii,
2550
- ui,
2551
- di,
2549
+ mi,
2550
+ si,
2551
+ ai,
2552
+ li,
2553
+ pi,
2552
2554
  hi,
2553
2555
  vi,
2554
- bi,
2555
- Ci,
2556
- ...ro()
2556
+ ki,
2557
+ Ai,
2558
+ Ti,
2559
+ ...so()
2557
2560
  ], n = [...Ee.functions.values()];
2558
- return new Kn(Cn, t, n, Ee.themeSchema);
2561
+ return new Wn(Tn, t, n, Ee.themeSchema);
2559
2562
  }
2560
- const re = {
2563
+ const oe = {
2561
2564
  jade9: "#29a383",
2562
2565
  jade10: "#26997b",
2563
2566
  jade11: "#208368",
@@ -2569,20 +2572,20 @@ const re = {
2569
2572
  primaryHover: "#26997b",
2570
2573
  primaryActive: "#1d3b31",
2571
2574
  onPrimary: "#ffffff"
2572
- }, Ai = {
2575
+ }, xi = {
2573
2576
  cssVar: { key: "vidtempl" },
2574
2577
  token: {
2575
- colorPrimary: re.primarySolid,
2576
- colorPrimaryHover: re.primaryHover,
2577
- colorPrimaryActive: re.primaryActive,
2578
- colorLink: re.primary,
2579
- colorLinkHover: re.primaryHover,
2580
- colorSuccess: re.jade9,
2578
+ colorPrimary: oe.primarySolid,
2579
+ colorPrimaryHover: oe.primaryHover,
2580
+ colorPrimaryActive: oe.primaryActive,
2581
+ colorLink: oe.primary,
2582
+ colorLinkHover: oe.primaryHover,
2583
+ colorSuccess: oe.jade9,
2581
2584
  colorWarning: "#f5a623",
2582
2585
  gold6: "#f5a623",
2583
2586
  gold7: "#e6951a",
2584
2587
  colorError: "#e5484d",
2585
- colorInfo: re.primary,
2588
+ colorInfo: oe.primary,
2586
2589
  colorBgLayout: "#f9f9f9",
2587
2590
  colorBgContainer: "#ffffff",
2588
2591
  colorBgElevated: "#ffffff",
@@ -2642,7 +2645,7 @@ const re = {
2642
2645
  },
2643
2646
  Tag: {
2644
2647
  defaultBg: "#e6f7ed",
2645
- defaultColor: re.primary,
2648
+ defaultColor: oe.primary,
2646
2649
  fontSizeSM: 13
2647
2650
  },
2648
2651
  Form: {
@@ -2659,9 +2662,9 @@ function ge({
2659
2662
  locale: t,
2660
2663
  theme: n
2661
2664
  }) {
2662
- return /* @__PURE__ */ u(Bn, { theme: n ?? Ai, locale: t, children: e });
2665
+ return /* @__PURE__ */ c(jn, { theme: n ?? xi, locale: t, children: e });
2663
2666
  }
2664
- const _i = Nn(
2667
+ const Ii = Rn(
2665
2668
  function({
2666
2669
  doc: t,
2667
2670
  surfaceId: n = "skopon-form",
@@ -2671,14 +2674,14 @@ const _i = Nn(
2671
2674
  resumeSearch: s = null,
2672
2675
  caseSearch: a = null,
2673
2676
  wrapProvider: l = !0
2674
- }, c) {
2677
+ }, u) {
2675
2678
  z(() => {
2676
- Yt(), Wt();
2679
+ Zt(), Xt();
2677
2680
  }, []);
2678
- const m = T(null), d = T(i);
2681
+ const m = A(null), d = A(i);
2679
2682
  d.current = i;
2680
2683
  const S = j(() => {
2681
- if (lt(t)) return "";
2684
+ if (ut(t)) return "";
2682
2685
  try {
2683
2686
  return JSON.stringify(t);
2684
2687
  } catch {
@@ -2688,9 +2691,9 @@ const _i = Nn(
2688
2691
  if (!S)
2689
2692
  return { surfaces: [], processor: null };
2690
2693
  try {
2691
- const f = JSON.parse(S), p = new Jt([_n()]), v = ho(f, {
2694
+ const f = JSON.parse(S), p = new Qt([In()]), v = vo(f, {
2692
2695
  surfaceId: n,
2693
- catalogId: Cn
2696
+ catalogId: Tn
2694
2697
  });
2695
2698
  return p.processMessages(v), {
2696
2699
  surfaces: Array.from(p.model.surfacesMap.values()),
@@ -2700,14 +2703,14 @@ const _i = Nn(
2700
2703
  return console.error("[SkoponFormRenderer] 渲染 A2UI surface 失败", f), { surfaces: [], processor: null };
2701
2704
  }
2702
2705
  }, [S, n]), { surfaces: b, processor: y } = g;
2703
- if (m.current = y, En(
2704
- c,
2706
+ if (m.current = y, wn(
2707
+ u,
2705
2708
  () => ({
2706
2709
  getValues(f) {
2707
2710
  const p = m.current;
2708
2711
  if (!p) return {};
2709
2712
  const v = (f ?? d.current).map((x) => x.trim()).filter(Boolean);
2710
- return So(p, n, v);
2713
+ return Co(p, n, v);
2711
2714
  },
2712
2715
  setValues(f) {
2713
2716
  const p = m.current;
@@ -2715,24 +2718,24 @@ const _i = Nn(
2715
2718
  const v = p.model.surfacesMap.get(n);
2716
2719
  if (v)
2717
2720
  for (const [x, M] of Object.entries(f)) {
2718
- const A = x.trim();
2719
- A && v.dataModel.set(`/${A}`, M);
2721
+ const _ = x.trim();
2722
+ _ && v.dataModel.set(`/${_}`, M);
2720
2723
  }
2721
2724
  }
2722
2725
  }),
2723
2726
  [n]
2724
2727
  ), b.length === 0) {
2725
- const f = /* @__PURE__ */ u(it, { resumeSearch: s, children: /* @__PURE__ */ u(ot, { caseSearch: a, children: /* @__PURE__ */ u(rt, { interactive: o, children: r }) }) });
2726
- return l ? /* @__PURE__ */ u(ge, { children: f }) : f;
2728
+ const f = /* @__PURE__ */ c(at, { resumeSearch: s, children: /* @__PURE__ */ c(st, { caseSearch: a, children: /* @__PURE__ */ c(it, { interactive: o, children: r }) }) });
2729
+ return l ? /* @__PURE__ */ c(ge, { children: f }) : f;
2727
2730
  }
2728
- const k = /* @__PURE__ */ u(it, { resumeSearch: s, children: /* @__PURE__ */ u(ot, { caseSearch: a, children: /* @__PURE__ */ u(rt, { interactive: o, children: /* @__PURE__ */ u("div", { className: "a2ui-surface a2ui-container", children: b.map((f) => /* @__PURE__ */ u(Gt, { surface: f }, f.id)) }) }) }) });
2729
- return l ? /* @__PURE__ */ u(ge, { children: k }) : k;
2731
+ const k = /* @__PURE__ */ c(at, { resumeSearch: s, children: /* @__PURE__ */ c(st, { caseSearch: a, children: /* @__PURE__ */ c(it, { interactive: o, children: /* @__PURE__ */ c("div", { className: "a2ui-surface a2ui-container", children: b.map((f) => /* @__PURE__ */ c(Yt, { surface: f }, f.id)) }) }) }) });
2732
+ return l ? /* @__PURE__ */ c(ge, { children: k }) : k;
2730
2733
  }
2731
2734
  );
2732
- function Ne() {
2733
- return new Jt([_n()]);
2735
+ function Fe() {
2736
+ return new Qt([In()]);
2734
2737
  }
2735
- function os({
2738
+ function as({
2736
2739
  messages: e,
2737
2740
  surfaceId: t = "skopon-form-stream",
2738
2741
  emptyHint: n = null,
@@ -2741,13 +2744,13 @@ function os({
2741
2744
  caseSearch: i = null
2742
2745
  }) {
2743
2746
  z(() => {
2744
- Yt(), Wt();
2747
+ Zt(), Xt();
2745
2748
  }, []);
2746
- const s = T(null);
2747
- s.current === null && (s.current = Ne());
2748
- const a = T(0), l = T(""), c = T(!0), m = T(t);
2749
+ const s = A(null);
2750
+ s.current === null && (s.current = Fe());
2751
+ const a = A(0), l = A(""), u = A(!0), m = A(t);
2749
2752
  function d(f, p) {
2750
- s.current = f, a.current = p.length, l.current = JSON.stringify(p), c.current && (b(f), k(Array.from(f.model.surfacesMap.values())));
2753
+ s.current = f, a.current = p.length, l.current = JSON.stringify(p), u.current && (b(f), k(Array.from(f.model.surfacesMap.values())));
2751
2754
  }
2752
2755
  function S(f, p) {
2753
2756
  if (p <= 0) return !1;
@@ -2760,20 +2763,20 @@ function os({
2760
2763
  return !0;
2761
2764
  }
2762
2765
  }
2763
- const [g, b] = U(
2766
+ const [g, b] = R(
2764
2767
  () => s.current
2765
- ), [y, k] = U(
2768
+ ), [y, k] = R(
2766
2769
  () => Array.from(
2767
2770
  s.current.model.surfacesMap.values()
2768
2771
  )
2769
2772
  );
2770
- return z(() => (c.current = !0, () => {
2771
- c.current = !1;
2773
+ return z(() => (u.current = !0, () => {
2774
+ u.current = !1;
2772
2775
  }), []), z(() => {
2773
2776
  s.current = g;
2774
2777
  }, [g]), z(() => {
2775
2778
  const f = () => {
2776
- c.current && k(Array.from(g.model.surfacesMap.values()));
2779
+ u.current && k(Array.from(g.model.surfacesMap.values()));
2777
2780
  }, p = g.onSurfaceCreated(f), v = g.onSurfaceDeleted(f);
2778
2781
  return () => {
2779
2782
  p.unsubscribe(), v.unsubscribe();
@@ -2782,15 +2785,15 @@ function os({
2782
2785
  let f = !1;
2783
2786
  const p = m.current !== t;
2784
2787
  if (m.current = t, p) {
2785
- const A = Ne();
2786
- return Array.isArray(e) && e.length > 0 ? (A.processMessages(e), f || d(A, e)) : (s.current = A, a.current = 0, l.current = "", f || (b(A), k([]))), () => {
2788
+ const _ = Fe();
2789
+ return Array.isArray(e) && e.length > 0 ? (_.processMessages(e), f || d(_, e)) : (s.current = _, a.current = 0, l.current = "", f || (b(_), k([]))), () => {
2787
2790
  f = !0;
2788
2791
  };
2789
2792
  }
2790
2793
  if (!Array.isArray(e) || e.length === 0) {
2791
2794
  if (a.current > 0) {
2792
- const A = Ne();
2793
- s.current = A, a.current = 0, l.current = "", f || (b(A), k([]));
2795
+ const _ = Fe();
2796
+ s.current = _, a.current = 0, l.current = "", f || (b(_), k([]));
2794
2797
  }
2795
2798
  return () => {
2796
2799
  f = !0;
@@ -2798,8 +2801,8 @@ function os({
2798
2801
  }
2799
2802
  const v = s.current, x = a.current;
2800
2803
  if (e.length < x || S(e, x)) {
2801
- const A = Ne();
2802
- return A.processMessages(e), f || d(A, e), () => {
2804
+ const _ = Fe();
2805
+ return _.processMessages(e), f || d(_, e), () => {
2803
2806
  f = !0;
2804
2807
  };
2805
2808
  }
@@ -2809,15 +2812,15 @@ function os({
2809
2812
  } : (v.processMessages(M), a.current = e.length, l.current = JSON.stringify(e), f || k(Array.from(v.model.surfacesMap.values())), () => {
2810
2813
  f = !0;
2811
2814
  });
2812
- }, [e, t]), y.length === 0 ? /* @__PURE__ */ u(ge, { children: n }) : /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(it, { resumeSearch: o, children: /* @__PURE__ */ u(ot, { caseSearch: i, children: /* @__PURE__ */ u(rt, { interactive: r, children: /* @__PURE__ */ u("div", { className: "a2ui-surface a2ui-container", children: y.map((f) => /* @__PURE__ */ u(Gt, { surface: f }, f.id)) }) }) }) }) });
2815
+ }, [e, t]), y.length === 0 ? /* @__PURE__ */ c(ge, { children: n }) : /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(at, { resumeSearch: o, children: /* @__PURE__ */ c(st, { caseSearch: i, children: /* @__PURE__ */ c(it, { interactive: r, children: /* @__PURE__ */ c("div", { className: "a2ui-surface a2ui-container", children: y.map((f) => /* @__PURE__ */ c(Yt, { surface: f }, f.id)) }) }) }) }) });
2813
2816
  }
2814
- const Ti = 100, xi = 3e4, Ii = 1500, ue = /* @__PURE__ */ new Map();
2815
- function Mi(e) {
2817
+ const Mi = 100, Ni = 3e4, Fi = 1500, ce = /* @__PURE__ */ new Map();
2818
+ function Ei(e) {
2816
2819
  const t = e.trim();
2817
- let n = ue.get(t);
2818
- return n || (n = new Fi(t), ue.set(t, n)), n.acquire(), n;
2820
+ let n = ce.get(t);
2821
+ return n || (n = new Ui(t), ce.set(t, n)), n.acquire(), n;
2819
2822
  }
2820
- class Fi {
2823
+ class Ui {
2821
2824
  constructor(t) {
2822
2825
  G(this, "url");
2823
2826
  G(this, "ws", null);
@@ -2835,12 +2838,12 @@ class Fi {
2835
2838
  }
2836
2839
  release() {
2837
2840
  this.refCount = Math.max(0, this.refCount - 1), !(this.refCount > 0) && (this.clearReleaseTimer(), this.releaseTimer = setTimeout(() => {
2838
- this.releaseTimer = null, !(this.refCount > 0) && (this.teardown(), ue.get(this.url) === this && ue.delete(this.url));
2839
- }, Ii));
2841
+ this.releaseTimer = null, !(this.refCount > 0) && (this.teardown(), ce.get(this.url) === this && ce.delete(this.url));
2842
+ }, Fi));
2840
2843
  }
2841
2844
  /** 强制关闭(测试用),跳过宽限期。 */
2842
2845
  forceClose() {
2843
- this.refCount = 0, this.teardown(), ue.get(this.url) === this && ue.delete(this.url);
2846
+ this.refCount = 0, this.teardown(), ce.get(this.url) === this && ce.delete(this.url);
2844
2847
  }
2845
2848
  subscribe(t, n) {
2846
2849
  const r = t.trim();
@@ -2909,7 +2912,7 @@ class Fi {
2909
2912
  }
2910
2913
  }
2911
2914
  enqueue(t) {
2912
- for (this.sendQueue.push(t); this.sendQueue.length > Ti; )
2915
+ for (this.sendQueue.push(t); this.sendQueue.length > Mi; )
2913
2916
  this.sendQueue.shift();
2914
2917
  }
2915
2918
  flushQueue() {
@@ -2923,7 +2926,7 @@ class Fi {
2923
2926
  if (!this.connectRequested || this.refCount <= 0) return;
2924
2927
  this.clearReconnectTimer();
2925
2928
  const t = Math.min(
2926
- xi,
2929
+ Ni,
2927
2930
  1e3 * 2 ** Math.min(this.reconnectAttempt, 5)
2928
2931
  );
2929
2932
  this.reconnectAttempt += 1, this.reconnectTimer = setTimeout(() => {
@@ -2961,13 +2964,13 @@ class Fi {
2961
2964
  }
2962
2965
  }
2963
2966
  }
2964
- class Ni {
2967
+ class Ri {
2965
2968
  constructor(t) {
2966
2969
  G(this, "askUserMessageId");
2967
2970
  G(this, "connection");
2968
2971
  G(this, "unsubscribe");
2969
2972
  G(this, "closed", !1);
2970
- this.askUserMessageId = t.askUserMessageId.trim(), this.connection = Mi(t.url);
2973
+ this.askUserMessageId = t.askUserMessageId.trim(), this.connection = Ei(t.url);
2971
2974
  const n = t.onAutoControl;
2972
2975
  this.unsubscribe = n ? this.connection.subscribe(this.askUserMessageId, n) : () => {
2973
2976
  };
@@ -2982,24 +2985,24 @@ class Ni {
2982
2985
  this.closed || (this.closed = !0, this.unsubscribe(), this.connection.release());
2983
2986
  }
2984
2987
  }
2985
- function Tn(e) {
2988
+ function Mn(e) {
2986
2989
  return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
2987
2990
  }
2988
- function Ei(e, t) {
2991
+ function wi(e, t) {
2989
2992
  if (!e) return !1;
2990
- const n = e.querySelector(`[data-skopon-field="${Tn(t)}"]`);
2993
+ const n = e.querySelector(`[data-skopon-field="${Mn(t)}"]`);
2991
2994
  return n instanceof HTMLElement ? ((n.querySelector(
2992
2995
  'input, textarea, select, button, [tabindex]:not([tabindex="-1"])'
2993
2996
  ) ?? n).focus(), !0) : !1;
2994
2997
  }
2995
- function Ui(e, t) {
2998
+ function Pi(e, t) {
2996
2999
  if (!e) return !1;
2997
- const n = e.querySelector(`[data-skopon-field="${Tn(t)}"]`);
3000
+ const n = e.querySelector(`[data-skopon-field="${Mn(t)}"]`);
2998
3001
  return n instanceof HTMLElement ? ((n.querySelector(
2999
3002
  'button, [role="button"], .skopon-resume-select-card, input, label'
3000
3003
  ) ?? n).click(), !0) : !1;
3001
3004
  }
3002
- function Ri(e, t, n) {
3005
+ function zi(e, t, n) {
3003
3006
  const r = e.action;
3004
3007
  if (r !== "change" && r !== "select" && r !== "focus" && r !== "click" && r !== "submit") {
3005
3008
  console.warn("[FormAutoControl] unknown action", r);
@@ -3029,47 +3032,47 @@ function Ri(e, t, n) {
3029
3032
  return;
3030
3033
  }
3031
3034
  if (r === "focus") {
3032
- Ei(t.rootElement, o), n.reportEvent({
3035
+ wi(t.rootElement, o), n.reportEvent({
3033
3036
  action: "focus",
3034
3037
  component: i,
3035
3038
  field: o
3036
3039
  });
3037
3040
  return;
3038
3041
  }
3039
- Ui(t.rootElement, o) || console.warn("[FormAutoControl] click target not found", o);
3042
+ Pi(t.rootElement, o) || console.warn("[FormAutoControl] click target not found", o);
3040
3043
  });
3041
3044
  }
3042
- function wi(e) {
3045
+ function Oi(e) {
3043
3046
  const t = {};
3044
3047
  for (const [n, r] of Object.entries(e))
3045
3048
  r !== void 0 && (t[n] = r);
3046
3049
  return t;
3047
3050
  }
3048
- function Pi(e, t) {
3051
+ function qi(e, t) {
3049
3052
  var o;
3050
3053
  const n = (o = e.name) == null ? void 0 : o.trim();
3051
3054
  if (!n || !t) return { ...e };
3052
3055
  const r = t.get(n);
3053
3056
  return r ? e.type !== "resume_multiselect" && e.type !== "case_multiselect" ? { ...e } : { ...e, options: r.map((i) => ({ ...i })) } : { ...e };
3054
3057
  }
3055
- function zi(e) {
3058
+ function Bi(e) {
3056
3059
  var i, s;
3057
3060
  const n = {
3058
3061
  blocks: (e.blocks ?? []).map(
3059
- (a) => Pi(a, e.liveOptions)
3062
+ (a) => qi(a, e.liveOptions)
3060
3063
  )
3061
3064
  }, r = (i = e.title) == null ? void 0 : i.trim(), o = (s = e.description) == null ? void 0 : s.trim();
3062
3065
  return r && (n.title = r), o && (n.description = o), {
3063
3066
  form_schema: n,
3064
- form_values: wi(e.values ?? {}),
3067
+ form_values: Oi(e.values ?? {}),
3065
3068
  form_change: [...e.formChange ?? []]
3066
3069
  };
3067
3070
  }
3068
- function Oi(e) {
3071
+ function Li(e) {
3069
3072
  const t = Be(e);
3070
- return t ? ht(t.blocks) : e && typeof e == "object" && !Array.isArray(e) ? e : {};
3073
+ return t ? yt(t.blocks) : e && typeof e == "object" && !Array.isArray(e) ? e : {};
3071
3074
  }
3072
- function qi({
3075
+ function Vi({
3073
3076
  payload: e,
3074
3077
  callbackUrl: t,
3075
3078
  title: n,
@@ -3079,15 +3082,15 @@ function qi({
3079
3082
  submitHeaders: s,
3080
3083
  onNotify: a
3081
3084
  }) {
3082
- const [l, c] = U(!1), m = T(!0);
3085
+ const [l, u] = R(!1), m = A(!0);
3083
3086
  z(() => (m.current = !0, () => {
3084
3087
  m.current = !1;
3085
3088
  }), []);
3086
3089
  const d = j(
3087
- () => kt(s),
3090
+ () => At(s),
3088
3091
  [s]
3089
3092
  ), S = j(
3090
- () => fn(e, t, d),
3093
+ () => yn(e, t, d),
3091
3094
  [e, t, d]
3092
3095
  ), g = j(
3093
3096
  () => ({
@@ -3098,35 +3101,35 @@ function qi({
3098
3101
  );
3099
3102
  async function b() {
3100
3103
  if (!l) {
3101
- c(!0);
3104
+ u(!0);
3102
3105
  try {
3103
- const y = Oi(e), k = At({
3106
+ const y = Li(e), k = Tt({
3104
3107
  context: g,
3105
3108
  payload: e,
3106
3109
  answer: y
3107
- }), f = await Sn(k, {
3110
+ }), f = await Cn(k, {
3108
3111
  headers: d
3109
3112
  });
3110
3113
  if (!m.current) return;
3111
- const p = vn(f);
3114
+ const p = kn(f);
3112
3115
  a == null || a(p.type, p.message);
3113
3116
  } catch (y) {
3114
3117
  if (!m.current) return;
3115
3118
  const k = y instanceof Error ? y.message : "提交失败";
3116
3119
  a == null || a("error", k);
3117
3120
  } finally {
3118
- m.current && c(!1);
3121
+ m.current && u(!1);
3119
3122
  }
3120
3123
  }
3121
3124
  }
3122
3125
  return /* @__PURE__ */ I("div", { className: "ask-user-curl-card", children: [
3123
3126
  /* @__PURE__ */ I("div", { className: "ask-user-curl-card-header", children: [
3124
3127
  /* @__PURE__ */ I("div", { className: "ask-user-curl-card-header-title", children: [
3125
- /* @__PURE__ */ u(te.Text, { type: "secondary", children: n ?? "curl 命令" }),
3126
- r ? /* @__PURE__ */ u(pe, { title: r, children: /* @__PURE__ */ u(fe, { className: "ask-user-curl-unpublished-tag", children: "卡片 ID 未发布" }) }) : null,
3127
- o ? /* @__PURE__ */ u(pe, { title: o, children: /* @__PURE__ */ u(fe, { className: "ask-user-curl-incomplete-tag", children: "卡片 ID 待补足" }) }) : null
3128
+ /* @__PURE__ */ c(te.Text, { type: "secondary", children: n ?? "curl 命令" }),
3129
+ r ? /* @__PURE__ */ c(pe, { title: r, children: /* @__PURE__ */ c(fe, { className: "ask-user-curl-unpublished-tag", children: "卡片 ID 未发布" }) }) : null,
3130
+ o ? /* @__PURE__ */ c(pe, { title: o, children: /* @__PURE__ */ c(fe, { className: "ask-user-curl-incomplete-tag", children: "卡片 ID 待补足" }) }) : null
3128
3131
  ] }),
3129
- /* @__PURE__ */ u(pe, { title: "提交到 answer_agent_callback_url", children: /* @__PURE__ */ u(
3132
+ /* @__PURE__ */ c(pe, { title: "提交到 answer_agent_callback_url", children: /* @__PURE__ */ c(
3130
3133
  ze,
3131
3134
  {
3132
3135
  size: "small",
@@ -3138,11 +3141,11 @@ function qi({
3138
3141
  }
3139
3142
  ) })
3140
3143
  ] }),
3141
- /* @__PURE__ */ u("pre", { className: "skopon-form-curl-json", children: S })
3144
+ /* @__PURE__ */ c("pre", { className: "skopon-form-curl-json", children: S })
3142
3145
  ] });
3143
3146
  }
3144
- const Bi = 80;
3145
- function Li(e, t) {
3147
+ const ji = 80;
3148
+ function $i(e, t) {
3146
3149
  if (t && typeof t == "object" && t !== null && "message" in t) {
3147
3150
  const n = t.message;
3148
3151
  if (typeof n == "string" && n.trim())
@@ -3150,7 +3153,7 @@ function Li(e, t) {
3150
3153
  }
3151
3154
  return typeof t == "string" && t.trim() ? `提交失败 (${e}): ${t.trim()}` : `提交失败 (${e})`;
3152
3155
  }
3153
- function Vi({
3156
+ function Di({
3154
3157
  payload: e,
3155
3158
  formUniqueId: t,
3156
3159
  askUserMessageId: n,
@@ -3160,15 +3163,15 @@ function Vi({
3160
3163
  submitHeaders: s,
3161
3164
  fetchFormDetail: a,
3162
3165
  onNotify: l,
3163
- resumeSearch: c = null,
3166
+ resumeSearch: u = null,
3164
3167
  caseSearch: m = null,
3165
3168
  onSurfaceReadyChange: d,
3166
3169
  onAutoControlReady: S
3167
3170
  }) {
3168
- const [g, b] = U(null), [y, k] = U(!1), [f, p] = U(!0), [v, x] = U(!1), M = T(null), A = T(null), R = T(!0), C = T(l);
3171
+ const [g, b] = R(null), [y, k] = R(!1), [f, p] = R(!0), [v, x] = R(!1), M = A(null), _ = A(null), w = A(!0), C = A(l);
3169
3172
  C.current = l;
3170
- const O = tn(), q = pt(), le = T(""), K = T(null), D = (t == null ? void 0 : t.trim()) ?? "", J = (n == null ? void 0 : n.trim()) ?? "", Z = j(
3171
- () => kt(s),
3173
+ const O = on(), B = ht(), ne = A(""), K = A(null), D = (t == null ? void 0 : t.trim()) ?? "", J = (n == null ? void 0 : n.trim()) ?? "", Z = j(
3174
+ () => At(s),
3172
3175
  [s]
3173
3176
  ), ee = j(
3174
3177
  () => ({
@@ -3177,156 +3180,150 @@ function Vi({
3177
3180
  }),
3178
3181
  [i, r]
3179
3182
  );
3180
- z(() => (R.current = !0, () => {
3181
- R.current = !1, K.current != null && (clearTimeout(K.current), K.current = null);
3183
+ z(() => (w.current = !0, () => {
3184
+ w.current = !1, K.current != null && (clearTimeout(K.current), K.current = null);
3182
3185
  }), []), z(() => {
3183
- let P = !1;
3184
- return D ? (p(!0), k(!1), a({ formUniqueId: D }).then((B) => {
3185
- P || (k(!!B.disabled), b(B.formDefinition ?? null));
3186
- }).catch((B) => {
3186
+ let U = !1;
3187
+ return D ? (p(!0), k(!1), a({ formUniqueId: D }).then((q) => {
3188
+ U || (k(!!q.disabled), b(q.formDefinition ?? null));
3189
+ }).catch((q) => {
3187
3190
  var X;
3188
- if (!P) {
3191
+ if (!U) {
3189
3192
  k(!1), b(null);
3190
- const xe = B instanceof Error ? B.message : "获取表单定义失败";
3193
+ const xe = q instanceof Error ? q.message : "获取表单定义失败";
3191
3194
  (X = C.current) == null || X.call(C, "error", xe);
3192
3195
  }
3193
3196
  }).finally(() => {
3194
- P || p(!1);
3197
+ U || p(!1);
3195
3198
  }), () => {
3196
- P = !0;
3199
+ U = !0;
3197
3200
  }) : (p(!1), k(!1), b(null), () => {
3198
- P = !0;
3201
+ U = !0;
3199
3202
  });
3200
3203
  }, [D, a]);
3201
- const N = j(() => Be(e), [e]), L = j(() => N ? Ao(N, g ?? void 0) : null, [N, g]), _ = (L == null ? void 0 : L.matchedBlocks) ?? [], V = !!(N && To(N) && _.length === 0), w = j(() => V && N ? xo(N) : L && L.renderBlocks.length > 0 ? L.renderBlocks : [], [L, V, N]), F = j(
3202
- () => V ? {} : ht((L == null ? void 0 : L.extraBlocks) ?? []),
3204
+ const F = j(() => Be(e), [e]), L = j(() => F ? xo(F, g ?? void 0) : null, [F, g]), T = (L == null ? void 0 : L.matchedBlocks) ?? [], V = !!(F && Mo(F) && T.length === 0), P = j(() => V && F ? No(F) : L && L.renderBlocks.length > 0 ? L.renderBlocks : [], [L, V, F]), N = j(
3205
+ () => V ? {} : yt((L == null ? void 0 : L.extraBlocks) ?? []),
3203
3206
  [V, L]
3204
- ), W = j(() => V && N ? Io(N) : w.filter((P) => {
3205
- var B;
3206
- return (B = P.name) == null ? void 0 : B.trim();
3207
- }).map((P) => P.name.trim()), [V, N, w]), _e = (L == null ? void 0 : L.title) ?? (N == null ? void 0 : N.title) ?? "", Te = (L == null ? void 0 : L.description) ?? (N == null ? void 0 : N.description) ?? "", ce = j(() => w.length === 0 ? null : yo(
3207
+ ), W = j(() => V && F ? Fo(F) : P.filter((U) => {
3208
+ var q;
3209
+ return (q = U.name) == null ? void 0 : q.trim();
3210
+ }).map((U) => U.name.trim()), [V, F, P]), _e = (L == null ? void 0 : L.title) ?? (F == null ? void 0 : F.title) ?? "", Te = (L == null ? void 0 : L.description) ?? (F == null ? void 0 : F.description) ?? "", le = j(() => P.length === 0 ? null : bo(
3208
3211
  { title: _e, description: Te },
3209
- w
3210
- ), [_e, Te, w]), je = j(() => {
3211
- if (!ce) return "";
3212
+ P
3213
+ ), [_e, Te, P]), je = j(() => {
3214
+ if (!le) return "";
3212
3215
  try {
3213
- return JSON.stringify(ce);
3216
+ return JSON.stringify(le);
3214
3217
  } catch {
3215
- return String(ce);
3218
+ return String(le);
3216
3219
  }
3217
- }, [ce]), $e = D ? `ask-user-${D}` : "ask-user-payload", ne = !!(!f && N && w.length > 0 && ce);
3218
- z(() => (d(ne), () => d(!1)), [ne, d]);
3219
- const Tt = $(() => {
3220
- var B;
3221
- return { ...((B = M.current) == null ? void 0 : B.getValues(W)) ?? {}, ...F };
3222
- }, [W, F]), se = $(
3223
- (P) => {
3224
- const B = zi({
3220
+ }, [le]), $e = D ? `ask-user-${D}` : "ask-user-payload", re = !!(!f && F && P.length > 0 && le);
3221
+ z(() => (d(re), () => d(!1)), [re, d]);
3222
+ const It = $(() => {
3223
+ var q;
3224
+ return { ...((q = M.current) == null ? void 0 : q.getValues(W)) ?? {}, ...N };
3225
+ }, [W, N]), Mt = A(B.liveOptions);
3226
+ Mt.current = B.liveOptions;
3227
+ const De = A(B.pendingChangeFields);
3228
+ De.current = B.pendingChangeFields;
3229
+ const me = $(
3230
+ (U) => {
3231
+ const q = Bi({
3225
3232
  title: _e,
3226
3233
  description: Te,
3227
- blocks: w,
3228
- values: Tt(),
3229
- liveOptions: q.liveOptions,
3230
- formChange: P
3234
+ blocks: P,
3235
+ values: It(),
3236
+ liveOptions: Mt.current,
3237
+ formChange: U
3231
3238
  });
3232
- O.reportData(B);
3239
+ O.reportData(q);
3233
3240
  },
3234
- [
3235
- _e,
3236
- Te,
3237
- w,
3238
- Tt,
3239
- q.liveOptions,
3240
- O
3241
- ]
3242
- );
3243
- z(() => {
3244
- if (!ne || !je) return;
3245
- const P = `${$e}::${je}`;
3246
- if (le.current === P) return;
3247
- le.current = P;
3248
- const B = setTimeout(() => {
3249
- R.current && se([]);
3241
+ [_e, Te, P, It, O]
3242
+ ), He = A(me);
3243
+ He.current = me, z(() => {
3244
+ if (!re) {
3245
+ ne.current = "";
3246
+ return;
3247
+ }
3248
+ if (!je) return;
3249
+ const U = `${$e}::${je}`;
3250
+ if (ne.current === U) return;
3251
+ const q = setTimeout(() => {
3252
+ w.current && ne.current !== U && (ne.current = U, He.current([]));
3250
3253
  }, 0);
3251
- return () => clearTimeout(B);
3252
- }, [ne, $e, je, se]), z(() => {
3253
- if (!(!ne || q.version === 0) && q.pendingChangeFields.length !== 0)
3254
+ return () => clearTimeout(q);
3255
+ }, [re, $e, je]), z(() => {
3256
+ if (!(!re || B.version === 0) && De.current.length !== 0)
3254
3257
  return K.current != null && clearTimeout(K.current), K.current = setTimeout(() => {
3255
- if (K.current = null, !R.current) return;
3256
- const P = [...q.pendingChangeFields];
3257
- q.clearPendingChangeFields(), P.length !== 0 && se(P);
3258
- }, Bi), () => {
3258
+ if (K.current = null, !w.current) return;
3259
+ const U = [...De.current];
3260
+ B.clearPendingChangeFields(), U.length !== 0 && He.current(U);
3261
+ }, ji), () => {
3259
3262
  K.current != null && (clearTimeout(K.current), K.current = null);
3260
3263
  };
3261
- }, [
3262
- ne,
3263
- q.version,
3264
- q.pendingChangeFields,
3265
- q.clearPendingChangeFields,
3266
- se
3267
- ]);
3268
- const De = $(async () => {
3269
- var P, B, X, xe, Mt, Ft, Nt, Et;
3264
+ }, [re, B.version, B.clearPendingChangeFields]);
3265
+ const Ke = $(async () => {
3266
+ var U, q, X, xe, Et, Ut, Rt, wt;
3270
3267
  if (!v) {
3271
3268
  x(!0);
3272
3269
  try {
3273
- const de = ((P = M.current) == null ? void 0 : P.getValues(W)) ?? {}, Ie = Yo(w, de);
3270
+ const de = ((U = M.current) == null ? void 0 : U.getValues(W)) ?? {}, Ie = Zo(P, de);
3274
3271
  if (Ie) {
3275
- (B = C.current) == null || B.call(C, "error", Ie.message);
3272
+ (q = C.current) == null || q.call(C, "error", Ie.message);
3276
3273
  return;
3277
3274
  }
3278
- const Ut = { ...de, ...F };
3275
+ const Pt = { ...de, ...N };
3279
3276
  if (o === "post") {
3280
- const zt = (r ?? "").trim();
3281
- if (!zt) {
3277
+ const Bt = (r ?? "").trim();
3278
+ if (!Bt) {
3282
3279
  (X = C.current) == null || X.call(C, "error", "callback_url 为空,无法提交");
3283
3280
  return;
3284
3281
  }
3285
- se([]), O.reportEvent({
3282
+ me([]), O.reportEvent({
3286
3283
  action: "submit",
3287
3284
  component: "SubmitButton"
3288
3285
  });
3289
- const He = await hn(zt, Ut, {
3286
+ const Ge = await vn(Bt, Pt, {
3290
3287
  headers: Z
3291
3288
  });
3292
- if (!R.current) return;
3293
- He.ok ? (xe = C.current) == null || xe.call(C, "success", "提交成功") : (Mt = C.current) == null || Mt.call(C, "error", Li(He.status, He.body));
3289
+ if (!w.current) return;
3290
+ Ge.ok ? (xe = C.current) == null || xe.call(C, "success", "提交成功") : (Et = C.current) == null || Et.call(C, "error", $i(Ge.status, Ge.body));
3294
3291
  return;
3295
3292
  }
3296
- const Rt = At({
3293
+ const zt = Tt({
3297
3294
  context: ee,
3298
3295
  payload: e,
3299
- form: g ?? N,
3300
- answer: Ut
3301
- }), wt = _t(Rt);
3302
- if (wt) {
3303
- (Ft = C.current) == null || Ft.call(C, "error", wt);
3296
+ form: g ?? F,
3297
+ answer: Pt
3298
+ }), Ot = xt(zt);
3299
+ if (Ot) {
3300
+ (Ut = C.current) == null || Ut.call(C, "error", Ot);
3304
3301
  return;
3305
3302
  }
3306
- se([]), O.reportEvent({
3303
+ me([]), O.reportEvent({
3307
3304
  action: "submit",
3308
3305
  component: "SubmitButton"
3309
3306
  });
3310
- const xn = await Sn(Rt, {
3307
+ const Nn = await Cn(zt, {
3311
3308
  headers: Z
3312
3309
  });
3313
- if (!R.current) return;
3314
- const Pt = vn(xn);
3315
- (Nt = C.current) == null || Nt.call(C, Pt.type, Pt.message);
3310
+ if (!w.current) return;
3311
+ const qt = kn(Nn);
3312
+ (Rt = C.current) == null || Rt.call(C, qt.type, qt.message);
3316
3313
  } catch (de) {
3317
- if (!R.current) return;
3314
+ if (!w.current) return;
3318
3315
  const Ie = de instanceof Error ? de.message : "提交失败";
3319
- (Et = C.current) == null || Et.call(C, "error", Ie);
3316
+ (wt = C.current) == null || wt.call(C, "error", Ie);
3320
3317
  } finally {
3321
- R.current && x(!1);
3318
+ w.current && x(!1);
3322
3319
  }
3323
3320
  }
3324
3321
  }, [
3325
3322
  v,
3326
3323
  W,
3327
- w,
3328
- F,
3329
- se,
3324
+ P,
3325
+ N,
3326
+ me,
3330
3327
  O,
3331
3328
  o,
3332
3329
  r,
@@ -3334,24 +3331,24 @@ function Vi({
3334
3331
  ee,
3335
3332
  e,
3336
3333
  g,
3337
- N
3338
- ]), xt = T(De);
3339
- xt.current = De;
3340
- const It = $(
3341
- (P) => {
3342
- Ri(
3343
- P,
3334
+ F
3335
+ ]), Nt = A(Ke);
3336
+ Nt.current = Ke;
3337
+ const Ft = $(
3338
+ (U) => {
3339
+ zi(
3340
+ U,
3344
3341
  {
3345
- setValues: (B) => {
3342
+ setValues: (q) => {
3346
3343
  var X;
3347
- return (X = M.current) == null ? void 0 : X.setValues(B);
3344
+ return (X = M.current) == null ? void 0 : X.setValues(q);
3348
3345
  },
3349
- getValues: (B) => {
3346
+ getValues: (q) => {
3350
3347
  var X;
3351
- return ((X = M.current) == null ? void 0 : X.getValues(B)) ?? {};
3348
+ return ((X = M.current) == null ? void 0 : X.getValues(q)) ?? {};
3352
3349
  },
3353
- submit: () => xt.current(),
3354
- rootElement: A.current
3350
+ submit: () => Nt.current(),
3351
+ rootElement: _.current
3355
3352
  },
3356
3353
  {
3357
3354
  reportEvent: O.reportEvent,
@@ -3362,13 +3359,13 @@ function Vi({
3362
3359
  [O]
3363
3360
  );
3364
3361
  return z(() => {
3365
- if (!ne) {
3362
+ if (!re) {
3366
3363
  S(null);
3367
3364
  return;
3368
3365
  }
3369
- return S(It), () => S(null);
3370
- }, [ne, It, S]), f ? /* @__PURE__ */ u("div", { className: "ask-user-form-card", children: /* @__PURE__ */ u(ct, { size: "small" }) }) : !N || w.length === 0 ? /* @__PURE__ */ u(
3371
- qi,
3366
+ return S(Ft), () => S(null);
3367
+ }, [re, Ft, S]), f ? /* @__PURE__ */ c("div", { className: "ask-user-form-card", children: /* @__PURE__ */ c(mt, { size: "small" }) }) : !F || P.length === 0 ? /* @__PURE__ */ c(
3368
+ Vi,
3372
3369
  {
3373
3370
  payload: e,
3374
3371
  callbackUrl: r,
@@ -3381,35 +3378,35 @@ function Vi({
3381
3378
  "div",
3382
3379
  {
3383
3380
  className: "ask-user-form-card",
3384
- ref: A,
3381
+ ref: _,
3385
3382
  "data-ask-user-message-id": J || void 0,
3386
3383
  children: [
3387
- y && D ? /* @__PURE__ */ u("div", { className: "ask-user-form-card-status", children: /* @__PURE__ */ u(pe, { title: D, children: /* @__PURE__ */ u(fe, { className: "ask-user-curl-unpublished-tag", children: "卡片 ID 未发布" }) }) }) : null,
3388
- /* @__PURE__ */ u(
3389
- _i,
3384
+ y && D ? /* @__PURE__ */ c("div", { className: "ask-user-form-card-status", children: /* @__PURE__ */ c(pe, { title: D, children: /* @__PURE__ */ c(fe, { className: "ask-user-curl-unpublished-tag", children: "卡片 ID 未发布" }) }) }) : null,
3385
+ /* @__PURE__ */ c(
3386
+ Ii,
3390
3387
  {
3391
3388
  ref: M,
3392
- doc: ce,
3389
+ doc: le,
3393
3390
  surfaceId: $e,
3394
3391
  fieldNames: W,
3395
3392
  interactive: !0,
3396
3393
  wrapProvider: !1,
3397
- resumeSearch: c,
3394
+ resumeSearch: u,
3398
3395
  caseSearch: m
3399
3396
  }
3400
3397
  ),
3401
- /* @__PURE__ */ u("div", { className: "ask-user-form-actions", children: /* @__PURE__ */ u(
3398
+ /* @__PURE__ */ c("div", { className: "ask-user-form-actions", children: /* @__PURE__ */ c(
3402
3399
  pe,
3403
3400
  {
3404
3401
  title: o === "post" ? "提交 JSON 到 callback_url" : "提交到 answer_agent_callback_url",
3405
- children: /* @__PURE__ */ u(
3402
+ children: /* @__PURE__ */ c(
3406
3403
  ze,
3407
3404
  {
3408
3405
  type: "primary",
3409
3406
  size: "small",
3410
3407
  loading: v,
3411
3408
  disabled: v,
3412
- onClick: () => void De(),
3409
+ onClick: () => void Ke(),
3413
3410
  children: "提交"
3414
3411
  }
3415
3412
  )
@@ -3419,16 +3416,16 @@ function Vi({
3419
3416
  }
3420
3417
  );
3421
3418
  }
3422
- function is(e) {
3423
- var c;
3424
- const t = ((c = e.askUserMessageId) == null ? void 0 : c.trim()) ?? "", n = j(() => zo(), []), [r, o] = U(!1), i = T(null), s = $((m) => {
3419
+ function ls(e) {
3420
+ var u;
3421
+ const t = ((u = e.askUserMessageId) == null ? void 0 : u.trim()) ?? "", n = j(() => Bo(), []), [r, o] = R(!1), i = A(null), s = $((m) => {
3425
3422
  o(m);
3426
3423
  }, []), a = $(
3427
3424
  (m) => {
3428
3425
  i.current = m;
3429
3426
  },
3430
3427
  []
3431
- ), l = j(() => !n || !t ? null : new Ni({
3428
+ ), l = j(() => !n || !t ? null : new Ri({
3432
3429
  url: n,
3433
3430
  askUserMessageId: t,
3434
3431
  onAutoControl: (m) => {
@@ -3443,8 +3440,8 @@ function is(e) {
3443
3440
  };
3444
3441
  }, [l]), z(() => {
3445
3442
  !l || !r || l.connect();
3446
- }, [l, r]), /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(Nr, { client: l, children: /* @__PURE__ */ u(xr, { children: /* @__PURE__ */ u(
3447
- Vi,
3443
+ }, [l, r]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(Rr, { client: l, children: /* @__PURE__ */ c(Nr, { children: /* @__PURE__ */ c(
3444
+ Di,
3448
3445
  {
3449
3446
  ...e,
3450
3447
  onSurfaceReadyChange: s,
@@ -3453,61 +3450,61 @@ function is(e) {
3453
3450
  ) }) }) });
3454
3451
  }
3455
3452
  export {
3456
- Zi as A2UI_PROTOCOL_VERSION,
3457
- is as AskUserFormCard,
3458
- ot as CaseSearchProvider,
3459
- qi as CurlSubmitBlock,
3460
- Ro as DEFAULT_ANSWER_AGENT_CALLBACK_URL,
3461
- Eo as DEFAULT_AUTH_ANSWER_AGENT_CALLBACK_URL_FIELD,
3462
- Uo as DEFAULT_AUTH_REALTIME_WS_URL_FIELD,
3463
- vt as DEFAULT_AUTH_STORAGE_KEY,
3464
- No as DEFAULT_AUTH_TOKEN_FIELD,
3465
- Gn as FORM_MEDIA_SIZES,
3466
- it as ResumeSearchProvider,
3467
- os as SkoponA2uiStreamRenderer,
3453
+ ns as A2UI_PROTOCOL_VERSION,
3454
+ ls as AskUserFormCard,
3455
+ st as CaseSearchProvider,
3456
+ Vi as CurlSubmitBlock,
3457
+ zo as DEFAULT_ANSWER_AGENT_CALLBACK_URL,
3458
+ wo as DEFAULT_AUTH_ANSWER_AGENT_CALLBACK_URL_FIELD,
3459
+ Po as DEFAULT_AUTH_REALTIME_WS_URL_FIELD,
3460
+ bt as DEFAULT_AUTH_STORAGE_KEY,
3461
+ Ro as DEFAULT_AUTH_TOKEN_FIELD,
3462
+ Yn as FORM_MEDIA_SIZES,
3463
+ at as ResumeSearchProvider,
3464
+ as as SkoponA2uiStreamRenderer,
3468
3465
  ge as SkoponFormProvider,
3469
- _i as SkoponFormRenderer,
3470
- fo as a2uiToBlocks,
3471
- un as blocksToA2ui,
3472
- At as buildAnswerAgentBody,
3473
- Mo as buildAskUserCurlBodyJson,
3474
- Fo as buildAskUserCurlStatement,
3475
- es as buildAskUserSubmitCurlFromPayload,
3476
- yo as buildAskUserSurface,
3477
- fn as buildCurlStatement,
3478
- ts as copyTextToClipboard,
3479
- Jo as createCaseSearchClient,
3480
- Oo as createFormClient,
3481
- Do as createResumeSearchClient,
3482
- rs as createSkoponSdkClients,
3483
- ht as extractExtraBlockValues,
3484
- So as extractSurfaceValues,
3485
- vn as formatAnswerAgentSubmitMessage,
3486
- Io as getPayloadInputFieldNames,
3487
- xo as getPayloadRenderableBlocks,
3488
- Ao as intersectPayloadBlocksWithForm,
3489
- lt as isA2uiSurfaceEmpty,
3466
+ Ii as SkoponFormRenderer,
3467
+ yo as a2uiToBlocks,
3468
+ pn as blocksToA2ui,
3469
+ Tt as buildAnswerAgentBody,
3470
+ Eo as buildAskUserCurlBodyJson,
3471
+ Uo as buildAskUserCurlStatement,
3472
+ rs as buildAskUserSubmitCurlFromPayload,
3473
+ bo as buildAskUserSurface,
3474
+ yn as buildCurlStatement,
3475
+ os as copyTextToClipboard,
3476
+ Qo as createCaseSearchClient,
3477
+ Lo as createFormClient,
3478
+ Go as createResumeSearchClient,
3479
+ ss as createSkoponSdkClients,
3480
+ yt as extractExtraBlockValues,
3481
+ Co as extractSurfaceValues,
3482
+ kn as formatAnswerAgentSubmitMessage,
3483
+ Fo as getPayloadInputFieldNames,
3484
+ No as getPayloadRenderableBlocks,
3485
+ xo as intersectPayloadBlocksWithForm,
3486
+ ut as isA2uiSurfaceEmpty,
3490
3487
  ae as isInputBlockType,
3491
3488
  Oe as isLayoutBlockType,
3492
3489
  Ue as isMediaBlockType,
3493
- vo as mapFormDefinitionFromDto,
3494
- me as normalizeFormDefinition,
3490
+ ko as mapFormDefinitionFromDto,
3491
+ ue as normalizeFormDefinition,
3495
3492
  Be as parsePayloadBlocksJson,
3496
- To as payloadHasInputBlocks,
3497
- Po as resolveAnswerAgentCallbackUrl,
3498
- Ct as resolveClientHeaders,
3499
- zo as resolveRealtimeWsUrl,
3500
- gn as resolveSkoponAuthHeaders,
3501
- kt as resolveSubmitAuthHeaders,
3502
- go as resolveSurfaceFromFormDefinition,
3503
- Ai as skoponAntdTheme,
3504
- re as skoponBrandColors,
3505
- Sn as submitAnswerAgent,
3506
- hn as submitFormJson,
3507
- ho as surfaceDocToMessages,
3493
+ Mo as payloadHasInputBlocks,
3494
+ qo as resolveAnswerAgentCallbackUrl,
3495
+ _t as resolveClientHeaders,
3496
+ Bo as resolveRealtimeWsUrl,
3497
+ Sn as resolveSkoponAuthHeaders,
3498
+ At as resolveSubmitAuthHeaders,
3499
+ So as resolveSurfaceFromFormDefinition,
3500
+ xi as skoponAntdTheme,
3501
+ oe as skoponBrandColors,
3502
+ Cn as submitAnswerAgent,
3503
+ vn as submitFormJson,
3504
+ vo as surfaceDocToMessages,
3508
3505
  Re as syncFormDefinition,
3509
- Rr as useCaseSearch,
3510
- jr as useResumeSearch,
3511
- _t as validateAnswerAgentBody,
3512
- ns as validateAnswerAgentContext
3506
+ zr as useCaseSearch,
3507
+ Hr as useResumeSearch,
3508
+ xt as validateAnswerAgentBody,
3509
+ is as validateAnswerAgentContext
3513
3510
  };