@skopon-cool/form-sdk 0.4.1 → 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.
@@ -4,6 +4,8 @@ export interface ResumeSearchClientOptions extends ClientHeadersOptions {
4
4
  baseUrl?: string;
5
5
  searchPath?: string;
6
6
  fetch?: typeof fetch;
7
+ /** 默认 [1](已发布);对齐 /univ/resume/search 的 published 多值 OR */
8
+ published?: number[];
7
9
  }
8
10
  export declare function createResumeSearchClient(options?: ResumeSearchClientOptions): ResumeSearchFn;
9
11
  //# sourceMappingURL=resumeSearchClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resumeSearchClient.d.ts","sourceRoot":"","sources":["../../src/client/resumeSearchClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,gCAAgC,CAAA;AAEtF,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;CACrB;AAyED,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,yBAA8B,GACtC,cAAc,CAoBhB"}
1
+ {"version":3,"file":"resumeSearchClient.d.ts","sourceRoot":"","sources":["../../src/client/resumeSearchClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,gCAAgC,CAAA;AAEtF,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IACpB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AA6ED,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,yBAA8B,GACtC,cAAc,CAqBhB"}
@@ -10,7 +10,7 @@ export interface SkoponSdkClientsOptions {
10
10
  getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
11
11
  authStorage?: SkoponAuthStorageOptions;
12
12
  form?: Pick<FormClientOptions, 'detailPath'>;
13
- resume?: Pick<ResumeSearchClientOptions, 'searchPath'>;
13
+ resume?: Pick<ResumeSearchClientOptions, 'searchPath' | 'published'>;
14
14
  case?: Pick<CaseSearchClientOptions, 'listPath' | 'published'>;
15
15
  }
16
16
  export interface SkoponSdkClients {
@@ -1 +1 @@
1
- {"version":3,"file":"skoponSdkClients.d.ts","sourceRoot":"","sources":["../../src/client/skoponSdkClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AACzF,OAAO,EAAoB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EAA4B,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC3E,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAA;IAC5C,MAAM,CAAC,EAAE,IAAI,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAA;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,WAAW,CAAC,CAAA;CAC/D;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;IACtC,YAAY,EAAE,cAAc,CAAA;IAC5B,UAAU,EAAE,YAAY,CAAA;CACzB;AAED,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAyBlB"}
1
+ {"version":3,"file":"skoponSdkClients.d.ts","sourceRoot":"","sources":["../../src/client/skoponSdkClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AACzF,OAAO,EAAoB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EAA4B,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC3E,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAA;IAC5C,MAAM,CAAC,EAAE,IAAI,CAAC,yBAAyB,EAAE,YAAY,GAAG,WAAW,CAAC,CAAA;IACpE,IAAI,CAAC,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,WAAW,CAAC,CAAA;CAC/D;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;IACtC,YAAY,EAAE,cAAc,CAAA;IAC5B,UAAU,EAAE,YAAY,CAAA;CACzB;AAED,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CA0BlB"}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import './form-sdk.css';
2
2
  var Fn = Object.defineProperty;
3
3
  var En = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var G = (e, t, n) => En(e, typeof t != "symbol" ? t + "" : t, n);
5
- import { jsx as u, jsxs as I } from "react/jsx-runtime";
5
+ import { jsx as c, jsxs as I } from "react/jsx-runtime";
6
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
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
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";
@@ -275,10 +275,10 @@ function Ar(e) {
275
275
  fileMaxCount: r === "file" ? Vt(t.fileMaxCount, 1) : void 0,
276
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,
@@ -328,7 +328,7 @@ function jt(e) {
328
328
  return Math.floor(t);
329
329
  }
330
330
  function Tr(e, t) {
331
- var s, a, l, c, m, d;
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 Tr(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
  },
@@ -384,7 +384,7 @@ const Mr = {
384
384
  }
385
385
  };
386
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, c] = R(
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) => {
@@ -394,11 +394,11 @@ function Nr({ children: e }) {
394
394
  value: String(p.value ?? ""),
395
395
  label: String(p.label ?? p.value ?? "")
396
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)), c(r.current), i((p) => p + 1));
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,7 +415,7 @@ function Nr({ children: e }) {
415
415
  d
416
416
  ]
417
417
  );
418
- return /* @__PURE__ */ u(tn.Provider, { value: S, children: e });
418
+ return /* @__PURE__ */ c(tn.Provider, { value: S, children: e });
419
419
  }
420
420
  function ht() {
421
421
  return ve(tn) ?? Mr;
@@ -425,7 +425,7 @@ function it({
425
425
  interactive: e,
426
426
  children: t
427
427
  }) {
428
- return /* @__PURE__ */ u(nn.Provider, { value: { interactive: e }, children: t });
428
+ return /* @__PURE__ */ c(nn.Provider, { value: { interactive: e }, children: t });
429
429
  }
430
430
  function ie() {
431
431
  return ve(nn);
@@ -458,24 +458,24 @@ function Rr({
458
458
  }) {
459
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", Ur(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
  }
@@ -494,7 +494,7 @@ function Rr({
494
494
  }),
495
495
  [o, i, s, a]
496
496
  );
497
- return /* @__PURE__ */ u(rn.Provider, { value: l, children: t });
497
+ return /* @__PURE__ */ c(rn.Provider, { value: l, children: t });
498
498
  }
499
499
  function on() {
500
500
  return ve(rn) ?? Er;
@@ -517,12 +517,12 @@ function $t(e, t = "value") {
517
517
  function se(e, t = "value", n = {}) {
518
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
522
  } = n, d = A(null), S = A(void 0), g = A(!1), b = A(a);
523
523
  b.current = a;
524
- const y = A(c);
525
- y.current = c;
524
+ const y = A(u);
525
+ y.current = u;
526
526
  const k = A(l);
527
527
  k.current = l;
528
528
  const f = A(s);
@@ -550,7 +550,7 @@ function se(e, t = "value", n = {}) {
550
550
  if (!s) return;
551
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
@@ -564,7 +564,7 @@ function se(e, t = "value", n = {}) {
564
564
  d.current = null, B();
565
565
  }, wr);
566
566
  },
567
- [s, c, l, m]
567
+ [s, u, l, m]
568
568
  ), _ = $(
569
569
  (O) => {
570
570
  !i || !o || typeof o != "object" || !("path" in o) || e.dataContext.set(String(o.path), O);
@@ -628,7 +628,7 @@ function st({
628
628
  caseSearch: e,
629
629
  children: t
630
630
  }) {
631
- return /* @__PURE__ */ u(mn.Provider, { value: e ?? null, children: t });
631
+ return /* @__PURE__ */ c(mn.Provider, { value: e ?? null, children: t });
632
632
  }
633
633
  function zr() {
634
634
  return ve(mn);
@@ -677,10 +677,10 @@ function Br({
677
677
  disabled: n,
678
678
  onClick: r,
679
679
  children: [
680
- /* @__PURE__ */ u("div", { className: "skopon-resume-select-card-avatar", children: /* @__PURE__ */ u(Jt, { 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}` : "",
@@ -695,7 +695,7 @@ function Lr({ context: e }) {
695
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 = 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);
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
700
  const T = un(J, b);
701
701
  T !== null && s(T);
@@ -749,13 +749,13 @@ function Lr({ 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,
752
+ u ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: u }) : null,
753
753
  v && w.length === 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-status", children: [
754
- /* @__PURE__ */ u(mt, { size: "small" }),
754
+ /* @__PURE__ */ c(mt, { size: "small" }),
755
755
  " 加载案例…"
756
756
  ] }) : null,
757
- !v && w.length === 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-empty", children: Z }) : null,
758
- w.length > 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-list", children: w.map((T) => /* @__PURE__ */ u(
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
759
  Br,
760
760
  {
761
761
  item: T,
@@ -771,19 +771,19 @@ function Lr({ context: e }) {
771
771
  },
772
772
  T.caseUniqueId
773
773
  )) }) : null,
774
- S && n && Xe(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(Gt, {}),
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
  );
@@ -805,7 +805,7 @@ function Dt(e) {
805
805
  return Math.floor(t);
806
806
  }
807
807
  function $r(e, t) {
808
- var s, a, l, c;
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,7 +818,7 @@ function $r(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 } : {},
@@ -834,12 +834,12 @@ function Dr(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
845
  const a = Dt(e.minCount);
@@ -852,7 +852,7 @@ function at({
852
852
  resumeSearch: e,
853
853
  children: t
854
854
  }) {
855
- return /* @__PURE__ */ u(dn.Provider, { value: e ?? null, children: t });
855
+ return /* @__PURE__ */ c(dn.Provider, { value: e ?? null, children: t });
856
856
  }
857
857
  function Hr() {
858
858
  return ve(dn);
@@ -885,26 +885,26 @@ const Gr = {
885
885
  function tt(e, t) {
886
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
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
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(Dn, { 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
910
  function Xr({
@@ -922,24 +922,24 @@ function Xr({
922
922
  disabled: n,
923
923
  onClick: r,
924
924
  children: [
925
- /* @__PURE__ */ u(
925
+ /* @__PURE__ */ c(
926
926
  Pn,
927
927
  {
928
928
  size: 48,
929
929
  src: e.avatarUrl || void 0,
930
- icon: e.avatarUrl ? void 0 : /* @__PURE__ */ u($n, {}),
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
936
  Yr(e.satisfaction),
937
937
  tt("性格", e.personality),
938
938
  tt("专长", e.specialties),
939
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(Qr, { 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
  ]
@@ -950,7 +950,7 @@ function Zr({ context: e }) {
950
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 = 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);
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
955
  const T = un(J, b);
956
956
  T !== null && s(T);
@@ -1004,14 +1004,14 @@ function Zr({ 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,
1007
+ u ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: u }) : null,
1008
1008
  v && w.length === 0 ? /* @__PURE__ */ I("div", { className: "skopon-resume-select-status", children: [
1009
- /* @__PURE__ */ u(mt, { size: "small" }),
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 && w.length === 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-empty", children: L }) : null,
1014
- w.length > 0 ? /* @__PURE__ */ u("div", { className: "skopon-resume-select-list", children: w.map((T) => /* @__PURE__ */ u(
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
1015
  Xr,
1016
1016
  {
1017
1017
  item: T,
@@ -1027,19 +1027,19 @@ function Zr({ context: e }) {
1027
1027
  },
1028
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(Gt, {}),
1035
+ icon: /* @__PURE__ */ c(Gt, {}),
1036
1036
  loading: v,
1037
1037
  disabled: !t,
1038
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
  );
@@ -1129,8 +1129,8 @@ function mo(e) {
1129
1129
  }
1130
1130
  }
1131
1131
  function po(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 ? 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);
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) {
@@ -1273,8 +1273,8 @@ function pn(e, t) {
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
1279
  function fo(e) {
1280
1280
  const t = /* @__PURE__ */ new Map();
@@ -1306,18 +1306,18 @@ function ho(e) {
1306
1306
  const a = String(e.variant ?? "shortText");
1307
1307
  let l = "text";
1308
1308
  a === "longText" ? l = "textarea" : a === "number" ? l = "number" : H(e.validationRegexp) === gt && (l = "email");
1309
- const c = { ...i(l), name: o }, m = H(e.placeholder);
1310
- return m && (c.placeholder = m), c;
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
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);
@@ -1329,8 +1329,8 @@ function ho(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: nt(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);
@@ -1348,7 +1348,7 @@ function ho(e) {
1348
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;
@@ -1516,7 +1516,7 @@ function Be(e) {
1516
1516
  }) : null;
1517
1517
  }
1518
1518
  function xo(e, t) {
1519
- var i, s, a, l, c, m;
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);
@@ -1540,7 +1540,7 @@ function xo(e, t) {
1540
1540
  extraBlocks: o,
1541
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
1546
  function Io(e) {
@@ -1748,13 +1748,13 @@ function Lo(e = {}) {
1748
1748
  const a = await _t(e), l = await r(`${t}${n}?${s.toString()}`, {
1749
1749
  method: "GET",
1750
1750
  headers: a
1751
- }), c = await St(l), m = ko(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: So(c.form_definition) ?? void 0
1757
+ a2ui: So(u.form_definition) ?? void 0
1758
1758
  };
1759
1759
  }
1760
1760
  return { fetchDetail: o };
@@ -1879,29 +1879,31 @@ function Ho(e) {
1879
1879
  }))
1880
1880
  };
1881
1881
  }
1882
- function Ko(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
1895
  function Go(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 _t(e), a = Ko(o, i), l = await r(`${t}${n}?${a.toString()}`, {
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 St(l);
1900
+ headers: a
1901
+ }), m = await St(u);
1900
1902
  return {
1901
- list: (c.list ?? []).map(Ho),
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
  }
@@ -1934,10 +1936,10 @@ function Qo(e = {}) {
1934
1936
  return async ({ filter: i, page: s }) => {
1935
1937
  if (!Jo(i))
1936
1938
  return { list: [], total: 0, page: 1, pageSize: i.pageSize ?? 20 };
1937
- const a = await _t(e), l = Yo(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 St(c);
1942
+ }), m = await St(u);
1941
1943
  return {
1942
1944
  list: (m.list ?? []).map(Wo),
1943
1945
  total: m.total ?? 0,
@@ -1947,7 +1949,7 @@ function Qo(e = {}) {
1947
1949
  };
1948
1950
  }
1949
1951
  function ss(e = {}) {
1950
- var r, o, i, s;
1952
+ var r, o, i, s, a;
1951
1953
  const t = {
1952
1954
  baseUrl: e.baseUrl,
1953
1955
  fetch: e.fetch,
@@ -1961,12 +1963,13 @@ function ss(e = {}) {
1961
1963
  }).fetchDetail,
1962
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
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
  }
@@ -2014,8 +2017,8 @@ function Zo(e, t) {
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 && rt(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 Zo(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 && rt(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 Zo(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 && rt(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,
@@ -2057,7 +2060,7 @@ function ti({
2057
2060
  className: n
2058
2061
  }) {
2059
2062
  const r = ei[e] ?? Wt;
2060
- return /* @__PURE__ */ u(
2063
+ return /* @__PURE__ */ c(
2061
2064
  r,
2062
2065
  {
2063
2066
  className: n ?? "skopon-form-file-placeholder-icon",
@@ -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 = yr(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) {
@@ -2157,16 +2160,16 @@ const oi = {
2157
2160
  }).passthrough()
2158
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") });
2163
+ return /* @__PURE__ */ c(Le, { ...Ve(t, n === "video" ? "video" : n === "audio" ? "audio" : "image") });
2161
2164
  }), si = Q(
2162
2165
  { name: "Image", schema: Ae("Image") },
2163
- ({ context: e }) => /* @__PURE__ */ u(Le, { ...Ve(e.componentModel.properties, "image") })
2166
+ ({ context: e }) => /* @__PURE__ */ c(Le, { ...Ve(e.componentModel.properties, "image") })
2164
2167
  ), ai = Q(
2165
2168
  { name: "Video", schema: Ae("Video") },
2166
- ({ context: e }) => /* @__PURE__ */ u(Le, { ...Ve(e.componentModel.properties, "video") })
2169
+ ({ context: e }) => /* @__PURE__ */ c(Le, { ...Ve(e.componentModel.properties, "video") })
2167
2170
  ), li = Q(
2168
2171
  { name: "AudioPlayer", schema: Ae("AudioPlayer") },
2169
- ({ context: e }) => /* @__PURE__ */ u(Le, { ...Ve(e.componentModel.properties, "audio") })
2172
+ ({ context: e }) => /* @__PURE__ */ c(Le, { ...Ve(e.componentModel.properties, "audio") })
2170
2173
  ), ci = {
2171
2174
  name: "SkoponSelect",
2172
2175
  schema: h.object({
@@ -2181,13 +2184,13 @@ function ui({ context: e }) {
2181
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 = xn(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
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(
2192
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2193
+ /* @__PURE__ */ c(
2191
2194
  ot,
2192
2195
  {
2193
2196
  mode: m ? "multiple" : void 0,
@@ -2196,7 +2199,7 @@ function ui({ 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
  }
@@ -2211,13 +2214,13 @@ function di({ context: e }) {
2211
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 = xn(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
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(
2222
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2223
+ g === "select" ? /* @__PURE__ */ c(
2221
2224
  ot,
2222
2225
  {
2223
2226
  disabled: !t,
@@ -2229,7 +2232,7 @@ function di({ context: e }) {
2229
2232
  value: he(n),
2230
2233
  onChange: (y) => r(y ?? "")
2231
2234
  }
2232
- ) : g === "multiselect" ? /* @__PURE__ */ u(
2235
+ ) : g === "multiselect" ? /* @__PURE__ */ c(
2233
2236
  ot,
2234
2237
  {
2235
2238
  mode: "multiple",
@@ -2242,7 +2245,7 @@ function di({ context: e }) {
2242
2245
  value: Y(n),
2243
2246
  onChange: (y) => r(y ?? [])
2244
2247
  }
2245
- ) : g === "checkbox" ? /* @__PURE__ */ u(
2248
+ ) : g === "checkbox" ? /* @__PURE__ */ c(
2246
2249
  zn.Group,
2247
2250
  {
2248
2251
  disabled: !t,
@@ -2251,7 +2254,7 @@ function di({ context: e }) {
2251
2254
  value: Y(n),
2252
2255
  onChange: (y) => r(y)
2253
2256
  }
2254
- ) : /* @__PURE__ */ u(
2257
+ ) : /* @__PURE__ */ c(
2255
2258
  On.Group,
2256
2259
  {
2257
2260
  disabled: !t,
@@ -2283,8 +2286,8 @@ function fi({ context: e }) {
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(
2289
+ s ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: s }) : null,
2290
+ /* @__PURE__ */ c(
2288
2291
  qn,
2289
2292
  {
2290
2293
  disabled: !t,
@@ -2313,24 +2316,24 @@ function yi({ context: e }) {
2313
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 = gi(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(
2335
+ a ? /* @__PURE__ */ c("div", { className: "form-block-preview-label", children: a }) : null,
2336
+ !u && m ? /* @__PURE__ */ c(
2334
2337
  Bn,
2335
2338
  {
2336
2339
  disabled: !t,
@@ -2341,14 +2344,14 @@ function yi({ context: e }) {
2341
2344
  onChange: S,
2342
2345
  onFocus: i
2343
2346
  }
2344
- ) : /* @__PURE__ */ u(
2347
+ ) : /* @__PURE__ */ c(
2345
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
@@ -2386,16 +2389,16 @@ function bi({ context: e }) {
2386
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 = ur(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
2398
  Je.Dragger,
2396
2399
  {
2397
2400
  disabled: !t || k,
2398
- accept: cr(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) => ({
@@ -2416,8 +2419,8 @@ function bi({ context: e }) {
2416
2419
  r(_);
2417
2420
  },
2418
2421
  children: [
2419
- /* @__PURE__ */ u("p", { className: "form-file-upload-preview-icon", children: /* @__PURE__ */ u(ti, { 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
  ),
@@ -2440,7 +2443,7 @@ function Ci({ context: e }) {
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] = R(""), 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;
@@ -2452,8 +2455,8 @@ function Ci({ context: e }) {
2452
2455
  }, [m, d]);
2453
2456
  const k = "form-block-preview-control";
2454
2457
  let f;
2455
- if (c === "longText")
2456
- f = /* @__PURE__ */ u(
2458
+ if (u === "longText")
2459
+ f = /* @__PURE__ */ c(
2457
2460
  We.TextArea,
2458
2461
  {
2459
2462
  disabled: S,
@@ -2470,9 +2473,9 @@ function Ci({ 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(
2478
+ f = /* @__PURE__ */ c(
2476
2479
  Vn,
2477
2480
  {
2478
2481
  disabled: S,
@@ -2484,7 +2487,7 @@ function Ci({ context: e }) {
2484
2487
  onFocus: i
2485
2488
  }
2486
2489
  );
2487
- } else c === "obscured" ? f = /* @__PURE__ */ u(
2490
+ } else u === "obscured" ? f = /* @__PURE__ */ c(
2488
2491
  We.Password,
2489
2492
  {
2490
2493
  disabled: S,
@@ -2494,7 +2497,7 @@ function Ci({ context: e }) {
2494
2497
  onChange: (p) => r(p.target.value),
2495
2498
  onFocus: i
2496
2499
  }
2497
- ) : f = /* @__PURE__ */ u(
2500
+ ) : f = /* @__PURE__ */ c(
2498
2501
  We,
2499
2502
  {
2500
2503
  disabled: S,
@@ -2511,9 +2514,9 @@ function Ci({ 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
2522
  const Ai = Q(
@@ -2531,7 +2534,7 @@ const Ai = Q(
2531
2534
  );
2532
2535
  function _i({ context: e }) {
2533
2536
  const t = e.componentModel.properties, n = E(t.text), r = E(t.variant) || "body";
2534
- return ri.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
2539
  const Ti = Q(
2537
2540
  { name: "Text", schema: Ae("Text") },
@@ -2659,7 +2662,7 @@ function ge({
2659
2662
  locale: t,
2660
2663
  theme: n
2661
2664
  }) {
2662
- return /* @__PURE__ */ u(jn, { theme: n ?? xi, locale: t, children: e });
2665
+ return /* @__PURE__ */ c(jn, { theme: n ?? xi, locale: t, children: e });
2663
2666
  }
2664
2667
  const Ii = Rn(
2665
2668
  function({
@@ -2671,7 +2674,7 @@ const Ii = Rn(
2671
2674
  resumeSearch: s = null,
2672
2675
  caseSearch: a = null,
2673
2676
  wrapProvider: l = !0
2674
- }, c) {
2677
+ }, u) {
2675
2678
  z(() => {
2676
2679
  Zt(), Xt();
2677
2680
  }, []);
@@ -2701,7 +2704,7 @@ const Ii = Rn(
2701
2704
  }
2702
2705
  }, [S, n]), { surfaces: b, processor: y } = g;
2703
2706
  if (m.current = y, wn(
2704
- c,
2707
+ u,
2705
2708
  () => ({
2706
2709
  getValues(f) {
2707
2710
  const p = m.current;
@@ -2722,11 +2725,11 @@ const Ii = Rn(
2722
2725
  }),
2723
2726
  [n]
2724
2727
  ), b.length === 0) {
2725
- const f = /* @__PURE__ */ u(at, { resumeSearch: s, children: /* @__PURE__ */ u(st, { caseSearch: a, children: /* @__PURE__ */ u(it, { 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(at, { resumeSearch: s, children: /* @__PURE__ */ u(st, { caseSearch: a, children: /* @__PURE__ */ u(it, { interactive: o, children: /* @__PURE__ */ u("div", { className: "a2ui-surface a2ui-container", children: b.map((f) => /* @__PURE__ */ u(Yt, { 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
2735
  function Fe() {
@@ -2745,9 +2748,9 @@ function as({
2745
2748
  }, []);
2746
2749
  const s = A(null);
2747
2750
  s.current === null && (s.current = Fe());
2748
- const a = A(0), l = A(""), c = A(!0), m = A(t);
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;
@@ -2767,13 +2770,13 @@ function as({
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();
@@ -2809,7 +2812,7 @@ function as({
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(at, { resumeSearch: o, children: /* @__PURE__ */ u(st, { caseSearch: i, children: /* @__PURE__ */ u(it, { interactive: r, children: /* @__PURE__ */ u("div", { className: "a2ui-surface a2ui-container", children: y.map((f) => /* @__PURE__ */ u(Yt, { 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
2817
  const Mi = 100, Ni = 3e4, Fi = 1500, ce = /* @__PURE__ */ new Map();
2815
2818
  function Ei(e) {
@@ -3079,7 +3082,7 @@ function Vi({
3079
3082
  submitHeaders: s,
3080
3083
  onNotify: a
3081
3084
  }) {
3082
- const [l, c] = R(!1), m = A(!0);
3085
+ const [l, u] = R(!1), m = A(!0);
3083
3086
  z(() => (m.current = !0, () => {
3084
3087
  m.current = !1;
3085
3088
  }), []);
@@ -3098,7 +3101,7 @@ function Vi({
3098
3101
  );
3099
3102
  async function b() {
3100
3103
  if (!l) {
3101
- c(!0);
3104
+ u(!0);
3102
3105
  try {
3103
3106
  const y = Li(e), k = Tt({
3104
3107
  context: g,
@@ -3115,18 +3118,18 @@ function Vi({
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,7 +3141,7 @@ function Vi({
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
3147
  const ji = 80;
@@ -3160,7 +3163,7 @@ function Di({
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
@@ -3361,7 +3364,7 @@ function Di({
3361
3364
  return;
3362
3365
  }
3363
3366
  return S(Ft), () => S(null);
3364
- }, [re, Ft, S]), f ? /* @__PURE__ */ u("div", { className: "ask-user-form-card", children: /* @__PURE__ */ u(mt, { size: "small" }) }) : !F || P.length === 0 ? /* @__PURE__ */ u(
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(
3365
3368
  Vi,
3366
3369
  {
3367
3370
  payload: e,
@@ -3378,8 +3381,8 @@ function Di({
3378
3381
  ref: _,
3379
3382
  "data-ask-user-message-id": J || void 0,
3380
3383
  children: [
3381
- 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,
3382
- /* @__PURE__ */ u(
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(
3383
3386
  Ii,
3384
3387
  {
3385
3388
  ref: M,
@@ -3388,15 +3391,15 @@ function Di({
3388
3391
  fieldNames: W,
3389
3392
  interactive: !0,
3390
3393
  wrapProvider: !1,
3391
- resumeSearch: c,
3394
+ resumeSearch: u,
3392
3395
  caseSearch: m
3393
3396
  }
3394
3397
  ),
3395
- /* @__PURE__ */ u("div", { className: "ask-user-form-actions", children: /* @__PURE__ */ u(
3398
+ /* @__PURE__ */ c("div", { className: "ask-user-form-actions", children: /* @__PURE__ */ c(
3396
3399
  pe,
3397
3400
  {
3398
3401
  title: o === "post" ? "提交 JSON 到 callback_url" : "提交到 answer_agent_callback_url",
3399
- children: /* @__PURE__ */ u(
3402
+ children: /* @__PURE__ */ c(
3400
3403
  ze,
3401
3404
  {
3402
3405
  type: "primary",
@@ -3414,8 +3417,8 @@ function Di({
3414
3417
  );
3415
3418
  }
3416
3419
  function ls(e) {
3417
- var c;
3418
- const t = ((c = e.askUserMessageId) == null ? void 0 : c.trim()) ?? "", n = j(() => Bo(), []), [r, o] = R(!1), i = A(null), s = $((m) => {
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) => {
3419
3422
  o(m);
3420
3423
  }, []), a = $(
3421
3424
  (m) => {
@@ -3437,7 +3440,7 @@ function ls(e) {
3437
3440
  };
3438
3441
  }, [l]), z(() => {
3439
3442
  !l || !r || l.connect();
3440
- }, [l, r]), /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(Rr, { client: l, children: /* @__PURE__ */ u(Nr, { children: /* @__PURE__ */ u(
3443
+ }, [l, r]), /* @__PURE__ */ c(ge, { children: /* @__PURE__ */ c(Rr, { client: l, children: /* @__PURE__ */ c(Nr, { children: /* @__PURE__ */ c(
3441
3444
  Di,
3442
3445
  {
3443
3446
  ...e,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.1",
6
+ "version": "0.4.2",
7
7
  "description": "Skopon form rendering SDK (A2UI + form_definition) with submit helpers",
8
8
  "type": "module",
9
9
  "sideEffects": [
@@ -69,6 +69,7 @@ describe('createResumeSearchClient', () => {
69
69
  expect(url).toContain('name=%E5%AF%BC%E6%BC%94')
70
70
  expect(url).toContain('agent_unique_id=agent-1')
71
71
  expect(url).toContain('resume_unique_id=resume-abc')
72
+ expect(url).toContain('published=1')
72
73
  expect(init.headers).toEqual({ Authorization: 'Bearer test' })
73
74
 
74
75
  expect(result.list).toHaveLength(1)
@@ -10,6 +10,8 @@ export interface ResumeSearchClientOptions extends ClientHeadersOptions {
10
10
  baseUrl?: string
11
11
  searchPath?: string
12
12
  fetch?: typeof fetch
13
+ /** 默认 [1](已发布);对齐 /univ/resume/search 的 published 多值 OR */
14
+ published?: number[]
13
15
  }
14
16
 
15
17
  interface ResumeWorkDto {
@@ -67,6 +69,7 @@ function mapResumeListItem(dto: ResumeListItemDto): ResumeSearchItem {
67
69
  function buildResumeSearchQuery(
68
70
  filter: FormResumeFilter,
69
71
  page: number,
72
+ published: number[],
70
73
  ): URLSearchParams {
71
74
  const params = new URLSearchParams()
72
75
  params.set('page', String(page))
@@ -80,6 +83,9 @@ function buildResumeSearchQuery(
80
83
  for (const id of filter.resumeUniqueIds ?? []) {
81
84
  if (id) params.append('resume_unique_id', id)
82
85
  }
86
+ for (const value of published) {
87
+ params.append('published', String(value))
88
+ }
83
89
  return params
84
90
  }
85
91
 
@@ -89,10 +95,11 @@ export function createResumeSearchClient(
89
95
  const baseUrl = (options.baseUrl ?? '/api/v1').replace(/\/$/, '')
90
96
  const searchPath = options.searchPath ?? '/univ/resume/search'
91
97
  const fetchFn = options.fetch ?? fetch
98
+ const published = options.published ?? [1]
92
99
 
93
100
  return async ({ filter, page }) => {
94
101
  const headers = await resolveClientHeaders(options)
95
- const params = buildResumeSearchQuery(filter, page)
102
+ const params = buildResumeSearchQuery(filter, page, published)
96
103
  const response = await fetchFn(`${baseUrl}${searchPath}?${params.toString()}`, {
97
104
  method: 'GET',
98
105
  headers,
@@ -11,7 +11,7 @@ export interface SkoponSdkClientsOptions {
11
11
  getHeaders?: () => Record<string, string> | Promise<Record<string, string>>
12
12
  authStorage?: SkoponAuthStorageOptions
13
13
  form?: Pick<FormClientOptions, 'detailPath'>
14
- resume?: Pick<ResumeSearchClientOptions, 'searchPath'>
14
+ resume?: Pick<ResumeSearchClientOptions, 'searchPath' | 'published'>
15
15
  case?: Pick<CaseSearchClientOptions, 'listPath' | 'published'>
16
16
  }
17
17
 
@@ -41,6 +41,7 @@ export function createSkoponSdkClients(
41
41
  resumeSearch: createResumeSearchClient({
42
42
  ...shared,
43
43
  searchPath: options.resume?.searchPath,
44
+ published: options.resume?.published,
44
45
  }),
45
46
  caseSearch: createCaseSearchClient({
46
47
  ...shared,