st-comp 0.0.279 → 0.0.280

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 (229) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +13 -14
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +342 -547
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +294 -294
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +19 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +253 -253
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +579 -553
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +17 -17
  15. package/es/KlinePlus.cjs +2 -2
  16. package/es/KlinePlus.js +23 -24
  17. package/es/MonacoEditor.cjs +1 -1
  18. package/es/MonacoEditor.js +30 -29
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +517 -425
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +46 -46
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +898 -866
  27. package/es/VarSelectDialog.cjs +3 -3
  28. package/es/VarSelectDialog.js +110 -109
  29. package/es/VarietyAiHelper.cjs +7 -7
  30. package/es/VarietyAiHelper.js +605 -443
  31. package/es/VarietyAutoComplete.cjs +1 -1
  32. package/es/VarietyAutoComplete.js +11 -11
  33. package/es/VarietySearch.cjs +18 -18
  34. package/es/VarietySearch.js +3079 -2913
  35. package/es/{VarietySelect-d58eee29.cjs → VarietySelect-aa082a9c.cjs} +1 -1
  36. package/es/{VarietySelect-41daac7b.js → VarietySelect-c402bade.js} +5 -5
  37. package/es/VarietyTextCopy.cjs +3 -3
  38. package/es/VarietyTextCopy.js +51 -51
  39. package/es/VirtualTable.cjs +13 -1
  40. package/es/VirtualTable.js +1929 -2261
  41. package/es/_baseClone-10bdb989.cjs +1 -0
  42. package/es/_baseClone-98af8b33.js +210 -0
  43. package/es/base-d987e5c9.cjs +5 -0
  44. package/es/base-dd156b8e.js +790 -0
  45. package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
  46. package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
  47. package/es/clamp-17c4d8aa.cjs +1 -0
  48. package/es/clamp-c7512966.js +10 -0
  49. package/es/config-provider-33a127c4.cjs +1 -0
  50. package/es/config-provider-563023c9.js +86 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-ce7496c7.cjs +1 -0
  54. package/es/dropdown-feea8702.js +178 -0
  55. package/es/el-autocomplete-d9253bba.cjs +1 -0
  56. package/es/el-autocomplete-eac54f9f.js +434 -0
  57. package/es/el-button-8259594b.cjs +1 -0
  58. package/es/el-button-8a9721f8.js +343 -0
  59. package/es/el-checkbox-6303fc92.cjs +1 -0
  60. package/es/el-checkbox-c328b097.js +566 -0
  61. package/es/el-dialog-67536fac.js +252 -0
  62. package/es/el-dialog-8788bcc1.cjs +1 -0
  63. package/es/el-divider-3f0320be.cjs +1 -0
  64. package/es/el-divider-c5d72961.js +51 -0
  65. package/es/el-empty-552baf04.js +159 -0
  66. package/es/el-empty-58bc2a10.cjs +1 -0
  67. package/es/el-form-item-8efcf2c3.js +1265 -0
  68. package/es/el-form-item-95e68669.cjs +12 -0
  69. package/es/el-input-c8a9bb71.cjs +1 -0
  70. package/es/el-input-e66500b7.js +761 -0
  71. package/es/el-input-number-68ee0d65.js +390 -0
  72. package/es/el-input-number-d7a81922.cjs +1 -0
  73. package/es/el-loading-62132db2.cjs +1 -0
  74. package/es/el-loading-db4c6d13.js +190 -0
  75. package/es/el-menu-item-4b8e7794.cjs +1 -0
  76. package/es/el-menu-item-c2523d82.js +824 -0
  77. package/es/el-message-box-7c13546c.js +481 -0
  78. package/es/el-message-box-fed174f0.cjs +1 -0
  79. package/es/el-overlay-17299785.cjs +1 -0
  80. package/es/el-overlay-36f223e9.js +444 -0
  81. package/es/el-popconfirm-520b2928.cjs +1 -0
  82. package/es/el-popconfirm-a857c54a.js +190 -0
  83. package/es/el-popper-852446fd.js +2235 -0
  84. package/es/el-popper-f824c63b.cjs +1 -0
  85. package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
  86. package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
  87. package/es/el-segmented-45dcc036.cjs +1 -0
  88. package/es/el-segmented-bf08279f.js +168 -0
  89. package/es/el-select-a34348e1.js +1535 -0
  90. package/es/el-select-d2958ae8.cjs +1 -0
  91. package/es/el-table-column-ad70ee0e.cjs +14 -0
  92. package/es/el-table-column-e2be313e.js +3651 -0
  93. package/es/el-tag-527f06f0.cjs +1 -0
  94. package/es/el-tag-9bcfae32.js +77 -0
  95. package/es/el-text-f9379288.js +84 -0
  96. package/es/el-text-fc345ffd.cjs +1 -0
  97. package/es/index-2419d69a.js +468 -0
  98. package/es/index-3806160e.js +710 -0
  99. package/es/index-3a0a7c36.cjs +1 -0
  100. package/es/index-3e7d5ffb.cjs +1 -0
  101. package/es/index-3ed0c678.cjs +1 -0
  102. package/es/index-47d30a52.js +372 -0
  103. package/es/index-5dec535a.cjs +1 -0
  104. package/es/index-5e76a22d.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-60900c6c.js} +223 -254
  106. package/es/{index-a33b2fb8.js → index-69d2353a.js} +5090 -5090
  107. package/es/index-71ba4c28.cjs +1 -0
  108. package/es/index-7711aa69.cjs +1 -0
  109. package/es/index-7c4d8f5d.js +47 -0
  110. package/es/index-86678b72.js +131 -0
  111. package/es/index-99bb359f.cjs +1 -0
  112. package/es/index-99d4335d.cjs +1 -0
  113. package/es/index-a0522466.js +413 -0
  114. package/es/index-a181f161.js +429 -0
  115. package/es/index-b9a26e7f.js +141 -0
  116. package/es/{index-a9246d17.cjs → index-bb0bc131.cjs} +109 -109
  117. package/es/index-d372e68f.cjs +5 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/{index-44a382a5.js → index-dfb34e00.js} +12 -12
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-8a1664e6.js → python-6eafa04b.js} +32 -31
  122. package/es/{python-a3db9620.cjs → python-922eca89.cjs} +1 -1
  123. package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
  124. package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
  125. package/es/scroll-07bade1e.cjs +1 -0
  126. package/es/scroll-70271cb1.js +35 -0
  127. package/es/style.css +1 -1
  128. package/es/toNumber-b47ceb68.cjs +1 -0
  129. package/es/toNumber-f077c66a.js +31 -0
  130. package/es/use-form-item-0a831287.cjs +2 -0
  131. package/es/use-form-item-187cd7db.js +422 -0
  132. package/es/use-global-config-17dafd40.js +71 -0
  133. package/es/use-global-config-c90c91f7.cjs +1 -0
  134. package/es/{validator-c60a8956.js → validator-800ed2ba.js} +1 -1
  135. package/es/validator-ee5bc3eb.cjs +1 -0
  136. package/es/vnode-6f7b84f0.cjs +1 -0
  137. package/es/vnode-8ee9bf4e.js +12 -0
  138. package/es/{zh-cn-b59a0910.js → zh-cn-26cc7233.js} +36 -33
  139. package/es/zh-cn-a22a6792.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +271 -252
  142. package/lib/{index-62fa175a.js → index-74ed48c6.js} +54107 -52151
  143. package/lib/{python-4a48fa39.js → python-7aaa84e4.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/package.json +1 -1
  146. package/es/_initCloneObject-5e73c9c8.js +0 -81
  147. package/es/_initCloneObject-a5832933.cjs +0 -1
  148. package/es/base-a5af3db3.js +0 -288
  149. package/es/base-ef747d02.cjs +0 -5
  150. package/es/config-provider-06ea6b42.cjs +0 -1
  151. package/es/config-provider-88b637a8.js +0 -59
  152. package/es/dayjs.min-2c20abe6.cjs +0 -1
  153. package/es/dayjs.min-8313b006.js +0 -299
  154. package/es/debounce-62f5b6e8.cjs +0 -1
  155. package/es/debounce-8d53f4dd.js +0 -83
  156. package/es/dropdown-4ce4c3e2.cjs +0 -1
  157. package/es/dropdown-72fbc15d.js +0 -178
  158. package/es/el-autocomplete-6cafcdf1.js +0 -329
  159. package/es/el-autocomplete-e0857c5b.cjs +0 -1
  160. package/es/el-button-613e0bb2.cjs +0 -1
  161. package/es/el-button-94d3de38.js +0 -272
  162. package/es/el-checkbox-6d4cb393.js +0 -459
  163. package/es/el-checkbox-e90762df.cjs +0 -1
  164. package/es/el-dialog-02942e22.cjs +0 -1
  165. package/es/el-dialog-5e30161f.js +0 -276
  166. package/es/el-divider-4713d74c.cjs +0 -1
  167. package/es/el-divider-4e059794.js +0 -45
  168. package/es/el-empty-1697ded8.cjs +0 -1
  169. package/es/el-empty-33cb66f1.js +0 -183
  170. package/es/el-form-item-44f060d8.cjs +0 -12
  171. package/es/el-form-item-9e8969ea.js +0 -1269
  172. package/es/el-input-342b2def.js +0 -531
  173. package/es/el-input-9a9a7f7f.cjs +0 -1
  174. package/es/el-input-number-65c847d6.cjs +0 -1
  175. package/es/el-input-number-c22b803a.js +0 -311
  176. package/es/el-loading-8179b497.cjs +0 -1
  177. package/es/el-loading-bcc51e3d.js +0 -203
  178. package/es/el-menu-item-339baf6d.js +0 -768
  179. package/es/el-menu-item-83186444.cjs +0 -1
  180. package/es/el-message-box-035b699c.js +0 -489
  181. package/es/el-message-box-c62d3217.cjs +0 -1
  182. package/es/el-overlay-3e17604b.js +0 -324
  183. package/es/el-overlay-8f1da9e8.cjs +0 -1
  184. package/es/el-popconfirm-4e32ec1b.cjs +0 -1
  185. package/es/el-popconfirm-f8a86e2c.js +0 -162
  186. package/es/el-popper-a4f3ae4d.cjs +0 -1
  187. package/es/el-popper-fbd0dcea.js +0 -2094
  188. package/es/el-segmented-56bd58a8.js +0 -142
  189. package/es/el-segmented-833ac177.cjs +0 -1
  190. package/es/el-select-44fa547d.js +0 -1256
  191. package/es/el-select-70806166.cjs +0 -1
  192. package/es/el-table-column-3e2cdfca.cjs +0 -14
  193. package/es/el-table-column-b74a857d.js +0 -3432
  194. package/es/el-tag-66c83156.js +0 -117
  195. package/es/el-tag-9c2f329f.cjs +0 -1
  196. package/es/el-text-034bd3f4.js +0 -67
  197. package/es/el-text-6b2374bb.cjs +0 -1
  198. package/es/index-00f6ca75.cjs +0 -1
  199. package/es/index-185792a7.cjs +0 -1
  200. package/es/index-1e2a38ab.js +0 -113
  201. package/es/index-2e331d74.js +0 -10
  202. package/es/index-3153c1db.cjs +0 -1
  203. package/es/index-5216d5f5.js +0 -406
  204. package/es/index-5c0dd943.cjs +0 -1
  205. package/es/index-657047bb.js +0 -513
  206. package/es/index-870b6c9d.cjs +0 -1
  207. package/es/index-8c2d7e05.js +0 -368
  208. package/es/index-960806da.js +0 -314
  209. package/es/index-9780a537.cjs +0 -1
  210. package/es/index-9d16cea8.cjs +0 -1
  211. package/es/index-ac8dc53d.cjs +0 -1
  212. package/es/index-bb833443.cjs +0 -1
  213. package/es/index-c5f2d372.js +0 -326
  214. package/es/index-c6584658.js +0 -163
  215. package/es/index-d77a7336.js +0 -204
  216. package/es/index-eea0bcb3.cjs +0 -1
  217. package/es/index-f034b910.js +0 -60
  218. package/es/index-f1c702f6.cjs +0 -1
  219. package/es/index-f58b2920.cjs +0 -1
  220. package/es/scroll-679bd6bf.js +0 -35
  221. package/es/scroll-b108dabd.cjs +0 -1
  222. package/es/use-form-common-props-ac666630.cjs +0 -1
  223. package/es/use-form-common-props-ed72e914.js +0 -364
  224. package/es/use-global-config-23472471.cjs +0 -1
  225. package/es/use-global-config-ee406d58.js +0 -72
  226. package/es/validator-366dbf39.cjs +0 -1
  227. package/es/vnode-5ddb7ed1.js +0 -14
  228. package/es/vnode-b906ae6d.cjs +0 -1
  229. package/es/zh-cn-c21d12d8.cjs +0 -1
@@ -1,313 +1,473 @@
1
- import { b as de, p as fe, e as ee, u as pe, c as ae, n as ke, _ as me, w as ve, x as we } from "./base-a5af3db3.js";
2
- import { E as be } from "./el-dialog-5e30161f.js";
3
- import "./el-overlay-3e17604b.js";
4
- import { E as Te } from "./el-input-342b2def.js";
5
- import { E as _e } from "./el-button-94d3de38.js";
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";
6
12
  import "./el-tooltip-4ed993c7.js";
7
- import { E as Se } from "./el-popper-fbd0dcea.js";
8
- import { defineComponent as te, ref as y, computed as v, watch as oe, openBlock as l, createElementBlock as f, normalizeClass as w, unref as a, normalizeStyle as J, createBlock as K, withCtx as k, resolveDynamicComponent as ge, renderSlot as re, createElementVNode as d, toDisplayString as L, createCommentVNode as Q, inject as De, reactive as Ce, nextTick as se, Fragment as X, createVNode as A, renderList as ce, createTextVNode as Z, pushScopeId as Me, popScopeId as Ee } from "vue";
9
- import { d as q } from "./dayjs.min-8313b006.js";
10
- import { U as Ve, R as Be } from "./index-53cc4e43.js";
11
- import { s as Ie } from "./aiTools-ce2f9281.js";
12
- import { E as ne, w as Ne, s as Ue, t as Qe, v as Fe, c as Pe, u as Ye, x as ze, y as Je, z as Le, A as Oe } from "./index-eb96e074.js";
13
- import { _ as He } from "./_plugin-vue_export-helper-dad06003.js";
14
- import { E as W } from "./index-5216d5f5.js";
15
- import { k as Ke, i as Re } from "./use-form-common-props-ed72e914.js";
16
- import "./index-d77a7336.js";
17
- import "./index-960806da.js";
18
- import "./index-2e331d74.js";
19
- import "./vnode-5ddb7ed1.js";
20
- import "./scroll-679bd6bf.js";
21
- import "./use-global-config-ee406d58.js";
22
- import "./index-8c2d7e05.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";
16
+ import "./index-a181f161.js";
17
+ import "./raf-b4fd1e12.js";
18
+ import "./index-7c4d8f5d.js";
23
19
  import "./typescript-7ae59c4c.js";
24
- import "./index-f034b910.js";
25
- import "./index-657047bb.js";
26
- import "./config-provider-88b637a8.js";
27
- const xe = de({
20
+ import "./index-de9ad85c.js";
21
+ import "./use-global-config-17dafd40.js";
22
+ import "./index-47d30a52.js";
23
+ import "./index-3806160e.js";
24
+ import "./clamp-c7512966.js";
25
+ import "./toNumber-f077c66a.js";
26
+ import "./config-provider-563023c9.js";
27
+ import "./scroll-70271cb1.js";
28
+ const We = pe({
29
+ /**
30
+ * @description avatar size.
31
+ */
28
32
  size: {
29
33
  type: [Number, String],
30
- values: Ke,
31
- default: "",
32
- validator: (p) => fe(p)
34
+ values: ye,
35
+ validator: (e) => oe(e)
33
36
  },
37
+ /**
38
+ * @description avatar shape.
39
+ */
34
40
  shape: {
35
41
  type: String,
36
- values: ["circle", "square"],
37
- default: "circle"
38
- },
39
- icon: {
40
- type: Re
42
+ values: ["circle", "square"]
41
43
  },
44
+ /**
45
+ * @description representation type to icon, more info on icon component.
46
+ */
47
+ icon: { type: Le },
48
+ /**
49
+ * @description the source of the image for an image avatar.
50
+ */
42
51
  src: {
43
52
  type: String,
44
53
  default: ""
45
54
  },
55
+ /**
56
+ * @description native attribute `alt` of image avatar.
57
+ */
46
58
  alt: String,
59
+ /**
60
+ * @description native attribute srcset of image avatar.
61
+ */
47
62
  srcSet: String,
63
+ /**
64
+ * @description set how the image fit its container for an image avatar.
65
+ */
48
66
  fit: {
49
- type: ee(String),
67
+ type: U(String),
50
68
  default: "cover"
51
69
  }
52
- }), $e = {
53
- error: (p) => p instanceof Event
54
- }, je = te({
55
- name: "ElAvatar"
56
- }), qe = /* @__PURE__ */ te({
57
- ...je,
58
- props: xe,
59
- emits: $e,
60
- setup(p, { emit: i }) {
61
- const M = p, n = pe("avatar"), _ = y(!1), E = v(() => {
62
- const { size: u, icon: S, shape: V } = M, o = [n.b()];
63
- return ae(u) && o.push(n.m(u)), S && o.push(n.m("icon")), V && o.push(n.m(V)), o;
64
- }), R = v(() => {
65
- const { size: u } = M;
66
- return fe(u) ? n.cssVarBlock({
67
- size: ke(u) || ""
68
- }) : void 0;
69
- }), x = v(() => ({
70
- objectFit: M.fit
71
- }));
72
- oe(() => M.src, () => _.value = !1);
73
- function h(u) {
74
- _.value = !0, i("error", u);
70
+ }), et = { error: (e) => e instanceof Event }, be = Symbol("avatarGroupContextKey"), tt = {
71
+ /**
72
+ * @description control the size of avatars in this avatar-group
73
+ */
74
+ size: {
75
+ type: U([Number, String]),
76
+ values: ye,
77
+ validator: (e) => oe(e)
78
+ },
79
+ /**
80
+ * @description control the shape of avatars in this avatar-group
81
+ */
82
+ shape: {
83
+ type: U(String),
84
+ values: ["circle", "square"]
85
+ },
86
+ /**
87
+ * @description whether to collapse avatars
88
+ */
89
+ collapseAvatars: Boolean,
90
+ /**
91
+ * @description whether show all collapsed avatars when mouse hover text of the collapse-avatar. To use this, `collapse-avatars` must be true
92
+ */
93
+ collapseAvatarsTooltip: Boolean,
94
+ /**
95
+ * @description the max avatars number to be shown. To use this, `collapse-avatars` must be true
96
+ */
97
+ maxCollapseAvatars: {
98
+ type: Number,
99
+ default: 1
100
+ },
101
+ /**
102
+ * @description tooltip theme, built-in theme: `dark` / `light`
103
+ */
104
+ effect: {
105
+ type: U(String),
106
+ default: "light"
107
+ },
108
+ /**
109
+ * @description placement of tooltip
110
+ */
111
+ placement: {
112
+ type: U(String),
113
+ values: Fe,
114
+ default: "top"
115
+ },
116
+ /**
117
+ * @description custom class name for tooltip
118
+ */
119
+ popperClass: de.popperClass,
120
+ /**
121
+ * @description custom style for tooltip
122
+ */
123
+ popperStyle: de.popperStyle,
124
+ /**
125
+ * @description custom class name for the collapse-avatar
126
+ */
127
+ collapseClass: {
128
+ type: U([
129
+ String,
130
+ Array,
131
+ Object,
132
+ Boolean
133
+ ]),
134
+ default: void 0
135
+ },
136
+ /**
137
+ * @description custom style for the collapse-avatar
138
+ */
139
+ collapseStyle: {
140
+ type: U([
141
+ String,
142
+ Array,
143
+ Object,
144
+ Boolean
145
+ ]),
146
+ default: void 0
147
+ }
148
+ }, st = [
149
+ "src",
150
+ "alt",
151
+ "srcset"
152
+ ];
153
+ var at = /* @__PURE__ */ ie({
154
+ name: "ElAvatar",
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);
75
166
  }
76
- return (u, S) => (l(), f("span", {
77
- class: w(a(E)),
78
- style: J(a(R))
79
- }, [
80
- (u.src || u.srcSet) && !_.value ? (l(), f("img", {
81
- key: 0,
82
- src: u.src,
83
- alt: u.alt,
84
- srcset: u.srcSet,
85
- style: J(a(x)),
86
- onError: h
87
- }, null, 44, ["src", "alt", "srcset"])) : u.icon ? (l(), K(a(ne), { key: 1 }, {
88
- default: k(() => [
89
- (l(), K(ge(u.icon)))
90
- ]),
91
- _: 1
92
- })) : re(u.$slots, "default", { key: 2 })
93
- ], 6));
167
+ return (w, k) => (i(), v("span", {
168
+ class: C(x.value),
169
+ style: L(N.value)
170
+ }, [(e.src || e.srcSet) && !E.value ? (i(), v("img", {
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)))]),
179
+ _: 1
180
+ })) : le(w.$slots, "default", { key: 2 })], 6));
181
+ }
182
+ }), we = at, Te = /* @__PURE__ */ ie({
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")
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
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)])
211
+ }));
212
+ }
213
+ return A("div", { class: a.b() }, [g]);
214
+ };
94
215
  }
