@fv-ui/ai-chat 1.9.2 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -4
- package/dist/index.d.ts +197 -110
- package/dist/style.css +1 -1
- package/es/index.mjs +1160 -1176
- package/lib/index.js +1161 -1177
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -33241,7 +33241,9 @@
|
|
|
33241
33241
|
welcome: {
|
|
33242
33242
|
greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
|
|
33243
33243
|
greetingName: "Gizmo",
|
|
33244
|
-
description: "\u6211\u53EF\u4EE5\u5E2E\u4F60\u67E5\u8BE2\u6570\u636E\u3001\u5206\u6790\u95EE\u9898\u3001\u751F\u6210\u62A5\u8868\u3001\u4EE5\u53CA\u6267\u884C\u7CFB\u7EDF\u64CD\u4F5C\uFF0C\u8BA9\u751F\u4EA7\u7BA1\u7406\u66F4\u9AD8\u6548\u3002"
|
|
33244
|
+
description: "\u6211\u53EF\u4EE5\u5E2E\u4F60\u67E5\u8BE2\u6570\u636E\u3001\u5206\u6790\u95EE\u9898\u3001\u751F\u6210\u62A5\u8868\u3001\u4EE5\u53CA\u6267\u884C\u7CFB\u7EDF\u64CD\u4F5C\uFF0C\u8BA9\u751F\u4EA7\u7BA1\u7406\u66F4\u9AD8\u6548\u3002",
|
|
33245
|
+
/** 空态建议区「换一批」按钮默认文案 */
|
|
33246
|
+
refreshSuggestions: "\u6362\u4E00\u6279"
|
|
33245
33247
|
},
|
|
33246
33248
|
sender: {
|
|
33247
33249
|
clear: "\u6E05\u7A7A",
|
|
@@ -33437,7 +33439,9 @@
|
|
|
33437
33439
|
welcome: {
|
|
33438
33440
|
greetingPrefix: "Hello, I am ",
|
|
33439
33441
|
greetingName: "Gizmo",
|
|
33440
|
-
description: "I can help you query data, analyze problems, generate reports, and perform system operations to make production management more efficient."
|
|
33442
|
+
description: "I can help you query data, analyze problems, generate reports, and perform system operations to make production management more efficient.",
|
|
33443
|
+
/** 空态建议区「换一批」按钮默认文案 */
|
|
33444
|
+
refreshSuggestions: "Refresh suggestions"
|
|
33441
33445
|
},
|
|
33442
33446
|
sender: {
|
|
33443
33447
|
clear: "Clear",
|
|
@@ -33626,7 +33630,9 @@
|
|
|
33626
33630
|
welcome: {
|
|
33627
33631
|
greetingPrefix: "\uC548\uB155\uD558\uC138\uC694, \uC800\uB294 ",
|
|
33628
33632
|
greetingName: "Gizmo",
|
|
33629
|
-
description: "\uB370\uC774\uD130 \uC870\uD68C, \uBB38\uC81C \uBD84\uC11D, \uBCF4\uACE0\uC11C \uC0DD\uC131, \uC2DC\uC2A4\uD15C \uC791\uC5C5 \uC2E4\uD589\uC744 \uB3C4\uC640\uB4DC\uB824 \uC0DD\uC0B0 \uAD00\uB9AC\uB97C \uB354 \uD6A8\uC728\uC801\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC694."
|
|
33633
|
+
description: "\uB370\uC774\uD130 \uC870\uD68C, \uBB38\uC81C \uBD84\uC11D, \uBCF4\uACE0\uC11C \uC0DD\uC131, \uC2DC\uC2A4\uD15C \uC791\uC5C5 \uC2E4\uD589\uC744 \uB3C4\uC640\uB4DC\uB824 \uC0DD\uC0B0 \uAD00\uB9AC\uB97C \uB354 \uD6A8\uC728\uC801\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC694.",
|
|
33634
|
+
/** 空态建议区「换一批」按钮默认文案 */
|
|
33635
|
+
refreshSuggestions: "\uB2E4\uB978 \uCD94\uCC9C \uBCF4\uAE30"
|
|
33630
33636
|
},
|
|
33631
33637
|
sender: {
|
|
33632
33638
|
clear: "\uC9C0\uC6B0\uAE30",
|
|
@@ -33825,7 +33831,9 @@
|
|
|
33825
33831
|
welcome: {
|
|
33826
33832
|
greetingPrefix: "Xin ch\xE0o, t\xF4i l\xE0 ",
|
|
33827
33833
|
greetingName: "Gizmo",
|
|
33828
|
-
description: "T\xF4i c\xF3 th\u1EC3 gi\xFAp b\u1EA1n truy v\u1EA5n d\u1EEF li\u1EC7u, ph\xE2n t\xEDch v\u1EA5n \u0111\u1EC1, t\u1EA1o b\xE1o c\xE1o v\xE0 thao t\xE1c h\u1EC7 th\u1ED1ng, gi\xFAp vi\u1EC7c qu\u1EA3n l\xFD s\u1EA3n xu\u1EA5t hi\u1EC7u qu\u1EA3 h\u01A1n."
|
|
33834
|
+
description: "T\xF4i c\xF3 th\u1EC3 gi\xFAp b\u1EA1n truy v\u1EA5n d\u1EEF li\u1EC7u, ph\xE2n t\xEDch v\u1EA5n \u0111\u1EC1, t\u1EA1o b\xE1o c\xE1o v\xE0 thao t\xE1c h\u1EC7 th\u1ED1ng, gi\xFAp vi\u1EC7c qu\u1EA3n l\xFD s\u1EA3n xu\u1EA5t hi\u1EC7u qu\u1EA3 h\u01A1n.",
|
|
33835
|
+
/** 空态建议区「换一批」按钮默认文案 */
|
|
33836
|
+
refreshSuggestions: "\u0110\u1ED5i g\u1EE3i \xFD kh\xE1c"
|
|
33829
33837
|
},
|
|
33830
33838
|
sender: {
|
|
33831
33839
|
clear: "X\xF3a h\u1EBFt",
|
|
@@ -34024,7 +34032,9 @@
|
|
|
34024
34032
|
welcome: {
|
|
34025
34033
|
greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
|
|
34026
34034
|
greetingName: "Gizmo",
|
|
34027
|
-
description: "\u6211\u53EF\u4EE5\u5E6B\u4F60\u67E5\u8A62\u8CC7\u6599\u3001\u5206\u6790\u554F\u984C\u3001\u7522\u751F\u5831\u8868\uFF0C\u4EE5\u53CA\u57F7\u884C\u7CFB\u7D71\u64CD\u4F5C\uFF0C\u4EE4\u751F\u7522\u7BA1\u7406\u66F4\u6709\u6548\u7387\u3002"
|
|
34035
|
+
description: "\u6211\u53EF\u4EE5\u5E6B\u4F60\u67E5\u8A62\u8CC7\u6599\u3001\u5206\u6790\u554F\u984C\u3001\u7522\u751F\u5831\u8868\uFF0C\u4EE5\u53CA\u57F7\u884C\u7CFB\u7D71\u64CD\u4F5C\uFF0C\u4EE4\u751F\u7522\u7BA1\u7406\u66F4\u6709\u6548\u7387\u3002",
|
|
34036
|
+
/** 空态建议区「换一批」按钮默认文案 */
|
|
34037
|
+
refreshSuggestions: "\u63DB\u4E00\u6279"
|
|
34028
34038
|
},
|
|
34029
34039
|
sender: {
|
|
34030
34040
|
clear: "\u6E05\u7A7A",
|
|
@@ -34336,8 +34346,6 @@
|
|
|
34336
34346
|
onMouseover: onRootOver,
|
|
34337
34347
|
onMouseleave: hideTip
|
|
34338
34348
|
}, null, 40, _hoisted_1$o),
|
|
34339
|
-
vue.createCommentVNode(" \u8868\u683C\u5DE5\u5177\u680F tooltip \u5355\u4F8B\u6D6E\u5C42:body \u7EA7 Teleport(fixed \u5B9A\u4F4D\u4E0D\u53D7\u6EDA\u52A8\u88C1\u526A,\u4E14\u5728\r\n v-html \u5BB9\u5668\u5916,\u4E0D\u53C2\u4E0E markdown \u6E32\u67D3/\u6D88\u6BD2)\u3002\u6CE8\u610F:\u4E0D\u8981\u5728 Teleport \u6807\u7B7E\u4F53\u5185\r\n \u5199\u6A21\u677F\u6CE8\u91CA\u2014\u2014\u672C\u5E93\u6784\u5EFA\u94FE(SFC comments \u4FDD\u7559)\u4F1A\u628A\u5B83\u7F16\u8BD1\u6210 createCommentVNode\r\n \u8FDB Teleport children,prod \u5757\u4F18\u5316\u4E0B unmount \u89E6\u53D1 vuejs/core#10747\r\n (el \u4E3A null \u8BFB parentNode \u5D29\u6E83);\u6CE8\u91CA\u4E00\u5F8B\u5199\u5728 Teleport \u6807\u7B7E\u5916 "),
|
|
34340
|
-
vue.createCommentVNode(" tooltip div \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
|
|
34341
34349
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
34342
34350
|
vue.createElementVNode(
|
|
34343
34351
|
"div",
|
|
@@ -34463,7 +34471,6 @@
|
|
|
34463
34471
|
class: vue.normalizeClass(["fv-typewriter", { "is-typing": isTyping.value, "is-fog": !!fog.value }])
|
|
34464
34472
|
},
|
|
34465
34473
|
[
|
|
34466
|
-
vue.createCommentVNode(" markdown \u6A21\u5F0F:suffix \u4E0D\u8FFD\u52A0(element-plus-x \u884C\u4E3A),isTyping \u900F\u4F20\u7ED9 Markdown \u4F5C\u6837\u5F0F\u94A9\u5B50 "),
|
|
34467
34474
|
__props.isMarkdown ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
34468
34475
|
key: 0,
|
|
34469
34476
|
content: renderedContent.value,
|
|
@@ -34484,7 +34491,6 @@
|
|
|
34484
34491
|
/* TEXT */
|
|
34485
34492
|
)) : vue.createCommentVNode("v-if", true)
|
|
34486
34493
|
])),
|
|
34487
|
-
vue.createCommentVNode(" \u96FE\u5316:\u6253\u5B57\u4E2D\u5728\u5185\u5BB9\u5C3E\u90E8\u53E0\u4E00\u5C42\u5411\u80CC\u666F\u8272\u6E10\u9690\u7684\u906E\u7F69 "),
|
|
34488
34494
|
fog.value && isTyping.value ? (vue.openBlock(), vue.createElementBlock(
|
|
34489
34495
|
"span",
|
|
34490
34496
|
{
|
|
@@ -34514,7 +34520,7 @@
|
|
|
34514
34520
|
key: 0,
|
|
34515
34521
|
class: "fv-bubble-header"
|
|
34516
34522
|
};
|
|
34517
|
-
const _hoisted_4$
|
|
34523
|
+
const _hoisted_4$g = {
|
|
34518
34524
|
key: 0,
|
|
34519
34525
|
class: "fv-bubble-loading"
|
|
34520
34526
|
};
|
|
@@ -34592,7 +34598,6 @@
|
|
|
34592
34598
|
style: vue.normalizeStyle({ "--fv-bubble-avatar-gap": __props.avatarGap, "--fv-bubble-avatar-size": __props.avatarSize || void 0 })
|
|
34593
34599
|
},
|
|
34594
34600
|
[
|
|
34595
|
-
vue.createCommentVNode(" \u5934\u50CF:placement \u540C\u7F18\u6392\u5217(end \u7ECF row-reverse \u7FFB\u8F6C\u5230\u53F3\u4FA7),#avatar \u63D2\u69FD\u4F18\u5148 "),
|
|
34596
34601
|
_ctx.$slots.avatar || __props.avatar || __props.avatarIcon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
|
|
34597
34602
|
_ctx.$slots.avatar ? vue.renderSlot(_ctx.$slots, "avatar", {}, void 0, void 0, 0) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAvatar), {
|
|
34598
34603
|
key: 1,
|
|
@@ -34616,8 +34621,7 @@
|
|
|
34616
34621
|
class: vue.normalizeClass(["fv-bubble-content", { "no-padding": __props.noPadding, "no-style": __props.noStyle }])
|
|
34617
34622
|
},
|
|
34618
34623
|
[
|
|
34619
|
-
|
|
34620
|
-
__props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, [
|
|
34624
|
+
__props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$g, [
|
|
34621
34625
|
_ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", {}, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
|
|
34622
34626
|
vue.Fragment,
|
|
34623
34627
|
{ key: 1 },
|
|
@@ -34637,35 +34641,18 @@
|
|
|
34637
34641
|
64
|
|
34638
34642
|
/* STABLE_FRAGMENT */
|
|
34639
34643
|
))
|
|
34640
|
-
])) : _ctx.$slots.content ? (vue.openBlock(), vue.
|
|
34641
|
-
|
|
34642
|
-
|
|
34643
|
-
|
|
34644
|
-
|
|
34645
|
-
|
|
34646
|
-
|
|
34647
|
-
|
|
34648
|
-
|
|
34649
|
-
|
|
34650
|
-
|
|
34651
|
-
|
|
34652
|
-
[
|
|
34653
|
-
vue.createCommentVNode(" typing \u900F\u4F20 Typewriter;\u975E typing:isMarkdown \u2192 Markdown,\u5426\u5219\u7EAF\u6587\u672C "),
|
|
34654
|
-
vue.createVNode(_sfc_main$n, {
|
|
34655
|
-
ref_key: "twRef",
|
|
34656
|
-
ref: twRef,
|
|
34657
|
-
content: __props.content,
|
|
34658
|
-
"is-markdown": __props.isMarkdown,
|
|
34659
|
-
"is-fog": __props.isFog,
|
|
34660
|
-
typing: __props.typing,
|
|
34661
|
-
onStart,
|
|
34662
|
-
onWriting,
|
|
34663
|
-
onFinish
|
|
34664
|
-
}, null, 8, ["content", "is-markdown", "is-fog", "typing"])
|
|
34665
|
-
],
|
|
34666
|
-
2112
|
|
34667
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
34668
|
-
)) : __props.isMarkdown ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
34644
|
+
])) : _ctx.$slots.content ? vue.renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1) : __props.typing ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
|
|
34645
|
+
key: 2,
|
|
34646
|
+
ref_key: "twRef",
|
|
34647
|
+
ref: twRef,
|
|
34648
|
+
content: __props.content,
|
|
34649
|
+
"is-markdown": __props.isMarkdown,
|
|
34650
|
+
"is-fog": __props.isFog,
|
|
34651
|
+
typing: __props.typing,
|
|
34652
|
+
onStart,
|
|
34653
|
+
onWriting,
|
|
34654
|
+
onFinish
|
|
34655
|
+
}, null, 8, ["content", "is-markdown", "is-fog", "typing"])) : __props.isMarkdown ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
34669
34656
|
key: 3,
|
|
34670
34657
|
content: __props.content
|
|
34671
34658
|
}, null, 8, ["content"])) : (vue.openBlock(), vue.createElementBlock(
|
|
@@ -34878,7 +34865,6 @@
|
|
|
34878
34865
|
38
|
|
34879
34866
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
34880
34867
|
),
|
|
34881
|
-
vue.createCommentVNode(" \u56DE\u5E95\u6309\u94AE:\u8DDD\u5E95\u8D85\u8FC7 backButtonThreshold \u663E\u793A "),
|
|
34882
34868
|
vue.createVNode(vue.Transition, { name: "fv-bubble-list-fade" }, {
|
|
34883
34869
|
default: vue.withCtx(() => [
|
|
34884
34870
|
__props.showBackButton && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
@@ -35059,7 +35045,7 @@
|
|
|
35059
35045
|
key: 0,
|
|
35060
35046
|
class: "fv-sender-body-top"
|
|
35061
35047
|
};
|
|
35062
|
-
const _hoisted_4$
|
|
35048
|
+
const _hoisted_4$f = { class: "fv-sender-row" };
|
|
35063
35049
|
const _hoisted_5$c = {
|
|
35064
35050
|
key: 0,
|
|
35065
35051
|
class: "fv-sender-prefix"
|
|
@@ -35069,7 +35055,7 @@
|
|
|
35069
35055
|
"aria-hidden": "true"
|
|
35070
35056
|
};
|
|
35071
35057
|
const _hoisted_7$9 = { class: "fv-sender-recording-duration" };
|
|
35072
|
-
const _hoisted_8$
|
|
35058
|
+
const _hoisted_8$8 = ["value", "placeholder", "disabled", "readonly"];
|
|
35073
35059
|
const _hoisted_9$5 = {
|
|
35074
35060
|
key: 3,
|
|
35075
35061
|
class: "fv-sender-actions"
|
|
@@ -35451,22 +35437,17 @@
|
|
|
35451
35437
|
class: vue.normalizeClass(["fv-sender", [`variant-${__props.variant}`, { "is-disabled": __props.disabled, "is-loading": __props.loading, "is-focused": isFocused.value, "has-shadow": __props.shadow }]])
|
|
35452
35438
|
},
|
|
35453
35439
|
[
|
|
35454
|
-
vue.createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
|
|
35455
35440
|
headerVisible.value && _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
|
|
35456
35441
|
vue.renderSlot(_ctx.$slots, "header")
|
|
35457
35442
|
])) : vue.createCommentVNode("v-if", true),
|
|
35458
35443
|
vue.createElementVNode("div", _hoisted_2$h, [
|
|
35459
|
-
vue.createCommentVNode(" body \u9876\u90E8\u533A:\u5728\u8F93\u5165\u6846\u4E0A\u65B9\u3001body \u8FB9\u6846\u5185(\u5982\u9644\u4EF6\u5217\u8868) "),
|
|
35460
35444
|
_ctx.$slots["body-top"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$h, [
|
|
35461
35445
|
vue.renderSlot(_ctx.$slots, "body-top")
|
|
35462
35446
|
])) : vue.createCommentVNode("v-if", true),
|
|
35463
|
-
vue.
|
|
35464
|
-
vue.createElementVNode("div", _hoisted_4$e, [
|
|
35465
|
-
vue.createCommentVNode(" \u524D\u7F00\u533A "),
|
|
35447
|
+
vue.createElementVNode("div", _hoisted_4$f, [
|
|
35466
35448
|
_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$c, [
|
|
35467
35449
|
vue.renderSlot(_ctx.$slots, "prefix")
|
|
35468
35450
|
])) : vue.createCommentVNode("v-if", true),
|
|
35469
|
-
vue.createCommentVNode(" \u8BED\u97F3\u5F55\u97F3\u4E2D:\u8F93\u5165\u533A\u539F\u4F4D\u66FF\u6362\u4E3A\u5F55\u97F3\u6761(\u53D6\u6D88/\u6CE2\u5F62+\u65F6\u957F/\u786E\u8BA4);Esc \u53D6\u6D88 "),
|
|
35470
35451
|
vue.unref(isRecording) ? (vue.openBlock(), vue.createElementBlock(
|
|
35471
35452
|
"div",
|
|
35472
35453
|
{
|
|
@@ -35568,8 +35549,7 @@
|
|
|
35568
35549
|
onPaste,
|
|
35569
35550
|
onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
|
|
35570
35551
|
onBlur: onTextareaBlur
|
|
35571
|
-
}, null, 40, _hoisted_8$
|
|
35572
|
-
vue.createCommentVNode(" \u6307\u4EE4\u5F39\u6846:\u5185\u7F6E el-popover,\u5B9A\u4F4D\u6309 triggerPopover* \u7CFB\u5217 "),
|
|
35552
|
+
}, null, 40, _hoisted_8$8),
|
|
35573
35553
|
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
35574
35554
|
visible: triggerVisible.value && __props.triggerStrings.length > 0,
|
|
35575
35555
|
placement: __props.triggerPopoverPlacement,
|
|
@@ -35600,7 +35580,6 @@
|
|
|
35600
35580
|
4
|
|
35601
35581
|
/* STYLE */
|
|
35602
35582
|
)),
|
|
35603
|
-
vue.createCommentVNode(" \u64CD\u4F5C\u533A:#action-list \u5B58\u5728\u65F6\u5168\u81EA\u5B9A\u4E49,\u9690\u85CF\u5185\u7F6E\u6309\u94AE;#action-left \u7F6E\u4E8E\u64CD\u4F5C\u680F\u5DE6\u4FA7(\u4E0E\u63D0\u4EA4\u6309\u94AE\u540C\u884C) "),
|
|
35604
35583
|
hasActionListSlot.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$5, [
|
|
35605
35584
|
vue.renderSlot(_ctx.$slots, "action-list")
|
|
35606
35585
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$4, [
|
|
@@ -35647,7 +35626,6 @@
|
|
|
35647
35626
|
_: 1
|
|
35648
35627
|
/* STABLE */
|
|
35649
35628
|
}, 8, ["disabled", "aria-label"])) : vue.createCommentVNode("v-if", true),
|
|
35650
|
-
vue.createCommentVNode(" loading \u2192 \u505C\u6B62\u6309\u94AE:SVG \u5149\u5E26\u6CBF\u8FB9\u6846\u5300\u901F\u6D41\u8F6C,\u65B9/\u5706\u6309\u94AE\u5747\u9002\u7528 "),
|
|
35651
35629
|
__props.loading ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
35652
35630
|
key: 3,
|
|
35653
35631
|
class: vue.normalizeClass(["fv-sender-stop", { "is-guarded": stopGuarded.value }]),
|
|
@@ -35664,7 +35642,6 @@
|
|
|
35664
35642
|
_: 1
|
|
35665
35643
|
/* STABLE */
|
|
35666
35644
|
}),
|
|
35667
|
-
vue.createCommentVNode('\r\n \u6CBF\u8FB9\u6846\u6D41\u8F6C\u7684\u6E10\u53D8\u5149\u5E26(\u8682\u8681\u7EBF\u539F\u7406,pathLength=100 \u5F52\u4E00\u5468\u957F,dashoffset \u5300\u901F\u5E73\u79FB)\u3002\r\n \u6E10\u53D8\u96BE\u70B9:linearGradient \u6CBF\u76F4\u7EBF\u8DEF\u5F84\u5B9A\u4E49,\u65E0\u6CD5\u6CBF\u95ED\u5408\u6298\u7EBF\u5468\u957F\u6E10\u53D8 \u2014\u2014\r\n \u6545\u7528 6 \u5C42\u957F\u77ED/\u900F\u660E\u5EA6\u53CC\u9012\u51CF\u7684\u540C\u76F8\u4F4D dash \u53E0\u52A0,\u79BB\u6563\u9636\u68AF\u903C\u8FD1\u8FDE\u7EED\u6E10\u53D8:\r\n \u6BCF\u5C42\u957F\u5EA6\u4F9D\u6B21\u9012\u589E(\u5E26\u5934\u6700\u77ED\u6700\u5B9E,\u5E26\u5C3E\u6700\u957F\u6700\u865A),\u900F\u660E\u5EA6\u4F9D\u6B21\u9012\u51CF,\r\n \u53E0\u52A0\u540E\u7684\u900F\u660E\u5EA6\u5256\u9762\u4E3A\u591A\u7EA7\u53F0\u9636 \u2192 \u8FD0\u52A8\u4E2D\u8BFB\u4F5C"\u5934\u4EAE\u5C3E\u9690"\u7684\u8FDE\u7EED\u62D6\u5F71\u3002\r\n \u5C42\u6570\u7531 RING_LAYERS \u5E38\u91CF\u9A71\u52A8,\u900F\u660E\u5EA6\u63D2\u503C\u5728 CSS \u91CC\u6309 --ring-alpha \u53D8\u91CF\u7B97\u3002\r\n '),
|
|
35668
35645
|
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_12$4, [
|
|
35669
35646
|
(vue.openBlock(true), vue.createElementBlock(
|
|
35670
35647
|
vue.Fragment,
|
|
@@ -35707,10 +35684,8 @@
|
|
|
35707
35684
|
/* STABLE */
|
|
35708
35685
|
}, 8, ["circle", "disabled", "aria-label"]))
|
|
35709
35686
|
]))
|
|
35710
|
-
])
|
|
35711
|
-
vue.createCommentVNode(" /fv-sender-row ")
|
|
35687
|
+
])
|
|
35712
35688
|
]),
|
|
35713
|
-
vue.createCommentVNode(" \u5E95\u90E8 "),
|
|
35714
35689
|
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$4, [
|
|
35715
35690
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
35716
35691
|
])) : vue.createCommentVNode("v-if", true)
|
|
@@ -35731,7 +35706,7 @@
|
|
|
35731
35706
|
key: 1,
|
|
35732
35707
|
class: "fv-mention-loading"
|
|
35733
35708
|
};
|
|
35734
|
-
const _hoisted_4$
|
|
35709
|
+
const _hoisted_4$e = ["onMouseenter", "onClick"];
|
|
35735
35710
|
const _hoisted_5$b = { class: "fv-mention-avatar" };
|
|
35736
35711
|
const _hoisted_6$a = ["src", "alt"];
|
|
35737
35712
|
const _hoisted_7$8 = { class: "fv-mention-name" };
|
|
@@ -36038,7 +36013,6 @@
|
|
|
36038
36013
|
onKeydownCapture
|
|
36039
36014
|
},
|
|
36040
36015
|
[
|
|
36041
|
-
vue.createCommentVNode(" Sender \u900F\u4F20:\u672A\u58F0\u660E\u7684 props/\u76D1\u542C\u5668\u7ECF $attrs \u4E0B\u4F20;slots \u52A8\u6001\u8F6C\u53D1 "),
|
|
36042
36016
|
vue.createVNode(_sfc_main$j, vue.mergeProps({
|
|
36043
36017
|
ref_key: "senderRef",
|
|
36044
36018
|
ref: senderRef
|
|
@@ -36065,7 +36039,6 @@
|
|
|
36065
36039
|
};
|
|
36066
36040
|
})
|
|
36067
36041
|
]), 1040, ["model-value"]),
|
|
36068
|
-
vue.createCommentVNode(" \u63D0\u53CA\u5F39\u5C42:v-if \u6574\u4F53\u5378\u8F7D(el-popover \u5173\u95ED\u4EC5 display:none \u4F1A\u5BFC\u81F4 DOM \u6B8B\u7559) "),
|
|
36069
36042
|
mentionVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
|
|
36070
36043
|
key: 0,
|
|
36071
36044
|
visible: true,
|
|
@@ -36139,7 +36112,7 @@
|
|
|
36139
36112
|
1
|
|
36140
36113
|
/* TEXT */
|
|
36141
36114
|
)
|
|
36142
|
-
], 42, _hoisted_4$
|
|
36115
|
+
], 42, _hoisted_4$e);
|
|
36143
36116
|
}),
|
|
36144
36117
|
128
|
|
36145
36118
|
/* KEYED_FRAGMENT */
|
|
@@ -36166,14 +36139,14 @@
|
|
|
36166
36139
|
key: 0,
|
|
36167
36140
|
class: "fv-editor-prefix"
|
|
36168
36141
|
};
|
|
36169
|
-
const _hoisted_4$
|
|
36142
|
+
const _hoisted_4$d = { class: "fv-editor-input" };
|
|
36170
36143
|
const _hoisted_5$a = ["contenteditable", "data-placeholder"];
|
|
36171
36144
|
const _hoisted_6$9 = { class: "fv-editor-mention-panel" };
|
|
36172
36145
|
const _hoisted_7$7 = {
|
|
36173
36146
|
key: 0,
|
|
36174
36147
|
class: "fv-editor-mention-title"
|
|
36175
36148
|
};
|
|
36176
|
-
const _hoisted_8$
|
|
36149
|
+
const _hoisted_8$7 = {
|
|
36177
36150
|
key: 1,
|
|
36178
36151
|
class: "fv-editor-mention-loading"
|
|
36179
36152
|
};
|
|
@@ -36936,17 +36909,14 @@
|
|
|
36936
36909
|
style: vue.normalizeStyle(__props.customStyle)
|
|
36937
36910
|
},
|
|
36938
36911
|
[
|
|
36939
|
-
vue.createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
|
|
36940
36912
|
headerVisible.value && _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
|
|
36941
36913
|
vue.renderSlot(_ctx.$slots, "header")
|
|
36942
36914
|
])) : vue.createCommentVNode("v-if", true),
|
|
36943
36915
|
vue.createElementVNode("div", _hoisted_2$f, [
|
|
36944
|
-
vue.createCommentVNode(" \u524D\u7F00\u533A "),
|
|
36945
36916
|
_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$f, [
|
|
36946
36917
|
vue.renderSlot(_ctx.$slots, "prefix")
|
|
36947
36918
|
])) : vue.createCommentVNode("v-if", true),
|
|
36948
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
36949
|
-
vue.createCommentVNode(" \u6807\u7B7E\u7F16\u8F91\u533A:contenteditable,\u5185\u5BB9\u7531\u547D\u4EE4\u5F0F\u6E32\u67D3(nodes \u2192 DOM) "),
|
|
36919
|
+
vue.createElementVNode("div", _hoisted_4$d, [
|
|
36950
36920
|
vue.createElementVNode("div", {
|
|
36951
36921
|
ref_key: "editorRef",
|
|
36952
36922
|
ref: editorRef,
|
|
@@ -36961,8 +36931,6 @@
|
|
|
36961
36931
|
onFocus: onEditorFocus,
|
|
36962
36932
|
onBlur: onEditorBlur
|
|
36963
36933
|
}, null, 40, _hoisted_5$a),
|
|
36964
|
-
vue.createCommentVNode(" at \u5F39\u5C42\u951A\u70B9:\u4E0D\u53EF\u89C1,\u4EC5\u627F\u8F7D el-popover \u5B9A\u4F4D(\u5728 ElPopover #reference \u5185) "),
|
|
36965
|
-
vue.createCommentVNode(" @\u5F39\u5C42:v-if \u6574\u4F53\u5378\u8F7D(el-popover \u5173\u95ED\u4EC5 display:none \u4F1A\u6B8B\u7559 DOM) "),
|
|
36966
36934
|
mentionVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
|
|
36967
36935
|
key: 0,
|
|
36968
36936
|
visible: true,
|
|
@@ -36996,7 +36964,7 @@
|
|
|
36996
36964
|
)) : vue.createCommentVNode("v-if", true),
|
|
36997
36965
|
asyncLoading.value ? (vue.openBlock(), vue.createElementBlock(
|
|
36998
36966
|
"div",
|
|
36999
|
-
_hoisted_8$
|
|
36967
|
+
_hoisted_8$7,
|
|
37000
36968
|
vue.toDisplayString(vue.unref(dict).editorSender.loading),
|
|
37001
36969
|
1
|
|
37002
36970
|
/* TEXT */
|
|
@@ -37046,7 +37014,6 @@
|
|
|
37046
37014
|
_: 1
|
|
37047
37015
|
/* STABLE */
|
|
37048
37016
|
})) : vue.createCommentVNode("v-if", true),
|
|
37049
|
-
vue.createCommentVNode(" \u8F93\u5165\u6807\u7B7E tip \u5F39\u5C42(openTipTag/closeTipTag \u63A7\u5236) "),
|
|
37050
37017
|
tipVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
|
|
37051
37018
|
key: 1,
|
|
37052
37019
|
visible: true,
|
|
@@ -37083,7 +37050,6 @@
|
|
|
37083
37050
|
/* FORWARDED */
|
|
37084
37051
|
})) : vue.createCommentVNode("v-if", true)
|
|
37085
37052
|
]),
|
|
37086
|
-
vue.createCommentVNode(" \u64CD\u4F5C\u533A:#action-list \u5B58\u5728\u65F6\u5168\u81EA\u5B9A\u4E49,\u9690\u85CF\u5185\u7F6E\u6309\u94AE "),
|
|
37087
37053
|
hasActionListSlot.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$3, [
|
|
37088
37054
|
vue.renderSlot(_ctx.$slots, "action-list")
|
|
37089
37055
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$3, [
|
|
@@ -37107,7 +37073,6 @@
|
|
|
37107
37073
|
_: 1
|
|
37108
37074
|
/* STABLE */
|
|
37109
37075
|
}, 8, ["disabled", "aria-label"])) : vue.createCommentVNode("v-if", true),
|
|
37110
|
-
vue.createCommentVNode(" loading \u2192 \u505C\u6B62\u6309\u94AE;\u5426\u5219\u53D1\u9001\u6309\u94AE "),
|
|
37111
37076
|
__props.loading ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
37112
37077
|
key: 1,
|
|
37113
37078
|
class: "fv-editor-stop",
|
|
@@ -37148,11 +37113,9 @@
|
|
|
37148
37113
|
}, 8, ["disabled", "aria-label"]))
|
|
37149
37114
|
]))
|
|
37150
37115
|
]),
|
|
37151
|
-
vue.createCommentVNode(" \u5E95\u90E8 "),
|
|
37152
37116
|
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$2, [
|
|
37153
37117
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
37154
37118
|
])) : vue.createCommentVNode("v-if", true),
|
|
37155
|
-
vue.createCommentVNode(" \u9009\u62E9\u6807\u7B7E\u5F39\u7A97:customDialog=true \u65F6\u4E0D\u5F39,\u7531\u5916\u90E8\u7ECF show-select-dialog \u63A5\u7BA1 "),
|
|
37156
37119
|
selectVisible.value && !__props.customDialog ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
|
|
37157
37120
|
key: 2,
|
|
37158
37121
|
"model-value": selectVisible.value,
|
|
@@ -37234,7 +37197,7 @@
|
|
|
37234
37197
|
class: "fv-thinking-dot"
|
|
37235
37198
|
};
|
|
37236
37199
|
const _hoisted_3$e = { class: "fv-thinking-label" };
|
|
37237
|
-
const _hoisted_4$
|
|
37200
|
+
const _hoisted_4$c = ["hidden"];
|
|
37238
37201
|
var _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
37239
37202
|
...{ name: "FvThinking" },
|
|
37240
37203
|
__name: "index",
|
|
@@ -37293,7 +37256,6 @@
|
|
|
37293
37256
|
})
|
|
37294
37257
|
},
|
|
37295
37258
|
[
|
|
37296
|
-
vue.createCommentVNode(" \u5207\u6362\u533A:\u72B6\u6001\u56FE\u6807 + \u72B6\u6001\u6587\u6848 + \u5C55\u5F00\u7BAD\u5934(button \u4FDD\u8BC1\u952E\u76D8\u53EF\u8FBE);\r\n hideHeader \u5E73\u94FA\u5F62\u6001\u4E0D\u6E32\u67D3(\u94FE\u5355 item \u81EA\u5E26\u72B6\u6001,\u5934\u90E8\u4FE1\u606F\u91CD\u590D) "),
|
|
37297
37259
|
!__props.hideHeader ? (vue.openBlock(), vue.createElementBlock(
|
|
37298
37260
|
"button",
|
|
37299
37261
|
{
|
|
@@ -37377,7 +37339,6 @@
|
|
|
37377
37339
|
4
|
|
37378
37340
|
/* STYLE */
|
|
37379
37341
|
)) : vue.createCommentVNode("v-if", true),
|
|
37380
|
-
vue.createCommentVNode(" \u5185\u5BB9\u533A:\u59CB\u7EC8\u6302\u8F7D,hidden \u5C5E\u6027\u6536\u8D77(DOM \u5C5E\u6027\u5373\u4E0D\u53EF\u89C1,\u4E0D\u4F9D\u8D56 computed style \u89E3\u6790);\r\n hideHeader \u5E73\u94FA\u5F62\u6001\u5E38\u9A7B\u5C55\u5F00 "),
|
|
37381
37342
|
hasBody.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
37382
37343
|
key: 1,
|
|
37383
37344
|
class: "fv-thinking-content",
|
|
@@ -37391,7 +37352,7 @@
|
|
|
37391
37352
|
/* TEXT */
|
|
37392
37353
|
)
|
|
37393
37354
|
], void 0, 1)
|
|
37394
|
-
], 12, _hoisted_4$
|
|
37355
|
+
], 12, _hoisted_4$c)) : vue.createCommentVNode("v-if", true)
|
|
37395
37356
|
],
|
|
37396
37357
|
6
|
|
37397
37358
|
/* CLASS, STYLE */
|
|
@@ -37406,7 +37367,7 @@
|
|
|
37406
37367
|
class: "fv-chain-dot"
|
|
37407
37368
|
};
|
|
37408
37369
|
const _hoisted_3$d = { class: "fv-chain-main" };
|
|
37409
|
-
const _hoisted_4$
|
|
37370
|
+
const _hoisted_4$b = ["aria-label", "onClick"];
|
|
37410
37371
|
const _hoisted_5$9 = { class: "fv-chain-head-title" };
|
|
37411
37372
|
const _hoisted_6$8 = {
|
|
37412
37373
|
key: 0,
|
|
@@ -37416,7 +37377,7 @@
|
|
|
37416
37377
|
key: 0,
|
|
37417
37378
|
class: "fv-chain-body"
|
|
37418
37379
|
};
|
|
37419
|
-
const _hoisted_8$
|
|
37380
|
+
const _hoisted_8$6 = {
|
|
37420
37381
|
key: 0,
|
|
37421
37382
|
class: "scroll-edge-fade-top",
|
|
37422
37383
|
"aria-hidden": "true"
|
|
@@ -37807,7 +37768,6 @@
|
|
|
37807
37768
|
class: vue.normalizeClass(["fv-chain-item", [statusClass(item.status), item.class]])
|
|
37808
37769
|
},
|
|
37809
37770
|
[
|
|
37810
|
-
vue.createCommentVNode(" \u8282\u70B9:\u81EA\u5B9A\u4E49 icon > \u72B6\u6001\u56FE\u6807(loading \u65CB\u8F6C/\u6210\u529F\u52FE/\u9519\u8BEF\u53C9/\u5F85\u5B9A\u7A7A\u5FC3\u70B9)\u3002\r\n \u67E5\u8BE2\u4E2D(loading)\u5E26\u81EA\u5B9A\u4E49\u653E\u5927\u955C icon:is-searching \u6446\u52A8\u52A8\u753B\u66FF\u4EE3\u9ED8\u8BA4\u8F6C\u5708;\r\n \u601D\u8003\u4E2D\u6587\u672C\u6B65(is-thinking,status \u672A\u5B9A):is-thinking \u653E\u5927\u7F29\u5C0F\u8109\u51B2\u66FF\u4EE3\u6446\u52A8 "),
|
|
37811
37771
|
vue.createElementVNode("span", _hoisted_1$f, [
|
|
37812
37772
|
item.icon ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
37813
37773
|
key: 0,
|
|
@@ -37844,13 +37804,11 @@
|
|
|
37844
37804
|
/* STABLE */
|
|
37845
37805
|
})) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$d))
|
|
37846
37806
|
]),
|
|
37847
|
-
vue.createCommentVNode(" \u5185\u5BB9:#content \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u9ED8\u8BA4 title/description;\r\n text \u6B65(\u601D\u8003\u6BB5):\u6807\u9898\u884C\u300C\u6B63\u5728\u601D\u8003/\u601D\u8003\u5B8C\u6210\u300D+ \u6298\u53E0\u6001\u6700\u65B0\u4E00\u884C\u7070\u8272\u9884\u89C8(\u5408\u8BA1\u5355\u884C)\r\n + \u5C55\u5F00\u7BAD\u5934;description \u6298\u53E0\u533A\u653E\u539F\u601D\u8003\u6587\u6848(\u6253\u5B57\u673A/\u9759\u6001),ElScrollbar \u9650\u9AD8 269px,\r\n \u6D41\u5F0F\u8F93\u51FA\u671F\u95F4\u81EA\u52A8\u6EDA\u5E95;\r\n tool \u6B65:title \u8FDE\u7EED\u6362\u884C\u5408\u5E76\u4E3A\u4E00\u4E2A;collapsible \u5F00\u542F\u65F6\u8D85 3 \u884C\u622A\u65AD,\r\n \u56FE\u6807\u6309\u94AE\u62FC\u5728\u7B2C\u4E09\u884C\u6587\u5B57\u672B;\u601D\u8003\u6587\u6848\u6B65\u6D41\u5F0F\u671F\u95F4\u7ECF Typewriter \u9010\u5B57\u6253\u51FA(\u4E0E\u6B63\u6587\u540C\u6B3E),\r\n \u56DE\u843D\u65F6\u673A\u89C1 isTypingItem "),
|
|
37848
37807
|
vue.createElementVNode("div", _hoisted_3$d, [
|
|
37849
37808
|
vue.renderSlot(_ctx.$slots, "content", {
|
|
37850
37809
|
item,
|
|
37851
37810
|
index
|
|
37852
37811
|
}, () => [
|
|
37853
|
-
vue.createCommentVNode(" text \u6B65:\u6807\u9898\u884C + \u53EF\u6298\u53E0 description \u6EDA\u52A8\u533A(2026-10-07 \u601D\u8003\u94FE\u8C03\u6574) "),
|
|
37854
37812
|
item.kind === "text" ? (vue.openBlock(), vue.createElementBlock(
|
|
37855
37813
|
vue.Fragment,
|
|
37856
37814
|
{ key: 0 },
|
|
@@ -37868,7 +37826,6 @@
|
|
|
37868
37826
|
1
|
|
37869
37827
|
/* TEXT */
|
|
37870
37828
|
),
|
|
37871
|
-
vue.createCommentVNode(" \u6298\u53E0\u6001\u9884\u89C8:\u4EC5\u8FDB\u884C\u4E2D(\u672A\u5C01\u53E3)\u663E\u793A,\u53D6\u6700\u65B0\u4E00\u884C\u6587\u5B57(\u7070\u8272,\u4E0E\u6807\u9898\u5408\u8BA1\u5355\u884C\u622A\u65AD),\r\n \u7ED9\u300C\u6709\u4E1C\u897F\u5728\u8F93\u51FA\u300D\u7684\u611F\u77E5;\u601D\u8003\u5B8C\u6210(closed)\u4E0D\u518D\u663E\u793A "),
|
|
37872
37829
|
!isTextExpanded(item.key) && !item.closed && textStepPreview(item) ? (vue.openBlock(), vue.createElementBlock(
|
|
37873
37830
|
"span",
|
|
37874
37831
|
_hoisted_6$8,
|
|
@@ -37876,7 +37833,6 @@
|
|
|
37876
37833
|
1
|
|
37877
37834
|
/* TEXT */
|
|
37878
37835
|
)) : vue.createCommentVNode("v-if", true),
|
|
37879
|
-
vue.createCommentVNode(" \u5C55\u5F00/\u6536\u8D77\u7BAD\u5934:\u6536\u8D77 ArrowDown / \u5C55\u5F00 ArrowUp(\u4E0E\u5DE5\u5177\u6B65\u6298\u53E0\u6309\u94AE\u540C\u8BED\u4E49) "),
|
|
37880
37836
|
vue.createVNode(
|
|
37881
37837
|
vue.unref(elementPlus.ElIcon),
|
|
37882
37838
|
{ class: "fv-chain-head-arrow" },
|
|
@@ -37890,10 +37846,9 @@
|
|
|
37890
37846
|
1024
|
|
37891
37847
|
/* DYNAMIC_SLOTS */
|
|
37892
37848
|
)
|
|
37893
|
-
], 10, _hoisted_4$
|
|
37849
|
+
], 10, _hoisted_4$b),
|
|
37894
37850
|
isTextExpanded(item.key) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$6, [
|
|
37895
|
-
vue.
|
|
37896
|
-
edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$5)) : vue.createCommentVNode("v-if", true),
|
|
37851
|
+
edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$6)) : vue.createCommentVNode("v-if", true),
|
|
37897
37852
|
edgeFade(item.key).bottom ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$3)) : vue.createCommentVNode("v-if", true),
|
|
37898
37853
|
vue.createVNode(vue.unref(elementPlus.ElScrollbar), {
|
|
37899
37854
|
ref_for: true,
|
|
@@ -37934,7 +37889,6 @@
|
|
|
37934
37889
|
vue.Fragment,
|
|
37935
37890
|
{ key: 1 },
|
|
37936
37891
|
[
|
|
37937
|
-
vue.createCommentVNode(" tool \u6B65:\u539F\u5E03\u5C40 "),
|
|
37938
37892
|
vue.createElementVNode(
|
|
37939
37893
|
"div",
|
|
37940
37894
|
{
|
|
@@ -37943,7 +37897,6 @@
|
|
|
37943
37897
|
class: vue.normalizeClass(["fv-chain-title", { "is-clamped": __props.collapsible && showToggle(item.key) && !expandedKeys.value.has(item.key) }])
|
|
37944
37898
|
},
|
|
37945
37899
|
[
|
|
37946
|
-
vue.createCommentVNode(" \u622A\u65AD\u7531 JS \u6D4B\u91CF(displayTitle \u524D\u7F00\u539F\u6587):\u6309\u94AE\u4E3A\u5185\u8054\u5143\u7D20\u81EA\u7136\u7D27\u8DDF\r\n \u7B2C\u4E09\u884C\u6587\u5B57\u672B(\u6536\u8D77)/\u5168\u91CF\u672B\u5B57(\u5C55\u5F00);\u65E0\u5E03\u5C40\u73AF\u5883\u4E0D\u88C1\u4E0D\u663E\u6309\u94AE;\r\n \u5EF6\u8FDF\u5F00\u6253\u7B49\u5F85\u671F(holding)\u6E32\u67D3\u7A7A\u5360\u4F4D,\u5230\u70B9\u518D\u6302\u6253\u5B57\u673A;\r\n \u6574\u94FE\u4E0D\u53D8\u5F0F:\u81F3\u591A\u6700\u540E\u4E00\u4E2A\u5019\u9009\u6253\u5B57\u6B65\u6302\u6253\u5B57\u673A(lastTypingKey),\r\n \u5176\u4F59\u9759\u6001\u5168\u91CF\u2014\u2014\u65B0\u6B65\u5DF2\u5230\u573A,\u65E7\u6B65\u4E0D\u62D6\u62CD,\u7ED3\u6784\u4E0A\u675C\u7EDD\u591A\u6B65\u5E76\u884C\u9010\u5B57 "),
|
|
37947
37900
|
isTypingItem(item) && item.key === lastTypingKey.value && !holdingKeys.value.has(item.key) ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
|
|
37948
37901
|
key: 0,
|
|
37949
37902
|
content: normalizeTitle(item.title),
|
|
@@ -38016,11 +37969,11 @@
|
|
|
38016
37969
|
const _hoisted_1$e = { class: "fv-welcome-icon" };
|
|
38017
37970
|
const _hoisted_2$c = ["src"];
|
|
38018
37971
|
const _hoisted_3$c = { class: "fv-welcome-main" };
|
|
38019
|
-
const _hoisted_4$
|
|
37972
|
+
const _hoisted_4$a = { class: "fv-welcome-text" };
|
|
38020
37973
|
const _hoisted_5$8 = { class: "fv-welcome-name" };
|
|
38021
37974
|
const _hoisted_6$7 = { class: "fv-welcome-name-accent" };
|
|
38022
37975
|
const _hoisted_7$5 = { class: "fv-welcome-description" };
|
|
38023
|
-
const _hoisted_8$
|
|
37976
|
+
const _hoisted_8$5 = {
|
|
38024
37977
|
key: 0,
|
|
38025
37978
|
class: "fv-welcome-suggestions"
|
|
38026
37979
|
};
|
|
@@ -38045,7 +37998,6 @@
|
|
|
38045
37998
|
class: vue.normalizeClass(["fv-welcome", `is-${__props.layout}`])
|
|
38046
37999
|
},
|
|
38047
38000
|
[
|
|
38048
|
-
vue.createCommentVNode(" \u56FE\u6807\u533A(DOM \u5E8F\u5728\u4E0A):\u7EB5\u6392\u968F\u6587\u6863\u6D41\u5C45\u4E2D\u6392\u5728\u4E3B\u5217\u4E0A\u65B9;\u6A2A\u6392\u7ECF order \u6D6E\u5230\u4E3B\u5217\u53F3\u4FA7 "),
|
|
38049
38001
|
vue.createElementVNode("div", _hoisted_1$e, [
|
|
38050
38002
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
38051
38003
|
isImage(__props.icon) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAvatar), {
|
|
@@ -38071,10 +38023,8 @@
|
|
|
38071
38023
|
}, null, 10, _hoisted_2$c))
|
|
38072
38024
|
])
|
|
38073
38025
|
]),
|
|
38074
|
-
vue.createCommentVNode(" \u4E3B\u5217(DOM \u5E8F\u5728\u4E0B):\u6587\u6848 + \u5EFA\u8BAE(\u6A2A\u6392\u65F6\u4E3A\u552F\u4E00\u6587\u6863\u6D41\u5185\u5BB9,\u5DE6\u5BF9\u9F50,\u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u5360\u4F4D;\u7EB5\u6392\u968F\u7236\u5C45\u4E2D) "),
|
|
38075
38026
|
vue.createElementVNode("div", _hoisted_3$c, [
|
|
38076
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
38077
|
-
vue.createCommentVNode(" #name \u63D2\u69FD\u8986\u76D6\u540D\u79F0;\u672A\u4F20 name \u65F6\u56DE\u843D\u5185\u7F6E\u95EE\u5019(\u54C1\u724C\u540D\u4E3B\u9898\u8272\u9AD8\u4EAE) "),
|
|
38027
|
+
vue.createElementVNode("div", _hoisted_4$a, [
|
|
38078
38028
|
vue.createElementVNode("h2", _hoisted_5$8, [
|
|
38079
38029
|
vue.renderSlot(_ctx.$slots, "name", {}, () => [
|
|
38080
38030
|
__props.name ? (vue.openBlock(), vue.createElementBlock(
|
|
@@ -38111,7 +38061,6 @@
|
|
|
38111
38061
|
))
|
|
38112
38062
|
])
|
|
38113
38063
|
]),
|
|
38114
|
-
vue.createCommentVNode(" #description \u63D2\u69FD\u8986\u76D6\u63CF\u8FF0;\u672A\u4F20 description \u65F6\u56DE\u843D\u5185\u7F6E\u9ED8\u8BA4\u63CF\u8FF0 "),
|
|
38115
38064
|
vue.createElementVNode("p", _hoisted_7$5, [
|
|
38116
38065
|
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
38117
38066
|
vue.createTextVNode(
|
|
@@ -38122,8 +38071,7 @@
|
|
|
38122
38071
|
])
|
|
38123
38072
|
])
|
|
38124
38073
|
]),
|
|
38125
|
-
|
|
38126
|
-
_ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
|
|
38074
|
+
_ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
|
|
38127
38075
|
vue.renderSlot(_ctx.$slots, "suggestions")
|
|
38128
38076
|
])) : vue.createCommentVNode("v-if", true)
|
|
38129
38077
|
])
|
|
@@ -38141,7 +38089,7 @@
|
|
|
38141
38089
|
class: "fv-prompts-title"
|
|
38142
38090
|
};
|
|
38143
38091
|
const _hoisted_3$b = ["role", "tabindex", "onClick"];
|
|
38144
|
-
const _hoisted_4$
|
|
38092
|
+
const _hoisted_4$9 = { class: "fv-prompt-item-main" };
|
|
38145
38093
|
const _hoisted_5$7 = { class: "fv-prompt-item-text" };
|
|
38146
38094
|
const _hoisted_6$6 = {
|
|
38147
38095
|
key: 0,
|
|
@@ -38151,6 +38099,10 @@
|
|
|
38151
38099
|
key: 1,
|
|
38152
38100
|
class: "fv-prompt-item-description"
|
|
38153
38101
|
};
|
|
38102
|
+
const _hoisted_8$4 = {
|
|
38103
|
+
key: 0,
|
|
38104
|
+
class: "fv-prompts-footer"
|
|
38105
|
+
};
|
|
38154
38106
|
var _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
38155
38107
|
...{ name: "FvPrompts" },
|
|
38156
38108
|
__name: "index",
|
|
@@ -38200,12 +38152,11 @@
|
|
|
38200
38152
|
tabindex: item.disabled ? -1 : 0,
|
|
38201
38153
|
onClick: ($event) => onSelect(item)
|
|
38202
38154
|
}, [
|
|
38203
|
-
vue.createCommentVNode(" #default \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u6574\u5361 "),
|
|
38204
38155
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
38205
38156
|
item,
|
|
38206
38157
|
index
|
|
38207
38158
|
}, () => [
|
|
38208
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
38159
|
+
vue.createElementVNode("div", _hoisted_4$9, [
|
|
38209
38160
|
resolvedIcons.value[index] ? (vue.openBlock(), vue.createBlock(
|
|
38210
38161
|
vue.unref(elementPlus.ElIcon),
|
|
38211
38162
|
{
|
|
@@ -38244,7 +38195,10 @@
|
|
|
38244
38195
|
}),
|
|
38245
38196
|
128
|
|
38246
38197
|
/* KEYED_FRAGMENT */
|
|
38247
|
-
))
|
|
38198
|
+
)),
|
|
38199
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
|
|
38200
|
+
vue.renderSlot(_ctx.$slots, "footer")
|
|
38201
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
38248
38202
|
],
|
|
38249
38203
|
2
|
|
38250
38204
|
/* CLASS */
|
|
@@ -38340,21 +38294,12 @@
|
|
|
38340
38294
|
);
|
|
38341
38295
|
});
|
|
38342
38296
|
return (_ctx, _cache) => {
|
|
38343
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
38344
|
-
|
|
38345
|
-
|
|
38346
|
-
|
|
38347
|
-
|
|
38348
|
-
|
|
38349
|
-
class: "fv-svg-icon",
|
|
38350
|
-
style: vue.normalizeStyle(sizeStyle.value),
|
|
38351
|
-
"aria-hidden": "true",
|
|
38352
|
-
innerHTML: rendered.value
|
|
38353
|
-
}, null, 12, _hoisted_1$c)
|
|
38354
|
-
],
|
|
38355
|
-
2112
|
|
38356
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
38357
|
-
);
|
|
38297
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
38298
|
+
class: "fv-svg-icon",
|
|
38299
|
+
style: vue.normalizeStyle(sizeStyle.value),
|
|
38300
|
+
"aria-hidden": "true",
|
|
38301
|
+
innerHTML: rendered.value
|
|
38302
|
+
}, null, 12, _hoisted_1$c);
|
|
38358
38303
|
};
|
|
38359
38304
|
}
|
|
38360
38305
|
});
|
|
@@ -38362,7 +38307,7 @@
|
|
|
38362
38307
|
const _hoisted_1$b = ["src", "alt"];
|
|
38363
38308
|
const _hoisted_2$a = { class: "fv-files-card-info" };
|
|
38364
38309
|
const _hoisted_3$a = ["title"];
|
|
38365
|
-
const _hoisted_4$
|
|
38310
|
+
const _hoisted_4$8 = ["title"];
|
|
38366
38311
|
const _hoisted_5$6 = {
|
|
38367
38312
|
key: 1,
|
|
38368
38313
|
class: "fv-files-card-size"
|
|
@@ -38464,7 +38409,6 @@
|
|
|
38464
38409
|
class: vue.normalizeClass(["fv-files-card", [`is-${__props.fileType}`, `is-${__props.status}`, { "has-download": !!__props.onDownload }]])
|
|
38465
38410
|
},
|
|
38466
38411
|
[
|
|
38467
|
-
vue.createCommentVNode(" \u56FE\u7247\u6A21\u5F0F:#image \u63D2\u69FD > url \u7F29\u7565\u56FE > Picture \u5360\u4F4D "),
|
|
38468
38412
|
isImage.value ? (vue.openBlock(), vue.createElementBlock(
|
|
38469
38413
|
"div",
|
|
38470
38414
|
{
|
|
@@ -38493,37 +38437,29 @@
|
|
|
38493
38437
|
],
|
|
38494
38438
|
4
|
|
38495
38439
|
/* STYLE */
|
|
38496
|
-
)) : (vue.openBlock(), vue.
|
|
38497
|
-
|
|
38498
|
-
|
|
38499
|
-
|
|
38500
|
-
|
|
38501
|
-
vue.
|
|
38502
|
-
|
|
38503
|
-
|
|
38504
|
-
|
|
38505
|
-
|
|
38506
|
-
|
|
38507
|
-
|
|
38508
|
-
|
|
38509
|
-
_: 1
|
|
38510
|
-
/* STABLE */
|
|
38511
|
-
})
|
|
38512
|
-
],
|
|
38513
|
-
2112
|
|
38514
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
38515
|
-
)),
|
|
38440
|
+
)) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
38441
|
+
key: 1,
|
|
38442
|
+
class: "fv-files-card-icon"
|
|
38443
|
+
}, {
|
|
38444
|
+
default: vue.withCtx(() => [
|
|
38445
|
+
vue.createVNode(_sfc_main$c, {
|
|
38446
|
+
name: docIconKind.value,
|
|
38447
|
+
size: "1em"
|
|
38448
|
+
}, null, 8, ["name"])
|
|
38449
|
+
]),
|
|
38450
|
+
_: 1
|
|
38451
|
+
/* STABLE */
|
|
38452
|
+
})),
|
|
38516
38453
|
vue.createElementVNode("div", _hoisted_2$a, [
|
|
38517
38454
|
vue.createElementVNode("div", {
|
|
38518
38455
|
class: "fv-files-card-name",
|
|
38519
38456
|
title: __props.name
|
|
38520
38457
|
}, vue.toDisplayString(__props.name), 9, _hoisted_3$a),
|
|
38521
|
-
vue.createCommentVNode(" error \u5E26\u6587\u6848\u65F6\u66FF\u4EE3\u5927\u5C0F\u884C(\u4E0A\u4F20\u5931\u8D25\u539F\u56E0);loading \u663E\u793A\u300C\u4E0A\u4F20\u4E2D\u2026\u300D;\u5426\u5219\u56DE\u843D\u5927\u5C0F "),
|
|
38522
38458
|
__props.status === "error" && __props.errorText ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
38523
38459
|
key: 0,
|
|
38524
38460
|
class: "fv-files-card-error",
|
|
38525
38461
|
title: __props.errorText
|
|
38526
|
-
}, vue.toDisplayString(__props.errorText), 9, _hoisted_4$
|
|
38462
|
+
}, vue.toDisplayString(__props.errorText), 9, _hoisted_4$8)) : __props.status === "loading" ? (vue.openBlock(), vue.createElementBlock(
|
|
38527
38463
|
"div",
|
|
38528
38464
|
_hoisted_5$6,
|
|
38529
38465
|
vue.toDisplayString(vue.unref(dict).attachments.uploading),
|
|
@@ -38537,7 +38473,6 @@
|
|
|
38537
38473
|
/* TEXT */
|
|
38538
38474
|
)) : vue.createCommentVNode("v-if", true)
|
|
38539
38475
|
]),
|
|
38540
|
-
vue.createCommentVNode(" \u72B6\u6001:loading \u65F6\u56FE\u6807\u4F4D\u6362 spinner(\u540D\u79F0\u884C\u65C1\u300C\u4E0A\u4F20\u4E2D\u2026\u300D\u6587\u6848\u8F85\u52A9) "),
|
|
38541
38476
|
__props.status === "loading" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
38542
38477
|
key: 2,
|
|
38543
38478
|
class: "fv-files-card-loading"
|
|
@@ -38548,7 +38483,6 @@
|
|
|
38548
38483
|
_: 1
|
|
38549
38484
|
/* STABLE */
|
|
38550
38485
|
})) : vue.createCommentVNode("v-if", true),
|
|
38551
|
-
vue.createCommentVNode(" \u53F3\u4E0A\u89D2\u6309\u94AE(\u540C\u4F4D\u7F6E):\u5220\u9664\u6309\u94AE\u5E38\u9A7B(\u65E7\u5951\u7EA6,\u65E0\u56DE\u8C03\u65F6\u4E3A\u65E0\u58F0\u5360\u4F4D);\r\n \u4E0B\u8F7D\u6309\u94AE\u6309 onDownload \u6CE8\u5165\u6E32\u67D3\u2014\u2014\u6D88\u606F\u9644\u4EF6\u5361\u8D70\u4E0B\u8F7D,\u8F93\u5165\u533A\u9644\u4EF6\u5361\u8D70\u5220\u9664,\r\n \u6D88\u606F\u5361\u5185\u5220\u9664\u6309\u94AE\u7531 AiMessage \u4F5C\u7528\u57DF\u6837\u5F0F\u9690\u85CF,\u4E24\u8005\u4E0D\u91CD\u53E0 "),
|
|
38552
38486
|
vue.createElementVNode("button", {
|
|
38553
38487
|
type: "button",
|
|
38554
38488
|
class: "fv-files-card-remove",
|
|
@@ -38589,7 +38523,7 @@
|
|
|
38589
38523
|
const _hoisted_1$a = { class: "fv-attachments" };
|
|
38590
38524
|
const _hoisted_2$9 = ["accept"];
|
|
38591
38525
|
const _hoisted_3$9 = ["disabled", "aria-label"];
|
|
38592
|
-
const _hoisted_4$
|
|
38526
|
+
const _hoisted_4$7 = {
|
|
38593
38527
|
key: 1,
|
|
38594
38528
|
class: "fv-attachments-list"
|
|
38595
38529
|
};
|
|
@@ -38752,7 +38686,6 @@
|
|
|
38752
38686
|
__expose({ openSelect, retry });
|
|
38753
38687
|
return (_ctx, _cache) => {
|
|
38754
38688
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
38755
|
-
vue.createCommentVNode(" \u9690\u85CF input:accept \u8FC7\u6EE4 + count \u7531\u903B\u8F91\u5C42\u5224\u5B9A "),
|
|
38756
38689
|
vue.createElementVNode("input", {
|
|
38757
38690
|
ref_key: "inputRef",
|
|
38758
38691
|
ref: inputRef,
|
|
@@ -38762,7 +38695,6 @@
|
|
|
38762
38695
|
multiple: "",
|
|
38763
38696
|
onChange
|
|
38764
38697
|
}, null, 40, _hoisted_2$9),
|
|
38765
|
-
vue.createCommentVNode(" \u89E6\u53D1\u6309\u94AE:\u56DE\u5F62\u9488;count \u6EE1\u6216\u6574\u4F53\u7981\u7528\u65F6\u7981\u7528(listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
|
|
38766
38698
|
__props.layout !== "listOnly" ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
38767
38699
|
key: 0,
|
|
38768
38700
|
type: "button",
|
|
@@ -38779,8 +38711,7 @@
|
|
|
38779
38711
|
/* STABLE */
|
|
38780
38712
|
})
|
|
38781
38713
|
], 10, _hoisted_3$9)) : vue.createCommentVNode("v-if", true),
|
|
38782
|
-
|
|
38783
|
-
list.value.length && __props.layout !== "triggerOnly" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
|
|
38714
|
+
list.value.length && __props.layout !== "triggerOnly" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7, [
|
|
38784
38715
|
(vue.openBlock(true), vue.createElementBlock(
|
|
38785
38716
|
vue.Fragment,
|
|
38786
38717
|
null,
|
|
@@ -38816,7 +38747,6 @@
|
|
|
38816
38747
|
key: "0"
|
|
38817
38748
|
} : void 0
|
|
38818
38749
|
]), 1032, ["name", "size", "url", "file-type", "status", "error-text", "on-delete"]),
|
|
38819
|
-
vue.createCommentVNode(" error \u9879:\u91CD\u4F20\u6309\u94AE(\u5220\u9664\u5165\u53E3\u7531 FilesCard \u53F3\u4E0A\u6309\u94AE\u627F\u62C5,onDelete prop \u5DF2\u6CE8\u5165) "),
|
|
38820
38750
|
item.status === "error" ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
38821
38751
|
key: 0,
|
|
38822
38752
|
type: "button",
|
|
@@ -38839,7 +38769,6 @@
|
|
|
38839
38769
|
/* KEYED_FRAGMENT */
|
|
38840
38770
|
))
|
|
38841
38771
|
])) : vue.createCommentVNode("v-if", true),
|
|
38842
|
-
vue.createCommentVNode(" \u5185\u8054\u63D0\u793A(triggerOnly/listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
|
|
38843
38772
|
__props.tip && __props.layout === "inline" ? (vue.openBlock(), vue.createElementBlock(
|
|
38844
38773
|
"div",
|
|
38845
38774
|
_hoisted_6$4,
|
|
@@ -38858,7 +38787,7 @@
|
|
|
38858
38787
|
};
|
|
38859
38788
|
const _hoisted_2$8 = ["onClick"];
|
|
38860
38789
|
const _hoisted_3$8 = { class: "fv-conversations-item-content" };
|
|
38861
|
-
const _hoisted_4$
|
|
38790
|
+
const _hoisted_4$6 = ["title"];
|
|
38862
38791
|
const _hoisted_5$4 = ["aria-label"];
|
|
38863
38792
|
var _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
38864
38793
|
...{ name: "FvConversations" },
|
|
@@ -38974,7 +38903,6 @@
|
|
|
38974
38903
|
key: grp.group ?? "__ungrouped__",
|
|
38975
38904
|
class: "fv-conversations-group"
|
|
38976
38905
|
}, [
|
|
38977
|
-
vue.createCommentVNode(" \u5206\u7EC4\u6807\u9898:\u6EDA\u52A8\u5438\u9876;#group-title \u8986\u76D6 "),
|
|
38978
38906
|
grp.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
38979
38907
|
vue.renderSlot(_ctx.$slots, "group-title", {
|
|
38980
38908
|
group: grp.group
|
|
@@ -38995,7 +38923,6 @@
|
|
|
38995
38923
|
class: vue.normalizeClass(["fv-conversations-item", { "is-active": isActive(item), "is-disabled": !!item.disabled }]),
|
|
38996
38924
|
onClick: ($event) => onItemClick(item)
|
|
38997
38925
|
}, [
|
|
38998
|
-
vue.createCommentVNode(" \u884C\u5185\u5BB9:#item \u8986\u76D6\u6574\u884C(\u9ED8\u8BA4\u6E32\u67D3 label) "),
|
|
38999
38926
|
vue.createElementVNode("div", _hoisted_3$8, [
|
|
39000
38927
|
vue.renderSlot(_ctx.$slots, "item", {
|
|
39001
38928
|
item,
|
|
@@ -39004,10 +38931,9 @@
|
|
|
39004
38931
|
vue.createElementVNode("span", {
|
|
39005
38932
|
class: "fv-conversations-item-label",
|
|
39006
38933
|
title: item.label
|
|
39007
|
-
}, vue.toDisplayString(item.label), 9, _hoisted_4$
|
|
38934
|
+
}, vue.toDisplayString(item.label), 9, _hoisted_4$6)
|
|
39008
38935
|
])
|
|
39009
38936
|
]),
|
|
39010
|
-
vue.createCommentVNode(" \u5185\u7F6E\u83DC\u5355:hover \u663E\u793A\u6309\u94AE \u2192 el-dropdown(\u91CD\u547D\u540D/\u5220\u9664);#menu \u8986\u76D6\u83DC\u5355\u5217\u8868 "),
|
|
39011
38937
|
!item.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
|
|
39012
38938
|
key: 0,
|
|
39013
38939
|
trigger: "click",
|
|
@@ -39093,7 +39019,7 @@
|
|
|
39093
39019
|
const _hoisted_1$8 = { viewBox: "0 0 1200 1200" };
|
|
39094
39020
|
const _hoisted_2$7 = ["id"];
|
|
39095
39021
|
const _hoisted_3$7 = ["stop-color"];
|
|
39096
|
-
const _hoisted_4$
|
|
39022
|
+
const _hoisted_4$5 = ["stop-color", "stop-opacity"];
|
|
39097
39023
|
const _hoisted_5$3 = ["stop-color"];
|
|
39098
39024
|
const _hoisted_6$3 = ["d"];
|
|
39099
39025
|
var _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -39188,73 +39114,63 @@
|
|
|
39188
39114
|
const SHAPES = INIT_D;
|
|
39189
39115
|
return (_ctx, _cache) => {
|
|
39190
39116
|
return vue.openBlock(), vue.createElementBlock(
|
|
39191
|
-
|
|
39192
|
-
|
|
39117
|
+
"div",
|
|
39118
|
+
{
|
|
39119
|
+
class: vue.normalizeClass(["fv-blob-halo", { "is-paused": __props.paused }]),
|
|
39120
|
+
style: vue.normalizeStyle(rootStyle.value),
|
|
39121
|
+
"aria-hidden": "true"
|
|
39122
|
+
},
|
|
39193
39123
|
[
|
|
39194
|
-
vue.
|
|
39195
|
-
|
|
39196
|
-
|
|
39197
|
-
|
|
39198
|
-
|
|
39199
|
-
|
|
39200
|
-
|
|
39201
|
-
|
|
39202
|
-
|
|
39203
|
-
|
|
39204
|
-
vue.
|
|
39205
|
-
|
|
39206
|
-
|
|
39207
|
-
|
|
39208
|
-
|
|
39209
|
-
|
|
39210
|
-
|
|
39211
|
-
|
|
39212
|
-
|
|
39213
|
-
|
|
39214
|
-
|
|
39215
|
-
|
|
39216
|
-
|
|
39217
|
-
|
|
39218
|
-
|
|
39219
|
-
|
|
39220
|
-
|
|
39221
|
-
|
|
39222
|
-
|
|
39223
|
-
}
|
|
39224
|
-
|
|
39225
|
-
|
|
39226
|
-
|
|
39227
|
-
|
|
39228
|
-
|
|
39229
|
-
|
|
39230
|
-
|
|
39231
|
-
|
|
39232
|
-
|
|
39233
|
-
|
|
39234
|
-
|
|
39235
|
-
|
|
39236
|
-
|
|
39237
|
-
|
|
39238
|
-
|
|
39239
|
-
|
|
39240
|
-
|
|
39241
|
-
}, null, 12, _hoisted_6$3)
|
|
39242
|
-
],
|
|
39243
|
-
6
|
|
39244
|
-
/* CLASS, STYLE */
|
|
39245
|
-
);
|
|
39246
|
-
}),
|
|
39247
|
-
128
|
|
39248
|
-
/* KEYED_FRAGMENT */
|
|
39249
|
-
))
|
|
39250
|
-
]))
|
|
39251
|
-
],
|
|
39252
|
-
6
|
|
39253
|
-
/* CLASS, STYLE */
|
|
39254
|
-
)
|
|
39124
|
+
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, [
|
|
39125
|
+
vue.createElementVNode("defs", null, [
|
|
39126
|
+
vue.createElementVNode("radialGradient", {
|
|
39127
|
+
id: highlightGradient.value.id
|
|
39128
|
+
}, [
|
|
39129
|
+
vue.createElementVNode("stop", {
|
|
39130
|
+
offset: "0%",
|
|
39131
|
+
"stop-color": highlightGradient.value.color,
|
|
39132
|
+
"stop-opacity": "1"
|
|
39133
|
+
}, null, 8, _hoisted_3$7),
|
|
39134
|
+
vue.createElementVNode("stop", {
|
|
39135
|
+
offset: "50%",
|
|
39136
|
+
"stop-color": highlightGradient.value.color,
|
|
39137
|
+
"stop-opacity": highlightGradient.value.midOpacity
|
|
39138
|
+
}, null, 8, _hoisted_4$5),
|
|
39139
|
+
vue.createElementVNode("stop", {
|
|
39140
|
+
offset: "100%",
|
|
39141
|
+
"stop-color": highlightGradient.value.color,
|
|
39142
|
+
"stop-opacity": "0"
|
|
39143
|
+
}, null, 8, _hoisted_5$3)
|
|
39144
|
+
], 8, _hoisted_2$7)
|
|
39145
|
+
]),
|
|
39146
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
39147
|
+
vue.Fragment,
|
|
39148
|
+
null,
|
|
39149
|
+
vue.renderList(blobs.value, (b, i) => {
|
|
39150
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
39151
|
+
"g",
|
|
39152
|
+
{
|
|
39153
|
+
key: `${b.slot}-${i}`,
|
|
39154
|
+
class: vue.normalizeClass(["fv-blob-halo-blob", [`is-${b.slot}`, { "is-alt": b.alt }]]),
|
|
39155
|
+
style: vue.normalizeStyle(b.style)
|
|
39156
|
+
},
|
|
39157
|
+
[
|
|
39158
|
+
vue.createElementVNode("path", {
|
|
39159
|
+
d: vue.unref(SHAPES)[b.shape],
|
|
39160
|
+
style: vue.normalizeStyle(b.pathStyle)
|
|
39161
|
+
}, null, 12, _hoisted_6$3)
|
|
39162
|
+
],
|
|
39163
|
+
6
|
|
39164
|
+
/* CLASS, STYLE */
|
|
39165
|
+
);
|
|
39166
|
+
}),
|
|
39167
|
+
128
|
|
39168
|
+
/* KEYED_FRAGMENT */
|
|
39169
|
+
))
|
|
39170
|
+
]))
|
|
39255
39171
|
],
|
|
39256
|
-
|
|
39257
|
-
/*
|
|
39172
|
+
6
|
|
39173
|
+
/* CLASS, STYLE */
|
|
39258
39174
|
);
|
|
39259
39175
|
};
|
|
39260
39176
|
}
|
|
@@ -39871,7 +39787,7 @@
|
|
|
39871
39787
|
const _hoisted_1$7 = ["data-message-id"];
|
|
39872
39788
|
const _hoisted_2$6 = ["src"];
|
|
39873
39789
|
const _hoisted_3$6 = ["src"];
|
|
39874
|
-
const _hoisted_4$
|
|
39790
|
+
const _hoisted_4$4 = { class: "fv-msg-main" };
|
|
39875
39791
|
const _hoisted_5$2 = {
|
|
39876
39792
|
key: 0,
|
|
39877
39793
|
class: "fv-msg-header"
|
|
@@ -39899,12 +39815,16 @@
|
|
|
39899
39815
|
class: "fv-msg-error"
|
|
39900
39816
|
};
|
|
39901
39817
|
const _hoisted_13$1 = {
|
|
39818
|
+
key: 3,
|
|
39902
39819
|
class: "fv-msg-pending",
|
|
39903
39820
|
role: "status",
|
|
39904
39821
|
"aria-live": "polite"
|
|
39905
39822
|
};
|
|
39906
39823
|
const _hoisted_14$1 = { class: "fv-msg-pending-text" };
|
|
39907
|
-
const _hoisted_15$1 = {
|
|
39824
|
+
const _hoisted_15$1 = {
|
|
39825
|
+
key: 5,
|
|
39826
|
+
class: "fv-msg-content fv-msg-content-user"
|
|
39827
|
+
};
|
|
39908
39828
|
const _hoisted_16$1 = {
|
|
39909
39829
|
key: 6,
|
|
39910
39830
|
class: "fv-msg-actions"
|
|
@@ -40357,7 +40277,6 @@
|
|
|
40357
40277
|
}]]),
|
|
40358
40278
|
"data-message-id": __props.message.id
|
|
40359
40279
|
}, [
|
|
40360
|
-
vue.createCommentVNode(" \u5934\u50CF:user \u53F3\u4FA7(\u81EA\u8EAB),assistant \u5DE6\u4FA7;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\r\n \u4F18\u5148\u7EA7:message-avatar \u6574\u4F53\u63D2\u69FD > user-avatar/assistant-avatar \u7EC6\u5206\u63D2\u69FD > props \u56FE\u7247 > \u5185\u7F6E\u56FE\u6807;\r\n \u5757\u5C3A\u5BF8\u9ED8\u8BA4 50\xD750(--fv-msg-avatar-size \u53EF\u8986\u76D6),\u5706\u5F62\u6A21\u5F0F\u9ED8\u8BA4\u5F00\r\n (--fv-msg-avatar-radius \u53D8\u91CF\u4F18\u5148,avatarCircle=false \u56DE\u843D\u9ED8\u8BA4\u5706\u89D2) "),
|
|
40361
40280
|
(isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (vue.openBlock(), vue.createElementBlock(
|
|
40362
40281
|
"div",
|
|
40363
40282
|
{
|
|
@@ -40398,8 +40317,7 @@
|
|
|
40398
40317
|
4
|
|
40399
40318
|
/* STYLE */
|
|
40400
40319
|
)) : vue.createCommentVNode("v-if", true),
|
|
40401
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
40402
|
-
vue.createCommentVNode(" \u5934\u90E8:\u89D2\u8272\u540D + \u6A21\u578B\u6807\u8BB0;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\u7EC6\u5206\u63D2\u69FD > props > \u9ED8\u8BA4\u6587\u6848 "),
|
|
40320
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
40403
40321
|
showHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
|
|
40404
40322
|
isUser.value ? vue.renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
|
|
40405
40323
|
vue.createTextVNode(
|
|
@@ -40422,7 +40340,6 @@
|
|
|
40422
40340
|
/* TEXT */
|
|
40423
40341
|
)) : vue.createCommentVNode("v-if", true)
|
|
40424
40342
|
])) : vue.createCommentVNode("v-if", true),
|
|
40425
|
-
vue.createCommentVNode(" \u9644\u4EF6:user \u6D88\u606F files \u5E73\u94FA;\u56FE\u7247\u7F29\u7565\u53EF\u70B9(\u5185\u7F6E\u653E\u5927\u9884\u89C8),\u6587\u6863\u590D\u7528\r\n sender \u7684 FilesCard \u5361\u7247(\u7C7B\u578B\u56FE\u6807 + \u540D\u79F0/\u5927\u5C0F)\u2014\u2014\u4E0B\u8F7D\u4EC5\u8D70\u5361\u7247\u53F3\u4E0A\r\n \u5E38\u9A7B\u4E0B\u8F7D\u6309\u94AE,\u70B9\u672C\u4F53\u53EA\u4E0A\u629B file-click(\u5BBF\u4E3B\u57CB\u70B9/\u63A5\u7BA1,\u9ED8\u8BA4\u65E0\u884C\u4E3A) "),
|
|
40426
40343
|
__props.message.files?.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
|
|
40427
40344
|
vue.renderSlot(_ctx.$slots, "message-files", {
|
|
40428
40345
|
message: __props.message,
|
|
@@ -40476,7 +40393,6 @@
|
|
|
40476
40393
|
))
|
|
40477
40394
|
])
|
|
40478
40395
|
])) : vue.createCommentVNode("v-if", true),
|
|
40479
|
-
vue.createCommentVNode(" \u56FE\u7247\u653E\u5927\u9884\u89C8(\u672C\u6D88\u606F\u9644\u4EF6\u5185\u8F6E\u64AD;teleported \u6302 body \u9632\u88AB\u6D88\u606F\u533A\u88C1\u526A) "),
|
|
40480
40396
|
previewVisible.value && previewSrcList.value.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImageViewer), {
|
|
40481
40397
|
key: 2,
|
|
40482
40398
|
"url-list": previewSrcList.value,
|
|
@@ -40484,7 +40400,6 @@
|
|
|
40484
40400
|
teleported: "",
|
|
40485
40401
|
onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
|
|
40486
40402
|
}, null, 8, ["url-list", "initial-index"])) : vue.createCommentVNode("v-if", true),
|
|
40487
|
-
vue.createCommentVNode(" \u601D\u8003\u94FE(assistant \u542B toolSteps/reasoning \u65F6):\u591A item \u7531 Thinking \u6298\u53E0\u5934\u627F\u8F7D\u72B6\u6001\r\n \u6C47\u603B\u6587\u6848(\u843D\u5B9A\u5E26\u5DE5\u5177\u6B21\u6570)\u4E0E\u6536\u8D77/\u5C55\u5F00;\u5355 item \u65E0\u6C47\u603B\u5FC5\u8981,\u9690\u85CF\u6298\u53E0\u5934\r\n (hideHeader,\u94FE\u5E73\u94FA\u4E14\u5E38\u9A7B\u5C55\u5F00,\u5355\u6B65\u81EA\u5E26\u72B6\u6001\u56FE\u6807\u4E0E per-item \u6298\u53E0);\r\n \u4EC5 reasoning \u65E0 toolSteps \u65F6(\u7EAF\u601D\u8003\u6D88\u606F)\u56DE\u843D\u94FE\u4E0B Markdown \u6E32\u67D3 "),
|
|
40488
40403
|
!isUser.value && (hasToolSteps.value || hasReasoning.value) ? (vue.openBlock(), vue.createBlock(_sfc_main$g, {
|
|
40489
40404
|
key: 3,
|
|
40490
40405
|
modelValue: toolsExpanded.value,
|
|
@@ -40501,21 +40416,13 @@
|
|
|
40501
40416
|
collapsible: __props.collapsible,
|
|
40502
40417
|
"show-duration": __props.showDuration,
|
|
40503
40418
|
onTyping: _cache[1] || (_cache[1] = ($event) => emit("typing"))
|
|
40504
|
-
}, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (vue.openBlock(), vue.
|
|
40505
|
-
|
|
40506
|
-
|
|
40507
|
-
|
|
40508
|
-
|
|
40509
|
-
|
|
40510
|
-
|
|
40511
|
-
"is-markdown": "",
|
|
40512
|
-
typing: __props.typing,
|
|
40513
|
-
onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
|
|
40514
|
-
}, null, 8, ["content", "typing"])
|
|
40515
|
-
],
|
|
40516
|
-
2112
|
|
40517
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
40518
|
-
)) : hasReasoning.value ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
40419
|
+
}, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
|
|
40420
|
+
key: 1,
|
|
40421
|
+
content: __props.message.reasoning ?? "",
|
|
40422
|
+
"is-markdown": "",
|
|
40423
|
+
typing: __props.typing,
|
|
40424
|
+
onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
|
|
40425
|
+
}, null, 8, ["content", "typing"])) : hasReasoning.value ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
40519
40426
|
key: 2,
|
|
40520
40427
|
content: __props.message.reasoning ?? ""
|
|
40521
40428
|
}, null, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
@@ -40535,7 +40442,6 @@
|
|
|
40535
40442
|
key: "0"
|
|
40536
40443
|
} : void 0
|
|
40537
40444
|
]), 1032, ["modelValue", "status", "hide-header", "class"])) : vue.createCommentVNode("v-if", true),
|
|
40538
|
-
vue.createCommentVNode(" \u6B63\u6587:user \u7EAF\u6587\u672C\u6C14\u6CE1(\u4EC5\u6709\u9644\u4EF6\u65E0\u6587\u5B57\u65F6\u4E0D\u6E32\u67D3\u7A7A\u6C14\u6CE1);assistant Markdown;pending \u7A7A\u5185\u5BB9\u7ED9\u52A0\u8F7D\u5360\u4F4D "),
|
|
40539
40445
|
!isUser.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, [
|
|
40540
40446
|
__props.message.status === "error" ? (vue.openBlock(), vue.createElementBlock(
|
|
40541
40447
|
"span",
|
|
@@ -40557,54 +40463,34 @@
|
|
|
40557
40463
|
key: 2,
|
|
40558
40464
|
content: __props.message.content,
|
|
40559
40465
|
"code-trigger-langs": __props.codeTriggerLangs
|
|
40560
|
-
}, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (vue.openBlock(), vue.createElementBlock(
|
|
40561
|
-
vue.
|
|
40562
|
-
|
|
40563
|
-
|
|
40564
|
-
|
|
40565
|
-
|
|
40566
|
-
|
|
40567
|
-
|
|
40568
|
-
|
|
40569
|
-
|
|
40570
|
-
|
|
40571
|
-
},
|
|
40572
|
-
null,
|
|
40573
|
-
-1
|
|
40574
|
-
/* CACHED */
|
|
40575
|
-
)),
|
|
40576
|
-
vue.createElementVNode(
|
|
40577
|
-
"span",
|
|
40578
|
-
_hoisted_14$1,
|
|
40579
|
-
vue.toDisplayString(pendingPhrase.value),
|
|
40580
|
-
1
|
|
40581
|
-
/* TEXT */
|
|
40582
|
-
)
|
|
40583
|
-
])
|
|
40584
|
-
],
|
|
40585
|
-
2112
|
|
40586
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
40587
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
40588
|
-
])) : __props.message.content ? (vue.openBlock(), vue.createElementBlock(
|
|
40589
|
-
vue.Fragment,
|
|
40590
|
-
{ key: 5 },
|
|
40591
|
-
[
|
|
40592
|
-
vue.createCommentVNode(" user \u6B63\u6587:\u53EA\u4F20\u9644\u4EF6\u65E0\u6587\u5B57\u65F6\u4E0D\u6E32\u67D3\u8BE5 div(\u7A7A\u5185\u5BB9\u6C14\u6CE1\u65E0\u4FE1\u606F\u91CF) "),
|
|
40466
|
+
}, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$1, [
|
|
40467
|
+
_cache[11] || (_cache[11] = vue.createElementVNode(
|
|
40468
|
+
"span",
|
|
40469
|
+
{
|
|
40470
|
+
class: "fv-msg-spinner",
|
|
40471
|
+
"aria-hidden": "true"
|
|
40472
|
+
},
|
|
40473
|
+
null,
|
|
40474
|
+
-1
|
|
40475
|
+
/* CACHED */
|
|
40476
|
+
)),
|
|
40593
40477
|
vue.createElementVNode(
|
|
40594
|
-
"
|
|
40595
|
-
|
|
40596
|
-
vue.toDisplayString(
|
|
40478
|
+
"span",
|
|
40479
|
+
_hoisted_14$1,
|
|
40480
|
+
vue.toDisplayString(pendingPhrase.value),
|
|
40597
40481
|
1
|
|
40598
40482
|
/* TEXT */
|
|
40599
40483
|
)
|
|
40600
|
-
],
|
|
40601
|
-
|
|
40602
|
-
|
|
40484
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
40485
|
+
])) : __props.message.content ? (vue.openBlock(), vue.createElementBlock(
|
|
40486
|
+
"div",
|
|
40487
|
+
_hoisted_15$1,
|
|
40488
|
+
vue.toDisplayString(__props.message.content),
|
|
40489
|
+
1
|
|
40490
|
+
/* TEXT */
|
|
40603
40491
|
)) : vue.createCommentVNode("v-if", true),
|
|
40604
|
-
vue.createCommentVNode(" \u64CD\u4F5C\u533A:assistant \u590D\u5236/\u91CD\u751F\u6210 + \u6D88\u606F\u8BC4\u4EF7 + \u5206\u652F\u5207\u6362;user \u4EC5\u590D\u5236(hover \u6D88\u606F\u65F6\u6D6E\u73B0,\u89C1 scss)\u3002\r\n \u590D\u5236/\u91CD\u751F\u6210\u6309\u94AE\u5F85\u56DE\u7B54\u843D\u5B9A(status=done)\u624D\u6E32\u67D3\u2014\u2014\u751F\u6210\u4E2D(pending/streaming)\u4E0D\u51FA\u5DE5\u5177\u6309\u94AE;\r\n error \u65E0\u53EF\u590D\u5236/\u91CD\u751F\u6210\u6B63\u6587\u4E5F\u4E0D\u51FA;\u5206\u652F\u5207\u6362\u5668\u4E0E\u65F6\u95F4\u4E0D\u53D7\u6B64\u95E8\u63A7,\u751F\u6210\u4E2D\u4ECD\u53EF\u5207\u5206\u652F/\u663E\u65F6\u95F4\u3002\r\n feedbackVisible \u72EC\u7ACB\u4E8E showActions:\u5173\u95ED\u64CD\u4F5C\u6309\u94AE\u4E0D\u541E\u8BC4\u4EF7\u5165\u53E3\u3002\r\n \u5BB9\u5668\u663E\u9690 = \u4EFB\u4E00\u5185\u4EF6\u5728\u573A(\u64CD\u4F5C\u6309\u94AE/\u8BC4\u4EF7/\u5206\u652F/\u65F6\u95F4),\u5168\u90E8\u7F3A\u5E2D\u624D\u4E0D\u6E32\u67D3,\u907F\u514D\u7A7A\u64CD\u4F5C\u533A\u5360\u4F4D "),
|
|
40605
40492
|
actionsVisible.value || feedbackVisible.value && !isToolOnlyRow.value || __props.showBranchSwitch && __props.branch && __props.branch.count > 1 || messageTimeText.value && timeVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$1, [
|
|
40606
40493
|
vue.renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
|
|
40607
|
-
vue.createCommentVNode(" \u5DE5\u5177\u6309\u94AE\u7528\u539F\u751F button \u81EA\u7ED8(.fv-msg-action,\u89C1 scss):EP text small \u9ED8\u8BA4\r\n \u6A2A\u5411 padding 11px \u4E14 1em \u56FE\u6807\u968F\u6309\u94AE\u5B57\u53F7\u4EC5 12px,\u8FC7\u677E\u8FC7\u5C0F;\u539F\u751F\u6309\u94AE\r\n 3px \u5185\u8DDD + 16px \u56FE\u6807,\u6574\u6392\u7D27\u51D1\u4E14\u56FE\u6807\u5927\u5C0F\u4E0E\u8BC4\u4EF7\u56FE\u6807(\u56FA\u5B9A 16px)\u4E00\u81F4 "),
|
|
40608
40494
|
actionsVisible.value && isUser.value && userCopyVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
40609
40495
|
key: 0,
|
|
40610
40496
|
content: vue.unref(dict).aiMessage.copy,
|
|
@@ -40677,7 +40563,6 @@
|
|
|
40677
40563
|
_: 1
|
|
40678
40564
|
/* STABLE */
|
|
40679
40565
|
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
40680
|
-
vue.createCommentVNode(" \u6D88\u606F\u8BC4\u4EF7 \u{1F44D}/\u{1F44E}(assistant \u6700\u7EC8\u56DE\u7B54\u884C;\u518D\u6B21\u70B9\u51FB\u5F53\u524D\u6001\u53D6\u6D88):\r\n \u70B9\u8E29\u5E26\u9644\u8A00\u5F39\u7A97(\u5C45\u4E2D ElDialog,textarea \u2264500 \u53EF\u8DF3\u8FC7),\u4E50\u89C2\u66F4\u65B0\u5931\u8D25\u56DE\u6EDA "),
|
|
40681
40566
|
feedbackVisible.value && !isToolOnlyRow.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_20, [
|
|
40682
40567
|
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
40683
40568
|
content: vue.unref(dict).aiMessage.feedback.like,
|
|
@@ -40737,7 +40622,6 @@
|
|
|
40737
40622
|
}, 8, ["content"])
|
|
40738
40623
|
])) : vue.createCommentVNode("v-if", true)
|
|
40739
40624
|
]),
|
|
40740
|
-
vue.createCommentVNode(" \u5206\u652F\u5207\u6362:\u5144\u5F1F\u5206\u652F > 1 \u65F6 "),
|
|
40741
40625
|
__props.showBranchSwitch && __props.branch && __props.branch.count > 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_23, [
|
|
40742
40626
|
vue.createElementVNode("button", {
|
|
40743
40627
|
type: "button",
|
|
@@ -40777,7 +40661,6 @@
|
|
|
40777
40661
|
})
|
|
40778
40662
|
], 8, _hoisted_26)
|
|
40779
40663
|
])) : vue.createCommentVNode("v-if", true),
|
|
40780
|
-
vue.createCommentVNode(" \u6D88\u606F\u65F6\u95F4:\u8DDF\u5728\u64CD\u4F5C\u6309\u94AE\u4E0E\u5206\u652F\u5207\u6362\u4E4B\u540E;user \u6D88\u606F hover \u9690\u85CF\u6309\u94AE\u4E0D\u5F71\u54CD\u65F6\u95F4\u5E38\u9A7B;\r\n assistant \u751F\u6210\u4E2D\u4E0D\u663E,\u6B63\u6587\u6253\u5B8C\u5B57(\u6216 error)\u540E\u624D\u6D6E\u73B0 "),
|
|
40781
40664
|
messageTimeText.value && timeVisible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
40782
40665
|
"span",
|
|
40783
40666
|
_hoisted_27,
|
|
@@ -40786,7 +40669,6 @@
|
|
|
40786
40669
|
/* TEXT */
|
|
40787
40670
|
)) : vue.createCommentVNode("v-if", true)
|
|
40788
40671
|
])) : vue.createCommentVNode("v-if", true),
|
|
40789
|
-
vue.createCommentVNode(" \u8FFD\u95EE\u5EFA\u8BAE:\u64CD\u4F5C\u533A(\u5DE5\u5177\u680F)\u4E0B\u65B9,\u5206\u9694\u7EBF + \u52A0\u7C97\u300C\u8FFD\u95EE\u300D\u6807\u9898\u5F15\u51FA;\u7EB5\u5411\u5217\u8868\u4E00\u884C\u4E00\u6761\r\n (followupStyle='chips' \u5207\u56DE\u65E7\u6A2A\u5411\u6C14\u6CE1\u5F62\u6001,\u65E0\u6807\u9898)\u3002\u5386\u53F2\u6D88\u606F\u540C\u6837\u6E32\u67D3;\r\n \u6B63\u6587\u6253\u5B57\u6548\u679C\u5B8C\u6210\u540E\u624D\u6E32\u67D3(\u6D41\u5F0F suggestions \u4E8B\u4EF6\u5230\u8FBE\u4E0D\u51FA,\u843D\u5B9A+\u6253\u5B8C\u5B57\u6574\u4F53\u6D6E\u73B0),\r\n \u843D\u5B9A\u540E\u53EF\u70B9\u51FB,\u70B9\u51FB\u7ECF followup-select \u4E0A\u629B "),
|
|
40790
40672
|
followups.value.length && followupsVisible.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
40791
40673
|
key: 7,
|
|
40792
40674
|
class: vue.normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
|
|
@@ -40819,7 +40701,6 @@
|
|
|
40819
40701
|
))
|
|
40820
40702
|
], 10, _hoisted_28)) : vue.createCommentVNode("v-if", true)
|
|
40821
40703
|
]),
|
|
40822
|
-
vue.createCommentVNode(" \u70B9\u8E29\u9644\u8A00\u5F39\u7A97:\u5C45\u4E2D\u5F39\u7A97(ElDialog,teleported + align-center),\u4E0D\u518D\u968F\u64CD\u4F5C\u533A\u5B9A\u4F4D\u2014\u2014\r\n \u6700\u5E95\u4E00\u6761\u6D88\u606F\u7684\u9644\u8A00\u5C42\u5F80\u4E0B\u5F39\u4F1A\u88AB\u6EDA\u52A8\u533A\u88C1\u526A,\u4E0D\u6613\u6EDA\u5230\u5E95\u770B\u5230;\u5F39\u7A97\u5C45\u4E2D\u4E00\u5C4F\u5185\u53EF\u89C1\u3002\r\n \u70B9\u906E\u7F69/ESC \u5173\u95ED(\u8349\u7A3F\u4FDD\u7559\u5728\u672C\u5730,\u518D\u70B9 \u{1F44E} \u590D\u586B);submit/skip \u8BED\u4E49\u540C\u64CD\u4F5C\u533A\u6309\u94AE "),
|
|
40823
40704
|
feedbackVisible.value && !isToolOnlyRow.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
|
|
40824
40705
|
key: 1,
|
|
40825
40706
|
modelValue: dislikePopVisible.value,
|
|
@@ -40886,7 +40767,11 @@
|
|
|
40886
40767
|
key: 0,
|
|
40887
40768
|
class: "fv-messages-empty"
|
|
40888
40769
|
};
|
|
40889
|
-
const _hoisted_3$5 = {
|
|
40770
|
+
const _hoisted_3$5 = {
|
|
40771
|
+
key: 1,
|
|
40772
|
+
class: "fv-welcome-suggestions-footer"
|
|
40773
|
+
};
|
|
40774
|
+
const _hoisted_4$3 = { class: "fv-messages-inner" };
|
|
40890
40775
|
var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
40891
40776
|
...{ name: "FvAiMessages" },
|
|
40892
40777
|
__name: "index",
|
|
@@ -40900,6 +40785,8 @@
|
|
|
40900
40785
|
suggestionsTitle: { type: String, required: false, default: "" },
|
|
40901
40786
|
suggestionsWrap: { type: Boolean, required: false, default: true },
|
|
40902
40787
|
welcomeLayout: { type: String, required: false, default: "horizontal" },
|
|
40788
|
+
showRefreshSuggestions: { type: Boolean, required: false, default: false },
|
|
40789
|
+
refreshSuggestionsText: { type: String, required: false, default: "" },
|
|
40903
40790
|
scrollThreshold: { type: Number, required: false, default: 100 },
|
|
40904
40791
|
showScrollButton: { type: Boolean, required: false, default: true },
|
|
40905
40792
|
scrollButtonThreshold: { type: Number, required: false, default: 100 },
|
|
@@ -40928,7 +40815,7 @@
|
|
|
40928
40815
|
feedbackHandler: { type: Function, required: false, default: void 0 },
|
|
40929
40816
|
locale: { type: null, required: false }
|
|
40930
40817
|
},
|
|
40931
|
-
emits: ["select", "copy", "regenerate", "branch-change", "scroll", "followup-select", "message-file-click", "feedback-change", "feedback-error"],
|
|
40818
|
+
emits: ["select", "copy", "regenerate", "branch-change", "scroll", "followup-select", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
|
|
40932
40819
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40933
40820
|
const props = __props;
|
|
40934
40821
|
const dict = useLocaleDict(() => props.locale);
|
|
@@ -40937,6 +40824,10 @@
|
|
|
40937
40824
|
followIfPinned();
|
|
40938
40825
|
}
|
|
40939
40826
|
const isEmpty = vue.computed(() => props.messages.length === 0);
|
|
40827
|
+
const slots = vue.useSlots();
|
|
40828
|
+
const hasRefreshFooter = vue.computed(
|
|
40829
|
+
() => props.showRefreshSuggestions || !!slots["refresh-suggestions"] || !!slots["suggestions-footer"]
|
|
40830
|
+
);
|
|
40940
40831
|
const scrollRef = vue.ref(null);
|
|
40941
40832
|
function distanceFromBottom() {
|
|
40942
40833
|
const el = scrollRef.value;
|
|
@@ -41093,7 +40984,6 @@
|
|
|
41093
40984
|
__expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
|
|
41094
40985
|
return (_ctx, _cache) => {
|
|
41095
40986
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
41096
|
-
vue.createCommentVNode(" \u7A7A\u6001:Welcome(\u6587\u6848 + #suggestions \u5185 Prompts \u5FEB\u6377\u6761,\u6A2A\u6392:\u6587\u6848\u4E0E\u5FEB\u6377\u6761\u540C\u5217\u9760\u5DE6,\r\n \u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u5FEB\u6377\u6761\u9876\u9AD8) "),
|
|
41097
40987
|
isEmpty.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
|
|
41098
40988
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
41099
40989
|
vue.createVNode(_sfc_main$e, {
|
|
@@ -41104,7 +40994,6 @@
|
|
|
41104
40994
|
locale: __props.locale
|
|
41105
40995
|
}, vue.createSlots({
|
|
41106
40996
|
suggestions: vue.withCtx(() => [
|
|
41107
|
-
vue.createCommentVNode(" welcome-suggestions \u63D2\u69FD\u6574\u4F53\u66FF\u6362\u9ED8\u8BA4 Prompts \u6E32\u67D3 "),
|
|
41108
40997
|
vue.renderSlot(_ctx.$slots, "welcome-suggestions", {}, () => [
|
|
41109
40998
|
__props.suggestions.length ? (vue.openBlock(), vue.createBlock(_sfc_main$d, {
|
|
41110
40999
|
key: 0,
|
|
@@ -41113,7 +41002,69 @@
|
|
|
41113
41002
|
title: __props.suggestionsTitle,
|
|
41114
41003
|
wrap: __props.suggestionsWrap,
|
|
41115
41004
|
onSelect
|
|
41116
|
-
},
|
|
41005
|
+
}, vue.createSlots({
|
|
41006
|
+
_: 2
|
|
41007
|
+
/* DYNAMIC */
|
|
41008
|
+
}, [
|
|
41009
|
+
hasRefreshFooter.value && __props.welcomeLayout === "horizontal" ? {
|
|
41010
|
+
name: "footer",
|
|
41011
|
+
fn: vue.withCtx(() => [
|
|
41012
|
+
_ctx.$slots["refresh-suggestions"] ? vue.renderSlot(_ctx.$slots, "refresh-suggestions", {}, void 0, void 0, 0) : __props.showRefreshSuggestions ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
41013
|
+
key: 1,
|
|
41014
|
+
class: "fv-welcome-refresh",
|
|
41015
|
+
text: "",
|
|
41016
|
+
size: "small",
|
|
41017
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("refresh-suggestions"))
|
|
41018
|
+
}, {
|
|
41019
|
+
default: vue.withCtx(() => [
|
|
41020
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-welcome-refresh-icon" }, {
|
|
41021
|
+
default: vue.withCtx(() => [
|
|
41022
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.RefreshRight))
|
|
41023
|
+
]),
|
|
41024
|
+
_: 1
|
|
41025
|
+
/* STABLE */
|
|
41026
|
+
}),
|
|
41027
|
+
vue.createTextVNode(
|
|
41028
|
+
" " + vue.toDisplayString(__props.refreshSuggestionsText || vue.unref(dict).welcome.refreshSuggestions),
|
|
41029
|
+
1
|
|
41030
|
+
/* TEXT */
|
|
41031
|
+
)
|
|
41032
|
+
]),
|
|
41033
|
+
_: 1
|
|
41034
|
+
/* STABLE */
|
|
41035
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
41036
|
+
_ctx.$slots["suggestions-footer"] ? vue.renderSlot(_ctx.$slots, "suggestions-footer", {}, void 0, void 0, 2) : vue.createCommentVNode("v-if", true)
|
|
41037
|
+
]),
|
|
41038
|
+
key: "0"
|
|
41039
|
+
} : void 0
|
|
41040
|
+
]), 1032, ["prompts", "title", "wrap"])) : vue.createCommentVNode("v-if", true),
|
|
41041
|
+
hasRefreshFooter.value && __props.welcomeLayout === "vertical" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [
|
|
41042
|
+
_ctx.$slots["refresh-suggestions"] ? vue.renderSlot(_ctx.$slots, "refresh-suggestions", {}, void 0, void 0, 0) : __props.showRefreshSuggestions ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
41043
|
+
key: 1,
|
|
41044
|
+
class: "fv-welcome-refresh",
|
|
41045
|
+
text: "",
|
|
41046
|
+
size: "small",
|
|
41047
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("refresh-suggestions"))
|
|
41048
|
+
}, {
|
|
41049
|
+
default: vue.withCtx(() => [
|
|
41050
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-welcome-refresh-icon" }, {
|
|
41051
|
+
default: vue.withCtx(() => [
|
|
41052
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.RefreshRight))
|
|
41053
|
+
]),
|
|
41054
|
+
_: 1
|
|
41055
|
+
/* STABLE */
|
|
41056
|
+
}),
|
|
41057
|
+
vue.createTextVNode(
|
|
41058
|
+
" " + vue.toDisplayString(__props.refreshSuggestionsText || vue.unref(dict).welcome.refreshSuggestions),
|
|
41059
|
+
1
|
|
41060
|
+
/* TEXT */
|
|
41061
|
+
)
|
|
41062
|
+
]),
|
|
41063
|
+
_: 1
|
|
41064
|
+
/* STABLE */
|
|
41065
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
41066
|
+
_ctx.$slots["suggestions-footer"] ? vue.renderSlot(_ctx.$slots, "suggestions-footer", {}, void 0, void 0, 2) : vue.createCommentVNode("v-if", true)
|
|
41067
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
41117
41068
|
])
|
|
41118
41069
|
]),
|
|
41119
41070
|
_: 2
|
|
@@ -41143,154 +41094,145 @@
|
|
|
41143
41094
|
]), 1032, ["icon", "name", "description", "layout", "locale"])
|
|
41144
41095
|
])
|
|
41145
41096
|
])) : (vue.openBlock(), vue.createElementBlock(
|
|
41146
|
-
|
|
41147
|
-
{
|
|
41097
|
+
"div",
|
|
41098
|
+
{
|
|
41099
|
+
key: 1,
|
|
41100
|
+
ref_key: "scrollRef",
|
|
41101
|
+
ref: scrollRef,
|
|
41102
|
+
class: "fv-messages-scroll",
|
|
41103
|
+
onScrollPassive: onScroll
|
|
41104
|
+
},
|
|
41148
41105
|
[
|
|
41149
|
-
vue.
|
|
41150
|
-
|
|
41151
|
-
|
|
41152
|
-
|
|
41153
|
-
|
|
41154
|
-
|
|
41155
|
-
|
|
41156
|
-
|
|
41157
|
-
|
|
41158
|
-
|
|
41159
|
-
|
|
41160
|
-
|
|
41161
|
-
|
|
41162
|
-
|
|
41163
|
-
|
|
41164
|
-
|
|
41165
|
-
|
|
41166
|
-
|
|
41167
|
-
|
|
41168
|
-
|
|
41169
|
-
|
|
41170
|
-
|
|
41171
|
-
|
|
41172
|
-
|
|
41173
|
-
|
|
41174
|
-
|
|
41175
|
-
|
|
41176
|
-
|
|
41177
|
-
|
|
41178
|
-
|
|
41179
|
-
|
|
41180
|
-
|
|
41181
|
-
|
|
41182
|
-
|
|
41183
|
-
|
|
41184
|
-
|
|
41185
|
-
|
|
41186
|
-
|
|
41187
|
-
|
|
41188
|
-
|
|
41189
|
-
|
|
41190
|
-
|
|
41191
|
-
|
|
41192
|
-
|
|
41193
|
-
|
|
41194
|
-
|
|
41195
|
-
|
|
41196
|
-
|
|
41197
|
-
|
|
41198
|
-
|
|
41199
|
-
|
|
41200
|
-
|
|
41201
|
-
|
|
41202
|
-
|
|
41203
|
-
|
|
41204
|
-
|
|
41205
|
-
|
|
41206
|
-
_ctx.$slots
|
|
41207
|
-
|
|
41208
|
-
|
|
41209
|
-
|
|
41210
|
-
|
|
41211
|
-
|
|
41212
|
-
|
|
41213
|
-
_ctx.$slots
|
|
41214
|
-
|
|
41215
|
-
|
|
41216
|
-
|
|
41217
|
-
|
|
41218
|
-
|
|
41219
|
-
|
|
41220
|
-
_ctx.$slots
|
|
41221
|
-
|
|
41222
|
-
|
|
41223
|
-
|
|
41224
|
-
|
|
41225
|
-
|
|
41226
|
-
|
|
41227
|
-
_ctx.$slots
|
|
41228
|
-
|
|
41229
|
-
|
|
41230
|
-
|
|
41231
|
-
|
|
41232
|
-
|
|
41233
|
-
|
|
41234
|
-
_ctx.$slots
|
|
41235
|
-
|
|
41236
|
-
|
|
41237
|
-
|
|
41238
|
-
|
|
41239
|
-
|
|
41240
|
-
|
|
41241
|
-
|
|
41242
|
-
|
|
41243
|
-
|
|
41244
|
-
|
|
41245
|
-
|
|
41246
|
-
|
|
41247
|
-
|
|
41248
|
-
|
|
41249
|
-
|
|
41250
|
-
|
|
41251
|
-
|
|
41252
|
-
|
|
41253
|
-
|
|
41254
|
-
|
|
41255
|
-
|
|
41256
|
-
vue.
|
|
41257
|
-
|
|
41258
|
-
awayFromBottom: isAwayFromBottom.value
|
|
41259
|
-
}, () => [
|
|
41260
|
-
__props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
41261
|
-
key: 0,
|
|
41262
|
-
class: "fv-messages-back",
|
|
41263
|
-
circle: "",
|
|
41264
|
-
"aria-label": vue.unref(dict).scroll.toBottom,
|
|
41265
|
-
onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
|
|
41266
|
-
}, {
|
|
41106
|
+
vue.createElementVNode("div", _hoisted_4$3, [
|
|
41107
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
41108
|
+
vue.Fragment,
|
|
41109
|
+
null,
|
|
41110
|
+
vue.renderList(__props.messages, (m) => {
|
|
41111
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$7, {
|
|
41112
|
+
key: m.id,
|
|
41113
|
+
ref_for: true,
|
|
41114
|
+
ref: (el) => setMessageRef(m.id, el),
|
|
41115
|
+
message: m,
|
|
41116
|
+
branch: branchInfo(m),
|
|
41117
|
+
"is-last": m.id === lastMessageId.value,
|
|
41118
|
+
"show-actions": __props.showActions,
|
|
41119
|
+
"copy-to-clipboard": __props.copyToClipboard,
|
|
41120
|
+
"show-branch-switch": __props.showBranchSwitch,
|
|
41121
|
+
"show-user-avatar": __props.showUserAvatar,
|
|
41122
|
+
"show-user-name": __props.showUserName,
|
|
41123
|
+
"show-assistant-avatar": __props.showAssistantAvatar,
|
|
41124
|
+
"show-assistant-name": __props.showAssistantName,
|
|
41125
|
+
"user-avatar": __props.userAvatar,
|
|
41126
|
+
"assistant-avatar": __props.assistantAvatar,
|
|
41127
|
+
"assistant-avatar-scale": __props.assistantAvatarScale,
|
|
41128
|
+
"avatar-circle": __props.avatarCircle,
|
|
41129
|
+
"user-name": __props.userName,
|
|
41130
|
+
"assistant-name": __props.assistantName,
|
|
41131
|
+
typing: __props.typing,
|
|
41132
|
+
"auto-collapse": __props.autoCollapse,
|
|
41133
|
+
collapsible: __props.collapsible,
|
|
41134
|
+
"show-duration": __props.showDuration,
|
|
41135
|
+
"show-time": __props.showTime,
|
|
41136
|
+
"time-format": __props.timeFormat,
|
|
41137
|
+
"followup-style": __props.followupStyle,
|
|
41138
|
+
"code-trigger-langs": __props.codeTriggerLangs,
|
|
41139
|
+
"resolve-file-url": __props.resolveFileUrl,
|
|
41140
|
+
"feedback-handler": __props.feedbackHandler,
|
|
41141
|
+
onTyping: onChildTyping,
|
|
41142
|
+
onCopy,
|
|
41143
|
+
onRegenerate,
|
|
41144
|
+
onBranchChange: onBranch,
|
|
41145
|
+
onFollowupSelect: onFollowup,
|
|
41146
|
+
onFileClick,
|
|
41147
|
+
onFeedbackChange,
|
|
41148
|
+
onFeedbackError
|
|
41149
|
+
}, vue.createSlots({
|
|
41150
|
+
_: 2
|
|
41151
|
+
/* DYNAMIC */
|
|
41152
|
+
}, [
|
|
41153
|
+
_ctx.$slots["message-avatar"] ? {
|
|
41154
|
+
name: "message-avatar",
|
|
41155
|
+
fn: vue.withCtx((scope) => [
|
|
41156
|
+
vue.renderSlot(_ctx.$slots, "message-avatar", vue.mergeProps({ ref_for: true }, scope))
|
|
41157
|
+
]),
|
|
41158
|
+
key: "0"
|
|
41159
|
+
} : void 0,
|
|
41160
|
+
_ctx.$slots["message-actions"] ? {
|
|
41161
|
+
name: "message-actions",
|
|
41162
|
+
fn: vue.withCtx((scope) => [
|
|
41163
|
+
vue.renderSlot(_ctx.$slots, "message-actions", vue.mergeProps({ ref_for: true }, scope))
|
|
41164
|
+
]),
|
|
41165
|
+
key: "1"
|
|
41166
|
+
} : void 0,
|
|
41167
|
+
_ctx.$slots["user-avatar"] ? {
|
|
41168
|
+
name: "user-avatar",
|
|
41169
|
+
fn: vue.withCtx(() => [
|
|
41170
|
+
vue.renderSlot(_ctx.$slots, "user-avatar")
|
|
41171
|
+
]),
|
|
41172
|
+
key: "2"
|
|
41173
|
+
} : void 0,
|
|
41174
|
+
_ctx.$slots["assistant-avatar"] ? {
|
|
41175
|
+
name: "assistant-avatar",
|
|
41176
|
+
fn: vue.withCtx((scope) => [
|
|
41177
|
+
vue.renderSlot(_ctx.$slots, "assistant-avatar", vue.mergeProps({ ref_for: true }, scope))
|
|
41178
|
+
]),
|
|
41179
|
+
key: "3"
|
|
41180
|
+
} : void 0,
|
|
41181
|
+
_ctx.$slots["user-name"] ? {
|
|
41182
|
+
name: "user-name",
|
|
41183
|
+
fn: vue.withCtx((scope) => [
|
|
41184
|
+
vue.renderSlot(_ctx.$slots, "user-name", vue.mergeProps({ ref_for: true }, scope))
|
|
41185
|
+
]),
|
|
41186
|
+
key: "4"
|
|
41187
|
+
} : void 0,
|
|
41188
|
+
_ctx.$slots["assistant-name"] ? {
|
|
41189
|
+
name: "assistant-name",
|
|
41190
|
+
fn: vue.withCtx((scope) => [
|
|
41191
|
+
vue.renderSlot(_ctx.$slots, "assistant-name", vue.mergeProps({ ref_for: true }, scope))
|
|
41192
|
+
]),
|
|
41193
|
+
key: "5"
|
|
41194
|
+
} : void 0
|
|
41195
|
+
]), 1032, ["message", "branch", "is-last", "show-actions", "copy-to-clipboard", "show-branch-switch", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "followup-style", "code-trigger-langs", "resolve-file-url", "feedback-handler"]);
|
|
41196
|
+
}),
|
|
41197
|
+
128
|
|
41198
|
+
/* KEYED_FRAGMENT */
|
|
41199
|
+
)),
|
|
41200
|
+
vue.createVNode(vue.Transition, { name: "fv-messages-back-fade" }, {
|
|
41201
|
+
default: vue.withCtx(() => [
|
|
41202
|
+
vue.renderSlot(_ctx.$slots, "scroll-button", {
|
|
41203
|
+
scrollToBottom,
|
|
41204
|
+
awayFromBottom: isAwayFromBottom.value
|
|
41205
|
+
}, () => [
|
|
41206
|
+
__props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
41207
|
+
key: 0,
|
|
41208
|
+
class: "fv-messages-back",
|
|
41209
|
+
circle: "",
|
|
41210
|
+
"aria-label": vue.unref(dict).scroll.toBottom,
|
|
41211
|
+
onClick: _cache[2] || (_cache[2] = ($event) => scrollToBottom())
|
|
41212
|
+
}, {
|
|
41213
|
+
default: vue.withCtx(() => [
|
|
41214
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-messages-back-icon" }, {
|
|
41267
41215
|
default: vue.withCtx(() => [
|
|
41268
|
-
vue.
|
|
41269
|
-
|
|
41270
|
-
|
|
41271
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Bottom))
|
|
41272
|
-
])
|
|
41273
|
-
]),
|
|
41274
|
-
_: 3
|
|
41275
|
-
/* FORWARDED */
|
|
41276
|
-
})
|
|
41216
|
+
vue.renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
|
|
41217
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Bottom))
|
|
41218
|
+
])
|
|
41277
41219
|
]),
|
|
41278
41220
|
_: 3
|
|
41279
41221
|
/* FORWARDED */
|
|
41280
|
-
}
|
|
41281
|
-
])
|
|
41282
|
-
|
|
41283
|
-
|
|
41284
|
-
|
|
41285
|
-
|
|
41286
|
-
])
|
|
41287
|
-
|
|
41288
|
-
|
|
41289
|
-
|
|
41290
|
-
)
|
|
41222
|
+
})
|
|
41223
|
+
]),
|
|
41224
|
+
_: 3
|
|
41225
|
+
/* FORWARDED */
|
|
41226
|
+
}, 8, ["aria-label"])) : vue.createCommentVNode("v-if", true)
|
|
41227
|
+
])
|
|
41228
|
+
]),
|
|
41229
|
+
_: 3
|
|
41230
|
+
/* FORWARDED */
|
|
41231
|
+
})
|
|
41232
|
+
])
|
|
41291
41233
|
],
|
|
41292
|
-
|
|
41293
|
-
/*
|
|
41234
|
+
544
|
|
41235
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
41294
41236
|
))
|
|
41295
41237
|
]);
|
|
41296
41238
|
};
|
|
@@ -41403,139 +41345,110 @@
|
|
|
41403
41345
|
}
|
|
41404
41346
|
__expose({ open, close });
|
|
41405
41347
|
return (_ctx, _cache) => {
|
|
41406
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
41407
|
-
|
|
41408
|
-
|
|
41348
|
+
return visible.value && current.value ? (vue.openBlock(), vue.createElementBlock(
|
|
41349
|
+
"div",
|
|
41350
|
+
{
|
|
41351
|
+
key: 0,
|
|
41352
|
+
class: "fv-artifacts",
|
|
41353
|
+
style: vue.normalizeStyle({
|
|
41354
|
+
"--fv-artifacts-width": __props.width,
|
|
41355
|
+
"--fv-artifacts-min-width": __props.minWidth,
|
|
41356
|
+
"--fv-artifacts-max-width": __props.maxWidth
|
|
41357
|
+
})
|
|
41358
|
+
},
|
|
41409
41359
|
[
|
|
41410
|
-
vue.
|
|
41411
|
-
|
|
41412
|
-
|
|
41413
|
-
|
|
41414
|
-
|
|
41415
|
-
|
|
41416
|
-
|
|
41417
|
-
|
|
41418
|
-
|
|
41419
|
-
|
|
41420
|
-
|
|
41421
|
-
|
|
41422
|
-
|
|
41423
|
-
|
|
41424
|
-
|
|
41425
|
-
|
|
41426
|
-
|
|
41427
|
-
|
|
41428
|
-
|
|
41429
|
-
|
|
41430
|
-
|
|
41431
|
-
|
|
41432
|
-
|
|
41433
|
-
|
|
41434
|
-
|
|
41435
|
-
|
|
41436
|
-
|
|
41437
|
-
|
|
41438
|
-
|
|
41439
|
-
|
|
41440
|
-
"
|
|
41441
|
-
|
|
41442
|
-
null,
|
|
41443
|
-
-1
|
|
41444
|
-
/* CACHED */
|
|
41445
|
-
)),
|
|
41446
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
41447
|
-
content: vue.unref(dict).aiArtifacts.copy,
|
|
41448
|
-
placement: "top"
|
|
41449
|
-
}, {
|
|
41450
|
-
default: vue.withCtx(() => [
|
|
41451
|
-
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
41452
|
-
text: "",
|
|
41453
|
-
size: "small",
|
|
41454
|
-
"aria-label": vue.unref(dict).aiArtifacts.copy,
|
|
41455
|
-
onClick: onCopy
|
|
41456
|
-
}, {
|
|
41457
|
-
default: vue.withCtx(() => [
|
|
41458
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
41459
|
-
default: vue.withCtx(() => [
|
|
41460
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.CopyDocument))
|
|
41461
|
-
]),
|
|
41462
|
-
_: 1
|
|
41463
|
-
/* STABLE */
|
|
41464
|
-
})
|
|
41465
|
-
]),
|
|
41466
|
-
_: 1
|
|
41467
|
-
/* STABLE */
|
|
41468
|
-
}, 8, ["aria-label"])
|
|
41469
|
-
]),
|
|
41470
|
-
_: 1
|
|
41471
|
-
/* STABLE */
|
|
41472
|
-
}, 8, ["content"]),
|
|
41473
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
41474
|
-
content: vue.unref(dict).aiArtifacts.download,
|
|
41475
|
-
placement: "top"
|
|
41360
|
+
vue.createElementVNode("div", _hoisted_1$5, [
|
|
41361
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
41362
|
+
vue.Fragment,
|
|
41363
|
+
null,
|
|
41364
|
+
vue.renderList(__props.artifacts, (a) => {
|
|
41365
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
41366
|
+
key: a.key,
|
|
41367
|
+
type: "button",
|
|
41368
|
+
class: vue.normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
|
|
41369
|
+
onClick: ($event) => select(a.key)
|
|
41370
|
+
}, vue.toDisplayString(a.title || a.key), 11, _hoisted_2$4);
|
|
41371
|
+
}),
|
|
41372
|
+
128
|
|
41373
|
+
/* KEYED_FRAGMENT */
|
|
41374
|
+
)),
|
|
41375
|
+
_cache[0] || (_cache[0] = vue.createElementVNode(
|
|
41376
|
+
"span",
|
|
41377
|
+
{ class: "fv-artifacts-spacer" },
|
|
41378
|
+
null,
|
|
41379
|
+
-1
|
|
41380
|
+
/* CACHED */
|
|
41381
|
+
)),
|
|
41382
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
41383
|
+
content: vue.unref(dict).aiArtifacts.copy,
|
|
41384
|
+
placement: "top"
|
|
41385
|
+
}, {
|
|
41386
|
+
default: vue.withCtx(() => [
|
|
41387
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
41388
|
+
text: "",
|
|
41389
|
+
size: "small",
|
|
41390
|
+
"aria-label": vue.unref(dict).aiArtifacts.copy,
|
|
41391
|
+
onClick: onCopy
|
|
41476
41392
|
}, {
|
|
41477
41393
|
default: vue.withCtx(() => [
|
|
41478
|
-
vue.createVNode(vue.unref(elementPlus.
|
|
41479
|
-
text: "",
|
|
41480
|
-
size: "small",
|
|
41481
|
-
"aria-label": vue.unref(dict).aiArtifacts.download,
|
|
41482
|
-
onClick: onDownload
|
|
41483
|
-
}, {
|
|
41394
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
41484
41395
|
default: vue.withCtx(() => [
|
|
41485
|
-
vue.createVNode(vue.unref(
|
|
41486
|
-
default: vue.withCtx(() => [
|
|
41487
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
|
|
41488
|
-
]),
|
|
41489
|
-
_: 1
|
|
41490
|
-
/* STABLE */
|
|
41491
|
-
})
|
|
41396
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.CopyDocument))
|
|
41492
41397
|
]),
|
|
41493
41398
|
_: 1
|
|
41494
41399
|
/* STABLE */
|
|
41495
|
-
}
|
|
41400
|
+
})
|
|
41496
41401
|
]),
|
|
41497
41402
|
_: 1
|
|
41498
41403
|
/* STABLE */
|
|
41499
|
-
}, 8, ["
|
|
41500
|
-
|
|
41501
|
-
|
|
41502
|
-
|
|
41503
|
-
|
|
41404
|
+
}, 8, ["aria-label"])
|
|
41405
|
+
]),
|
|
41406
|
+
_: 1
|
|
41407
|
+
/* STABLE */
|
|
41408
|
+
}, 8, ["content"]),
|
|
41409
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
41410
|
+
content: vue.unref(dict).aiArtifacts.download,
|
|
41411
|
+
placement: "top"
|
|
41412
|
+
}, {
|
|
41413
|
+
default: vue.withCtx(() => [
|
|
41414
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
41415
|
+
text: "",
|
|
41416
|
+
size: "small",
|
|
41417
|
+
"aria-label": vue.unref(dict).aiArtifacts.download,
|
|
41418
|
+
onClick: onDownload
|
|
41504
41419
|
}, {
|
|
41505
41420
|
default: vue.withCtx(() => [
|
|
41506
|
-
vue.createVNode(vue.unref(elementPlus.
|
|
41507
|
-
text: "",
|
|
41508
|
-
size: "small",
|
|
41509
|
-
"aria-label": vue.unref(dict).aiArtifacts.fullscreen,
|
|
41510
|
-
onClick: onFullscreen
|
|
41511
|
-
}, {
|
|
41421
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
41512
41422
|
default: vue.withCtx(() => [
|
|
41513
|
-
vue.createVNode(vue.unref(
|
|
41514
|
-
default: vue.withCtx(() => [
|
|
41515
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.FullScreen))
|
|
41516
|
-
]),
|
|
41517
|
-
_: 1
|
|
41518
|
-
/* STABLE */
|
|
41519
|
-
})
|
|
41423
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
|
|
41520
41424
|
]),
|
|
41521
41425
|
_: 1
|
|
41522
41426
|
/* STABLE */
|
|
41523
|
-
}
|
|
41427
|
+
})
|
|
41524
41428
|
]),
|
|
41525
41429
|
_: 1
|
|
41526
41430
|
/* STABLE */
|
|
41527
|
-
}, 8, ["
|
|
41431
|
+
}, 8, ["aria-label"])
|
|
41432
|
+
]),
|
|
41433
|
+
_: 1
|
|
41434
|
+
/* STABLE */
|
|
41435
|
+
}, 8, ["content"]),
|
|
41436
|
+
current.value?.type === "html" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
41437
|
+
key: 0,
|
|
41438
|
+
content: vue.unref(dict).aiArtifacts.fullscreen,
|
|
41439
|
+
placement: "top"
|
|
41440
|
+
}, {
|
|
41441
|
+
default: vue.withCtx(() => [
|
|
41528
41442
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
41529
41443
|
text: "",
|
|
41530
41444
|
size: "small",
|
|
41531
|
-
|
|
41532
|
-
|
|
41533
|
-
onClick: onClose
|
|
41445
|
+
"aria-label": vue.unref(dict).aiArtifacts.fullscreen,
|
|
41446
|
+
onClick: onFullscreen
|
|
41534
41447
|
}, {
|
|
41535
41448
|
default: vue.withCtx(() => [
|
|
41536
41449
|
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
41537
41450
|
default: vue.withCtx(() => [
|
|
41538
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.
|
|
41451
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.FullScreen))
|
|
41539
41452
|
]),
|
|
41540
41453
|
_: 1
|
|
41541
41454
|
/* STABLE */
|
|
@@ -41545,23 +41458,41 @@
|
|
|
41545
41458
|
/* STABLE */
|
|
41546
41459
|
}, 8, ["aria-label"])
|
|
41547
41460
|
]),
|
|
41548
|
-
|
|
41549
|
-
|
|
41550
|
-
|
|
41551
|
-
|
|
41552
|
-
|
|
41553
|
-
|
|
41554
|
-
|
|
41555
|
-
|
|
41556
|
-
|
|
41557
|
-
|
|
41558
|
-
|
|
41559
|
-
|
|
41560
|
-
|
|
41461
|
+
_: 1
|
|
41462
|
+
/* STABLE */
|
|
41463
|
+
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
41464
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
41465
|
+
text: "",
|
|
41466
|
+
size: "small",
|
|
41467
|
+
class: "fv-artifacts-close",
|
|
41468
|
+
"aria-label": vue.unref(dict).aiArtifacts.close,
|
|
41469
|
+
onClick: onClose
|
|
41470
|
+
}, {
|
|
41471
|
+
default: vue.withCtx(() => [
|
|
41472
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
41473
|
+
default: vue.withCtx(() => [
|
|
41474
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
|
|
41475
|
+
]),
|
|
41476
|
+
_: 1
|
|
41477
|
+
/* STABLE */
|
|
41478
|
+
})
|
|
41479
|
+
]),
|
|
41480
|
+
_: 1
|
|
41481
|
+
/* STABLE */
|
|
41482
|
+
}, 8, ["aria-label"])
|
|
41483
|
+
]),
|
|
41484
|
+
vue.createElementVNode("iframe", {
|
|
41485
|
+
ref_key: "iframeRef",
|
|
41486
|
+
ref: iframeRef,
|
|
41487
|
+
class: "fv-artifacts-frame",
|
|
41488
|
+
srcdoc: srcdoc.value,
|
|
41489
|
+
sandbox: "allow-scripts allow-downloads",
|
|
41490
|
+
title: "artifact-preview"
|
|
41491
|
+
}, null, 8, _hoisted_3$4)
|
|
41561
41492
|
],
|
|
41562
|
-
|
|
41563
|
-
/*
|
|
41564
|
-
);
|
|
41493
|
+
4
|
|
41494
|
+
/* STYLE */
|
|
41495
|
+
)) : vue.createCommentVNode("v-if", true);
|
|
41565
41496
|
};
|
|
41566
41497
|
}
|
|
41567
41498
|
});
|
|
@@ -41621,6 +41552,8 @@
|
|
|
41621
41552
|
suggestions: { type: Array, required: false, default: () => [] },
|
|
41622
41553
|
suggestionsWrap: { type: Boolean, required: false, default: true },
|
|
41623
41554
|
welcomeLayout: { type: String, required: false, default: "horizontal" },
|
|
41555
|
+
showRefreshSuggestions: { type: Boolean, required: false, default: false },
|
|
41556
|
+
refreshSuggestionsText: { type: String, required: false, default: "" },
|
|
41624
41557
|
followupStyle: { type: String, required: false, default: "list" },
|
|
41625
41558
|
features: { type: Object, required: false, default: () => ({}) },
|
|
41626
41559
|
allowAttachments: { type: Boolean, required: false, default: false },
|
|
@@ -41632,7 +41565,7 @@
|
|
|
41632
41565
|
theme: { type: String, required: false, default: "light" },
|
|
41633
41566
|
locale: { type: null, required: false }
|
|
41634
41567
|
},
|
|
41635
|
-
emits: ["update:messages", "send", "copy", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-reject", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "tool-event"],
|
|
41568
|
+
emits: ["update:messages", "send", "copy", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-reject", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "refresh-suggestions", "tool-event"],
|
|
41636
41569
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
41637
41570
|
const props = __props;
|
|
41638
41571
|
const dict = useLocaleDict(() => props.locale);
|
|
@@ -41976,7 +41909,6 @@
|
|
|
41976
41909
|
class: vue.normalizeClass(["fv-ai-chat", { "is-dark": isDark.value, "is-center-welcome": isCenterWelcome.value, "is-empty": isEmpty.value }])
|
|
41977
41910
|
},
|
|
41978
41911
|
[
|
|
41979
|
-
vue.createCommentVNode(" \u9876\u680F:\u6807\u9898 + \u6A21\u578B\u9009\u62E9\u5668(models \u6709\u503C\u65F6 multiple) "),
|
|
41980
41912
|
__props.showHeader ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
41981
41913
|
vue.createElementVNode(
|
|
41982
41914
|
"div",
|
|
@@ -42014,7 +41946,6 @@
|
|
|
42014
41946
|
/* STABLE */
|
|
42015
41947
|
}, 8, ["modelValue", "placeholder"])) : vue.createCommentVNode("v-if", true)
|
|
42016
41948
|
])) : vue.createCommentVNode("v-if", true),
|
|
42017
|
-
vue.createCommentVNode(" \u6D88\u606F\u533A:\u7A7A\u65F6 Welcome + Prompts(AiMessages \u5185\u7F6E);\u5F00\u542F artifacts \u65F6\u53F3\u4FA7\u62FC\u9884\u89C8\u9762\u677F "),
|
|
42018
41949
|
vue.createElementVNode("div", _hoisted_3$3, [
|
|
42019
41950
|
vue.createVNode(_sfc_main$6, {
|
|
42020
41951
|
ref_key: "messagesRef",
|
|
@@ -42025,6 +41956,8 @@
|
|
|
42025
41956
|
suggestions: __props.suggestions,
|
|
42026
41957
|
"suggestions-wrap": __props.suggestionsWrap,
|
|
42027
41958
|
"welcome-layout": __props.welcomeLayout,
|
|
41959
|
+
"show-refresh-suggestions": __props.showRefreshSuggestions,
|
|
41960
|
+
"refresh-suggestions-text": __props.refreshSuggestionsText,
|
|
42028
41961
|
"followup-style": __props.followupStyle,
|
|
42029
41962
|
"show-scroll-button": __props.showScrollButton,
|
|
42030
41963
|
"scroll-button-threshold": __props.scrollButtonThreshold,
|
|
@@ -42051,6 +41984,7 @@
|
|
|
42051
41984
|
"feedback-handler": __props.feedbackHandler,
|
|
42052
41985
|
onSelect: onSelectSuggestion,
|
|
42053
41986
|
onFollowupSelect,
|
|
41987
|
+
onRefreshSuggestions: _cache[1] || (_cache[1] = ($event) => emit("refresh-suggestions")),
|
|
42054
41988
|
onCopy,
|
|
42055
41989
|
onRegenerate,
|
|
42056
41990
|
onBranchChange,
|
|
@@ -42139,21 +42073,35 @@
|
|
|
42139
42073
|
]),
|
|
42140
42074
|
key: "10"
|
|
42141
42075
|
} : void 0,
|
|
42076
|
+
_ctx.$slots["refresh-suggestions"] ? {
|
|
42077
|
+
name: "refresh-suggestions",
|
|
42078
|
+
fn: vue.withCtx(() => [
|
|
42079
|
+
vue.renderSlot(_ctx.$slots, "refresh-suggestions")
|
|
42080
|
+
]),
|
|
42081
|
+
key: "11"
|
|
42082
|
+
} : void 0,
|
|
42083
|
+
_ctx.$slots["suggestions-footer"] ? {
|
|
42084
|
+
name: "suggestions-footer",
|
|
42085
|
+
fn: vue.withCtx(() => [
|
|
42086
|
+
vue.renderSlot(_ctx.$slots, "suggestions-footer")
|
|
42087
|
+
]),
|
|
42088
|
+
key: "12"
|
|
42089
|
+
} : void 0,
|
|
42142
42090
|
_ctx.$slots["scroll-button"] ? {
|
|
42143
42091
|
name: "scroll-button",
|
|
42144
42092
|
fn: vue.withCtx((scope) => [
|
|
42145
42093
|
vue.renderSlot(_ctx.$slots, "scroll-button", vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
42146
42094
|
]),
|
|
42147
|
-
key: "
|
|
42095
|
+
key: "13"
|
|
42148
42096
|
} : void 0,
|
|
42149
42097
|
_ctx.$slots["scroll-button-icon"] ? {
|
|
42150
42098
|
name: "scroll-button-icon",
|
|
42151
42099
|
fn: vue.withCtx(() => [
|
|
42152
42100
|
vue.renderSlot(_ctx.$slots, "scroll-button-icon")
|
|
42153
42101
|
]),
|
|
42154
|
-
key: "
|
|
42102
|
+
key: "14"
|
|
42155
42103
|
} : void 0
|
|
42156
|
-
]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "copy-to-clipboard", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
|
|
42104
|
+
]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "show-refresh-suggestions", "refresh-suggestions-text", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "copy-to-clipboard", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
|
|
42157
42105
|
artifactsOn.value && artifacts.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
|
|
42158
42106
|
key: 0,
|
|
42159
42107
|
artifacts: artifacts.value,
|
|
@@ -42165,7 +42113,6 @@
|
|
|
42165
42113
|
onChange: onArtifactChange
|
|
42166
42114
|
}, null, 8, ["artifacts", "active-key", "width", "min-width", "max-width"])) : vue.createCommentVNode("v-if", true)
|
|
42167
42115
|
]),
|
|
42168
|
-
vue.createCommentVNode(" \u8F93\u5165\u533A:Sender(\u4E0D\u4F20 allowSpeech,Task 15 \u6869\u4E0D\u63A5\u7EBF);\r\n allowAttachments \u5F00\u542F\u65F6:\u56DE\u5F62\u9488\u5728\u64CD\u4F5C\u680F\u5DE6\u4FA7(#action-left,\u4E0E\u63D0\u4EA4\u6309\u94AE\u540C\u884C),\r\n \u5DF2\u9009\u9644\u4EF6\u5217\u8868\u5728 fv-sender-body \u5185\u8F93\u5165\u884C\u4E0A\u65B9(#body-top,body-top:empty \u81EA\u52A8\u9690\u85CF);\r\n \u751F\u6210\u4E2D(loading)\u65F6\u9644\u4EF6\u5165\u53E3\u6574\u4F53\u7981\u7528(\u5355\u98DE\u884C\u95F8\u8BED\u4E49:\u53D1\u9001\u671F\u95F4\u9501\u5B9A\u8F93\u5165) "),
|
|
42169
42116
|
vue.createElementVNode("div", _hoisted_4$2, [
|
|
42170
42117
|
vue.createVNode(_sfc_main$j, {
|
|
42171
42118
|
placeholder: __props.placeholder,
|
|
@@ -42186,7 +42133,7 @@
|
|
|
42186
42133
|
fn: vue.withCtx(() => [
|
|
42187
42134
|
vue.createVNode(_sfc_main$a, {
|
|
42188
42135
|
modelValue: pendingFiles.value,
|
|
42189
|
-
"onUpdate:modelValue": _cache[
|
|
42136
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pendingFiles.value = $event),
|
|
42190
42137
|
layout: "listOnly",
|
|
42191
42138
|
accept: __props.accept,
|
|
42192
42139
|
count: __props.attachmentLimit,
|
|
@@ -42204,7 +42151,7 @@
|
|
|
42204
42151
|
fn: vue.withCtx(() => [
|
|
42205
42152
|
vue.createVNode(_sfc_main$a, {
|
|
42206
42153
|
modelValue: pendingFiles.value,
|
|
42207
|
-
"onUpdate:modelValue": _cache[
|
|
42154
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => pendingFiles.value = $event),
|
|
42208
42155
|
layout: "triggerOnly",
|
|
42209
42156
|
accept: __props.accept,
|
|
42210
42157
|
count: __props.attachmentLimit,
|
|
@@ -42595,7 +42542,10 @@
|
|
|
42595
42542
|
key: 0,
|
|
42596
42543
|
class: "fv-ai-sidebar-loading-tip"
|
|
42597
42544
|
};
|
|
42598
|
-
const _hoisted_9$1 = {
|
|
42545
|
+
const _hoisted_9$1 = {
|
|
42546
|
+
key: 1,
|
|
42547
|
+
class: "fv-ai-sidebar is-collapsed"
|
|
42548
|
+
};
|
|
42599
42549
|
var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
42600
42550
|
...{ name: "FvAiSessionSidebar" },
|
|
42601
42551
|
__name: "index",
|
|
@@ -42782,284 +42732,258 @@
|
|
|
42782
42732
|
});
|
|
42783
42733
|
vue.onMounted(reload);
|
|
42784
42734
|
return (_ctx, _cache) => {
|
|
42785
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
42786
|
-
vue.
|
|
42787
|
-
|
|
42788
|
-
|
|
42789
|
-
|
|
42790
|
-
|
|
42791
|
-
|
|
42792
|
-
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
__props.brandIcon ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
42796
|
-
key: 0,
|
|
42797
|
-
class: "fv-ai-sidebar-brand-badge-img",
|
|
42798
|
-
src: __props.brandIcon,
|
|
42799
|
-
alt: __props.brandName
|
|
42800
|
-
}, null, 8, _hoisted_4$1)) : vue.createCommentVNode("v-if", true)
|
|
42801
|
-
]),
|
|
42802
|
-
vue.createElementVNode(
|
|
42803
|
-
"span",
|
|
42804
|
-
_hoisted_5$1,
|
|
42805
|
-
vue.toDisplayString(__props.brandName),
|
|
42806
|
-
1
|
|
42807
|
-
/* TEXT */
|
|
42808
|
-
),
|
|
42809
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
42810
|
-
content: vue.unref(dict).sessionSidebar.collapse,
|
|
42811
|
-
placement: "bottom",
|
|
42812
|
-
"show-after": 300
|
|
42813
|
-
}, {
|
|
42814
|
-
default: vue.withCtx(() => [
|
|
42815
|
-
vue.createElementVNode("button", {
|
|
42816
|
-
class: "fv-ai-sidebar-collapse",
|
|
42817
|
-
type: "button",
|
|
42818
|
-
onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
|
|
42819
|
-
}, [
|
|
42820
|
-
vue.createVNode(_sfc_main$c, {
|
|
42821
|
-
name: "sidebar",
|
|
42822
|
-
size: 16
|
|
42823
|
-
})
|
|
42824
|
-
])
|
|
42825
|
-
]),
|
|
42826
|
-
_: 1
|
|
42827
|
-
/* STABLE */
|
|
42828
|
-
}, 8, ["content"])
|
|
42829
|
-
])
|
|
42830
|
-
]),
|
|
42831
|
-
vue.createCommentVNode(" \u65B0\u5BF9\u8BDD:open-webui \u5F0F\u4F4E\u8C03\u884C\u6309\u94AE(hover \u6D45\u5E95\u5706\u89D2),\u70B9\u51FB\u4EC5\u5207\u8349\u7A3F\u6001;\r\n #new-chat \u8986\u76D6\u6309\u94AE\u5185\u5BB9(\u6309\u94AE\u5143\u7D20\u4FDD\u7559,\u70B9\u51FB\u884C\u4E3A\u4E0D\u53D8) "),
|
|
42832
|
-
vue.createElementVNode("button", {
|
|
42833
|
-
class: "fv-ai-sidebar-new-chat",
|
|
42834
|
-
type: "button",
|
|
42835
|
-
onClick: onCreate
|
|
42836
|
-
}, [
|
|
42837
|
-
vue.renderSlot(_ctx.$slots, "new-chat", {}, () => [
|
|
42838
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
42839
|
-
default: vue.withCtx(() => [
|
|
42840
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
|
|
42841
|
-
]),
|
|
42842
|
-
_: 1
|
|
42843
|
-
/* STABLE */
|
|
42844
|
-
}),
|
|
42845
|
-
vue.createElementVNode(
|
|
42846
|
-
"span",
|
|
42847
|
-
null,
|
|
42848
|
-
vue.toDisplayString(vue.unref(dict).sessionSidebar.newChat),
|
|
42849
|
-
1
|
|
42850
|
-
/* TEXT */
|
|
42851
|
-
)
|
|
42852
|
-
])
|
|
42735
|
+
return !collapsed.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
42736
|
+
vue.createElementVNode("div", _hoisted_2$2, [
|
|
42737
|
+
vue.renderSlot(_ctx.$slots, "brand", {}, () => [
|
|
42738
|
+
vue.createElementVNode("div", _hoisted_3$2, [
|
|
42739
|
+
__props.brandIcon ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
42740
|
+
key: 0,
|
|
42741
|
+
class: "fv-ai-sidebar-brand-badge-img",
|
|
42742
|
+
src: __props.brandIcon,
|
|
42743
|
+
alt: __props.brandName
|
|
42744
|
+
}, null, 8, _hoisted_4$1)) : vue.createCommentVNode("v-if", true)
|
|
42853
42745
|
]),
|
|
42854
|
-
vue.
|
|
42855
|
-
|
|
42856
|
-
|
|
42857
|
-
vue.
|
|
42858
|
-
|
|
42859
|
-
|
|
42860
|
-
|
|
42861
|
-
|
|
42862
|
-
|
|
42863
|
-
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
|
-
vue.
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
|
|
42882
|
-
|
|
42883
|
-
|
|
42884
|
-
|
|
42885
|
-
|
|
42886
|
-
|
|
42887
|
-
|
|
42888
|
-
|
|
42889
|
-
|
|
42890
|
-
|
|
42891
|
-
|
|
42892
|
-
|
|
42893
|
-
|
|
42894
|
-
|
|
42895
|
-
|
|
42896
|
-
|
|
42897
|
-
|
|
42898
|
-
|
|
42899
|
-
|
|
42900
|
-
|
|
42901
|
-
|
|
42902
|
-
|
|
42903
|
-
|
|
42904
|
-
|
|
42905
|
-
|
|
42906
|
-
|
|
42907
|
-
|
|
42908
|
-
|
|
42909
|
-
|
|
42910
|
-
|
|
42911
|
-
|
|
42912
|
-
|
|
42913
|
-
|
|
42914
|
-
|
|
42915
|
-
|
|
42916
|
-
|
|
42917
|
-
|
|
42918
|
-
|
|
42919
|
-
|
|
42920
|
-
|
|
42921
|
-
|
|
42922
|
-
|
|
42923
|
-
|
|
42924
|
-
|
|
42925
|
-
|
|
42926
|
-
|
|
42927
|
-
|
|
42928
|
-
|
|
42929
|
-
|
|
42930
|
-
|
|
42931
|
-
|
|
42932
|
-
|
|
42933
|
-
|
|
42934
|
-
|
|
42935
|
-
|
|
42936
|
-
|
|
42937
|
-
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
|
|
42943
|
-
|
|
42944
|
-
|
|
42945
|
-
|
|
42946
|
-
|
|
42947
|
-
|
|
42948
|
-
item: vue.withCtx((scope) => [
|
|
42949
|
-
vue.renderSlot(_ctx.$slots, "item", {
|
|
42950
|
-
item: scope.item,
|
|
42951
|
-
active: scope.active
|
|
42952
|
-
})
|
|
42953
|
-
]),
|
|
42954
|
-
_: 3
|
|
42955
|
-
/* FORWARDED */
|
|
42956
|
-
}, 8, ["items", "active", "loading", "has-more", "locale"]),
|
|
42957
|
-
vue.createCommentVNode(" \u89E6\u5E95\u52A0\u8F7D\u6307\u793A:\u5217\u8868\u672B\u5C3E(\u5206\u9875\u52A0\u8F7D\u65F6\u8F6C\u5708;el-scrollbar \u65E0\u5185\u7F6E loading \u5C3E\u884C) "),
|
|
42958
|
-
loading.value && sessions.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, [
|
|
42959
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
|
|
42746
|
+
vue.createElementVNode(
|
|
42747
|
+
"span",
|
|
42748
|
+
_hoisted_5$1,
|
|
42749
|
+
vue.toDisplayString(__props.brandName),
|
|
42750
|
+
1
|
|
42751
|
+
/* TEXT */
|
|
42752
|
+
),
|
|
42753
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
42754
|
+
content: vue.unref(dict).sessionSidebar.collapse,
|
|
42755
|
+
placement: "bottom",
|
|
42756
|
+
"show-after": 300
|
|
42757
|
+
}, {
|
|
42758
|
+
default: vue.withCtx(() => [
|
|
42759
|
+
vue.createElementVNode("button", {
|
|
42760
|
+
class: "fv-ai-sidebar-collapse",
|
|
42761
|
+
type: "button",
|
|
42762
|
+
onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
|
|
42763
|
+
}, [
|
|
42764
|
+
vue.createVNode(_sfc_main$c, {
|
|
42765
|
+
name: "sidebar",
|
|
42766
|
+
size: 16
|
|
42767
|
+
})
|
|
42768
|
+
])
|
|
42769
|
+
]),
|
|
42770
|
+
_: 1
|
|
42771
|
+
/* STABLE */
|
|
42772
|
+
}, 8, ["content"])
|
|
42773
|
+
])
|
|
42774
|
+
]),
|
|
42775
|
+
vue.createElementVNode("button", {
|
|
42776
|
+
class: "fv-ai-sidebar-new-chat",
|
|
42777
|
+
type: "button",
|
|
42778
|
+
onClick: onCreate
|
|
42779
|
+
}, [
|
|
42780
|
+
vue.renderSlot(_ctx.$slots, "new-chat", {}, () => [
|
|
42781
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
42782
|
+
default: vue.withCtx(() => [
|
|
42783
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
|
|
42784
|
+
]),
|
|
42785
|
+
_: 1
|
|
42786
|
+
/* STABLE */
|
|
42787
|
+
}),
|
|
42788
|
+
vue.createElementVNode(
|
|
42789
|
+
"span",
|
|
42790
|
+
null,
|
|
42791
|
+
vue.toDisplayString(vue.unref(dict).sessionSidebar.newChat),
|
|
42792
|
+
1
|
|
42793
|
+
/* TEXT */
|
|
42794
|
+
)
|
|
42795
|
+
])
|
|
42796
|
+
]),
|
|
42797
|
+
archiveEnabled.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
|
|
42798
|
+
vue.createVNode(vue.unref(elementPlus.ElSegmented), {
|
|
42799
|
+
modelValue: statusFilter.value,
|
|
42800
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
|
|
42801
|
+
options: statusOptions.value,
|
|
42802
|
+
onChange: _cache[2] || (_cache[2] = () => reload())
|
|
42803
|
+
}, null, 8, ["modelValue", "options"])
|
|
42804
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
42805
|
+
__props.searchable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
|
|
42806
|
+
vue.createVNode(vue.unref(elementPlus.ElInput), {
|
|
42807
|
+
ref_key: "searchInputRef",
|
|
42808
|
+
ref: searchInputRef,
|
|
42809
|
+
modelValue: keyword.value,
|
|
42810
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
|
|
42811
|
+
placeholder: vue.unref(dict).sessionSidebar.searchPlaceholder,
|
|
42812
|
+
clearable: "",
|
|
42813
|
+
"prefix-icon": vue.unref(ElementPlusIconsVue.Search)
|
|
42814
|
+
}, null, 8, ["modelValue", "placeholder", "prefix-icon"])
|
|
42815
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
42816
|
+
vue.createVNode(
|
|
42817
|
+
vue.unref(elementPlus.ElScrollbar),
|
|
42818
|
+
{
|
|
42819
|
+
ref_key: "listScrollbarRef",
|
|
42820
|
+
ref: listScrollbarRef,
|
|
42821
|
+
class: "fv-ai-sidebar-list",
|
|
42822
|
+
onScroll: onListScroll
|
|
42823
|
+
},
|
|
42824
|
+
{
|
|
42825
|
+
default: vue.withCtx(() => [
|
|
42826
|
+
vue.createVNode(_sfc_main$9, {
|
|
42827
|
+
ref_key: "conversationsRef",
|
|
42828
|
+
ref: conversationsRef,
|
|
42829
|
+
items: conversationItems.value,
|
|
42830
|
+
active: __props.activeId ?? void 0,
|
|
42831
|
+
loading: loading.value,
|
|
42832
|
+
"has-more": hasMore.value,
|
|
42833
|
+
locale: __props.locale,
|
|
42834
|
+
"onUpdate:active": onSelect,
|
|
42835
|
+
onMenuCommand
|
|
42836
|
+
}, {
|
|
42837
|
+
menu: vue.withCtx(({ item }) => [
|
|
42838
|
+
vue.renderSlot(_ctx.$slots, "menu", { item }, () => [
|
|
42839
|
+
vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
|
|
42960
42840
|
default: vue.withCtx(() => [
|
|
42961
|
-
vue.
|
|
42841
|
+
vue.createTextVNode(
|
|
42842
|
+
vue.toDisplayString(vue.unref(dict).conversations.rename),
|
|
42843
|
+
1
|
|
42844
|
+
/* TEXT */
|
|
42845
|
+
)
|
|
42962
42846
|
]),
|
|
42963
42847
|
_: 1
|
|
42964
42848
|
/* STABLE */
|
|
42965
42849
|
}),
|
|
42966
|
-
vue.
|
|
42967
|
-
|
|
42968
|
-
|
|
42969
|
-
|
|
42970
|
-
|
|
42971
|
-
|
|
42972
|
-
|
|
42973
|
-
|
|
42850
|
+
archiveEnabled.value ? (vue.openBlock(), vue.createBlock(
|
|
42851
|
+
vue.unref(elementPlus.ElDropdownItem),
|
|
42852
|
+
{
|
|
42853
|
+
key: 0,
|
|
42854
|
+
command: "archive"
|
|
42855
|
+
},
|
|
42856
|
+
{
|
|
42857
|
+
default: vue.withCtx(() => [
|
|
42858
|
+
vue.createTextVNode(
|
|
42859
|
+
vue.toDisplayString(isArchived(String(item.key)) ? vue.unref(dict).sessionSidebar.restore : vue.unref(dict).sessionSidebar.archive),
|
|
42860
|
+
1
|
|
42861
|
+
/* TEXT */
|
|
42862
|
+
)
|
|
42863
|
+
]),
|
|
42864
|
+
_: 2
|
|
42865
|
+
/* DYNAMIC */
|
|
42866
|
+
},
|
|
42867
|
+
1024
|
|
42868
|
+
/* DYNAMIC_SLOTS */
|
|
42869
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
42870
|
+
vue.createVNode(vue.unref(elementPlus.ElDropdownItem), {
|
|
42871
|
+
command: "prompt-delete",
|
|
42872
|
+
divided: ""
|
|
42873
|
+
}, {
|
|
42874
|
+
default: vue.withCtx(() => [
|
|
42875
|
+
vue.createTextVNode(
|
|
42876
|
+
vue.toDisplayString(vue.unref(dict).conversations.delete),
|
|
42877
|
+
1
|
|
42878
|
+
/* TEXT */
|
|
42879
|
+
)
|
|
42880
|
+
]),
|
|
42881
|
+
_: 1
|
|
42882
|
+
/* STABLE */
|
|
42883
|
+
})
|
|
42884
|
+
])
|
|
42885
|
+
]),
|
|
42886
|
+
item: vue.withCtx((scope) => [
|
|
42887
|
+
vue.renderSlot(_ctx.$slots, "item", {
|
|
42888
|
+
item: scope.item,
|
|
42889
|
+
active: scope.active
|
|
42890
|
+
})
|
|
42974
42891
|
]),
|
|
42975
42892
|
_: 3
|
|
42976
42893
|
/* FORWARDED */
|
|
42977
|
-
},
|
|
42978
|
-
|
|
42979
|
-
|
|
42980
|
-
)
|
|
42981
|
-
])) : (vue.openBlock(), vue.createElementBlock(
|
|
42982
|
-
vue.Fragment,
|
|
42983
|
-
{ key: 1 },
|
|
42984
|
-
[
|
|
42985
|
-
vue.createCommentVNode(" \u6536\u8D77\u6001:\u7A84\u6761(\u5C55\u5F00 + \u65B0\u5EFA + \u641C\u7D22,\u5747\u65E0\u8272\u5E95\u56FE\u6807\u6309\u94AE) "),
|
|
42986
|
-
vue.createElementVNode("div", _hoisted_9$1, [
|
|
42987
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
42988
|
-
content: vue.unref(dict).sessionSidebar.expand,
|
|
42989
|
-
placement: "right",
|
|
42990
|
-
"show-after": 300
|
|
42991
|
-
}, {
|
|
42992
|
-
default: vue.withCtx(() => [
|
|
42993
|
-
vue.createElementVNode("button", {
|
|
42994
|
-
class: "fv-ai-sidebar-rail",
|
|
42995
|
-
type: "button",
|
|
42996
|
-
onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
|
|
42997
|
-
}, [
|
|
42998
|
-
vue.createVNode(_sfc_main$c, {
|
|
42999
|
-
name: "sidebar",
|
|
43000
|
-
size: 16
|
|
43001
|
-
})
|
|
43002
|
-
])
|
|
43003
|
-
]),
|
|
43004
|
-
_: 1
|
|
43005
|
-
/* STABLE */
|
|
43006
|
-
}, 8, ["content"]),
|
|
43007
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
43008
|
-
content: vue.unref(dict).sessionSidebar.newChat,
|
|
43009
|
-
placement: "right",
|
|
43010
|
-
"show-after": 300
|
|
43011
|
-
}, {
|
|
43012
|
-
default: vue.withCtx(() => [
|
|
43013
|
-
vue.createElementVNode("button", {
|
|
43014
|
-
class: "fv-ai-sidebar-rail",
|
|
43015
|
-
type: "button",
|
|
43016
|
-
onClick: onCreate
|
|
43017
|
-
}, [
|
|
43018
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
|
|
43019
|
-
default: vue.withCtx(() => [
|
|
43020
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
|
|
43021
|
-
]),
|
|
43022
|
-
_: 1
|
|
43023
|
-
/* STABLE */
|
|
43024
|
-
})
|
|
43025
|
-
])
|
|
43026
|
-
]),
|
|
43027
|
-
_: 1
|
|
43028
|
-
/* STABLE */
|
|
43029
|
-
}, 8, ["content"]),
|
|
43030
|
-
__props.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
43031
|
-
key: 0,
|
|
43032
|
-
content: vue.unref(dict).sessionSidebar.searchPlaceholder,
|
|
43033
|
-
placement: "right",
|
|
43034
|
-
"show-after": 300
|
|
43035
|
-
}, {
|
|
42894
|
+
}, 8, ["items", "active", "loading", "has-more", "locale"]),
|
|
42895
|
+
loading.value && sessions.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, [
|
|
42896
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
|
|
43036
42897
|
default: vue.withCtx(() => [
|
|
43037
|
-
vue.
|
|
43038
|
-
class: "fv-ai-sidebar-rail",
|
|
43039
|
-
type: "button",
|
|
43040
|
-
onClick: expandToSearch
|
|
43041
|
-
}, [
|
|
43042
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
|
|
43043
|
-
default: vue.withCtx(() => [
|
|
43044
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Search))
|
|
43045
|
-
]),
|
|
43046
|
-
_: 1
|
|
43047
|
-
/* STABLE */
|
|
43048
|
-
})
|
|
43049
|
-
])
|
|
42898
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
|
|
43050
42899
|
]),
|
|
43051
42900
|
_: 1
|
|
43052
42901
|
/* STABLE */
|
|
43053
|
-
}
|
|
43054
|
-
|
|
43055
|
-
|
|
43056
|
-
|
|
43057
|
-
|
|
43058
|
-
|
|
43059
|
-
|
|
43060
|
-
|
|
43061
|
-
|
|
43062
|
-
|
|
42902
|
+
}),
|
|
42903
|
+
vue.createElementVNode(
|
|
42904
|
+
"span",
|
|
42905
|
+
null,
|
|
42906
|
+
vue.toDisplayString(vue.unref(dict).sessionSidebar.listLoading),
|
|
42907
|
+
1
|
|
42908
|
+
/* TEXT */
|
|
42909
|
+
)
|
|
42910
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
42911
|
+
]),
|
|
42912
|
+
_: 3
|
|
42913
|
+
/* FORWARDED */
|
|
42914
|
+
},
|
|
42915
|
+
512
|
|
42916
|
+
/* NEED_PATCH */
|
|
42917
|
+
)
|
|
42918
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, [
|
|
42919
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
42920
|
+
content: vue.unref(dict).sessionSidebar.expand,
|
|
42921
|
+
placement: "right",
|
|
42922
|
+
"show-after": 300
|
|
42923
|
+
}, {
|
|
42924
|
+
default: vue.withCtx(() => [
|
|
42925
|
+
vue.createElementVNode("button", {
|
|
42926
|
+
class: "fv-ai-sidebar-rail",
|
|
42927
|
+
type: "button",
|
|
42928
|
+
onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
|
|
42929
|
+
}, [
|
|
42930
|
+
vue.createVNode(_sfc_main$c, {
|
|
42931
|
+
name: "sidebar",
|
|
42932
|
+
size: 16
|
|
42933
|
+
})
|
|
42934
|
+
])
|
|
42935
|
+
]),
|
|
42936
|
+
_: 1
|
|
42937
|
+
/* STABLE */
|
|
42938
|
+
}, 8, ["content"]),
|
|
42939
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
42940
|
+
content: vue.unref(dict).sessionSidebar.newChat,
|
|
42941
|
+
placement: "right",
|
|
42942
|
+
"show-after": 300
|
|
42943
|
+
}, {
|
|
42944
|
+
default: vue.withCtx(() => [
|
|
42945
|
+
vue.createElementVNode("button", {
|
|
42946
|
+
class: "fv-ai-sidebar-rail",
|
|
42947
|
+
type: "button",
|
|
42948
|
+
onClick: onCreate
|
|
42949
|
+
}, [
|
|
42950
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
|
|
42951
|
+
default: vue.withCtx(() => [
|
|
42952
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
|
|
42953
|
+
]),
|
|
42954
|
+
_: 1
|
|
42955
|
+
/* STABLE */
|
|
42956
|
+
})
|
|
42957
|
+
])
|
|
42958
|
+
]),
|
|
42959
|
+
_: 1
|
|
42960
|
+
/* STABLE */
|
|
42961
|
+
}, 8, ["content"]),
|
|
42962
|
+
__props.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
42963
|
+
key: 0,
|
|
42964
|
+
content: vue.unref(dict).sessionSidebar.searchPlaceholder,
|
|
42965
|
+
placement: "right",
|
|
42966
|
+
"show-after": 300
|
|
42967
|
+
}, {
|
|
42968
|
+
default: vue.withCtx(() => [
|
|
42969
|
+
vue.createElementVNode("button", {
|
|
42970
|
+
class: "fv-ai-sidebar-rail",
|
|
42971
|
+
type: "button",
|
|
42972
|
+
onClick: expandToSearch
|
|
42973
|
+
}, [
|
|
42974
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
|
|
42975
|
+
default: vue.withCtx(() => [
|
|
42976
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Search))
|
|
42977
|
+
]),
|
|
42978
|
+
_: 1
|
|
42979
|
+
/* STABLE */
|
|
42980
|
+
})
|
|
42981
|
+
])
|
|
42982
|
+
]),
|
|
42983
|
+
_: 1
|
|
42984
|
+
/* STABLE */
|
|
42985
|
+
}, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
42986
|
+
]));
|
|
43063
42987
|
};
|
|
43064
42988
|
}
|
|
43065
42989
|
});
|
|
@@ -43082,6 +43006,8 @@
|
|
|
43082
43006
|
suggestions: { type: Array, required: false, default: () => [] },
|
|
43083
43007
|
suggestionsTitle: { type: String, required: false, default: "" },
|
|
43084
43008
|
suggestionsWrap: { type: Boolean, required: false, default: true },
|
|
43009
|
+
showRefreshSuggestions: { type: Boolean, required: false, default: false },
|
|
43010
|
+
refreshSuggestionsText: { type: String, required: false, default: "" },
|
|
43085
43011
|
typing: { type: [Boolean, Object], required: false, default: true },
|
|
43086
43012
|
collapsible: { type: Boolean, required: false, default: true },
|
|
43087
43013
|
showTime: { type: Boolean, required: false, default: true },
|
|
@@ -43100,7 +43026,7 @@
|
|
|
43100
43026
|
detailLimit: { type: Number, required: false, default: 100 },
|
|
43101
43027
|
historyLimit: { type: Number, required: false, default: 50 }
|
|
43102
43028
|
},
|
|
43103
|
-
emits: ["session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error"],
|
|
43029
|
+
emits: ["session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
|
|
43104
43030
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
43105
43031
|
const props = __props;
|
|
43106
43032
|
const emit = __emit;
|
|
@@ -43344,7 +43270,6 @@
|
|
|
43344
43270
|
style: vue.normalizeStyle(bodyStyle.value)
|
|
43345
43271
|
},
|
|
43346
43272
|
[
|
|
43347
|
-
vue.createCommentVNode("\r\n key \u91CD\u5EFA\u65F6\u673A:\u5207\u6362\u4F1A\u8BDD\u3001\u91CD\u590D\u70B9\u300C\u65B0\u5BF9\u8BDD\u300D(\u91CD\u64AD\u6B22\u8FCE\u9875\u52A8\u753B)\u3001\u52A0\u8F7D\u66F4\u65E9\r\n \u5408\u5E76\u5386\u53F2\u2014\u2014FvAiChat \u7684 messages \u4E3A\u534A\u53D7\u63A7(\u4EC5 setup \u65F6\u4E00\u6B21\u6027\u704C\u5165),\r\n \u5386\u53F2\u53D8\u5316\u53EA\u80FD\u901A\u8FC7\u91CD\u5EFA\u5B9E\u4F8B\u56DE\u704C;\u8349\u7A3F\u61D2\u521B\u5EFA\u6210\u529F(draft \u2192 \u771F\u5B9E id)\u65F6\r\n \u5B88\u536B\u8DF3\u8FC7\u91CD\u5EFA,\u907F\u514D\u6253\u65AD\u9996\u6761\u6D41\u5F0F\r\n "),
|
|
43348
43273
|
(vue.openBlock(), vue.createBlock(_sfc_main$4, {
|
|
43349
43274
|
key: viewKey.value,
|
|
43350
43275
|
adapter: lazyAdapter,
|
|
@@ -43358,6 +43283,8 @@
|
|
|
43358
43283
|
suggestions: __props.suggestions,
|
|
43359
43284
|
"suggestions-title": __props.suggestionsTitle,
|
|
43360
43285
|
"suggestions-wrap": __props.suggestionsWrap,
|
|
43286
|
+
"show-refresh-suggestions": __props.showRefreshSuggestions,
|
|
43287
|
+
"refresh-suggestions-text": __props.refreshSuggestionsText,
|
|
43361
43288
|
typing: __props.typing,
|
|
43362
43289
|
collapsible: __props.collapsible,
|
|
43363
43290
|
"show-time": __props.showTime,
|
|
@@ -43373,7 +43300,8 @@
|
|
|
43373
43300
|
onAttachmentUploaded,
|
|
43374
43301
|
onMessageFileClick,
|
|
43375
43302
|
onFeedbackChange,
|
|
43376
|
-
onFeedbackError
|
|
43303
|
+
onFeedbackError,
|
|
43304
|
+
onRefreshSuggestions: _cache[0] || (_cache[0] = ($event) => emit("refresh-suggestions"))
|
|
43377
43305
|
}, vue.createSlots({
|
|
43378
43306
|
_: 2
|
|
43379
43307
|
/* DYNAMIC */
|
|
@@ -43413,57 +43341,70 @@
|
|
|
43413
43341
|
]),
|
|
43414
43342
|
key: "4"
|
|
43415
43343
|
} : void 0,
|
|
43344
|
+
_ctx.$slots["refresh-suggestions"] ? {
|
|
43345
|
+
name: "refresh-suggestions",
|
|
43346
|
+
fn: vue.withCtx(() => [
|
|
43347
|
+
vue.renderSlot(_ctx.$slots, "refresh-suggestions")
|
|
43348
|
+
]),
|
|
43349
|
+
key: "5"
|
|
43350
|
+
} : void 0,
|
|
43351
|
+
_ctx.$slots["suggestions-footer"] ? {
|
|
43352
|
+
name: "suggestions-footer",
|
|
43353
|
+
fn: vue.withCtx(() => [
|
|
43354
|
+
vue.renderSlot(_ctx.$slots, "suggestions-footer")
|
|
43355
|
+
]),
|
|
43356
|
+
key: "6"
|
|
43357
|
+
} : void 0,
|
|
43416
43358
|
_ctx.$slots["user-avatar"] ? {
|
|
43417
43359
|
name: "user-avatar",
|
|
43418
43360
|
fn: vue.withCtx(() => [
|
|
43419
43361
|
vue.renderSlot(_ctx.$slots, "user-avatar")
|
|
43420
43362
|
]),
|
|
43421
|
-
key: "
|
|
43363
|
+
key: "7"
|
|
43422
43364
|
} : void 0,
|
|
43423
43365
|
_ctx.$slots["assistant-avatar"] ? {
|
|
43424
43366
|
name: "assistant-avatar",
|
|
43425
43367
|
fn: vue.withCtx((scope) => [
|
|
43426
43368
|
vue.renderSlot(_ctx.$slots, "assistant-avatar", vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
43427
43369
|
]),
|
|
43428
|
-
key: "
|
|
43370
|
+
key: "8"
|
|
43429
43371
|
} : void 0,
|
|
43430
43372
|
_ctx.$slots["user-name"] ? {
|
|
43431
43373
|
name: "user-name",
|
|
43432
43374
|
fn: vue.withCtx((scope) => [
|
|
43433
43375
|
vue.renderSlot(_ctx.$slots, "user-name", vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
43434
43376
|
]),
|
|
43435
|
-
key: "
|
|
43377
|
+
key: "9"
|
|
43436
43378
|
} : void 0,
|
|
43437
43379
|
_ctx.$slots["assistant-name"] ? {
|
|
43438
43380
|
name: "assistant-name",
|
|
43439
43381
|
fn: vue.withCtx((scope) => [
|
|
43440
43382
|
vue.renderSlot(_ctx.$slots, "assistant-name", vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
43441
43383
|
]),
|
|
43442
|
-
key: "
|
|
43384
|
+
key: "10"
|
|
43443
43385
|
} : void 0,
|
|
43444
43386
|
_ctx.$slots["message-avatar"] ? {
|
|
43445
43387
|
name: "message-avatar",
|
|
43446
43388
|
fn: vue.withCtx((scope) => [
|
|
43447
43389
|
vue.renderSlot(_ctx.$slots, "message-avatar", vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
43448
43390
|
]),
|
|
43449
|
-
key: "
|
|
43391
|
+
key: "11"
|
|
43450
43392
|
} : void 0,
|
|
43451
43393
|
_ctx.$slots["message-actions"] ? {
|
|
43452
43394
|
name: "message-actions",
|
|
43453
43395
|
fn: vue.withCtx((scope) => [
|
|
43454
43396
|
vue.renderSlot(_ctx.$slots, "message-actions", vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
43455
43397
|
]),
|
|
43456
|
-
key: "
|
|
43398
|
+
key: "12"
|
|
43457
43399
|
} : void 0,
|
|
43458
43400
|
_ctx.$slots["sender-prefix"] ? {
|
|
43459
43401
|
name: "prefix",
|
|
43460
43402
|
fn: vue.withCtx(() => [
|
|
43461
43403
|
vue.renderSlot(_ctx.$slots, "sender-prefix")
|
|
43462
43404
|
]),
|
|
43463
|
-
key: "
|
|
43405
|
+
key: "13"
|
|
43464
43406
|
} : void 0
|
|
43465
|
-
]), 1032, ["messages", "placeholder", "theme", "welcome-layout", "center-welcome", "tool-step-label", "locale", "suggestions", "suggestions-title", "suggestions-wrap", "typing", "collapsible", "show-time", "allow-attachments", "accept", "attachment-limit", "resolve-file-url", "feedback-handler"])),
|
|
43466
|
-
vue.createCommentVNode(" \u52A0\u8F7D\u66F4\u65E9:\u60AC\u6D6E\u6D88\u606F\u533A\u9876\u90E8\u5C45\u4E2D(\u9762\u677F\u65E0\u5934\u8BBE\u8BA1,\u5F52\u6863/\u8FDB\u884C\u4E2D\u7EDF\u4E00);\r\n \u4EC5\u5728\u5DF2\u6EDA\u5230\u6D88\u606F\u533A\u9876\u90E8\u65F6\u51FA\u73B0(atTop \u7531\u6EDA\u52A8\u76D1\u542C\u7EF4\u62A4) "),
|
|
43407
|
+
]), 1032, ["messages", "placeholder", "theme", "welcome-layout", "center-welcome", "tool-step-label", "locale", "suggestions", "suggestions-title", "suggestions-wrap", "show-refresh-suggestions", "refresh-suggestions-text", "typing", "collapsible", "show-time", "allow-attachments", "accept", "attachment-limit", "resolve-file-url", "feedback-handler"])),
|
|
43467
43408
|
hasEarlier.value && atTop.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
43468
43409
|
key: 0,
|
|
43469
43410
|
class: "fv-ai-chat-panel-load-earlier",
|
|
@@ -43483,7 +43424,6 @@
|
|
|
43483
43424
|
_: 1
|
|
43484
43425
|
/* STABLE */
|
|
43485
43426
|
}, 8, ["loading"])) : vue.createCommentVNode("v-if", true),
|
|
43486
|
-
vue.createCommentVNode(" \u5207\u4F1A\u8BDD\u8BE6\u60C5\u52A0\u8F7D\u906E\u7F69(\u8349\u7A3F\u5207\u6362\u4E0D\u89E6\u53D1\u2014\u2014\u65E0\u8BF7\u6C42) "),
|
|
43487
43427
|
detailLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
43488
43428
|
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
|
|
43489
43429
|
default: vue.withCtx(() => [
|
|
@@ -43614,6 +43554,7 @@
|
|
|
43614
43554
|
floatingHeight: { type: String, required: false, default: "" },
|
|
43615
43555
|
showModeToggle: { type: Boolean, required: false, default: false },
|
|
43616
43556
|
storageKey: { type: String, required: false, default: "fv-ai-chat-widget" },
|
|
43557
|
+
rememberPosition: { type: Boolean, required: false, default: true },
|
|
43617
43558
|
keepAlive: { type: Boolean, required: false, default: true },
|
|
43618
43559
|
maximizable: { type: Boolean, required: false, default: true },
|
|
43619
43560
|
title: { type: String, required: false, default: "" },
|
|
@@ -43625,6 +43566,8 @@
|
|
|
43625
43566
|
suggestions: { type: Array, required: false, default: () => [] },
|
|
43626
43567
|
suggestionsTitle: { type: String, required: false, default: "" },
|
|
43627
43568
|
suggestionsWrap: { type: Boolean, required: false, default: true },
|
|
43569
|
+
showRefreshSuggestions: { type: Boolean, required: false, default: false },
|
|
43570
|
+
refreshSuggestionsText: { type: String, required: false, default: "" },
|
|
43628
43571
|
typing: { type: [Boolean, Object], required: false, default: true },
|
|
43629
43572
|
collapsible: { type: Boolean, required: false, default: true },
|
|
43630
43573
|
showTime: { type: Boolean, required: false, default: true },
|
|
@@ -43640,7 +43583,7 @@
|
|
|
43640
43583
|
detailLimit: { type: Number, required: false, default: 100 },
|
|
43641
43584
|
historyLimit: { type: Number, required: false, default: 50 }
|
|
43642
43585
|
},
|
|
43643
|
-
emits: ["update:modelValue", "open", "close", "session-change", "session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error"],
|
|
43586
|
+
emits: ["update:modelValue", "open", "close", "session-change", "session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
|
|
43644
43587
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
43645
43588
|
const props = __props;
|
|
43646
43589
|
const emit = __emit;
|
|
@@ -43807,6 +43750,8 @@
|
|
|
43807
43750
|
suggestions: props.suggestions,
|
|
43808
43751
|
suggestionsTitle: props.suggestionsTitle,
|
|
43809
43752
|
suggestionsWrap: props.suggestionsWrap,
|
|
43753
|
+
showRefreshSuggestions: props.showRefreshSuggestions,
|
|
43754
|
+
refreshSuggestionsText: props.refreshSuggestionsText,
|
|
43810
43755
|
typing: props.typing,
|
|
43811
43756
|
collapsible: props.collapsible,
|
|
43812
43757
|
showTime: props.showTime,
|
|
@@ -43851,6 +43796,9 @@
|
|
|
43851
43796
|
function onPanelFeedbackError(message) {
|
|
43852
43797
|
emit("feedback-error", message);
|
|
43853
43798
|
}
|
|
43799
|
+
function onPanelRefreshSuggestions() {
|
|
43800
|
+
emit("refresh-suggestions");
|
|
43801
|
+
}
|
|
43854
43802
|
const panelListeners = {
|
|
43855
43803
|
error: onPanelError,
|
|
43856
43804
|
"message-complete": onPanelMessageComplete,
|
|
@@ -43858,7 +43806,8 @@
|
|
|
43858
43806
|
"attachment-uploaded": onPanelAttachmentUploaded,
|
|
43859
43807
|
"message-file-click": onPanelMessageFileClick,
|
|
43860
43808
|
"feedback-change": onPanelFeedbackChange,
|
|
43861
|
-
"feedback-error": onPanelFeedbackError
|
|
43809
|
+
"feedback-error": onPanelFeedbackError,
|
|
43810
|
+
"refresh-suggestions": onPanelRefreshSuggestions
|
|
43862
43811
|
};
|
|
43863
43812
|
const widgetEl = vue.ref(null);
|
|
43864
43813
|
const floatingPos = vue.ref(null);
|
|
@@ -43868,15 +43817,44 @@
|
|
|
43868
43817
|
if (!props.storageKey) return null;
|
|
43869
43818
|
return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-width`;
|
|
43870
43819
|
}
|
|
43820
|
+
function resolvePositionKey() {
|
|
43821
|
+
if (!props.storageKey || !props.rememberPosition) return null;
|
|
43822
|
+
return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-position`;
|
|
43823
|
+
}
|
|
43824
|
+
function clampPos(pos) {
|
|
43825
|
+
const w = currentWidgetWidth();
|
|
43826
|
+
const h = floatingHeightPx();
|
|
43827
|
+
return {
|
|
43828
|
+
left: Math.min(Math.max(pos.left, 0), Math.max(0, window.innerWidth - w)),
|
|
43829
|
+
top: Math.min(Math.max(pos.top, 0), Math.max(0, window.innerHeight - h))
|
|
43830
|
+
};
|
|
43831
|
+
}
|
|
43871
43832
|
const dragWidth = vue.ref(null);
|
|
43872
43833
|
vue.onMounted(async () => {
|
|
43873
43834
|
const key = resolveWidthKey();
|
|
43874
|
-
if (
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43835
|
+
if (key) {
|
|
43836
|
+
const saved = await storage.get(key);
|
|
43837
|
+
if (typeof saved === "number" && Number.isFinite(saved)) {
|
|
43838
|
+
dragWidth.value = Math.min(Math.max(saved, props.minWidth), props.maxWidth);
|
|
43839
|
+
}
|
|
43840
|
+
}
|
|
43841
|
+
const posKey = resolvePositionKey();
|
|
43842
|
+
if (!posKey) {
|
|
43843
|
+
if (mode.value === "floating") initFloatingPos();
|
|
43844
|
+
return;
|
|
43845
|
+
}
|
|
43846
|
+
const pos = await storage.get(posKey);
|
|
43847
|
+
if (pos && Number.isFinite(pos.left) && Number.isFinite(pos.top) && mode.value === "floating") {
|
|
43848
|
+
floatingPos.value = clampPos(pos);
|
|
43849
|
+
} else if (mode.value === "floating") {
|
|
43850
|
+
initFloatingPos();
|
|
43878
43851
|
}
|
|
43879
43852
|
});
|
|
43853
|
+
async function persistPosition() {
|
|
43854
|
+
const key = resolvePositionKey();
|
|
43855
|
+
if (!key || mode.value !== "floating" || !floatingPos.value) return;
|
|
43856
|
+
await storage.set(key, { ...floatingPos.value });
|
|
43857
|
+
}
|
|
43880
43858
|
async function persistWidth() {
|
|
43881
43859
|
const key = resolveWidthKey();
|
|
43882
43860
|
if (!key || dragWidth.value == null) return;
|
|
@@ -44008,6 +43986,7 @@
|
|
|
44008
43986
|
document.removeEventListener("mousemove", onResizeMove);
|
|
44009
43987
|
document.removeEventListener("mouseup", onResizeEnd);
|
|
44010
43988
|
void persistWidth();
|
|
43989
|
+
if (mode.value === "floating" && resizeEdge === "left") void persistPosition();
|
|
44011
43990
|
}
|
|
44012
43991
|
let dragStartX = 0;
|
|
44013
43992
|
let dragStartY = 0;
|
|
@@ -44088,6 +44067,8 @@
|
|
|
44088
44067
|
mode.value = "drawer";
|
|
44089
44068
|
drawerSide.value = snapHint.value;
|
|
44090
44069
|
floatingPos.value = null;
|
|
44070
|
+
} else {
|
|
44071
|
+
void persistPosition();
|
|
44091
44072
|
}
|
|
44092
44073
|
isDragging.value = false;
|
|
44093
44074
|
dragStartPos = null;
|
|
@@ -44135,351 +44116,334 @@
|
|
|
44135
44116
|
}
|
|
44136
44117
|
__expose({ open, close, toggleMode, toggleMaximize, newChat, switchToPrevious, refresh });
|
|
44137
44118
|
return (_ctx, _cache) => {
|
|
44138
|
-
return vue.openBlock(), vue.
|
|
44139
|
-
vue.
|
|
44140
|
-
|
|
44141
|
-
|
|
44142
|
-
|
|
44143
|
-
|
|
44144
|
-
|
|
44145
|
-
vue.
|
|
44146
|
-
|
|
44119
|
+
return vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
44120
|
+
vue.createElementVNode("div", _hoisted_1$1, [
|
|
44121
|
+
snapHint.value ? (vue.openBlock(), vue.createElementBlock(
|
|
44122
|
+
"div",
|
|
44123
|
+
{
|
|
44124
|
+
key: 0,
|
|
44125
|
+
class: vue.normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
|
|
44126
|
+
style: vue.normalizeStyle({ width: `${currentWidgetWidth()}px` })
|
|
44127
|
+
},
|
|
44128
|
+
null,
|
|
44129
|
+
6
|
|
44130
|
+
/* CLASS, STYLE */
|
|
44131
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
44132
|
+
vue.createVNode(vue.Transition, { name: "fv-ai-widget-slide" }, {
|
|
44133
|
+
default: vue.withCtx(() => [
|
|
44134
|
+
renderWidget.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
44147
44135
|
"div",
|
|
44148
44136
|
{
|
|
44149
44137
|
key: 0,
|
|
44150
|
-
|
|
44151
|
-
|
|
44138
|
+
ref_key: "widgetEl",
|
|
44139
|
+
ref: widgetEl,
|
|
44140
|
+
class: vue.normalizeClass(["fv-ai-widget", [
|
|
44141
|
+
`is-${drawerSide.value}`,
|
|
44142
|
+
{
|
|
44143
|
+
"is-floating": mode.value === "floating",
|
|
44144
|
+
"is-maximized": isMaximized.value,
|
|
44145
|
+
"is-dragging": isDragging.value
|
|
44146
|
+
}
|
|
44147
|
+
]]),
|
|
44148
|
+
style: vue.normalizeStyle(panelStyle.value)
|
|
44152
44149
|
},
|
|
44153
|
-
|
|
44154
|
-
|
|
44155
|
-
|
|
44156
|
-
|
|
44157
|
-
|
|
44158
|
-
|
|
44159
|
-
|
|
44150
|
+
[
|
|
44151
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
44152
|
+
vue.Fragment,
|
|
44153
|
+
null,
|
|
44154
|
+
vue.renderList(resizeEdges.value, (edge) => {
|
|
44155
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
44156
|
+
key: edge,
|
|
44157
|
+
class: vue.normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
|
|
44158
|
+
onMousedown: ($event) => onResizeStart($event, edge)
|
|
44159
|
+
}, null, 42, _hoisted_2$1);
|
|
44160
|
+
}),
|
|
44161
|
+
128
|
|
44162
|
+
/* KEYED_FRAGMENT */
|
|
44163
|
+
)),
|
|
44164
|
+
isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
|
|
44165
|
+
key: 0,
|
|
44166
|
+
ref_key: "sidebarRef",
|
|
44167
|
+
ref: sidebarRef,
|
|
44168
|
+
collapsed: sidebarCollapsed.value,
|
|
44169
|
+
"onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
|
|
44170
|
+
class: "fv-ai-widget-sidebar",
|
|
44171
|
+
service: __props.service,
|
|
44172
|
+
"active-id": activeSessionId.value,
|
|
44173
|
+
searchable: true,
|
|
44174
|
+
"brand-name": displayTitle.value,
|
|
44175
|
+
"brand-icon": avatarSrc.value,
|
|
44176
|
+
locale: __props.locale,
|
|
44177
|
+
onSelect: onSidebarSelect,
|
|
44178
|
+
onNewChat,
|
|
44179
|
+
onRemoved: onSidebarRemoved
|
|
44180
|
+
}, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : vue.createCommentVNode("v-if", true),
|
|
44181
|
+
vue.createElementVNode(
|
|
44160
44182
|
"div",
|
|
44161
44183
|
{
|
|
44162
|
-
|
|
44163
|
-
|
|
44164
|
-
ref: widgetEl,
|
|
44165
|
-
class: vue.normalizeClass(["fv-ai-widget", [
|
|
44166
|
-
`is-${drawerSide.value}`,
|
|
44167
|
-
{
|
|
44168
|
-
"is-floating": mode.value === "floating",
|
|
44169
|
-
"is-maximized": isMaximized.value,
|
|
44170
|
-
"is-dragging": isDragging.value
|
|
44171
|
-
}
|
|
44172
|
-
]]),
|
|
44173
|
-
style: vue.normalizeStyle(panelStyle.value)
|
|
44184
|
+
class: "fv-ai-widget-header",
|
|
44185
|
+
onMousedown: onHeaderDragStart
|
|
44174
44186
|
},
|
|
44175
44187
|
[
|
|
44176
|
-
|
|
44177
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
44188
|
+
!isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
|
|
44178
44189
|
vue.Fragment,
|
|
44179
|
-
|
|
44180
|
-
vue.renderList(resizeEdges.value, (edge) => {
|
|
44181
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
44182
|
-
key: edge,
|
|
44183
|
-
class: vue.normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
|
|
44184
|
-
onMousedown: ($event) => onResizeStart($event, edge)
|
|
44185
|
-
}, null, 42, _hoisted_2$1);
|
|
44186
|
-
}),
|
|
44187
|
-
128
|
|
44188
|
-
/* KEYED_FRAGMENT */
|
|
44189
|
-
)),
|
|
44190
|
-
vue.createCommentVNode(" \u6700\u5927\u5316\u6001\u4F1A\u8BDD\u4FA7\u680F:\u6839\u7EA7\u5168\u9AD8\u8986\u76D6(\u76D6\u4F4F header \u5DE6\u5217,\u6807\u8BC6\u7531\u4FA7\u680F\u54C1\u724C\u884C\r\n \u627F\u62C5),\u9009\u4E2D\u5207\u4F1A\u8BDD/\u65B0\u5EFA\u91CD\u64AD\u6B22\u8FCE\u9875/\u5220\u9664\u5F53\u524D\u5207\u8349\u7A3F;session-created /\r\n round-complete \u7ECF refresh \u4FDD\u6301\u5217\u8868\u6807\u9898\u540C\u6B65\u3002\u5BBD\u5EA6\u56DE\u5F52\u4FA7\u680F\u81EA\u8EAB\r\n (\u5C55\u5F00 260 / \u6536\u8D77 44),body \u7ECF padding-left \u8BA9\u4F4D(\u89C1 scss) "),
|
|
44191
|
-
isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
|
|
44192
|
-
key: 0,
|
|
44193
|
-
ref_key: "sidebarRef",
|
|
44194
|
-
ref: sidebarRef,
|
|
44195
|
-
collapsed: sidebarCollapsed.value,
|
|
44196
|
-
"onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
|
|
44197
|
-
class: "fv-ai-widget-sidebar",
|
|
44198
|
-
service: __props.service,
|
|
44199
|
-
"active-id": activeSessionId.value,
|
|
44200
|
-
searchable: true,
|
|
44201
|
-
"brand-name": displayTitle.value,
|
|
44202
|
-
"brand-icon": avatarSrc.value,
|
|
44203
|
-
locale: __props.locale,
|
|
44204
|
-
onSelect: onSidebarSelect,
|
|
44205
|
-
onNewChat,
|
|
44206
|
-
onRemoved: onSidebarRemoved
|
|
44207
|
-
}, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : vue.createCommentVNode("v-if", true),
|
|
44208
|
-
vue.createCommentVNode(" \u5934\u90E8:\u5DE6\u4FA7\u5934\u50CF + \u6807\u9898(AI \u540D\u79F0),\u53F3\u4FA7\u56FE\u6807\u6309\u94AE\r\n (\u5386\u53F2\u4F1A\u8BDD\u4E0B\u62C9 + \u65B0\u5BF9\u8BDD + \u6A21\u5F0F\u5207\u6362 + \u5173\u95ED,\u5747\u5E26 tooltip);\r\n \u60AC\u7A97\u6A21\u5F0F\u5934\u90E8\u517C\u4F5C\u62D6\u62FD\u533A\u3002\r\n #header-avatar / #header-title \u66FF\u6362\u54C1\u724C\u533A,#header-actions \u5728\u6807\u9898\u4E0E\r\n \u9ED8\u8BA4\u6309\u94AE\u4E4B\u95F4\u8FFD\u52A0\u81EA\u5B9A\u4E49\u6309\u94AE(\u4EA4\u4E92\u914D\u5408 expose \u7684 newChat/switchToPrevious) "),
|
|
44209
|
-
vue.createElementVNode(
|
|
44210
|
-
"div",
|
|
44211
|
-
{
|
|
44212
|
-
class: "fv-ai-widget-header",
|
|
44213
|
-
onMousedown: onHeaderDragStart
|
|
44214
|
-
},
|
|
44190
|
+
{ key: 0 },
|
|
44215
44191
|
[
|
|
44216
|
-
vue.
|
|
44217
|
-
|
|
44218
|
-
|
|
44219
|
-
|
|
44220
|
-
|
|
44221
|
-
|
|
44222
|
-
|
|
44223
|
-
|
|
44224
|
-
|
|
44225
|
-
|
|
44226
|
-
|
|
44227
|
-
|
|
44228
|
-
|
|
44229
|
-
|
|
44230
|
-
|
|
44231
|
-
|
|
44232
|
-
|
|
44233
|
-
|
|
44234
|
-
|
|
44235
|
-
|
|
44236
|
-
|
|
44237
|
-
|
|
44238
|
-
|
|
44239
|
-
|
|
44240
|
-
|
|
44241
|
-
vue.
|
|
44242
|
-
|
|
44243
|
-
!isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
|
|
44244
|
-
vue.Fragment,
|
|
44245
|
-
{ key: 2 },
|
|
44246
|
-
[
|
|
44247
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
44248
|
-
content: vue.unref(dict).aiChatPanel.history,
|
|
44249
|
-
"show-after": 300,
|
|
44250
|
-
placement: "bottom"
|
|
44251
|
-
}, {
|
|
44252
|
-
default: vue.withCtx(() => [
|
|
44253
|
-
vue.createElementVNode("button", {
|
|
44254
|
-
type: "button",
|
|
44255
|
-
class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
|
|
44256
|
-
"aria-label": vue.unref(dict).aiChatPanel.history,
|
|
44257
|
-
onClick: onHistoryToggle
|
|
44258
|
-
}, [
|
|
44259
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
|
|
44260
|
-
default: vue.withCtx(() => [
|
|
44261
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Clock))
|
|
44262
|
-
]),
|
|
44263
|
-
_: 1
|
|
44264
|
-
/* STABLE */
|
|
44265
|
-
})
|
|
44266
|
-
], 8, _hoisted_6)
|
|
44267
|
-
]),
|
|
44268
|
-
_: 1
|
|
44269
|
-
/* STABLE */
|
|
44270
|
-
}, 8, ["content"]),
|
|
44271
|
-
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
44272
|
-
content: vue.unref(dict).sessionSidebar.newChat,
|
|
44273
|
-
"show-after": 300,
|
|
44274
|
-
placement: "bottom"
|
|
44275
|
-
}, {
|
|
44276
|
-
default: vue.withCtx(() => [
|
|
44277
|
-
vue.createElementVNode("button", {
|
|
44278
|
-
type: "button",
|
|
44279
|
-
class: "fv-ai-widget-icon-btn fv-ai-widget-new",
|
|
44280
|
-
"aria-label": vue.unref(dict).sessionSidebar.newChat,
|
|
44281
|
-
onClick: onNewChat
|
|
44282
|
-
}, [
|
|
44283
|
-
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
|
|
44284
|
-
default: vue.withCtx(() => [
|
|
44285
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
|
|
44286
|
-
]),
|
|
44287
|
-
_: 1
|
|
44288
|
-
/* STABLE */
|
|
44289
|
-
})
|
|
44290
|
-
], 8, _hoisted_7)
|
|
44291
|
-
]),
|
|
44292
|
-
_: 1
|
|
44293
|
-
/* STABLE */
|
|
44294
|
-
}, 8, ["content"]),
|
|
44295
|
-
__props.showModeToggle ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
44296
|
-
key: 0,
|
|
44297
|
-
content: mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
|
|
44298
|
-
"show-after": 300,
|
|
44299
|
-
placement: "bottom"
|
|
44300
|
-
}, {
|
|
44301
|
-
default: vue.withCtx(() => [
|
|
44302
|
-
vue.createElementVNode("button", {
|
|
44303
|
-
type: "button",
|
|
44304
|
-
class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
|
|
44305
|
-
"aria-label": mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
|
|
44306
|
-
onClick: toggleMode
|
|
44307
|
-
}, [
|
|
44308
|
-
mode.value === "drawer" ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
44309
|
-
key: 0,
|
|
44310
|
-
name: "to-window",
|
|
44311
|
-
size: 18
|
|
44312
|
-
})) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
44313
|
-
key: 1,
|
|
44314
|
-
name: "to-drawer",
|
|
44315
|
-
size: 18
|
|
44316
|
-
}))
|
|
44317
|
-
], 8, _hoisted_8)
|
|
44318
|
-
]),
|
|
44319
|
-
_: 1
|
|
44320
|
-
/* STABLE */
|
|
44321
|
-
}, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
44322
|
-
],
|
|
44323
|
-
64
|
|
44324
|
-
/* STABLE_FRAGMENT */
|
|
44325
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
44326
|
-
__props.maximizable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
44327
|
-
key: 3,
|
|
44328
|
-
content: isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
|
|
44192
|
+
vue.renderSlot(_ctx.$slots, "header-avatar", {}, () => [
|
|
44193
|
+
vue.createElementVNode("img", {
|
|
44194
|
+
class: "fv-ai-widget-avatar",
|
|
44195
|
+
src: avatarSrc.value,
|
|
44196
|
+
alt: ""
|
|
44197
|
+
}, null, 8, _hoisted_3$1)
|
|
44198
|
+
]),
|
|
44199
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
44200
|
+
vue.renderSlot(_ctx.$slots, "header-title", {}, () => [
|
|
44201
|
+
vue.createTextVNode(
|
|
44202
|
+
vue.toDisplayString(displayTitle.value),
|
|
44203
|
+
1
|
|
44204
|
+
/* TEXT */
|
|
44205
|
+
)
|
|
44206
|
+
])
|
|
44207
|
+
])
|
|
44208
|
+
],
|
|
44209
|
+
64
|
|
44210
|
+
/* STABLE_FRAGMENT */
|
|
44211
|
+
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5)),
|
|
44212
|
+
vue.renderSlot(_ctx.$slots, "header-actions"),
|
|
44213
|
+
!isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
|
|
44214
|
+
vue.Fragment,
|
|
44215
|
+
{ key: 2 },
|
|
44216
|
+
[
|
|
44217
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
44218
|
+
content: vue.unref(dict).aiChatPanel.history,
|
|
44329
44219
|
"show-after": 300,
|
|
44330
44220
|
placement: "bottom"
|
|
44331
44221
|
}, {
|
|
44332
44222
|
default: vue.withCtx(() => [
|
|
44333
44223
|
vue.createElementVNode("button", {
|
|
44334
44224
|
type: "button",
|
|
44335
|
-
class: "fv-ai-widget-icon-btn fv-ai-widget-
|
|
44336
|
-
"aria-label":
|
|
44337
|
-
onClick:
|
|
44225
|
+
class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
|
|
44226
|
+
"aria-label": vue.unref(dict).aiChatPanel.history,
|
|
44227
|
+
onClick: onHistoryToggle
|
|
44338
44228
|
}, [
|
|
44339
|
-
|
|
44340
|
-
|
|
44341
|
-
|
|
44342
|
-
|
|
44343
|
-
|
|
44344
|
-
|
|
44345
|
-
|
|
44346
|
-
|
|
44347
|
-
}))
|
|
44348
|
-
], 8, _hoisted_9)
|
|
44229
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
|
|
44230
|
+
default: vue.withCtx(() => [
|
|
44231
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Clock))
|
|
44232
|
+
]),
|
|
44233
|
+
_: 1
|
|
44234
|
+
/* STABLE */
|
|
44235
|
+
})
|
|
44236
|
+
], 8, _hoisted_6)
|
|
44349
44237
|
]),
|
|
44350
44238
|
_: 1
|
|
44351
44239
|
/* STABLE */
|
|
44352
|
-
}, 8, ["content"])
|
|
44240
|
+
}, 8, ["content"]),
|
|
44353
44241
|
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
44354
|
-
content: vue.unref(dict).
|
|
44242
|
+
content: vue.unref(dict).sessionSidebar.newChat,
|
|
44355
44243
|
"show-after": 300,
|
|
44356
44244
|
placement: "bottom"
|
|
44357
44245
|
}, {
|
|
44358
44246
|
default: vue.withCtx(() => [
|
|
44359
44247
|
vue.createElementVNode("button", {
|
|
44360
44248
|
type: "button",
|
|
44361
|
-
class: "fv-ai-widget-icon-btn fv-ai-widget-
|
|
44362
|
-
"aria-label": vue.unref(dict).
|
|
44363
|
-
onClick:
|
|
44249
|
+
class: "fv-ai-widget-icon-btn fv-ai-widget-new",
|
|
44250
|
+
"aria-label": vue.unref(dict).sessionSidebar.newChat,
|
|
44251
|
+
onClick: onNewChat
|
|
44364
44252
|
}, [
|
|
44365
44253
|
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
|
|
44366
44254
|
default: vue.withCtx(() => [
|
|
44367
|
-
vue.createVNode(vue.unref(ElementPlusIconsVue.
|
|
44255
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
|
|
44368
44256
|
]),
|
|
44369
44257
|
_: 1
|
|
44370
44258
|
/* STABLE */
|
|
44371
44259
|
})
|
|
44372
|
-
], 8,
|
|
44260
|
+
], 8, _hoisted_7)
|
|
44373
44261
|
]),
|
|
44374
44262
|
_: 1
|
|
44375
44263
|
/* STABLE */
|
|
44376
|
-
}, 8, ["content"])
|
|
44377
|
-
|
|
44378
|
-
|
|
44379
|
-
|
|
44380
|
-
|
|
44381
|
-
|
|
44382
|
-
|
|
44383
|
-
"div",
|
|
44384
|
-
{
|
|
44385
|
-
class: vue.normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
|
|
44386
|
-
},
|
|
44387
|
-
[
|
|
44388
|
-
vue.createCommentVNode(" \u5386\u53F2\u4F1A\u8BDD\u4E0B\u62C9\u5C42:body \u5185\u8986\u76D6\u5F0F\u6ED1\u51FA,\u4EC5\u906E\u5BF9\u8BDD\u533A(header \u9732\u51FA\u53EF\u7EE7\u7EED\u64CD\u4F5C);\r\n \u9876\u90E8\u5DE5\u5177\u6761(\u8FD4\u56DE) + FvConversations \u5206\u7EC4\u5217\u8868 + hover \u83DC\u5355\u91CD\u547D\u540D/\u5220\u9664 +\r\n \u89E6\u5E95\u52A0\u8F7D,\u70B9\u884C\u5207\u4F1A\u8BDD\u6536\u8D77 "),
|
|
44389
|
-
vue.createVNode(vue.Transition, { name: "fv-ai-widget-history" }, {
|
|
44264
|
+
}, 8, ["content"]),
|
|
44265
|
+
__props.showModeToggle ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
44266
|
+
key: 0,
|
|
44267
|
+
content: mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
|
|
44268
|
+
"show-after": 300,
|
|
44269
|
+
placement: "bottom"
|
|
44270
|
+
}, {
|
|
44390
44271
|
default: vue.withCtx(() => [
|
|
44391
|
-
|
|
44392
|
-
|
|
44393
|
-
|
|
44394
|
-
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44398
|
-
|
|
44399
|
-
|
|
44400
|
-
|
|
44401
|
-
|
|
44402
|
-
|
|
44403
|
-
|
|
44404
|
-
|
|
44405
|
-
|
|
44406
|
-
|
|
44407
|
-
"span",
|
|
44408
|
-
_hoisted_14,
|
|
44409
|
-
vue.toDisplayString(vue.unref(dict).aiChatPanel.back),
|
|
44410
|
-
1
|
|
44411
|
-
/* TEXT */
|
|
44412
|
-
)
|
|
44413
|
-
], 8, _hoisted_13)
|
|
44414
|
-
]),
|
|
44415
|
-
vue.createElementVNode("div", _hoisted_15, [
|
|
44416
|
-
vue.createVNode(_sfc_main$9, {
|
|
44417
|
-
ref_key: "conversationsRef",
|
|
44418
|
-
ref: conversationsRef,
|
|
44419
|
-
items: historyItems.value,
|
|
44420
|
-
active: activeSessionId.value,
|
|
44421
|
-
loading: historyLoading.value,
|
|
44422
|
-
"has-more": historyHasMore.value,
|
|
44423
|
-
locale: __props.locale,
|
|
44424
|
-
"onUpdate:active": onSelectSession,
|
|
44425
|
-
onLoadMore: loadMoreHistory,
|
|
44426
|
-
onMenuCommand: onHistoryMenuCommand
|
|
44427
|
-
}, null, 8, ["items", "active", "loading", "has-more", "locale"]),
|
|
44428
|
-
!historyLoading.value && !historyItems.value.length ? (vue.openBlock(), vue.createElementBlock(
|
|
44429
|
-
"div",
|
|
44430
|
-
_hoisted_16,
|
|
44431
|
-
vue.toDisplayString(vue.unref(dict).aiChatPanel.historyEmpty),
|
|
44432
|
-
1
|
|
44433
|
-
/* TEXT */
|
|
44434
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
44435
|
-
])
|
|
44436
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
44272
|
+
vue.createElementVNode("button", {
|
|
44273
|
+
type: "button",
|
|
44274
|
+
class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
|
|
44275
|
+
"aria-label": mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
|
|
44276
|
+
onClick: toggleMode
|
|
44277
|
+
}, [
|
|
44278
|
+
mode.value === "drawer" ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
44279
|
+
key: 0,
|
|
44280
|
+
name: "to-window",
|
|
44281
|
+
size: 18
|
|
44282
|
+
})) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
44283
|
+
key: 1,
|
|
44284
|
+
name: "to-drawer",
|
|
44285
|
+
size: 18
|
|
44286
|
+
}))
|
|
44287
|
+
], 8, _hoisted_8)
|
|
44437
44288
|
]),
|
|
44438
44289
|
_: 1
|
|
44439
44290
|
/* STABLE */
|
|
44440
|
-
}),
|
|
44441
|
-
|
|
44442
|
-
|
|
44443
|
-
|
|
44444
|
-
|
|
44445
|
-
|
|
44446
|
-
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44291
|
+
}, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
44292
|
+
],
|
|
44293
|
+
64
|
|
44294
|
+
/* STABLE_FRAGMENT */
|
|
44295
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
44296
|
+
__props.maximizable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
|
|
44297
|
+
key: 3,
|
|
44298
|
+
content: isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
|
|
44299
|
+
"show-after": 300,
|
|
44300
|
+
placement: "bottom"
|
|
44301
|
+
}, {
|
|
44302
|
+
default: vue.withCtx(() => [
|
|
44303
|
+
vue.createElementVNode("button", {
|
|
44304
|
+
type: "button",
|
|
44305
|
+
class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
|
|
44306
|
+
"aria-label": isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
|
|
44307
|
+
onClick: toggleMaximize
|
|
44453
44308
|
}, [
|
|
44454
|
-
vue.
|
|
44455
|
-
|
|
44456
|
-
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44309
|
+
isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
44310
|
+
key: 0,
|
|
44311
|
+
name: "win-restore",
|
|
44312
|
+
size: 18
|
|
44313
|
+
})) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
44314
|
+
key: 1,
|
|
44315
|
+
name: "maximize",
|
|
44316
|
+
size: 18
|
|
44317
|
+
}))
|
|
44318
|
+
], 8, _hoisted_9)
|
|
44319
|
+
]),
|
|
44320
|
+
_: 1
|
|
44321
|
+
/* STABLE */
|
|
44322
|
+
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
44323
|
+
vue.createVNode(vue.unref(elementPlus.ElTooltip), {
|
|
44324
|
+
content: vue.unref(dict).aiChatPanel.close,
|
|
44325
|
+
"show-after": 300,
|
|
44326
|
+
placement: "bottom"
|
|
44327
|
+
}, {
|
|
44328
|
+
default: vue.withCtx(() => [
|
|
44329
|
+
vue.createElementVNode("button", {
|
|
44330
|
+
type: "button",
|
|
44331
|
+
class: "fv-ai-widget-icon-btn fv-ai-widget-close",
|
|
44332
|
+
"aria-label": vue.unref(dict).aiChatPanel.close,
|
|
44333
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", false))
|
|
44334
|
+
}, [
|
|
44335
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
|
|
44336
|
+
default: vue.withCtx(() => [
|
|
44337
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
|
|
44338
|
+
]),
|
|
44339
|
+
_: 1
|
|
44340
|
+
/* STABLE */
|
|
44461
44341
|
})
|
|
44462
|
-
]
|
|
44463
|
-
],
|
|
44464
|
-
|
|
44465
|
-
/*
|
|
44466
|
-
)
|
|
44342
|
+
], 8, _hoisted_10)
|
|
44343
|
+
]),
|
|
44344
|
+
_: 1
|
|
44345
|
+
/* STABLE */
|
|
44346
|
+
}, 8, ["content"])
|
|
44467
44347
|
],
|
|
44468
|
-
|
|
44469
|
-
/*
|
|
44470
|
-
)
|
|
44471
|
-
|
|
44472
|
-
|
|
44473
|
-
|
|
44474
|
-
|
|
44475
|
-
|
|
44476
|
-
|
|
44477
|
-
|
|
44478
|
-
|
|
44479
|
-
|
|
44480
|
-
|
|
44481
|
-
|
|
44482
|
-
|
|
44348
|
+
32
|
|
44349
|
+
/* NEED_HYDRATION */
|
|
44350
|
+
),
|
|
44351
|
+
vue.createElementVNode(
|
|
44352
|
+
"div",
|
|
44353
|
+
{
|
|
44354
|
+
class: vue.normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
|
|
44355
|
+
},
|
|
44356
|
+
[
|
|
44357
|
+
vue.createVNode(vue.Transition, { name: "fv-ai-widget-history" }, {
|
|
44358
|
+
default: vue.withCtx(() => [
|
|
44359
|
+
historyOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
|
|
44360
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
44361
|
+
vue.createElementVNode("button", {
|
|
44362
|
+
type: "button",
|
|
44363
|
+
class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
|
|
44364
|
+
"aria-label": vue.unref(dict).aiChatPanel.back,
|
|
44365
|
+
onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
|
|
44366
|
+
}, [
|
|
44367
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
|
|
44368
|
+
default: vue.withCtx(() => [
|
|
44369
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.ArrowLeft))
|
|
44370
|
+
]),
|
|
44371
|
+
_: 1
|
|
44372
|
+
/* STABLE */
|
|
44373
|
+
}),
|
|
44374
|
+
vue.createElementVNode(
|
|
44375
|
+
"span",
|
|
44376
|
+
_hoisted_14,
|
|
44377
|
+
vue.toDisplayString(vue.unref(dict).aiChatPanel.back),
|
|
44378
|
+
1
|
|
44379
|
+
/* TEXT */
|
|
44380
|
+
)
|
|
44381
|
+
], 8, _hoisted_13)
|
|
44382
|
+
]),
|
|
44383
|
+
vue.createElementVNode("div", _hoisted_15, [
|
|
44384
|
+
vue.createVNode(_sfc_main$9, {
|
|
44385
|
+
ref_key: "conversationsRef",
|
|
44386
|
+
ref: conversationsRef,
|
|
44387
|
+
items: historyItems.value,
|
|
44388
|
+
active: activeSessionId.value,
|
|
44389
|
+
loading: historyLoading.value,
|
|
44390
|
+
"has-more": historyHasMore.value,
|
|
44391
|
+
locale: __props.locale,
|
|
44392
|
+
"onUpdate:active": onSelectSession,
|
|
44393
|
+
onLoadMore: loadMoreHistory,
|
|
44394
|
+
onMenuCommand: onHistoryMenuCommand
|
|
44395
|
+
}, null, 8, ["items", "active", "loading", "has-more", "locale"]),
|
|
44396
|
+
!historyLoading.value && !historyItems.value.length ? (vue.openBlock(), vue.createElementBlock(
|
|
44397
|
+
"div",
|
|
44398
|
+
_hoisted_16,
|
|
44399
|
+
vue.toDisplayString(vue.unref(dict).aiChatPanel.historyEmpty),
|
|
44400
|
+
1
|
|
44401
|
+
/* TEXT */
|
|
44402
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
44403
|
+
])
|
|
44404
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
44405
|
+
]),
|
|
44406
|
+
_: 1
|
|
44407
|
+
/* STABLE */
|
|
44408
|
+
}),
|
|
44409
|
+
vue.createVNode(_sfc_main$2, vue.mergeProps({
|
|
44410
|
+
ref_key: "panelRef",
|
|
44411
|
+
ref: panelRef
|
|
44412
|
+
}, panelProps.value, {
|
|
44413
|
+
"session-id": activeSessionId.value,
|
|
44414
|
+
"welcome-layout": isMaximized.value ? "horizontal" : "vertical",
|
|
44415
|
+
"center-welcome": isMaximized.value,
|
|
44416
|
+
onSessionCreated,
|
|
44417
|
+
onRoundComplete
|
|
44418
|
+
}, vue.toHandlers(panelListeners)), vue.createSlots({
|
|
44419
|
+
_: 2
|
|
44420
|
+
/* DYNAMIC */
|
|
44421
|
+
}, [
|
|
44422
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
44423
|
+
return {
|
|
44424
|
+
name,
|
|
44425
|
+
fn: vue.withCtx((slotProps) => [
|
|
44426
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps ?? {})))
|
|
44427
|
+
])
|
|
44428
|
+
};
|
|
44429
|
+
})
|
|
44430
|
+
]), 1040, ["session-id", "welcome-layout", "center-welcome"])
|
|
44431
|
+
],
|
|
44432
|
+
2
|
|
44433
|
+
/* CLASS */
|
|
44434
|
+
)
|
|
44435
|
+
],
|
|
44436
|
+
6
|
|
44437
|
+
/* CLASS, STYLE */
|
|
44438
|
+
)), [
|
|
44439
|
+
[vue.vShow, __props.modelValue]
|
|
44440
|
+
]) : vue.createCommentVNode("v-if", true)
|
|
44441
|
+
]),
|
|
44442
|
+
_: 3
|
|
44443
|
+
/* FORWARDED */
|
|
44444
|
+
})
|
|
44445
|
+
])
|
|
44446
|
+
]);
|
|
44483
44447
|
};
|
|
44484
44448
|
}
|
|
44485
44449
|
});
|
|
@@ -44509,6 +44473,8 @@
|
|
|
44509
44473
|
iconComponent: { type: null, required: false, default: void 0 },
|
|
44510
44474
|
eyeTrack: { type: Boolean, required: false, default: true },
|
|
44511
44475
|
halo: { type: Object, required: false, default: void 0 },
|
|
44476
|
+
storageKey: { type: String, required: false, default: "fv-ai-launcher" },
|
|
44477
|
+
rememberPosition: { type: Boolean, required: false, default: true },
|
|
44512
44478
|
ariaLabel: { type: String, required: false, default: "" },
|
|
44513
44479
|
locale: { type: null, required: false, default: void 0 }
|
|
44514
44480
|
},
|
|
@@ -44543,6 +44509,31 @@
|
|
|
44543
44509
|
moved: false
|
|
44544
44510
|
};
|
|
44545
44511
|
const dragPos = vue.ref(null);
|
|
44512
|
+
const storage = createLocalStorageAdapter();
|
|
44513
|
+
function resolvePositionKey() {
|
|
44514
|
+
if (!props.storageKey || !props.rememberPosition) return null;
|
|
44515
|
+
return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-position`;
|
|
44516
|
+
}
|
|
44517
|
+
function clampPos(pos) {
|
|
44518
|
+
const size = props.size;
|
|
44519
|
+
return {
|
|
44520
|
+
left: Math.min(Math.max(pos.left, 0), Math.max(0, window.innerWidth - size)),
|
|
44521
|
+
top: Math.min(Math.max(pos.top, 0), Math.max(0, window.innerHeight - size))
|
|
44522
|
+
};
|
|
44523
|
+
}
|
|
44524
|
+
vue.onMounted(async () => {
|
|
44525
|
+
const key = resolvePositionKey();
|
|
44526
|
+
if (!key || !dragEnabled.value) return;
|
|
44527
|
+
const pos = await storage.get(key);
|
|
44528
|
+
if (pos && Number.isFinite(pos.left) && Number.isFinite(pos.top)) {
|
|
44529
|
+
dragPos.value = clampPos(pos);
|
|
44530
|
+
}
|
|
44531
|
+
});
|
|
44532
|
+
async function persistPosition() {
|
|
44533
|
+
const key = resolvePositionKey();
|
|
44534
|
+
if (!key || !dragPos.value) return;
|
|
44535
|
+
await storage.set(key, { ...dragPos.value });
|
|
44536
|
+
}
|
|
44546
44537
|
function onPointerDown(ev) {
|
|
44547
44538
|
if (!dragEnabled.value || ev.button !== 0) return;
|
|
44548
44539
|
const el = rootEl.value;
|
|
@@ -44582,7 +44573,10 @@
|
|
|
44582
44573
|
el.removeEventListener("pointercancel", onPointerUp);
|
|
44583
44574
|
}
|
|
44584
44575
|
dragState.pointerId = -1;
|
|
44585
|
-
if (dragState.moved && dragPos.value)
|
|
44576
|
+
if (dragState.moved && dragPos.value) {
|
|
44577
|
+
emit("drag-end", { ...dragPos.value });
|
|
44578
|
+
void persistPosition();
|
|
44579
|
+
}
|
|
44586
44580
|
}
|
|
44587
44581
|
vue.onBeforeUnmount(() => {
|
|
44588
44582
|
const el = rootEl.value;
|
|
@@ -44690,32 +44684,22 @@
|
|
|
44690
44684
|
onClick: _cache[1] || (_cache[1] = ($event) => __props.interactive && onClickGuard($event))
|
|
44691
44685
|
}, {
|
|
44692
44686
|
default: vue.withCtx(() => [
|
|
44693
|
-
vue.createCommentVNode(" blob \u5149\u6655:\u5185\u5D4C FvBlobHalo(\u9ED8\u8BA4\u4E3B\u9898\u8272 + AI \u7D2B + \u6D45\u7D2B + \u767D\u56DB\u8272,\r\n \u76F8\u5BF9\u6309\u94AE\u653E\u5927 1.6 \u500D\u53E0\u5728\u5934\u50CF\u540E\u65B9;halo prop \u6574\u4F53\u900F\u4F20\u53EF\u8986\u76D6) "),
|
|
44694
44687
|
vue.createVNode(_sfc_main$8, vue.mergeProps({
|
|
44695
44688
|
class: "fv-ai-launcher-halo",
|
|
44696
44689
|
size: __props.size
|
|
44697
44690
|
}, haloProps.value), null, 16, ["size"]),
|
|
44698
|
-
vue.createCommentVNode(" #default \u6574\u4F53\u66FF\u6362\u5185\u5BB9(\u5149\u6655\u5C42\u4FDD\u7559);\u7F3A\u7701\u6E32\u67D3 #icon > iconComponent > \u5185\u7F6E\u54C1\u724C\u5934\u50CF "),
|
|
44699
44691
|
vue.createElementVNode("span", _hoisted_1, [
|
|
44700
44692
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
44701
44693
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
44702
44694
|
__props.iconComponent ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.iconComponent), {
|
|
44703
44695
|
key: 0,
|
|
44704
44696
|
class: "fv-ai-launcher-comp-icon"
|
|
44705
|
-
})) : !__props.icon ? (vue.openBlock(), vue.createElementBlock(
|
|
44706
|
-
|
|
44707
|
-
{
|
|
44708
|
-
|
|
44709
|
-
|
|
44710
|
-
|
|
44711
|
-
class: vue.normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
|
|
44712
|
-
"aria-hidden": "true",
|
|
44713
|
-
innerHTML: vue.unref(defaultAvatarSvg)
|
|
44714
|
-
}, null, 10, _hoisted_2)
|
|
44715
|
-
],
|
|
44716
|
-
2112
|
|
44717
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
44718
|
-
)) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
44697
|
+
})) : !__props.icon ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
44698
|
+
key: 1,
|
|
44699
|
+
class: vue.normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
|
|
44700
|
+
"aria-hidden": "true",
|
|
44701
|
+
innerHTML: vue.unref(defaultAvatarSvg)
|
|
44702
|
+
}, null, 10, _hoisted_2)) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
44719
44703
|
key: 2,
|
|
44720
44704
|
class: "fv-ai-launcher-avatar",
|
|
44721
44705
|
src: __props.icon,
|