st-comp 0.0.268 → 0.0.270

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 (128) hide show
  1. package/components.d.ts +1 -0
  2. package/es/CustomFunction.cjs +1 -1
  3. package/es/CustomFunction.js +22 -22
  4. package/es/FactorWarning.cjs +1 -1
  5. package/es/FactorWarning.js +26 -26
  6. package/es/Kline.cjs +1 -1
  7. package/es/Kline.js +11 -11
  8. package/es/KlineBasic.cjs +1 -1
  9. package/es/KlineBasic.js +19 -19
  10. package/es/KlineConfig.cjs +1 -1
  11. package/es/KlineConfig.js +16 -16
  12. package/es/KlineNew.cjs +1 -1
  13. package/es/KlineNew.js +10 -10
  14. package/es/KlinePlus.cjs +1 -1
  15. package/es/KlinePlus.js +12 -12
  16. package/es/MonacoEditor.cjs +1 -1
  17. package/es/MonacoEditor.js +18 -18
  18. package/es/Pagination.cjs +1 -1
  19. package/es/Pagination.js +14 -14
  20. package/es/PasswordPrompt.cjs +1 -1
  21. package/es/PasswordPrompt.js +2 -2
  22. package/es/Table.cjs +1 -1
  23. package/es/Table.js +18 -18
  24. package/es/User.cjs +1 -1
  25. package/es/User.js +19 -19
  26. package/es/VarSelectDialog.cjs +1 -1
  27. package/es/VarSelectDialog.js +19 -19
  28. package/es/VarietyAiHelper.cjs +8 -3
  29. package/es/VarietyAiHelper.js +487 -309
  30. package/es/VarietyAutoComplete.cjs +1 -1
  31. package/es/VarietyAutoComplete.js +8 -8
  32. package/es/VarietySearch.cjs +1 -1
  33. package/es/VarietySearch.js +31 -31
  34. package/es/{VarietySelect-639a8d9a.cjs → VarietySelect-7da473c5.cjs} +1 -1
  35. package/es/{VarietySelect-1ac10ec2.js → VarietySelect-b01281d3.js} +3 -3
  36. package/es/VarietyTextCopy.cjs +1 -1
  37. package/es/VarietyTextCopy.js +10 -10
  38. package/es/VirtualTable.cjs +1 -1
  39. package/es/VirtualTable.js +66 -66
  40. package/es/{_initCloneObject-6b8c230e.js → _initCloneObject-6243b839.js} +2 -2
  41. package/es/{_initCloneObject-9eddcb0c.cjs → _initCloneObject-76e116d0.cjs} +1 -1
  42. package/es/aiTools-275c9799.cjs +4 -0
  43. package/es/aiTools-9c59a74a.js +149 -0
  44. package/es/aiTools.js +121 -27
  45. package/es/{config-provider-56193d47.js → config-provider-20b05e99.js} +3 -3
  46. package/es/{config-provider-ea286661.cjs → config-provider-4c784baf.cjs} +1 -1
  47. package/es/{dropdown-f30148cc.cjs → dropdown-33c19e56.cjs} +1 -1
  48. package/es/{dropdown-4e541d60.js → dropdown-f8d9fe56.js} +3 -3
  49. package/es/{el-autocomplete-4b521c83.js → el-autocomplete-3f34a1c3.js} +6 -6
  50. package/es/{el-autocomplete-3949e68c.cjs → el-autocomplete-525ca867.cjs} +1 -1
  51. package/es/{el-button-dd065de0.cjs → el-button-13dc915f.cjs} +1 -1
  52. package/es/{el-button-4f201000.js → el-button-cd144ee1.js} +3 -3
  53. package/es/{el-checkbox-02ce40f0.cjs → el-checkbox-95325acd.cjs} +1 -1
  54. package/es/{el-checkbox-33cb73db.js → el-checkbox-d6c883f4.js} +3 -3
  55. package/es/{el-dialog-6501a151.cjs → el-dialog-4056070b.cjs} +1 -1
  56. package/es/{el-dialog-1939f7c5.js → el-dialog-59a23c2b.js} +4 -4
  57. package/es/{el-form-item-316b35d8.cjs → el-form-item-3475aaad.cjs} +1 -1
  58. package/es/{el-form-item-ea11211d.js → el-form-item-a9556441.js} +5 -5
  59. package/es/{el-input-58786d42.js → el-input-1f14a6e2.js} +33 -33
  60. package/es/{el-input-094afbe2.cjs → el-input-c7bf8e44.cjs} +1 -1
  61. package/es/{el-input-number-a7971697.js → el-input-number-411ac93d.js} +12 -12
  62. package/es/{el-input-number-a609a5e3.cjs → el-input-number-9d810842.cjs} +1 -1
  63. package/es/{el-loading-d171ce64.cjs → el-loading-84dde1a8.cjs} +1 -1
  64. package/es/{el-loading-f3815921.js → el-loading-cbeb3b86.js} +1 -1
  65. package/es/{el-menu-item-3d1e0aff.cjs → el-menu-item-18d7d869.cjs} +1 -1
  66. package/es/{el-menu-item-a166b997.js → el-menu-item-77152904.js} +5 -5
  67. package/es/{el-message-box-f2b667e9.js → el-message-box-a26e3ed4.js} +9 -9
  68. package/es/{el-message-box-b8ffcf34.cjs → el-message-box-e4b8cc99.cjs} +1 -1
  69. package/es/{el-overlay-1dfe3675.js → el-overlay-465cd11e.js} +3 -3
  70. package/es/{el-overlay-a94f8a98.cjs → el-overlay-d26a1b98.cjs} +1 -1
  71. package/es/{el-popconfirm-70e2849c.cjs → el-popconfirm-12f6f35c.cjs} +1 -1
  72. package/es/{el-popconfirm-ca31ceea.js → el-popconfirm-289b3e89.js} +5 -5
  73. package/es/{el-popper-ce575c12.cjs → el-popper-c7648df6.cjs} +1 -1
  74. package/es/{el-popper-db6c599f.js → el-popper-f96fc206.js} +2 -2
  75. package/es/{el-segmented-741f2252.js → el-segmented-598b92b0.js} +2 -2
  76. package/es/{el-segmented-4d50b63f.cjs → el-segmented-f0bce6f2.cjs} +1 -1
  77. package/es/{el-select-086bcb6c.js → el-select-d47b5923.js} +9 -9
  78. package/es/{el-select-2ebc8380.cjs → el-select-f3cc464f.cjs} +1 -1
  79. package/es/{el-table-column-2f07fbdb.cjs → el-table-column-220ae131.cjs} +1 -1
  80. package/es/{el-table-column-8a15378a.js → el-table-column-f1017e75.js} +10 -10
  81. package/es/{el-tag-65a99986.js → el-tag-0a4197f5.js} +2 -2
  82. package/es/{el-tag-f48b1190.cjs → el-tag-51bd491c.cjs} +1 -1
  83. package/es/{el-text-33359f44.cjs → el-text-abf10fdf.cjs} +1 -1
  84. package/es/{el-text-cbb693f2.js → el-text-c3ee80fe.js} +1 -1
  85. package/es/{index-18565979.cjs → index-0986e373.cjs} +1 -1
  86. package/es/{index-4f900527.cjs → index-09ce1753.cjs} +1 -1
  87. package/es/{index-eeae573e.cjs → index-0ff5fe69.cjs} +2 -2
  88. package/es/{index-ca91ac68.js → index-1b97095f.js} +83 -68
  89. package/es/{index-ff26b1a6.js → index-3301d870.js} +2 -2
  90. package/es/{index-1e91e986.js → index-33430c9f.js} +1 -1
  91. package/es/{index-0f767104.cjs → index-3ed7914e.cjs} +1 -1
  92. package/es/index-476c4459.cjs +1 -0
  93. package/es/{index-072c4a65.js → index-499cf989.js} +5 -5
  94. package/es/{index-21e8d2bc.cjs → index-4b95bae1.cjs} +1 -1
  95. package/es/{index-8439d2f9.cjs → index-60c69dd1.cjs} +1 -1
  96. package/es/{index-57d82da0.js → index-67180968.js} +2 -2
  97. package/es/{index-bf98dd03.cjs → index-68798830.cjs} +1 -1
  98. package/es/{index-f2583ae9.js → index-89cc0265.js} +10 -10
  99. package/es/{index-1955f23d.js → index-8e88a0bd.js} +1 -1
  100. package/es/{index-a4e252a0.js → index-a17c90c5.js} +1 -1
  101. package/es/{index-b51915a2.js → index-afc4a1e5.js} +2 -2
  102. package/es/{index-7eb88616.cjs → index-cfcd60ca.cjs} +1 -1
  103. package/es/{index-5b546f7d.cjs → index-d2cfd4a3.cjs} +1 -1
  104. package/es/{index-7db02db7.js → index-d3e9a6f2.js} +2 -2
  105. package/es/{python-86a0735f.js → python-c00abcbd.js} +18 -18
  106. package/es/{python-18d44a7b.cjs → python-e528f42b.cjs} +1 -1
  107. package/es/style.css +1 -1
  108. package/es/{use-form-common-props-00ec25ac.cjs → use-form-common-props-02be4928.cjs} +1 -1
  109. package/es/{use-form-common-props-c14990b9.js → use-form-common-props-dd9617de.js} +12 -12
  110. package/es/{use-global-config-28efb416.cjs → use-global-config-31b3ec57.cjs} +1 -1
  111. package/es/{use-global-config-a01b5ce1.js → use-global-config-4dfc7236.js} +2 -2
  112. package/es/{validator-65de1caf.js → validator-029bfc98.js} +1 -1
  113. package/es/{validator-119fdaf4.cjs → validator-ea292506.cjs} +1 -1
  114. package/es/{zh-cn-9fb29a39.cjs → zh-cn-0edc7234.cjs} +1 -1
  115. package/es/{zh-cn-c1c28e70.js → zh-cn-89e434f9.js} +1 -1
  116. package/lib/aiTools.js +121 -27
  117. package/lib/bundle.js +1 -1
  118. package/lib/bundle.umd.cjs +217 -212
  119. package/lib/{index-8edd5697.js → index-2dd72fda.js} +22650 -22458
  120. package/lib/{python-5c07749c.js → python-126b61c5.js} +1 -1
  121. package/lib/style.css +1 -1
  122. package/package.json +1 -1
  123. package/packages/VarietyAiHelper/index.vue +284 -293
  124. package/public/aiTools.js +121 -27
  125. package/src/App.vue +14 -0
  126. package/es/aiTools-822859d6.cjs +0 -4
  127. package/es/aiTools-9a9c997f.js +0 -149
  128. package/es/index-3792552a.cjs +0 -1
