st-comp 0.0.280 → 0.0.281

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.
Files changed (116) hide show
  1. package/es/CustomFunction.cjs +2 -2
  2. package/es/CustomFunction.js +512 -306
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +25 -25
  5. package/es/Kline.cjs +1 -1
  6. package/es/Kline.js +10 -10
  7. package/es/KlineBasic.cjs +1 -1
  8. package/es/KlineBasic.js +39 -39
  9. package/es/KlineConfig.cjs +1 -1
  10. package/es/KlineConfig.js +16 -16
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +9 -9
  13. package/es/KlinePlus.cjs +1 -1
  14. package/es/KlinePlus.js +11 -11
  15. package/es/MonacoEditor.cjs +1 -1
  16. package/es/MonacoEditor.js +17 -17
  17. package/es/Pagination.cjs +1 -1
  18. package/es/Pagination.js +13 -13
  19. package/es/PasswordPrompt.cjs +1 -1
  20. package/es/PasswordPrompt.js +2 -2
  21. package/es/Table.cjs +1 -1
  22. package/es/Table.js +22 -22
  23. package/es/User.cjs +1 -1
  24. package/es/User.js +18 -18
  25. package/es/VarSelectDialog.cjs +1 -1
  26. package/es/VarSelectDialog.js +19 -19
  27. package/es/VarietyAiHelper.cjs +7 -7
  28. package/es/VarietyAiHelper.js +426 -437
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +7 -7
  31. package/es/VarietySearch.cjs +1 -1
  32. package/es/VarietySearch.js +29 -29
  33. package/es/{VarietySelect-c402bade.js → VarietySelect-3fc0f0ce.js} +3 -3
  34. package/es/{VarietySelect-aa082a9c.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
  35. package/es/VarietyTextCopy.cjs +1 -1
  36. package/es/VarietyTextCopy.js +10 -10
  37. package/es/VirtualTable.cjs +1 -1
  38. package/es/VirtualTable.js +94 -94
  39. package/es/{_baseClone-10bdb989.cjs → _baseClone-f8e5d3ba.cjs} +1 -1
  40. package/es/{_baseClone-98af8b33.js → _baseClone-fb6a3947.js} +2 -2
  41. package/es/{config-provider-563023c9.js → config-provider-06d8207f.js} +3 -3
  42. package/es/{config-provider-33a127c4.cjs → config-provider-bb61bd3e.cjs} +1 -1
  43. package/es/{dropdown-ce7496c7.cjs → dropdown-8fa21bfd.cjs} +1 -1
  44. package/es/{dropdown-feea8702.js → dropdown-bcf8d198.js} +2 -2
  45. package/es/{el-autocomplete-d9253bba.cjs → el-autocomplete-13b9e372.cjs} +1 -1
  46. package/es/{el-autocomplete-eac54f9f.js → el-autocomplete-419bfbcf.js} +5 -5
  47. package/es/{el-button-8a9721f8.js → el-button-ee9fe159.js} +3 -3
  48. package/es/{el-button-8259594b.cjs → el-button-fac5e058.cjs} +1 -1
  49. package/es/{el-checkbox-6303fc92.cjs → el-checkbox-6cf1a71c.cjs} +1 -1
  50. package/es/{el-checkbox-c328b097.js → el-checkbox-b5ac7f04.js} +4 -4
  51. package/es/{el-dialog-67536fac.js → el-dialog-060b3735.js} +4 -4
  52. package/es/{el-dialog-8788bcc1.cjs → el-dialog-54aebacd.cjs} +1 -1
  53. package/es/{el-form-item-8efcf2c3.js → el-form-item-2be6b683.js} +3 -3
  54. package/es/{el-form-item-95e68669.cjs → el-form-item-758dfefa.cjs} +1 -1
  55. package/es/{el-input-c8a9bb71.cjs → el-input-7fe53030.cjs} +1 -1
  56. package/es/{el-input-e66500b7.js → el-input-d23f5442.js} +60 -60
  57. package/es/{el-input-number-68ee0d65.js → el-input-number-484fb184.js} +15 -15
  58. package/es/{el-input-number-d7a81922.cjs → el-input-number-f0f4eedb.cjs} +1 -1
  59. package/es/{el-loading-db4c6d13.js → el-loading-9d3e405c.js} +1 -1
  60. package/es/{el-loading-62132db2.cjs → el-loading-fafaaa7b.cjs} +1 -1
  61. package/es/{el-menu-item-c2523d82.js → el-menu-item-0ac22681.js} +4 -4
  62. package/es/{el-menu-item-4b8e7794.cjs → el-menu-item-c91ae430.cjs} +1 -1
  63. package/es/{el-message-box-7c13546c.js → el-message-box-568a0aa6.js} +9 -9
  64. package/es/{el-message-box-fed174f0.cjs → el-message-box-ceacb54e.cjs} +1 -1
  65. package/es/{el-overlay-17299785.cjs → el-overlay-9f36e73c.cjs} +1 -1
  66. package/es/{el-overlay-36f223e9.js → el-overlay-cb5c85aa.js} +3 -3
  67. package/es/{el-popconfirm-520b2928.cjs → el-popconfirm-4a8cd35c.cjs} +1 -1
  68. package/es/{el-popconfirm-a857c54a.js → el-popconfirm-6f8e65c8.js} +4 -4
  69. package/es/{el-popper-852446fd.js → el-popper-0454c8e8.js} +1 -1
  70. package/es/{el-popper-f824c63b.cjs → el-popper-acd0ff35.cjs} +1 -1
  71. package/es/{el-segmented-bf08279f.js → el-segmented-64dc7258.js} +2 -2
  72. package/es/{el-segmented-45dcc036.cjs → el-segmented-eb3c8e65.cjs} +1 -1
  73. package/es/{el-select-a34348e1.js → el-select-a573c78b.js} +8 -8
  74. package/es/{el-select-d2958ae8.cjs → el-select-c317294a.cjs} +1 -1
  75. package/es/{el-table-column-e2be313e.js → el-table-column-1c443963.js} +9 -9
  76. package/es/{el-table-column-ad70ee0e.cjs → el-table-column-f555115d.cjs} +1 -1
  77. package/es/{el-tag-9bcfae32.js → el-tag-2d8a3fe7.js} +2 -2
  78. package/es/{el-tag-527f06f0.cjs → el-tag-dca1292c.cjs} +1 -1
  79. package/es/{el-text-fc345ffd.cjs → el-text-649c986a.cjs} +1 -1
  80. package/es/{el-text-f9379288.js → el-text-761e6717.js} +1 -1
  81. package/es/{index-7711aa69.cjs → index-11181b5f.cjs} +1 -1
  82. package/es/{index-5e76a22d.cjs → index-21a3dc89.cjs} +1 -1
  83. package/es/{index-99bb359f.cjs → index-33e039e3.cjs} +1 -1
  84. package/es/{index-bb0bc131.cjs → index-4614e8e9.cjs} +2 -2
  85. package/es/{index-dfb34e00.js → index-53beef02.js} +1 -1
  86. package/es/index-5cada1ed.cjs +1 -0
  87. package/es/{index-3ed0c678.cjs → index-6a36e1fc.cjs} +1 -1
  88. package/es/{index-60900c6c.js → index-6a52dc7c.js} +112 -82
  89. package/es/{index-b9a26e7f.js → index-78dab605.js} +3 -3
  90. package/es/{index-99d4335d.cjs → index-798fec2d.cjs} +1 -1
  91. package/es/{index-47d30a52.js → index-9573f74b.js} +1 -1
  92. package/es/{index-69d2353a.js → index-ab0ad219.js} +9 -9
  93. package/es/{index-3a0a7c36.cjs → index-beb5cb7d.cjs} +1 -1
  94. package/es/{index-86678b72.js → index-c09fc6f5.js} +2 -2
  95. package/es/{index-5dec535a.cjs → index-ceae4c47.cjs} +1 -1
  96. package/es/{index-a0522466.js → index-d9379af4.js} +2 -2
  97. package/es/{index-7c4d8f5d.js → index-dddacf80.js} +1 -1
  98. package/es/{index-2419d69a.js → index-e2e58ea9.js} +5 -5
  99. package/es/{python-922eca89.cjs → python-60e79979.cjs} +1 -1
  100. package/es/{python-6eafa04b.js → python-673bf8b8.js} +17 -17
  101. package/es/style.css +1 -1
  102. package/es/{use-form-item-0a831287.cjs → use-form-item-76516e50.cjs} +1 -1
  103. package/es/{use-form-item-187cd7db.js → use-form-item-784142b4.js} +16 -16
  104. package/es/{use-global-config-c90c91f7.cjs → use-global-config-7ff9a1c2.cjs} +1 -1
  105. package/es/{use-global-config-17dafd40.js → use-global-config-9a4ccf33.js} +2 -2
  106. package/es/{validator-ee5bc3eb.cjs → validator-1926345b.cjs} +1 -1
  107. package/es/{validator-800ed2ba.js → validator-a66ec4f8.js} +1 -1
  108. package/es/{zh-cn-26cc7233.js → zh-cn-51c2e528.js} +1 -1
  109. package/es/{zh-cn-a22a6792.cjs → zh-cn-ad12d9f5.cjs} +1 -1
  110. package/lib/bundle.js +1 -1
  111. package/lib/bundle.umd.cjs +197 -197
  112. package/lib/{index-74ed48c6.js → index-7282d3be.js} +22370 -22147
  113. package/lib/{python-7aaa84e4.js → python-418be57d.js} +1 -1
  114. package/lib/style.css +1 -1
  115. package/package.json +1 -1
  116. package/es/index-3e7d5ffb.cjs +0 -1
@@ -1,38 +1,38 @@
1
- import { E as ne, w as Me, o as Ee, p as Ve, s as Be, c as xe, u as Ne, t as Ie, v as Ue, x as Qe, y as _e } from "./index-60900c6c.js";
2
- import { e as Fe, b as de, E as me } from "./el-popper-852446fd.js";
3
- import { E as Pe } from "./el-input-e66500b7.js";
4
- import { b as pe, s as oe, c as U, u as re, a as se, p as ze, w as ge, n as Ye, B as Je, d as G } from "./base-dd156b8e.js";
5
- import { k as ye, i as Le } from "./use-form-item-187cd7db.js";
6
- import { defineComponent as ie, inject as Ae, ref as T, computed as f, watch as ae, openBlock as i, createElementBlock as v, normalizeClass as C, normalizeStyle as L, createBlock as R, unref as c, withCtx as S, resolveDynamicComponent as he, renderSlot as le, provide as Oe, reactive as ke, toRef as fe, createVNode as A, createTextVNode as X, isVNode as Ke, cloneVNode as He, createElementVNode as d, toDisplayString as O, createCommentVNode as P, nextTick as te, Fragment as W, renderList as ve } from "vue";
7
- import { f as Re } from "./vnode-8ee9bf4e.js";
8
- import { E as $e } from "./el-button-8a9721f8.js";
9
- import { E as je } from "./el-dialog-67536fac.js";
10
- import { E as ee } from "./index-2419d69a.js";
11
- import "./el-overlay-36f223e9.js";
1
+ import { E as ie, w as Ne, s as Ue, t as Ie, v as Fe, c as ze, u as Qe, x as Ye, y as Pe, z as Je, A as Le } from "./index-6a52dc7c.js";
2
+ import { e as Oe, b as me, E as ye } from "./el-popper-0454c8e8.js";
3
+ import { E as He } from "./el-input-d23f5442.js";
4
+ import { b as ke, s as ue, c as I, u as ce, a as ne, p as Ke, w as be, n as Re, B as $e, d as q } from "./base-dd156b8e.js";
5
+ import { k as we, i as je } from "./use-form-item-784142b4.js";
6
+ import { defineComponent as de, inject as Se, ref as D, computed as f, watch as oe, openBlock as r, createElementBlock as v, normalizeClass as E, normalizeStyle as L, createBlock as R, unref as c, withCtx as C, resolveDynamicComponent as Te, renderSlot as re, provide as Ge, reactive as De, toRef as ge, createVNode as k, createTextVNode as Z, isVNode as qe, cloneVNode as Xe, createElementVNode as d, toDisplayString as O, createCommentVNode as Q, nextTick as le, Fragment as ee, renderList as Ae } from "vue";
7
+ import { f as Ze } from "./vnode-8ee9bf4e.js";
8
+ import { E as We } from "./el-button-ee9fe159.js";
9
+ import { E as et } from "./el-dialog-060b3735.js";
10
+ import { E as X } from "./index-e2e58ea9.js";
11
+ import "./el-overlay-cb5c85aa.js";
12
12
  import "./el-tooltip-4ed993c7.js";
13
- import { U as qe, R as Ge } from "./index-53cc4e43.js";
14
- import { s as Xe } from "./aiTools-ce2f9281.js";
15
- import { _ as Ze } from "./_plugin-vue_export-helper-dad06003.js";
13
+ import { U as tt, R as st } from "./index-53cc4e43.js";
14
+ import { s as at } from "./aiTools-ce2f9281.js";
15
+ import { _ as lt } from "./_plugin-vue_export-helper-dad06003.js";
16
16
  import "./index-a181f161.js";
17
17
  import "./raf-b4fd1e12.js";
18
- import "./index-7c4d8f5d.js";
18
+ import "./index-dddacf80.js";
19
19
  import "./typescript-7ae59c4c.js";
20
20
  import "./index-de9ad85c.js";
21
- import "./use-global-config-17dafd40.js";
22
- import "./index-47d30a52.js";
21
+ import "./use-global-config-9a4ccf33.js";
22
+ import "./index-9573f74b.js";
23
23
  import "./index-3806160e.js";
24
24
  import "./clamp-c7512966.js";
25
25
  import "./toNumber-f077c66a.js";
26
- import "./config-provider-563023c9.js";
26
+ import "./config-provider-06d8207f.js";
27
27
  import "./scroll-70271cb1.js";
28
- const We = pe({
28
+ const nt = ke({
29
29
  /**
30
30
  * @description avatar size.
31
31
  */
32
32
  size: {
33
33
  type: [Number, String],
34
- values: ye,
35
- validator: (e) => oe(e)
34
+ values: we,
35
+ validator: (t) => ue(t)
36
36
  },
37
37
  /**
38
38
  * @description avatar shape.
@@ -44,7 +44,7 @@ const We = pe({
44
44
  /**
45
45
  * @description representation type to icon, more info on icon component.
46
46
  */
47
- icon: { type: Le },
47
+ icon: { type: je },
48
48
  /**
49
49
  * @description the source of the image for an image avatar.
50
50
  */
@@ -64,23 +64,23 @@ const We = pe({
64
64
  * @description set how the image fit its container for an image avatar.
65
65
  */
66
66
  fit: {
67
- type: U(String),
67
+ type: I(String),
68
68
  default: "cover"
69
69
  }
70
- }), et = { error: (e) => e instanceof Event }, be = Symbol("avatarGroupContextKey"), tt = {
70
+ }), ot = { error: (t) => t instanceof Event }, Ce = Symbol("avatarGroupContextKey"), rt = {
71
71
  /**
72
72
  * @description control the size of avatars in this avatar-group
73
73
  */
74
74
  size: {
75
- type: U([Number, String]),
76
- values: ye,
77
- validator: (e) => oe(e)
75
+ type: I([Number, String]),
76
+ values: we,
77
+ validator: (t) => ue(t)
78
78
  },
79
79
  /**
80
80
  * @description control the shape of avatars in this avatar-group
81
81
  */
82
82
  shape: {
83
- type: U(String),
83
+ type: I(String),
84
84
  values: ["circle", "square"]
85
85
  },
86
86
  /**
@@ -102,30 +102,30 @@ const We = pe({
102
102
  * @description tooltip theme, built-in theme: `dark` / `light`
103
103
  */
104
104
  effect: {
105
- type: U(String),
105
+ type: I(String),
106
106
  default: "light"
107
107
  },
108
108
  /**
109
109
  * @description placement of tooltip
110
110
  */
111
111
  placement: {
112
- type: U(String),
113
- values: Fe,
112
+ type: I(String),
113
+ values: Oe,
114
114
  default: "top"
115
115
  },
116
116
  /**
117
117
  * @description custom class name for tooltip
118
118
  */
119
- popperClass: de.popperClass,
119
+ popperClass: me.popperClass,
120
120
  /**
121
121
  * @description custom style for tooltip
122
122
  */
123
- popperStyle: de.popperStyle,
123
+ popperStyle: me.popperStyle,
124
124
  /**
125
125
  * @description custom class name for the collapse-avatar
126
126
  */
127
127
  collapseClass: {
128
- type: U([
128
+ type: I([
129
129
  String,
130
130
  Array,
131
131
  Object,
@@ -137,7 +137,7 @@ const We = pe({
137
137
  * @description custom style for the collapse-avatar
138
138
  */
139
139
  collapseStyle: {
140
- type: U([
140
+ type: I([
141
141
  String,
142
142
  Array,
143
143
  Object,
@@ -145,78 +145,78 @@ const We = pe({
145
145
  ]),
146
146
  default: void 0
147
147
  }
148
- }, st = [
148
+ }, it = [
149
149
  "src",
150
150
  "alt",
151
151
  "srcset"
152
152
  ];
153
- var at = /* @__PURE__ */ ie({
153
+ var ut = /* @__PURE__ */ de({
154
154
  name: "ElAvatar",
155
155
  __name: "avatar",
156
- props: We,
157
- emits: et,
158
- setup(e, { emit: B }) {
159
- const a = e, o = B, g = Ae(be, void 0), h = re("avatar"), E = T(!1), b = f(() => a.size ?? (g == null ? void 0 : g.size)), y = f(() => a.shape ?? (g == null ? void 0 : g.shape) ?? "circle"), x = f(() => {
160
- const { icon: w } = a, k = [h.b()];
161
- return se(b.value) && k.push(h.m(b.value)), w && k.push(h.m("icon")), y.value && k.push(h.m(y.value)), k;
162
- }), N = f(() => oe(b.value) ? h.cssVarBlock({ size: ze(b.value) }) : void 0), z = f(() => ({ objectFit: a.fit }));
163
- ae(() => [a.src, a.srcSet], () => E.value = !1);
164
- function l(w) {
165
- E.value = !0, o("error", w);
156
+ props: nt,
157
+ emits: ot,
158
+ setup(t, { emit: V }) {
159
+ const l = t, i = V, w = Se(Ce, void 0), b = ce("avatar"), M = D(!1), T = f(() => l.size ?? (w == null ? void 0 : w.size)), y = f(() => l.shape ?? (w == null ? void 0 : w.shape) ?? "circle"), _ = f(() => {
160
+ const { icon: x } = l, S = [b.b()];
161
+ return ne(T.value) && S.push(b.m(T.value)), x && S.push(b.m("icon")), y.value && S.push(b.m(y.value)), S;
162
+ }), N = f(() => ue(T.value) ? b.cssVarBlock({ size: Ke(T.value) }) : void 0), Y = f(() => ({ objectFit: l.fit }));
163
+ oe(() => [l.src, l.srcSet], () => M.value = !1);
164
+ function n(x) {
165
+ M.value = !0, i("error", x);
166
166
  }
167
- return (w, k) => (i(), v("span", {
168
- class: C(x.value),
167
+ return (x, S) => (r(), v("span", {
168
+ class: E(_.value),
169
169
  style: L(N.value)
170
- }, [(e.src || e.srcSet) && !E.value ? (i(), v("img", {
170
+ }, [(t.src || t.srcSet) && !M.value ? (r(), v("img", {
171
171
  key: 0,
172
- src: e.src,
173
- alt: e.alt,
174
- srcset: e.srcSet,
175
- style: L(z.value),
176
- onError: l
177
- }, null, 44, st)) : e.icon ? (i(), R(c(ne), { key: 1 }, {
178
- default: S(() => [(i(), R(he(e.icon)))]),
172
+ src: t.src,
173
+ alt: t.alt,
174
+ srcset: t.srcSet,
175
+ style: L(Y.value),
176
+ onError: n
177
+ }, null, 44, it)) : t.icon ? (r(), R(c(ie), { key: 1 }, {
178
+ default: C(() => [(r(), R(Te(t.icon)))]),
179
179
  _: 1
180
- })) : le(w.$slots, "default", { key: 2 })], 6));
180
+ })) : re(x.$slots, "default", { key: 2 })], 6));
181
181
  }
182
- }), we = at, Te = /* @__PURE__ */ ie({
182
+ }), Ee = ut, Be = /* @__PURE__ */ de({
183
183
  name: "ElAvatarGroup",
184
- props: tt,
185
- setup(e, { slots: B }) {
186
- const a = re("avatar-group");
187
- return Oe(be, ke({
188
- size: fe(e, "size"),
189
- shape: fe(e, "shape")
184
+ props: rt,
185
+ setup(t, { slots: V }) {
186
+ const l = ce("avatar-group");
187
+ return Ge(Ce, De({
188
+ size: ge(t, "size"),
189
+ shape: ge(t, "shape")
190
190
  })), () => {
191
- var h;
192
- const o = Re(((h = B.default) == null ? void 0 : h.call(B)) ?? []);
193
- let g = o;
194
- if (e.collapseAvatars && o.length > e.maxCollapseAvatars) {
195
- g = o.slice(0, e.maxCollapseAvatars);
196
- const E = o.slice(e.maxCollapseAvatars);
197
- g.push(A(me, {
198
- popperClass: e.popperClass,
199
- popperStyle: e.popperStyle,
200
- placement: e.placement,
201
- effect: e.effect,
202
- disabled: !e.collapseAvatarsTooltip
191
+ var b;
192
+ const i = Ze(((b = V.default) == null ? void 0 : b.call(V)) ?? []);
193
+ let w = i;
194
+ if (t.collapseAvatars && i.length > t.maxCollapseAvatars) {
195
+ w = i.slice(0, t.maxCollapseAvatars);
196
+ const M = i.slice(t.maxCollapseAvatars);
197
+ w.push(k(ye, {
198
+ popperClass: t.popperClass,
199
+ popperStyle: t.popperStyle,
200
+ placement: t.placement,
201
+ effect: t.effect,
202
+ disabled: !t.collapseAvatarsTooltip
203
203
  }, {
204
- default: () => A(we, {
205
- size: e.size,
206
- shape: e.shape,
207
- class: e.collapseClass,
208
- style: e.collapseStyle
209
- }, { default: () => [X("+ "), E.length] }),
210
- content: () => A("div", { class: a.e("collapse-avatars") }, [E.map((b, y) => Ke(b) ? He(b, { key: b.key ?? y }) : b)])
204
+ default: () => k(Ee, {
205
+ size: t.size,
206
+ shape: t.shape,
207
+ class: t.collapseClass,
208
+ style: t.collapseStyle
209
+ }, { default: () => [Z("+ "), M.length] }),
210
+ content: () => k("div", { class: l.e("collapse-avatars") }, [M.map((T, y) => qe(T) ? Xe(T, { key: T.key ?? y }) : T)])
211
211
  }));
212
212
  }
213
- return A("div", { class: a.b() }, [g]);
213
+ return k("div", { class: l.b() }, [w]);
214
214
  };
215
215
  }
216
216
  });
217
- const lt = ge(we, { AvatarGroup: Te });
218
- Ye(Te);
219
- const nt = pe({
217
+ const ct = be(Ee, { AvatarGroup: Be });
218
+ Re(Be);
219
+ const dt = ke({
220
220
  /**
221
221
  * @description type of progress bar
222
222
  */
@@ -235,7 +235,7 @@ const nt = pe({
235
235
  percentage: {
236
236
  type: Number,
237
237
  default: 0,
238
- validator: (e) => e >= 0 && e <= 100
238
+ validator: (t) => t >= 0 && t <= 100
239
239
  },
240
240
  /**
241
241
  * @description the current status of progress bar
@@ -272,7 +272,7 @@ const nt = pe({
272
272
  * @description butt/circle/dashboard type shape at the end path
273
273
  */
274
274
  strokeLinecap: {
275
- type: U(String),
275
+ type: I(String),
276
276
  default: "round"
277
277
  },
278
278
  /**
@@ -297,7 +297,7 @@ const nt = pe({
297
297
  * @description background color of progress bar. Overrides `status` prop
298
298
  */
299
299
  color: {
300
- type: U([
300
+ type: I([
301
301
  String,
302
302
  Array,
303
303
  Function
@@ -316,158 +316,158 @@ const nt = pe({
316
316
  * @description custom text format
317
317
  */
318
318
  format: {
319
- type: U(Function),
320
- default: (e) => `${e}%`
319
+ type: I(Function),
320
+ default: (t) => `${t}%`
321
321
  }
322
- }), ot = ["aria-valuenow"], rt = { viewBox: "0 0 100 100" }, it = [
322
+ }), ft = ["aria-valuenow"], vt = { viewBox: "0 0 100 100" }, pt = [
323
323
  "d",
324
324
  "stroke",
325
325
  "stroke-linecap",
326
326
  "stroke-width"
327
- ], ut = [
327
+ ], mt = [
328
328
  "d",
329
329
  "stroke",
330
330
  "opacity",
331
331
  "stroke-linecap",
332
332
  "stroke-width"
333
- ], ct = { key: 0 };
334
- var dt = /* @__PURE__ */ ie({
333
+ ], gt = { key: 0 };
334
+ var At = /* @__PURE__ */ de({
335
335
  name: "ElProgress",
336
336
  __name: "progress",
337
- props: nt,
338
- setup(e) {
339
- const B = {
337
+ props: dt,
338
+ setup(t) {
339
+ const V = {
340
340
  success: "#13ce66",
341
341
  exception: "#ff4949",
342
342
  warning: "#e6a23c",
343
343
  default: "#20a0ff"
344
- }, a = e, o = re("progress"), g = f(() => {
345
- const n = {
346
- width: `${a.percentage}%`,
347
- animationDuration: `${a.duration}s`
348
- }, p = D(a.percentage);
349
- return p.includes("gradient") ? n.background = p : n.backgroundColor = p, n;
350
- }), h = f(() => (a.strokeWidth / a.width * 100).toFixed(1)), E = f(() => ["circle", "dashboard"].includes(a.type) ? Number.parseInt(`${50 - Number.parseFloat(h.value) / 2}`, 10) : 0), b = f(() => {
351
- const n = E.value, p = a.type === "dashboard";
344
+ }, l = t, i = ce("progress"), w = f(() => {
345
+ const o = {
346
+ width: `${l.percentage}%`,
347
+ animationDuration: `${l.duration}s`
348
+ }, g = B(l.percentage);
349
+ return g.includes("gradient") ? o.background = g : o.backgroundColor = g, o;
350
+ }), b = f(() => (l.strokeWidth / l.width * 100).toFixed(1)), M = f(() => ["circle", "dashboard"].includes(l.type) ? Number.parseInt(`${50 - Number.parseFloat(b.value) / 2}`, 10) : 0), T = f(() => {
351
+ const o = M.value, g = l.type === "dashboard";
352
352
  return `
353
353
  M 50 50
354
- m 0 ${p ? "" : "-"}${n}
355
- a ${n} ${n} 0 1 1 0 ${p ? "-" : ""}${n * 2}
356
- a ${n} ${n} 0 1 1 0 ${p ? "" : "-"}${n * 2}
354
+ m 0 ${g ? "" : "-"}${o}
355
+ a ${o} ${o} 0 1 1 0 ${g ? "-" : ""}${o * 2}
356
+ a ${o} ${o} 0 1 1 0 ${g ? "" : "-"}${o * 2}
357
357
  `;
358
- }), y = f(() => 2 * Math.PI * E.value), x = f(() => a.type === "dashboard" ? 0.75 : 1), N = f(() => `${-1 * y.value * (1 - x.value) / 2}px`), z = f(() => ({
359
- strokeDasharray: `${y.value * x.value}px, ${y.value}px`,
358
+ }), y = f(() => 2 * Math.PI * M.value), _ = f(() => l.type === "dashboard" ? 0.75 : 1), N = f(() => `${-1 * y.value * (1 - _.value) / 2}px`), Y = f(() => ({
359
+ strokeDasharray: `${y.value * _.value}px, ${y.value}px`,
360
360
  strokeDashoffset: N.value
361
- })), l = f(() => ({
362
- strokeDasharray: `${y.value * x.value * (a.percentage / 100)}px, ${y.value}px`,
361
+ })), n = f(() => ({
362
+ strokeDasharray: `${y.value * _.value * (l.percentage / 100)}px, ${y.value}px`,
363
363
  strokeDashoffset: N.value,
364
364
  transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
365
- })), w = f(() => {
366
- let n;
367
- return a.color ? n = D(a.percentage) : n = B[a.status] || B.default, n;
368
- }), k = f(() => a.status === "warning" ? Me : a.type === "line" ? a.status === "success" ? Ee : Ve : a.status === "success" ? Be : xe), Y = f(() => a.type === "line" ? 12 + a.strokeWidth * 0.4 : a.width * 0.111111 + 2), K = f(() => a.format(a.percentage));
369
- function Z(n) {
370
- const p = 100 / n.length;
371
- return n.map((I, Q) => se(I) ? {
372
- color: I,
373
- percentage: (Q + 1) * p
374
- } : I).sort((I, Q) => I.percentage - Q.percentage);
365
+ })), x = f(() => {
366
+ let o;
367
+ return l.color ? o = B(l.percentage) : o = V[l.status] || V.default, o;
368
+ }), S = f(() => l.status === "warning" ? Ne : l.type === "line" ? l.status === "success" ? Ue : Ie : l.status === "success" ? Fe : ze), P = f(() => l.type === "line" ? 12 + l.strokeWidth * 0.4 : l.width * 0.111111 + 2), H = f(() => l.format(l.percentage));
369
+ function W(o) {
370
+ const g = 100 / o.length;
371
+ return o.map((U, F) => ne(U) ? {
372
+ color: U,
373
+ percentage: (F + 1) * g
374
+ } : U).sort((U, F) => U.percentage - F.percentage);
375
375
  }
376
- const D = (n) => {
377
- var I;
378
- const { color: p } = a;
379
- if (Je(p))
380
- return p(n);
381
- if (se(p))
382
- return p;
376
+ const B = (o) => {
377
+ var U;
378
+ const { color: g } = l;
379
+ if ($e(g))
380
+ return g(o);
381
+ if (ne(g))
382
+ return g;
383
383
  {
384
- const Q = Z(p);
385
- for (const q of Q)
386
- if (q.percentage > n)
387
- return q.color;
388
- return (I = Q[Q.length - 1]) == null ? void 0 : I.color;
384
+ const F = W(g);
385
+ for (const G of F)
386
+ if (G.percentage > o)
387
+ return G.color;
388
+ return (U = F[F.length - 1]) == null ? void 0 : U.color;
389
389
  }
390
390
  };
391
- return (n, p) => (i(), v("div", {
392
- class: C([
393
- c(o).b(),
394
- c(o).m(e.type),
395
- c(o).is(e.status),
391
+ return (o, g) => (r(), v("div", {
392
+ class: E([
393
+ c(i).b(),
394
+ c(i).m(t.type),
395
+ c(i).is(t.status),
396
396
  {
397
- [c(o).m("without-text")]: !e.showText,
398
- [c(o).m("text-inside")]: e.textInside
397
+ [c(i).m("without-text")]: !t.showText,
398
+ [c(i).m("text-inside")]: t.textInside
399
399
  }
400
400
  ]),
401
401
  role: "progressbar",
402
- "aria-valuenow": e.percentage,
402
+ "aria-valuenow": t.percentage,
403
403
  "aria-valuemin": "0",
404
404
  "aria-valuemax": "100"
405
- }, [e.type === "line" ? (i(), v("div", {
405
+ }, [t.type === "line" ? (r(), v("div", {
406
406
  key: 0,
407
- class: C(c(o).b("bar"))
407
+ class: E(c(i).b("bar"))
408
408
  }, [d("div", {
409
- class: C(c(o).be("bar", "outer")),
410
- style: L({ height: `${e.strokeWidth}px` })
409
+ class: E(c(i).be("bar", "outer")),
410
+ style: L({ height: `${t.strokeWidth}px` })
411
411
  }, [d("div", {
412
- class: C([
413
- c(o).be("bar", "inner"),
414
- { [c(o).bem("bar", "inner", "indeterminate")]: e.indeterminate },
415
- { [c(o).bem("bar", "inner", "striped")]: e.striped },
416
- { [c(o).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
412
+ class: E([
413
+ c(i).be("bar", "inner"),
414
+ { [c(i).bem("bar", "inner", "indeterminate")]: t.indeterminate },
415
+ { [c(i).bem("bar", "inner", "striped")]: t.striped },
416
+ { [c(i).bem("bar", "inner", "striped-flow")]: t.stripedFlow }
417
417
  ]),
418
- style: L(g.value)
419
- }, [(e.showText || n.$slots.default) && e.textInside ? (i(), v("div", {
418
+ style: L(w.value)
419
+ }, [(t.showText || o.$slots.default) && t.textInside ? (r(), v("div", {
420
420
  key: 0,
421
- class: C(c(o).be("bar", "innerText"))
422
- }, [le(n.$slots, "default", { percentage: e.percentage }, () => [d("span", null, O(K.value), 1)])], 2)) : P("v-if", !0)], 6)], 6)], 2)) : (i(), v("div", {
421
+ class: E(c(i).be("bar", "innerText"))
422
+ }, [re(o.$slots, "default", { percentage: t.percentage }, () => [d("span", null, O(H.value), 1)])], 2)) : Q("v-if", !0)], 6)], 6)], 2)) : (r(), v("div", {
423
423
  key: 1,
424
- class: C(c(o).b("circle")),
424
+ class: E(c(i).b("circle")),
425
425
  style: L({
426
- height: `${e.width}px`,
427
- width: `${e.width}px`
426
+ height: `${t.width}px`,
427
+ width: `${t.width}px`
428
428
  })
429
- }, [(i(), v("svg", rt, [d("path", {
430
- class: C(c(o).be("circle", "track")),
431
- d: b.value,
432
- stroke: `var(${c(o).cssVarName("fill-color-light")}, #e5e9f2)`,
433
- "stroke-linecap": e.strokeLinecap,
434
- "stroke-width": h.value,
429
+ }, [(r(), v("svg", vt, [d("path", {
430
+ class: E(c(i).be("circle", "track")),
431
+ d: T.value,
432
+ stroke: `var(${c(i).cssVarName("fill-color-light")}, #e5e9f2)`,
433
+ "stroke-linecap": t.strokeLinecap,
434
+ "stroke-width": b.value,
435
435
  fill: "none",
436
- style: L(z.value)
437
- }, null, 14, it), d("path", {
438
- class: C(c(o).be("circle", "path")),
439
- d: b.value,
440
- stroke: w.value,
436
+ style: L(Y.value)
437
+ }, null, 14, pt), d("path", {
438
+ class: E(c(i).be("circle", "path")),
439
+ d: T.value,
440
+ stroke: x.value,
441
441
  fill: "none",
442
- opacity: e.percentage ? 1 : 0,
443
- "stroke-linecap": e.strokeLinecap,
444
- "stroke-width": h.value,
445
- style: L(l.value)
446
- }, null, 14, ut)]))], 6)), (e.showText || n.$slots.default) && !e.textInside ? (i(), v("div", {
442
+ opacity: t.percentage ? 1 : 0,
443
+ "stroke-linecap": t.strokeLinecap,
444
+ "stroke-width": b.value,
445
+ style: L(n.value)
446
+ }, null, 14, mt)]))], 6)), (t.showText || o.$slots.default) && !t.textInside ? (r(), v("div", {
447
447
  key: 2,
448
- class: C(c(o).e("text")),
449
- style: L({ fontSize: `${Y.value}px` })
450
- }, [le(n.$slots, "default", { percentage: e.percentage }, () => [e.status ? (i(), R(c(ne), { key: 1 }, {
451
- default: S(() => [(i(), R(he(k.value)))]),
448
+ class: E(c(i).e("text")),
449
+ style: L({ fontSize: `${P.value}px` })
450
+ }, [re(o.$slots, "default", { percentage: t.percentage }, () => [t.status ? (r(), R(c(ie), { key: 1 }, {
451
+ default: C(() => [(r(), R(Te(S.value)))]),
452
452
  _: 1
453
- })) : (i(), v("span", ct, O(K.value), 1))])], 6)) : P("v-if", !0)], 10, ot));
453
+ })) : (r(), v("span", gt, O(H.value), 1))])], 6)) : Q("v-if", !0)], 10, ft));
454
454
  }
455
- }), ft = dt;
456
- const vt = ge(ft);
457
- const mt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMaSURBVHgB7ZhdbhMxEMf/9lLRN3oDlhMQTkB6AnqDlqdSVYgaDkD6zIdTKGqLkJreoD1BywnIDdiegPBWKYmH8e4mdZbAeqlTrcT+pJX8MV57dsee8QANDQ0NDf8zAgtA608tRJEGIeYZEjOmk1dqq4cFEFwBrQ9iSHzjV68UuhIYWlVqK0FAJAJDEDtzFm9hxcS51scrCEhwBYQUj6cVQ7tk6MTpjg2udhCQoAqk5gNqOU29l2prw7Ai0wmlfIGABFXAAG2n2p/Yu8RV97qZVvb3v9xHIIIqIKV4PSnzVz+blJVSAyyIYAroj0d28bHz4h5ugSAKvNVHa7xhO9MGtnn3uNRaz5w8w2H0E4G4sQJ28ZE0x05TwovvuDIjLDsbWwyUehrMpO74CqYmQtTmg74920O49oc04J28Whwr05Pp2mfqD4fH82cRAzMeX0qIU1+H5+WJecLz3xdexC7esKfd7v/b+AJSdNTzzd1SsTKBd/pgw2NyDhPwaN7iLRwLfUVVeE+lc5dQakKZ46GsQjhlM1Lp+0Fr3Kfz9uRvv5wDuQ47ucQ4p9Q8BIcgQuIJcjkZiXWUnGYee8DxrDTm02U7sUX+OpU2ovKMRlnRLpvP92w+0SqTr3QKLS3d/YFbhUoDv+DB3E0ZzZpZv0y+dgpEEGuTMkeyl2XytVMg38RZGXxolFArBbT+bDdt7DRdlI2plQIGo7ZT7ft441opIGW0PikbI068xqAmFG9zEqMLn3G1UaBwm0v+FJYUqY0CediQQgZn3uNQA1LzcQJGgXHPd6yHAjSNeYbD4QMsADafDafa9zUfS3kwJ0R/+nU4+nyjD9JoVEbyIUemuQxulKziZMDUfDiM3kMFyhXgvCZHh+2sQq07nF3LiuRKtfTeIWV/SwxsPjRvT7JblrF34IQgBwSTPmMuW4HliDMZVM15uXjdyN7rwy67+KAJqblkyYBOlSHeyV1tb0ci/dVx4Q0xQkC4UDvPVqsOC5KdzhK2V3YfxHlTbGN5Y29Y9hG4N9MnbJyfJ4B54XxxOVNqs4uGhoaGhoaK/AINQhvhDFaFYAAAAABJRU5ErkJggg==", pt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMxSURBVHgB7ZhdbtNAEMdn1wmlTzUnIJyA9ASkNwgnaCMh0aKK1uIATV4R1bbQUlVCSrhBewLCCSg3CCfAPBFoM8PsxnHcVGHX7UZYwj/JytrecXb2a+a/ACUlJSUl/zMCPKBUNxzCMAwAQwEylAA1AAr586EM5Mq4zM9IhOPy+F3ShAtEPHwVbfXgFjg78Ea9bwaBXAeC+syrGvhAwFn0cvMp5MTJAfX2VAHRLiwYROrwSLTz2Fgd2FcnG1KKLjhBMU+TmD/LFw34QUwEP4if87QaJJX4F/m95AtDCII9HtVm0pwY8N6jKGrF4EjFVkEGQk+bBHEBOOroP0KABju2N2439KPdzTW4BUqpFsj7jfGaoBBhqEe67WovrTUIGmkZr1pR9OIsirb6MO3ROxFFUYwIh2mDAvEkh7mDAxmq1aXvsAC4Eb30hjtMqZNGDtt/D4/ogFdjf3Kvp6erbSEc0OAIzydlXlvrrnaFcUDCr17mtqbUcd3NriDoxXx9Gsmmi11hHNDgiD5Pyq67UaEcuLkbdUMHm+JgdqNMfEH4vWGzKZQDGkJIdyMB2LDVL5wDCNiflIUUj231C+dAoPOtKTVb/cI5wC5YF24WazZqMlAgE1Qu8ergtTrujDgVFhWxomO+KzotB0uPGvVG1Egf0DQuzMPqAMu9cw7t9eSDzaoMmlXzIlNJiDonYLVkF7nBvjrdlZIU2CCavf9oM7FOIaOQhK0nWONK+WVe+JcB5EqRDazOIged7KyJlZ4CQu6AoL/kKFpR4ersSPD0aafiR9chOpv7CcKvetommsPKnU8lFIt9MJJzcsrAgQiXVrOy0OT3UnxK/jKOdp4/AE/ceRfSCo2Hu5V5VEtkYYZhZmuk8Ojow0PwhJdtVDtBWVko5U42jzGZ5oLwFgcE/GybUwlDKs4XjjcHbojzjKrik4dcwSkPXiPxtXSY18JkrlNlOSsRB9vbz76BJ7w6MJsOX9JoQ7073RMIB2klh+iaB++5EB8PTqMnUttcUwYcAzrgEe8OSBgeTBfzNTg+0Nq8dOO2eDlen8WkFKLSTY7Vudf1kclyL8+ZZ0lJSUlJiQt/AOgzKhZAFyVoAAAAAElFTkSuQmCC";
458
- const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class: "message-content" }, ht = {
455
+ }), ht = At;
456
+ const yt = be(ht);
457
+ const kt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMaSURBVHgB7ZhdbhMxEMf/9lLRN3oDlhMQTkB6AnqDlqdSVYgaDkD6zIdTKGqLkJreoD1BywnIDdiegPBWKYmH8e4mdZbAeqlTrcT+pJX8MV57dsee8QANDQ0NDf8zAgtA608tRJEGIeYZEjOmk1dqq4cFEFwBrQ9iSHzjV68UuhIYWlVqK0FAJAJDEDtzFm9hxcS51scrCEhwBYQUj6cVQ7tk6MTpjg2udhCQoAqk5gNqOU29l2prw7Ai0wmlfIGABFXAAG2n2p/Yu8RV97qZVvb3v9xHIIIqIKV4PSnzVz+blJVSAyyIYAroj0d28bHz4h5ugSAKvNVHa7xhO9MGtnn3uNRaz5w8w2H0E4G4sQJ28ZE0x05TwovvuDIjLDsbWwyUehrMpO74CqYmQtTmg74920O49oc04J28Whwr05Pp2mfqD4fH82cRAzMeX0qIU1+H5+WJecLz3xdexC7esKfd7v/b+AJSdNTzzd1SsTKBd/pgw2NyDhPwaN7iLRwLfUVVeE+lc5dQakKZ46GsQjhlM1Lp+0Fr3Kfz9uRvv5wDuQ47ucQ4p9Q8BIcgQuIJcjkZiXWUnGYee8DxrDTm02U7sUX+OpU2ovKMRlnRLpvP92w+0SqTr3QKLS3d/YFbhUoDv+DB3E0ZzZpZv0y+dgpEEGuTMkeyl2XytVMg38RZGXxolFArBbT+bDdt7DRdlI2plQIGo7ZT7ft441opIGW0PikbI068xqAmFG9zEqMLn3G1UaBwm0v+FJYUqY0CediQQgZn3uNQA1LzcQJGgXHPd6yHAjSNeYbD4QMsADafDafa9zUfS3kwJ0R/+nU4+nyjD9JoVEbyIUemuQxulKziZMDUfDiM3kMFyhXgvCZHh+2sQq07nF3LiuRKtfTeIWV/SwxsPjRvT7JblrF34IQgBwSTPmMuW4HliDMZVM15uXjdyN7rwy67+KAJqblkyYBOlSHeyV1tb0ci/dVx4Q0xQkC4UDvPVqsOC5KdzhK2V3YfxHlTbGN5Y29Y9hG4N9MnbJyfJ4B54XxxOVNqs4uGhoaGhoaK/AINQhvhDFaFYAAAAABJRU5ErkJggg==", bt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMxSURBVHgB7ZhdbtNAEMdn1wmlTzUnIJyA9ASkNwgnaCMh0aKK1uIATV4R1bbQUlVCSrhBewLCCSg3CCfAPBFoM8PsxnHcVGHX7UZYwj/JytrecXb2a+a/ACUlJSUl/zMCPKBUNxzCMAwAQwEylAA1AAr586EM5Mq4zM9IhOPy+F3ShAtEPHwVbfXgFjg78Ea9bwaBXAeC+syrGvhAwFn0cvMp5MTJAfX2VAHRLiwYROrwSLTz2Fgd2FcnG1KKLjhBMU+TmD/LFw34QUwEP4if87QaJJX4F/m95AtDCII9HtVm0pwY8N6jKGrF4EjFVkEGQk+bBHEBOOroP0KABju2N2439KPdzTW4BUqpFsj7jfGaoBBhqEe67WovrTUIGmkZr1pR9OIsirb6MO3ROxFFUYwIh2mDAvEkh7mDAxmq1aXvsAC4Eb30hjtMqZNGDtt/D4/ogFdjf3Kvp6erbSEc0OAIzydlXlvrrnaFcUDCr17mtqbUcd3NriDoxXx9Gsmmi11hHNDgiD5Pyq67UaEcuLkbdUMHm+JgdqNMfEH4vWGzKZQDGkJIdyMB2LDVL5wDCNiflIUUj231C+dAoPOtKTVb/cI5wC5YF24WazZqMlAgE1Qu8ergtTrujDgVFhWxomO+KzotB0uPGvVG1Egf0DQuzMPqAMu9cw7t9eSDzaoMmlXzIlNJiDonYLVkF7nBvjrdlZIU2CCavf9oM7FOIaOQhK0nWONK+WVe+JcB5EqRDazOIged7KyJlZ4CQu6AoL/kKFpR4ersSPD0aafiR9chOpv7CcKvetommsPKnU8lFIt9MJJzcsrAgQiXVrOy0OT3UnxK/jKOdp4/AE/ceRfSCo2Hu5V5VEtkYYZhZmuk8Ojow0PwhJdtVDtBWVko5U42jzGZ5oLwFgcE/GybUwlDKs4XjjcHbojzjKrik4dcwSkPXiPxtXSY18JkrlNlOSsRB9vbz76BJ7w6MJsOX9JoQ7073RMIB2klh+iaB++5EB8PTqMnUttcUwYcAzrgEe8OSBgeTBfzNTg+0Nq8dOO2eDlen8WkFKLSTY7Vudf1kclyL8+ZZ0lJSUlJiQt/AOgzKhZAFyVoAAAAAElFTkSuQmCC";
458
+ const wt = { class: "ai-dialog-body" }, St = { class: "avatar" }, Tt = { class: "message-content" }, Dt = {
459
459
  key: 0,
460
460
  style: { "font-weight": "bold", "margin-bottom": "10px" }
461
- }, kt = {
461
+ }, Ct = {
462
462
  key: 1,
463
463
  class: "node-progress"
464
- }, bt = { class: "node-status-icon" }, wt = { class: "node-name" }, Tt = { class: "progress-footer" }, St = { class: "progress-text" }, Ct = ["innerHTML"], Dt = {
464
+ }, Et = { class: "node-status-icon" }, Bt = { class: "node-name" }, Mt = { class: "progress-footer" }, xt = { class: "progress-text" }, Vt = ["innerHTML"], _t = {
465
465
  key: 4,
466
466
  class: "message-content-footer"
467
- }, Mt = {
467
+ }, Nt = {
468
468
  key: 0,
469
469
  class: "feedback-box"
470
- }, Et = ["onClick"], Vt = ["onClick"], Bt = { class: "input-area" }, xt = { class: "input-actions" }, Nt = { class: "feedback-dialog-content" }, It = { class: "dialog-footer" }, Ut = {
470
+ }, Ut = ["onClick"], It = ["onClick"], Ft = { class: "input-area" }, zt = { class: "input-actions" }, Qt = { class: "feedback-dialog-content" }, Yt = { class: "dialog-footer" }, he = 6e4, Pt = 4e4, Jt = {
471
471
  __name: "index",
472
472
  props: {
473
473
  defaultMessage: {
@@ -479,236 +479,225 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
479
479
  }
480
480
  },
481
481
  emits: ["callBack"],
482
- setup(e, { expose: B, emit: a }) {
483
- const o = Ae("stConfig"), g = ke(qe()), h = T(!1), E = a, b = e, y = T(!1), x = T(!1), N = T(!1), z = T(null), l = T([
482
+ setup(t, { expose: V, emit: l }) {
483
+ const i = Se("stConfig"), w = De(tt()), b = D(!1), M = l, T = t, y = D(!1), _ = D(!1), N = D(!1), Y = D(null), n = D([
484
484
  {
485
485
  role: "defaultMessage",
486
486
  // defaultMessage-组件内置, assistant-智能体, user-用户
487
- content: b.defaultMessage,
487
+ content: T.defaultMessage,
488
488
  fullQuery: "",
489
489
  historyList: [],
490
490
  userContent: null,
491
491
  showFeedback: !1,
492
- createTime: G().format("YYYY-MM-DD HH:mm:ss"),
492
+ createTime: q().format("YYYY-MM-DD HH:mm:ss"),
493
493
  resTime: 0,
494
494
  firstPackageTime: 0
495
495
  }
496
- ]), w = T(null), k = T(""), Y = T(!1), K = T(""), Z = T({}), D = T([]), n = f(() => D.value.length), p = f(() => D.value.filter((r) => r.status === "success").length), I = f(() => n.value ? p.value / n.value * 100 : 0), Q = f(() => {
497
- const r = D.value.find((t) => t.status === "executing");
498
- return r ? r.name : "处理中";
499
- }), q = async () => {
500
- const r = k.value.trim();
501
- if (!r)
502
- return ee.warning("请输入消息内容");
496
+ ]), x = D(null), S = D(""), P = D(!1), H = D(""), W = D({}), B = D([]), o = f(() => B.value.length), g = f(() => B.value.filter((s) => s.status === "success").length), U = f(() => o.value ? g.value / o.value * 100 : 0), F = f(() => {
497
+ const s = B.value.find((e) => e.status === "executing");
498
+ return s ? s.name : "处理中";
499
+ }), G = async () => {
500
+ const s = S.value.trim();
501
+ if (!s)
502
+ return X.warning("请输入消息内容");
503
503
  if (y.value)
504
504
  return;
505
- D.value = [], N.value = !1, l.value.push({
505
+ B.value = [], N.value = !1, n.value.push({
506
506
  role: "user",
507
- content: r,
508
- createTime: G().format("YYYY-MM-DD HH:mm:ss")
509
- }), k.value = "", await J(), l.value.push({
507
+ content: s,
508
+ createTime: q().format("YYYY-MM-DD HH:mm:ss")
509
+ }), S.value = "", await J(), n.value.push({
510
510
  role: "assistant",
511
511
  content: "",
512
512
  fullQuery: "",
513
513
  historyList: [],
514
- userContent: r,
514
+ userContent: s,
515
515
  showFeedback: !1,
516
- createTime: G().format("YYYY-MM-DD HH:mm:ss"),
516
+ createTime: q().format("YYYY-MM-DD HH:mm:ss"),
517
517
  resTime: 0,
518
518
  firstPackageTime: 0
519
- }), await J(), y.value = !0, x.value = !0;
520
- let t = "", s = (/* @__PURE__ */ new Date()).getTime(), _ = !1;
519
+ }), await J(), y.value = !0, _.value = !0;
520
+ let e = "", a = (/* @__PURE__ */ new Date()).getTime(), A = !1;
521
521
  try {
522
- await Xe({
523
- baseUrl: o.env.VITE_BASE_URL,
524
- token: Ge(),
525
- value: r,
526
- sessionId: w.value,
527
- userId: g.id,
528
- callback: (V, M) => {
529
- if (V === "session" && (w.value = M), V === "historyList") {
530
- const m = l.value[l.value.length - 1];
531
- m.historyList = M;
522
+ await at({
523
+ baseUrl: i.env.VITE_BASE_URL,
524
+ token: st(),
525
+ value: s,
526
+ sessionId: x.value,
527
+ userId: w.id,
528
+ callback: (p, h) => {
529
+ if (p === "session" && (x.value = h), p === "historyList") {
530
+ const m = n.value[n.value.length - 1];
531
+ m.historyList = h;
532
532
  }
533
- if (V === "fullQuery") {
534
- const m = l.value[l.value.length - 1];
535
- m.fullQuery = M;
533
+ if (p === "fullQuery") {
534
+ const m = n.value[n.value.length - 1];
535
+ m.fullQuery = h;
536
536
  }
537
- if (V === "node") {
538
- if (!_) {
539
- _ = !0, x.value = !1;
540
- const F = l.value[l.value.length - 1];
541
- F && F.role === "assistant" && F.firstPackageTime === 0 && (F.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - s);
537
+ if (p === "node") {
538
+ if (!A) {
539
+ A = !0, _.value = !1;
540
+ const z = n.value[n.value.length - 1];
541
+ z && z.role === "assistant" && z.firstPackageTime === 0 && (z.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - a);
542
542
  }
543
- const m = D.value.find((F) => F.name === M.name);
544
- m ? m.status = M.status : D.value.push({ name: M.name, status: M.status }), J();
543
+ const m = B.value.find((z) => z.name === h.name);
544
+ m ? m.status = h.status : B.value.push({ name: h.name, status: h.status }), J();
545
545
  return;
546
546
  }
547
- if (V === "message") {
548
- t = M;
549
- const m = l.value[l.value.length - 1];
550
- m && m.role === "assistant" && (m.content = t, J());
547
+ if (p === "message") {
548
+ e = h;
549
+ const m = n.value[n.value.length - 1];
550
+ m && m.role === "assistant" && (m.content = e, J());
551
551
  }
552
- if (V === "finish") {
552
+ if (p === "finish") {
553
553
  y.value = !1, N.value = !0;
554
- const m = l.value[l.value.length - 1];
555
- m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - s, $("default", l.value.length - 1));
554
+ const m = n.value[n.value.length - 1];
555
+ m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - a, $("default", n.value.length - 1));
556
556
  }
557
- if (V === "error") {
558
- x.value = !1, y.value = !1, l.value.pop(), l.value.push({
557
+ if (p === "error") {
558
+ _.value = !1, y.value = !1, n.value.pop(), n.value.push({
559
559
  role: "assistant",
560
- userContent: r,
561
- content: `❌ ${M}`,
560
+ userContent: s,
561
+ content: `❌ ${h}`,
562
562
  showFeedback: !1,
563
- createTime: G().format("YYYY-MM-DD HH:mm:ss"),
564
- resTime: (/* @__PURE__ */ new Date()).getTime() - s,
563
+ createTime: q().format("YYYY-MM-DD HH:mm:ss"),
564
+ resTime: (/* @__PURE__ */ new Date()).getTime() - a,
565
565
  firstPackageTime: 0
566
- }), $("default", l.value.length - 1), J();
566
+ }), $("default", n.value.length - 1), J();
567
567
  return;
568
568
  }
569
569
  }
570
570
  });
571
- } catch (V) {
572
- ee.error(`AI响应异常: ${V}`), l.value.pop(), l.value.push({
571
+ } catch (p) {
572
+ X.error(`AI响应异常: ${p}`), n.value.pop(), n.value.push({
573
573
  role: "assistant",
574
- userContent: r,
574
+ userContent: s,
575
575
  content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
576
576
  showFeedback: !0,
577
- createTime: G().format("YYYY-MM-DD HH:mm:ss"),
578
- resTime: (/* @__PURE__ */ new Date()).getTime() - s,
577
+ createTime: q().format("YYYY-MM-DD HH:mm:ss"),
578
+ resTime: (/* @__PURE__ */ new Date()).getTime() - a,
579
579
  firstPackageTime: 0
580
- }), $("default", l.value.length - 1), await J(), y.value = !1, x.value = !1;
580
+ }), $("default", n.value.length - 1), await J(), y.value = !1, _.value = !1;
581
+ }
582
+ }, Me = (s) => {
583
+ const { parsedConditions: e, ...a } = JSON.parse(s);
584
+ console.log({ parsedConditions: e, webParams: a }), M("callBack", a);
585
+ }, te = (s) => new TextEncoder().encode(s).length, fe = (s, e) => {
586
+ const a = String(s ?? "");
587
+ if (te(a) <= e)
588
+ return a;
589
+ let A = 0, p = a.length;
590
+ for (; A < p; ) {
591
+ const h = A + p + 1 >> 1;
592
+ te(a.slice(0, h)) <= e - 20 ? A = h : p = h - 1;
593
+ }
594
+ return `${a.slice(0, A)}…[超出长度已截断]`;
595
+ }, xe = (s) => {
596
+ const e = Array.isArray(s) ? s : [], a = [];
597
+ for (let p = e.length - 1; p >= 0; p -= 1) {
598
+ const h = [e[p], ...a];
599
+ if (te(JSON.stringify(h)) > Pt)
600
+ break;
601
+ a.unshift(e[p]);
602
+ }
603
+ const A = e.length - a.length;
604
+ return JSON.stringify(A > 0 ? [{ role: "system", content: `[已省略较早的 ${A} 条会话记录]` }, ...a] : a);
605
+ }, se = (s, e = {}) => ({
606
+ userName: w.username,
607
+ userContent: s.userContent,
608
+ sessionId: x.value,
609
+ fullQuery: fe(s.fullQuery, he),
610
+ historyList: xe(s.historyList),
611
+ aiContent: fe(s.content, he),
612
+ createTime: s.createTime,
613
+ resTime: s.resTime,
614
+ firstPackageTime: s.firstPackageTime,
615
+ logOrigin: 1,
616
+ ...e
617
+ }), ae = async (s) => {
618
+ try {
619
+ return await i.request.post("/alarm/deliversign/addVarietyAiHelperLog", s), !0;
620
+ } catch (e) {
621
+ return X.error(`反馈提交失败: ${(e == null ? void 0 : e.message) || e}`), !1;
581
622
  }
582
- }, Se = (r) => {
583
- const { parsedConditions: t, ...s } = JSON.parse(r);
584
- console.log({ parsedConditions: t, webParams: s }), E("callBack", s);
585
- }, $ = async (r, t) => {
586
- switch (r) {
623
+ }, $ = async (s, e) => {
624
+ switch (s) {
587
625
  case "satisfied": {
588
- const s = l.value[t];
589
- await o.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
590
- userName: g.username,
591
- userContent: s.userContent,
592
- sessionId: w.value,
593
- fullQuery: s.fullQuery,
594
- historyList: JSON.stringify(s.historyList ?? []),
595
- aiContent: s.content,
596
- type: 1,
597
- createTime: s.createTime,
598
- resTime: s.resTime,
599
- firstPackageTime: s.firstPackageTime,
600
- isSolved: 1,
601
- logOrigin: 1
602
- }), ee.success("感谢您的评价!"), l.value[t].showFeedback = !1;
626
+ const a = n.value[e];
627
+ if (!await ae(se(a, { type: 1, isSolved: 1 })))
628
+ break;
629
+ X.success("感谢您的评价!"), n.value[e].showFeedback = !1;
603
630
  break;
604
631
  }
605
632
  case "open": {
606
- Z.value = t, Y.value = !0;
633
+ W.value = e, P.value = !0;
607
634
  break;
608
635
  }
609
636
  case "unsatisfied": {
610
- const s = l.value[t];
611
- await o.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
612
- userName: g.username,
613
- userContent: s.userContent,
614
- sessionId: w.value,
615
- fullQuery: s.fullQuery,
616
- historyList: JSON.stringify(s.historyList ?? []),
617
- userSuggestion: K.value,
618
- aiContent: s.content,
619
- type: 2,
620
- resTime: s.resTime,
621
- createTime: s.createTime,
622
- firstPackageTime: s.firstPackageTime,
623
- isSolved: 0,
624
- logOrigin: 1
625
- }), ee.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, l.value[t].showFeedback = !1;
637
+ const a = n.value[e];
638
+ if (!await ae(se(a, { type: 2, userSuggestion: H.value, isSolved: 0 })))
639
+ break;
640
+ X.success("感谢您的反馈!我们将持续跟踪并进行优化"), P.value = !1, n.value[e].showFeedback = !1;
626
641
  break;
627
642
  }
628
643
  case "default": {
629
- const s = l.value[t];
630
- console.log({
631
- userName: g.username,
632
- userContent: s.userContent,
633
- sessionId: w.value,
634
- fullQuery: s.fullQuery,
635
- historyList: JSON.stringify(s.historyList ?? []),
636
- aiContent: s.content,
637
- type: null,
638
- resTime: s.resTime,
639
- createTime: s.createTime,
640
- firstPackageTime: s.firstPackageTime,
641
- isSolved: 1,
642
- logOrigin: 1
643
- }), await o.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
644
- userName: g.username,
645
- userContent: s.userContent,
646
- sessionId: w.value,
647
- fullQuery: s.fullQuery,
648
- historyList: JSON.stringify(s.historyList ?? []),
649
- aiContent: s.content,
650
- type: null,
651
- resTime: s.resTime,
652
- createTime: s.createTime,
653
- firstPackageTime: s.firstPackageTime,
654
- isSolved: 1,
655
- logOrigin: 1
656
- });
644
+ const a = n.value[e];
645
+ await ae(se(a, { type: null, isSolved: 1 }));
657
646
  }
658
647
  }
659
- }, Ce = (r) => {
660
- if (r.key === "Enter")
661
- if (r.ctrlKey) {
662
- r.preventDefault();
663
- const t = r.target, s = t.selectionStart, _ = t.selectionEnd;
664
- k.value = k.value.substring(0, s) + `
665
- ` + k.value.substring(_), te(() => {
666
- t.selectionStart = t.selectionEnd = s + 1;
648
+ }, Ve = (s) => {
649
+ if (s.key === "Enter")
650
+ if (s.ctrlKey) {
651
+ s.preventDefault();
652
+ const e = s.target, a = e.selectionStart, A = e.selectionEnd;
653
+ S.value = S.value.substring(0, a) + `
654
+ ` + S.value.substring(A), le(() => {
655
+ e.selectionStart = e.selectionEnd = a + 1;
667
656
  });
668
657
  } else
669
- r.preventDefault(), q();
658
+ s.preventDefault(), G();
670
659
  }, J = async () => {
671
- await te(), z.value && (z.value.scrollTop = z.value.scrollHeight);
672
- }, ue = (r) => {
673
- if (typeof r != "string")
660
+ await le(), Y.value && (Y.value.scrollTop = Y.value.scrollHeight);
661
+ }, ve = (s) => {
662
+ if (typeof s != "string")
674
663
  return !1;
675
664
  try {
676
- const t = JSON.parse(r);
677
- return t !== null && typeof t == "object";
665
+ const e = JSON.parse(s);
666
+ return e !== null && typeof e == "object";
678
667
  } catch {
679
668
  return !1;
680
669
  }
681
- }, De = (r) => {
682
- const { parsedConditions: t } = JSON.parse(r);
683
- let s = "";
684
- return t != null && t.length && (s += '<div class="parsed-conditions">', t.forEach((_) => {
685
- s += `<div class="parsed-conditions-item">${_}</div>`;
686
- }), s += "</div>"), s;
670
+ }, _e = (s) => {
671
+ const { parsedConditions: e } = JSON.parse(s);
672
+ let a = "";
673
+ return e != null && e.length && (a += '<div class="parsed-conditions">', e.forEach((A) => {
674
+ a += `<div class="parsed-conditions-item">${A}</div>`;
675
+ }), a += "</div>"), a;
687
676
  };
688
- return ae(
689
- () => l.value,
677
+ return oe(
678
+ () => n.value,
690
679
  () => {
691
680
  J();
692
681
  },
693
682
  { deep: !0 }
694
- ), ae(
695
- () => Y.value,
696
- (r) => {
697
- r || (K.value = "");
683
+ ), oe(
684
+ () => P.value,
685
+ (s) => {
686
+ s || (H.value = "");
698
687
  }
699
- ), B({
688
+ ), V({
700
689
  open: () => {
701
- h.value = !0, te(() => {
690
+ b.value = !0, le(() => {
702
691
  J();
703
692
  });
704
693
  }
705
- }), (r, t) => {
706
- const s = lt, _ = ne, V = vt, M = me, m = $e, F = Pe, ce = je;
707
- return i(), v(W, null, [
708
- A(ce, {
694
+ }), (s, e) => {
695
+ const a = ct, A = ie, p = yt, h = ye, m = We, z = He, pe = et;
696
+ return r(), v(ee, null, [
697
+ k(pe, {
709
698
  class: "ai-dialog",
710
- modelValue: h.value,
711
- "onUpdate:modelValue": t[1] || (t[1] = (u) => h.value = u),
699
+ modelValue: b.value,
700
+ "onUpdate:modelValue": e[1] || (e[1] = (u) => b.value = u),
712
701
  title: "✨ 品种池参数解析AI助手",
713
702
  width: "500px",
714
703
  center: "",
@@ -717,139 +706,139 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
717
706
  modal: !1,
718
707
  "modal-penetrable": !0
719
708
  }, {
720
- default: S(() => [
721
- d("div", gt, [
709
+ default: C(() => [
710
+ d("div", wt, [
722
711
  d("div", {
723
712
  ref_key: "messageListRef",
724
- ref: z,
713
+ ref: Y,
725
714
  class: "message-list"
726
715
  }, [
727
- (i(!0), v(W, null, ve(l.value, (u, H) => (i(), v("div", {
728
- key: H,
729
- class: C([u.role, "message-item"])
716
+ (r(!0), v(ee, null, Ae(n.value, (u, K) => (r(), v("div", {
717
+ key: K,
718
+ class: E([u.role, "message-item"])
730
719
  }, [
731
- u.content || H === l.value.length - 1 && u.role === "assistant" && D.value.length > 0 ? (i(), v(W, { key: 0 }, [
732
- d("div", yt, [
733
- A(s, {
720
+ u.content || K === n.value.length - 1 && u.role === "assistant" && B.value.length > 0 ? (r(), v(ee, { key: 0 }, [
721
+ d("div", St, [
722
+ k(a, {
734
723
  size: 32,
735
- icon: u.role === "user" ? c(Ne) : c(Ie)
724
+ icon: u.role === "user" ? c(Qe) : c(Ye)
736
725
  }, null, 8, ["icon"])
737
726
  ]),
738
- d("div", At, [
739
- u.fullQuery ? (i(), v("div", ht, " 筛选结果: " + O(u.fullQuery), 1)) : P("", !0),
740
- H === l.value.length - 1 && u.role === "assistant" && D.value.length > 0 && !N.value ? (i(), v("div", kt, [
741
- (i(!0), v(W, null, ve(D.value, (j) => (i(), v("div", {
727
+ d("div", Tt, [
728
+ u.fullQuery ? (r(), v("div", Dt, " 筛选结果: " + O(u.fullQuery), 1)) : Q("", !0),
729
+ K === n.value.length - 1 && u.role === "assistant" && B.value.length > 0 && !N.value ? (r(), v("div", Ct, [
730
+ (r(!0), v(ee, null, Ae(B.value, (j) => (r(), v("div", {
742
731
  key: j.name,
743
732
  class: "node-progress-item"
744
733
  }, [
745
- d("span", bt, [
746
- j.status === "success" ? (i(), R(_, {
734
+ d("span", Et, [
735
+ j.status === "success" ? (r(), R(A, {
747
736
  key: 0,
748
737
  class: "node-icon done"
749
738
  }, {
750
- default: S(() => [
751
- A(c(Ue))
739
+ default: C(() => [
740
+ k(c(Pe))
752
741
  ]),
753
742
  _: 1
754
- })) : (i(), R(_, {
743
+ })) : (r(), R(A, {
755
744
  key: 1,
756
745
  class: "node-icon running"
757
746
  }, {
758
- default: S(() => [
759
- A(c(Qe))
747
+ default: C(() => [
748
+ k(c(Je))
760
749
  ]),
761
750
  _: 1
762
751
  }))
763
752
  ]),
764
- d("span", wt, O(j.name), 1)
753
+ d("span", Bt, O(j.name), 1)
765
754
  ]))), 128)),
766
- d("div", Tt, [
767
- A(V, {
768
- percentage: I.value,
755
+ d("div", Mt, [
756
+ k(p, {
757
+ percentage: U.value,
769
758
  "show-text": !1,
770
759
  "stroke-width": 4,
771
760
  color: "#667eea"
772
761
  }, null, 8, ["percentage"]),
773
- d("span", St, "第 " + O(p.value) + "/" + O(n.value) + " 步 · " + O(Q.value), 1)
762
+ d("span", xt, "第 " + O(g.value) + "/" + O(o.value) + " 步 · " + O(F.value), 1)
774
763
  ])
775
- ])) : P("", !0),
776
- ue(u.content) ? (i(), v("div", {
764
+ ])) : Q("", !0),
765
+ ve(u.content) ? (r(), v("div", {
777
766
  key: 2,
778
- class: C(["message-content-json", { "result-animation": H === l.value.length - 1 && N.value }]),
779
- innerHTML: De(u.content)
780
- }, null, 10, Ct)) : u.content ? (i(), v("div", {
767
+ class: E(["message-content-json", { "result-animation": K === n.value.length - 1 && N.value }]),
768
+ innerHTML: _e(u.content)
769
+ }, null, 10, Vt)) : u.content ? (r(), v("div", {
781
770
  key: 3,
782
- class: C(["message-content-text", { "result-animation": H === l.value.length - 1 && N.value }])
783
- }, O(u.content), 3)) : P("", !0),
784
- u.role === "assistant" ? (i(), v("div", Dt, [
785
- u.showFeedback ? (i(), v("div", Mt, [
786
- A(M, {
771
+ class: E(["message-content-text", { "result-animation": K === n.value.length - 1 && N.value }])
772
+ }, O(u.content), 3)) : Q("", !0),
773
+ u.role === "assistant" ? (r(), v("div", _t, [
774
+ u.showFeedback ? (r(), v("div", Nt, [
775
+ k(h, {
787
776
  content: "满意",
788
777
  placement: "bottom"
789
778
  }, {
790
- default: S(() => [
779
+ default: C(() => [
791
780
  d("img", {
792
- src: mt,
781
+ src: kt,
793
782
  alt: "满意",
794
- onClick: (j) => $("satisfied", H)
795
- }, null, 8, Et)
783
+ onClick: (j) => $("satisfied", K)
784
+ }, null, 8, Ut)
796
785
  ]),
797
786
  _: 2
798
787
  }, 1024),
799
- A(M, {
788
+ k(h, {
800
789
  content: "满意",
801
790
  placement: "bottom"
802
791
  }, {
803
- default: S(() => [
792
+ default: C(() => [
804
793
  d("img", {
805
- src: pt,
794
+ src: bt,
806
795
  alt: "不满意",
807
- onClick: (j) => $("open", H)
808
- }, null, 8, Vt)
796
+ onClick: (j) => $("open", K)
797
+ }, null, 8, It)
809
798
  ]),
810
799
  _: 2
811
800
  }, 1024)
812
- ])) : P("", !0),
813
- ue(u.content) ? (i(), R(m, {
801
+ ])) : Q("", !0),
802
+ ve(u.content) ? (r(), R(m, {
814
803
  key: 1,
815
804
  class: "confirm-btn",
816
- onClick: (j) => Se(u.content)
805
+ onClick: (j) => Me(u.content)
817
806
  }, {
818
- default: S(() => [...t[6] || (t[6] = [
819
- X(" 确认查询 ", -1)
807
+ default: C(() => [...e[6] || (e[6] = [
808
+ Z(" 确认查询 ", -1)
820
809
  ])]),
821
810
  _: 1
822
- }, 8, ["onClick"])) : P("", !0)
823
- ])) : P("", !0)
811
+ }, 8, ["onClick"])) : Q("", !0)
812
+ ])) : Q("", !0)
824
813
  ])
825
- ], 64)) : P("", !0)
814
+ ], 64)) : Q("", !0)
826
815
  ], 2))), 128))
827
816
  ], 512),
828
- d("div", Bt, [
829
- A(F, {
817
+ d("div", Ft, [
818
+ k(z, {
830
819
  class: "message-input",
831
- modelValue: k.value,
832
- "onUpdate:modelValue": t[0] || (t[0] = (u) => k.value = u),
820
+ modelValue: S.value,
821
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => S.value = u),
833
822
  type: "textarea",
834
823
  rows: 4,
835
824
  autosize: { minRows: 2, maxRows: 4 },
836
825
  placeholder: "输入您想查询的品种条件...",
837
- onKeydown: Ce
826
+ onKeydown: Ve
838
827
  }, null, 8, ["modelValue"]),
839
- d("div", xt, [
840
- t[8] || (t[8] = d("div", { class: "input-hint" }, [
828
+ d("div", zt, [
829
+ e[8] || (e[8] = d("div", { class: "input-hint" }, [
841
830
  d("span", null, "Enter 发送 | Ctrl + Enter 换行")
842
831
  ], -1)),
843
- A(m, {
832
+ k(m, {
844
833
  class: "send-btn",
845
834
  type: "primary",
846
- icon: c(_e),
835
+ icon: c(Le),
847
836
  loading: y.value,
848
- onClick: q,
837
+ onClick: G,
849
838
  round: ""
850
839
  }, {
851
- default: S(() => [...t[7] || (t[7] = [
852
- X(" 发送 ", -1)
840
+ default: C(() => [...e[7] || (e[7] = [
841
+ Z(" 发送 ", -1)
853
842
  ])]),
854
843
  _: 1
855
844
  }, 8, ["icon", "loading"])
@@ -859,40 +848,40 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
859
848
  ]),
860
849
  _: 1
861
850
  }, 8, ["modelValue"]),
862
- A(ce, {
863
- modelValue: Y.value,
864
- "onUpdate:modelValue": t[5] || (t[5] = (u) => Y.value = u),
851
+ k(pe, {
852
+ modelValue: P.value,
853
+ "onUpdate:modelValue": e[5] || (e[5] = (u) => P.value = u),
865
854
  title: "📝 反馈意见",
866
855
  width: "400px"
867
856
  }, {
868
- footer: S(() => [
869
- d("span", It, [
870
- A(m, {
871
- onClick: t[3] || (t[3] = (u) => Y.value = !1)
857
+ footer: C(() => [
858
+ d("span", Yt, [
859
+ k(m, {
860
+ onClick: e[3] || (e[3] = (u) => P.value = !1)
872
861
  }, {
873
- default: S(() => [...t[11] || (t[11] = [
874
- X("取消", -1)
862
+ default: C(() => [...e[11] || (e[11] = [
863
+ Z("取消", -1)
875
864
  ])]),
876
865
  _: 1
877
866
  }),
878
- A(m, {
867
+ k(m, {
879
868
  type: "primary",
880
- onClick: t[4] || (t[4] = (u) => $("unsatisfied", Z.value))
869
+ onClick: e[4] || (e[4] = (u) => $("unsatisfied", W.value))
881
870
  }, {
882
- default: S(() => [...t[12] || (t[12] = [
883
- X("提交反馈", -1)
871
+ default: C(() => [...e[12] || (e[12] = [
872
+ Z("提交反馈", -1)
884
873
  ])]),
885
874
  _: 1
886
875
  })
887
876
  ])
888
877
  ]),
889
- default: S(() => [
890
- d("div", Nt, [
891
- t[9] || (t[9] = d("div", { class: "feedback-emoji" }, "😟", -1)),
892
- t[10] || (t[10] = d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)),
893
- A(F, {
894
- modelValue: K.value,
895
- "onUpdate:modelValue": t[2] || (t[2] = (u) => K.value = u),
878
+ default: C(() => [
879
+ d("div", Qt, [
880
+ e[9] || (e[9] = d("div", { class: "feedback-emoji" }, "😟", -1)),
881
+ e[10] || (e[10] = d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)),
882
+ k(z, {
883
+ modelValue: H.value,
884
+ "onUpdate:modelValue": e[2] || (e[2] = (u) => H.value = u),
896
885
  type: "textarea",
897
886
  rows: 4,
898
887
  placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
@@ -904,11 +893,11 @@ const gt = { class: "ai-dialog-body" }, yt = { class: "avatar" }, At = { class:
904
893
  ], 64);
905
894
  };
906
895
  }
907
- }, Qt = /* @__PURE__ */ Ze(Ut, [["__scopeId", "data-v-7e3d6eda"]]), us = {
908
- install(e) {
909
- e.component("st-varietyAiHelper", Qt);
896
+ }, Lt = /* @__PURE__ */ lt(Jt, [["__scopeId", "data-v-4edbe8e8"]]), gs = {
897
+ install(t) {
898
+ t.component("st-varietyAiHelper", Lt);
910
899
  }
911
900
  };
912
901
  export {
913
- us as default
902
+ gs as default
914
903
  };