95
216
  });
96
- var Ge = /* @__PURE__ */ me(qe, [["__file", "avatar.vue"]]);
97
- const Xe = ve(Ge), Ze = de({
217
+ const lt = ge(we, { AvatarGroup: Te });
218
+ Ye(Te);
219
+ const nt = pe({
220
+ /**
221
+ * @description type of progress bar
222
+ */
98
223
  type: {
99
224
  type: String,
100
225
  default: "line",
101
- values: ["line", "circle", "dashboard"]
226
+ values: [
227
+ "line",
228
+ "circle",
229
+ "dashboard"
230
+ ]
102
231
  },
232
+ /**
233
+ * @description percentage, required
234
+ */
103
235
  percentage: {
104
236
  type: Number,
105
237
  default: 0,
106
- validator: (p) => p >= 0 && p <= 100
238
+ validator: (e) => e >= 0 && e <= 100
107
239
  },
240
+ /**
241
+ * @description the current status of progress bar
242
+ */
108
243
  status: {
109
244
  type: String,
110
245
  default: "",
111
- values: ["", "success", "exception", "warning"]
246
+ values: [
247
+ "",
248
+ "success",
249
+ "exception",
250
+ "warning"
251
+ ]
112
252
  },
253
+ /**
254
+ * @description set indeterminate progress
255
+ */
113
256
  indeterminate: Boolean,
257
+ /**
258
+ * @description control the animation duration of indeterminate progress or striped flow progress
259
+ */
114
260
  duration: {
115
261
  type: Number,
116
262
  default: 3
117
263
  },
264
+ /**
265
+ * @description the width of progress bar
266
+ */
118
267
  strokeWidth: {
119
268
  type: Number,
120
269
  default: 6
121
270
  },
271
+ /**
272
+ * @description butt/circle/dashboard type shape at the end path
273
+ */
122
274
  strokeLinecap: {
123
- type: ee(String),
275
+ type: U(String),
124
276
  default: "round"
125
277
  },
278
+ /**
279
+ * @description whether to place the percentage inside progress bar, only works when `type` is 'line'
280
+ */
126
281
  textInside: Boolean,
282
+ /**
283
+ * @description the canvas width of circle progress bar
284
+ */
127
285
  width: {
128
286
  type: Number,
129
287
  default: 126
130
288
  },
289
+ /**
290
+ * @description whether to show percentage
291
+ */
131
292
  showText: {
132
293
  type: Boolean,
133
294
  default: !0
134
295
  },
296
+ /**
297
+ * @description background color of progress bar. Overrides `status` prop
298
+ */
135
299
  color: {
136
- type: ee([
300
+ type: U([
137
301
  String,
138
302
  Array,
139
303
  Function
140
304
  ]),
141
305
  default: ""
142
306
  },
307
+ /**
308
+ * @description stripe over the progress bar's color
309
+ */
143
310
  striped: Boolean,
311
+ /**
312
+ * @description get the stripes to flow
313
+ */
144
314
  stripedFlow: Boolean,
315
+ /**
316
+ * @description custom text format
317
+ */
145
318
  format: {
146
- type: ee(Function),
147
- default: (p) => `${p}%`
319
+ type: U(Function),
320
+ default: (e) => `${e}%`
148
321
  }
149
- }), We = te({
150
- name: "ElProgress"
151
- }), et = /* @__PURE__ */ te({
152
- ...We,
153
- props: Ze,
154
- setup(p) {
155
- const i = p, M = {
322
+ }), ot = ["aria-valuenow"], rt = { viewBox: "0 0 100 100" }, it = [
323
+ "d",
324
+ "stroke",
325
+ "stroke-linecap",
326
+ "stroke-width"
327
+ ], ut = [
328
+ "d",
329
+ "stroke",
330
+ "opacity",
331
+ "stroke-linecap",
332
+ "stroke-width"
333
+ ], ct = { key: 0 };
334
+ var dt = /* @__PURE__ */ ie({
335
+ name: "ElProgress",
336
+ __name: "progress",
337
+ props: nt,
338
+ setup(e) {
339
+ const B = {
156
340
  success: "#13ce66",
157
341
  exception: "#ff4949",
158
342
  warning: "#e6a23c",
159
343
  default: "#20a0ff"
160
- }, n = pe("progress"), _ = v(() => {
161
- const e = {
162
- width: `${i.percentage}%`,
163
- animationDuration: `${i.duration}s`
164
- }, g = b(i.percentage);
165
- return g.includes("gradient") ? e.background = g : e.backgroundColor = g, e;
166
- }), E = v(() => (i.strokeWidth / i.width * 100).toFixed(1)), R = v(() => ["circle", "dashboard"].includes(i.type) ? Number.parseInt(`${50 - Number.parseFloat(E.value) / 2}`, 10) : 0), x = v(() => {
167
- const e = R.value, g = i.type === "dashboard";
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";
168
352
  return `
169
353
  M 50 50
170
- m 0 ${g ? "" : "-"}${e}
171
- a ${e} ${e} 0 1 1 0 ${g ? "-" : ""}${e * 2}
172
- a ${e} ${e} 0 1 1 0 ${g ? "" : "-"}${e * 2}
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}
173
357
  `;
174
- }), h = v(() => 2 * Math.PI * R.value), u = v(() => i.type === "dashboard" ? 0.75 : 1), S = v(() => `${-1 * h.value * (1 - u.value) / 2}px`), V = v(() => ({
175
- strokeDasharray: `${h.value * u.value}px, ${h.value}px`,
176
- strokeDashoffset: S.value
177
- })), o = v(() => ({
178
- strokeDasharray: `${h.value * u.value * (i.percentage / 100)}px, ${h.value}px`,
179
- strokeDashoffset: S.value,
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`,
360
+ strokeDashoffset: N.value
361
+ })), l = f(() => ({
362
+ strokeDasharray: `${y.value * x.value * (a.percentage / 100)}px, ${y.value}px`,
363
+ strokeDashoffset: N.value,
180
364
  transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
181
- })), F = v(() => {
182
- let e;
183
- return i.color ? e = b(i.percentage) : e = M[i.status] || M.default, e;
184
- }), B = v(() => i.status === "warning" ? Ne : i.type === "line" ? i.status === "success" ? Ue : Qe : i.status === "success" ? Fe : Pe), P = v(() => i.type === "line" ? 12 + i.strokeWidth * 0.4 : i.width * 0.111111 + 2), O = v(() => i.format(i.percentage));
185
- function G(e) {
186
- const g = 100 / e.length;
187
- return e.map((D, I) => ae(D) ? {
188
- color: D,
189
- percentage: (I + 1) * g
190
- } : D).sort((D, I) => D.percentage - I.percentage);
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);
191
375
  }
192
- const b = (e) => {
193
- var g;
194
- const { color: Y } = i;
195
- if (we(Y))
196
- return Y(e);
197
- if (ae(Y))
198
- return Y;
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;
199
383
  {
200
- const D = G(Y);
201
- for (const I of D)
202
- if (I.percentage > e)
203
- return I.color;
204
- return (g = D[D.length - 1]) == null ? void 0 : g.color;
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;
205
389
  }
206
390
  };
207
- return (e, g) => (l(), f("div", {
208
- class: w([
209
- a(n).b(),
210
- a(n).m(e.type),
211
- a(n).is(e.status),
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),
212
396
  {
213
- [a(n).m("without-text")]: !e.showText,
214
- [a(n).m("text-inside")]: e.textInside
397
+ [c(o).m("without-text")]: !e.showText,
398
+ [c(o).m("text-inside")]: e.textInside
215
399
  }
216
400
  ]),
217
401
  role: "progressbar",
218
402
  "aria-valuenow": e.percentage,
219
403
  "aria-valuemin": "0",
220
404
  "aria-valuemax": "100"
221
- }, [
222
- e.type === "line" ? (l(), f("div", {
223
- key: 0,
224
- class: w(a(n).b("bar"))
225
- }, [
226
- d("div", {
227
- class: w(a(n).be("bar", "outer")),
228
- style: J({ height: `${e.strokeWidth}px` })
229
- }, [
230
- d("div", {
231
- class: w([
232
- a(n).be("bar", "inner"),
233
- { [a(n).bem("bar", "inner", "indeterminate")]: e.indeterminate },
234
- { [a(n).bem("bar", "inner", "striped")]: e.striped },
235
- { [a(n).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
236
- ]),
237
- style: J(a(_))
238
- }, [
239
- (e.showText || e.$slots.default) && e.textInside ? (l(), f("div", {
240
- key: 0,
241
- class: w(a(n).be("bar", "innerText"))
242
- }, [
243
- re(e.$slots, "default", { percentage: e.percentage }, () => [
244
- d("span", null, L(a(O)), 1)
245
- ])
246
- ], 2)) : Q("v-if", !0)
247
- ], 6)
248
- ], 6)
249
- ], 2)) : (l(), f("div", {
250
- key: 1,
251
- class: w(a(n).b("circle")),
252
- style: J({ height: `${e.width}px`, width: `${e.width}px` })
253
- }, [
254
- (l(), f("svg", { viewBox: "0 0 100 100" }, [
255
- d("path", {
256
- class: w(a(n).be("circle", "track")),
257
- d: a(x),
258
- stroke: `var(${a(n).cssVarName("fill-color-light")}, #e5e9f2)`,
259
- "stroke-linecap": e.strokeLinecap,
260
- "stroke-width": a(E),
261
- fill: "none",
262
- style: J(a(V))
263
- }, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
264
- d("path", {
265
- class: w(a(n).be("circle", "path")),
266
- d: a(x),
267
- stroke: a(F),
268
- fill: "none",
269
- opacity: e.percentage ? 1 : 0,
270
- "stroke-linecap": e.strokeLinecap,
271
- "stroke-width": a(E),
272
- style: J(a(o))
273
- }, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
274
- ]))
275
- ], 6)),
276
- (e.showText || e.$slots.default) && !e.textInside ? (l(), f("div", {
277
- key: 2,
278
- class: w(a(n).e("text")),
279
- style: J({ fontSize: `${a(P)}px` })
280
- }, [
281
- re(e.$slots, "default", { percentage: e.percentage }, () => [
282
- e.status ? (l(), K(a(ne), { key: 1 }, {
283
- default: k(() => [
284
- (l(), K(ge(a(B))))
285
- ]),
286
- _: 1
287
- })) : (l(), f("span", { key: 0 }, L(a(O)), 1))
288
- ])
289
- ], 6)) : Q("v-if", !0)
290
- ], 10, ["aria-valuenow"]));
405
+ }, [e.type === "line" ? (i(), v("div", {
406
+ key: 0,
407
+ class: C(c(o).b("bar"))
408
+ }, [d("div", {
409
+ class: C(c(o).be("bar", "outer")),
410
+ style: L({ height: `${e.strokeWidth}px` })
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 }
417
+ ]),
418
+ style: L(g.value)
419
+ }, [(e.showText || n.$slots.default) && e.textInside ? (i(), v("div", {
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", {
423
+ key: 1,
424
+ class: C(c(o).b("circle")),
425
+ style: L({
426
+ height: `${e.width}px`,
427
+ width: `${e.width}px`
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,
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,
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", {
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)))]),
452
+ _: 1
453
+ })) : (i(), v("span", ct, O(K.value), 1))])], 6)) : P("v-if", !0)], 10, ot));
291
454
  }
