agilebuilder-ui 1.1.65-tmp22 → 1.1.65-tmp24

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 (81) hide show
  1. package/dist/index.full.min.js +462 -281
  2. package/dist/style.css +181 -175
  3. package/es/chat-embed/src/chat-sender.vue.mjs +1 -1
  4. package/es/chat-embed/src/chat-sender.vue2.mjs +26 -28
  5. package/es/chat-embed/src/index.vue.mjs +1 -1
  6. package/es/chat-embed/src/index.vue2.mjs +29 -29
  7. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +68 -68
  8. package/es/department-tree-mobile/src/department-tree-service.mjs +20 -18
  9. package/es/department-tree-mobile/src/dept-result.vue.mjs +12 -11
  10. package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +3 -3
  11. package/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs +6 -6
  12. package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +1 -1
  13. package/es/fs-preview/src/fs-preview.vue.mjs +26 -18
  14. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +1 -1
  15. package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs +1 -1
  16. package/es/index.mjs +7 -5
  17. package/es/src/components/Card/index.mjs +34 -31
  18. package/es/src/components/Scrollbar/index.vue.mjs +6 -6
  19. package/es/src/i18n/langs/cn.mjs +1 -1
  20. package/es/src/i18n/langs/en.mjs +1 -1
  21. package/es/src/utils/common-util.mjs +47 -39
  22. package/es/style.css +879 -873
  23. package/es/super-grid/src/apis.mjs +199 -173
  24. package/es/super-grid/src/components/mobile-table-card.mjs +53 -53
  25. package/es/super-grid/src/normal-column-content.vue.mjs +12 -12
  26. package/es/super-grid/src/normal-column.vue.mjs +4 -5
  27. package/es/super-grid/src/search-button.vue.mjs +4 -2
  28. package/es/super-grid/src/search-form-dialog.vue.mjs +22 -11
  29. package/es/super-grid/src/search-form-item.vue.mjs +5 -5
  30. package/es/super-grid/src/search-form-mobile.vue.mjs +19 -19
  31. package/es/super-grid/src/search-form-open.vue.mjs +5 -3
  32. package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +3 -1
  33. package/es/super-grid/src/search-form.vue.mjs +19 -13
  34. package/es/super-grid/src/super-grid.vue.mjs +271 -209
  35. package/es/super-grid/src/utils.mjs +346 -300
  36. package/es/utils/organization.mjs +24 -11
  37. package/lib/chat-embed/src/chat-sender.vue.cjs +1 -1
  38. package/lib/chat-embed/src/chat-sender.vue2.cjs +44 -46
  39. package/lib/chat-embed/src/index.vue.cjs +1 -1
  40. package/lib/chat-embed/src/index.vue2.cjs +14 -14
  41. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +58 -58
  42. package/lib/department-tree-mobile/src/department-tree-service.cjs +10 -8
  43. package/lib/department-tree-mobile/src/dept-result.vue.cjs +10 -10
  44. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +16 -16
  45. package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +5 -5
  46. package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +1 -1
  47. package/lib/fs-preview/src/fs-preview.vue.cjs +13 -5
  48. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +1 -1
  49. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +13 -13
  50. package/lib/index.cjs +7 -7
  51. package/lib/src/components/Card/index.cjs +14 -11
  52. package/lib/src/components/Scrollbar/index.vue.cjs +2 -2
  53. package/lib/src/i18n/langs/cn.cjs +1 -1
  54. package/lib/src/i18n/langs/en.cjs +1 -1
  55. package/lib/src/utils/common-util.cjs +24 -17
  56. package/lib/style.css +915 -909
  57. package/lib/super-grid/src/apis.cjs +190 -164
  58. package/lib/super-grid/src/components/mobile-table-card.cjs +37 -37
  59. package/lib/super-grid/src/normal-column-content.vue.cjs +2 -2
  60. package/lib/super-grid/src/normal-column.vue.cjs +10 -11
  61. package/lib/super-grid/src/search-button.vue.cjs +3 -1
  62. package/lib/super-grid/src/search-form-dialog.vue.cjs +19 -8
  63. package/lib/super-grid/src/search-form-item.vue.cjs +2 -2
  64. package/lib/super-grid/src/search-form-mobile.vue.cjs +7 -7
  65. package/lib/super-grid/src/search-form-open.vue.cjs +7 -5
  66. package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +3 -1
  67. package/lib/super-grid/src/search-form.vue.cjs +15 -10
  68. package/lib/super-grid/src/super-grid.vue.cjs +220 -158
  69. package/lib/super-grid/src/utils.cjs +349 -274
  70. package/lib/utils/organization.cjs +35 -24
  71. package/package.json +1 -1
  72. package/src/components/Card/index.jsx +12 -2
  73. package/src/components/Scrollbar/index.vue +165 -154
  74. package/src/i18n/langs/cn.js +10 -2
  75. package/src/i18n/langs/en.js +10 -2
  76. package/src/styles/index.scss +9 -2
  77. package/src/styles/theme/default.scss +18 -13
  78. package/src/styles/theme/tiffany-blue-mobile/home.scss +44 -1
  79. package/src/utils/auth-api.js +1 -0
  80. package/src/utils/common-util.js +13 -0
  81. package/vite.config.js +0 -45
@@ -11,28 +11,28 @@ function n(e2, n2) {
11
11
  return { id: e2.id, name: a2, zhName: e2.name, loginName: e2.loginName, email: e2.email, telephone: e2.telephone, containBranch: n2, user: e2, enName: e2.enName ? e2.enName : "", subCompanyName: e2.subCompanyName, divisionManager: e2.divisionManager, divisionManagerName: e2.divisionManagerName };
12
12
  }
