@nuwatop/code-canvas-core 0.4.2 → 0.4.3

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.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as b, jsxs as ot, Fragment as se } from "react/jsx-runtime";
2
2
  import { createRoot as dr } from "react-dom/client";
3
- import { theme as Ft, ConfigProvider as Mt, Button as Xt, Input as Me, InputNumber as $n, Space as Yt, Select as Mn, Switch as mr, DatePicker as Rn, TimePicker as hr, Radio as Ve, Checkbox as ce, Rate as yr, Slider as gr, Cascader as pr, TreeSelect as vr, message as Ce, Upload as br, Image as Qt, AutoComplete as Sr, Form as Ee, Transfer as wr, Segmented as Dr, Modal as jn, Tooltip as xr, Table as Ar, Flex as Bn, Typography as sn, Tabs as Cr, Tree as Tr, Timeline as Nr, Steps as kr, Statistic as Ge, Carousel as Or, Avatar as _r, Tag as Kn, Pagination as Ln, Breadcrumb as Er, Menu as $r, Calendar as Mr, Badge as zn, Masonry as Rr, Alert as Vn, Drawer as jr, Result as Br, Card as Je, Divider as hn, Dropdown as Kr, Row as Lr, Col as zr, QRCode as Vr, Splitter as qe, Spin as qn, Watermark as qr } from "antd";
3
+ import { theme as Ft, ConfigProvider as Mt, Button as Xt, Input as Me, InputNumber as $n, Space as Pt, Select as Mn, Switch as mr, DatePicker as Rn, TimePicker as hr, Radio as Ve, Checkbox as ce, Rate as yr, Slider as gr, Cascader as pr, TreeSelect as vr, message as Ce, Upload as br, Image as Qt, AutoComplete as Sr, Form as Ee, Transfer as wr, Segmented as Dr, Modal as jn, Tooltip as xr, Table as Ar, Flex as Bn, Typography as sn, Tabs as Cr, Tree as Tr, Timeline as Nr, Steps as kr, Statistic as Ge, Carousel as Or, Avatar as _r, Tag as Kn, Pagination as Ln, Breadcrumb as Er, Menu as $r, Calendar as Mr, Badge as zn, Masonry as Rr, Alert as Vn, Drawer as jr, Result as Br, Card as Je, Divider as hn, Dropdown as Kr, Row as Lr, Col as zr, QRCode as Vr, Splitter as qe, Spin as qn, Watermark as qr } from "antd";
4
4
  import { StyleProvider as Wr, createCache as Hr } from "@ant-design/cssinjs";
5
5
  import Ur from "antd/locale/zh_CN";
6
6
  import { create as Pr } from "zustand";
@@ -10,7 +10,7 @@ import qt, { useMemo as g, useCallback as B, useEffect as bt, createContext as J
10
10
  import * as Gt from "@ant-design/icons";
11
11
  import { CloseCircleOutlined as Xr, PlusOutlined as Hn, UploadOutlined as Zr, MenuOutlined as Ir, MinusOutlined as ti, LeftOutlined as Un, RightOutlined as Pn, UpOutlined as ei, DownOutlined as Yn, ApiOutlined as ni, InboxOutlined as ri } from "@ant-design/icons";
12
12
  import ii from "clsx";
13
- import Pt from "dayjs";
13
+ import Ut from "dayjs";
14
14
  import { pdfjs as he, Document as ai, Page as oi } from "react-pdf";
15
15
  import "react-pdf/dist/Page/TextLayer.css";
16
16
  import "react-pdf/dist/Page/AnnotationLayer.css";
@@ -22,9 +22,9 @@ const yi = () => {
22
22
  }, gi = (e) => {
23
23
  let t = Qe.get(e);
24
24
  return t || (t = Hr(), Qe.set(e, t)), t;
25
- }, Zo = (e) => {
25
+ }, Xo = (e) => {
26
26
  e && Qe.delete(e);
27
- }, Io = async ({
27
+ }, Zo = async ({
28
28
  el: e,
29
29
  component: t,
30
30
  props: n = {},
@@ -86,7 +86,7 @@ const yi = () => {
86
86
  window.__CURRENT_STYLE_CONTAINER__ = h, c.render(u(S));
87
87
  }
88
88
  };
89
- }, tc = () => {
89
+ }, Io = () => {
90
90
  console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Fe = !1;
91
91
  };
92
92
  function be(e) {
@@ -266,7 +266,7 @@ const O = Pr()(
266
266
  }))
267
267
  )
268
268
  );