292
- });
293
- var tt = /* @__PURE__ */ me(et, [["__file", "progress.vue"]]);
294
- const st = ve(tt);
295
- const at = "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==", ot = "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";
296
- const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-dialog-body" }, nt = { class: "avatar" }, lt = { class: "message-content" }, it = {
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 = {
297
459
  key: 0,
298
460
  style: { "font-weight": "bold", "margin-bottom": "10px" }
299
- }, ut = {
461
+ }, kt = {
300
462
  key: 1,
301
463
  class: "node-progress"
302
- }, ct = { class: "node-status-icon" }, dt = { class: "node-name" }, ft = { class: "progress-footer" }, pt = { class: "progress-text" }, mt = ["innerHTML"], vt = {
464
+ }, bt = { class: "node-status-icon" }, wt = { class: "node-name" }, Tt = { class: "progress-footer" }, St = { class: "progress-text" }, Ct = ["innerHTML"], Dt = {
303
465
  key: 4,
304
466
  class: "message-content-footer"
305
- }, gt = {
467
+ }, Mt = {
306
468
  key: 0,
307
469
  class: "feedback-box"
308
- }, ht = ["onClick"], At = ["onClick"], yt = { class: "input-area" }, kt = { class: "input-actions" }, wt = /* @__PURE__ */ le(() => /* @__PURE__ */ d("div", { class: "input-hint" }, [
309
- /* @__PURE__ */ d("span", null, "Enter 发送 | Ctrl + Enter 换行")
310
- ], -1)), bt = { class: "feedback-dialog-content" }, Tt = /* @__PURE__ */ le(() => /* @__PURE__ */ d("div", { class: "feedback-emoji" }, "😟", -1)), _t = /* @__PURE__ */ le(() => /* @__PURE__ */ d("p", { class: "feedback-tip" }, "很抱歉没能帮到您,请告诉我们哪里需要改进:", -1)), St = { class: "dialog-footer" }, Dt = {
470
+ }, Et = ["onClick"], Vt = ["onClick"], Bt = { class: "input-area" }, xt = { class: "input-actions" }, Nt = { class: "feedback-dialog-content" }, It = { class: "dialog-footer" }, Ut = {
311
471
  __name: "index",
312
472
  props: {
313
473
  defaultMessage: {
@@ -319,236 +479,236 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
319
479
  }
320
480
  },
321
481
  emits: ["callBack"],
322
- setup(p, { expose: i, emit: M }) {
323
- const n = De("stConfig"), _ = Ce(Ve()), E = y(!1), R = M, x = p, h = y(!1), u = y(!1), S = y(!1), V = y(null), o = y([
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([
324
484
  {
325
485
  role: "defaultMessage",
326
486
  // defaultMessage-组件内置, assistant-智能体, user-用户
327
- content: x.defaultMessage,
487
+ content: b.defaultMessage,
328
488
  fullQuery: "",
329
489
  historyList: [],
330
490
  userContent: null,
331
491
  showFeedback: !1,
332
- createTime: q().format("YYYY-MM-DD HH:mm:ss"),
492
+ createTime: G().format("YYYY-MM-DD HH:mm:ss"),
333
493
  resTime: 0,
334
494
  firstPackageTime: 0
335
495
  }
336
- ]), F = y(null), B = y(""), P = y(!1), O = y(""), G = y({}), b = y([]), e = v(() => b.value.length), g = v(() => b.value.filter((r) => r.status === "success").length), Y = v(() => e.value ? g.value / e.value * 100 : 0), D = v(() => {
337
- const r = b.value.find((s) => s.status === "executing");
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");
338
498
  return r ? r.name : "处理中";
339
- }), I = async () => {
340
- const r = B.value.trim();
499
+ }), q = async () => {
500
+ const r = k.value.trim();
341
501
  if (!r)
342
- return W.warning("请输入消息内容");
343
- if (h.value)
502
+ return ee.warning("请输入消息内容");
503
+ if (y.value)
344
504
  return;
345
- b.value = [], S.value = !1, o.value.push({
505
+ D.value = [], N.value = !1, l.value.push({
346
506
  role: "user",
347
507
  content: r,
348
- createTime: q().format("YYYY-MM-DD HH:mm:ss")
349
- }), B.value = "", await z(), o.value.push({
508
+ createTime: G().format("YYYY-MM-DD HH:mm:ss")
509
+ }), k.value = "", await J(), l.value.push({
350
510
  role: "assistant",
351
511
  content: "",
352
512
  fullQuery: "",
353
513
  historyList: [],
354
514
  userContent: r,
355
515
  showFeedback: !1,
356
- createTime: q().format("YYYY-MM-DD HH:mm:ss"),
516
+ createTime: G().format("YYYY-MM-DD HH:mm:ss"),
357
517
  resTime: 0,
358
518
  firstPackageTime: 0
359
- }), await z(), h.value = !0, u.value = !0;
360
- let s = "", t = (/* @__PURE__ */ new Date()).getTime(), N = !1;
519
+ }), await J(), y.value = !0, x.value = !0;
520
+ let t = "", s = (/* @__PURE__ */ new Date()).getTime(), _ = !1;
361
521
  try {
362
- await Ie({
363
- baseUrl: n.env.VITE_BASE_URL,
364
- token: Be(),
522
+ await Xe({
523
+ baseUrl: o.env.VITE_BASE_URL,
524
+ token: Ge(),
365
525
  value: r,
366
- sessionId: F.value,
367
- userId: _.id,
368
- callback: (C, T) => {
369
- if (C === "session" && (F.value = T), C === "historyList") {
370
- const m = o.value[o.value.length - 1];
371
- m.historyList = T;
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;
372
532
  }
373
- if (C === "fullQuery") {
374
- const m = o.value[o.value.length - 1];
375
- m.fullQuery = T;
533
+ if (V === "fullQuery") {
534
+ const m = l.value[l.value.length - 1];
535
+ m.fullQuery = M;
376
536
  }
377
- if (C === "node") {
378
- if (!N) {
379
- N = !0, u.value = !1;
380
- const U = o.value[o.value.length - 1];
381
- U && U.role === "assistant" && U.firstPackageTime === 0 && (U.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - t);
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);
382
542
  }
383
- const m = b.value.find((U) => U.name === T.name);
384
- m ? m.status = T.status : b.value.push({ name: T.name, status: T.status }), z();
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();
385
545
  return;
386
546
  }
387
- if (C === "message") {
388
- s = T;
389
- const m = o.value[o.value.length - 1];
390
- m && m.role === "assistant" && (m.content = s, z());
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());
391
551
  }
392
- if (C === "finish") {
393
- h.value = !1, S.value = !0;
394
- const m = o.value[o.value.length - 1];
395
- m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - t, $("default", o.value.length - 1));
552
+ if (V === "finish") {
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));
396
556
  }
397
- if (C === "error") {
398
- u.value = !1, h.value = !1, o.value.pop(), o.value.push({
557
+ if (V === "error") {
558
+ x.value = !1, y.value = !1, l.value.pop(), l.value.push({
399
559
  role: "assistant",
400
560
  userContent: r,
401
- content: `❌ ${T}`,
561
+ content: `❌ ${M}`,
402
562
  showFeedback: !1,
403
- createTime: q().format("YYYY-MM-DD HH:mm:ss"),
404
- resTime: (/* @__PURE__ */ new Date()).getTime() - t,
563
+ createTime: G().format("YYYY-MM-DD HH:mm:ss"),
564
+ resTime: (/* @__PURE__ */ new Date()).getTime() - s,
405
565
  firstPackageTime: 0
406
- }), $("default", o.value.length - 1), z();
566
+ }), $("default", l.value.length - 1), J();
407
567
  return;
408
568
  }
409
569
  }
410
570
  });
411
- } catch (C) {
412
- W.error(`AI响应异常: ${C}`), o.value.pop(), o.value.push({
571
+ } catch (V) {
572
+ ee.error(`AI响应异常: ${V}`), l.value.pop(), l.value.push({
413
573
  role: "assistant",
414
574
  userContent: r,
415
575
  content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
416
576
  showFeedback: !0,
417
- createTime: q().format("YYYY-MM-DD HH:mm:ss"),
418
- resTime: (/* @__PURE__ */ new Date()).getTime() - t,
577
+ createTime: G().format("YYYY-MM-DD HH:mm:ss"),
578
+ resTime: (/* @__PURE__ */ new Date()).getTime() - s,
419
579
  firstPackageTime: 0
420
- }), $("default", o.value.length - 1), await z(), h.value = !1, u.value = !1;
580
+ }), $("default", l.value.length - 1), await J(), y.value = !1, x.value = !1;
421
581
  }
422
- }, he = (r) => {
423
- const { parsedConditions: s, ...t } = JSON.parse(r);
424
- console.log({ parsedConditions: s, webParams: t }), R("callBack", t);
425
- }, $ = async (r, s) => {
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) => {
426
586
  switch (r) {
427
587
  case "satisfied": {
428
- const t = o.value[s];
429
- await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
430
- userName: _.username,
431
- userContent: t.userContent,
432
- sessionId: F.value,
433
- fullQuery: t.fullQuery,
434
- historyList: JSON.stringify(t.historyList ?? []),
435
- aiContent: t.content,
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,
436
596
  type: 1,
437
- createTime: t.createTime,
438
- resTime: t.resTime,
439
- firstPackageTime: t.firstPackageTime,
597
+ createTime: s.createTime,
598
+ resTime: s.resTime,
599
+ firstPackageTime: s.firstPackageTime,
440
600
  isSolved: 1,
441
601
  logOrigin: 1
442
- }), W.success("感谢您的评价!"), o.value[s].showFeedback = !1;
602
+ }), ee.success("感谢您的评价!"), l.value[t].showFeedback = !1;
443
603
  break;
444
604
  }
445
605
  case "open": {
446
- G.value = s, P.value = !0;
606
+ Z.value = t, Y.value = !0;
447
607
  break;
448
608
  }
449
609
  case "unsatisfied": {
450
- const t = o.value[s];
451
- await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
452
- userName: _.username,
453
- userContent: t.userContent,
454
- sessionId: F.value,
455
- fullQuery: t.fullQuery,
456
- historyList: JSON.stringify(t.historyList ?? []),
457
- userSuggestion: O.value,
458
- aiContent: t.content,
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,
459
619
  type: 2,
460
- resTime: t.resTime,
461
- createTime: t.createTime,
462
- firstPackageTime: t.firstPackageTime,
620
+ resTime: s.resTime,
621
+ createTime: s.createTime,
622
+ firstPackageTime: s.firstPackageTime,
463
623
  isSolved: 0,
464
624
  logOrigin: 1
465
- }), W.success("感谢您的反馈!我们将持续跟踪并进行优化"), P.value = !1, o.value[s].showFeedback = !1;
625
+ }), ee.success("感谢您的反馈!我们将持续跟踪并进行优化"), Y.value = !1, l.value[t].showFeedback = !1;
466
626
  break;