13
13
  function a(e2, n2, a2) {
14
- return new Promise((t2, i2) => {
15
- const m2 = [];
16
- n2 ? "所有用户" === n2 ? (m2.push({ id: -1, name: "所有用户" }), t2(m2)) : "所有工作组人员" === n2 ? (m2.push({ id: -1, name: "所有工作组人员" }), t2(m2)) : function(e3, n3, a3) {
17
- return new Promise((t3, i3) => {
14
+ return new Promise((t2, m2) => {
15
+ const i2 = [];
16
+ n2 ? "所有用户" === n2 ? (i2.push({ id: -1, name: "所有用户" }), t2(i2)) : "所有工作组人员" === n2 ? (i2.push({ id: -1, name: "所有工作组人员" }), t2(i2)) : function(e3, n3, a3) {
17
+ return new Promise((t3, m3) => {
18
18
  e3 && n3 ? window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/select-users-mobile?searchField=" + e3 + "&selectUserInfo=" + n3 + "&separator=" + a3).then((e4) => {
19
19
  t3(e4);
20
20
  }).catch((e4) => {
21
- i3(e4);
21
+ m3(e4);
22
22
  }) : t3([]);
23
23
  });
24
24
  }(e2, n2, a2).then((e3) => {
25
25
  t2(e3);
26
26
  }).catch((e3) => {
27
- i2(e3);
28
- }) : t2(m2);
27
+ m2(e3);
28
+ }) : t2(i2);
29
29
  });
30
30
  }
31
31
  function t() {
32
32
  let e2 = window.innerHeight - 16;
33
33
  return document.querySelector(".el-page-header") && (e2 -= 50), document.querySelector(".mobile-tab") && (e2 -= 56), e2;
34
34
  }
35
- function i(e2) {
35
+ function m(e2) {
36
36
  let n2 = "";
37
37
  if (e2 && e2.data) {
38
38
  const a2 = JSON.parse(e2.data);
@@ -40,17 +40,30 @@ function i(e2) {
40
40
  }
41
41
  return n2;
42
42
  }
43
- function m(e2) {
43
+ function i(e2) {
44
44
  let n2 = "";
45
45
  if (e2 && e2.data) {
46
46
  n2 = JSON.parse(e2.data).namePath;
47
47
  }
48
48
  return n2;
49
49
  }
50
+ function r(e2, n2) {
51
+ let a2 = "";
52
+ if (n2.namePath)
53
+ return e2 === n2.namePath ? "" : n2.namePath;
54
+ if (n2 && n2.data) {
55
+ const t2 = JSON.parse(n2.data);
56
+ if (e2 === t2.namePath)
57
+ return "";
58
+ a2 = t2.namePath;
59
+ }
60
+ return a2;
61
+ }
50
62
  export {
51
63
  e as addSelectedUserInfo,
52
- m as getDeptNamePath,
53
- i as getUserMainDeptName,
64
+ i as getDeptNamePath,
65
+ r as getShowDeptNamePath,
66
+ m as getUserMainDeptName,
54
67
  a as initSelectUsers,
55
68
  n as packageSelectResult,
56
69
  t as resizeScrollTargetHeightUtil
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  const e = require("./chat-sender.vue2.cjs");
3
3
  require("./chat-sender.vue3.cjs");
4
- const r = require("../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-0b0c189e"]]);
4
+ const r = require("../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-6da81be3"]]);
5
5
  module.exports = r;
@@ -1,86 +1,84 @@
1
1
  "use strict";
2
- const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs"), a = require("vue-element-plus-x"), n = require("./util/text-file-util.cjs"), l = require("pinia"), o = require("vue-i18n"), i = require("element-plus"), r = require("./voice/voice.vue.cjs"), u = require("./type.cjs"), c = require("../../src/utils/voice-setting-cache.cjs"), s = require("../../src/utils/common-util.cjs"), d = require("../../src/utils/auth.cjs"), p = { class: "sender-additional-data-tag" }, m = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, v = { style: { display: "flex", "align-items": "center", gap: "16px" } }, f = ((t2) => (e.pushScopeId("data-v-0b0c189e"), t2 = t2(), e.popScopeId(), t2))(() => e.createElementVNode("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1)), h = e.defineComponent({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(h2, { expose: g, emit: w }) {
2
+ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs"), a = require("vue-element-plus-x"), n = require("./util/text-file-util.cjs"), l = require("pinia"), o = require("vue-i18n"), i = require("element-plus"), r = require("./voice/voice.vue.cjs"), u = require("./type.cjs"), c = require("../../src/utils/voice-setting-cache.cjs"), s = require("../../src/utils/common-util.cjs"), d = require("../../src/utils/auth.cjs"), p = { class: "sender-additional-data-tag" }, m = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, v = { style: { display: "flex", "align-items": "center", gap: "16px" } }, f = ((t2) => (e.pushScopeId("data-v-6da81be3"), t2 = t2(), e.popScopeId(), t2))(() => e.createElementVNode("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1)), h = e.defineComponent({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(h2, { expose: g, emit: w }) {
3
3
  o.useI18n();
4
- const E = [{ label: "流程体系类", value: u.AI_MODELS.RAGFLOW }, { label: "QMS数据库类", value: u.AI_MODELS.DATABASE }, { label: "DeepSeek问答", value: u.AI_MODELS.DEEPSEEK }, { label: "系统交互", value: u.AI_MODELS.INTERACTION }, { label: "生成PPT", value: u.AI_MODELS.PPT_GENERATION }];
5
- let x = null;
6
- const C = e.ref(false), A = e.ref(""), V = e.ref([]), b = e.ref(""), N = e.ref("ragflow"), k = e.ref(), y = e.ref(), _ = e.ref(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), I = e.ref([]), S = e.ref(false), D = e.ref(false);
7
- function M() {
4
+ const x = [{ label: "流程体系类", value: u.AI_MODELS.RAGFLOW }, { label: "QMS数据库类", value: u.AI_MODELS.DATABASE }, { label: "DeepSeek问答", value: u.AI_MODELS.DEEPSEEK }, { label: "系统交互", value: u.AI_MODELS.INTERACTION }, { label: "生成PPT", value: u.AI_MODELS.PPT_GENERATION }];
5
+ let C = null;
6
+ const E = e.ref(false), V = e.ref(""), b = e.ref([]), N = e.ref(""), k = e.ref("ragflow"), A = e.ref(), y = e.ref(), _ = e.ref(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), I = e.ref([]), S = e.ref(false), D = e.ref(false);
7
+ function R() {
8
8
  try {
9
- window.parent && window.parent !== window && (window.parent.ChatAiStore = x), window.top && window.top !== window && (window.top.ChatAiStore = x), window.ChatAiStore = x;
9
+ window.parent && window.parent !== window && (window.parent.ChatAiStore = C), window.top && window.top !== window && (window.top.ChatAiStore = C), window.ChatAiStore = C;
10
10
  } catch (e2) {
11
11
  console.error("Failed to initialize ChatAiStore:", e2);
12
12
  }
13
13
  }
14
- let R, B;
14
+ let B, M;
15
15
  e.onMounted(() => {
16
16
  !function() {
17
17
  try {
18
18
  let e2 = l.getActivePinia();
19
- e2 || (e2 = l.createPinia(), l.setActivePinia(e2), window.$vueApp && window.$vueApp.use(e2)), x = t();
19
+ e2 || (e2 = l.createPinia(), l.setActivePinia(e2), window.$vueApp && window.$vueApp.use(e2)), C = t();
20
20
  } catch (e2) {
21
21
  console.error("Failed to initialize Pinia or ChatAiStore:", e2);
22
22
  }
23
- }(), M();
23
+ }(), R();
24
24
  }), e.watch(() => I.value.length, (e2) => {
25
- e2 > 0 ? k.value.openHeader() : k.value.closeHeader();
25
+ e2 > 0 ? A.value.openHeader() : A.value.closeHeader();
26
26
  }), e.onMounted(() => {
27
- M();
27
+ R();
28
28
  });
29
- let O = {}, P = {};
29
+ let P = {}, O = {};
30
30
  function T(e2) {
31
31
  let t2 = e2;
32
- null == e2 ? (b.value, t2 = b.value.trim()) : t2 = e2.trim(), R = t2;
33
- let a2 = { aiModel: N.value, question: t2 };
34
- if (N.value === u.AI_MODELS.DEEPSEEK || N.value === u.AI_MODELS.PPT_GENERATION) {
35
- const e3 = x.getActiveMenu();
32
+ null == e2 ? (N.value, t2 = N.value.trim()) : t2 = e2.trim(), B = t2;
33
+ let a2 = { aiModel: k.value, question: t2 };
34
+ if (k.value === u.AI_MODELS.DEEPSEEK || k.value === u.AI_MODELS.PPT_GENERATION) {
35
+ const e3 = C.getActiveMenu();
36
36
  let n2 = "";
37
37
  I.value.length > 0 && (n2 = I.value.map((e4) => e4.id).join(","));
38
38
  let l2 = [];
39
- I.value.length > 0 && (l2 = I.value.map((e4) => ({ fileId: e4.id, name: e4.name }))), I.value = [], a2 = { aiModel: N.value, question: t2, fileId: n2, fileInfos: l2, additionalData: V.value, additionalDataLabel: A.value, menuName: (e3 == null ? void 0 : e3.menuName) || "" };
39
+ I.value.length > 0 && (l2 = I.value.map((e4) => ({ fileId: e4.id, name: e4.name }))), I.value = [], a2 = { aiModel: k.value, question: t2, fileId: n2, fileInfos: l2, additionalData: b.value, additionalDataLabel: V.value, menuName: (e3 == null ? void 0 : e3.menuName) || "" };
40
40
  }
41
- w("submit-question", a2), b.value = "", q();
41
+ w("submit-question", a2), N.value = "", L();
42
42
  }
43
- function L() {
43
+ function j() {
44
44
  w("handle-cancel");
45
45
  }
46
- function j() {
46
+ function q() {
47
47
  var _a;
48
- const e2 = x.getActiveMenu(), t2 = x.getActiveMenuPageInfo();
48
+ const e2 = C.getActiveMenu(), t2 = C.getActiveMenuPageInfo();
49
49
  if ("list" === t2.pageType) {
50
50
  const a2 = t2.listRefs[0].ref.getAiChatListData();
51
- a2 && a2.length > 0 && (V.value = a2), ((_a = V.value) == null ? void 0 : _a.length) > 0 && (A.value = `已附加【${e2.menuName}】表格数据 (${V.value.length} 条记录)`, C.value = true);
51
+ a2 && a2.length > 0 && (b.value = a2), ((_a = b.value) == null ? void 0 : _a.length) > 0 && (V.value = `已附加【${e2.menuName}】表格数据 (${b.value.length} 条记录)`, E.value = true);
52
52
  } else if ("form" === t2.pageType) {
53
53
  const a2 = t2.exposeProxy.getFormFormatData();
54
54
  t2.subTableRefs && Object.keys(t2.subTableRefs).length > 0 && Object.keys(t2.subTableRefs).forEach((e3) => {
55
55
  const n2 = t2.subTableRefs[e3].ref, l2 = n2.getAiChatListData();
56
56
  let o2 = e3;
57
57
  n2.options.title && (o2 = n2.options.title), a2[o2] = l2;
58
- }), a2 && (V.value = [a2], A.value = `已附加【${e2.menuName}】表单数据`, C.value = true);
58
+ }), a2 && (b.value = [a2], V.value = `已附加【${e2.menuName}】表单数据`, E.value = true);
59
59
  }
60
60
  }
61
- function q() {
62
- V.value = [], A.value = "", C.value = false;
61
+ function L() {
62
+ b.value = [], V.value = "", E.value = false;
63
63
  }
64
64
  function F() {
65
- w("view-json", V.value);
65
+ w("view-json", b.value);
66
66
  }
67
67
  function $() {
68
68
  try {
69
- const e2 = x.getActiveMenu(), t2 = n.generateFileName((e2 == null ? void 0 : e2.menuName) || "data");
70
- n.downloadJsonFile(V.value, t2);
69
+ const e2 = C.getActiveMenu(), t2 = n.generateFileName((e2 == null ? void 0 : e2.menuName) || "data");
70
+ n.downloadJsonFile(b.value, t2);
71
71
  } catch (e2) {
72
72
  console.error("下载失败:", e2);
73
73
  }
74
74
  }
75
75
  function z(e2) {
76
- if (e2 === u.AI_MODELS.DATABASE)
77
- return i.ElMessage({ message: "QMS数据库类模型正在开发中,敬请期待!", type: "warning" }), void (N.value = u.AI_MODELS.RAGFLOW);
78
- e2 === u.AI_MODELS.DEEPSEEK && I.value.length > 0 ? k.value.openHeader() : k.value.closeHeader(), e2 === u.AI_MODELS.DEEPSEEK || e2 === u.AI_MODELS.PPT_GENERATION ? (S.value = true, D.value = true) : (S.value = false, D.value = false, q()), w("change-ai-model", e2);
76
+ e2 === u.AI_MODELS.DEEPSEEK && I.value.length > 0 ? A.value.openHeader() : A.value.closeHeader(), e2 === u.AI_MODELS.DEEPSEEK || e2 === u.AI_MODELS.PPT_GENERATION ? (S.value = true, D.value = true) : (S.value = false, D.value = false, L()), w("change-ai-model", e2);
79
77
  }
80
- function G(e2) {
78
+ function K(e2) {
81
79
  I.value.push({ id: e2.uid, uid: e2.uid, name: e2.name, percent: 0, status: "uploading", showDelIcon: true, maxWidth: "150px" });
82
80
  }
83
- function K(e2, t2, a2) {
81
+ function G(e2, t2, a2) {
84
82
  const n2 = I.value.findIndex((e3) => e3.id === t2.uid);
85
83
  -1 !== n2 && (I.value[n2].percent = e2.percent);
86
84
  }
@@ -104,12 +102,12 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
104
102
  let l2;
105
103
  if (n2 = s.isValidDate(e3[0]), n2 && (n2 = s.isValidDate(e3[1])), 3 === e3.length && (l2 = e3[2]), e3.length, n2 && l2 && l2.indexOf(",") > 0) {
106
104
  const t3 = l2.split(","), n3 = t3[0], o2 = t3[1];
107
- a2 = Q(n3, e3[0], a2), a2 = Q(o2, e3[1], a2);
105
+ a2 = J(n3, e3[0], a2), a2 = J(o2, e3[1], a2);
108
106
  }
109
107
  }
110
- return n2 || (a2 = Q(e2, t2, a2)), a2;
108
+ return n2 || (a2 = J(e2, t2, a2)), a2;
111
109
  }
112
- function Q(e2, t2, a2) {
110
+ function J(e2, t2, a2) {
113
111
  if (null == e2 || e2 + "" == "")
114
112
  return a2;
115
113
  if (null == t2 || t2 + "" == "")
@@ -119,18 +117,18 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
119
117
  }
120
118
  return g({ parseCommand: function() {
121
119
  c.getVoiceSetting().then((e2) => {
122
- c.parseVoiceMsg(R, e2, B, O, P).then((e3) => {
120
+ c.parseVoiceMsg(B, e2, M, P, O).then((e3) => {
123
121
  if ("ok" === e3.status) {
124
- B || (B = e3.settingItem), O = e3.paramInfo;
122
+ M || (M = e3.settingItem), P = e3.paramInfo;
125
123
  let t2 = e3.url;
126
124
  if (t2) {
127
- if (P)
128
- for (let e4 in P) {
129
- const a3 = P[e4];
125
+ if (O)
126
+ for (let e4 in O) {
127
+ const a3 = O[e4];
130
128
  "_jump_param" !== a3 && (t2 = W(e4, a3, t2));
131
129
  }
132
- const a2 = B ? B.command : "";
133
- B = void 0, P = {}, O = {}, w("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult, url: t2, paramsValue: P, command: a2 }), window.open(s.getRelativeBaseUrl(t2));
130
+ const a2 = M ? M.command : "";
131
+ M = void 0, O = {}, P = {}, w("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult, url: t2, paramsValue: O, command: a2 }), window.open(s.getRelativeBaseUrl(t2));
134
132
  } else
135
133
  w("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
136
134
  } else
@@ -138,10 +136,10 @@ const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs
138
136
  });
139
137
  });
140
138
  }, newChatSession: function() {
141
- N.value === u.AI_MODELS.DEEPSEEK && (I.value = []), b.value = "";
139
+ k.value === u.AI_MODELS.DEEPSEEK && (I.value = []), N.value = "";
142
140
  } }), (t2, n2) => {
143
- const l2 = e.resolveComponent("Paperclip"), o2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("super-icon"), u2 = e.resolveComponent("el-tooltip"), c2 = e.resolveComponent("el-tag"), s2 = e.resolveComponent("el-option"), g2 = e.resolveComponent("el-select"), w2 = e.resolveComponent("SuperIcon"), x2 = e.resolveComponent("el-upload"), V2 = e.resolveComponent("el-divider"), M2 = e.resolveComponent("el-button"), R2 = e.resolveDirective("loading");
144
- return e.openBlock(), e.createElementBlock(e.Fragment, null, [C.value ? (e.openBlock(), e.createBlock(c2, { key: 0, type: "primary" }, { default: e.withCtx(() => [e.createElementVNode("div", p, [e.createVNode(o2, null, { default: e.withCtx(() => [e.createVNode(l2)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(A.value) + " ", 1), e.createVNode(u2, { content: "预览" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: F })]), _: 1 }), e.createVNode(u2, { content: "下载" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: $ })]), _: 1 }), e.createVNode(u2, { content: "移除" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: q })]), _: 1 })])]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(e.unref(a.Sender), { modelValue: b.value, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => b.value = e2), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: k, submitType: "enter", loading: h2.loading, "allow-speech": "", onSubmit: n2[3] || (n2[3] = (e2) => T()), placeholder: "请您描述问题" }, { header: e.withCtx(() => [e.createVNode(e.unref(a.Attachments), { items: I.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": e.withCtx((t3) => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.items, (t4) => (e.openBlock(), e.createBlock(e.unref(a.FilesCard), { key: t4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: t4.name, percent: t4.percent, uid: t4.id, status: t4.status, "show-del-icon": "", "img-variant": "square", onDelete: U }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: e.withCtx(() => [e.createElementVNode("div", m, [e.createVNode(g2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: N.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => N.value = e2), onChange: z }, { default: e.withCtx(() => [(e.openBlock(), e.createElementBlock(e.Fragment, null, e.renderList(E, (t3) => e.createVNode(s2, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": e.withCtx(() => [e.createElementVNode("div", v, [S.value ? (e.openBlock(), e.createBlock(u2, { key: 0, content: "上传附件" }, { default: e.withCtx(() => [e.createVNode(x2, { ref_key: "uploadRef", ref: y, action: _.value, multiple: true, headers: { Authorization: e.unref(d.getToken)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": K, "on-success": H, "before-upload": G }, { default: e.withCtx(() => [e.createVNode(w2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : e.createCommentVNode("", true), D.value ? (e.openBlock(), e.createBlock(u2, { key: 1, content: "附加页面数据" }, { default: e.withCtx(() => [e.createVNode(w2, { onClick: j, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(u2, { content: "语音" }, { default: e.withCtx(() => [e.createVNode(r, { onUserMessage: T, class: "send-icon" })]), _: 1 }), e.createVNode(V2, { direction: "vertical" }), h2.loading ? (e.openBlock(), e.createBlock(u2, { key: 2, content: "取消" }, { default: e.withCtx(() => [e.withDirectives((e.openBlock(), e.createBlock(M2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: L }, { default: e.withCtx(() => [e.createTextVNode(" 取消 ")]), _: 1 })), [[R2, h2.loading]])]), _: 1 })) : (e.openBlock(), e.createBlock(M2, { key: 3, style: { "border-radius": "10px" }, disabled: !b.value || !b.value.trim(), plain: "", circle: "", round: "", onClick: n2[1] || (n2[1] = (e2) => T()) }, { default: e.withCtx(() => [e.createVNode(w2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), f], 64);
141
+ const l2 = e.resolveComponent("Paperclip"), o2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("super-icon"), u2 = e.resolveComponent("el-tooltip"), c2 = e.resolveComponent("el-tag"), s2 = e.resolveComponent("el-option"), g2 = e.resolveComponent("el-select"), w2 = e.resolveComponent("SuperIcon"), C2 = e.resolveComponent("el-upload"), b2 = e.resolveComponent("el-divider"), R2 = e.resolveComponent("el-button"), B2 = e.resolveDirective("loading");
142
+ return e.openBlock(), e.createElementBlock(e.Fragment, null, [E.value ? (e.openBlock(), e.createBlock(c2, { key: 0, type: "primary" }, { default: e.withCtx(() => [e.createElementVNode("div", p, [e.createVNode(o2, null, { default: e.withCtx(() => [e.createVNode(l2)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(V.value) + " ", 1), e.createVNode(u2, { content: "预览" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: F })]), _: 1 }), e.createVNode(u2, { content: "下载" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: $ })]), _: 1 }), e.createVNode(u2, { content: "移除" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: L })]), _: 1 })])]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(e.unref(a.Sender), { modelValue: N.value, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => N.value = e2), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: A, submitType: "enter", loading: h2.loading, "allow-speech": "", onSubmit: n2[3] || (n2[3] = (e2) => T()), placeholder: "请您描述问题" }, { header: e.withCtx(() => [e.createVNode(e.unref(a.Attachments), { items: I.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": e.withCtx((t3) => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.items, (t4) => (e.openBlock(), e.createBlock(e.unref(a.FilesCard), { key: t4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: t4.name, percent: t4.percent, uid: t4.id, status: t4.status, "show-del-icon": "", "img-variant": "square", onDelete: U }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: e.withCtx(() => [e.createElementVNode("div", m, [e.createVNode(g2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: k.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => k.value = e2), onChange: z }, { default: e.withCtx(() => [(e.openBlock(), e.createElementBlock(e.Fragment, null, e.renderList(x, (t3) => e.createVNode(s2, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": e.withCtx(() => [e.createElementVNode("div", v, [S.value ? (e.openBlock(), e.createBlock(u2, { key: 0, content: "上传附件" }, { default: e.withCtx(() => [e.createVNode(C2, { ref_key: "uploadRef", ref: y, action: _.value, multiple: true, headers: { Authorization: e.unref(d.getToken)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": G, "on-success": H, "before-upload": K }, { default: e.withCtx(() => [e.createVNode(w2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : e.createCommentVNode("", true), D.value ? (e.openBlock(), e.createBlock(u2, { key: 1, content: "附加页面数据" }, { default: e.withCtx(() => [e.createVNode(w2, { onClick: q, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(u2, { content: "语音" }, { default: e.withCtx(() => [e.createVNode(r, { onUserMessage: T, class: "send-icon" })]), _: 1 }), e.createVNode(b2, { direction: "vertical" }), h2.loading ? (e.openBlock(), e.createBlock(u2, { key: 2, content: "取消" }, { default: e.withCtx(() => [e.withDirectives((e.openBlock(), e.createBlock(R2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: j }, { default: e.withCtx(() => [e.createTextVNode(" 取消 ")]), _: 1 })), [[B2, h2.loading]])]), _: 1 })) : (e.openBlock(), e.createBlock(R2, { key: 3, style: { "border-radius": "10px" }, disabled: !N.value || !N.value.trim(), plain: "", circle: "", round: "", onClick: n2[1] || (n2[1] = (e2) => T()) }, { default: e.withCtx(() => [e.createVNode(w2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), f], 64);
145
143
  };
146
144
  } });
147
145
  module.exports = h;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  const e = require("./index.vue2.cjs");
3
3
  require("./index.vue3.cjs");
4
- const r = require("../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-e25b360d"]]);
4
+ const r = require("../../_virtual/_plugin-vue_export-helper.cjs")(e, [["__scopeId", "data-v-e84e6e12"]]);
5
5
  module.exports = r;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const e = require("vue"), t = require("vue-i18n"), a = require("vue-element-plus-x"), n = require("@vueuse/core"), o = require("../../src/utils/auth.cjs"), l = require("./chat-embed-message.cjs"), r = require("./type.cjs"), i = require("./recommendation-message.vue.cjs"), u = require("./chat-addition-data.vue.cjs"), s = require("./chat-bubble-footer.vue.cjs"), c = require("./chat-ai-answer-tip.vue.cjs"), d = require("./header.vue.cjs"), v = require("./chat-sender.vue.cjs");
3
3
  require("codemirror"), require("@codemirror/lang-json"), require("@codemirror/state");
4
- const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./components/answer-home-chart.vue.cjs"), f = require("./components/answer-interaction-data.vue.cjs"), p = require("./components/answer-auto-chart.vue.cjs"), g = require("../../src/assets/chat-embed/robot.gif.cjs"), y = require("./sidebar-item.vue.cjs"), k = require("uuid"), w = require("./util/text-file-util.cjs"), S = require("./util/chat-embed-util.cjs"), b = require("./util/mcp-utils.cjs"), E = require("vue-router"), A = { key: 0 }, C = ["src"], N = { class: "chat-content" }, T = { style: { display: "flex", "flex-direction": "row" } }, x = { class: "chat-embed__main_content" }, M = ["href", "title"], q = ["href", "target"], _ = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, V = { key: 1, style: { "margin-top": "5px", width: "100%" } }, D = ((t2) => (e.pushScopeId("data-v-e25b360d"), t2 = t2(), e.popScopeId(), t2))(() => e.createElementVNode("div", { class: "content-container-header" }, "引用文件", -1)), B = ["onClick"], P = { style: { display: "none" } }, I = e.defineComponent({ __name: "index", setup(I2) {
4
+ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./components/answer-home-chart.vue.cjs"), f = require("./components/answer-interaction-data.vue.cjs"), p = require("./components/answer-auto-chart.vue.cjs"), g = require("../../src/assets/chat-embed/robot.gif.cjs"), y = require("./sidebar-item.vue.cjs"), k = require("uuid"), w = require("./util/text-file-util.cjs"), S = require("./util/chat-embed-util.cjs"), b = require("./util/mcp-utils.cjs"), E = require("vue-router"), A = { key: 0 }, C = ["src"], N = { class: "chat-content" }, T = { style: { display: "flex", "flex-direction": "row" } }, x = { class: "chat-embed__main_content" }, M = ["href", "title"], q = ["href", "target"], _ = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, V = { key: 1, style: { "margin-top": "5px", width: "100%" } }, D = ((t2) => (e.pushScopeId("data-v-e84e6e12"), t2 = t2(), e.popScopeId(), t2))(() => e.createElementVNode("div", { class: "content-container-header" }, "引用文件", -1)), B = ["onClick"], P = { style: { display: "none" } }, I = e.defineComponent({ __name: "index", setup(I2) {
5
5
  var _a, _b, _c;
6
6
  const j = function() {
7
7
  try {
@@ -11,7 +11,7 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
11
11
  return console.error("获取customSystem参数失败"), null;
12
12
  }
13
13
  }();
14
- const O = e.ref(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: U, cancel: F, data: L, error: R, isLoading: $ } = a.useXStream(), { t: H } = t.useI18n(), z = e.ref(), J = e.ref(true), G = e.ref([]), W = e.ref({}), K = e.ref(false), X = e.ref(r.AI_MODELS.RAGFLOW), Q = e.ref({}), Y = {}, Z = e.ref(true), ee = e.ref(null), te = e.ref(false), ae = e.ref(false), ne = e.ref(0), oe = e.ref(""), le = e.ref("500px"), re = e.ref(250), ie = e.ref("https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"), ue = e.ref(false), se = e.ref({}), ce = e.ref(), de = e.ref(), ve = e.ref(), me = e.ref(), he = e.ref(), fe = e.ref(false);
14
+ const O = e.ref(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: U, cancel: L, data: F, error: R, isLoading: $ } = a.useXStream(), { t: H } = t.useI18n(), z = e.ref(), J = e.ref(true), G = e.ref([]), W = e.ref({}), K = e.ref(false), X = e.ref(r.AI_MODELS.RAGFLOW), Q = e.ref({}), Y = {}, Z = e.ref(true), ee = e.ref(null), te = e.ref(false), ae = e.ref(false), ne = e.ref(0), oe = e.ref(""), le = e.ref("500px"), re = e.ref(250), ie = e.ref("https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"), ue = e.ref(false), se = e.ref({}), ce = e.ref(), de = e.ref(), ve = e.ref(), me = e.ref(), he = e.ref(), fe = e.ref(false);
15
15
  let pe = null;
16
16
  const ge = e.ref(null), ye = document.documentElement.clientWidth - 100, ke = document.documentElement.clientHeight - 100, { x: we, y: Se, style: be } = n.useDraggable(z, { initialValue: { x: ye, y: ke }, preventDefault: true, onStart() {
17
17
  J.value = true;
@@ -58,14 +58,14 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
58
58
  }), e.onUnmounted(() => {
59
59
  window.removeEventListener("resize", Ee), function() {
60
60
  pe && (pe.abort(), pe = null);
61
- F(), fe.value = false, K.value = false;
61
+ L(), fe.value = false, K.value = false;
62
62
  }();
63
63
  });
64
64
  const xe = e.computed(() => {
65
65
  var _a2, _b2, _c2;
66
- if (!fe.value || !L.value.length)
66
+ if (!fe.value || !F.value.length)
67
67
  return "";
68
- const e2 = L.value[L.value.length - 1];
68
+ const e2 = F.value[F.value.length - 1];
69
69
  try {
70
70
  const t2 = JSON.parse(e2.data);
71
71
  if (t2.isChunk)
@@ -94,7 +94,7 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
94
94
  a2 && (W.value.thinkingContent = a2), n2 && (e2.isChunk ? W.value.content += n2 : W.value.content = n2);
95
95
  }
96
96
  function qe() {
97
- if (K.value = false, pe && (pe.abort(), pe = null), fe.value && (F(), fe.value = false, G.value.length > 0)) {
97
+ if (K.value = false, pe && (pe.abort(), pe = null), fe.value && (L(), fe.value = false, G.value.length > 0)) {
98
98
  const e2 = G.value[G.value.length - 1];
99
99
  e2 && "ai" === e2.role && (e2.thinkingStatus = r.MESSAGE_STATUS.END, e2.content || (e2.content = "回答已取消"));
100
100
  }
@@ -118,10 +118,10 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
118
118
  !function(e3) {
119
119
  if (!e3)
120
120
  return;
121
- L.value = [], G.value.push(l.getMessageTemplate("user", e3, true, false)), K.value = true, Q.value[X.value] ? Le(e3) : async function(e4) {
121
+ F.value = [], G.value.push(l.getMessageTemplate("user", e3, true, false)), K.value = true, Q.value[X.value] ? Fe(e3) : async function(e4) {
122
122
  try {
123
123
  const t2 = await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat", { question: e4 });
124
- Q.value[X.value] = t2.session_id, Le(e4);
124
+ Q.value[X.value] = t2.session_id, Fe(e4);
125
125
  } catch (e5) {
126
126
  console.error("Failed to create session:", e5), Ce();
127
127
  }
@@ -146,7 +146,7 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
146
146
  }(e2);
147
147
  break;
148
148
  case r.AI_MODELS.DEEPSEEK:
149
- Fe(e2);
149
+ Le(e2);
150
150
  break;
151
151
  case r.AI_MODELS.INTERACTION:
152
152
  !function(e3) {
@@ -184,11 +184,11 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
184
184
  }
185
185
  }
186
186
  function Be(e2) {
187
- Fe({ question: e2.question, additionalData: e2.additionalData, additionalDataLabel: e2.additionalDataLabel, menuName: e2.menuName, menuCode: e2.menuCode, aiModel: X.value });
187
+ Le({ question: e2.question, additionalData: e2.additionalData, additionalDataLabel: e2.additionalDataLabel, menuName: e2.menuName, menuCode: e2.menuCode, aiModel: X.value });
188
188
  }
189
189
  function Pe(e2) {
190
190
  if (e2.content) {
191
- Fe({ question: e2.content, aiModel: X.value });
191
+ Le({ question: e2.content, aiModel: X.value });
192
192
  }
193
193
  }
194
194
  function Ie() {
@@ -215,7 +215,7 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
215
215
  console.error("下载失败:", e3);
216
216
  }
217
217
  }
218
- async function Fe(e2) {
218
+ async function Le(e2) {
219
219
  if (e2.question)
220
220
  try {
221
221
  const t2 = l.createUserMessage(e2);
@@ -230,7 +230,7 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
230
230
  console.error("DeepSeek error:", e3), Ce();
231
231
  }
232
232
  }
233
- async function Le(e2) {
233
+ async function Fe(e2) {
234
234
  try {
235
235
  fe.value = true, W.value = l.createAiMessage({ question: e2 }, true), W.value.messageType = "realtime", G.value.push(W.value), pe = new AbortController();
236
236
  const t2 = o.getToken(), a2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat-stream", { method: "POST", headers: { "Content-Type": "text/event-stream", authorization: t2 }, body: JSON.stringify({ question: e2, stream: true, systemCode: j, session_id: Q.value[X.value] }), signal: pe.signal });
@@ -275,7 +275,7 @@ const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./co
275
275
  ee.value.value = e2;
276
276
  }), dialogFullScreen: ae.value, aiModel: X.value }, null, 8, ["style", "dialogFullScreen", "aiModel"]), e.createElementVNode("div", N, [e.createVNode(d, { aiAvatar: ie.value, aiModel: X.value, chatSessionId: Q.value, dialogFullScreen: ae.value, aiHistory: ee.value, onExpandDialog: _e, onShowChatDialog: Ne, onNewChatSession: Ie }, null, 8, ["aiAvatar", "aiModel", "chatSessionId", "dialogFullScreen", "aiHistory"]), e.createElementVNode("div", T, [(e.openBlock(), e.createElementBlock("div", { ref_key: "talkMainRef", ref: me, class: "chat-embed__main", key: ne.value }, [e.createElementVNode("div", x, [e.createVNode(e.unref(a.BubbleList), { ref_key: "bubbleListRef", ref: ce, list: G.value, "max-height": le.value, "is-fog": true }, { avatar: e.withCtx(({ item: e2 }) => []), content: e.withCtx(({ item: t3 }) => {
277
277
  var _a2;
278
- return [t3.isRecommend || null === t3.thinkingContent ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, ["failed" !== t3.messageStatus ? (e.openBlock(), e.createBlock(e.unref(a.Thinking), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: t3.showThinkingContent, "onUpdate:modelValue": (e2) => t3.showThinkingContent = e2, status: t3.thinkingStatus, "auto-collapse": "", content: t3.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : e.createCommentVNode("", true)], 64)), t3.link ? (e.openBlock(), e.createElementBlock("a", { key: 1, href: t3.link, title: t3.linkTitle, target: "blank" }, e.toDisplayString(t3.content), 9, M)) : t3.content ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createElementVNode("div", { class: e.normalizeClass(["ai" === t3.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== t3.role || t3.isRecommend ? "user" === t3.role ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(t3.content) + " ", 1), ((_a2 = t3.additionalData) == null ? void 0 : _a2.length) > 0 ? (e.openBlock(), e.createBlock(u, { key: 0, item: t3, onViewJson: Oe, onDownloadJson: Ue }, null, 8, ["item"])) : e.createCommentVNode("", true)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createTextVNode(e.toDisplayString(t3.content), 1)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [t3.messageType && "history" !== t3.messageType ? (e.openBlock(), e.createBlock(e.unref(a.Typewriter), { key: 1, allowHtml: "", content: t3.content, typing: true, "is-markdown": true, "is-fog": "" }, null, 8, ["content"])) : (e.openBlock(), e.createBlock(e.unref(a.XMarkdown), { key: 0, markdown: t3.content, allowHtml: true, content: t3.content, typing: { interval: 10 }, "is-markdown": true }, { "amb-ai-tip": e.withCtx(({ ...a2 }) => [e.createVNode(c, { item: t3, itemProps: a2, onClickDocAgg: Re }, null, 8, ["item", "itemProps"])]), "amb-alink": e.withCtx(({ ...t4 }) => [e.createElementVNode("a", { href: t4.href, target: t4.target }, e.toDisplayString(t4.text), 9, q)]), "amb-home-chart": e.withCtx(({ ...t4 }) => [e.createVNode(h, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-interaction-data": e.withCtx(({ ...t4 }) => [e.createVNode(f, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-auto-chart": e.withCtx(({ ...t4 }) => [e.createVNode(p, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), _: 2 }, 1032, ["markdown", "content"]))], 64)), e.createElementVNode("div", _, [e.createElementVNode("span", null, e.toDisplayString(t3.sendTime), 1)])], 2), t3.recommendations && t3.recommendations.length > 0 ? (e.openBlock(), e.createBlock(i, { key: 0, item: t3, onClickRecommendation: Pe }, null, 8, ["item"])) : e.createCommentVNode("", true), t3.docAggs && t3.docAggs.length > 0 ? (e.openBlock(), e.createElementBlock("div", V, [D, (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.docAggs, (t4, a2) => (e.openBlock(), e.createElementBlock("div", { onClick: (e2) => Re(t4), class: "doc-agg-item" }, e.toDisplayString(t4.doc_name), 9, B))), 256))])) : e.createCommentVNode("", true)], 64)) : e.createCommentVNode("", true)];
278
+ return [t3.isRecommend || null === t3.thinkingContent ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, ["failed" !== t3.messageStatus ? (e.openBlock(), e.createBlock(e.unref(a.Thinking), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: t3.showThinkingContent, "onUpdate:modelValue": (e2) => t3.showThinkingContent = e2, status: t3.thinkingStatus, "auto-collapse": "", content: t3.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : e.createCommentVNode("", true)], 64)), t3.link ? (e.openBlock(), e.createElementBlock("a", { key: 1, href: t3.link, title: t3.linkTitle, target: "blank" }, e.toDisplayString(t3.content), 9, M)) : t3.content ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createElementVNode("div", { class: e.normalizeClass(["ai" === t3.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== t3.role || t3.isRecommend ? "user" === t3.role ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(t3.content) + " ", 1), ((_a2 = t3.additionalData) == null ? void 0 : _a2.length) > 0 && t3.additionalDataLabel ? (e.openBlock(), e.createBlock(u, { key: 0, item: t3, onViewJson: Oe, onDownloadJson: Ue }, null, 8, ["item"])) : e.createCommentVNode("", true)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createTextVNode(e.toDisplayString(t3.content), 1)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [t3.messageType && "history" !== t3.messageType ? (e.openBlock(), e.createBlock(e.unref(a.Typewriter), { key: 1, allowHtml: "", content: t3.content, typing: true, "is-markdown": true, "is-fog": "" }, null, 8, ["content"])) : (e.openBlock(), e.createBlock(e.unref(a.XMarkdown), { key: 0, markdown: t3.content, allowHtml: true, content: t3.content, typing: { interval: 10 }, "is-markdown": true }, { "amb-ai-tip": e.withCtx(({ ...a2 }) => [e.createVNode(c, { item: t3, itemProps: a2, onClickDocAgg: Re }, null, 8, ["item", "itemProps"])]), "amb-alink": e.withCtx(({ ...t4 }) => [e.createElementVNode("a", { href: t4.href, target: t4.target }, e.toDisplayString(t4.text), 9, q)]), "amb-home-chart": e.withCtx(({ ...t4 }) => [e.createVNode(h, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-interaction-data": e.withCtx(({ ...t4 }) => [e.createVNode(f, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-auto-chart": e.withCtx(({ ...t4 }) => [e.createVNode(p, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), _: 2 }, 1032, ["markdown", "content"]))], 64)), e.createElementVNode("div", _, [e.createElementVNode("span", null, e.toDisplayString(t3.sendTime), 1)])], 2), t3.recommendations && t3.recommendations.length > 0 ? (e.openBlock(), e.createBlock(i, { key: 0, item: t3, onClickRecommendation: Pe }, null, 8, ["item"])) : e.createCommentVNode("", true), t3.docAggs && t3.docAggs.length > 0 ? (e.openBlock(), e.createElementBlock("div", V, [D, (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.docAggs, (t4, a2) => (e.openBlock(), e.createElementBlock("div", { onClick: (e2) => Re(t4), class: "doc-agg-item" }, e.toDisplayString(t4.doc_name), 9, B))), 256))])) : e.createCommentVNode("", true)], 64)) : e.createCommentVNode("", true)];
279
279
  }), footer: e.withCtx(({ item: t3 }) => [e.createVNode(s, { item: t3, onRegenerate: Be }, null, 8, ["item"])]), _: 1 }, 8, ["list", "max-height"]), e.createElementVNode("div", P, e.toDisplayString(xe.value), 1)]), e.createElementVNode("div", { ref_key: "talkInputRef", ref: de, class: "chat-embed__input_container" }, [e.createVNode(v, { loading: K.value, ref_key: "chatSenderRef", ref: ge, onSubmitQuestion: De, onCommandAnswer: $e, onHandleCancel: qe, onViewJson: Oe, onChangeAiModel: je }, null, 8, ["loading"])], 512)]))])])], 2), [[e.vShow, te.value]])]), _: 1 }), e.createVNode(e.unref(m), { modelValue: ue.value, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => ue.value = e2), "json-object": se.value, "append-to-body": true, title: "预览数据" }, null, 8, ["modelValue", "json-object"])])) : e.createCommentVNode("", true);
280
280
  } });
281
281
  module.exports = I;