@@ -1,34 +1,34 @@
1
- import { b as re, p as te, e as ce, u as ue, c as de, n as me, _ as pe, w as fe } from "./base-29f73b05.js";
2
- import { E as ve } from "./el-dialog-1939f7c5.js";
3
- import "./el-overlay-1dfe3675.js";
4
- import { E as _e } from "./el-button-4f201000.js";
5
- import { E as ge } from "./el-input-58786d42.js";
6
- import { defineComponent as se, ref as v, computed as x, watch as K, openBlock as l, createElementBlock as u, normalizeClass as ae, unref as _, normalizeStyle as Q, createBlock as $, withCtx as h, resolveDynamicComponent as he, renderSlot as ke, inject as be, reactive as ye, nextTick as R, Fragment as P, createVNode as m, createElementVNode as s, renderList as X, toDisplayString as J, createCommentVNode as w, createTextVNode as U, pushScopeId as Te, popScopeId as we } from "vue";
7
- import { d as z } from "./dayjs.min-8313b006.js";
8
- import { V as Ce, U as Se } from "./index-7ed0999e.js";
9
- import { s as Ee } from "./aiTools-9a9c997f.js";
10
- import { E as ne, u as Ve, s as Z, p as De, t as ee, v as Me } from "./index-ca91ac68.js";
11
- import { _ as Ye } from "./_plugin-vue_export-helper-dad06003.js";
12
- import { E as O } from "./index-072c4a65.js";
13
- import { k as Fe, i as He } from "./use-form-common-props-c14990b9.js";
14
- import "./index-1955f23d.js";
1
+ import { b as de, p as pe, e as te, u as fe, c as oe, n as _e, _ as me, w as ve, x as ye } from "./base-29f73b05.js";
2
+ import { E as be } from "./el-dialog-59a23c2b.js";
3
+ import "./el-overlay-465cd11e.js";
4
+ import { E as we } from "./el-button-cd144ee1.js";
5
+ import { E as Te } from "./el-input-1f14a6e2.js";
6
+ import { defineComponent as se, ref as w, computed as f, watch as re, openBlock as i, createElementBlock as d, normalizeClass as y, unref as s, normalizeStyle as x, createBlock as K, withCtx as P, resolveDynamicComponent as ge, renderSlot as le, createElementVNode as r, toDisplayString as O, createCommentVNode as A, inject as Se, reactive as Ce, nextTick as ae, Fragment as q, createVNode as C, renderList as ue, createTextVNode as ne, pushScopeId as $e, popScopeId as Ee } from "vue";
7
+ import { d as X } from "./dayjs.min-8313b006.js";
8
+ import { V as Pe, U as De } from "./index-7ed0999e.js";
9
+ import { s as Fe } from "./aiTools-9c59a74a.js";
10
+ import { E as ie, w as Ne, o as Ve, p as Me, s as Ae, c as Ye, u as He, t as Le, v as Be, x as Ie, y as ze } from "./index-1b97095f.js";
11
+ import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
12
+ import { E as ee } from "./index-499cf989.js";
13
+ import { k as Oe, i as Re } from "./use-form-common-props-dd9617de.js";
14
+ import "./index-8e88a0bd.js";
15
15
  import "./index-8391a3df.js";
16
16
  import "./index-de24705f.js";
17
17
  import "./index-2e331d74.js";
18
18
  import "./vnode-a83e6de8.js";
19
19
  import "./scroll-6799bafc.js";
20
- import "./use-global-config-a01b5ce1.js";
21
- import "./index-1e91e986.js";
20
+ import "./use-global-config-4dfc7236.js";
21
+ import "./index-33430c9f.js";
22
22
  import "./index-657047bb.js";
23
23
  import "./typescript-7ae59c4c.js";