269
- function ec(e) {
269
+ function tc(e) {
270
270
  const { dataSet: t, dataSetField: n } = e, i = O((r) => r.setDataSet);
271
271
  return {
272
272
  get value() {
@@ -278,7 +278,7 @@ function ec(e) {
278
278
  }
279
279
  };
280
280
  }
281
- function nc(e) {
281
+ function ec(e) {
282
282
  const t = O((n) => n.setDataSetBatch);
283
283
  return {
284
284
  get value() {
@@ -289,10 +289,10 @@ function nc(e) {
289
289
  }
290
290
  };
291
291
  }
292
- function rc() {
292
+ function nc() {
293
293
  return O((e) => e.addCommand);
294
294
  }
295
- function ic() {
295
+ function rc() {
296
296
  return O((e) => e.popCommand);
297
297
  }
298
298
  function vi(e, t) {
@@ -307,7 +307,7 @@ function vi(e, t) {
307
307
  return Array.isArray(a) ? a : a != null && typeof a == "object" && Array.isArray(a.value) ? a.value : [];
308
308
  }, [n, e, t, i]);
309
309
  }
310
- function ac() {
310
+ function ic() {
311
311
  const e = O((a) => a.setDataSetBatch), t = O((a) => a.setDataSet), n = O((a) => a.updateDataSet), i = O((a) => a.getDataSet), r = O.getState;
312
312
  return {
313
313
  get items() {
@@ -328,7 +328,7 @@ function ac() {
328
328
  getItem: (a) => r().dataSets[a] || {}
329
329
  };
330
330
  }
331
- function oc(e) {
331
+ function ac(e) {
332
332
  const t = O((a) => a.addCommand), n = O((a) => a.popCommand), i = O((a) => a.getCommands), r = O((a) => a.clearCommands);
333
333
  return {
334
334
  commands: i(e),
@@ -363,7 +363,7 @@ function bi(e, t, n = {}) {
363
363
  }
364
364
  );
365
365
  }
366
- function cc(e) {
366
+ function oc(e) {
367
367
  return function(t, n) {
368
368
  const i = e();
369
369
  return bi(t, n, i);
@@ -396,7 +396,7 @@ function gt(e, t, n = {}) {
396
396
  function Si(e, t = {}) {
397
397
  return te(e, null, t);
398
398
  }
399
- function sc(e, t = {}) {
399
+ function cc(e, t = {}) {
400
400
  return te(e, null, t);
401
401
  }
402
402
  function X(e, t) {
@@ -1208,10 +1208,10 @@ function ie(e, t) {
1208
1208
  return e.find((n) => ta(n.value, t));
1209
1209
  }
1210
1210
  let Vt = {};
1211
- function lc(e) {
1211
+ function sc(e) {
1212
1212
  Vt = { ...Vt, ...e };
1213
1213
  }
1214
- function Ut() {
1214
+ function Yt() {
1215
1215
  return Vt;
1216
1216
  }
1217
1217
  async function ne(e) {
@@ -1241,12 +1241,12 @@ async function ln(e) {
1241
1241
  function rn() {
1242
1242
  return Vt.getAccessToken ? Vt.getAccessToken() : null;
1243
1243
  }
1244
- const uc = {
1244
+ const lc = {
1245
1245
  post: (e, t, n) => ne({ url: e, data: t, method: "POST", ...n }),
1246
1246
  get: (e, t, n) => ne({ url: e, params: t, method: "GET", ...n })
1247
1247
  };
1248
1248
  function ea() {
1249
- const e = Ut(), t = B(
1249
+ const e = Yt(), t = B(
1250
1250
  async (l, m) => {
1251
1251
  const v = typeof l == "string" ? { url: l, ...m } : l;
1252
1252
  return ne(v);
@@ -1632,7 +1632,7 @@ const Be = {
1632
1632
  colorLink: "colorLink",
1633
1633
  colorLinkHover: "colorLinkHover",
1634
1634
  colorLinkActive: "colorLinkActive"
1635
- }, fc = Object.keys(Be), dc = [
1635
+ }, uc = Object.keys(Be), fc = [
1636
1636
  { label: "主色", value: "colorPrimary" },
1637
1637
  { label: "成功", value: "colorSuccess" },
1638
1638
  { label: "警告", value: "colorWarning" },
@@ -1655,7 +1655,7 @@ function Ke(e) {
1655
1655
  return e;
1656
1656
  }
1657
1657
  }
1658
- function mc(e, t) {
1658
+ function dc(e, t) {
1659
1659
  if (e) {
1660
1660
  if (In(e)) {
1661
1661
  const n = Be[e];
@@ -1664,7 +1664,7 @@ function mc(e, t) {
1664
1664
  return e;
1665
1665
  }
1666
1666
  }
1667
- const hc = ({
1667
+ const mc = ({
1668
1668
  id: e,
1669
1669
  text: t,
1670
1670
  iconName: n,
@@ -1970,7 +1970,7 @@ const tr = (e) => {
1970
1970
  return _t ? /* @__PURE__ */ b(Mt, { theme: _t, children: G }) : G;
1971
1971
  };
1972
1972
  tr.displayName = "AndInput";
1973
- const yc = qt.memo(tr), xn = 200, gc = ({
1973
+ const hc = qt.memo(tr), xn = 200, yc = ({
1974
1974
  id: e,
1975
1975
  sessionId: t,
1976
1976
  develop: n,
@@ -2135,7 +2135,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2135
2135
  }
2136
2136
  );
2137
2137
  return /* @__PURE__ */ ot("div", { style: { width: "100%" }, children: [
2138
- $ || q ? /* @__PURE__ */ ot(Yt.Compact, { style: { width: "100%" }, children: [
2138
+ $ || q ? /* @__PURE__ */ ot(Pt.Compact, { style: { width: "100%" }, children: [
2139
2139
  $ && /* @__PURE__ */ b(
2140
2140
  "div",
2141
2141
  {
@@ -2174,7 +2174,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2174
2174
  ] }) : K,
2175
2175
  k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
2176
2176
  ] });
2177
- }, { TextArea: Oa } = Me, _a = 200, pc = ({
2177
+ }, { TextArea: Oa } = Me, _a = 200, gc = ({
2178
2178
  id: e,
2179
2179
  sessionId: t,
2180
2180
  develop: n,
@@ -2309,7 +2309,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2309
2309
  ),
2310
2310
  w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
2311
2311
  ] });
2312
- }, { Password: Ea } = Me, $a = 200, vc = ({
2312
+ }, { Password: Ea } = Me, $a = 200, pc = ({
2313
2313
  id: e,
2314
2314
  sessionId: t,
2315
2315
  develop: n,
@@ -2436,7 +2436,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2436
2436
  ),
2437
2437
  A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
2438
2438
  ] });
2439
- }, { Search: Ma } = Me, bc = ({
2439
+ }, { Search: Ma } = Me, vc = ({
2440
2440
  id: e,
2441
2441
  sessionId: t,
2442
2442
  develop: n,
@@ -2473,7 +2473,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2473
2473
  o && t && p(t, X(o, T));
2474
2474
  }, [l, o, t, p]);
2475
2475
  return /* @__PURE__ */ b(Ma, { ...h, disabled: n ? !1 : h.disabled, value: u, onChange: x, onSearch: D });
2476
- }, Ra = 200, Sc = ({
2476
+ }, Ra = 200, bc = ({
2477
2477
  id: e,
2478
2478
  sessionId: t,
2479
2479
  develop: n,
@@ -2603,7 +2603,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2603
2603
  ),
2604
2604
  V && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: V })
2605
2605
  ] });
2606
- }, wc = ({
2606
+ }, Sc = ({
2607
2607
  id: e,
2608
2608
  sessionId: t,
2609
2609
  develop: n,
@@ -2677,7 +2677,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2677
2677
  ),
2678
2678
  D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
2679
2679
  ] });
2680
- }, Dc = ({
2680
+ }, wc = ({
2681
2681
  id: e,
2682
2682
  sessionId: t,
2683
2683
  develop: n,
@@ -2712,9 +2712,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2712
2712
  develop: n
2713
2713
  }), S = B((w) => {
2714
2714
  if (!w) return null;
2715
- if (Pt.isDayjs(w)) return w;
2715
+ if (Ut.isDayjs(w)) return w;
2716
2716
  if (typeof w == "string") {
2717
- const E = Pt(w, o);
2717
+ const E = Ut(w, o);
2718
2718
  return E.isValid() ? E : null;
2719
2719
  }
2720
2720
  return null;
@@ -2741,7 +2741,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2741
2741
  );
2742
2742
  bt(() => {
2743
2743
  if (p && A === null && y && r) {
2744
- const w = Pt(p).format(o);
2744
+ const w = Ut(p).format(o);
2745
2745
  s(y, r, w);
2746
2746
  }
2747
2747
  }, [p, A, y, r, s, o]);
@@ -2768,7 +2768,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2768
2768
  ),
2769
2769
  T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
2770
2770
  ] });
2771
- }, xc = ({
2771
+ }, Dc = ({
2772
2772
  id: e,
2773
2773
  sessionId: t,
2774
2774
  develop: n,
@@ -2798,9 +2798,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2798
2798
  develop: n
2799
2799
  }), S = B((w) => {
2800
2800
  if (!w) return null;
2801
- if (Pt.isDayjs(w)) return w;
2801
+ if (Ut.isDayjs(w)) return w;
2802
2802
  if (typeof w == "string") {
2803
- const E = Pt(w, o);
2803
+ const E = Ut(w, o);
2804
2804
  return E.isValid() ? E : null;
2805
2805
  }
2806
2806
  return null;
@@ -2833,7 +2833,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2833
2833
  ),
2834
2834
  T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: T })
2835
2835
  ] });
2836
- }, { RangePicker: ja } = Rn, Ac = ({
2836
+ }, { RangePicker: ja } = Rn, xc = ({
2837
2837
  id: e,
2838
2838
  sessionId: t,
2839
2839
  develop: n,
@@ -2868,7 +2868,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2868
2868
  develop: n
2869
2869
  }), S = B((w) => {
2870
2870
  if (!w || !Array.isArray(w) || w.length !== 2) return null;
2871
- const [E, _] = w, M = Pt.isDayjs(E) ? E : Pt(E, o), j = Pt.isDayjs(_) ? _ : Pt(_, o);
2871
+ const [E, _] = w, M = Ut.isDayjs(E) ? E : Ut(E, o), j = Ut.isDayjs(_) ? _ : Ut(_, o);
2872
2872
  return M.isValid() && j.isValid() ? [M, j] : null;
2873
2873
  }, [o]), A = g(() => {
2874
2874
  const w = x ?? (u == null ? void 0 : u.value) ?? h ?? p;
@@ -2910,7 +2910,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
2910
2910
  ),
2911
2911
  T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
2912
2912
  ] });
2913
- }, Cc = ({
2913
+ }, Ac = ({
2914
2914
  id: e,
2915
2915
  sessionId: t,
2916
2916
  develop: n,
@@ -3005,7 +3005,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3005
3005
  buttonStyle: (N == null ? void 0 : N.buttonStyle) ?? l,
3006
3006
  optionType: (N == null ? void 0 : N.optionType) ?? m,
3007
3007
  children: m === "button" ? j.map((L) => /* @__PURE__ */ b(Ve.Button, { value: L.value, disabled: L.disabled, children: L.label }, L.value)) : /* @__PURE__ */ b(
3008
- Yt,
3008
+ Pt,
3009
3009
  {
3010
3010
  orientation: (N == null ? void 0 : N.direction) ?? u ?? "horizontal",
3011
3011
  wrap: !0,
@@ -3016,7 +3016,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3016
3016
  ),
3017
3017
  w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
3018
3018
  ] });
3019
- }, Tc = ({
3019
+ }, Cc = ({
3020
3020
  id: e,
3021
3021
  sessionId: t,
3022
3022
  develop: n,
@@ -3102,7 +3102,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3102
3102
  }, [v, E, c, $, P]);
3103
3103
  return c && Y.length > 0 ? /* @__PURE__ */ ot("div", { onBlur: R, children: [
3104
3104
  /* @__PURE__ */ b(ce.Group, { ...q, value: $, onChange: W, disabled: n ? !1 : q.disabled, children: /* @__PURE__ */ b(
3105
- Yt,
3105
+ Pt,
3106
3106
  {
3107
3107
  direction: q.direction ?? D,
3108
3108
  wrap: !0,
@@ -3123,7 +3123,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3123
3123
  ),
3124
3124
  _ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _ })
3125
3125
  ] });
3126
- }, Nc = ({
3126
+ }, Tc = ({
3127
3127
  id: e,
3128
3128
  sessionId: t,
3129
3129
  develop: n,
@@ -3189,7 +3189,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3189
3189
  ),
3190
3190
  D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
3191
3191
  ] });
3192
- }, kc = ({
3192
+ }, Nc = ({
3193
3193
  id: e,
3194
3194
  sessionId: t,
3195
3195
  develop: n,
@@ -3241,7 +3241,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3241
3241
  return null;
3242
3242
  };
3243
3243
  return n(t, e) || [];
3244
- }, Cn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Tn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), Oc = ({
3244
+ }, Cn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Tn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), kc = ({
3245
3245
  id: e,
3246
3246
  sessionId: t,
3247
3247
  develop: n,
@@ -3352,7 +3352,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3352
3352
  ),
3353
3353
  w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
3354
3354
  ] });
3355
- }, _c = ({
3355
+ }, Oc = ({
3356
3356
  id: e,
3357
3357
  sessionId: t,
3358
3358
  develop: n,
@@ -3446,7 +3446,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3446
3446
  C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
3447
3447
  ] });
3448
3448
  return P ? /* @__PURE__ */ b(Mt, { theme: P, children: $ }) : $;
3449
- }, Ec = ({
3449
+ }, _c = ({
3450
3450
  id: e,
3451
3451
  sessionId: t,
3452
3452
  develop: n,
@@ -3486,7 +3486,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3486
3486
  var et;
3487
3487
  return ((et = H == null ? void 0 : H.response) == null ? void 0 : et.src) ?? (H == null ? void 0 : H.src) ?? (H == null ? void 0 : H.url) ?? (H == null ? void 0 : H.thumbUrl) ?? "";
3488
3488
  }).filter((H) => H && typeof H == "string"), []), M = B((G) => {
3489
- const H = Ut().viewRes, et = (Q) => (H ? H(Q) : Q) || Q;
3489
+ const H = Yt().viewRes, et = (Q) => (H ? H(Q) : Q) || Q;
3490
3490
  return G.map((Q, lt) => {
3491
3491
  const ft = et(Q);
3492
3492
  return {
@@ -3499,7 +3499,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3499
3499
  };
3500
3500
  });
3501
3501
  }, []), j = B((G) => {
3502
- const H = Ut().viewRes, et = (Q) => (Q && H ? H(Q) : Q) || Q;
3502
+ const H = Yt().viewRes, et = (Q) => (Q && H ? H(Q) : Q) || Q;
3503
3503
  return G.map((Q) => {
3504
3504
  var F;
3505
3505
  const lt = ((F = Q == null ? void 0 : Q.response) == null ? void 0 : F.src) ?? (Q == null ? void 0 : Q.src) ?? (Q == null ? void 0 : Q.url) ?? (Q == null ? void 0 : Q.thumbUrl) ?? "", ft = typeof lt == "string" ? et(lt) : lt, xt = {};
@@ -3521,7 +3521,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3521
3521
  [y, k]
3522
3522
  ), W = B((G) => G.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = B(async (G) => {
3523
3523
  const { file: H, onSuccess: et, onError: Q, onProgress: lt } = G;
3524
- if (Ut().upload)
3524
+ if (Yt().upload)
3525
3525
  try {
3526
3526
  lt == null || lt({ percent: 30 });
3527
3527
  const xt = await Xn(H, {
@@ -3571,7 +3571,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3571
3571
  var ft;
3572
3572
  const H = G.url || G.thumbUrl;
3573
3573
  if (!H) return "";
3574
- const et = ((ft = G.response) == null ? void 0 : ft.src) ?? (typeof H == "string" ? H : ""), Q = Ut().viewRes, lt = et && Q ? Q(et) : H;
3574
+ const et = ((ft = G.response) == null ? void 0 : ft.src) ?? (typeof H == "string" ? H : ""), Q = Yt().viewRes, lt = et && Q ? Q(et) : H;
3575
3575
  return String(lt).replace(/([?&])download=1(&|$)/, (xt, F, ht) => ht ? F : "");
3576
3576
  }, []), U = B((G) => {
3577
3577
  var Q, lt;
@@ -3590,7 +3590,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3590
3590
  const et = q.filter((ft) => U(ft)), Q = et.map((ft) => V(ft)).filter(Boolean), lt = et.findIndex((ft) => (ft.uid || ft.url) === (G.uid || G.url));
3591
3591
  it({ url: H, name: G.name, urls: Q, current: lt >= 0 ? lt : 0, open: !0 });
3592
3592
  } else U(G) || window.open(H, "_blank");
3593
- }, [V, U, q]), Ct = !!Ut().upload && !s, mt = L, I = mt.buttonText ?? o, st = mt.listType ?? y.listType, at = mt.maxCount, _t = (q == null ? void 0 : q.length) ?? 0, Ot = typeof at == "number" && _t >= at, Bt = B(
3593
+ }, [V, U, q]), Ct = !!Yt().upload && !s, mt = L, I = mt.buttonText ?? o, st = mt.listType ?? y.listType, at = mt.maxCount, _t = (q == null ? void 0 : q.length) ?? 0, Ot = typeof at == "number" && _t >= at, Bt = B(
3594
3594
  (G) => Ot ? (Ce.warning(`最多只能上传 ${at} 个文件`), !1) : W(G),
3595
3595
  [Ot, at, W]
3596
3596
  );
@@ -3647,7 +3647,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3647
3647
  }
3648
3648
  ) })
3649
3649
  ] });
3650
- }, $c = ({
3650
+ }, Ec = ({
3651
3651
  id: e,
3652
3652
  sessionId: t,
3653
3653
  develop: n,
@@ -3741,7 +3741,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3741
3741
  style: { width: "100%", ...s.style }
3742
3742
  }
3743
3743
  );
3744
- }, Mc = ({
3744
+ }, $c = ({
3745
3745
  id: e,
3746
3746
  sessionId: t,
3747
3747
  develop: n,
@@ -3776,12 +3776,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3776
3776
  };
3777
3777
  return /* @__PURE__ */ ot(Ee, { ...f, form: s, onFinish: D, children: [
3778
3778
  d,
3779
- (c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ ot(Yt, { children: [
3779
+ (c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ ot(Pt, { children: [
3780
3780
  c && /* @__PURE__ */ b(Xt, { type: "primary", htmlType: "submit", children: m }),
3781
3781
  l && /* @__PURE__ */ b(Xt, { onClick: T, children: v })
3782
3782
  ] }) })
3783
3783
  ] });
3784
- }, Rc = ({
3784
+ }, Mc = ({
3785
3785
  id: e,
3786
3786
  sessionId: t,
3787
3787
  develop: n,
@@ -3796,7 +3796,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3796
3796
  return t;
3797
3797
  }
3798
3798
  return e;
3799
- }, jc = ({
3799
+ }, Rc = ({
3800
3800
  id: e,
3801
3801
  sessionId: t,
3802
3802
  develop: n,
@@ -3908,7 +3908,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
3908
3908
  value: n.value,
3909
3909
  icon: n.icon ? La(n.icon) : void 0,
3910
3910
  disabled: n.disabled
3911
- })), Bc = ({
3911
+ })), jc = ({
3912
3912
  id: e,
3913
3913
  sessionId: t,
3914
3914
  develop: n,
@@ -4081,7 +4081,7 @@ const Wa = ({ dictCode: e, value: t }) => {
4081
4081
  }, Ya = (e, t) => {
4082
4082
  let n = "";
4083
4083
  try {
4084
- const i = Pt(e);
4084
+ const i = Ut(e);
4085
4085
  i.isValid() && (t.dateFormat === "date" ? n = i.format("YYYY-MM-DD") : t.dateFormat === "time" ? n = i.format("HH:mm:ss") : (t.dateFormat, n = i.format("YYYY-MM-DD HH:mm:ss")));
4086
4086
  } catch {
4087
4087
  n = "";
@@ -4273,7 +4273,7 @@ const Ue = 420, On = 440, Xa = ({
4273
4273
  }
4274
4274
  ),
4275
4275
  /* @__PURE__ */ b(ce, { checked: y, onChange: (R) => P(R.target.checked), children: "自动滚动" }),
4276
- /* @__PURE__ */ ot(Yt, { align: "center", children: [
4276
+ /* @__PURE__ */ ot(Pt, { align: "center", children: [
4277
4277
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4278
4278
  /* @__PURE__ */ b(
4279
4279
  Mn,
@@ -4345,7 +4345,7 @@ const Ue = 420, On = 440, Xa = ({
4345
4345
  }
4346
4346
  )
4347
4347
  ] }) }),
4348
- /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ot(Yt, { className: "and-table-column-setting-fix", children: [
4348
+ /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ot(Pt, { className: "and-table-column-setting-fix", children: [
4349
4349
  /* @__PURE__ */ b(
4350
4350
  "span",
4351
4351
  {
@@ -4376,7 +4376,7 @@ const Ue = 420, On = 440, Xa = ({
4376
4376
  ] })
4377
4377
  }
4378
4378
  );
4379
- }, Kc = ({
4379
+ }, Bc = ({
4380
4380
  id: e,
4381
4381
  sessionId: t,
4382
4382
  develop: n,
@@ -4516,7 +4516,7 @@ const Ue = 420, On = 440, Xa = ({
4516
4516
  }), l !== !1 && it.length > 0 && J.push({
4517
4517
  title: "操作",
4518
4518
  key: "action",
4519
- render: (vt, wt) => /* @__PURE__ */ b(Yt, { children: it.map((Kt, Ht) => /* @__PURE__ */ b(xr, { title: Kt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Q(Kt, wt), style: { marginRight: 5 }, children: Kt.title }) }, Ht)) })
4519
+ render: (vt, wt) => /* @__PURE__ */ b(Pt, { children: it.map((Kt, Ht) => /* @__PURE__ */ b(xr, { title: Kt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Q(Kt, wt), style: { marginRight: 5 }, children: Kt.title }) }, Ht)) })
4520
4520
  }), J;
4521
4521
  }, [
4522
4522
  rt,
@@ -4649,7 +4649,7 @@ const Ue = 420, On = 440, Xa = ({
4649
4649
  ]
4650
4650
  }
4651
4651
  );
4652
- }, { Text: Za } = sn, Lc = ({
4652
+ }, { Text: Za } = sn, Kc = ({
4653
4653
  id: e,
4654
4654
  sessionId: t,
4655
4655
  develop: n,
@@ -4736,7 +4736,7 @@ const Ue = 420, On = 440, Xa = ({
4736
4736
  return Y && (W.color = Y), W;
4737
4737
  }, [c, Y, x == null ? void 0 : x.fontSize]), L = /* @__PURE__ */ b(Za, { ...j, style: { ...q, ...d, ...j.style }, children: M != null && M !== "" ? String(M) : r });
4738
4738
  return $ ? /* @__PURE__ */ b(Mt, { theme: { token: $ }, children: L }) : L;
4739
- }, { Title: Ia } = sn, zc = ({
4739
+ }, { Title: Ia } = sn, Lc = ({
4740
4740
  id: e,
4741
4741
  sessionId: t,
4742
4742
  develop: n,
@@ -4765,7 +4765,7 @@ const Ue = 420, On = 440, Xa = ({
4765
4765
  }), S;
4766
4766
  }, [v, f]);
4767
4767
  return /* @__PURE__ */ b(Ia, { level: c, ...T, style: { ...D, ...m, ...T.style }, children: y || r });
4768
- }, { Paragraph: to } = sn, Vc = ({
4768
+ }, { Paragraph: to } = sn, zc = ({
4769
4769
  id: e,
4770
4770
  sessionId: t,
4771
4771
  develop: n,
@@ -4802,7 +4802,7 @@ const Ue = 420, On = 440, Xa = ({
4802
4802
  return [];
4803
4803
  }
4804
4804
  return e;
4805
- }, qc = ({
4805
+ }, Vc = ({
4806
4806
  id: e,
4807
4807
  sessionId: t,
4808
4808
  develop: n,
@@ -4857,7 +4857,7 @@ const Ue = 420, On = 440, Xa = ({
4857
4857
  children: p
4858
4858
  }
4859
4859
  );
4860
- }, Wc = ({
4860
+ }, qc = ({
4861
4861
  id: e,
4862
4862
  sessionId: t,
4863
4863
  develop: n,
@@ -5051,7 +5051,7 @@ const Ue = 420, On = 440, Xa = ({
5051
5051
  }
5052
5052
  );
5053
5053
  return lt ? /* @__PURE__ */ b(Mt, { theme: lt, children: xt }) : xt;
5054
- }, Hc = ({
5054
+ }, Wc = ({
5055
5055
  id: e,
5056
5056
  sessionId: t,
5057
5057
  develop: n,
@@ -5106,7 +5106,7 @@ const Ue = 420, On = 440, Xa = ({
5106
5106
  return t;
5107
5107
  }
5108
5108
  return e;
5109
- }, Uc = ({
5109
+ }, Hc = ({
5110
5110
  id: e,
5111
5111
  sessionId: t,
5112
5112
  develop: n,
@@ -5148,12 +5148,12 @@ const Ue = 420, On = 440, Xa = ({
5148
5148
  }
5149
5149
  );
5150
5150
  return _ ? /* @__PURE__ */ b(Mt, { theme: { components: { Steps: w } }, children: M }) : M;
5151
- }, Pc = ({
5151
+ }, Uc = ({
5152
5152
  id: e,
5153
5153
  sessionId: t,
5154
5154
  develop: n,
5155
5155
  ...i
5156
- }) => /* @__PURE__ */ b(Ge, { ...i }), Yc = ({
5156
+ }) => /* @__PURE__ */ b(Ge, { ...i }), Pc = ({
5157
5157
  id: e,
5158
5158
  sessionId: t,
5159
5159
  develop: n,
@@ -5178,7 +5178,7 @@ const Ue = 420, On = 440, Xa = ({
5178
5178
  return [];
5179
5179
  }
5180
5180
  return e;
5181
- }, Gc = ({
5181
+ }, Yc = ({
5182
5182
  id: e,
5183
5183
  sessionId: t,
5184
5184
  develop: n,
@@ -5229,10 +5229,10 @@ const Ue = 420, On = 440, Xa = ({
5229
5229
  };
5230
5230
  function io(e) {
5231
5231
  if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
5232
- const t = Ut().viewRes;
5232
+ const t = Yt().viewRes;
5233
5233
  return t ? t(e) : e;
5234
5234
  }
5235
- const ao = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+", Jc = ({
5235
+ const ao = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+", Gc = ({
5236
5236
  id: e,
5237
5237
  sessionId: t,
5238
5238
  develop: n,
@@ -5273,10 +5273,10 @@ const ao = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
5273
5273
  }, { PreviewGroup: oo } = Qt;
5274
5274
  function co(e) {
5275
5275
  if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
5276
- const t = Ut().viewRes;
5276
+ const t = Yt().viewRes;
5277
5277
  return t ? t(e) : e;
5278
5278
  }
5279
- const Qc = ({
5279
+ const Jc = ({
5280
5280
  id: e,
5281
5281
  sessionId: t,
5282
5282
  develop: n,
@@ -5310,7 +5310,7 @@ const Qc = ({
5310
5310
  }), y;
5311
5311
  }, [c, h]);
5312
5312
  return /* @__PURE__ */ b(oo, { ...s, items: f, children: i });
5313
- }, Fc = ({
5313
+ }, Qc = ({
5314
5314
  id: e,
5315
5315
  sessionId: t,
5316
5316
  develop: n,
@@ -5386,7 +5386,7 @@ const Qc = ({
5386
5386
  false: "default",
5387
5387
  yes: "success",
5388
5388
  no: "default"
5389
- }, Xc = ({
5389
+ }, Fc = ({
5390
5390
  id: e,
5391
5391
  sessionId: t,
5392
5392
  develop: n,
@@ -5435,7 +5435,7 @@ const Qc = ({
5435
5435
  }), _;
5436
5436
  }, [d, D]), C = (D == null ? void 0 : D.color) ?? v, E = Ke(C) || N;
5437
5437
  return /* @__PURE__ */ b(Kn, { ...k, color: E, children: A || i });
5438
- }, Zc = ({
5438
+ }, Xc = ({
5439
5439
  id: e,
5440
5440
  sessionId: t,
5441
5441
  develop: n,
@@ -5485,7 +5485,7 @@ const Qc = ({
5485
5485
  }, [p.showTotal])
5486
5486
  }
5487
5487
  );
5488
- }, Ic = ({
5488
+ }, Zc = ({
5489
5489
  id: e,
5490
5490
  sessionId: t,
5491
5491
  develop: n,
@@ -5604,7 +5604,7 @@ const Qc = ({
5604
5604
  },
5605
5605
  children: t
5606
5606
  }
5607
- ), ts = ({
5607
+ ), Ic = ({
5608
5608
  id: e,
5609
5609
  sessionId: t,
5610
5610
  develop: n,
@@ -5852,12 +5852,12 @@ const Qc = ({
5852
5852
  ] }) : Z;
5853
5853
  return St ? /* @__PURE__ */ b(Mt, { theme: St, children: pt }) : pt;
5854
5854
  })();
5855
- }, es = ({
5855
+ }, ts = ({
5856
5856
  id: e,
5857
5857
  sessionId: t,
5858
5858
  develop: n,
5859
5859
  ...i
5860
- }) => /* @__PURE__ */ b(Mr, { ...i }), ns = ({
5860
+ }) => /* @__PURE__ */ b(Mr, { ...i }), es = ({
5861
5861
  id: e,
5862
5862
  sessionId: t,
5863
5863
  develop: n,
@@ -5915,7 +5915,7 @@ const Qc = ({
5915
5915
  )
5916
5916
  }
5917
5917
  );
5918
- }, rs = ({
5918
+ }, ns = ({
5919
5919
  id: e,
5920
5920
  sessionId: t,
5921
5921
  develop: n,
@@ -5999,7 +5999,7 @@ const Qc = ({
5999
5999
  }
6000
6000
  return Array.isArray(e), e;
6001
6001
  }
6002
- }, is = ({
6002
+ }, rs = ({
6003
6003
  id: e,
6004
6004
  sessionId: t,
6005
6005
  develop: n,
@@ -6095,7 +6095,7 @@ const Qc = ({
6095
6095
  onLayoutChange: E
6096
6096
  }
6097
6097
  );
6098
- }, as = ({
6098
+ }, is = ({
6099
6099
  id: e,
6100
6100
  sessionId: t,
6101
6101
  develop: n,
@@ -6131,7 +6131,7 @@ const Qc = ({
6131
6131
  onClose: T
6132
6132
  }
6133
6133
  );
6134
- }, os = ({
6134
+ }, as = ({
6135
6135
  id: e,
6136
6136
  sessionId: t,
6137
6137
  develop: n,
@@ -6174,7 +6174,7 @@ const Qc = ({
6174
6174
  children: v
6175
6175
  }
6176
6176
  );
6177
- }, cs = ({
6177
+ }, os = ({
6178
6178
  id: e,
6179
6179
  sessionId: t,
6180
6180
  develop: n,
@@ -6208,7 +6208,7 @@ const Qc = ({
6208
6208
  children: l
6209
6209
  }
6210
6210
  );
6211
- }, ss = ({
6211
+ }, cs = ({
6212
6212
  id: e,
6213
6213
  sessionId: t,
6214
6214
  develop: n,
@@ -6231,7 +6231,7 @@ const Qc = ({
6231
6231
  key: n.key,
6232
6232
  tab: n.tab,
6233
6233
  disabled: n.disabled
6234
- })), ls = ({
6234
+ })), ss = ({
6235
6235
  id: e,
6236
6236
  sessionId: t,
6237
6237
  develop: n,
@@ -6322,7 +6322,7 @@ const Qc = ({
6322
6322
  }
6323
6323
  );
6324
6324
  return K && Object.keys(K).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Card: K } }, children: V }) : V;
6325
- }, us = ({
6325
+ }, ls = ({
6326
6326
  id: e,
6327
6327
  sessionId: t,
6328
6328
  develop: n,
@@ -6359,7 +6359,7 @@ const Qc = ({
6359
6359
  disabled: t.disabled,
6360
6360
  danger: t.danger,
6361
6361
  children: t.children ? nr(t.children) : void 0
6362
- }), fs = ({
6362
+ }), us = ({
6363
6363
  id: e,
6364
6364
  sessionId: t,
6365
6365
  develop: n,
@@ -6481,7 +6481,7 @@ const Qc = ({
6481
6481
  children: [
6482
6482
  p,
6483
6483
  n && !p && !d && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6484
- !p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ ot(Yt, { children: [
6484
+ !p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ ot(Pt, { children: [
6485
6485
  a,
6486
6486
  /* @__PURE__ */ b(Yn, {})
6487
6487
  ] }) })
@@ -6489,25 +6489,25 @@ const Qc = ({
6489
6489
  }
6490
6490
  ), [p, n, a, d]);
6491
6491
  return /* @__PURE__ */ b(Kr, { ...s, menu: k, onOpenChange: N, children: C });
6492
- }, ds = ({
6492
+ }, fs = ({
6493
6493
  id: e,
6494
6494
  sessionId: t,
6495
6495
  develop: n,
6496
6496
  children: i,
6497
6497
  ...r
6498
- }) => /* @__PURE__ */ b(Lr, { ...r, children: i }), ms = ({
6498
+ }) => /* @__PURE__ */ b(Lr, { ...r, children: i }), ds = ({
6499
6499
  id: e,
6500
6500
  sessionId: t,
6501
6501
  develop: n,
6502
6502
  children: i,
6503
6503
  ...r
6504
- }) => /* @__PURE__ */ b(zr, { ...r, children: i }), hs = ({
6504
+ }) => /* @__PURE__ */ b(zr, { ...r, children: i }), ms = ({
6505
6505
  id: e,
6506
6506
  sessionId: t,
6507
6507
  develop: n,
6508
6508
  children: i,
6509
6509
  ...r
6510
- }) => /* @__PURE__ */ b(Bn, { ...r, children: i }), ys = ({
6510
+ }) => /* @__PURE__ */ b(Bn, { ...r, children: i }), hs = ({
6511
6511
  id: e,
6512
6512
  sessionId: t,
6513
6513
  develop: n,
@@ -6544,7 +6544,7 @@ const Qc = ({
6544
6544
  return t;
6545
6545
  }
6546
6546
  return e;
6547
- }, gs = ({
6547
+ }, ys = ({
6548
6548
  id: e,
6549
6549
  sessionId: t,
6550
6550
  develop: n,
@@ -6656,7 +6656,7 @@ const Qc = ({
6656
6656
  r
6657
6657
  ) });
6658
6658
  return D && Object.keys(D).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Splitter: D } }, children: E }) : E;
6659
- }, ps = ({
6659
+ }, gs = ({
6660
6660
  children: e,
6661
6661
  className: t,
6662
6662
  style: n,
@@ -6677,7 +6677,7 @@ const Qc = ({
6677
6677
  ...v,
6678
6678
  children: e
6679
6679
  }
6680
- ), vs = ({
6680
+ ), ps = ({
6681
6681
  id: e,
6682
6682
  sessionId: t,
6683
6683
  develop: n,
@@ -6738,7 +6738,7 @@ const Qc = ({
6738
6738
  }
6739
6739
  ) })
6740
6740
  ] });
6741
- }, vo = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", bo = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", bs = ({
6741
+ }, vo = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", bo = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", vs = ({
6742
6742
  id: e,
6743
6743
  sessionId: t,
6744
6744
  develop: n,
@@ -6803,7 +6803,7 @@ const Qc = ({
6803
6803
  onClick: p
6804
6804
  }
6805
6805
  ) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
6806
- }, Ss = ({
6806
+ }, bs = ({
6807
6807
  id: e,
6808
6808
  sessionId: t,
6809
6809
  develop: n,
@@ -6836,7 +6836,7 @@ const Qc = ({
6836
6836
  Je.Meta,
6837
6837
  {
6838
6838
  title: s.name,
6839
- description: /* @__PURE__ */ ot(Yt, { direction: "vertical", size: 4, children: [
6839
+ description: /* @__PURE__ */ ot(Pt, { direction: "vertical", size: 4, children: [
6840
6840
  s.price !== void 0 && /* @__PURE__ */ ot("div", { children: [
6841
6841
  /* @__PURE__ */ ot("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
6842
6842
  "¥",
@@ -6847,7 +6847,7 @@ const Qc = ({
6847
6847
  s.originalPrice
6848
6848
  ] })
6849
6849
  ] }),
6850
- s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((y, u) => /* @__PURE__ */ b(Kn, { color: "blue", children: y }, u)) })
6850
+ s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Pt, { size: 4, wrap: !0, children: s.tags.map((y, u) => /* @__PURE__ */ b(Kn, { color: "blue", children: y }, u)) })
6851
6851
  ] })
6852
6852
  }
6853
6853
  )
@@ -6881,7 +6881,7 @@ const Qc = ({
6881
6881
  i && /* @__PURE__ */ b("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
6882
6882
  ]
6883
6883
  }
6884
- ), ws = ({
6884
+ ), Ss = ({
6885
6885
  componentName: e,
6886
6886
  componentProps: t = {},
6887
6887
  storePropsKey: n,
@@ -6967,7 +6967,7 @@ const Qc = ({
6967
6967
  }
6968
6968
  );
6969
6969
  }
6970
- const T = Ut(), S = l || T.componentResolver;
6970
+ const T = Yt(), S = l || T.componentResolver;
6971
6971
  if (!S)
6972
6972
  return /* @__PURE__ */ b(
6973
6973
  En,
@@ -6994,7 +6994,7 @@ const Qc = ({
6994
6994
  style: o
6995
6995
  }
6996
6996
  );
6997
- }, Ds = ({
6997
+ }, ws = ({
6998
6998
  content: e = "Watermark",
6999
6999
  width: t,
7000
7000
  height: n,
@@ -7060,18 +7060,13 @@ const Qc = ({
7060
7060
  ) : s;
7061
7061
  };
7062
7062
  let cn = !1;
7063
- function xs(e) {
7063
+ function Ds(e) {
7064
7064
  typeof window > "u" || (he.GlobalWorkerOptions.workerSrc = e, cn = !0);
7065
7065
  }
7066
7066
  function So(e) {
7067
7067
  typeof window > "u" || cn && he.GlobalWorkerOptions.workerSrc || (he.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${he.version}/build/pdf.worker.min.mjs`, cn = !0);
7068
7068
  }
7069
- function wo(e) {
7070
- if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
7071
- const t = Ut().viewRes;
7072
- return t ? t(e) : e;
7073
- }
7074
- const As = ({
7069
+ const xs = ({
7075
7070
  id: e,
7076
7071
  sessionId: t,
7077
7072
  develop: n,
@@ -7107,7 +7102,7 @@ const As = ({
7107
7102
  const V = s.filePath;
7108
7103
  V != null && V !== "" && (K = String(V));
7109
7104
  }
7110
- return K === void 0 && (K = a), wo(K);
7105
+ return K === void 0 && (K = a), K;
7111
7106
  }, [f, s, a]), [u, x] = dt(0), [D, T] = dt(
7112
7107
  () => Math.max(1, o || 1)
7113
7108
  ), [S, A] = dt(null), [N, k] = dt(!!y), C = $t(null), w = $t(null), [E, _] = dt(600), M = $t(0), j = (c || "").trim(), P = O((K) => {
@@ -7253,7 +7248,7 @@ const As = ({
7253
7248
  }
7254
7249
  );
7255
7250
  };
7256
- function Cs(e, t, n, i) {
7251
+ function As(e, t, n, i) {
7257
7252
  const { getProps: r, setProps: a } = O.getState(), o = r(e, t), c = o && typeof o == "object" && !Array.isArray(o) ? o : {};
7258
7253
  a(e, t, {
7259
7254
  ...c,
@@ -7274,7 +7269,7 @@ function Dt(e) {
7274
7269
  return e;
7275
7270
  }
7276
7271
  }
7277
- function Do(e, t) {
7272
+ function wo(e, t) {
7278
7273
  return e == null || e === "" ? t : e === !0 || e === "true" ? !0 : e === !1 || e === "false" ? !1 : t;
7279
7274
  }
7280
7275
  function Zt(e, t) {
@@ -7352,7 +7347,7 @@ function Zt(e, t) {
7352
7347
  data: z,
7353
7348
  // 优先使用 common 中的配置,没配置则使用默认值
7354
7349
  height: V.height ?? i,
7355
- autoFit: Do(V.autoFit, !0),
7350
+ autoFit: wo(V.autoFit, !0),
7356
7351
  // 合并其他通用配置 (margin, padding, insert, etc.)
7357
7352
  ...V,
7358
7353
  // 设计器模式禁用动画
@@ -7386,18 +7381,18 @@ function Zt(e, t) {
7386
7381
  };
7387
7382
  return a.displayName = `withBaseChart(${n})`, a;
7388
7383
  }
7389
- const xo = [
7384
+ const Do = [
7390
7385
  { year: "2020", value: 3 },
7391
7386
  { year: "2021", value: 4 },
7392
7387
  { year: "2022", value: 3.5 },
7393
7388
  { year: "2023", value: 5 },
7394
7389
  { year: "2024", value: 4.9 },
7395
7390
  { year: "2025", value: 6 }
7396
- ], Ao = Zt(ci, {
7391
+ ], xo = Zt(ci, {
7397
7392
  chartType: "AndVLine",
7398
7393
  defaultHeight: 300,
7399
- defaultData: xo
7400
- }), Ts = (e) => {
7394
+ defaultData: Do
7395
+ }), Cs = (e) => {
7401
7396
  const {
7402
7397
  xField: t = "year",
7403
7398
  yField: n = "value",
@@ -7408,7 +7403,7 @@ const xo = [
7408
7403
  ...c
7409
7404
  } = e;
7410
7405
  return /* @__PURE__ */ b(
7411
- Ao,
7406
+ xo,
7412
7407
  {
7413
7408
  ...c,
7414
7409
  xField: t,
@@ -7419,18 +7414,18 @@ const xo = [
7419
7414
  lineStyle: o
7420
7415
  }
7421
7416
  );
7422
- }, Co = [
7417
+ }, Ao = [
7423
7418
  { category: "一月", value: 38 },
7424
7419
  { category: "二月", value: 52 },
7425
7420
  { category: "三月", value: 61 },
7426
7421
  { category: "四月", value: 45 },
7427
7422
  { category: "五月", value: 48 },
7428
7423
  { category: "六月", value: 58 }
7429
- ], To = Zt(si, {
7424
+ ], Co = Zt(si, {
7430
7425
  chartType: "AndVColumn",
7431
7426
  defaultHeight: 300,
7432
- defaultData: Co
7433
- }), Ns = (e) => {
7427
+ defaultData: Ao
7428
+ }), Ts = (e) => {
7434
7429
  const {
7435
7430
  xField: t = "category",
7436
7431
  yField: n = "value",
@@ -7444,19 +7439,19 @@ const xo = [
7444
7439
  xField: t,
7445
7440
  yField: n
7446
7441
  };
7447
- return i && (l.seriesField = i), r && (l.isGroup = r), a && (l.isStack = a), o && (l.columnWidth = o), /* @__PURE__ */ b(To, { ...l });
7448
- }, No = [
7442
+ return i && (l.seriesField = i), r && (l.isGroup = r), a && (l.isStack = a), o && (l.columnWidth = o), /* @__PURE__ */ b(Co, { ...l });
7443
+ }, To = [
7449
7444
  { type: "分类一", value: 27 },
7450
7445
  { type: "分类二", value: 25 },
7451
7446
  { type: "分类三", value: 18 },
7452
7447
  { type: "分类四", value: 15 },
7453
7448
  { type: "分类五", value: 10 },
7454
7449
  { type: "其他", value: 5 }
7455
- ], ko = Zt(li, {
7450
+ ], No = Zt(li, {
7456
7451
  chartType: "AndVPie",
7457
7452
  defaultHeight: 300,
7458
- defaultData: No
7459
- }), ks = (e) => {
7453
+ defaultData: To
7454
+ }), Ns = (e) => {
7460
7455
  const {
7461
7456
  angleField: t = "value",
7462
7457
  colorField: n = "type",
@@ -7469,8 +7464,8 @@ const xo = [
7469
7464
  colorField: n,
7470
7465
  radius: i
7471
7466
  };
7472
- return r !== void 0 && r > 0 && (o.innerRadius = r), /* @__PURE__ */ b(ko, { ...o });
7473
- }, Oo = Zt(ui, {
7467
+ return r !== void 0 && r > 0 && (o.innerRadius = r), /* @__PURE__ */ b(No, { ...o });
7468
+ }, ko = Zt(ui, {
7474
7469
  chartType: "AndVArea",
7475
7470
  defaultHeight: 300,
7476
7471
  defaultData: [
@@ -7484,7 +7479,7 @@ const xo = [
7484
7479
  { year: "1998", value: 9 },
7485
7480
  { year: "1999", value: 13 }
7486
7481
  ]
7487
- }), Os = (e) => {
7482
+ }), ks = (e) => {
7488
7483
  const {
7489
7484
  // 字段
7490
7485
  xField: t,
@@ -7509,8 +7504,8 @@ const xo = [
7509
7504
  const s = Dt(c);
7510
7505
  s !== void 0 && (f.line = s);
7511
7506
  const y = Dt(l);
7512
- return y !== void 0 && (f.point = y), /* @__PURE__ */ b(Oo, { ...f });
7513
- }, _o = Zt(fi, {
7507
+ return y !== void 0 && (f.point = y), /* @__PURE__ */ b(ko, { ...f });
7508
+ }, Oo = Zt(fi, {
7514
7509
  chartType: "AndVDualAxes",
7515
7510
  defaultHeight: 300,
7516
7511
  defaultData: [
@@ -7524,7 +7519,7 @@ const xo = [
7524
7519
  { year: "1998", value: 9, count: 1 },
7525
7520
  { year: "1999", value: 13, count: 20 }
7526
7521
  ]
7527
- }), _s = (e) => {
7522
+ }), Os = (e) => {
7528
7523
  const {
7529
7524
  // 字段
7530
7525
  xField: t,
@@ -7541,33 +7536,33 @@ const xo = [
7541
7536
  const l = Dt(n);
7542
7537
  l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
7543
7538
  const m = Dt(a);
7544
- return m !== void 0 && (c.children = m), /* @__PURE__ */ b(_o, { ...c });
7545
- }, Eo = Zt(di, {
7539
+ return m !== void 0 && (c.children = m), /* @__PURE__ */ b(Oo, { ...c });
7540
+ }, _o = Zt(di, {
7546
7541
  chartType: "AndVGauge",
7547
7542
  defaultHeight: 300,
7548
7543
  defaultData: { percent: 0.7 }
7549
7544
  // Gauge 默认数据
7550
- }), Es = (e) => {
7545
+ }), _s = (e) => {
7551
7546
  const {
7552
7547
  ...t
7553
7548
  } = e, n = {
7554
7549
  ...t
7555
7550
  };
7556
- return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ b(Eo, { ...n });
7557
- }, $o = Zt(mi, {
7551
+ return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ b(_o, { ...n });
7552
+ }, Eo = Zt(mi, {
7558
7553
  chartType: "AndVLiquid",
7559
7554
  defaultHeight: 300,
7560
7555
  defaultData: 0.25
7561
7556
  // Liquid 默认 percent (注意:Liquid 数据直接作为 percent 传递)
7562
- }), $s = (e) => {
7557
+ }), Es = (e) => {
7563
7558
  const {
7564
7559
  percent: t,
7565
7560
  ...n
7566
7561
  } = e, i = {
7567
7562
  ...n
7568
7563
  };
7569
- return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ b($o, { ...i });
7570
- }, Mo = Zt(hi, {
7564
+ return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ b(Eo, { ...i });
7565
+ }, $o = Zt(hi, {
7571
7566
  chartType: "AndVBar",
7572
7567
  defaultHeight: 300,
7573
7568
  defaultData: [
@@ -7577,7 +7572,7 @@ const xo = [
7577
7572
  { year: "1957 年", value: 145 },
7578
7573
  { year: "1958 年", value: 48 }
7579
7574
  ]
7580
- }), Ms = (e) => {
7575
+ }), $s = (e) => {
7581
7576
  const {
7582
7577
  // 特有字段
7583
7578
  xField: t,
@@ -7599,96 +7594,96 @@ const xo = [
7599
7594
  const p = Dt(l);
7600
7595
  p !== void 0 && (h.conversionTag = p);
7601
7596
  const d = Dt(m);
7602
- return d !== void 0 && (h.markBackground = d), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ b(Mo, { ...h });
7597
+ return d !== void 0 && (h.markBackground = d), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ b($o, { ...h });
7603
7598
  };
7604
7599
  export {
7605
- fc as AVAILABLE_TOKENS,
7606
- as as AndAlert,
7607
- $c as AndAutoComplete,
7608
- Fc as AndAvatar,
7609
- ns as AndBadge,
7610
- rs as AndBadgeRibbon,
7611
- Ic as AndBreadCrumb,
7612
- hc as AndButton,
7613
- es as AndCalendar,
7614
- ls as AndCard,
7615
- Gc as AndCarousel,
7616
- Oc as AndCascade,
7617
- Tc as AndCheckbox,
7618
- ms as AndColumn,
7619
- hs as AndContainer,
7620
- Dc as AndDatePicker,
7621
- us as AndDivider,
7622
- cs as AndDrawer,
7623
- fs as AndDropdown,
7624
- fs as AndDropdownMenu,
7625
- ws as AndDynamicContainer,
7626
- Rc as AndFormItem,
7627
- bs as AndIcon,
7628
- Jc as AndImage,
7629
- Qc as AndImageGroup,
7630
- yc as AndInput,
7631
- pc as AndInputArea,
7632
- gc as AndInputNumber,
7633
- vc as AndInputPassword,
7634
- bc as AndInputSearch,
7635
- vs as AndIterator,
7636
- is as AndMasonry,
7637
- ts as AndMenu,
7638
- os as AndModal,
7639
- Zc as AndPagination,
7640
- Vc as AndParagraph,
7641
- As as AndPdfViewer,
7642
- Ss as AndProductCategory,
7643
- ys as AndQRCode,
7644
- Cc as AndRadio,
7645
- Ac as AndRangePicker,
7646
- Nc as AndRate,
7647
- ss as AndResult,
7648
- ds as AndRow,
7649
- Bc as AndSegmented,
7650
- Sc as AndSelect,
7651
- Mc as AndSimpleForm,
7652
- kc as AndSlider,
7653
- gs as AndSplitter,
7654
- ps as AndSplitterPanel,
7655
- Pc as AndStatistics,
7656
- Yc as AndStatisticsCountdown,
7657
- Uc as AndSteps,
7658
- wc as AndSwitch,
7659
- Kc as AndTable,
7660
- qc as AndTabs,
7661
- Xc as AndTag,
7662
- Lc as AndText,
7663
- xc as AndTimePicker,
7664
- Hc as AndTimeline,
7665
- zc as AndTitle,
7666
- jc as AndTransfer,
7667
- Wc as AndTree,
7668
- _c as AndTreeSelect,
7669
- Ec as AndUpload,
7670
- Os as AndVArea,
7671
- Ms as AndVBar,
7672
- Ns as AndVColumn,
7673
- _s as AndVDualAxes,
7674
- Es as AndVGauge,
7675
- Ts as AndVLine,
7676
- $s as AndVLiquid,
7677
- ks as AndVPie,
7678
- Ds as AndWatermark,
7679
- dc as COMMON_TOKENS,
7600
+ uc as AVAILABLE_TOKENS,
7601
+ is as AndAlert,
7602
+ Ec as AndAutoComplete,
7603
+ Qc as AndAvatar,
7604
+ es as AndBadge,
7605
+ ns as AndBadgeRibbon,
7606
+ Zc as AndBreadCrumb,
7607
+ mc as AndButton,
7608
+ ts as AndCalendar,
7609
+ ss as AndCard,
7610
+ Yc as AndCarousel,
7611
+ kc as AndCascade,
7612
+ Cc as AndCheckbox,
7613
+ ds as AndColumn,
7614
+ ms as AndContainer,
7615
+ wc as AndDatePicker,
7616
+ ls as AndDivider,
7617
+ os as AndDrawer,
7618
+ us as AndDropdown,
7619
+ us as AndDropdownMenu,
7620
+ Ss as AndDynamicContainer,
7621
+ Mc as AndFormItem,
7622
+ vs as AndIcon,
7623
+ Gc as AndImage,
7624
+ Jc as AndImageGroup,
7625
+ hc as AndInput,
7626
+ gc as AndInputArea,
7627
+ yc as AndInputNumber,
7628
+ pc as AndInputPassword,
7629
+ vc as AndInputSearch,
7630
+ ps as AndIterator,
7631
+ rs as AndMasonry,
7632
+ Ic as AndMenu,
7633
+ as as AndModal,
7634
+ Xc as AndPagination,
7635
+ zc as AndParagraph,
7636
+ xs as AndPdfViewer,
7637
+ bs as AndProductCategory,
7638
+ hs as AndQRCode,
7639
+ Ac as AndRadio,
7640
+ xc as AndRangePicker,
7641
+ Tc as AndRate,
7642
+ cs as AndResult,
7643
+ fs as AndRow,
7644
+ jc as AndSegmented,
7645
+ bc as AndSelect,
7646
+ $c as AndSimpleForm,
7647
+ Nc as AndSlider,
7648
+ ys as AndSplitter,
7649
+ gs as AndSplitterPanel,
7650
+ Uc as AndStatistics,
7651
+ Pc as AndStatisticsCountdown,
7652
+ Hc as AndSteps,
7653
+ Sc as AndSwitch,
7654
+ Bc as AndTable,
7655
+ Vc as AndTabs,
7656
+ Fc as AndTag,
7657
+ Kc as AndText,
7658
+ Dc as AndTimePicker,
7659
+ Wc as AndTimeline,
7660
+ Lc as AndTitle,
7661
+ Rc as AndTransfer,
7662
+ qc as AndTree,
7663
+ Oc as AndTreeSelect,
7664
+ _c as AndUpload,
7665
+ ks as AndVArea,
7666
+ $s as AndVBar,
7667
+ Ts as AndVColumn,
7668
+ Os as AndVDualAxes,
7669
+ _s as AndVGauge,
7670
+ Cs as AndVLine,
7671
+ Es as AndVLiquid,
7672
+ Ns as AndVPie,
7673
+ ws as AndWatermark,
7674
+ fc as COMMON_TOKENS,
7680
7675
  re as DataSetInheritContext,
7681
- tc as cleanupAllMounts,
7682
- Zo as clearCssCache,
7676
+ Io as cleanupAllMounts,
7677
+ Xo as clearCssCache,
7683
7678
  X as createCommand,
7684
- cc as createWatchCommands,
7679
+ oc as createWatchCommands,
7685
7680
  ta as dictValueEquals,
7686
- Cs as dispatchPdfViewerCommand,
7681
+ As as dispatchPdfViewerCommand,
7687
7682
  So as ensurePdfjsWorker,
7688
7683
  ie as findDictOptionByValue,
7689
7684
  Aa as formatByType,
7690
7685
  rn as getAccessToken,
7691
- Ut as getCoreConfig,
7686
+ Yt as getCoreConfig,
7692
7687
  tt as getDataSetStoreKey,
7693
7688
  ln as getDictOptions,
7694
7689
  Xe as getNestedValue,
@@ -7696,34 +7691,34 @@ export {
7696
7691
  yi as initReactMount,
7697
7692
  In as isTokenName,
7698
7693
  Jt as mergeStoreProps,
7699
- Io as mountReactComponent,
7694
+ Zo as mountReactComponent,
7700
7695
  te as parseAction,
7701
7696
  be as parseArrayNotation,
7702
7697
  gt as parseChangeAction,
7703
7698
  Si as parseClickAction,
7704
7699
  Ne as parseNestedPath,
7705
- sc as parseQueryAction,
7700
+ cc as parseQueryAction,
7706
7701
  Qn as processValidationRules,
7707
- uc as req,
7702
+ lc as req,
7708
7703
  ne as request,
7709
- mc as resolveTokenColorWithToken,
7710
- lc as setCoreConfig,
7704
+ dc as resolveTokenColorWithToken,
7705
+ sc as setCoreConfig,
7711
7706
  pi as setNestedValue,
7712
- xs as setPdfjsWorkerSrc,
7707
+ Ds as setPdfjsWorkerSrc,
7713
7708
  Xn as upload,
7714
- rc as useAddCommand,
7709
+ nc as useAddCommand,
7715
7710
  O as useAndStore,
7716
7711
  ea as useApiService,
7717
- oc as useCommandsStore,
7712
+ ac as useCommandsStore,
7718
7713
  we as useDictOptions,
7719
7714
  jt as useFieldValidation,
7720
- ac as useItemStore,
7721
- ic as usePopCommand,
7715
+ ic as useItemStore,
7716
+ rc as usePopCommand,
7722
7717
  un as useRemoteOptions,
7723
7718
  Ke as useResolveTokenColor,
7724
7719
  Re as useResolvedDataSet,
7725
- ec as useStore,
7726
- nc as useStoreByName,
7720
+ tc as useStore,
7721
+ ec as useStoreByName,
7727
7722
  vi as useStoreData,
7728
7723
  Fn as validateWithSchema,
7729
7724
  bi as watchCommands,