467
627
  }
468
628
  case "default": {
469
- const t = o.value[s];
629
+ const s = l.value[t];
470
630
  console.log({
471
- userName: _.username,
472
- userContent: t.userContent,
473
- sessionId: F.value,
474
- fullQuery: t.fullQuery,
475
- historyList: JSON.stringify(t.historyList ?? []),
476
- aiContent: t.content,
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,
477
637
  type: null,
478
- resTime: t.resTime,
479
- createTime: t.createTime,
480
- firstPackageTime: t.firstPackageTime,
638
+ resTime: s.resTime,
639
+ createTime: s.createTime,
640
+ firstPackageTime: s.firstPackageTime,
481
641
  isSolved: 1,
482
642
  logOrigin: 1
483
- }), await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
484
- userName: _.username,
485
- userContent: t.userContent,
486
- sessionId: F.value,
487
- fullQuery: t.fullQuery,
488
- historyList: JSON.stringify(t.historyList ?? []),
489
- aiContent: t.content,
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,
490
650
  type: null,
491
- resTime: t.resTime,
492
- createTime: t.createTime,
493
- firstPackageTime: t.firstPackageTime,
651
+ resTime: s.resTime,
652
+ createTime: s.createTime,
653
+ firstPackageTime: s.firstPackageTime,
494
654
  isSolved: 1,
495
655
  logOrigin: 1
496
656
  });