24
- import "./index-7db02db7.js";
25
- import "./config-provider-56193d47.js";
26
- const Pe = re({
24
+ import "./index-d3e9a6f2.js";
25
+ import "./config-provider-20b05e99.js";
26
+ const Ue = de({
27
27
  size: {
28
28
  type: [Number, String],
29
- values: Fe,
29
+ values: Oe,
30
30
  default: "",
31
- validator: (d) => te(d)
31
+ validator: (p) => pe(p)
32
32
  },
33
33
  shape: {
34
34
  type: String,
@@ -36,7 +36,7 @@ const Pe = re({
36
36
  default: "circle"
37
37
  },
38
38
  icon: {
39
- type: He
39
+ type: Re
40
40
  },
41
41
  src: {
42
42
  type: String,
@@ -45,85 +45,270 @@ const Pe = re({
45
45
  alt: String,
46
46
  srcSet: String,
47
47
  fit: {
48
- type: ce(String),
48
+ type: te(String),
49
49
  default: "cover"
50
50
  }
51
- }), Ne = {
52
- error: (d) => d instanceof Event
53
- }, Ae = se({
51
+ }), je = {
52
+ error: (p) => p instanceof Event
53
+ }, Je = se({
54
54
  name: "ElAvatar"
55
- }), Le = /* @__PURE__ */ se({
56
- ...Ae,
57
- props: Pe,
58
- emits: Ne,
59
- setup(d, { emit: I }) {
60
- const M = d, g = ue("avatar"), C = v(!1), N = x(() => {
61
- const { size: i, icon: p, shape: S } = M, b = [g.b()];
62
- return de(i) && b.push(g.m(i)), p && b.push(g.m("icon")), S && b.push(g.m(S)), b;
63
- }), B = x(() => {
64
- const { size: i } = M;
65
- return te(i) ? g.cssVarBlock({
66
- size: me(i) || ""
55
+ }), We = /* @__PURE__ */ se({
56
+ ...Je,
57
+ props: Ue,
58
+ emits: je,
59
+ setup(p, { emit: c }) {
60
+ const D = p, l = fe("avatar"), F = w(!1), N = f(() => {
61
+ const { size: u, icon: v, shape: $ } = D, T = [l.b()];
62
+ return oe(u) && T.push(l.m(u)), v && T.push(l.m("icon")), $ && T.push(l.m($)), T;
63
+ }), U = f(() => {
64
+ const { size: u } = D;
65
+ return pe(u) ? l.cssVarBlock({
66
+ size: _e(u) || ""
67
67
  }) : void 0;
68
- }), j = x(() => ({
69
- objectFit: M.fit
68
+ }), J = f(() => ({
69
+ objectFit: D.fit
70
70
  }));
71
- K(() => M.src, () => C.value = !1);
72
- function y(i) {
73
- C.value = !0, I("error", i);
71
+ re(() => D.src, () => F.value = !1);
72
+ function k(u) {
73
+ F.value = !0, c("error", u);
74
74
  }
75
- return (i, p) => (l(), u("span", {
76
- class: ae(_(N)),
77
- style: Q(_(B))
75
+ return (u, v) => (i(), d("span", {
76
+ class: y(s(N)),
77
+ style: x(s(U))
78
78
  }, [
79
- (i.src || i.srcSet) && !C.value ? (l(), u("img", {
79
+ (u.src || u.srcSet) && !F.value ? (i(), d("img", {
80
80
  key: 0,
81
- src: i.src,
82
- alt: i.alt,
83
- srcset: i.srcSet,
84
- style: Q(_(j)),
85
- onError: y
86
- }, null, 44, ["src", "alt", "srcset"])) : i.icon ? (l(), $(_(ne), { key: 1 }, {
87
- default: h(() => [
88
- (l(), $(he(i.icon)))
81
+ src: u.src,
82
+ alt: u.alt,
83
+ srcset: u.srcSet,
84
+ style: x(s(J)),
85
+ onError: k
86
+ }, null, 44, ["src", "alt", "srcset"])) : u.icon ? (i(), K(s(ie), { key: 1 }, {
87
+ default: P(() => [
88
+ (i(), K(ge(u.icon)))
89
89
  ]),
90
90
  _: 1
91
- })) : ke(i.$slots, "default", { key: 2 })
91
+ })) : le(u.$slots, "default", { key: 2 })
92
92
  ], 6));
93
93
  }
94
94
  });
95
- var ze = /* @__PURE__ */ pe(Le, [["__file", "avatar.vue"]]);
96
- const Be = fe(ze);
97
- const k = (d) => (Te("data-v-b6460ca4"), d = d(), we(), d), Oe = { class: "ai-dialog-body" }, $e = { class: "avatar" }, Ie = { class: "message-content" }, je = {
95
+ var qe = /* @__PURE__ */ me(We, [["__file", "avatar.vue"]]);
96
+ const Ke = ve(qe), Ge = de({
97
+ type: {
98
+ type: String,
99
+ default: "line",
100
+ values: ["line", "circle", "dashboard"]
101
+ },
102
+ percentage: {
103
+ type: Number,
104
+ default: 0,
105
+ validator: (p) => p >= 0 && p <= 100
106
+ },
107
+ status: {
108
+ type: String,
109
+ default: "",
110
+ values: ["", "success", "exception", "warning"]
111
+ },
112
+ indeterminate: Boolean,
113
+ duration: {
114
+ type: Number,
115
+ default: 3
116
+ },
117
+ strokeWidth: {
118
+ type: Number,
119
+ default: 6
120
+ },
121
+ strokeLinecap: {
122
+ type: te(String),
123
+ default: "round"
124
+ },
125
+ textInside: Boolean,
126
+ width: {
127
+ type: Number,
128
+ default: 126
129
+ },
130
+ showText: {
131
+ type: Boolean,
132
+ default: !0
133
+ },
134
+ color: {
135
+ type: te([
136
+ String,
137
+ Array,
138
+ Function
139
+ ]),
140
+ default: ""
141
+ },
142
+ striped: Boolean,
143
+ stripedFlow: Boolean,
144
+ format: {
145
+ type: te(Function),
146
+ default: (p) => `${p}%`
147
+ }
148
+ }), Qe = se({
149
+ name: "ElProgress"
150
+ }), Xe = /* @__PURE__ */ se({
151
+ ...Qe,
152
+ props: Ge,
153
+ setup(p) {
154
+ const c = p, D = {
155
+ success: "#13ce66",
156
+ exception: "#ff4949",
157
+ warning: "#e6a23c",
158
+ default: "#20a0ff"
159
+ }, l = fe("progress"), F = f(() => {
160
+ const e = {
161
+ width: `${c.percentage}%`,
162
+ animationDuration: `${c.duration}s`
163
+ }, g = G(c.percentage);
164
+ return g.includes("gradient") ? e.background = g : e.backgroundColor = g, e;
165
+ }), N = f(() => (c.strokeWidth / c.width * 100).toFixed(1)), U = f(() => ["circle", "dashboard"].includes(c.type) ? Number.parseInt(`${50 - Number.parseFloat(N.value) / 2}`, 10) : 0), J = f(() => {
166
+ const e = U.value, g = c.type === "dashboard";
167
+ return `
168
+ M 50 50
169
+ m 0 ${g ? "" : "-"}${e}
170
+ a ${e} ${e} 0 1 1 0 ${g ? "-" : ""}${e * 2}
171
+ a ${e} ${e} 0 1 1 0 ${g ? "" : "-"}${e * 2}
172
+ `;
173
+ }), k = f(() => 2 * Math.PI * U.value), u = f(() => c.type === "dashboard" ? 0.75 : 1), v = f(() => `${-1 * k.value * (1 - u.value) / 2}px`), $ = f(() => ({
174
+ strokeDasharray: `${k.value * u.value}px, ${k.value}px`,
175
+ strokeDashoffset: v.value
176
+ })), T = f(() => ({
177
+ strokeDasharray: `${k.value * u.value * (c.percentage / 100)}px, ${k.value}px`,
178
+ strokeDashoffset: v.value,
179
+ transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
180
+ })), o = f(() => {
181
+ let e;
182
+ return c.color ? e = G(c.percentage) : e = D[c.status] || D.default, e;
183
+ }), V = f(() => c.status === "warning" ? Ne : c.type === "line" ? c.status === "success" ? Ve : Me : c.status === "success" ? Ae : Ye), Y = f(() => c.type === "line" ? 12 + c.strokeWidth * 0.4 : c.width * 0.111111 + 2), H = f(() => c.format(c.percentage));
184
+ function Z(e) {
185
+ const g = 100 / e.length;
186
+ return e.map((b, B) => oe(b) ? {
187
+ color: b,
188
+ percentage: (B + 1) * g
189
+ } : b).sort((b, B) => b.percentage - B.percentage);
190
+ }
191
+ const G = (e) => {
192
+ var g;
193
+ const { color: L } = c;
194
+ if (ye(L))
195
+ return L(e);
196
+ if (oe(L))
197
+ return L;
198
+ {
199
+ const b = Z(L);
200
+ for (const B of b)
201
+ if (B.percentage > e)
202
+ return B.color;
203
+ return (g = b[b.length - 1]) == null ? void 0 : g.color;
204
+ }
205
+ };
206
+ return (e, g) => (i(), d("div", {
207
+ class: y([
208
+ s(l).b(),
209
+ s(l).m(e.type),
210
+ s(l).is(e.status),
211
+ {
212
+ [s(l).m("without-text")]: !e.showText,
213
+ [s(l).m("text-inside")]: e.textInside
214
+ }
215
+ ]),
216
+ role: "progressbar",
217
+ "aria-valuenow": e.percentage,
218
+ "aria-valuemin": "0",
219
+ "aria-valuemax": "100"
220
+ }, [
221
+ e.type === "line" ? (i(), d("div", {
222
+ key: 0,
223
+ class: y(s(l).b("bar"))
224
+ }, [
225
+ r("div", {
226
+ class: y(s(l).be("bar", "outer")),
227
+ style: x({ height: `${e.strokeWidth}px` })
228
+ }, [
229
+ r("div", {
230
+ class: y([
231
+ s(l).be("bar", "inner"),
232
+ { [s(l).bem("bar", "inner", "indeterminate")]: e.indeterminate },
233
+ { [s(l).bem("bar", "inner", "striped")]: e.striped },
234
+ { [s(l).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
235
+ ]),
236
+ style: x(s(F))
237
+ }, [
238
+ (e.showText || e.$slots.default) && e.textInside ? (i(), d("div", {
239
+ key: 0,
240
+ class: y(s(l).be("bar", "innerText"))
241
+ }, [
242
+ le(e.$slots, "default", { percentage: e.percentage }, () => [
243
+ r("span", null, O(s(H)), 1)
244
+ ])
245
+ ], 2)) : A("v-if", !0)
246
+ ], 6)
247
+ ], 6)
248
+ ], 2)) : (i(), d("div", {
249
+ key: 1,
250
+ class: y(s(l).b("circle")),
251
+ style: x({ height: `${e.width}px`, width: `${e.width}px` })
252
+ }, [
253
+ (i(), d("svg", { viewBox: "0 0 100 100" }, [
254
+ r("path", {
255
+ class: y(s(l).be("circle", "track")),
256
+ d: s(J),
257
+ stroke: `var(${s(l).cssVarName("fill-color-light")}, #e5e9f2)`,
258
+ "stroke-linecap": e.strokeLinecap,
259
+ "stroke-width": s(N),
260
+ fill: "none",
261
+ style: x(s($))
262
+ }, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
263
+ r("path", {
264
+ class: y(s(l).be("circle", "path")),
265
+ d: s(J),
266
+ stroke: s(o),
267
+ fill: "none",
268
+ opacity: e.percentage ? 1 : 0,
269
+ "stroke-linecap": e.strokeLinecap,
270
+ "stroke-width": s(N),
271
+ style: x(s(T))
272
+ }, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
273
+ ]))
274
+ ], 6)),
275
+ (e.showText || e.$slots.default) && !e.textInside ? (i(), d("div", {
276
+ key: 2,
277
+ class: y(s(l).e("text")),
278
+ style: x({ fontSize: `${s(Y)}px` })
279
+ }, [
280
+ le(e.$slots, "default", { percentage: e.percentage }, () => [
281
+ e.status ? (i(), K(s(ie), { key: 1 }, {
282
+ default: P(() => [
283
+ (i(), K(ge(s(V))))
284
+ ]),
285
+ _: 1
286
+ })) : (i(), d("span", { key: 0 }, O(s(H)), 1))
287
+ ])
288
+ ], 6)) : A("v-if", !0)
289
+ ], 10, ["aria-valuenow"]));
290
+ }
291
+ });
292
+ var Ze = /* @__PURE__ */ me(Xe, [["__file", "progress.vue"]]);
293
+ const et = ve(Ze);
294
+ const R = (p) => ($e("data-v-8e2737b7"), p = p(), Ee(), p), tt = { class: "ai-dialog-body" }, st = { class: "avatar" }, at = { class: "message-content" }, nt = {
98
295
  key: 0,
99
296
  class: "node-progress"
100
- }, xe = { class: "node-status-icon" }, Re = { class: "node-name" }, Je = {
101
- key: 0,
102
- class: "node-progress-item next-step"
103
- }, Ue = { class: "node-status-icon" }, Ke = /* @__PURE__ */ k(() => /* @__PURE__ */ s("span", { class: "node-name" }, "正在执行下一步...", -1)), qe = ["innerHTML"], We = {
104
- key: 2,
105
- class: "message-text"
106
- }, Ge = { class: "message-createTime" }, Qe = /* @__PURE__ */ k(() => /* @__PURE__ */ s("div", { class: "message-createTime" }, "请问对本轮查询结果是否满意?", -1)), Xe = { class: "feedback-buttons" }, Ze = ["onClick"], et = /* @__PURE__ */ k(() => /* @__PURE__ */ s("span", { class: "btn-emoji" }, "👍", -1)), tt = /* @__PURE__ */ k(() => /* @__PURE__ */ s("span", { class: "btn-text" }, "满意", -1)), st = [
107
- et,
108
- tt
109
- ], at = ["onClick"], nt = /* @__PURE__ */ k(() => /* @__PURE__ */ s("span", { class: "btn-emoji" }, "👎", -1)), ot = /* @__PURE__ */ k(() => /* @__PURE__ */ s("span", { class: "btn-text" }, "不满意", -1)), it = [
110
- nt,
111
- ot
112
- ], lt = {
297
+ }, ot = { class: "node-status-icon" }, rt = { class: "node-name" }, lt = { class: "progress-footer" }, it = { class: "progress-text" }, ct = ["innerHTML"], ut = { class: "message-createTime" }, dt = /* @__PURE__ */ R(() => /* @__PURE__ */ r("div", { class: "message-createTime" }, "请问对本轮查询结果是否满意?", -1)), pt = { class: "feedback-buttons" }, ft = ["onClick"], mt = /* @__PURE__ */ R(() => /* @__PURE__ */ r("span", { class: "btn-emoji" }, "👍", -1)), vt = /* @__PURE__ */ R(() => /* @__PURE__ */ r("span", { class: "btn-text" }, "满意", -1)), gt = [
298
+ mt,
299
+ vt
300
+ ], ht = ["onClick"], kt = /* @__PURE__ */ R(() => /* @__PURE__ */ r("span", { class: "btn-emoji" }, "👎", -1)), _t = /* @__PURE__ */ R(() => /* @__PURE__ */ r("span", { class: "btn-text" }, "不满意", -1)), yt = [
301
+ kt,
302
+ _t
303
+ ], bt = {
113
304
  key: 1,
114
305
  class: "message-createTime"
115
- }, rt = {
306
+ }, wt = {
116
307
  key: 0,
117
- class: "message-item assistant"
118
- }, ct = { class: "avatar" }, ut = /* @__PURE__ */ k(() => /* @__PURE__ */ s("div", { class: "message-content" }, [
119
- /* @__PURE__ */ s("div", { class: "typing-indicator" }, [
120
- /* @__PURE__ */ s("span"),
121
- /* @__PURE__ */ s("span"),
122
- /* @__PURE__ */ s("span")
123
- ])
124
- ], -1)), dt = { class: "input-area" }, mt = { class: "input-actions" }, pt = /* @__PURE__ */ k(() => /* @__PURE__ */ s("div", { class: "input-hint" }, [
125
- /* @__PURE__ */ s("span", null, "Enter 发送 | Ctrl + Enter 换行")
126
- ], -1)), ft = { class: "feedback-dialog-content" }, vt = /* @__PURE__ */ k(() => /* @__PURE__ */ s("div", { class: "feedback-emoji" }, "😟", -1)), _t = /* @__PURE__ */ k(() => /* @__PURE__ */ s("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), gt = { class: "dialog-footer" }, ht = {
308
+ class: "thinking-placeholder"
309
+ }, Tt = { class: "input-area" }, St = { class: "input-actions" }, Ct = /* @__PURE__ */ R(() => /* @__PURE__ */ r("div", { class: "input-hint" }, [
310
+ /* @__PURE__ */ r("span", null, "Enter 发送 | Ctrl + Enter 换行")
311
+ ], -1)), $t = { class: "feedback-dialog-content" }, Et = /* @__PURE__ */ R(() => /* @__PURE__ */ r("div", { class: "feedback-emoji" }, "😟", -1)), Pt = /* @__PURE__ */ R(() => /* @__PURE__ */ r("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), Dt = { class: "dialog-footer" }, Ft = {
127
312
  __name: "index",
128
313
  props: {
129
314
  defaultMessage: {
@@ -135,218 +320,218 @@ const k = (d) => (Te("data-v-b6460ca4"), d = d(), we(), d), Oe = { class: "ai-di
135
320
  }
136
321
  },
137
322
  emits: ["callBack"],
138
- setup(d, { expose: I, emit: M }) {
139
- const g = be("stConfig"), C = ye(Ce()), N = v(!1), B = M, j = d, y = v(!1), i = v(!1), p = v([]), S = v(!1), b = v(null), o = v([
323
+ setup(p, { expose: c, emit: D }) {
324
+ const l = Se("stConfig"), F = Ce(Pe()), N = w(!1), U = D, J = p, k = w(!1), u = w(!1), v = w([]), $ = w(!1), T = w(null), o = w([
140
325
  {
141
326
  role: "assistant",
142
- content: j.defaultMessage,
327
+ content: J.defaultMessage,
143
328
  userContent: null,
144
329
  showFeedback: !1,
145
330
  hasFeedback: !1,
146
- createTime: z().format("YYYY-MM-DD HH:mm:ss"),
331
+ createTime: X().format("YYYY-MM-DD HH:mm:ss"),
147
332
  resTime: 0,
148
333
  firstPackageTime: 0
149
334
  }
150
- ]), E = v(""), Y = v(!1), A = v(""), q = v({}), W = (n) => {
151
- if (typeof n != "string")
335
+ ]), V = w(""), Y = w(!1), H = w(""), Z = w({}), G = f(() => v.value.filter((a) => a.status === "success").length), e = f(() => v.value.length), g = f(() => e.value ? G.value / e.value * 100 : 0), L = f(() => {
336
+ const a = v.value.find((t) => t.status === "executing");
337
+ return a ? a.name : "处理中";
338
+ }), b = (a) => {
339
+ if (typeof a != "string")
152
340
  return !1;
153
341
  try {
154
- const e = JSON.parse(n);
155
- return e !== null && typeof e == "object";
342
+ const t = JSON.parse(a);
343
+ return t !== null && typeof t == "object";
156
344
  } catch {
157
345
  return !1;
158
346
  }
159
- }, oe = (n) => {
160
- if (!W(n))
347
+ }, B = (a) => {
348
+ if (!b(a))
161
349
  return null;
162
350
  try {
163
- const e = JSON.parse(n), { parsedConditions: t, ...f } = e;
164
- return { parsedConditions: t, webParams: f };
351
+ const t = JSON.parse(a), { parsedConditions: n, ...S } = t;
352
+ return { parsedConditions: n, webParams: S };
165
353
  } catch {
166
354
  return null;
167
355
  }
168
- }, ie = (n) => {
169
- var t;
170
- if (!n)
356
+ }, he = (a) => {
357
+ var n;
358
+ if (!a)
171
359
  return "";
172
- let e = "";
173
- return (t = n.parsedConditions) != null && t.length && (e += '<div class="parsed-conditions">', n.parsedConditions.forEach((f) => {
174
- e += `<div class="parsed-conditions-item">${f}</div>`;
175
- }), e += "</div>"), e;
176
- }, F = async (n, e) => {
177
- switch (n) {
360
+ let t = "";
361
+ return (n = a.parsedConditions) != null && n.length && (t += '<div class="parsed-conditions">', a.parsedConditions.forEach((S) => {
362
+ t += `<div class="parsed-conditions-item">${S}</div>`;
363
+ }), t += "</div>"), t;
364
+ }, W = async (a, t) => {
365
+ switch (a) {
178
366
  case "satisfied": {
179
- const t = o.value[e];
180
- await g.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
181
- userName: C.username,
182
- userContent: t.userContent,
183
- aiContent: t.content,
367
+ const n = o.value[t];
368
+ await l.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
369
+ userName: F.username,
370
+ userContent: n.userContent,
371
+ aiContent: n.content,
184
372
  type: 1,
185
- createTime: t.createTime,
186
- resTime: t.resTime,
187
- firstPackageTime: t.firstPackageTime,
373
+ createTime: n.createTime,
374
+ resTime: n.resTime,
375
+ firstPackageTime: n.firstPackageTime,
188
376
  isSolved: 1,
189
377
  logOrigin: 1
190
- }), O.success("感谢您的评价!"), o.value[e].hasFeedback = !0;
378
+ }), ee.success("感谢您的评价!"), o.value[t].hasFeedback = !0;
191
379
  break;
192
380
  }
193
381
  case "open": {
194
- q.value = e, Y.value = !0;
382
+ Z.value = t, Y.value = !0;
195
383
  break;
196
384
  }
197
385
  case "unsatisfied": {
198
- const t = o.value[e];
199
- await g.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
200
- userName: C.username,
201
- userContent: t.userContent,
202
- userSuggestion: A.value,
203
- aiContent: t.content,
386
+ const n = o.value[t];
387
+ await l.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
388
+ userName: F.username,
389
+ userContent: n.userContent,
390
+ userSuggestion: H.value,
391
+ aiContent: n.content,
204
392
  type: 2,
205
- resTime: t.resTime,
206
- createTime: t.createTime,
207
- firstPackageTime: t.firstPackageTime,
393
+ resTime: n.resTime,
394
+ createTime: n.createTime,
395
+ firstPackageTime: n.firstPackageTime,
208
396
  isSolved: 0,
209
397
  logOrigin: 1
210
- }), O.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, o.value[e].hasFeedback = !0;
398
+ }), ee.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, o.value[t].hasFeedback = !0;
211
399
  break;
212
400
  }
213
401
  case "default": {
214
- const t = o.value[e];
215
- await g.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
216
- userName: C.username,
217
- userContent: t.userContent,
218
- userSuggestion: A.value,
219
- aiContent: t.content,
402
+ const n = o.value[t];
403
+ await l.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
404
+ userName: F.username,
405
+ userContent: n.userContent,
406
+ userSuggestion: H.value,
407
+ aiContent: n.content,
220
408
  type: null,
221
- resTime: t.resTime,
222
- createTime: t.createTime,
223
- firstPackageTime: t.firstPackageTime,
409
+ resTime: n.resTime,
410
+ createTime: n.createTime,
411
+ firstPackageTime: n.firstPackageTime,
224
412
  isSolved: 1,
225
413
  logOrigin: 1
226
414
  });
227
415
  }
228
416
  }
229
- }, G = async () => {
230
- const n = E.value.trim();
231
- if (!n)
232
- return O.warning("请输入消息内容");
233
- if (y.value)
417
+ }, ce = async () => {
418
+ const a = V.value.trim();
419
+ if (!a)
420
+ return ee.warning("请输入消息内容");
421
+ if (k.value)
234
422
  return;
235
- p.value = [], S.value = !1, o.value.push({
423
+ v.value = [], $.value = !1, o.value.push({
236
424
  role: "user",
237
- content: n,
238
- createTime: z().format("YYYY-MM-DD HH:mm:ss")
239
- }), E.value = "", await T(), o.value.push({
425
+ content: a,
426
+ createTime: X().format("YYYY-MM-DD HH:mm:ss")
427
+ }), V.value = "", await I(), o.value.push({
240
428
  role: "assistant",
241
429
  content: "",
242
- userContent: n,
430
+ userContent: a,
243
431
  showFeedback: !1,
244
432
  hasFeedback: !1,
245
- createTime: z().format("YYYY-MM-DD HH:mm:ss"),
433
+ createTime: X().format("YYYY-MM-DD HH:mm:ss"),
246
434
  resTime: 0,
247
435
  firstPackageTime: 0
248
- }), await T(), y.value = !0, i.value = !0;
249
- let e = "", t = (/* @__PURE__ */ new Date()).getTime(), f = !1;
436
+ }), await I(), k.value = !0, u.value = !0;
437
+ let t = "", n = (/* @__PURE__ */ new Date()).getTime(), S = !1;
250
438
  try {
251
- const H = "1977602b357e4dab9d0b74899d5323b3", L = "sk-d995eb26a4334bdeb2ccb4cbfaf51de8";
252
- await Ee({
253
- mode: g.env.MODE,
254
- appId: H,
255
- apiKey: L,
256
- token: Se(),
257
- value: n,
258
- callback: (V, r) => {
259
- if (V === "error") {
260
- i.value = !1, y.value = !1, o.value.pop(), o.value.push({
439
+ await Fe({
440
+ baseUrl: l.env.VITE_BASE_URL,
441
+ token: De(),
442
+ value: a,
443
+ callback: (z, M) => {
444
+ if (z === "error") {
445
+ u.value = !1, k.value = !1, o.value.pop(), o.value.push({
261
446
  role: "assistant",
262
- userContent: n,
263
- content: `❌ ${r}`,
447
+ userContent: a,
448
+ content: `❌ ${M}`,
264
449
  showFeedback: !1,
265
450
  hasFeedback: !1,
266
- createTime: z().format("YYYY-MM-DD HH:mm:ss"),
267
- resTime: (/* @__PURE__ */ new Date()).getTime() - t,
451
+ createTime: X().format("YYYY-MM-DD HH:mm:ss"),
452
+ resTime: (/* @__PURE__ */ new Date()).getTime() - n,
268
453
  firstPackageTime: 0
269
- }), F("default", o.value.length - 1), T();
454
+ }), W("default", o.value.length - 1), I();
270
455
  return;
271
456
  }
272
- if (V === "node") {
273
- if (!f) {
274
- f = !0;
275
- const c = o.value[o.value.length - 1];
276
- c && c.role === "assistant" && c.firstPackageTime === 0 && (c.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - t);
457
+ if (z === "node") {
458
+ if (!S) {
459
+ S = !0, u.value = !1;
460
+ const _ = o.value[o.value.length - 1];
461
+ _ && _.role === "assistant" && _.firstPackageTime === 0 && (_.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - n);
277
462
  }
278
- const a = p.value.find((c) => c.name === r.name);
279
- a ? a.status = r.status : p.value.push({ name: r.name, status: r.status }), T();
463
+ const h = v.value.find((_) => _.name === M.name);
464
+ h ? h.status = M.status : v.value.push({ name: M.name, status: M.status }), I();
280
465
  return;
281
466
  }
282
- if (V === "message") {
283
- e = r;
284
- const a = o.value[o.value.length - 1];
285
- a && a.role === "assistant" && (a.content = e, T());
467
+ if (z === "message") {
468
+ t = M;
469
+ const h = o.value[o.value.length - 1];
470
+ h && h.role === "assistant" && (h.content = t, I());
286
471
  }
287
- if (V === "finish") {
288
- i.value = !1, y.value = !1, S.value = !0;
289
- const a = o.value[o.value.length - 1];
290
- a && a.role === "assistant" && (a.showFeedback = !0, a.resTime = (/* @__PURE__ */ new Date()).getTime() - t, F("default", o.value.length - 1));
472
+ if (z === "finish") {
473
+ k.value = !1, $.value = !0;
474
+ const h = o.value[o.value.length - 1];
475
+ h && h.role === "assistant" && (h.showFeedback = !0, h.resTime = (/* @__PURE__ */ new Date()).getTime() - n, W("default", o.value.length - 1));
291
476
  try {
292
- const c = JSON.parse(e);
293
- c.parsedConditions && delete c.parsedConditions, B("callBack", c);
477
+ const _ = JSON.parse(t);
478
+ _.parsedConditions && delete _.parsedConditions, U("callBack", _);
294
479
  } catch {
295
- B("callBack", e);
480
+ U("callBack", t);
296
481
  }
297
482
  }
298
483
  }
299
484
  });
300
- } catch (H) {
301
- O.error(`AI响应异常: ${H}`), o.value.pop(), o.value.push({
485
+ } catch (z) {
486
+ ee.error(`AI响应异常: ${z}`), o.value.pop(), o.value.push({
302
487
  role: "assistant",
303
- userContent: n,
488
+ userContent: a,
304
489
  content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
305
490
  showFeedback: !0,
306
491
  hasFeedback: !1,
307
- createTime: z().format("YYYY-MM-DD HH:mm:ss"),
308
- resTime: (/* @__PURE__ */ new Date()).getTime() - t,
492
+ createTime: X().format("YYYY-MM-DD HH:mm:ss"),
493
+ resTime: (/* @__PURE__ */ new Date()).getTime() - n,
309
494
  firstPackageTime: 0
310
- }), F("default", o.value.length - 1), await T(), y.value = !1, i.value = !1;
495
+ }), W("default", o.value.length - 1), await I(), k.value = !1, u.value = !1;
311
496
  }
312
- }, le = (n) => {
313
- if (n.key === "Enter")
314
- if (n.ctrlKey) {
315
- n.preventDefault();
316
- const e = n.target, t = e.selectionStart, f = e.selectionEnd;
317
- E.value = E.value.substring(0, t) + `
318
- ` + E.value.substring(f), R(() => {
319
- e.selectionStart = e.selectionEnd = t + 1;
497
+ }, ke = (a) => {
498
+ if (a.key === "Enter")
499
+ if (a.ctrlKey) {
500
+ a.preventDefault();
501
+ const t = a.target, n = t.selectionStart, S = t.selectionEnd;
502
+ V.value = V.value.substring(0, n) + `
503
+ ` + V.value.substring(S), ae(() => {
504
+ t.selectionStart = t.selectionEnd = n + 1;
320
505
  });
321
506
  } else
322
- n.preventDefault(), G();
323
- }, T = async () => {
324
- await R(), b.value && (b.value.scrollTop = b.value.scrollHeight);
507
+ a.preventDefault(), ce();
508
+ }, I = async () => {
509
+ await ae(), T.value && (T.value.scrollTop = T.value.scrollHeight);
325
510
  };
326
- return K(
511
+ return re(
327
512
  () => o.value,
328
513
  () => {
329
- T();
514
+ I();
330
515
  },
331
516
  { deep: !0 }
332
- ), K(
517
+ ), re(
333
518
  () => Y.value,
334
- (n) => {
335
- n || (A.value = "");
519
+ (a) => {
520
+ a || (H.value = "");
336
521
  }
337
- ), I({
522
+ ), c({
338
523
  open: () => {
339
- N.value = !0, R(() => {
340
- T();
524
+ N.value = !0, ae(() => {
525
+ I();
341
526
  });
342
527
  }
343
- }), (n, e) => {
344
- const t = Be, f = ne, H = ge, L = _e, V = ve;
345
- return l(), u(P, null, [
346
- m(V, {
528
+ }), (a, t) => {
529
+ const n = Ke, S = ie, z = et, M = Te, h = we, _ = be;
530
+ return i(), d(q, null, [
531
+ C(_, {
347
532
  class: "ai-dialog",
348
533
  modelValue: N.value,
349
- "onUpdate:modelValue": e[1] || (e[1] = (r) => N.value = r),
534
+ "onUpdate:modelValue": t[1] || (t[1] = (E) => N.value = E),
350
535
  title: "✨ 品种池参数解析AI助手",
351
536
  width: "500px",
352
537
  center: "",
@@ -355,123 +540,116 @@ const k = (d) => (Te("data-v-b6460ca4"), d = d(), we(), d), Oe = { class: "ai-di
355
540
  modal: !1,
356
541
  "modal-penetrable": !0
357
542
  }, {
358
- default: h(() => {
359
- var r;
543
+ default: P(() => {
544
+ var E;
360
545
  return [
361
- s("div", Oe, [
362
- s("div", {
546
+ r("div", tt, [
547
+ r("div", {
363
548
  ref_key: "messageListRef",
364
- ref: b,
549
+ ref: T,
365
550
  class: "message-list"
366
551
  }, [
367
- (l(!0), u(P, null, X(o.value, (a, c) => (l(), u("div", {
368
- key: c,
369
- class: ae([a.role, "message-item"])
552
+ (i(!0), d(q, null, ue(o.value, (m, j) => (i(), d("div", {
553
+ key: j,
554
+ class: y([m.role, "message-item"])
370
555
  }, [
371
- a.content || c === o.value.length - 1 && a.role === "assistant" && p.value.length > 0 ? (l(), u(P, { key: 0 }, [
372
- s("div", $e, [
373
- m(t, {
556
+ m.content || j === o.value.length - 1 && m.role === "assistant" && v.value.length > 0 ? (i(), d(q, { key: 0 }, [
557
+ r("div", st, [
558
+ C(n, {
374
559
  size: 32,
375
- icon: a.role === "user" ? _(Ve) : _(Z)
560
+ icon: m.role === "user" ? s(He) : s(Le)
376
561
  }, null, 8, ["icon"])
377
562
  ]),
378
- s("div", Ie, [
379
- c === o.value.length - 1 && a.role === "assistant" && p.value.length > 0 && !S.value ? (l(), u("div", je, [
380
- (l(!0), u(P, null, X(p.value, (D) => (l(), u("div", {
381
- key: D.name,
563
+ r("div", at, [
564
+ j === o.value.length - 1 && m.role === "assistant" && v.value.length > 0 && !$.value ? (i(), d("div", nt, [
565
+ (i(!0), d(q, null, ue(v.value, (Q) => (i(), d("div", {
566
+ key: Q.name,
382
567
  class: "node-progress-item"
383
568
  }, [
384
- s("span", xe, [
385
- D.status === "success" ? (l(), $(f, {
569
+ r("span", ot, [
570
+ Q.status === "success" ? (i(), K(S, {
386
571
  key: 0,
387
572
  class: "node-icon done"
388
573
  }, {
389
- default: h(() => [
390
- m(_(De))
574
+ default: P(() => [
575
+ C(s(Be))
391
576
  ]),
392
577
  _: 1
393
- })) : (l(), $(f, {
578
+ })) : (i(), K(S, {
394
579
  key: 1,
395
580
  class: "node-icon running"
396
581
  }, {
397
- default: h(() => [
398
- m(_(ee))
582
+ default: P(() => [
583
+ C(s(Ie))
399
584
  ]),
400
585
  _: 1
401
586
  }))
402
587
  ]),
403
- s("span", Re, J(D.name), 1)
588
+ r("span", rt, O(Q.name), 1)
404
589
  ]))), 128)),
405
- p.value.length > 0 && p.value.every((D) => D.status === "success") && !S.value ? (l(), u("div", Je, [
406
- s("span", Ue, [
407
- m(f, { class: "node-icon waiting" }, {
408
- default: h(() => [
409
- m(_(ee))
410
- ]),
411
- _: 1
412
- })
413
- ]),
414
- Ke
415
- ])) : w("", !0)
416
- ])) : w("", !0),
417
- W(a.content) ? (l(), u("div", {
590
+ r("div", lt, [
591
+ C(z, {
592
+ percentage: g.value,
593
+ "show-text": !1,
594
+ "stroke-width": 4,
595
+ color: "#667eea"
596
+ }, null, 8, ["percentage"]),
597
+ r("span", it, "第 " + O(G.value) + "/" + O(e.value) + " 步 · " + O(L.value), 1)
598
+ ])
599
+ ])) : A("", !0),
600
+ b(m.content) ? (i(), d("div", {
418
601
  key: 1,
419
- class: "message-json",
420
- innerHTML: ie(oe(a.content))
421
- }, null, 8, qe)) : a.content ? (l(), u("div", We, J(a.content), 1)) : w("", !0),
422
- s("div", Ge, J(a.createTime), 1),
423
- a.role === "assistant" ? (l(), u(P, { key: 3 }, [
424
- a.showFeedback && !a.hasFeedback ? (l(), u(P, { key: 0 }, [
425
- Qe,
426
- s("div", Xe, [
427
- s("button", {
602
+ class: y(["message-json", { "result-animation": j === o.value.length - 1 && $.value }]),
603
+ innerHTML: he(B(m.content))
604
+ }, null, 10, ct)) : m.content ? (i(), d("div", {
605
+ key: 2,
606
+ class: y(["message-text", { "result-animation": j === o.value.length - 1 && $.value }])
607
+ }, O(m.content), 3)) : A("", !0),
608
+ r("div", ut, O(m.createTime), 1),
609
+ m.role === "assistant" ? (i(), d(q, { key: 3 }, [
610
+ m.showFeedback && !m.hasFeedback ? (i(), d(q, { key: 0 }, [
611
+ dt,
612
+ r("div", pt, [
613
+ r("button", {
428
614
  class: "feedback-btn satisfied-btn",
429
- onClick: (D) => F("satisfied", c)
430
- }, st, 8, Ze),
431
- s("button", {
615
+ onClick: (Q) => W("satisfied", j)
616
+ }, gt, 8, ft),
617
+ r("button", {
432
618
  class: "feedback-btn unsatisfied-btn",
433
- onClick: (D) => F("open", c)
434
- }, it, 8, at)
619
+ onClick: (Q) => W("open", j)
620
+ }, yt, 8, ht)
435
621
  ])
436
- ], 64)) : w("", !0),
437
- a.showFeedback && a.hasFeedback ? (l(), u("div", lt, "感谢您进行的评价反馈")) : w("", !0)
438
- ], 64)) : w("", !0)
622
+ ], 64)) : A("", !0),
623
+ m.showFeedback && m.hasFeedback ? (i(), d("div", bt, "感谢您进行的评价反馈")) : A("", !0)
624
+ ], 64)) : A("", !0)
439
625
  ])
440
- ], 64)) : w("", !0)
626
+ ], 64)) : A("", !0)
441
627
  ], 2))), 128)),
442
- i.value && p.value.length === 0 && !((r = o.value[o.value.length - 1]) != null && r.content) ? (l(), u("div", rt, [
443
- s("div", ct, [
444
- m(t, {
445
- size: 32,
446
- icon: _(Z)
447
- }, null, 8, ["icon"])
448
- ]),
449
- ut
450
- ])) : w("", !0)
628
+ u.value && v.value.length === 0 && !((E = o.value[o.value.length - 1]) != null && E.content) ? (i(), d("div", wt, " 🤔 正在分析您的需求... ")) : A("", !0)
451
629
  ], 512),
452
- s("div", dt, [
453
- m(H, {
630
+ r("div", Tt, [
631
+ C(M, {
454
632
  class: "message-input",
455
- modelValue: E.value,
456
- "onUpdate:modelValue": e[0] || (e[0] = (a) => E.value = a),
633
+ modelValue: V.value,
634
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => V.value = m),
457
635
  type: "textarea",
458
636
  rows: 4,
459
637
  autosize: { minRows: 2, maxRows: 4 },
460
638
  placeholder: "输入您想查询的品种条件...",
461
- onKeydown: le
639
+ onKeydown: ke
462
640
  }, null, 8, ["modelValue"]),
463
- s("div", mt, [
464
- pt,
465
- m(L, {
641
+ r("div", St, [
642
+ Ct,
643
+ C(h, {
466
644
  class: "send-btn",
467
645
  type: "primary",
468
- icon: _(Me),
469
- loading: y.value,
470
- onClick: G,
646
+ icon: s(ze),
647
+ loading: k.value,
648
+ onClick: ce,
471
649
  round: ""
472
650
  }, {
473
- default: h(() => [
474
- U(" 发送 ")
651
+ default: P(() => [
652
+ ne(" 发送 ")
475
653
  ]),
476
654
  _: 1
477
655
  }, 8, ["icon", "loading"])
@@ -482,40 +660,40 @@ const k = (d) => (Te("data-v-b6460ca4"), d = d(), we(), d), Oe = { class: "ai-di
482
660
  }),
483
661
  _: 1
484
662
  }, 8, ["modelValue"]),
485
- m(V, {
663
+ C(_, {
486
664
  modelValue: Y.value,
487
- "onUpdate:modelValue": e[5] || (e[5] = (r) => Y.value = r),
665
+ "onUpdate:modelValue": t[5] || (t[5] = (E) => Y.value = E),
488
666
  title: "📝 反馈意见",
489
667
  width: "400px"
490
668
  }, {
491
- footer: h(() => [
492
- s("span", gt, [
493
- m(L, {
494
- onClick: e[3] || (e[3] = (r) => Y.value = !1)
669
+ footer: P(() => [
670
+ r("span", Dt, [
671
+ C(h, {
672
+ onClick: t[3] || (t[3] = (E) => Y.value = !1)
495
673
  }, {
496
- default: h(() => [
497
- U("取消")
674
+ default: P(() => [
675
+ ne("取消")
498
676
  ]),
499
677
  _: 1
500
678
  }),
501
- m(L, {
679
+ C(h, {
502
680
  type: "primary",
503
- onClick: e[4] || (e[4] = (r) => F("unsatisfied", q.value))
681
+ onClick: t[4] || (t[4] = (E) => W("unsatisfied", Z.value))
504
682
  }, {
505
- default: h(() => [
506
- U("提交反馈")
683
+ default: P(() => [
684
+ ne("提交反馈")
507
685
  ]),
508
686
  _: 1
509
687
  })
510
688
  ])
511
689
  ]),
512
- default: h(() => [
513
- s("div", ft, [
514
- vt,
515
- _t,
516
- m(H, {
517
- modelValue: A.value,
518
- "onUpdate:modelValue": e[2] || (e[2] = (r) => A.value = r),
690
+ default: P(() => [
691
+ r("div", $t, [
692
+ Et,
693
+ Pt,
694
+ C(M, {
695
+ modelValue: H.value,
696
+ "onUpdate:modelValue": t[2] || (t[2] = (E) => H.value = E),
519
697
  type: "textarea",
520
698
  rows: 4,
521
699
  placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
@@ -527,11 +705,11 @@ const k = (d) => (Te("data-v-b6460ca4"), d = d(), we(), d), Oe = { class: "ai-di
527
705
  ], 64);
528
706
  };
529
707
  }
530
- }, kt = /* @__PURE__ */ Ye(ht, [["__scopeId", "data-v-b6460ca4"]]), Jt = {
531
- install(d) {
532
- d.component("st-varietyAiHelper", kt);
708
+ }, Nt = /* @__PURE__ */ xe(Ft, [["__scopeId", "data-v-8e2737b7"]]), as = {
709
+ install(p) {
710
+ p.component("st-varietyAiHelper", Nt);
533
711
  }
534
712
  };
535
713
  export {
536
- Jt as default
714
+ as as default
537
715
  };