ant-design-x-vue 0.0.4 → 0.0.5

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.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var Uo = Object.defineProperty;
2
2
  var qo = (e, t, n) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Oe = (e, t, n) => qo(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { computed as b, inject as ae, shallowRef as ee, defineComponent as L, provide as $e, watch as H, unref as A, triggerRef as Be, useSlots as Rr, createVNode as f, mergeProps as ie, ref as B, onWatcherCleanup as _e, getCurrentInstance as Br, watchEffect as et, onBeforeUnmount as Yo, toValue as D, Fragment as Ie, mergeDefaults as he, toRef as V, isVNode as cn, h as jn, nextTick as Zo, reactive as Ko, toRaw as Qo, useTemplateRef as He, Teleport as Jo, openBlock as jr, createElementBlock as kr, createElementVNode as Ee } from "vue";
3
+ var Ae = (e, t, n) => qo(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { computed as b, inject as ae, shallowRef as ee, defineComponent as L, provide as $e, watch as H, unref as O, triggerRef as Be, useSlots as Rr, createVNode as f, mergeProps as ie, ref as B, onWatcherCleanup as _e, getCurrentInstance as Br, watchEffect as et, onBeforeUnmount as Yo, toValue as D, Fragment as Ie, mergeDefaults as he, toRef as V, isVNode as cn, h as jn, nextTick as Zo, reactive as Ko, toRaw as Qo, useTemplateRef as He, Teleport as Jo, openBlock as jr, createElementBlock as kr, createElementVNode as Ee } from "vue";
5
5
  import { ConfigProvider as _o, theme as Dr, Avatar as ei, Tooltip as ti, Typography as ue, Dropdown as ni, Menu as ri, Flex as ut, Cascader as oi, Upload as zr, Progress as ii, Button as $t } from "ant-design-vue";
6
6
  function ai(e) {
7
7
  return {
@@ -60,7 +60,7 @@ const Fr = Symbol("XProviderContext"), zt = ee(), gi = (e) => {
60
60
  $e(Fr, e), H(
61
61
  e,
62
62
  () => {
63
- zt.value = A(e), Be(zt);
63
+ zt.value = O(e), Be(zt);
64
64
  },
65
65
  { immediate: !0, deep: !0 }
66
66
  );
@@ -128,7 +128,7 @@ const Fr = Symbol("XProviderContext"), zt = ee(), gi = (e) => {
128
128
  const t = mi();
129
129
  return b(() => ({
130
130
  ...vi,
131
- ...A(t)[e]
131
+ ...O(t)[e]
132
132
  }));
133
133
  };
134
134
  function z(e) {
@@ -144,18 +144,18 @@ function ve(e) {
144
144
  const bi = (e, t, n, r) => {
145
145
  const [o, i] = z(""), [a, l] = z(1), s = b(() => t.value && ve(e.value));
146
146
  return H(e, () => {
147
- const d = A(o);
147
+ const d = O(o);
148
148
  i(e.value), !s.value && ve(e.value) ? l(e.value.length) : ve(e.value) && ve(d) && e.value.indexOf(d) !== 0 && l(1);
149
149
  }), H([a, t, e], () => {
150
- if (s.value && ve(e.value) && A(a) < e.value.length) {
150
+ if (s.value && ve(e.value) && O(a) < e.value.length) {
151
151
  const d = setTimeout(() => {
152
- l(A(a) + n.value);
152
+ l(O(a) + n.value);
153
153
  }, r.value);
154
154
  _e(() => {
155
155
  clearTimeout(d);
156
156
  });
157
157
  }
158
- }, { immediate: !0 }), [b(() => s.value && ve(e.value) ? e.value.slice(0, A(a)) : e.value), b(() => s.value && ve(e.value) && A(a) < e.value.length)];
158
+ }, { immediate: !0 }), [b(() => s.value && ve(e.value) ? e.value.slice(0, O(a)) : e.value), b(() => s.value && ve(e.value) && O(a) < e.value.length)];
159
159
  };
160
160
  function yi(e) {
161
161
  const t = B(!0), n = {
@@ -271,10 +271,10 @@ const Wr = Symbol("StyleContextKey"), $i = () => {
271
271
  ...Vr,
272
272
  cache: Ye()
273
273
  });
274
- return H([() => A(e), t], () => {
274
+ return H([() => O(e), t], () => {
275
275
  const r = {
276
276
  ...t.value
277
- }, o = A(e);
277
+ }, o = O(e);
278
278
  Object.keys(o).forEach((a) => {
279
279
  const l = o[a];
280
280
  o[a] !== void 0 && (r[a] = l);
@@ -323,19 +323,19 @@ const Wr = Symbol("StyleContextKey"), $i = () => {
323
323
  return (n = t.default) == null ? void 0 : n.call(t);
324
324
  };
325
325
  }
326
- })), Oi = {
326
+ })), Ai = {
327
327
  useStyleInject: tt,
328
328
  useStyleProvider: Gr,
329
329
  StyleProvider: Ti
330
330
  };
331
- function Ai() {
331
+ function Oi() {
332
332
  return !1;
333
333
  }
334
334
  let Ft = !1;
335
335
  function Pi() {
336
336
  return Ft;
337
337
  }
338
- const Mi = process.env.NODE_ENV === "production" ? Ai : Pi;
338
+ const Mi = process.env.NODE_ENV === "production" ? Oi : Pi;
339
339
  if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
340
340
  const e = window;
341
341
  if (typeof e.webpackHotUpdate == "function") {
@@ -528,7 +528,7 @@ const _r = Symbol("WarningContext"), Gt = ee(), Di = (e) => {
528
528
  $e(_r, e), H(
529
529
  e,
530
530
  () => {
531
- Gt.value = A(e), Be(Gt);
531
+ Gt.value = O(e), Be(Gt);
532
532
  },
533
533
  { immediate: !0, deep: !0 }
534
534
  );
@@ -591,14 +591,14 @@ function Vi(e, t, n) {
591
591
  }
592
592
  return !1;
593
593
  }
594
- let Ot;
594
+ let At;
595
595
  function Gi() {
596
- return Ot === void 0 && (Ot = Vi(
596
+ return At === void 0 && (At = Vi(
597
597
  `@layer ${Ue} { .${Ue} { content: "${to}"!important; } }`,
598
598
  (e) => {
599
599
  e.className = Ue;
600
600
  }
601
- )), Ot;
601
+ )), At;
602
602
  }
603
603
  const Ui = De();
604
604
  function de(e) {
@@ -797,7 +797,7 @@ function da(e) {
797
797
  function ha(e) {
798
798
  return ze = "", e;
799
799
  }
800
- function At(e) {
800
+ function Ot(e) {
801
801
  return ao(xt(Y - 1, Ut(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
802
802
  }
803
803
  function ga(e) {
@@ -847,13 +847,13 @@ function gt(e, t, n, r, o, i, a, l, s) {
847
847
  switch (g = $, $ = K()) {
848
848
  case 40:
849
849
  if (g != 108 && Ze(v, u - 1) == 58) {
850
- sa(v += dt(At($), "&", "&\f"), "&\f", io(c ? l[c - 1] : 0)) != -1 && (C = -1);
850
+ sa(v += dt(Ot($), "&", "&\f"), "&\f", io(c ? l[c - 1] : 0)) != -1 && (C = -1);
851
851
  break;
852
852
  }
853
853
  case 34:
854
854
  case 39:
855
855
  case 91:
856
- v += At($);
856
+ v += Ot($);
857
857
  break;
858
858
  case 9:
859
859
  case 10:
@@ -923,7 +923,7 @@ function gt(e, t, n, r, o, i, a, l, s) {
923
923
  l[c++] = (J(v) - 1) * C, C = 1;
924
924
  break;
925
925
  case 64:
926
- se() === 45 && (v += At(K())), h = se(), d = u = J(T = v += va(ht())), $++;
926
+ se() === 45 && (v += Ot(K())), h = se(), d = u = J(T = v += va(ht())), $++;
927
927
  break;
928
928
  case 45:
929
929
  g === 45 && J(v) == 2 && (p = 0);
@@ -1003,7 +1003,7 @@ function wa() {
1003
1003
  function Ta(e) {
1004
1004
  return wa(), !!Ce[e];
1005
1005
  }
1006
- function Oa(e) {
1006
+ function Aa(e) {
1007
1007
  const t = Ce[e];
1008
1008
  let n = null;
1009
1009
  if (t && De())
@@ -1019,7 +1019,7 @@ const Yn = De(), uo = "_skip_check_", fo = "_multi_value_";
1019
1019
  function Zn(e) {
1020
1020
  return qt(ba(e), xa).replace(/\{%%%\:[^;];}/g, ";");
1021
1021
  }
1022
- function Aa(e) {
1022
+ function Oa(e) {
1023
1023
  return typeof e == "object" && e && (uo in e || fo in e);
1024
1024
  }
1025
1025
  function Pa(e, t, n) {
@@ -1082,17 +1082,17 @@ const Zt = (e, t = {}, {
1082
1082
  }, C);
1083
1083
  Object.keys($).forEach((T) => {
1084
1084
  const x = $[T];
1085
- if (typeof x == "object" && x && (T !== "animationName" || !x._keyframe) && !Aa(x)) {
1085
+ if (typeof x == "object" && x && (T !== "animationName" || !x._keyframe) && !Oa(x)) {
1086
1086
  let w = !1, S = T.trim(), v = !1;
1087
1087
  (n || r) && i ? S.startsWith("@") ? w = !0 : S = Pa(T, i, s) : n && !i && (S === "&" || S === "") && (S = "", v = !0);
1088
- const [M, O] = Zt(x, t, {
1088
+ const [M, A] = Zt(x, t, {
1089
1089
  root: v,
1090
1090
  injectHash: w,
1091
1091
  parentSelectors: [...o, S]
1092
1092
  });
1093
1093
  h = {
1094
1094
  ...h,
1095
- ...O
1095
+ ...A
1096
1096
  }, u += `${S}${M}`;
1097
1097
  } else {
1098
1098
  let w = function(v, M) {
@@ -1101,9 +1101,9 @@ const Zt = (e, t = {}, {
1101
1101
  hashId: i,
1102
1102
  parentSelectors: o
1103
1103
  }));
1104
- const O = v.replace(/[A-Z]/g, (I) => `-${I.toLowerCase()}`);
1104
+ const A = v.replace(/[A-Z]/g, (I) => `-${I.toLowerCase()}`);
1105
1105
  let P = M;
1106
- !oa[v] && typeof P == "number" && P !== 0 && (P = `${P}px`), v === "animationName" && (M != null && M._keyframe) && (m(M), P = M.getName(i)), u += `${O}:${P};`;
1106
+ !oa[v] && typeof P == "number" && P !== 0 && (P = `${P}px`), v === "animationName" && (M != null && M._keyframe) && (m(M), P = M.getName(i)), u += `${A}:${P};`;
1107
1107
  };
1108
1108
  const S = (x == null ? void 0 : x.value) ?? x;
1109
1109
  typeof x == "object" && (x != null && x[fo]) && Array.isArray(S) ? S.forEach((v) => {
@@ -1146,7 +1146,7 @@ function Kn(e, t) {
1146
1146
  order: u = 0
1147
1147
  } = e.value || {}, h = o.value.join("|");
1148
1148
  if (Ta(h)) {
1149
- const [v, M] = Oa(h);
1149
+ const [v, M] = Aa(h);
1150
1150
  if (v)
1151
1151
  return [v, r.value, M, {}, d, u];
1152
1152
  }
@@ -1174,8 +1174,8 @@ function Kn(e, t) {
1174
1174
  M && (v.csp = {
1175
1175
  nonce: M
1176
1176
  });
1177
- const O = Wt(w, S, v);
1178
- O[Me] = $.instanceId, O.setAttribute(Xr, r.value), process.env.NODE_ENV !== "production" && O.setAttribute(Ci, o.value.join("|")), Object.keys(x).forEach((P) => {
1177
+ const A = Wt(w, S, v);
1178
+ A[Me] = $.instanceId, A.setAttribute(Xr, r.value), process.env.NODE_ENV !== "production" && A.setAttribute(Ci, o.value.join("|")), Object.keys(x).forEach((P) => {
1179
1179
  Yt.has(P) || (Yt.add(P), Wt(Zn(x[P]), `_effect-${P}`, {
1180
1180
  mark: fe,
1181
1181
  prepend: "queue",
@@ -1195,7 +1195,7 @@ function Kn(e, t) {
1195
1195
  }
1196
1196
  const Ma = "cssVar", Ea = (e, t) => {
1197
1197
  const { key: n, prefix: r, unitless: o, ignore: i, token: a, scope: l = "" } = e;
1198
- useContext(Oi);
1198
+ useContext(Ai);
1199
1199
  const { _tokenKey: s } = a, c = [...e.path, n, l, s];
1200
1200
  return fn(
1201
1201
  Ma,
@@ -1222,10 +1222,10 @@ class go {
1222
1222
  return t ? `${t}-${this.name}` : this.name;
1223
1223
  }
1224
1224
  }
1225
- function Ae(e) {
1225
+ function Oe(e) {
1226
1226
  return e.notSplit = !0, e;
1227
1227
  }
1228
- Ae(["borderTop", "borderBottom"]), Ae(["borderTop"]), Ae(["borderBottom"]), Ae(["borderLeft", "borderRight"]), Ae(["borderLeft"]), Ae(["borderRight"]);
1228
+ Oe(["borderTop", "borderBottom"]), Oe(["borderTop"]), Oe(["borderBottom"]), Oe(["borderLeft", "borderRight"]), Oe(["borderLeft"]), Oe(["borderRight"]);
1229
1229
  class mo {
1230
1230
  }
1231
1231
  const po = "CALC_UNIT", Ia = new RegExp(po, "g");
@@ -1359,13 +1359,13 @@ function Ra(e) {
1359
1359
  const Ba = 1e3 * 60 * 10;
1360
1360
  class ja {
1361
1361
  constructor() {
1362
- Oe(this, "map", /* @__PURE__ */ new Map());
1362
+ Ae(this, "map", /* @__PURE__ */ new Map());
1363
1363
  // Use WeakMap to avoid memory leak
1364
- Oe(this, "objectIDMap", /* @__PURE__ */ new WeakMap());
1365
- Oe(this, "nextID", 0);
1366
- Oe(this, "lastAccessBeat", /* @__PURE__ */ new Map());
1364
+ Ae(this, "objectIDMap", /* @__PURE__ */ new WeakMap());
1365
+ Ae(this, "nextID", 0);
1366
+ Ae(this, "lastAccessBeat", /* @__PURE__ */ new Map());
1367
1367
  // We will clean up the cache when reach the limit
1368
- Oe(this, "accessBeat", 0);
1368
+ Ae(this, "accessBeat", 0);
1369
1369
  }
1370
1370
  set(t, n) {
1371
1371
  this.clear();
@@ -1432,8 +1432,8 @@ function za(e) {
1432
1432
  prefixToken: y
1433
1433
  }, w = c(u, h, m, x), S = s(p, m, x);
1434
1434
  return (v, M = D(v)) => {
1435
- const [, O] = w(D(v), M), [P, I] = S(M);
1436
- return [P, O, I];
1435
+ const [, A] = w(D(v), M), [P, I] = S(M);
1436
+ return [P, A, I];
1437
1437
  };
1438
1438
  }
1439
1439
  function s(u, h, m) {
@@ -1461,8 +1461,8 @@ function za(e) {
1461
1461
  const v = er(u, S, h), M = Jn(u, S, v, {
1462
1462
  deprecatedTokens: m == null ? void 0 : m.deprecatedTokens
1463
1463
  });
1464
- return Object.keys(v).forEach((O) => {
1465
- M[y(O)] = M[O], delete M[O];
1464
+ return Object.keys(v).forEach((A) => {
1465
+ M[y(A)] = M[A], delete M[A];
1466
1466
  }), M;
1467
1467
  }), null;
1468
1468
  };
@@ -1487,16 +1487,16 @@ function za(e) {
1487
1487
  realToken: S,
1488
1488
  hashId: v,
1489
1489
  token: M,
1490
- cssVar: O
1490
+ cssVar: A
1491
1491
  } = n(), {
1492
1492
  rootPrefixCls: P,
1493
1493
  iconPrefixCls: I
1494
- } = r(), le = t(), R = O ? "css" : "js", j = A(ka(() => {
1494
+ } = r(), le = t(), R = A ? "css" : "js", j = O(ka(() => {
1495
1495
  const Xe = /* @__PURE__ */ new Set();
1496
- return O && Object.keys(g.unitless || {}).forEach((nt) => {
1497
- Xe.add(ft(nt, O.prefix)), Xe.add(ft(nt, Qn(y, O.prefix)));
1496
+ return A && Object.keys(g.unitless || {}).forEach((nt) => {
1497
+ Xe.add(ft(nt, A.prefix)), Xe.add(ft(nt, Qn(y, A.prefix)));
1498
1498
  }), Ha(R, Xe);
1499
- }, [R, y, O == null ? void 0 : O.prefix])), {
1499
+ }, [R, y, A == null ? void 0 : A.prefix])), {
1500
1500
  max: U,
1501
1501
  min: pe
1502
1502
  } = Ra(R), Ct = {
@@ -1531,8 +1531,8 @@ function za(e) {
1531
1531
  } = Na(M), Te = er(y, S, m), Wo = `.${T}`, Nn = Jn(y, S, Te, {
1532
1532
  deprecatedTokens: g.deprecatedTokens
1533
1533
  });
1534
- O && Te && typeof Te == "object" && Object.keys(Te).forEach((Bn) => {
1535
- Te[Bn] = `var(${ft(Bn, Qn(y, O.prefix))})`;
1534
+ A && Te && typeof Te == "object" && Object.keys(Te).forEach((Bn) => {
1535
+ Te[Bn] = `var(${ft(Bn, Qn(y, A.prefix))})`;
1536
1536
  });
1537
1537
  const Rn = ge(Xe, {
1538
1538
  componentCls: Wo,
@@ -1544,7 +1544,7 @@ function za(e) {
1544
1544
  max: U,
1545
1545
  // @ts-ignore
1546
1546
  min: pe
1547
- }, O ? Te : Nn), Vo = h(Rn, {
1547
+ }, A ? Te : Nn), Vo = h(Rn, {
1548
1548
  hashId: v,
1549
1549
  prefixCls: T,
1550
1550
  rootPrefixCls: P,
@@ -2782,7 +2782,7 @@ const Tl = (e) => {
2782
2782
  lineHeightHeading5: r[2]
2783
2783
  };
2784
2784
  };
2785
- function Ol(e) {
2785
+ function Al(e) {
2786
2786
  const t = Object.keys(yo).map((n) => {
2787
2787
  const r = Qe(e[n]);
2788
2788
  return new Array(10).fill(1).reduce((o, i, a) => (o[`${n}-${a + 1}`] = r[a], o), {});
@@ -2792,18 +2792,18 @@ function Ol(e) {
2792
2792
  generateNeutralColorPalettes: $l
2793
2793
  })), Tl(e.fontSize)), bl(e)), vl(e)), Sl(e));
2794
2794
  }
2795
- ul(Ol);
2796
- const Al = {
2795
+ ul(Al);
2796
+ const Ol = {
2797
2797
  token: xo,
2798
2798
  hashed: !0
2799
2799
  }, wo = Symbol("DesignTokenContext"), tn = ee(), Pl = (e) => {
2800
2800
  $e(wo, e), H(e, () => {
2801
- tn.value = A(e), Be(tn);
2801
+ tn.value = O(e), Be(tn);
2802
2802
  }, {
2803
2803
  immediate: !0,
2804
2804
  deep: !0
2805
2805
  });
2806
- }, Ml = () => ae(wo, b(() => tn.value || Al));
2806
+ }, Ml = () => ae(wo, b(() => tn.value || Ol));
2807
2807
  L({
2808
2808
  props: {
2809
2809
  value: ai()
@@ -2867,12 +2867,12 @@ function Hl() {
2867
2867
  override: r,
2868
2868
  // @ts-expect-error
2869
2869
  cssVar: o
2870
- } = A(Ml()), [
2870
+ } = O(Ml()), [
2871
2871
  i,
2872
2872
  a,
2873
2873
  // @ts-expect-error
2874
2874
  l
2875
- ] = A(ra(
2875
+ ] = O(ra(
2876
2876
  B(n),
2877
2877
  B([Dr.defaultSeed, e]),
2878
2878
  B({
@@ -2894,7 +2894,7 @@ const { genStyleHooks: Fe, genComponentStyleHook: ru, genSubStyleComponent: ou }
2894
2894
  usePrefix: () => {
2895
2895
  const { getPrefixCls: e, iconPrefixCls: t } = Q();
2896
2896
  return {
2897
- iconPrefixCls: A(t),
2897
+ iconPrefixCls: O(t),
2898
2898
  rootPrefixCls: e()
2899
2899
  };
2900
2900
  },
@@ -3088,7 +3088,7 @@ const { genStyleHooks: Fe, genComponentStyleHook: ru, genSubStyleComponent: ou }
3088
3088
  }
3089
3089
  }
3090
3090
  };
3091
- }, Dl = () => ({}), Oo = Fe(
3091
+ }, Dl = () => ({}), Ao = Fe(
3092
3092
  "Bubble",
3093
3093
  (e) => {
3094
3094
  const t = ge(e, {});
@@ -3100,16 +3100,16 @@ const { genStyleHooks: Fe, genComponentStyleHook: ru, genSubStyleComponent: ou }
3100
3100
  ];
3101
3101
  },
3102
3102
  Dl
3103
- ), Ao = Symbol("BubbleContext"), nn = ee(), zl = (e) => {
3104
- $e(Ao, e), H(
3103
+ ), Oo = Symbol("BubbleContext"), nn = ee(), zl = (e) => {
3104
+ $e(Oo, e), H(
3105
3105
  e,
3106
3106
  () => {
3107
- nn.value = A(e), Be(nn);
3107
+ nn.value = O(e), Be(nn);
3108
3108
  },
3109
3109
  { immediate: !0, deep: !0 }
3110
3110
  );
3111
3111
  }, Fl = () => ae(
3112
- Ao,
3112
+ Oo,
3113
3113
  b(() => nn.value || {})
3114
3114
  ), Xl = L({
3115
3115
  props: {
@@ -3168,24 +3168,24 @@ const { genStyleHooks: Fe, genComponentStyleHook: ru, genSubStyleComponent: ou }
3168
3168
  });
3169
3169
  const {
3170
3170
  onUpdate: o
3171
- } = A(Fl()), i = B(null), {
3171
+ } = O(Fl()), i = B(null), {
3172
3172
  direction: a,
3173
3173
  getPrefixCls: l
3174
3174
  } = Q(), s = l("bubble", e.prefixCls), c = ke("bubble"), [d, u, h, m] = yi(e.typing), [g, p] = bi(r, d, u, h), y = B(!1);
3175
3175
  H(g, () => {
3176
3176
  o == null || o();
3177
3177
  }), et(() => {
3178
- var O;
3179
- !p.value && !e.loading ? y.value || (y.value = !0, (O = e.onTypingComplete) == null || O.call(e)) : y.value = !1;
3178
+ var A;
3179
+ !p.value && !e.loading ? y.value || (y.value = !0, (A = e.onTypingComplete) == null || A.call(e)) : y.value = !1;
3180
3180
  });
3181
- const [C, $, T] = Oo(() => s), x = b(() => [s, e.rootClassName, c.value.className, $, T, `${s}-${e.placement}`, {
3181
+ const [C, $, T] = Ao(() => s), x = b(() => [s, e.rootClassName, c.value.className, $, T, `${s}-${e.placement}`, {
3182
3182
  [`${s}-rtl`]: a.value === "rtl"
3183
3183
  }, {
3184
3184
  [`${s}-typing`]: p.value && !e.loading && !e.messageRender && !m.value
3185
3185
  }]), w = b(() => cn(e.avatar) ? e.avatar : f(ei, e.avatar, null)), S = b(() => e.messageRender ? e.messageRender(g.value) : g.value), v = b(() => e.loading ? e.loadingRender ? e.loadingRender() : f(xi, {
3186
3186
  prefixCls: s
3187
3187
  }, null) : f(Ie, null, [S.value, p.value && D(m)])), M = b(() => {
3188
- const O = f("div", {
3188
+ const A = f("div", {
3189
3189
  style: {
3190
3190
  ...c.value.styles.content,
3191
3191
  ...e.styles.content
@@ -3202,13 +3202,13 @@ const { genStyleHooks: Fe, genComponentStyleHook: ru, genSubStyleComponent: ou }
3202
3202
  ...c.value.styles.header,
3203
3203
  ...e.styles.header
3204
3204
  }
3205
- }, [e.header]), O, e.footer && f("div", {
3205
+ }, [e.header]), A, e.footer && f("div", {
3206
3206
  class: [`${s}-footer`, c.value.classNames.footer, e.classNames.footer],
3207
3207
  style: {
3208
3208
  ...c.value.styles.footer,
3209
3209
  ...e.styles.footer
3210
3210
  }
3211
- }, [e.footer])]) : O;
3211
+ }, [e.footer])]) : A;
3212
3212
  });
3213
3213
  return t({
3214
3214
  nativeElement: i
@@ -3317,23 +3317,23 @@ function vn(e, t = !1) {
3317
3317
  }), r;
3318
3318
  }
3319
3319
  function Kl(e) {
3320
- const [t, n] = z(e.value.length), r = b(() => e.value.slice(0, A(t))), o = b(() => {
3321
- const a = A(r)[A(r).length - 1];
3320
+ const [t, n] = z(e.value.length), r = b(() => e.value.slice(0, O(t))), o = b(() => {
3321
+ const a = O(r)[O(r).length - 1];
3322
3322
  return a ? a.key : null;
3323
3323
  });
3324
3324
  H(
3325
3325
  e,
3326
3326
  () => {
3327
3327
  var a;
3328
- if (!(A(r).length && A(r).every((l, s) => {
3328
+ if (!(O(r).length && O(r).every((l, s) => {
3329
3329
  var c;
3330
3330
  return l.key === ((c = e.value[s]) == null ? void 0 : c.key);
3331
3331
  }))) {
3332
- if (A(r).length === 0)
3332
+ if (O(r).length === 0)
3333
3333
  n(1);
3334
3334
  else
3335
- for (let l = 0; l < A(r).length; l += 1)
3336
- if (A(r)[l].key !== ((a = e.value[l]) == null ? void 0 : a.key)) {
3335
+ for (let l = 0; l < O(r).length; l += 1)
3336
+ if (O(r)[l].key !== ((a = e.value[l]) == null ? void 0 : a.key)) {
3337
3337
  n(l);
3338
3338
  break;
3339
3339
  }
@@ -3342,7 +3342,7 @@ function Kl(e) {
3342
3342
  { immediate: !0, deep: !0 }
3343
3343
  );
3344
3344
  const i = pn((a) => {
3345
- a === A(o) && n(A(t) + 1);
3345
+ a === O(o) && n(O(t) + 1);
3346
3346
  });
3347
3347
  return [r, i];
3348
3348
  }
@@ -3359,6 +3359,7 @@ function Ql(e, t) {
3359
3359
  }
3360
3360
  const Jl = 1, iu = /* @__PURE__ */ L({
3361
3361
  name: "AXBubbleList",
3362
+ inheritAttrs: !1,
3362
3363
  __name: "BubbleList",
3363
3364
  props: he({
3364
3365
  prefixCls: null,
@@ -3387,24 +3388,24 @@ const Jl = 1, iu = /* @__PURE__ */ L({
3387
3388
  });
3388
3389
  const i = B(null), a = B({}), {
3389
3390
  getPrefixCls: l
3390
- } = Q(), s = l("bubble", e.prefixCls), c = `${s}-list`, [d, u, h] = Oo(s), [m, g] = z(!1);
3391
+ } = Q(), s = l("bubble", e.prefixCls), c = `${s}-list`, [d, u, h] = Ao(s), [m, g] = z(!1);
3391
3392
  et(() => {
3392
3393
  g(!0), _e(() => {
3393
3394
  g(!1);
3394
3395
  });
3395
3396
  });
3396
- const p = Ql(o, e.roles), [y, C] = Kl(p), [$, T] = z(!0), [x, w] = z(0), S = (O) => {
3397
- const P = O.target;
3397
+ const p = Ql(o, e.roles), [y, C] = Kl(p), [$, T] = z(!0), [x, w] = z(0), S = (A) => {
3398
+ const P = A.target;
3398
3399
  T(P.scrollHeight - Math.abs(P.scrollTop) - P.clientHeight <= Jl);
3399
3400
  };
3400
3401
  H(x, () => {
3401
- e.autoScroll && A(i) && A($) && A(i).scrollTo({
3402
- top: A(i).scrollHeight
3402
+ e.autoScroll && O(i) && O($) && O(i).scrollTo({
3403
+ top: O(i).scrollHeight
3403
3404
  });
3404
- }), H(() => A(y).length, () => {
3405
- var O;
3405
+ }), H(() => O(y).length, () => {
3406
+ var A;
3406
3407
  if (e.autoScroll) {
3407
- const P = (O = A(y)[A(y).length - 2]) == null ? void 0 : O.key, I = A(a)[P];
3408
+ const P = (A = O(y)[O(y).length - 2]) == null ? void 0 : A.key, I = O(a)[P];
3408
3409
  if (I) {
3409
3410
  const {
3410
3411
  nativeElement: le
@@ -3414,34 +3415,34 @@ const Jl = 1, iu = /* @__PURE__ */ L({
3414
3415
  } = le.getBoundingClientRect(), {
3415
3416
  top: U,
3416
3417
  bottom: pe
3417
- } = A(i).getBoundingClientRect();
3418
- R < pe && j > U && (w(A(x) + 1), T(!0));
3418
+ } = O(i).getBoundingClientRect();
3419
+ R < pe && j > U && (w(O(x) + 1), T(!0));
3419
3420
  }
3420
3421
  }
3421
3422
  });
3422
3423
  const v = pn(() => {
3423
- e.autoScroll && w(A(x) + 1);
3424
+ e.autoScroll && w(O(x) + 1);
3424
3425
  }), M = b(() => ({
3425
3426
  onUpdate: v
3426
3427
  }));
3427
3428
  return t({
3428
3429
  nativeElement: i,
3429
3430
  scrollTo: ({
3430
- key: O,
3431
+ key: A,
3431
3432
  offset: P,
3432
3433
  behavior: I = "smooth",
3433
3434
  block: le
3434
3435
  }) => {
3435
3436
  if (typeof P == "number")
3436
- A(i).scrollTo({
3437
+ O(i).scrollTo({
3437
3438
  top: P,
3438
3439
  behavior: I
3439
3440
  });
3440
- else if (O !== void 0) {
3441
- const R = A(a)[O];
3441
+ else if (A !== void 0) {
3442
+ const R = O(a)[A];
3442
3443
  if (R) {
3443
- const j = A(y).findIndex((U) => U.key === O);
3444
- T(j === A(y).length - 1), R.nativeElement.scrollIntoView({
3444
+ const j = O(y).findIndex((U) => U.key === A);
3445
+ T(j === O(y).length - 1), R.nativeElement.scrollIntoView({
3445
3446
  behavior: I,
3446
3447
  block: le
3447
3448
  });
@@ -3457,18 +3458,18 @@ const Jl = 1, iu = /* @__PURE__ */ L({
3457
3458
  }),
3458
3459
  ref: i,
3459
3460
  onScroll: S
3460
- }), [A(y).map(({
3461
- key: O,
3461
+ }), [O(y).map(({
3462
+ key: A,
3462
3463
  ...P
3463
3464
  }) => f(Wl, ie(P, {
3464
- key: O,
3465
+ key: A,
3465
3466
  ref: (I) => {
3466
- I ? a.value[O] = I : delete a.value[O];
3467
+ I ? a.value[A] = I : delete a.value[A];
3467
3468
  },
3468
3469
  typing: m.value ? P.typing : !1,
3469
3470
  onTypingComplete: () => {
3470
3471
  var I;
3471
- (I = P.onTypingComplete) == null || I.call(P), C(O);
3472
+ (I = P.onTypingComplete) == null || I.call(P), C(A);
3472
3473
  }
3473
3474
  }), null))])]
3474
3475
  }));
@@ -3797,8 +3798,8 @@ var Ts = L({
3797
3798
  return null;
3798
3799
  };
3799
3800
  }
3800
- }), Os = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
3801
- function As(e, t) {
3801
+ }), As = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
3802
+ function Os(e, t) {
3802
3803
  return Is(e) || Es(e, t) || Ms(e, t) || Ps();
3803
3804
  }
3804
3805
  function Ps() {
@@ -3874,12 +3875,12 @@ function Ls(e, t) {
3874
3875
  }
3875
3876
  Bo(pl.primary);
3876
3877
  var X = function(t, n) {
3877
- var r, o = vr({}, t, n.attrs), i = o.class, a = o.icon, l = o.spin, s = o.rotate, c = o.tabindex, d = o.twoToneColor, u = o.onClick, h = Hs(o, Os), m = Mo(), g = m.prefixCls, p = m.rootClassName, y = (r = {}, Ge(r, p.value, !!p.value), Ge(r, g.value, !0), Ge(r, "".concat(g.value, "-").concat(a.name), !!a.name), Ge(r, "".concat(g.value, "-spin"), !!l || a.name === "loading"), r), C = c;
3878
+ var r, o = vr({}, t, n.attrs), i = o.class, a = o.icon, l = o.spin, s = o.rotate, c = o.tabindex, d = o.twoToneColor, u = o.onClick, h = Hs(o, As), m = Mo(), g = m.prefixCls, p = m.rootClassName, y = (r = {}, Ge(r, p.value, !!p.value), Ge(r, g.value, !0), Ge(r, "".concat(g.value, "-").concat(a.name), !!a.name), Ge(r, "".concat(g.value, "-spin"), !!l || a.name === "loading"), r), C = c;
3878
3879
  C === void 0 && u && (C = -1);
3879
3880
  var $ = s ? {
3880
3881
  msTransform: "rotate(".concat(s, "deg)"),
3881
3882
  transform: "rotate(".concat(s, "deg)")
3882
- } : void 0, T = No(d), x = As(T, 2), w = x[0], S = x[1];
3883
+ } : void 0, T = No(d), x = Os(T, 2), w = x[0], S = x[1];
3883
3884
  return f("span", vr({
3884
3885
  role: "img",
3885
3886
  "aria-label": a.name
@@ -4057,14 +4058,14 @@ function wr(e) {
4057
4058
  function qs(e, t, n) {
4058
4059
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
4059
4060
  }
4060
- var On = function(t, n) {
4061
+ var An = function(t, n) {
4061
4062
  var r = wr({}, t, n.attrs);
4062
4063
  return f(X, wr({}, r, {
4063
4064
  icon: Us
4064
4065
  }), null);
4065
4066
  };
4066
- On.displayName = "FilePptFilled";
4067
- On.inheritAttrs = !1;
4067
+ An.displayName = "FilePptFilled";
4068
+ An.inheritAttrs = !1;
4068
4069
  var Ys = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z" } }] }, name: "file-text", theme: "filled" };
4069
4070
  function Tr(e) {
4070
4071
  for (var t = 1; t < arguments.length; t++) {
@@ -4080,16 +4081,16 @@ function Tr(e) {
4080
4081
  function Zs(e, t, n) {
4081
4082
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
4082
4083
  }
4083
- var An = function(t, n) {
4084
+ var On = function(t, n) {
4084
4085
  var r = Tr({}, t, n.attrs);
4085
4086
  return f(X, Tr({}, r, {
4086
4087
  icon: Ys
4087
4088
  }), null);
4088
4089
  };
4089
- An.displayName = "FileTextFilled";
4090
- An.inheritAttrs = !1;
4090
+ On.displayName = "FileTextFilled";
4091
+ On.inheritAttrs = !1;
4091
4092
  var Ks = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z" } }] }, name: "file-word", theme: "filled" };
4092
- function Or(e) {
4093
+ function Ar(e) {
4093
4094
  for (var t = 1; t < arguments.length; t++) {
4094
4095
  var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
4095
4096
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
@@ -4104,15 +4105,15 @@ function Qs(e, t, n) {
4104
4105
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
4105
4106
  }
4106
4107
  var Pn = function(t, n) {
4107
- var r = Or({}, t, n.attrs);
4108
- return f(X, Or({}, r, {
4108
+ var r = Ar({}, t, n.attrs);
4109
+ return f(X, Ar({}, r, {
4109
4110
  icon: Ks
4110
4111
  }), null);
4111
4112
  };
4112
4113
  Pn.displayName = "FileWordFilled";
4113
4114
  Pn.inheritAttrs = !1;
4114
4115
  var Js = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z" } }] }, name: "file-zip", theme: "filled" };
4115
- function Ar(e) {
4116
+ function Or(e) {
4116
4117
  for (var t = 1; t < arguments.length; t++) {
4117
4118
  var n = arguments[t] != null ? Object(arguments[t]) : {}, r = Object.keys(n);
4118
4119
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(o) {
@@ -4127,8 +4128,8 @@ function _s(e, t, n) {
4127
4128
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
4128
4129
  }
4129
4130
  var Mn = function(t, n) {
4130
- var r = Ar({}, t, n.attrs);
4131
- return f(X, Ar({}, r, {
4131
+ var r = Or({}, t, n.attrs);
4132
+ return f(X, Or({}, r, {
4132
4133
  icon: Js
4133
4134
  }), null);
4134
4135
  };
@@ -4272,7 +4273,7 @@ const ac = /* @__PURE__ */ L({
4272
4273
  $e(jo, e), H(
4273
4274
  e,
4274
4275
  () => {
4275
- an.value = A(e), Be(an);
4276
+ an.value = O(e), Be(an);
4276
4277
  },
4277
4278
  { immediate: !0, deep: !0 }
4278
4279
  );
@@ -4307,7 +4308,7 @@ const ac = /* @__PURE__ */ L({
4307
4308
  function uc(e, t) {
4308
4309
  const { defaultValue: n, value: r = B() } = t;
4309
4310
  let o = typeof e == "function" ? e() : e;
4310
- r.value !== void 0 && (o = A(r)), n !== void 0 && (o = typeof n == "function" ? n() : n);
4311
+ r.value !== void 0 && (o = O(r)), n !== void 0 && (o = typeof n == "function" ? n() : n);
4311
4312
  const i = B(o), a = B(o);
4312
4313
  et(() => {
4313
4314
  let s = r.value !== void 0 ? r.value : i.value;
@@ -4926,7 +4927,7 @@ const Bt = "__ungrouped", fc = (e, t = []) => {
4926
4927
  }
4927
4928
  }
4928
4929
  };
4929
- }, Tc = () => ({}), Oc = Fe(
4930
+ }, Tc = () => ({}), Ac = Fe(
4930
4931
  "Suggestion",
4931
4932
  (e) => {
4932
4933
  const t = ge(e, {});
@@ -4934,7 +4935,7 @@ const Bt = "__ungrouped", fc = (e, t = []) => {
4934
4935
  },
4935
4936
  Tc
4936
4937
  );
4937
- function Ac(e, t, n, r, o) {
4938
+ function Oc(e, t, n, r, o) {
4938
4939
  const [i, a] = z([]), l = (m, g = i.value) => {
4939
4940
  let p = D(e);
4940
4941
  for (let y = 0; y < m - 1; y += 1) {
@@ -5022,7 +5023,7 @@ const su = /* @__PURE__ */ L({
5022
5023
  getPrefixCls: n
5023
5024
  } = Q(), r = b(() => n("suggestion", e.prefixCls));
5024
5025
  `${r.value}`;
5025
- const o = b(() => t.value === "rtl"), i = ke("suggestion"), [a, l, s] = Oc(r), [c, d] = z(e.open), [u, h] = z(), m = (w) => {
5026
+ const o = b(() => t.value === "rtl"), i = ke("suggestion"), [a, l, s] = Ac(r), [c, d] = z(e.open), [u, h] = z(), m = (w) => {
5026
5027
  var S;
5027
5028
  d(w), (S = e.onOpenChange) == null || S.call(e, w);
5028
5029
  }, g = (w) => {
@@ -5031,7 +5032,7 @@ const su = /* @__PURE__ */ L({
5031
5032
  m(!1);
5032
5033
  }, y = b(() => typeof e.items == "function" ? e.items(u.value) : e.items), C = (w) => {
5033
5034
  e.onSelect && e.onSelect(w[w.length - 1]), m(!1);
5034
- }, [$, T] = Ac(y, c, o, C, p), x = b(() => {
5035
+ }, [$, T] = Oc(y, c, o, C, p), x = b(() => {
5035
5036
  var w;
5036
5037
  return (w = e.children) == null ? void 0 : w.call(e, {
5037
5038
  onTrigger: g,
@@ -5046,14 +5047,14 @@ const su = /* @__PURE__ */ L({
5046
5047
  onDropdownVisibleChange: (w) => {
5047
5048
  w || p();
5048
5049
  },
5049
- class: E(e.rootClassName, r, l, s, {
5050
+ class: E(e.rootClassName, r.value, l, s, {
5050
5051
  [`${r.value}-block`]: e.block
5051
5052
  }),
5052
5053
  onChange: C,
5053
5054
  dropdownMatchSelectWidth: e.block
5054
5055
  }, {
5055
5056
  default: () => f("div", {
5056
- class: E(r, i.value.className, e.rootClassName, e.className, `${r.value}-wrapper`, l, s),
5057
+ class: E(r.value, i.value.className, e.rootClassName, e.className, `${r.value}-wrapper`, l, s),
5057
5058
  style: {
5058
5059
  ...i.value.style,
5059
5060
  ...e.style
@@ -5065,7 +5066,7 @@ const su = /* @__PURE__ */ L({
5065
5066
  $e(ko, e), H(
5066
5067
  e,
5067
5068
  () => {
5068
- ln.value = A(e), Be(ln);
5069
+ ln.value = O(e), Be(ln);
5069
5070
  },
5070
5071
  { immediate: !0, deep: !0 }
5071
5072
  );
@@ -6053,7 +6054,7 @@ const Wc = (e) => {
6053
6054
  color: "#ff4d4f",
6054
6055
  ext: ["pdf"]
6055
6056
  }, {
6056
- icon: f(On, null, null),
6057
+ icon: f(An, null, null),
6057
6058
  color: "#ff6e31",
6058
6059
  ext: ["ppt", "pptx"]
6059
6060
  }, {
@@ -6104,22 +6105,22 @@ const Wc = (e) => {
6104
6105
  iconColor: U
6105
6106
  };
6106
6107
  return {
6107
- icon: f(An, {
6108
+ icon: f(On, {
6108
6109
  key: "defaultIcon"
6109
6110
  }, null),
6110
6111
  iconColor: Dt
6111
6112
  };
6112
- }), [M, O] = z();
6113
+ }), [M, A] = z();
6113
6114
  H(() => e.item.originFileObj, () => {
6114
6115
  if (e.item.originFileObj) {
6115
6116
  let R = !0;
6116
6117
  zc(e.item.originFileObj).then((j) => {
6117
- R && O(j);
6118
+ R && A(j);
6118
6119
  }), _e(() => {
6119
6120
  R = !1;
6120
6121
  });
6121
6122
  }
6122
- O(void 0);
6123
+ A(void 0);
6123
6124
  }, {
6124
6125
  immediate: !0
6125
6126
  });
@@ -6317,9 +6318,9 @@ const Zc = /* @__PURE__ */ L({
6317
6318
  fileList: v
6318
6319
  });
6319
6320
  }, x = (S, v, M) => {
6320
- const O = typeof e.placeholder == "function" ? e.placeholder(S) : e.placeholder;
6321
+ const A = typeof e.placeholder == "function" ? e.placeholder(S) : e.placeholder;
6321
6322
  return f(Ec, {
6322
- placeholder: O,
6323
+ placeholder: A,
6323
6324
  upload: $.value,
6324
6325
  prefixCls: i,
6325
6326
  className: E(l.value.placeholder, e.classNames.placeholder),
@@ -6388,10 +6389,10 @@ const Zc = /* @__PURE__ */ L({
6388
6389
  return t({
6389
6390
  nativeElement: c.value,
6390
6391
  upload: (S) => {
6391
- var M, O;
6392
+ var M, A;
6392
6393
  const v = (
6393
6394
  // @ts-expect-error
6394
- (O = (M = d.value) == null ? void 0 : M.nativeElement) == null ? void 0 : O.querySelector('input[type="file"]')
6395
+ (A = (M = d.value) == null ? void 0 : M.nativeElement) == null ? void 0 : A.querySelector('input[type="file"]')
6395
6396
  );
6396
6397
  if (v) {
6397
6398
  const P = new DataTransfer();
package/dist/index.umd.js CHANGED
@@ -54,7 +54,7 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
54
54
  onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
55
55
  onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
56
56
  onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
57
- onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),wl="aria-",$l="data-";function Fr(e,t){return e.indexOf(t)===0}function Gt(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||Fr(o,wl))||n.data&&Fr(o,$l)||n.attr&&(jr.includes(o)||jr.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}function Tl(e){const[t,n]=B(e.value.length),r=a.computed(()=>e.value.slice(0,a.unref(t))),o=a.computed(()=>{const l=a.unref(r)[a.unref(r).length-1];return l?l.key:null});a.watch(e,()=>{var l;if(!(a.unref(r).length&&a.unref(r).every((s,c)=>{var d;return s.key===((d=e.value[c])==null?void 0:d.key)}))){if(a.unref(r).length===0)n(1);else for(let s=0;s<a.unref(r).length;s+=1)if(a.unref(r)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const i=Wt(l=>{l===a.unref(o)&&n(a.unref(t)+1)});return[r,i]}function Nl(e,t){const n=o=>typeof t=="function"?t(o):t?t[o.role]||{}:{};return a.computed(()=>(e.value||[]).map((o,i)=>{const l=o.key??`preset_${i}`;return{...n(o),...o,key:l}}))}const El=1,Al=a.defineComponent({name:"AXBubbleList",__name:"BubbleList",props:a.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:{type:Function}},{autoScroll:!0}),setup(e,{expose:t}){const n=ie(e,["prefixCls","rootClassName","items","autoScroll","roles"]);a.toRef(e,"items"),a.toRef(e,"prefixCls");const r=Gt(n,{attr:!0,aria:!0}),o=a.ref(e.items);a.watch(()=>e.items,()=>{o.value=e.items});const i=a.ref(null),l=a.ref({}),{getPrefixCls:s}=z(),c=s("bubble",e.prefixCls),d=`${c}-list`,[f,u,h]=Lr(c),[m,g]=B(!1);a.watchEffect(()=>{g(!0),a.onWatcherCleanup(()=>{g(!1)})});const p=Nl(o,e.roles),[y,C]=Tl(p),[x,$]=B(!0),[v,w]=B(0),S=T=>{const N=T.target;$(N.scrollHeight-Math.abs(N.scrollTop)-N.clientHeight<=El)};a.watch(v,()=>{e.autoScroll&&a.unref(i)&&a.unref(x)&&a.unref(i).scrollTo({top:a.unref(i).scrollHeight})}),a.watch(()=>a.unref(y).length,()=>{var T;if(e.autoScroll){const N=(T=a.unref(y)[a.unref(y).length-2])==null?void 0:T.key,M=a.unref(l)[N];if(M){const{nativeElement:ae}=M,{top:R,bottom:L}=ae.getBoundingClientRect(),{top:W,bottom:he}=a.unref(i).getBoundingClientRect();R<he&&L>W&&(w(a.unref(v)+1),$(!0))}}});const b=Wt(()=>{e.autoScroll&&w(a.unref(v)+1)}),E=a.computed(()=>({onUpdate:b}));return t({nativeElement:i,scrollTo:({key:T,offset:N,behavior:M="smooth",block:ae})=>{if(typeof N=="number")a.unref(i).scrollTo({top:N,behavior:M});else if(T!==void 0){const R=a.unref(l)[T];if(R){const L=a.unref(y).findIndex(W=>W.key===T);$(L===a.unref(y).length-1),R.nativeElement.scrollIntoView({behavior:M,block:ae})}}}}),()=>f(a.createVNode(Sl,{value:E.value},{default:()=>[a.createVNode("div",a.mergeProps(r,{class:P(d,e.rootClassName,u,h,{[`${d}-reach-end`]:x.value}),ref:i,onScroll:S}),[a.unref(y).map(({key:T,...N})=>a.createVNode(Vr,a.mergeProps(N,{key:T,ref:M=>{M?l.value[T]=M:delete l.value[T]},typing:m.value?N.typing:!1,onTypingComplete:()=>{var M;(M=N.onTypingComplete)==null||M.call(N),C(T)}}),null))])]}))}});var Pl=Symbol("iconContext"),zr=function(){return a.inject(Pl,{prefixCls:a.ref("anticon"),rootClassName:a.ref(""),csp:a.ref()})};function Ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ol(e,t){return e&&e.contains?e.contains(t):!1}var Dr="data-vc-order",Ml="vc-icon-key",qt=new Map;function Xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ml}function Yt(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Il(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Wr(e){return Array.from((qt.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Gr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ut())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Dr,Il(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=Yt(t),l=i.firstChild;if(r){if(r==="queue"){var s=Wr(i).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(Dr))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,l)}else i.appendChild(o);return o}function Rl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yt(t);return Wr(n).find(function(r){return r.getAttribute(Xr(t))===e})}function Hl(e,t){var n=qt.get(e);if(!n||!Ol(document,n)){var r=Gr("",t),o=r.parentNode;qt.set(e,o),e.removeChild(r)}}function Ll(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Yt(n);Hl(r,n);var o=Rl(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=Gr(e,n);return i.setAttribute(Xr(n),t),i}function Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Bl(e,o,n[o])})}return e}function Bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function kl(e,t){Vl(e,"[@ant-design/icons-vue] ".concat(t))}function qr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Zt(e,t,n){return n?a.h(e.tag,Ur({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return Zt(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):a.h(e.tag,Ur({key:t},e.attrs),(e.children||[]).map(function(r,o){return Zt(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Yr(e){return He(e)[0]}function Zr(e){return e?Array.isArray(e)?e:[e]:[]}var jl=`
57
+ onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),wl="aria-",$l="data-";function Fr(e,t){return e.indexOf(t)===0}function Gt(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||Fr(o,wl))||n.data&&Fr(o,$l)||n.attr&&(jr.includes(o)||jr.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}function Tl(e){const[t,n]=B(e.value.length),r=a.computed(()=>e.value.slice(0,a.unref(t))),o=a.computed(()=>{const l=a.unref(r)[a.unref(r).length-1];return l?l.key:null});a.watch(e,()=>{var l;if(!(a.unref(r).length&&a.unref(r).every((s,c)=>{var d;return s.key===((d=e.value[c])==null?void 0:d.key)}))){if(a.unref(r).length===0)n(1);else for(let s=0;s<a.unref(r).length;s+=1)if(a.unref(r)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const i=Wt(l=>{l===a.unref(o)&&n(a.unref(t)+1)});return[r,i]}function Nl(e,t){const n=o=>typeof t=="function"?t(o):t?t[o.role]||{}:{};return a.computed(()=>(e.value||[]).map((o,i)=>{const l=o.key??`preset_${i}`;return{...n(o),...o,key:l}}))}const El=1,Al=a.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:a.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:{type:Function}},{autoScroll:!0}),setup(e,{expose:t}){const n=ie(e,["prefixCls","rootClassName","items","autoScroll","roles"]);a.toRef(e,"items"),a.toRef(e,"prefixCls");const r=Gt(n,{attr:!0,aria:!0}),o=a.ref(e.items);a.watch(()=>e.items,()=>{o.value=e.items});const i=a.ref(null),l=a.ref({}),{getPrefixCls:s}=z(),c=s("bubble",e.prefixCls),d=`${c}-list`,[f,u,h]=Lr(c),[m,g]=B(!1);a.watchEffect(()=>{g(!0),a.onWatcherCleanup(()=>{g(!1)})});const p=Nl(o,e.roles),[y,C]=Tl(p),[x,$]=B(!0),[v,w]=B(0),S=T=>{const N=T.target;$(N.scrollHeight-Math.abs(N.scrollTop)-N.clientHeight<=El)};a.watch(v,()=>{e.autoScroll&&a.unref(i)&&a.unref(x)&&a.unref(i).scrollTo({top:a.unref(i).scrollHeight})}),a.watch(()=>a.unref(y).length,()=>{var T;if(e.autoScroll){const N=(T=a.unref(y)[a.unref(y).length-2])==null?void 0:T.key,M=a.unref(l)[N];if(M){const{nativeElement:ae}=M,{top:R,bottom:L}=ae.getBoundingClientRect(),{top:W,bottom:he}=a.unref(i).getBoundingClientRect();R<he&&L>W&&(w(a.unref(v)+1),$(!0))}}});const b=Wt(()=>{e.autoScroll&&w(a.unref(v)+1)}),E=a.computed(()=>({onUpdate:b}));return t({nativeElement:i,scrollTo:({key:T,offset:N,behavior:M="smooth",block:ae})=>{if(typeof N=="number")a.unref(i).scrollTo({top:N,behavior:M});else if(T!==void 0){const R=a.unref(l)[T];if(R){const L=a.unref(y).findIndex(W=>W.key===T);$(L===a.unref(y).length-1),R.nativeElement.scrollIntoView({behavior:M,block:ae})}}}}),()=>f(a.createVNode(Sl,{value:E.value},{default:()=>[a.createVNode("div",a.mergeProps(r,{class:P(d,e.rootClassName,u,h,{[`${d}-reach-end`]:x.value}),ref:i,onScroll:S}),[a.unref(y).map(({key:T,...N})=>a.createVNode(Vr,a.mergeProps(N,{key:T,ref:M=>{M?l.value[T]=M:delete l.value[T]},typing:m.value?N.typing:!1,onTypingComplete:()=>{var M;(M=N.onTypingComplete)==null||M.call(N),C(T)}}),null))])]}))}});var Pl=Symbol("iconContext"),zr=function(){return a.inject(Pl,{prefixCls:a.ref("anticon"),rootClassName:a.ref(""),csp:a.ref()})};function Ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ol(e,t){return e&&e.contains?e.contains(t):!1}var Dr="data-vc-order",Ml="vc-icon-key",qt=new Map;function Xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ml}function Yt(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Il(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Wr(e){return Array.from((qt.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Gr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ut())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Dr,Il(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=Yt(t),l=i.firstChild;if(r){if(r==="queue"){var s=Wr(i).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(Dr))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,l)}else i.appendChild(o);return o}function Rl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yt(t);return Wr(n).find(function(r){return r.getAttribute(Xr(t))===e})}function Hl(e,t){var n=qt.get(e);if(!n||!Ol(document,n)){var r=Gr("",t),o=r.parentNode;qt.set(e,o),e.removeChild(r)}}function Ll(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Yt(n);Hl(r,n);var o=Rl(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=Gr(e,n);return i.setAttribute(Xr(n),t),i}function Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Bl(e,o,n[o])})}return e}function Bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function kl(e,t){Vl(e,"[@ant-design/icons-vue] ".concat(t))}function qr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Zt(e,t,n){return n?a.h(e.tag,Ur({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return Zt(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):a.h(e.tag,Ur({key:t},e.attrs),(e.children||[]).map(function(r,o){return Zt(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Yr(e){return He(e)[0]}function Zr(e){return e?Array.isArray(e)?e:[e]:[]}var jl=`
58
58
  .anticon {
59
59
  display: inline-block;
60
60
  color: inherit;
@@ -110,4 +110,4 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
110
110
  }
111
111
  `;function Kr(e){return e&&e.getRootNode&&e.getRootNode()}function Fl(e){return Ut()?Kr(e)instanceof ShadowRoot:!1}function zl(e){return Fl(e)?Kr(e):null}var Dl=function(){var t=zr(),n=t.prefixCls,r=t.csp,o=a.getCurrentInstance(),i=jl;n&&(i=i.replace(/anticon/g,n.value)),a.nextTick(function(){if(Ut()){var l=o.vnode.el,s=zl(l);Ll(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},Xl=["icon","primaryColor","secondaryColor"];function Wl(e,t){if(e==null)return{};var n=Gl(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gl(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ul(e,o,n[o])})}return e}function Ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=a.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function ql(e){var t=e.primaryColor,n=e.secondaryColor;Be.primaryColor=t,Be.secondaryColor=n||Yr(t),Be.calculated=!!n}function Yl(){return rt({},Be)}var oe=function(t,n){var r=rt({},t,n.attrs),o=r.icon,i=r.primaryColor,l=r.secondaryColor,s=Wl(r,Xl),c=Be;if(i&&(c={primaryColor:i,secondaryColor:l||Yr(i)}),kl(qr(o),"icon should be icon definiton, but got ".concat(o)),!qr(o))return null;var d=o;return d&&typeof d.icon=="function"&&(d=rt({},d,{icon:d.icon(c.primaryColor,c.secondaryColor)})),Zt(d.icon,"svg-".concat(d.name),rt({},s,{"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};oe.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},oe.inheritAttrs=!1,oe.displayName="IconBase",oe.getTwoToneColors=Yl,oe.setTwoToneColors=ql;function Zl(e,t){return _l(e)||Jl(e,t)||Ql(e,t)||Kl()}function Kl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
112
112
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ql(e,t){if(e){if(typeof e=="string")return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}}function Qr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jl(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,l,s;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function _l(e){if(Array.isArray(e))return e}function Jr(e){var t=Zr(e),n=Zl(t,2),r=n[0],o=n[1];return oe.setTwoToneColors({primaryColor:r,secondaryColor:o})}function es(){var e=oe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ts=a.defineComponent({name:"InsertStyles",setup:function(){return Dl(),function(){return null}}}),ns=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function rs(e,t){return ls(e)||is(e,t)||as(e,t)||os()}function os(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
113
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function as(e,t){if(e){if(typeof e=="string")return _r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _r(e,t)}}function _r(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function is(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,l,s;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function ls(e){if(Array.isArray(e))return e}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ve(e,o,n[o])})}return e}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ss(e,t){if(e==null)return{};var n=cs(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}Jr(Zi.primary);var V=function(t,n){var r,o=eo({},t,n.attrs),i=o.class,l=o.icon,s=o.spin,c=o.rotate,d=o.tabindex,f=o.twoToneColor,u=o.onClick,h=ss(o,ns),m=zr(),g=m.prefixCls,p=m.rootClassName,y=(r={},Ve(r,p.value,!!p.value),Ve(r,g.value,!0),Ve(r,"".concat(g.value,"-").concat(l.name),!!l.name),Ve(r,"".concat(g.value,"-spin"),!!s||l.name==="loading"),r),C=d;C===void 0&&u&&(C=-1);var x=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,$=Zr(f),v=rs($,2),w=v[0],S=v[1];return a.createVNode("span",eo({role:"img","aria-label":l.name},h,{onClick:u,class:[y,i],tabindex:C}),[a.createVNode(oe,{icon:l,primaryColor:w,secondaryColor:S,style:x},null),a.createVNode(ts,null,null)])};V.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},V.displayName="AntdIcon",V.inheritAttrs=!1,V.getTwoToneColor=es,V.setTwoToneColor=Jr;var ds={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){us(e,o,n[o])})}return e}function us(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=function(t,n){var r=to({},t,n.attrs);return a.createVNode(V,to({},r,{icon:ds}),null)};Kt.displayName="CloseCircleFilled",Kt.inheritAttrs=!1;var fs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){hs(e,o,n[o])})}return e}function hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qt=function(t,n){var r=no({},t,n.attrs);return a.createVNode(V,no({},r,{icon:fs}),null)};Qt.displayName="EllipsisOutlined",Qt.inheritAttrs=!1;var gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ms(e,o,n[o])})}return e}function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jt=function(t,n){var r=ro({},t,n.attrs);return a.createVNode(V,ro({},r,{icon:gs}),null)};Jt.displayName="FileExcelFilled",Jt.inheritAttrs=!1;var ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){bs(e,o,n[o])})}return e}function bs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _t=function(t,n){var r=oo({},t,n.attrs);return a.createVNode(V,oo({},r,{icon:ps}),null)};_t.displayName="FileImageFilled",_t.inheritAttrs=!1;var ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){vs(e,o,n[o])})}return e}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=function(t,n){var r=ao({},t,n.attrs);return a.createVNode(V,ao({},r,{icon:ys}),null)};en.displayName="FileMarkdownFilled",en.inheritAttrs=!1;var Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Cs(e,o,n[o])})}return e}function Cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tn=function(t,n){var r=io({},t,n.attrs);return a.createVNode(V,io({},r,{icon:Ss}),null)};tn.displayName="FilePdfFilled",tn.inheritAttrs=!1;var xs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ws(e,o,n[o])})}return e}function ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn=function(t,n){var r=lo({},t,n.attrs);return a.createVNode(V,lo({},r,{icon:xs}),null)};nn.displayName="FilePptFilled",nn.inheritAttrs=!1;var $s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function so(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ts(e,o,n[o])})}return e}function Ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=function(t,n){var r=so({},t,n.attrs);return a.createVNode(V,so({},r,{icon:$s}),null)};rn.displayName="FileTextFilled",rn.inheritAttrs=!1;var Ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Es(e,o,n[o])})}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(t,n){var r=co({},t,n.attrs);return a.createVNode(V,co({},r,{icon:Ns}),null)};on.displayName="FileWordFilled",on.inheritAttrs=!1;var As={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ps(e,o,n[o])})}return e}function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(t,n){var r=uo({},t,n.attrs);return a.createVNode(V,uo({},r,{icon:As}),null)};an.displayName="FileZipFilled",an.inheritAttrs=!1;var Os={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ms(e,o,n[o])})}return e}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function(t,n){var r=fo({},t,n.attrs);return a.createVNode(V,fo({},r,{icon:Os}),null)};ln.displayName="LeftOutlined",ln.inheritAttrs=!1;var Is={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Rs(e,o,n[o])})}return e}function Rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(t,n){var r=ho({},t,n.attrs);return a.createVNode(V,ho({},r,{icon:Is}),null)};sn.displayName="PlusOutlined",sn.inheritAttrs=!1;var Hs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ls(e,o,n[o])})}return e}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=function(t,n){var r=go({},t,n.attrs);return a.createVNode(V,go({},r,{icon:Hs}),null)};cn.displayName="RightOutlined",cn.inheritAttrs=!1;const Bs=a.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=ie(e,["prefixCls","info","class","direction","onClick","active","menu"]);a.toRef(e,"class");const n=a.computed(()=>Gt(t,{aria:!0,data:!0,attr:!0})),r=h=>{h.stopPropagation()},o=a.computed(()=>e.info.disabled),[i,l]=B(!1),[s,c]=B(!1),d=a.computed(()=>P(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!o.value},{[`${e.prefixCls}-item-disabled`]:o.value})),f=()=>{!o.value&&e.onClick&&e.onClick(e.info)},u=h=>{h&&c(!h)};return()=>a.createVNode(A.Tooltip,{title:e.info.label,open:i.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[a.createVNode("li",a.mergeProps(n.value,{class:d.value,onClick:f}),[e.info.icon&&a.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),a.createVNode(A.Typography.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l},content:e.info.label},null),e.menu&&!o.value&&a.createVNode(A.Dropdown,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:o.value,onOpenChange:u},{default:()=>a.createVNode(Qt,{onClick:r,disabled:o.value,class:`${e.prefixCls}-menu-icon`},null),overlay:()=>a.createVNode(A.Menu,e.menu,null)})])]})}}),mo=Symbol("GroupTitleContext"),dn=a.shallowRef(),Vs=e=>{a.provide(mo,e),a.watch(e,()=>{dn.value=a.unref(e),a.triggerRef(dn)},{immediate:!0,deep:!0})},ks=()=>a.inject(mo,a.computed(()=>dn.value||{})),js=a.defineComponent({props:{value:ge()},setup(e,{slots:t}){return Vs(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),po=a.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=a.useSlots(),n=ks(),r=a.computed(()=>{var o;return(o=t.default)==null?void 0:o.call(t)});return()=>a.createVNode("div",{class:P(`${n.value.prefixCls}-group-title`)},[r.value&&a.createVNode(A.Typography.Text,null,{default:()=>[r.value]})])}});function Fs(e,t){const{defaultValue:n,value:r=a.ref()}=t;let o=typeof e=="function"?e():e;r.value!==void 0&&(o=a.unref(r)),n!==void 0&&(o=typeof n=="function"?n():n);const i=a.ref(o),l=a.ref(o);a.watchEffect(()=>{let c=r.value!==void 0?r.value:i.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const d=l.value;i.value=c,a.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,d)}return a.watch(r,()=>{i.value=r.value}),[l,s]}const un="__ungrouped",zs=(e,t=[])=>{const n=a.computed(()=>{if(!a.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let r={sort:void 0,title:void 0};return typeof a.toValue(e)=="object"&&(r={...r,...a.toValue(e)}),{enableGroup:!0,sort:r.sort,title:r.title}});return a.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:un,data:a.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const r=a.toValue(t).reduce((l,s)=>{const c=s.group||un;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(r).sort(n.value.sort):Object.keys(r)).map(l=>({name:l===un?void 0:l,title:n.value.title,data:r[l]})),enableGroup:n.value.enableGroup}})},Ds=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${ee(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${ee(e.paddingXS)}`}}}},Xs=Te("Conversations",e=>{const t=ne(e,{});return Ds(t)},()=>({})),Ws=a.defineComponent({name:"AXConversations",__name:"Conversations",props:a.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=ie(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);a.toRef(e,"class"),a.toRef(e,"activeKey"),a.toRef(e,"prefixCls");const n=a.ref(e.activeKey),r=a.computed(()=>Gt(t,{attr:!0,aria:!0,data:!0})),[o,i]=Fs(e.defaultActiveKey,{value:n});a.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=zs(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=z(),d=a.computed(()=>s("conversations",e.prefixCls)),f=me("conversations"),[u,h,m]=Xs(d),g=a.computed(()=>P(d.value,f.value.className,e.class,e.rootClassName,h,m,{[`${d.value}-rtl`]:c.value==="rtl"})),p=y=>{i(y.key),e.onActiveChange&&e.onActiveChange(y.key)};return()=>u(a.createVNode("ul",a.mergeProps(r.value,{style:{...typeof f.value.style=="object"?f.value.style:{},...typeof e.style=="object"?e.style:{}},class:g.value}),[l.value.groupList.map((y,C)=>{const x=y.data.map(($,v)=>a.createVNode(Bs,{key:$.key||`key-${v}`,info:$,prefixCls:d.value,direction:c.value,class:P(e.classNames.item,f.value.classNames.item),style:{...f.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu($):e.menu,active:o.value===$.key,onClick:p},null));return l.value.enableGroup?a.createVNode("li",{key:y.name||`key-${C}`},[a.createVNode(js,{value:{prefixCls:d.value}},{default:()=>{var $;return[(($=y.title)==null?void 0:$.call(y,y.name,{components:{GroupTitle:po}}))||a.createVNode(po,{key:y.name},{default:()=>[y.name]})]}}),a.createVNode("ul",{class:`${d.value}-list`},[x])]):x})]))}}),Gs=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),o=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(o).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},Us=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},qs=Te("Welcome",e=>{const t=ne(e,{});return[Gs(t),Us(t)]},()=>({})),Ys=a.defineComponent({name:"AXWelcome",__name:"Welcome",props:a.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){a.toRef(e,"prefixCls");const{direction:t,getPrefixCls:n}=z(),r=n("welcome",e.prefixCls),o=me("welcome"),[i,l,s]=qs(r),c=a.computed(()=>{if(!e.icon)return null;let u=e.icon;return typeof e.icon=="string"&&e.icon.startsWith("http")&&(u=a.createVNode("img",{src:e.icon,alt:"icon"},null)),a.createVNode("div",{class:P(`${r}-icon`,o.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[u])}),d=a.computed(()=>e.title?a.createVNode(A.Typography.Title,{level:4,class:P(`${r}-title`,o.value.classNames.title,e.classNames.title),style:e.styles.title},{default:()=>[e.title]}):null),f=a.computed(()=>e.extra?a.createVNode("div",{class:P(`${r}-extra`,o.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[e.extra]):null);return()=>i(a.createVNode(A.Flex,{class:P(r,o.value.className,e.className,e.rootClassName,l,s,`${r}-${e.variant}`,{[`${r}-rtl`]:t.value==="rtl"}),style:e.style},{default:()=>[c.value,a.createVNode(A.Flex,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[e.extra?a.createVNode(A.Flex,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[d.value,f.value]}):d.value,e.description&&a.createVNode(A.Typography.Text,{class:P(`${r}-description`,o.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[e.description]})]})]}))}}),Zs=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Ks=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},Qs=Te("Prompts",e=>{const t=ne(e,{});return[Zs(t),Ks(t)]},()=>({})),bo=a.defineComponent({name:"AXPrompts",__name:"Prompts",props:a.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=ie(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);a.toRef(e,"class"),a.toRef(e,"prefixCls");const{getPrefixCls:n,direction:r}=z(),o=n("prompts",e.prefixCls),i=me("prompts"),[l,s,c]=Qs(o),d=a.computed(()=>P(o,i.value.className,e.class,e.rootClassName,s,c,{[`${o}-rtl`]:r.value==="rtl"})),f=a.computed(()=>P(`${o}-list`,i.value.classNames.list,e.classNames.list,{[`${o}-list-wrap`]:e.wrap},{[`${o}-list-vertical`]:e.vertical}));return()=>{var u;return l(a.createVNode("div",a.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof i.value.style=="object"?i.value.style:{}}}),[e.title&&a.createVNode(A.Typography.Title,{level:5,class:P(`${o}-title`,i.value.classNames.title,e.classNames.title),style:{...i.value.styles.title,...e.styles.title}},{default:()=>[e.title]}),a.createVNode("div",{class:f.value,style:{...i.value.styles.list,...e.styles.list}},[(u=e.items)==null?void 0:u.map((h,m)=>{const g=h.children&&h.children.length>0;return a.createVNode("div",{key:h.key||`key_${m}`,style:{...i.value.styles.item,...e.styles.item},class:P(`${o}-item`,i.value.classNames.item,e.classNames.item,{[`${o}-item-disabled`]:h.disabled,[`${o}-item-has-nest`]:g}),onClick:()=>{!g&&e.onItemClick&&e.onItemClick({data:h})}},[h.icon&&a.createVNode("div",{class:`${o}-icon`},[h.icon]),a.createVNode("div",{class:P(`${o}-content`,i.value.classNames.itemContent,e.classNames.itemContent),style:{...i.value.styles.itemContent,...e.styles.itemContent}},[h.label&&a.createVNode("h6",{class:`${o}-label`},[h.label]),h.description&&a.createVNode("p",{class:`${o}-desc`},[h.description]),g&&a.createVNode(bo,{class:`${o}-nested`,items:h.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}}),Js=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},_s=Te("Suggestion",e=>{const t=ne(e,{});return Js(t)},()=>({}));function ec(e,t,n,r,o){const[i,l]=B([]),s=(m,g=i.value)=>{let p=a.toValue(e);for(let y=0;y<m-1;y+=1){const C=g[y],x=p.find($=>$.value===C);if(!x)break;p=x.children||[]}return p},c=m=>m.map((g,p)=>{const C=s(p+1,m).find(x=>x.value===g);return C==null?void 0:C.value}),d=m=>{const g=i.value.length||1,p=s(g),y=p.findIndex($=>$.value===i.value[g-1]),C=p.length,x=p[(y+m+C)%C];l([...i.value.slice(0,g-1),x.value])},f=()=>{i.value.length>1&&l(i.value.slice(0,i.value.length-1))},u=()=>{const m=s(i.value.length+1);m.length&&l([...i.value,m[0].value])},h=Wt(m=>{if(a.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":d(1),m.preventDefault();break;case"ArrowUp":d(-1),m.preventDefault();break;case"ArrowRight":a.toValue(n)?f():u(),m.preventDefault();break;case"ArrowLeft":a.toValue(n)?u():f(),m.preventDefault();break;case"Enter":s(i.value.length+1).length||r(c(i.value)),m.preventDefault();break;case"Escape":o(),m.preventDefault();break}});return a.watch(()=>a.toValue(t),()=>{a.toValue(t)&&l([a.toValue(e)[0].value])},{immediate:!0}),[i,h]}const tc=a.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:a.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){a.toRef(e,"prefixCls");const{direction:t,getPrefixCls:n}=z(),r=a.computed(()=>n("suggestion",e.prefixCls));`${r.value}`;const o=a.computed(()=>t.value==="rtl"),i=me("suggestion"),[l,s,c]=_s(r),[d,f]=B(e.open),[u,h]=B(),m=w=>{var S;f(w),(S=e.onOpenChange)==null||S.call(e,w)},g=w=>{w===!1?m(!1):(h(w),m(!0))},p=()=>{m(!1)},y=a.computed(()=>typeof e.items=="function"?e.items(u.value):e.items),C=w=>{e.onSelect&&e.onSelect(w[w.length-1]),m(!1)},[x,$]=ec(y,d,o,C,p),v=a.computed(()=>{var w;return(w=e.children)==null?void 0:w.call(e,{onTrigger:g,onKeyDown:$})});return()=>l(a.createVNode(A.Cascader,{options:y.value,open:d.value,value:x.value,placement:o.value?"topRight":"topLeft",onDropdownVisibleChange:w=>{w||p()},class:P(e.rootClassName,r,s,c,{[`${r.value}-block`]:e.block}),onChange:C,dropdownMatchSelectWidth:e.block},{default:()=>a.createVNode("div",{class:P(r,i.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,s,c),style:{...i.value.style,...e.style}},[v.value])}))}}),yo=Symbol("AttachmentContext"),fn=a.shallowRef(),nc=e=>{a.provide(yo,e),a.watch(e,()=>{fn.value=a.unref(e),a.triggerRef(fn)},{immediate:!0,deep:!0})},ot=()=>a.inject(yo,a.computed(()=>fn.value||{})),rc=a.defineComponent({inheritAttrs:!1,props:{value:ge()},setup(e,{slots:t}){return nc(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),oc=a.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:a.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,r=a.computed(()=>e.placeholder||{}),o=a.useTemplateRef("upload-dragger"),i=ot(),[l,s]=B(!1),c=()=>{s(!0)},d=h=>{h.currentTarget.contains(h.relatedTarget)||s(!1)},f=()=>{s(!1)};t({nativeElement:o});const u=a.computed(()=>a.isVNode(e.placeholder)?e.placeholder:a.createVNode(A.Flex,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[a.createVNode(A.Typography.Text,{class:`${n}-icon`},{default:()=>[r.value.icon]}),a.createVNode(A.Typography.Title,{class:`${n}-title`,level:5},{default:()=>[r.value.title]}),a.createVNode(A.Typography.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[r.value.description]})]}));return()=>a.createVNode("div",{class:P(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:i.value.disabled},e.className),onDragenter:c,onDragleave:d,onDrop:f,"aria-hidden":i.value.disabled,style:e.style},[a.createVNode(A.Upload.Dragger,a.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[u.value]})])}}),vo=a.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=ot(),[n,r]=B(),[o,i]=B(null);a.watch(()=>e.getDropContainer,()=>{var d;const c=(d=e.getDropContainer)==null?void 0:d.call(e);n.value!==c&&r(c)}),a.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{i(!0)},d=h=>{h.preventDefault()},f=h=>{h.relatedTarget||i(!1)},u=h=>{i(!1),h.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",d),document.addEventListener("dragleave",f),document.addEventListener("drop",u),a.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",d),document.removeEventListener("dragleave",f),document.removeEventListener("drop",u)})}});const l=a.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?a.createVNode(a.Teleport,{to:n.value},{default:()=>[a.createVNode("div",{class:P(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:o.value?"block":"none"}},[e.children])]}):null}}),So=a.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=a.useTemplateRef("upload");return t({nativeElement:n}),()=>a.createVNode(A.Upload,a.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Co=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ac={},ic={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function lc(e,t){return a.openBlock(),a.createElementBlock("svg",ic,t[0]||(t[0]=[a.createElementVNode("title",null,"audio",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const sc=Co(ac,[["render",lc]]),cc={},dc={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function uc(e,t){return a.openBlock(),a.createElementBlock("svg",dc,t[0]||(t[0]=[a.createElementVNode("title",null,"video",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const fc=Co(cc,[["render",uc]]),hc=e=>e.indexOf("image/")===0,at=200;function gc(e){return new Promise(t=>{if(!e||!e.type||!hc(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:o}=n,i=r/o,l=i>1?at:at*i,s=i>1?at/i:at,c=document.createElement("canvas");c.width=l,c.height=s,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(c),c.getContext("2d").drawImage(n,0,0,l,s);const f=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(f)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function ke(e){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(e)}function mc(e,t){if(ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pc(e){var t=mc(e,"string");return ke(t)=="symbol"?t:t+""}function X(e,t,n){return(t=pc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=Math.round;function hn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const xo=(e,t,n)=>n===0?e:e/100;function je(e,t){const n=t||255;return e>n?n:e<0?0:e}class gn{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof gn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=je(t.r),this.g=je(t.g),this.b=je(t.b),this.a=typeof t.a=="number"?je(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=k(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],l={r:k(i("r")),g:k(i("g")),b:k(i("b")),a:k(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>k((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=k(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=k(this.getSaturation()*100),r=k(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=je(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=k(r*255);this.r=h,this.g=h,this.b=h}let i=0,l=0,s=0;const c=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(i=d,l=f):c>=1&&c<2?(i=f,l=d):c>=2&&c<3?(l=d,s=f):c>=3&&c<4?(l=f,s=d):c>=4&&c<5?(i=f,s=d):c>=5&&c<6&&(i=d,s=f);const u=r-d/2;this.r=k((i+u)*255),this.g=k((l+u)*255),this.b=k((s+u)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=k(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,d=k(r*(1-n)*255),f=k(r*(1-n*c)*255),u=k(r*(1-n*(1-c))*255);switch(s){case 0:this.g=u,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=u;break;case 3:this.r=d,this.g=f;break;case 4:this.r=u,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=hn(t,xo);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=hn(t,xo);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=hn(t,(r,o)=>o.includes("%")?k(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const bc=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list-card`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:n(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:n(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:o,height:o,lineHeight:1,[`&:not(${r}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:n(e.paddingSM).mul(-1).equal()}}}}},mn={"&, *":{boxSizing:"border-box"}},yc=e=>{const{componentCls:t,calc:n,antCls:r}=e,o=`${t}-drop-area`,i=`${t}-placeholder`;return{[o]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...mn,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...mn,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},vc=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...mn,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(o).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:o,height:o,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},wo=Te("Attachments",e=>{const t=ne(e,{});return[yc(t),vc(t),bc(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new gn(t).setA(.85).toRgbString()}}),pn=" ",bn="#8c8c8c",$o=a.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null},setup(e,{expose:t}){a.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{icon:a.createVNode(Jt,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:a.createVNode(_t,null,null),color:bn,ext:n},{icon:a.createVNode(en,null,null),color:bn,ext:["md","mdx"]},{icon:a.createVNode(tn,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:a.createVNode(nn,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:a.createVNode(on,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:a.createVNode(an,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:a.createVNode(fc,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:a.createVNode(sc,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function o(R,L){return L.some(W=>R.toLowerCase()===`.${W}`)}function i(R){let L=R;const W=["B","KB","MB","GB","TB","PB","EB"];let he=0;for(;L>=1024&&he<W.length-1;)L/=1024,he++;return`${L.toFixed(0)} ${W[he]}`}const l=ot(),s=a.computed(()=>l.value.disabled),c=a.computed(()=>e.item.name),d=a.computed(()=>e.item.size),f=a.computed(()=>e.item.percent),u=a.computed(()=>e.item.status||"done"),h=a.computed(()=>e.item.description),{getPrefixCls:m}=z(),g=a.computed(()=>m("attachment",e.prefixCls)),p=`${g.value}-list-card`,[y,C,x]=wo(g),$=a.useTemplateRef("file-list-card-container"),v=a.computed(()=>{const R=c.value||"",L=R.match(/^(.*)\.[^.]+$/);return{namePrefix:L?L[1]:R,nameSuffix:L?R.slice(L[1].length):""}}),w=a.computed(()=>o(v.value.nameSuffix,n)),S=a.computed(()=>h.value?h.value:u.value==="uploading"?`${f.value||0}%`:u.value==="error"?e.item.response||pn:d.value?i(d.value):pn),b=a.computed(()=>{for(const{ext:R,icon:L,color:W}of r)if(o(v.value.nameSuffix,R))return{icon:L,iconColor:W};return{icon:a.createVNode(rn,{key:"defaultIcon"},null),iconColor:bn}}),[E,T]=B();a.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let R=!0;gc(e.item.originFileObj).then(L=>{R&&T(L)}),a.onWatcherCleanup(()=>{R=!1})}T(void 0)},{immediate:!0});const N=a.computed(()=>e.item.thumbUrl||e.item.url||E.value),M=a.computed(()=>w.value&&(e.item.originFileObj||N.value)),ae=a.computed(()=>M.value?a.createVNode(a.Fragment,null,[a.createVNode("img",{alt:"preview",src:N.value},null),u.value!=="done"&&a.createVNode("div",{class:`${p}-img-mask`},[u.value==="uploading"&&f.value!==void 0&&a.createVNode(A.Progress,{percent:f.value,prefixCls:p},null),u.value==="error"&&a.createVNode("div",{class:`${p}-desc`},[a.createVNode("div",{class:`${p}-ellipsis-prefix`},[S.value])])])]):a.createVNode(a.Fragment,null,[a.createVNode("div",{class:`${p}-icon`,style:{color:b.value.iconColor}},[b.value.icon]),a.createVNode("div",{class:`${p}-content`},[a.createVNode("div",{class:`${p}-name`},[a.createVNode("div",{class:`${p}-ellipsis-prefix`},[v.value.namePrefix??pn]),a.createVNode("div",{class:`${p}-ellipsis-suffix`},[v.value.nameSuffix])]),a.createVNode("div",{class:`${p}-desc`},[a.createVNode("div",{class:`${p}-ellipsis-prefix`},[S.value])])])]));return t({nativeElement:$}),()=>y(a.createVNode("div",{class:P(p,{[`${p}-status-${u.value}`]:u.value,[`${p}-type-preview`]:M.value,[`${p}-type-overview`]:!M.value},e.className,C,x),style:e.style,ref:"file-list-card-container"},[ae.value,!s.value&&e.onRemove&&a.createVNode("button",{type:"button",class:`${p}-remove`,onClick:()=>{e.onRemove(e.item)}},[a.createVNode(Kt,null,null)])]))}}),To=1,Sc=a.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=a.computed(()=>`${e.prefixCls}-list`),n=a.useTemplateRef("file-list-container"),[r,o]=B(!1),i=ot();a.watchEffect(()=>{o(!0),a.onWatcherCleanup(()=>{o(!1)})});const[l,s]=B(!1),[c,d]=B(!1),f=()=>{const g=n.value;g&&(e.overflow==="scrollX"?(s(Math.abs(g.scrollLeft)>=To),d(g.scrollWidth-g.clientWidth-Math.abs(g.scrollLeft)>=To)):e.overflow==="scrollY"&&(s(g.scrollTop!==0),d(g.scrollHeight-g.clientHeight!==g.scrollTop)))};a.watch(()=>e.overflow,()=>{f()},{immediate:!0});const u=g=>{const p=n.value;p&&p.scrollTo({left:p.scrollLeft+g*p.clientWidth,behavior:"smooth"})},h=()=>{u(-1)},m=()=>{u(1)};return()=>a.createVNode("div",{class:P(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:l.value,[`${t.value}-overflow-ping-end`]:c.value},e.listClassName),ref:"file-list-container",onScroll:f,style:e.listStyle},[e.items.map(g=>a.createVNode($o,{key:g.uid,prefixCls:e.prefixCls,item:g,onRemove:e.onRemove,className:P(e.itemClassName),style:{...e.itemStyle}},null)),!i.value.disabled&&a.createVNode(So,{upload:e.upload,children:a.createVNode(A.Button,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[a.createVNode(sn,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&a.createVNode(a.Fragment,null,[a.createVNode(A.Button,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:a.createVNode(ln,null,null),onClick:h},null),a.createVNode(A.Button,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:a.createVNode(cn,null,null),onClick:m},null)])])}});function Cc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const xc=a.defineComponent({name:"AXAttachments",__name:"Attachments",props:a.mergeDefaults({prefixCls:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,disabled:{type:Boolean},placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null,onChange:{type:Function}},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=ie(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"]);a.toRef(e,"prefixCls");const{getPrefixCls:r,direction:o}=z(),i=r("attachment",e.prefixCls),l=me("attachments"),s=a.computed(()=>l.value.classNames),c=a.computed(()=>l.value.styles),d=a.useTemplateRef("attachments-container"),f=a.useTemplateRef("attachments-upload"),[u,h,m]=wo(i),g=a.computed(()=>P(h,m)),[p,y]=B(e.items);a.watch(()=>e.items,()=>{y(e.items)});const C=S=>{var b;y(S.fileList),(b=e.onChange)==null||b.call(e,S)},x=a.computed(()=>({...n,fileList:p.value,onChange:C})),$=S=>{const b=p.value.filter(E=>E.uid!==S.uid);C({file:S,fileList:b})},v=(S,b,E)=>{const T=typeof e.placeholder=="function"?e.placeholder(S):e.placeholder;return a.createVNode(oc,{placeholder:T,upload:x.value,prefixCls:i,className:P(s.value.placeholder,e.classNames.placeholder),style:{...c.value.placeholder,...e.styles.placeholder,...b==null?void 0:b.style}},null)},w=a.computed(()=>{let S;if(e.children)return a.createVNode(a.Fragment,null,[a.createVNode(So,{upload:x.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),a.createVNode(vo,{getDropContainer:e.getDropContainer,prefixCls:i,className:P(g.value,e.rootClassName),children:v("drop")},null)]);const b=p.value.length>0;return a.createVNode("div",{class:P(i,g.value,{[`${i}-rtl`]:o.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:o.value||"ltr",ref:"attachments-container"},[a.createVNode(Sc,{prefixCls:i,items:p.value,onRemove:$,overflow:e.overflow,upload:x.value,listClassName:P(s.value.list,e.classNames.list),listStyle:{...c.value.list,...e.styles.list,...!b&&{display:"none"}},itemClassName:P(s.value.item,e.classNames.item),itemStyle:{...c.value.item,...e.styles.item}},null),v("inline",b?{style:{display:"none"}}:{},f.value),a.createVNode(vo,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:i,className:g.value},Cc(S=v("drop"))?S:{default:()=>[S]})])});return t({nativeElement:d.value,upload:S=>{var E,T;const b=(T=(E=f.value)==null?void 0:E.nativeElement)==null?void 0:T.querySelector('input[type="file"]');if(b){const N=new DataTransfer;N.items.add(S),b.files=N.files,b.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>u(a.createVNode(rc,{value:{disabled:e.disabled}},{default:()=>[w.value]}))}}),wc=Object.assign(xc,{FileCard:$o});I.Attachments=wc,I.Bubble=Vr,I.BubbleList=Al,I.Conversations=Ws,I.Prompts=bo,I.Suggestion=tc,I.Welcome=Ys,I.XProvider=Xo,I.defaultPrefixCls=Bo,I.useXProviderContext=z,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
113
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function as(e,t){if(e){if(typeof e=="string")return _r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _r(e,t)}}function _r(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function is(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,l,s;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function ls(e){if(Array.isArray(e))return e}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ve(e,o,n[o])})}return e}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ss(e,t){if(e==null)return{};var n=cs(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}Jr(Zi.primary);var V=function(t,n){var r,o=eo({},t,n.attrs),i=o.class,l=o.icon,s=o.spin,c=o.rotate,d=o.tabindex,f=o.twoToneColor,u=o.onClick,h=ss(o,ns),m=zr(),g=m.prefixCls,p=m.rootClassName,y=(r={},Ve(r,p.value,!!p.value),Ve(r,g.value,!0),Ve(r,"".concat(g.value,"-").concat(l.name),!!l.name),Ve(r,"".concat(g.value,"-spin"),!!s||l.name==="loading"),r),C=d;C===void 0&&u&&(C=-1);var x=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,$=Zr(f),v=rs($,2),w=v[0],S=v[1];return a.createVNode("span",eo({role:"img","aria-label":l.name},h,{onClick:u,class:[y,i],tabindex:C}),[a.createVNode(oe,{icon:l,primaryColor:w,secondaryColor:S,style:x},null),a.createVNode(ts,null,null)])};V.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},V.displayName="AntdIcon",V.inheritAttrs=!1,V.getTwoToneColor=es,V.setTwoToneColor=Jr;var ds={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){us(e,o,n[o])})}return e}function us(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=function(t,n){var r=to({},t,n.attrs);return a.createVNode(V,to({},r,{icon:ds}),null)};Kt.displayName="CloseCircleFilled",Kt.inheritAttrs=!1;var fs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){hs(e,o,n[o])})}return e}function hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qt=function(t,n){var r=no({},t,n.attrs);return a.createVNode(V,no({},r,{icon:fs}),null)};Qt.displayName="EllipsisOutlined",Qt.inheritAttrs=!1;var gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ms(e,o,n[o])})}return e}function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jt=function(t,n){var r=ro({},t,n.attrs);return a.createVNode(V,ro({},r,{icon:gs}),null)};Jt.displayName="FileExcelFilled",Jt.inheritAttrs=!1;var ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){bs(e,o,n[o])})}return e}function bs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _t=function(t,n){var r=oo({},t,n.attrs);return a.createVNode(V,oo({},r,{icon:ps}),null)};_t.displayName="FileImageFilled",_t.inheritAttrs=!1;var ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){vs(e,o,n[o])})}return e}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=function(t,n){var r=ao({},t,n.attrs);return a.createVNode(V,ao({},r,{icon:ys}),null)};en.displayName="FileMarkdownFilled",en.inheritAttrs=!1;var Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Cs(e,o,n[o])})}return e}function Cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tn=function(t,n){var r=io({},t,n.attrs);return a.createVNode(V,io({},r,{icon:Ss}),null)};tn.displayName="FilePdfFilled",tn.inheritAttrs=!1;var xs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ws(e,o,n[o])})}return e}function ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn=function(t,n){var r=lo({},t,n.attrs);return a.createVNode(V,lo({},r,{icon:xs}),null)};nn.displayName="FilePptFilled",nn.inheritAttrs=!1;var $s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function so(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ts(e,o,n[o])})}return e}function Ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=function(t,n){var r=so({},t,n.attrs);return a.createVNode(V,so({},r,{icon:$s}),null)};rn.displayName="FileTextFilled",rn.inheritAttrs=!1;var Ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Es(e,o,n[o])})}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(t,n){var r=co({},t,n.attrs);return a.createVNode(V,co({},r,{icon:Ns}),null)};on.displayName="FileWordFilled",on.inheritAttrs=!1;var As={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ps(e,o,n[o])})}return e}function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(t,n){var r=uo({},t,n.attrs);return a.createVNode(V,uo({},r,{icon:As}),null)};an.displayName="FileZipFilled",an.inheritAttrs=!1;var Os={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ms(e,o,n[o])})}return e}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function(t,n){var r=fo({},t,n.attrs);return a.createVNode(V,fo({},r,{icon:Os}),null)};ln.displayName="LeftOutlined",ln.inheritAttrs=!1;var Is={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Rs(e,o,n[o])})}return e}function Rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(t,n){var r=ho({},t,n.attrs);return a.createVNode(V,ho({},r,{icon:Is}),null)};sn.displayName="PlusOutlined",sn.inheritAttrs=!1;var Hs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ls(e,o,n[o])})}return e}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=function(t,n){var r=go({},t,n.attrs);return a.createVNode(V,go({},r,{icon:Hs}),null)};cn.displayName="RightOutlined",cn.inheritAttrs=!1;const Bs=a.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=ie(e,["prefixCls","info","class","direction","onClick","active","menu"]);a.toRef(e,"class");const n=a.computed(()=>Gt(t,{aria:!0,data:!0,attr:!0})),r=h=>{h.stopPropagation()},o=a.computed(()=>e.info.disabled),[i,l]=B(!1),[s,c]=B(!1),d=a.computed(()=>P(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!o.value},{[`${e.prefixCls}-item-disabled`]:o.value})),f=()=>{!o.value&&e.onClick&&e.onClick(e.info)},u=h=>{h&&c(!h)};return()=>a.createVNode(A.Tooltip,{title:e.info.label,open:i.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[a.createVNode("li",a.mergeProps(n.value,{class:d.value,onClick:f}),[e.info.icon&&a.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),a.createVNode(A.Typography.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l},content:e.info.label},null),e.menu&&!o.value&&a.createVNode(A.Dropdown,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:o.value,onOpenChange:u},{default:()=>a.createVNode(Qt,{onClick:r,disabled:o.value,class:`${e.prefixCls}-menu-icon`},null),overlay:()=>a.createVNode(A.Menu,e.menu,null)})])]})}}),mo=Symbol("GroupTitleContext"),dn=a.shallowRef(),Vs=e=>{a.provide(mo,e),a.watch(e,()=>{dn.value=a.unref(e),a.triggerRef(dn)},{immediate:!0,deep:!0})},ks=()=>a.inject(mo,a.computed(()=>dn.value||{})),js=a.defineComponent({props:{value:ge()},setup(e,{slots:t}){return Vs(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),po=a.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=a.useSlots(),n=ks(),r=a.computed(()=>{var o;return(o=t.default)==null?void 0:o.call(t)});return()=>a.createVNode("div",{class:P(`${n.value.prefixCls}-group-title`)},[r.value&&a.createVNode(A.Typography.Text,null,{default:()=>[r.value]})])}});function Fs(e,t){const{defaultValue:n,value:r=a.ref()}=t;let o=typeof e=="function"?e():e;r.value!==void 0&&(o=a.unref(r)),n!==void 0&&(o=typeof n=="function"?n():n);const i=a.ref(o),l=a.ref(o);a.watchEffect(()=>{let c=r.value!==void 0?r.value:i.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const d=l.value;i.value=c,a.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,d)}return a.watch(r,()=>{i.value=r.value}),[l,s]}const un="__ungrouped",zs=(e,t=[])=>{const n=a.computed(()=>{if(!a.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let r={sort:void 0,title:void 0};return typeof a.toValue(e)=="object"&&(r={...r,...a.toValue(e)}),{enableGroup:!0,sort:r.sort,title:r.title}});return a.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:un,data:a.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const r=a.toValue(t).reduce((l,s)=>{const c=s.group||un;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(r).sort(n.value.sort):Object.keys(r)).map(l=>({name:l===un?void 0:l,title:n.value.title,data:r[l]})),enableGroup:n.value.enableGroup}})},Ds=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${ee(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${ee(e.paddingXS)}`}}}},Xs=Te("Conversations",e=>{const t=ne(e,{});return Ds(t)},()=>({})),Ws=a.defineComponent({name:"AXConversations",__name:"Conversations",props:a.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=ie(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);a.toRef(e,"class"),a.toRef(e,"activeKey"),a.toRef(e,"prefixCls");const n=a.ref(e.activeKey),r=a.computed(()=>Gt(t,{attr:!0,aria:!0,data:!0})),[o,i]=Fs(e.defaultActiveKey,{value:n});a.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=zs(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=z(),d=a.computed(()=>s("conversations",e.prefixCls)),f=me("conversations"),[u,h,m]=Xs(d),g=a.computed(()=>P(d.value,f.value.className,e.class,e.rootClassName,h,m,{[`${d.value}-rtl`]:c.value==="rtl"})),p=y=>{i(y.key),e.onActiveChange&&e.onActiveChange(y.key)};return()=>u(a.createVNode("ul",a.mergeProps(r.value,{style:{...typeof f.value.style=="object"?f.value.style:{},...typeof e.style=="object"?e.style:{}},class:g.value}),[l.value.groupList.map((y,C)=>{const x=y.data.map(($,v)=>a.createVNode(Bs,{key:$.key||`key-${v}`,info:$,prefixCls:d.value,direction:c.value,class:P(e.classNames.item,f.value.classNames.item),style:{...f.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu($):e.menu,active:o.value===$.key,onClick:p},null));return l.value.enableGroup?a.createVNode("li",{key:y.name||`key-${C}`},[a.createVNode(js,{value:{prefixCls:d.value}},{default:()=>{var $;return[(($=y.title)==null?void 0:$.call(y,y.name,{components:{GroupTitle:po}}))||a.createVNode(po,{key:y.name},{default:()=>[y.name]})]}}),a.createVNode("ul",{class:`${d.value}-list`},[x])]):x})]))}}),Gs=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),o=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(o).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},Us=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},qs=Te("Welcome",e=>{const t=ne(e,{});return[Gs(t),Us(t)]},()=>({})),Ys=a.defineComponent({name:"AXWelcome",__name:"Welcome",props:a.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){a.toRef(e,"prefixCls");const{direction:t,getPrefixCls:n}=z(),r=n("welcome",e.prefixCls),o=me("welcome"),[i,l,s]=qs(r),c=a.computed(()=>{if(!e.icon)return null;let u=e.icon;return typeof e.icon=="string"&&e.icon.startsWith("http")&&(u=a.createVNode("img",{src:e.icon,alt:"icon"},null)),a.createVNode("div",{class:P(`${r}-icon`,o.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[u])}),d=a.computed(()=>e.title?a.createVNode(A.Typography.Title,{level:4,class:P(`${r}-title`,o.value.classNames.title,e.classNames.title),style:e.styles.title},{default:()=>[e.title]}):null),f=a.computed(()=>e.extra?a.createVNode("div",{class:P(`${r}-extra`,o.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[e.extra]):null);return()=>i(a.createVNode(A.Flex,{class:P(r,o.value.className,e.className,e.rootClassName,l,s,`${r}-${e.variant}`,{[`${r}-rtl`]:t.value==="rtl"}),style:e.style},{default:()=>[c.value,a.createVNode(A.Flex,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[e.extra?a.createVNode(A.Flex,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[d.value,f.value]}):d.value,e.description&&a.createVNode(A.Typography.Text,{class:P(`${r}-description`,o.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[e.description]})]})]}))}}),Zs=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Ks=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},Qs=Te("Prompts",e=>{const t=ne(e,{});return[Zs(t),Ks(t)]},()=>({})),bo=a.defineComponent({name:"AXPrompts",__name:"Prompts",props:a.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=ie(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);a.toRef(e,"class"),a.toRef(e,"prefixCls");const{getPrefixCls:n,direction:r}=z(),o=n("prompts",e.prefixCls),i=me("prompts"),[l,s,c]=Qs(o),d=a.computed(()=>P(o,i.value.className,e.class,e.rootClassName,s,c,{[`${o}-rtl`]:r.value==="rtl"})),f=a.computed(()=>P(`${o}-list`,i.value.classNames.list,e.classNames.list,{[`${o}-list-wrap`]:e.wrap},{[`${o}-list-vertical`]:e.vertical}));return()=>{var u;return l(a.createVNode("div",a.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof i.value.style=="object"?i.value.style:{}}}),[e.title&&a.createVNode(A.Typography.Title,{level:5,class:P(`${o}-title`,i.value.classNames.title,e.classNames.title),style:{...i.value.styles.title,...e.styles.title}},{default:()=>[e.title]}),a.createVNode("div",{class:f.value,style:{...i.value.styles.list,...e.styles.list}},[(u=e.items)==null?void 0:u.map((h,m)=>{const g=h.children&&h.children.length>0;return a.createVNode("div",{key:h.key||`key_${m}`,style:{...i.value.styles.item,...e.styles.item},class:P(`${o}-item`,i.value.classNames.item,e.classNames.item,{[`${o}-item-disabled`]:h.disabled,[`${o}-item-has-nest`]:g}),onClick:()=>{!g&&e.onItemClick&&e.onItemClick({data:h})}},[h.icon&&a.createVNode("div",{class:`${o}-icon`},[h.icon]),a.createVNode("div",{class:P(`${o}-content`,i.value.classNames.itemContent,e.classNames.itemContent),style:{...i.value.styles.itemContent,...e.styles.itemContent}},[h.label&&a.createVNode("h6",{class:`${o}-label`},[h.label]),h.description&&a.createVNode("p",{class:`${o}-desc`},[h.description]),g&&a.createVNode(bo,{class:`${o}-nested`,items:h.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}}),Js=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},_s=Te("Suggestion",e=>{const t=ne(e,{});return Js(t)},()=>({}));function ec(e,t,n,r,o){const[i,l]=B([]),s=(m,g=i.value)=>{let p=a.toValue(e);for(let y=0;y<m-1;y+=1){const C=g[y],x=p.find($=>$.value===C);if(!x)break;p=x.children||[]}return p},c=m=>m.map((g,p)=>{const C=s(p+1,m).find(x=>x.value===g);return C==null?void 0:C.value}),d=m=>{const g=i.value.length||1,p=s(g),y=p.findIndex($=>$.value===i.value[g-1]),C=p.length,x=p[(y+m+C)%C];l([...i.value.slice(0,g-1),x.value])},f=()=>{i.value.length>1&&l(i.value.slice(0,i.value.length-1))},u=()=>{const m=s(i.value.length+1);m.length&&l([...i.value,m[0].value])},h=Wt(m=>{if(a.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":d(1),m.preventDefault();break;case"ArrowUp":d(-1),m.preventDefault();break;case"ArrowRight":a.toValue(n)?f():u(),m.preventDefault();break;case"ArrowLeft":a.toValue(n)?u():f(),m.preventDefault();break;case"Enter":s(i.value.length+1).length||r(c(i.value)),m.preventDefault();break;case"Escape":o(),m.preventDefault();break}});return a.watch(()=>a.toValue(t),()=>{a.toValue(t)&&l([a.toValue(e)[0].value])},{immediate:!0}),[i,h]}const tc=a.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:a.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){a.toRef(e,"prefixCls");const{direction:t,getPrefixCls:n}=z(),r=a.computed(()=>n("suggestion",e.prefixCls));`${r.value}`;const o=a.computed(()=>t.value==="rtl"),i=me("suggestion"),[l,s,c]=_s(r),[d,f]=B(e.open),[u,h]=B(),m=w=>{var S;f(w),(S=e.onOpenChange)==null||S.call(e,w)},g=w=>{w===!1?m(!1):(h(w),m(!0))},p=()=>{m(!1)},y=a.computed(()=>typeof e.items=="function"?e.items(u.value):e.items),C=w=>{e.onSelect&&e.onSelect(w[w.length-1]),m(!1)},[x,$]=ec(y,d,o,C,p),v=a.computed(()=>{var w;return(w=e.children)==null?void 0:w.call(e,{onTrigger:g,onKeyDown:$})});return()=>l(a.createVNode(A.Cascader,{options:y.value,open:d.value,value:x.value,placement:o.value?"topRight":"topLeft",onDropdownVisibleChange:w=>{w||p()},class:P(e.rootClassName,r.value,s,c,{[`${r.value}-block`]:e.block}),onChange:C,dropdownMatchSelectWidth:e.block},{default:()=>a.createVNode("div",{class:P(r.value,i.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,s,c),style:{...i.value.style,...e.style}},[v.value])}))}}),yo=Symbol("AttachmentContext"),fn=a.shallowRef(),nc=e=>{a.provide(yo,e),a.watch(e,()=>{fn.value=a.unref(e),a.triggerRef(fn)},{immediate:!0,deep:!0})},ot=()=>a.inject(yo,a.computed(()=>fn.value||{})),rc=a.defineComponent({inheritAttrs:!1,props:{value:ge()},setup(e,{slots:t}){return nc(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),oc=a.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:a.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,r=a.computed(()=>e.placeholder||{}),o=a.useTemplateRef("upload-dragger"),i=ot(),[l,s]=B(!1),c=()=>{s(!0)},d=h=>{h.currentTarget.contains(h.relatedTarget)||s(!1)},f=()=>{s(!1)};t({nativeElement:o});const u=a.computed(()=>a.isVNode(e.placeholder)?e.placeholder:a.createVNode(A.Flex,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[a.createVNode(A.Typography.Text,{class:`${n}-icon`},{default:()=>[r.value.icon]}),a.createVNode(A.Typography.Title,{class:`${n}-title`,level:5},{default:()=>[r.value.title]}),a.createVNode(A.Typography.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[r.value.description]})]}));return()=>a.createVNode("div",{class:P(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:i.value.disabled},e.className),onDragenter:c,onDragleave:d,onDrop:f,"aria-hidden":i.value.disabled,style:e.style},[a.createVNode(A.Upload.Dragger,a.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[u.value]})])}}),vo=a.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=ot(),[n,r]=B(),[o,i]=B(null);a.watch(()=>e.getDropContainer,()=>{var d;const c=(d=e.getDropContainer)==null?void 0:d.call(e);n.value!==c&&r(c)}),a.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{i(!0)},d=h=>{h.preventDefault()},f=h=>{h.relatedTarget||i(!1)},u=h=>{i(!1),h.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",d),document.addEventListener("dragleave",f),document.addEventListener("drop",u),a.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",d),document.removeEventListener("dragleave",f),document.removeEventListener("drop",u)})}});const l=a.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?a.createVNode(a.Teleport,{to:n.value},{default:()=>[a.createVNode("div",{class:P(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:o.value?"block":"none"}},[e.children])]}):null}}),So=a.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=a.useTemplateRef("upload");return t({nativeElement:n}),()=>a.createVNode(A.Upload,a.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Co=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ac={},ic={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function lc(e,t){return a.openBlock(),a.createElementBlock("svg",ic,t[0]||(t[0]=[a.createElementVNode("title",null,"audio",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const sc=Co(ac,[["render",lc]]),cc={},dc={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function uc(e,t){return a.openBlock(),a.createElementBlock("svg",dc,t[0]||(t[0]=[a.createElementVNode("title",null,"video",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const fc=Co(cc,[["render",uc]]),hc=e=>e.indexOf("image/")===0,at=200;function gc(e){return new Promise(t=>{if(!e||!e.type||!hc(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:o}=n,i=r/o,l=i>1?at:at*i,s=i>1?at/i:at,c=document.createElement("canvas");c.width=l,c.height=s,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(c),c.getContext("2d").drawImage(n,0,0,l,s);const f=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(f)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function ke(e){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(e)}function mc(e,t){if(ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pc(e){var t=mc(e,"string");return ke(t)=="symbol"?t:t+""}function X(e,t,n){return(t=pc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=Math.round;function hn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const xo=(e,t,n)=>n===0?e:e/100;function je(e,t){const n=t||255;return e>n?n:e<0?0:e}class gn{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof gn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=je(t.r),this.g=je(t.g),this.b=je(t.b),this.a=typeof t.a=="number"?je(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=k(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],l={r:k(i("r")),g:k(i("g")),b:k(i("b")),a:k(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>k((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=k(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=k(this.getSaturation()*100),r=k(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=je(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=k(r*255);this.r=h,this.g=h,this.b=h}let i=0,l=0,s=0;const c=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(i=d,l=f):c>=1&&c<2?(i=f,l=d):c>=2&&c<3?(l=d,s=f):c>=3&&c<4?(l=f,s=d):c>=4&&c<5?(i=f,s=d):c>=5&&c<6&&(i=d,s=f);const u=r-d/2;this.r=k((i+u)*255),this.g=k((l+u)*255),this.b=k((s+u)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=k(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,d=k(r*(1-n)*255),f=k(r*(1-n*c)*255),u=k(r*(1-n*(1-c))*255);switch(s){case 0:this.g=u,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=u;break;case 3:this.r=d,this.g=f;break;case 4:this.r=u,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=hn(t,xo);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=hn(t,xo);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=hn(t,(r,o)=>o.includes("%")?k(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const bc=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list-card`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:n(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:n(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:o,height:o,lineHeight:1,[`&:not(${r}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:n(e.paddingSM).mul(-1).equal()}}}}},mn={"&, *":{boxSizing:"border-box"}},yc=e=>{const{componentCls:t,calc:n,antCls:r}=e,o=`${t}-drop-area`,i=`${t}-placeholder`;return{[o]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...mn,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...mn,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},vc=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...mn,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(o).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:o,height:o,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},wo=Te("Attachments",e=>{const t=ne(e,{});return[yc(t),vc(t),bc(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new gn(t).setA(.85).toRgbString()}}),pn=" ",bn="#8c8c8c",$o=a.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null},setup(e,{expose:t}){a.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{icon:a.createVNode(Jt,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:a.createVNode(_t,null,null),color:bn,ext:n},{icon:a.createVNode(en,null,null),color:bn,ext:["md","mdx"]},{icon:a.createVNode(tn,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:a.createVNode(nn,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:a.createVNode(on,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:a.createVNode(an,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:a.createVNode(fc,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:a.createVNode(sc,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function o(R,L){return L.some(W=>R.toLowerCase()===`.${W}`)}function i(R){let L=R;const W=["B","KB","MB","GB","TB","PB","EB"];let he=0;for(;L>=1024&&he<W.length-1;)L/=1024,he++;return`${L.toFixed(0)} ${W[he]}`}const l=ot(),s=a.computed(()=>l.value.disabled),c=a.computed(()=>e.item.name),d=a.computed(()=>e.item.size),f=a.computed(()=>e.item.percent),u=a.computed(()=>e.item.status||"done"),h=a.computed(()=>e.item.description),{getPrefixCls:m}=z(),g=a.computed(()=>m("attachment",e.prefixCls)),p=`${g.value}-list-card`,[y,C,x]=wo(g),$=a.useTemplateRef("file-list-card-container"),v=a.computed(()=>{const R=c.value||"",L=R.match(/^(.*)\.[^.]+$/);return{namePrefix:L?L[1]:R,nameSuffix:L?R.slice(L[1].length):""}}),w=a.computed(()=>o(v.value.nameSuffix,n)),S=a.computed(()=>h.value?h.value:u.value==="uploading"?`${f.value||0}%`:u.value==="error"?e.item.response||pn:d.value?i(d.value):pn),b=a.computed(()=>{for(const{ext:R,icon:L,color:W}of r)if(o(v.value.nameSuffix,R))return{icon:L,iconColor:W};return{icon:a.createVNode(rn,{key:"defaultIcon"},null),iconColor:bn}}),[E,T]=B();a.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let R=!0;gc(e.item.originFileObj).then(L=>{R&&T(L)}),a.onWatcherCleanup(()=>{R=!1})}T(void 0)},{immediate:!0});const N=a.computed(()=>e.item.thumbUrl||e.item.url||E.value),M=a.computed(()=>w.value&&(e.item.originFileObj||N.value)),ae=a.computed(()=>M.value?a.createVNode(a.Fragment,null,[a.createVNode("img",{alt:"preview",src:N.value},null),u.value!=="done"&&a.createVNode("div",{class:`${p}-img-mask`},[u.value==="uploading"&&f.value!==void 0&&a.createVNode(A.Progress,{percent:f.value,prefixCls:p},null),u.value==="error"&&a.createVNode("div",{class:`${p}-desc`},[a.createVNode("div",{class:`${p}-ellipsis-prefix`},[S.value])])])]):a.createVNode(a.Fragment,null,[a.createVNode("div",{class:`${p}-icon`,style:{color:b.value.iconColor}},[b.value.icon]),a.createVNode("div",{class:`${p}-content`},[a.createVNode("div",{class:`${p}-name`},[a.createVNode("div",{class:`${p}-ellipsis-prefix`},[v.value.namePrefix??pn]),a.createVNode("div",{class:`${p}-ellipsis-suffix`},[v.value.nameSuffix])]),a.createVNode("div",{class:`${p}-desc`},[a.createVNode("div",{class:`${p}-ellipsis-prefix`},[S.value])])])]));return t({nativeElement:$}),()=>y(a.createVNode("div",{class:P(p,{[`${p}-status-${u.value}`]:u.value,[`${p}-type-preview`]:M.value,[`${p}-type-overview`]:!M.value},e.className,C,x),style:e.style,ref:"file-list-card-container"},[ae.value,!s.value&&e.onRemove&&a.createVNode("button",{type:"button",class:`${p}-remove`,onClick:()=>{e.onRemove(e.item)}},[a.createVNode(Kt,null,null)])]))}}),To=1,Sc=a.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=a.computed(()=>`${e.prefixCls}-list`),n=a.useTemplateRef("file-list-container"),[r,o]=B(!1),i=ot();a.watchEffect(()=>{o(!0),a.onWatcherCleanup(()=>{o(!1)})});const[l,s]=B(!1),[c,d]=B(!1),f=()=>{const g=n.value;g&&(e.overflow==="scrollX"?(s(Math.abs(g.scrollLeft)>=To),d(g.scrollWidth-g.clientWidth-Math.abs(g.scrollLeft)>=To)):e.overflow==="scrollY"&&(s(g.scrollTop!==0),d(g.scrollHeight-g.clientHeight!==g.scrollTop)))};a.watch(()=>e.overflow,()=>{f()},{immediate:!0});const u=g=>{const p=n.value;p&&p.scrollTo({left:p.scrollLeft+g*p.clientWidth,behavior:"smooth"})},h=()=>{u(-1)},m=()=>{u(1)};return()=>a.createVNode("div",{class:P(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:l.value,[`${t.value}-overflow-ping-end`]:c.value},e.listClassName),ref:"file-list-container",onScroll:f,style:e.listStyle},[e.items.map(g=>a.createVNode($o,{key:g.uid,prefixCls:e.prefixCls,item:g,onRemove:e.onRemove,className:P(e.itemClassName),style:{...e.itemStyle}},null)),!i.value.disabled&&a.createVNode(So,{upload:e.upload,children:a.createVNode(A.Button,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[a.createVNode(sn,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&a.createVNode(a.Fragment,null,[a.createVNode(A.Button,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:a.createVNode(ln,null,null),onClick:h},null),a.createVNode(A.Button,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:a.createVNode(cn,null,null),onClick:m},null)])])}});function Cc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const xc=a.defineComponent({name:"AXAttachments",__name:"Attachments",props:a.mergeDefaults({prefixCls:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,disabled:{type:Boolean},placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null,onChange:{type:Function}},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=ie(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"]);a.toRef(e,"prefixCls");const{getPrefixCls:r,direction:o}=z(),i=r("attachment",e.prefixCls),l=me("attachments"),s=a.computed(()=>l.value.classNames),c=a.computed(()=>l.value.styles),d=a.useTemplateRef("attachments-container"),f=a.useTemplateRef("attachments-upload"),[u,h,m]=wo(i),g=a.computed(()=>P(h,m)),[p,y]=B(e.items);a.watch(()=>e.items,()=>{y(e.items)});const C=S=>{var b;y(S.fileList),(b=e.onChange)==null||b.call(e,S)},x=a.computed(()=>({...n,fileList:p.value,onChange:C})),$=S=>{const b=p.value.filter(E=>E.uid!==S.uid);C({file:S,fileList:b})},v=(S,b,E)=>{const T=typeof e.placeholder=="function"?e.placeholder(S):e.placeholder;return a.createVNode(oc,{placeholder:T,upload:x.value,prefixCls:i,className:P(s.value.placeholder,e.classNames.placeholder),style:{...c.value.placeholder,...e.styles.placeholder,...b==null?void 0:b.style}},null)},w=a.computed(()=>{let S;if(e.children)return a.createVNode(a.Fragment,null,[a.createVNode(So,{upload:x.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),a.createVNode(vo,{getDropContainer:e.getDropContainer,prefixCls:i,className:P(g.value,e.rootClassName),children:v("drop")},null)]);const b=p.value.length>0;return a.createVNode("div",{class:P(i,g.value,{[`${i}-rtl`]:o.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:o.value||"ltr",ref:"attachments-container"},[a.createVNode(Sc,{prefixCls:i,items:p.value,onRemove:$,overflow:e.overflow,upload:x.value,listClassName:P(s.value.list,e.classNames.list),listStyle:{...c.value.list,...e.styles.list,...!b&&{display:"none"}},itemClassName:P(s.value.item,e.classNames.item),itemStyle:{...c.value.item,...e.styles.item}},null),v("inline",b?{style:{display:"none"}}:{},f.value),a.createVNode(vo,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:i,className:g.value},Cc(S=v("drop"))?S:{default:()=>[S]})])});return t({nativeElement:d.value,upload:S=>{var E,T;const b=(T=(E=f.value)==null?void 0:E.nativeElement)==null?void 0:T.querySelector('input[type="file"]');if(b){const N=new DataTransfer;N.items.add(S),b.files=N.files,b.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>u(a.createVNode(rc,{value:{disabled:e.disabled}},{default:()=>[w.value]}))}}),wc=Object.assign(xc,{FileCard:$o});I.Attachments=wc,I.Bubble=Vr,I.BubbleList=Al,I.Conversations=Ws,I.Prompts=bo,I.Suggestion=tc,I.Welcome=Ys,I.XProvider=Xo,I.defaultPrefixCls=Bo,I.useXProviderContext=z,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
@@ -4,7 +4,7 @@ export type SuggestionItem = {
4
4
  value: string;
5
5
  icon?: VNode;
6
6
  children?: SuggestionItem[];
7
- extra?: VNode;
7
+ extra?: VNode | string;
8
8
  };
9
9
  export interface RenderChildrenProps<T> {
10
10
  onTrigger: (info?: T | false) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ant-design-x-vue",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A vue library developed with dumi",
5
5
  "scripts": {
6
6
  "build": "vite build && vue-tsc --project ./tsconfig.build.json",