497
657
  }
498
658
  }
499
- }, Ae = (r) => {
659
+ }, Ce = (r) => {
500
660
  if (r.key === "Enter")
501
661
  if (r.ctrlKey) {
502
662
  r.preventDefault();
503
- const s = r.target, t = s.selectionStart, N = s.selectionEnd;
504
- B.value = B.value.substring(0, t) + `
505
- ` + B.value.substring(N), se(() => {
506
- s.selectionStart = s.selectionEnd = t + 1;
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;
507
667
  });
508
668
  } else
509
- r.preventDefault(), I();
510
- }, z = async () => {
511
- await se(), V.value && (V.value.scrollTop = V.value.scrollHeight);
512
- }, ie = (r) => {
669
+ r.preventDefault(), q();
670
+ }, J = async () => {
671
+ await te(), z.value && (z.value.scrollTop = z.value.scrollHeight);
672
+ }, ue = (r) => {
513
673
  if (typeof r != "string")
514
674
  return !1;
515
675
  try {
516
- const s = JSON.parse(r);
517
- return s !== null && typeof s == "object";
676
+ const t = JSON.parse(r);
677
+ return t !== null && typeof t == "object";
518
678
  } catch {
519
679
  return !1;
520
680
  }
521
- }, ye = (r) => {
522
- const { parsedConditions: s } = JSON.parse(r);
523
- let t = "";
524
- return s != null && s.length && (t += '<div class="parsed-conditions">', s.forEach((N) => {
525
- t += `<div class="parsed-conditions-item">${N}</div>`;
526
- }), t += "</div>"), t;
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;
527
687
  };
528
- return oe(
529
- () => o.value,
688
+ return ae(
689
+ () => l.value,
530
690
  () => {
531
- z();
691
+ J();
532
692
  },
533
693
  { deep: !0 }
534
- ), oe(
535
- () => P.value,
694
+ ), ae(
695
+ () => Y.value,
536
696
  (r) => {
537
- r || (O.value = "");
697
+ r || (K.value = "");
538
698
  }
539
- ), i({
699
+ ), B({
540
700
  open: () => {
541
- E.value = !0, se(() => {
542
- z();
701
+ h.value = !0, te(() => {
702
+ J();
543
703
  });
544
704
  }
545
- }), (r, s) => {
546
- const t = Xe, N = ne, C = st, T = Se, m = _e, U = Te, ue = be;
547
- return l(), f(X, null, [
548
- A(ue, {
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, {
549
709
  class: "ai-dialog",
550
- modelValue: E.value,
551
- "onUpdate:modelValue": s[1] || (s[1] = (c) => E.value = c),
710
+ modelValue: h.value,
711
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => h.value = u),
552
712
  title: "✨ 品种池参数解析AI助手",
553
713
  width: "500px",
554
714
  center: "",
@@ -557,138 +717,140 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
557
717
  modal: !1,
558
718
  "modal-penetrable": !0
559
719
  }, {
560
- default: k(() => [
561
- d("div", rt, [
720
+ default: S(() => [
721
+ d("div", gt, [
562
722
  d("div", {
563
723
  ref_key: "messageListRef",
564
- ref: V,
724
+ ref: z,
565
725
  class: "message-list"
566
726
  }, [
567
- (l(!0), f(X, null, ce(o.value, (c, H) => (l(), f("div", {
727
+ (i(!0), v(W, null, ve(l.value, (u, H) => (i(), v("div", {
568
728
  key: H,
569
- class: w([c.role, "message-item"])
729
+ class: C([u.role, "message-item"])
570
730
  }, [
571
- c.content || H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 ? (l(), f(X, { key: 0 }, [
572
- d("div", nt, [
573
- A(t, {
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, {
574
734
  size: 32,
575
- icon: c.role === "user" ? a(Ye) : a(ze)
735
+ icon: u.role === "user" ? c(Ne) : c(Ie)
576
736
  }, null, 8, ["icon"])
577
737
  ]),
578
- d("div", lt, [
579
- c.fullQuery ? (l(), f("div", it, " 筛选结果: " + L(c.fullQuery), 1)) : Q("", !0),
580
- H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 && !S.value ? (l(), f("div", ut, [
581
- (l(!0), f(X, null, ce(b.value, (j) => (l(), f("div", {
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", {
582
742
  key: j.name,
583
743
  class: "node-progress-item"
584
744
  }, [
585
- d("span", ct, [
586
- j.status === "success" ? (l(), K(N, {
745
+ d("span", bt, [
746
+ j.status === "success" ? (i(), R(_, {
587
747
  key: 0,
588
748
  class: "node-icon done"
589
749
  }, {
590
- default: k(() => [
591
- A(a(Je))
750
+ default: S(() => [
751
+ A(c(Ue))
592
752
  ]),
593
753
  _: 1
594
- })) : (l(), K(N, {
754
+ })) : (i(), R(_, {
595
755
  key: 1,
596
756
  class: "node-icon running"
597
757
  }, {
598
- default: k(() => [
599
- A(a(Le))
758
+ default: S(() => [
759
+ A(c(Qe))
600
760
  ]),
601
761
  _: 1
602
762
  }))
603
763
  ]),
604
- d("span", dt, L(j.name), 1)
764
+ d("span", wt, O(j.name), 1)
605
765
  ]))), 128)),
606
- d("div", ft, [
607
- A(C, {
608
- percentage: Y.value,
766
+ d("div", Tt, [
767
+ A(V, {
768
+ percentage: I.value,
609
769
  "show-text": !1,
610
770
  "stroke-width": 4,
611
771
  color: "#667eea"
612
772
  }, null, 8, ["percentage"]),
613
- d("span", pt, "第 " + L(g.value) + "/" + L(e.value) + " 步 · " + L(D.value), 1)
773
+ d("span", St, "第 " + O(p.value) + "/" + O(n.value) + " 步 · " + O(Q.value), 1)
614
774
  ])
615
- ])) : Q("", !0),
616
- ie(c.content) ? (l(), f("div", {
775
+ ])) : P("", !0),
776
+ ue(u.content) ? (i(), v("div", {
617
777
  key: 2,
618
- class: w(["message-content-json", { "result-animation": H === o.value.length - 1 && S.value }]),
619
- innerHTML: ye(c.content)
620
- }, null, 10, mt)) : c.content ? (l(), f("div", {
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", {
621
781
  key: 3,
622
- class: w(["message-content-text", { "result-animation": H === o.value.length - 1 && S.value }])
623
- }, L(c.content), 3)) : Q("", !0),
624
- c.role === "assistant" ? (l(), f("div", vt, [
625
- c.showFeedback ? (l(), f("div", gt, [
626
- A(T, {
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, {
627
787
  content: "满意",
628
788
  placement: "bottom"
629
789
  }, {
630
- default: k(() => [
790
+ default: S(() => [
631
791
  d("img", {
632
- src: at,
792
+ src: mt,
633
793
  alt: "满意",
634
794
  onClick: (j) => $("satisfied", H)
635
- }, null, 8, ht)
795
+ }, null, 8, Et)
636
796
  ]),
637
797
  _: 2
638
798
  }, 1024),
639
- A(T, {
799
+ A(M, {
640
800
  content: "满意",
641
801
  placement: "bottom"
642
802
  }, {
643
- default: k(() => [
803
+ default: S(() => [
644
804
  d("img", {
645
- src: ot,
805
+ src: pt,
646
806
  alt: "不满意",
647
807
  onClick: (j) => $("open", H)
648
- }, null, 8, At)
808
+ }, null, 8, Vt)
649
809
  ]),
650
810
  _: 2
651
811
  }, 1024)
652
- ])) : Q("", !0),
653
- ie(c.content) ? (l(), K(m, {
812
+ ])) : P("", !0),
813
+ ue(u.content) ? (i(), R(m, {
654
814
  key: 1,
655
815
  class: "confirm-btn",
656
- onClick: (j) => he(c.content)
816
+ onClick: (j) => Se(u.content)
657
817
  }, {
658
- default: k(() => [
659
- Z(" 确认查询 ")
660
- ]),
661
- _: 2
662
- }, 1032, ["onClick"])) : Q("", !0)
663
- ])) : Q("", !0)
818
+ default: S(() => [...t[6] || (t[6] = [
819
+ X(" 确认查询 ", -1)
820
+ ])]),
821
+ _: 1
822
+ }, 8, ["onClick"])) : P("", !0)
823
+ ])) : P("", !0)
664
824
  ])
665
- ], 64)) : Q("", !0)
825
+ ], 64)) : P("", !0)
666
826
  ], 2))), 128))
667
827
  ], 512),
668
- d("div", yt, [
669
- A(U, {
828
+ d("div", Bt, [
829
+ A(F, {
670
830
  class: "message-input",
671
- modelValue: B.value,
672
- "onUpdate:modelValue": s[0] || (s[0] = (c) => B.value = c),
831
+ modelValue: k.value,
832
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => k.value = u),
673
833
  type: "textarea",
674
834
  rows: 4,
675
835
  autosize: { minRows: 2, maxRows: 4 },
676
836
  placeholder: "输入您想查询的品种条件...",
677
- onKeydown: Ae
837
+ onKeydown: Ce
678
838
  }, null, 8, ["modelValue"]),
679
- d("div", kt, [
680
- wt,
839
+ d("div", xt, [
840
+ t[8] || (t[8] = d("div", { class: "input-hint" }, [
841
+ d("span", null, "Enter 发送 | Ctrl + Enter 换行")
842
+ ], -1)),
681
843
  A(m, {
682
844
  class: "send-btn",
683
845
  type: "primary",
684
- icon: a(Oe),
685
- loading: h.value,
686
- onClick: I,
846
+ icon: c(_e),
847
+ loading: y.value,
848
+ onClick: q,
687
849
  round: ""
688
850
  }, {
689
- default: k(() => [
690
- Z(" 发送 ")
691
- ]),
851
+ default: S(() => [...t[7] || (t[7] = [
852
+ X(" 发送 ", -1)
853
+ ])]),
692
854
  _: 1
693
855
  }, 8, ["icon", "loading"])
694
856
  ])
@@ -697,40 +859,40 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
697
859
  ]),
698
860
  _: 1
699
861
  }, 8, ["modelValue"]),
700
- A(ue, {
701
- modelValue: P.value,
702
- "onUpdate:modelValue": s[5] || (s[5] = (c) => P.value = c),
862
+ A(ce, {
863
+ modelValue: Y.value,
864
+ "onUpdate:modelValue": t[5] || (t[5] = (u) => Y.value = u),
703
865
  title: "📝 反馈意见",
704
866
  width: "400px"
705
867
  }, {
706
- footer: k(() => [
707
- d("span", St, [
868
+ footer: S(() => [
869
+ d("span", It, [
708
870
  A(m, {
709
- onClick: s[3] || (s[3] = (c) => P.value = !1)
871
+ onClick: t[3] || (t[3] = (u) => Y.value = !1)
710
872
  }, {
711
- default: k(() => [
712
- Z("取消")
713
- ]),
873
+ default: S(() => [...t[11] || (t[11] = [
874
+ X("取消", -1)
875
+ ])]),
714
876
  _: 1
715
877
  }),
716
878
  A(m, {
717
879
  type: "primary",
718
- onClick: s[4] || (s[4] = (c) => $("unsatisfied", G.value))
880
+ onClick: t[4] || (t[4] = (u) => $("unsatisfied", Z.value))
719
881
  }, {
720
- default: k(() => [
721
- Z("提交反馈")
722
- ]),
882
+ default: S(() => [...t[12] || (t[12] = [
883
+ X("提交反馈", -1)
884
+ ])]),
723
885
  _: 1
724
886
  })
725
887
  ])
726
888
  ]),
727
- default: k(() => [
728
- d("div", bt, [
729
- Tt,
730
- _t,
731
- A(U, {
732
- modelValue: O.value,
733
- "onUpdate:modelValue": s[2] || (s[2] = (c) => O.value = c),
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),
734
896
  type: "textarea",
735
897
  rows: 4,
736
898
  placeholder: "[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
@@ -742,11 +904,11 @@ const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-d
742
904
  ], 64);
743
905
  };
744
906
  }
745
- }, Ct = /* @__PURE__ */ He(Dt, [["__scopeId", "data-v-7e3d6eda"]]), es = {
746
- install(p) {
747
- p.component("st-varietyAiHelper", Ct);
907
+ }, Qt = /* @__PURE__ */ Ze(Ut, [["__scopeId", "data-v-7e3d6eda"]]), us = {
908
+ install(e) {
909
+ e.component("st-varietyAiHelper", Qt);
748
910
  }
749
911
  };
750
912
  export {
751
- es as default
913
+ us as default
752
914
  };