@fv-ui/ai-chat 1.9.1 → 1.9.4

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/lib/index.js CHANGED
@@ -34336,8 +34336,6 @@
34336
34336
  onMouseover: onRootOver,
34337
34337
  onMouseleave: hideTip
34338
34338
  }, 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
34339
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
34342
34340
  vue.createElementVNode(
34343
34341
  "div",
@@ -34463,7 +34461,6 @@
34463
34461
  class: vue.normalizeClass(["fv-typewriter", { "is-typing": isTyping.value, "is-fog": !!fog.value }])
34464
34462
  },
34465
34463
  [
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
34464
  __props.isMarkdown ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
34468
34465
  key: 0,
34469
34466
  content: renderedContent.value,
@@ -34484,7 +34481,6 @@
34484
34481
  /* TEXT */
34485
34482
  )) : vue.createCommentVNode("v-if", true)
34486
34483
  ])),
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
34484
  fog.value && isTyping.value ? (vue.openBlock(), vue.createElementBlock(
34489
34485
  "span",
34490
34486
  {
@@ -34592,7 +34588,6 @@
34592
34588
  style: vue.normalizeStyle({ "--fv-bubble-avatar-gap": __props.avatarGap, "--fv-bubble-avatar-size": __props.avatarSize || void 0 })
34593
34589
  },
34594
34590
  [
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
34591
  _ctx.$slots.avatar || __props.avatar || __props.avatarIcon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
34597
34592
  _ctx.$slots.avatar ? vue.renderSlot(_ctx.$slots, "avatar", {}, void 0, void 0, 0) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAvatar), {
34598
34593
  key: 1,
@@ -34616,7 +34611,6 @@
34616
34611
  class: vue.normalizeClass(["fv-bubble-content", { "no-padding": __props.noPadding, "no-style": __props.noStyle }])
34617
34612
  },
34618
34613
  [
34619
- vue.createCommentVNode(" loading \u4F18\u5148:#loading \u63D2\u69FD\u4F18\u5148\u4E8E\u5185\u7F6E\u4E09\u70B9\u52A8\u753B "),
34620
34614
  __props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, [
34621
34615
  _ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", {}, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
34622
34616
  vue.Fragment,
@@ -34637,35 +34631,18 @@
34637
34631
  64
34638
34632
  /* STABLE_FRAGMENT */
34639
34633
  ))
34640
- ])) : _ctx.$slots.content ? (vue.openBlock(), vue.createElementBlock(
34641
- vue.Fragment,
34642
- { key: 1 },
34643
- [
34644
- vue.createCommentVNode(" #content \u63D2\u69FD\u4F18\u5148\u4E8E content prop "),
34645
- vue.renderSlot(_ctx.$slots, "content")
34646
- ],
34647
- 2112
34648
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
34649
- )) : __props.typing ? (vue.openBlock(), vue.createElementBlock(
34650
- vue.Fragment,
34651
- { key: 2 },
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, {
34634
+ ])) : _ctx.$slots.content ? vue.renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1) : __props.typing ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
34635
+ key: 2,
34636
+ ref_key: "twRef",
34637
+ ref: twRef,
34638
+ content: __props.content,
34639
+ "is-markdown": __props.isMarkdown,
34640
+ "is-fog": __props.isFog,
34641
+ typing: __props.typing,
34642
+ onStart,
34643
+ onWriting,
34644
+ onFinish
34645
+ }, null, 8, ["content", "is-markdown", "is-fog", "typing"])) : __props.isMarkdown ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
34669
34646
  key: 3,
34670
34647
  content: __props.content
34671
34648
  }, null, 8, ["content"])) : (vue.openBlock(), vue.createElementBlock(
@@ -34878,7 +34855,6 @@
34878
34855
  38
34879
34856
  /* CLASS, STYLE, NEED_HYDRATION */
34880
34857
  ),
34881
- vue.createCommentVNode(" \u56DE\u5E95\u6309\u94AE:\u8DDD\u5E95\u8D85\u8FC7 backButtonThreshold \u663E\u793A "),
34882
34858
  vue.createVNode(vue.Transition, { name: "fv-bubble-list-fade" }, {
34883
34859
  default: vue.withCtx(() => [
34884
34860
  __props.showBackButton && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
@@ -35451,22 +35427,17 @@
35451
35427
  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
35428
  },
35453
35429
  [
35454
- vue.createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
35455
35430
  headerVisible.value && _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
35456
35431
  vue.renderSlot(_ctx.$slots, "header")
35457
35432
  ])) : vue.createCommentVNode("v-if", true),
35458
35433
  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
35434
  _ctx.$slots["body-top"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$h, [
35461
35435
  vue.renderSlot(_ctx.$slots, "body-top")
35462
35436
  ])) : vue.createCommentVNode("v-if", true),
35463
- vue.createCommentVNode(" \u4E3B\u4F53\u884C:\u524D\u7F00 + \u8F93\u5165 + \u64CD\u4F5C "),
35464
35437
  vue.createElementVNode("div", _hoisted_4$e, [
35465
- vue.createCommentVNode(" \u524D\u7F00\u533A "),
35466
35438
  _ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$c, [
35467
35439
  vue.renderSlot(_ctx.$slots, "prefix")
35468
35440
  ])) : 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
35441
  vue.unref(isRecording) ? (vue.openBlock(), vue.createElementBlock(
35471
35442
  "div",
35472
35443
  {
@@ -35569,7 +35540,6 @@
35569
35540
  onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
35570
35541
  onBlur: onTextareaBlur
35571
35542
  }, null, 40, _hoisted_8$7),
35572
- vue.createCommentVNode(" \u6307\u4EE4\u5F39\u6846:\u5185\u7F6E el-popover,\u5B9A\u4F4D\u6309 triggerPopover* \u7CFB\u5217 "),
35573
35543
  vue.createVNode(vue.unref(elementPlus.ElPopover), {
35574
35544
  visible: triggerVisible.value && __props.triggerStrings.length > 0,
35575
35545
  placement: __props.triggerPopoverPlacement,
@@ -35600,7 +35570,6 @@
35600
35570
  4
35601
35571
  /* STYLE */
35602
35572
  )),
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
35573
  hasActionListSlot.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$5, [
35605
35574
  vue.renderSlot(_ctx.$slots, "action-list")
35606
35575
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$4, [
@@ -35647,7 +35616,6 @@
35647
35616
  _: 1
35648
35617
  /* STABLE */
35649
35618
  }, 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
35619
  __props.loading ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
35652
35620
  key: 3,
35653
35621
  class: vue.normalizeClass(["fv-sender-stop", { "is-guarded": stopGuarded.value }]),
@@ -35664,7 +35632,6 @@
35664
35632
  _: 1
35665
35633
  /* STABLE */
35666
35634
  }),
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
35635
  (vue.openBlock(), vue.createElementBlock("svg", _hoisted_12$4, [
35669
35636
  (vue.openBlock(true), vue.createElementBlock(
35670
35637
  vue.Fragment,
@@ -35707,10 +35674,8 @@
35707
35674
  /* STABLE */
35708
35675
  }, 8, ["circle", "disabled", "aria-label"]))
35709
35676
  ]))
35710
- ]),
35711
- vue.createCommentVNode(" /fv-sender-row ")
35677
+ ])
35712
35678
  ]),
35713
- vue.createCommentVNode(" \u5E95\u90E8 "),
35714
35679
  _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$4, [
35715
35680
  vue.renderSlot(_ctx.$slots, "footer")
35716
35681
  ])) : vue.createCommentVNode("v-if", true)
@@ -36038,7 +36003,6 @@
36038
36003
  onKeydownCapture
36039
36004
  },
36040
36005
  [
36041
- vue.createCommentVNode(" Sender \u900F\u4F20:\u672A\u58F0\u660E\u7684 props/\u76D1\u542C\u5668\u7ECF $attrs \u4E0B\u4F20;slots \u52A8\u6001\u8F6C\u53D1 "),
36042
36006
  vue.createVNode(_sfc_main$j, vue.mergeProps({
36043
36007
  ref_key: "senderRef",
36044
36008
  ref: senderRef
@@ -36065,7 +36029,6 @@
36065
36029
  };
36066
36030
  })
36067
36031
  ]), 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
36032
  mentionVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
36070
36033
  key: 0,
36071
36034
  visible: true,
@@ -36936,17 +36899,14 @@
36936
36899
  style: vue.normalizeStyle(__props.customStyle)
36937
36900
  },
36938
36901
  [
36939
- vue.createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
36940
36902
  headerVisible.value && _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
36941
36903
  vue.renderSlot(_ctx.$slots, "header")
36942
36904
  ])) : vue.createCommentVNode("v-if", true),
36943
36905
  vue.createElementVNode("div", _hoisted_2$f, [
36944
- vue.createCommentVNode(" \u524D\u7F00\u533A "),
36945
36906
  _ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$f, [
36946
36907
  vue.renderSlot(_ctx.$slots, "prefix")
36947
36908
  ])) : vue.createCommentVNode("v-if", true),
36948
36909
  vue.createElementVNode("div", _hoisted_4$c, [
36949
- vue.createCommentVNode(" \u6807\u7B7E\u7F16\u8F91\u533A:contenteditable,\u5185\u5BB9\u7531\u547D\u4EE4\u5F0F\u6E32\u67D3(nodes \u2192 DOM) "),
36950
36910
  vue.createElementVNode("div", {
36951
36911
  ref_key: "editorRef",
36952
36912
  ref: editorRef,
@@ -36961,8 +36921,6 @@
36961
36921
  onFocus: onEditorFocus,
36962
36922
  onBlur: onEditorBlur
36963
36923
  }, 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
36924
  mentionVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
36967
36925
  key: 0,
36968
36926
  visible: true,
@@ -37046,7 +37004,6 @@
37046
37004
  _: 1
37047
37005
  /* STABLE */
37048
37006
  })) : vue.createCommentVNode("v-if", true),
37049
- vue.createCommentVNode(" \u8F93\u5165\u6807\u7B7E tip \u5F39\u5C42(openTipTag/closeTipTag \u63A7\u5236) "),
37050
37007
  tipVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
37051
37008
  key: 1,
37052
37009
  visible: true,
@@ -37083,7 +37040,6 @@
37083
37040
  /* FORWARDED */
37084
37041
  })) : vue.createCommentVNode("v-if", true)
37085
37042
  ]),
37086
- vue.createCommentVNode(" \u64CD\u4F5C\u533A:#action-list \u5B58\u5728\u65F6\u5168\u81EA\u5B9A\u4E49,\u9690\u85CF\u5185\u7F6E\u6309\u94AE "),
37087
37043
  hasActionListSlot.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$3, [
37088
37044
  vue.renderSlot(_ctx.$slots, "action-list")
37089
37045
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$3, [
@@ -37107,7 +37063,6 @@
37107
37063
  _: 1
37108
37064
  /* STABLE */
37109
37065
  }, 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
37066
  __props.loading ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
37112
37067
  key: 1,
37113
37068
  class: "fv-editor-stop",
@@ -37148,11 +37103,9 @@
37148
37103
  }, 8, ["disabled", "aria-label"]))
37149
37104
  ]))
37150
37105
  ]),
37151
- vue.createCommentVNode(" \u5E95\u90E8 "),
37152
37106
  _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$2, [
37153
37107
  vue.renderSlot(_ctx.$slots, "footer")
37154
37108
  ])) : 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
37109
  selectVisible.value && !__props.customDialog ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
37157
37110
  key: 2,
37158
37111
  "model-value": selectVisible.value,
@@ -37293,7 +37246,6 @@
37293
37246
  })
37294
37247
  },
37295
37248
  [
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
37249
  !__props.hideHeader ? (vue.openBlock(), vue.createElementBlock(
37298
37250
  "button",
37299
37251
  {
@@ -37377,7 +37329,6 @@
37377
37329
  4
37378
37330
  /* STYLE */
37379
37331
  )) : 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
37332
  hasBody.value ? (vue.openBlock(), vue.createElementBlock("div", {
37382
37333
  key: 1,
37383
37334
  class: "fv-thinking-content",
@@ -37807,7 +37758,6 @@
37807
37758
  class: vue.normalizeClass(["fv-chain-item", [statusClass(item.status), item.class]])
37808
37759
  },
37809
37760
  [
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
37761
  vue.createElementVNode("span", _hoisted_1$f, [
37812
37762
  item.icon ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
37813
37763
  key: 0,
@@ -37844,13 +37794,11 @@
37844
37794
  /* STABLE */
37845
37795
  })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$d))
37846
37796
  ]),
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
37797
  vue.createElementVNode("div", _hoisted_3$d, [
37849
37798
  vue.renderSlot(_ctx.$slots, "content", {
37850
37799
  item,
37851
37800
  index
37852
37801
  }, () => [
37853
- vue.createCommentVNode(" text \u6B65:\u6807\u9898\u884C + \u53EF\u6298\u53E0 description \u6EDA\u52A8\u533A(2026-10-07 \u601D\u8003\u94FE\u8C03\u6574) "),
37854
37802
  item.kind === "text" ? (vue.openBlock(), vue.createElementBlock(
37855
37803
  vue.Fragment,
37856
37804
  { key: 0 },
@@ -37868,7 +37816,6 @@
37868
37816
  1
37869
37817
  /* TEXT */
37870
37818
  ),
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
37819
  !isTextExpanded(item.key) && !item.closed && textStepPreview(item) ? (vue.openBlock(), vue.createElementBlock(
37873
37820
  "span",
37874
37821
  _hoisted_6$8,
@@ -37876,7 +37823,6 @@
37876
37823
  1
37877
37824
  /* TEXT */
37878
37825
  )) : 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
37826
  vue.createVNode(
37881
37827
  vue.unref(elementPlus.ElIcon),
37882
37828
  { class: "fv-chain-head-arrow" },
@@ -37892,7 +37838,6 @@
37892
37838
  )
37893
37839
  ], 10, _hoisted_4$a),
37894
37840
  isTextExpanded(item.key) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$6, [
37895
- vue.createCommentVNode(" \u4E0A/\u4E0B\u7F18\u6E10\u9690\u6761:\u5185\u5BB9\u88AB\u6EDA\u52A8\u88C1\u6389\u7684\u65B9\u5411\u624D\u6E32\u67D3(\u72B6\u6001\u89C1 edgeFade),\r\n \u906E\u7F69\u76D6\u5728\u6EDA\u52A8\u533A\u4E4B\u4E0A\u3001\u4E0D\u62E6\u6307\u9488;\u6837\u5F0F\u7ECF .scroll-edge-fade-top/-bottom "),
37896
37841
  edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$5)) : vue.createCommentVNode("v-if", true),
37897
37842
  edgeFade(item.key).bottom ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$3)) : vue.createCommentVNode("v-if", true),
37898
37843
  vue.createVNode(vue.unref(elementPlus.ElScrollbar), {
@@ -37934,7 +37879,6 @@
37934
37879
  vue.Fragment,
37935
37880
  { key: 1 },
37936
37881
  [
37937
- vue.createCommentVNode(" tool \u6B65:\u539F\u5E03\u5C40 "),
37938
37882
  vue.createElementVNode(
37939
37883
  "div",
37940
37884
  {
@@ -37943,7 +37887,6 @@
37943
37887
  class: vue.normalizeClass(["fv-chain-title", { "is-clamped": __props.collapsible && showToggle(item.key) && !expandedKeys.value.has(item.key) }])
37944
37888
  },
37945
37889
  [
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
37890
  isTypingItem(item) && item.key === lastTypingKey.value && !holdingKeys.value.has(item.key) ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
37948
37891
  key: 0,
37949
37892
  content: normalizeTitle(item.title),
@@ -38045,7 +37988,6 @@
38045
37988
  class: vue.normalizeClass(["fv-welcome", `is-${__props.layout}`])
38046
37989
  },
38047
37990
  [
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
37991
  vue.createElementVNode("div", _hoisted_1$e, [
38050
37992
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
38051
37993
  isImage(__props.icon) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElAvatar), {
@@ -38071,10 +38013,8 @@
38071
38013
  }, null, 10, _hoisted_2$c))
38072
38014
  ])
38073
38015
  ]),
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
38016
  vue.createElementVNode("div", _hoisted_3$c, [
38076
38017
  vue.createElementVNode("div", _hoisted_4$9, [
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) "),
38078
38018
  vue.createElementVNode("h2", _hoisted_5$8, [
38079
38019
  vue.renderSlot(_ctx.$slots, "name", {}, () => [
38080
38020
  __props.name ? (vue.openBlock(), vue.createElementBlock(
@@ -38111,7 +38051,6 @@
38111
38051
  ))
38112
38052
  ])
38113
38053
  ]),
38114
- vue.createCommentVNode(" #description \u63D2\u69FD\u8986\u76D6\u63CF\u8FF0;\u672A\u4F20 description \u65F6\u56DE\u843D\u5185\u7F6E\u9ED8\u8BA4\u63CF\u8FF0 "),
38115
38054
  vue.createElementVNode("p", _hoisted_7$5, [
38116
38055
  vue.renderSlot(_ctx.$slots, "description", {}, () => [
38117
38056
  vue.createTextVNode(
@@ -38122,7 +38061,6 @@
38122
38061
  ])
38123
38062
  ])
38124
38063
  ]),
38125
- vue.createCommentVNode(" \u5EFA\u8BAE\u533A(#suggestions \u63D2\u69FD;\u8C03\u7528\u65B9\u901A\u5E38\u6E32\u67D3 Prompts \u5FEB\u6377\u6761\u3002\r\n \u6302\u5728\u6587\u6848\u4E0B\u65B9\u4E0E\u6587\u6848\u540C\u5217:\u6A2A\u6392\u65F6\u968F\u6587\u6848\u9760\u5DE6,\u53F3\u4FA7\u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u9876\u9AD8) "),
38126
38064
  _ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
38127
38065
  vue.renderSlot(_ctx.$slots, "suggestions")
38128
38066
  ])) : vue.createCommentVNode("v-if", true)
@@ -38200,7 +38138,6 @@
38200
38138
  tabindex: item.disabled ? -1 : 0,
38201
38139
  onClick: ($event) => onSelect(item)
38202
38140
  }, [
38203
- vue.createCommentVNode(" #default \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u6574\u5361 "),
38204
38141
  vue.renderSlot(_ctx.$slots, "default", {
38205
38142
  item,
38206
38143
  index
@@ -38340,21 +38277,12 @@
38340
38277
  );
38341
38278
  });
38342
38279
  return (_ctx, _cache) => {
38343
- return vue.openBlock(), vue.createElementBlock(
38344
- vue.Fragment,
38345
- null,
38346
- [
38347
- vue.createCommentVNode(" SVG \u6E90\u6587\u672C\u5185\u8054\u6E32\u67D3(v-html):svg \u6807\u7B7E\u6CE8\u5165 currentColor/width/height,\r\n \u989C\u8272\u968F\u6587\u5B57\u8272/\u4E3B\u9898\u8D70;src \u4E3A ?raw \u5B57\u7B26\u4E32(\u975E URL),\u65E0\u5916\u6587\u6863\u9694\u79BB\u95EE\u9898 "),
38348
- vue.createElementVNode("span", {
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
- );
38280
+ return vue.openBlock(), vue.createElementBlock("span", {
38281
+ class: "fv-svg-icon",
38282
+ style: vue.normalizeStyle(sizeStyle.value),
38283
+ "aria-hidden": "true",
38284
+ innerHTML: rendered.value
38285
+ }, null, 12, _hoisted_1$c);
38358
38286
  };
38359
38287
  }
38360
38288
  });
@@ -38464,7 +38392,6 @@
38464
38392
  class: vue.normalizeClass(["fv-files-card", [`is-${__props.fileType}`, `is-${__props.status}`, { "has-download": !!__props.onDownload }]])
38465
38393
  },
38466
38394
  [
38467
- vue.createCommentVNode(" \u56FE\u7247\u6A21\u5F0F:#image \u63D2\u69FD > url \u7F29\u7565\u56FE > Picture \u5360\u4F4D "),
38468
38395
  isImage.value ? (vue.openBlock(), vue.createElementBlock(
38469
38396
  "div",
38470
38397
  {
@@ -38493,32 +38420,24 @@
38493
38420
  ],
38494
38421
  4
38495
38422
  /* STYLE */
38496
- )) : (vue.openBlock(), vue.createElementBlock(
38497
- vue.Fragment,
38498
- { key: 1 },
38499
- [
38500
- vue.createCommentVNode(" \u6587\u6863\u6A21\u5F0F:\u6309\u6269\u5C55\u540D\u6620\u5C04\u8BBE\u8BA1\u7A3F\u7C7B\u578B\u56FE\u6807 + \u540D\u79F0/\u5927\u5C0F "),
38501
- vue.createCommentVNode(" size \u4F20 '1em':\u8DDF\u968F fv-files-card-icon \u7684 font-size(\u540C\u65E7\u7248 FileIcon \u88F8 svg \u5403 el-icon 1em \u89C4\u5219) "),
38502
- vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-files-card-icon" }, {
38503
- default: vue.withCtx(() => [
38504
- vue.createVNode(_sfc_main$c, {
38505
- name: docIconKind.value,
38506
- size: "1em"
38507
- }, null, 8, ["name"])
38508
- ]),
38509
- _: 1
38510
- /* STABLE */
38511
- })
38512
- ],
38513
- 2112
38514
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
38515
- )),
38423
+ )) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
38424
+ key: 1,
38425
+ class: "fv-files-card-icon"
38426
+ }, {
38427
+ default: vue.withCtx(() => [
38428
+ vue.createVNode(_sfc_main$c, {
38429
+ name: docIconKind.value,
38430
+ size: "1em"
38431
+ }, null, 8, ["name"])
38432
+ ]),
38433
+ _: 1
38434
+ /* STABLE */
38435
+ })),
38516
38436
  vue.createElementVNode("div", _hoisted_2$a, [
38517
38437
  vue.createElementVNode("div", {
38518
38438
  class: "fv-files-card-name",
38519
38439
  title: __props.name
38520
38440
  }, 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
38441
  __props.status === "error" && __props.errorText ? (vue.openBlock(), vue.createElementBlock("div", {
38523
38442
  key: 0,
38524
38443
  class: "fv-files-card-error",
@@ -38537,7 +38456,6 @@
38537
38456
  /* TEXT */
38538
38457
  )) : vue.createCommentVNode("v-if", true)
38539
38458
  ]),
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
38459
  __props.status === "loading" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
38542
38460
  key: 2,
38543
38461
  class: "fv-files-card-loading"
@@ -38548,7 +38466,6 @@
38548
38466
  _: 1
38549
38467
  /* STABLE */
38550
38468
  })) : 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
38469
  vue.createElementVNode("button", {
38553
38470
  type: "button",
38554
38471
  class: "fv-files-card-remove",
@@ -38752,7 +38669,6 @@
38752
38669
  __expose({ openSelect, retry });
38753
38670
  return (_ctx, _cache) => {
38754
38671
  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
38672
  vue.createElementVNode("input", {
38757
38673
  ref_key: "inputRef",
38758
38674
  ref: inputRef,
@@ -38762,7 +38678,6 @@
38762
38678
  multiple: "",
38763
38679
  onChange
38764
38680
  }, 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
38681
  __props.layout !== "listOnly" ? (vue.openBlock(), vue.createElementBlock("button", {
38767
38682
  key: 0,
38768
38683
  type: "button",
@@ -38779,7 +38694,6 @@
38779
38694
  /* STABLE */
38780
38695
  })
38781
38696
  ], 10, _hoisted_3$9)) : vue.createCommentVNode("v-if", true),
38782
- vue.createCommentVNode(" \u6587\u4EF6\u5217\u8868:FilesCard;#list-thumb/#list-item \u8986\u76D6\u9879\u6E32\u67D3(triggerOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
38783
38697
  list.value.length && __props.layout !== "triggerOnly" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
38784
38698
  (vue.openBlock(true), vue.createElementBlock(
38785
38699
  vue.Fragment,
@@ -38816,7 +38730,6 @@
38816
38730
  key: "0"
38817
38731
  } : void 0
38818
38732
  ]), 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
38733
  item.status === "error" ? (vue.openBlock(), vue.createElementBlock("button", {
38821
38734
  key: 0,
38822
38735
  type: "button",
@@ -38839,7 +38752,6 @@
38839
38752
  /* KEYED_FRAGMENT */
38840
38753
  ))
38841
38754
  ])) : vue.createCommentVNode("v-if", true),
38842
- vue.createCommentVNode(" \u5185\u8054\u63D0\u793A(triggerOnly/listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
38843
38755
  __props.tip && __props.layout === "inline" ? (vue.openBlock(), vue.createElementBlock(
38844
38756
  "div",
38845
38757
  _hoisted_6$4,
@@ -38974,7 +38886,6 @@
38974
38886
  key: grp.group ?? "__ungrouped__",
38975
38887
  class: "fv-conversations-group"
38976
38888
  }, [
38977
- vue.createCommentVNode(" \u5206\u7EC4\u6807\u9898:\u6EDA\u52A8\u5438\u9876;#group-title \u8986\u76D6 "),
38978
38889
  grp.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
38979
38890
  vue.renderSlot(_ctx.$slots, "group-title", {
38980
38891
  group: grp.group
@@ -38995,7 +38906,6 @@
38995
38906
  class: vue.normalizeClass(["fv-conversations-item", { "is-active": isActive(item), "is-disabled": !!item.disabled }]),
38996
38907
  onClick: ($event) => onItemClick(item)
38997
38908
  }, [
38998
- vue.createCommentVNode(" \u884C\u5185\u5BB9:#item \u8986\u76D6\u6574\u884C(\u9ED8\u8BA4\u6E32\u67D3 label) "),
38999
38909
  vue.createElementVNode("div", _hoisted_3$8, [
39000
38910
  vue.renderSlot(_ctx.$slots, "item", {
39001
38911
  item,
@@ -39007,7 +38917,6 @@
39007
38917
  }, vue.toDisplayString(item.label), 9, _hoisted_4$5)
39008
38918
  ])
39009
38919
  ]),
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
38920
  !item.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
39012
38921
  key: 0,
39013
38922
  trigger: "click",
@@ -39188,73 +39097,63 @@
39188
39097
  const SHAPES = INIT_D;
39189
39098
  return (_ctx, _cache) => {
39190
39099
  return vue.openBlock(), vue.createElementBlock(
39191
- vue.Fragment,
39192
- null,
39100
+ "div",
39101
+ {
39102
+ class: vue.normalizeClass(["fv-blob-halo", { "is-paused": __props.paused }]),
39103
+ style: vue.normalizeStyle(rootStyle.value),
39104
+ "aria-hidden": "true"
39105
+ },
39193
39106
  [
39194
- vue.createCommentVNode(" blob \u5149\u6655\u5C42(\u5FE0\u5B9E\u590D\u523B\u6587\u6863\u793A\u4F8B):SVG 8 \u4E2A blob(4 \u6B63\u4F53 + 4 alt \u6DE1\u4F53),\r\n path \u4EE5 d: path() \u5173\u952E\u5E27\u53D8\u5F62 + \u5404\u7EC4\u5F02\u901F\u65CB\u8F6C;\u5168\u5C45\u4E2D\u53E0\u653E,\u5706\u5F62\u88C1\u5207\u3002\r\n \u57FA\u7840\u7EC4\u4EF6\u65E0\u5B9A\u4F4D(inline-flex \u5360\u4F4D),\u7531\u4F7F\u7528\u65B9\u51B3\u5B9A\u6302\u8F7D\u4F4D\u7F6E\u4E0E\u5C42\u53E0 "),
39195
- vue.createElementVNode(
39196
- "div",
39197
- {
39198
- class: vue.normalizeClass(["fv-blob-halo", { "is-paused": __props.paused }]),
39199
- style: vue.normalizeStyle(rootStyle.value),
39200
- "aria-hidden": "true"
39201
- },
39202
- [
39203
- (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, [
39204
- vue.createCommentVNode(" \u9AD8\u5149\u5F84\u5411\u6E10\u53D8(\u7B2C 4 \u69FD\u4F4D\u4E13\u7528):\u4E2D\u5FC3\u5B9E\u8272 \u2192 \u5411\u5916\u900F\u660E\u6E10\u5927 "),
39205
- vue.createElementVNode("defs", null, [
39206
- vue.createElementVNode("radialGradient", {
39207
- id: highlightGradient.value.id
39208
- }, [
39209
- vue.createElementVNode("stop", {
39210
- offset: "0%",
39211
- "stop-color": highlightGradient.value.color,
39212
- "stop-opacity": "1"
39213
- }, null, 8, _hoisted_3$7),
39214
- vue.createElementVNode("stop", {
39215
- offset: "50%",
39216
- "stop-color": highlightGradient.value.color,
39217
- "stop-opacity": highlightGradient.value.midOpacity
39218
- }, null, 8, _hoisted_4$4),
39219
- vue.createElementVNode("stop", {
39220
- offset: "100%",
39221
- "stop-color": highlightGradient.value.color,
39222
- "stop-opacity": "0"
39223
- }, null, 8, _hoisted_5$3)
39224
- ], 8, _hoisted_2$7)
39225
- ]),
39226
- (vue.openBlock(true), vue.createElementBlock(
39227
- vue.Fragment,
39228
- null,
39229
- vue.renderList(blobs.value, (b, i) => {
39230
- return vue.openBlock(), vue.createElementBlock(
39231
- "g",
39232
- {
39233
- key: `${b.slot}-${i}`,
39234
- class: vue.normalizeClass(["fv-blob-halo-blob", [`is-${b.slot}`, { "is-alt": b.alt }]]),
39235
- style: vue.normalizeStyle(b.style)
39236
- },
39237
- [
39238
- vue.createElementVNode("path", {
39239
- d: vue.unref(SHAPES)[b.shape],
39240
- style: vue.normalizeStyle(b.pathStyle)
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
- )
39107
+ (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, [
39108
+ vue.createElementVNode("defs", null, [
39109
+ vue.createElementVNode("radialGradient", {
39110
+ id: highlightGradient.value.id
39111
+ }, [
39112
+ vue.createElementVNode("stop", {
39113
+ offset: "0%",
39114
+ "stop-color": highlightGradient.value.color,
39115
+ "stop-opacity": "1"
39116
+ }, null, 8, _hoisted_3$7),
39117
+ vue.createElementVNode("stop", {
39118
+ offset: "50%",
39119
+ "stop-color": highlightGradient.value.color,
39120
+ "stop-opacity": highlightGradient.value.midOpacity
39121
+ }, null, 8, _hoisted_4$4),
39122
+ vue.createElementVNode("stop", {
39123
+ offset: "100%",
39124
+ "stop-color": highlightGradient.value.color,
39125
+ "stop-opacity": "0"
39126
+ }, null, 8, _hoisted_5$3)
39127
+ ], 8, _hoisted_2$7)
39128
+ ]),
39129
+ (vue.openBlock(true), vue.createElementBlock(
39130
+ vue.Fragment,
39131
+ null,
39132
+ vue.renderList(blobs.value, (b, i) => {
39133
+ return vue.openBlock(), vue.createElementBlock(
39134
+ "g",
39135
+ {
39136
+ key: `${b.slot}-${i}`,
39137
+ class: vue.normalizeClass(["fv-blob-halo-blob", [`is-${b.slot}`, { "is-alt": b.alt }]]),
39138
+ style: vue.normalizeStyle(b.style)
39139
+ },
39140
+ [
39141
+ vue.createElementVNode("path", {
39142
+ d: vue.unref(SHAPES)[b.shape],
39143
+ style: vue.normalizeStyle(b.pathStyle)
39144
+ }, null, 12, _hoisted_6$3)
39145
+ ],
39146
+ 6
39147
+ /* CLASS, STYLE */
39148
+ );
39149
+ }),
39150
+ 128
39151
+ /* KEYED_FRAGMENT */
39152
+ ))
39153
+ ]))
39255
39154
  ],
39256
- 2112
39257
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
39155
+ 6
39156
+ /* CLASS, STYLE */
39258
39157
  );
39259
39158
  };
39260
39159
  }
@@ -39899,12 +39798,16 @@
39899
39798
  class: "fv-msg-error"
39900
39799
  };
39901
39800
  const _hoisted_13$1 = {
39801
+ key: 3,
39902
39802
  class: "fv-msg-pending",
39903
39803
  role: "status",
39904
39804
  "aria-live": "polite"
39905
39805
  };
39906
39806
  const _hoisted_14$1 = { class: "fv-msg-pending-text" };
39907
- const _hoisted_15$1 = { class: "fv-msg-content fv-msg-content-user" };
39807
+ const _hoisted_15$1 = {
39808
+ key: 5,
39809
+ class: "fv-msg-content fv-msg-content-user"
39810
+ };
39908
39811
  const _hoisted_16$1 = {
39909
39812
  key: 6,
39910
39813
  class: "fv-msg-actions"
@@ -39946,6 +39849,7 @@
39946
39849
  isLast: { type: Boolean, required: false, default: false },
39947
39850
  followupStyle: { type: String, required: false, default: "list" },
39948
39851
  showActions: { type: Boolean, required: false, default: true },
39852
+ copyToClipboard: { type: Boolean, required: false, default: true },
39949
39853
  showBranchSwitch: { type: Boolean, required: false, default: true },
39950
39854
  showUserAvatar: { type: Boolean, required: false, default: false },
39951
39855
  showUserName: { type: Boolean, required: false, default: false },
@@ -40213,6 +40117,29 @@
40213
40117
  });
40214
40118
  const feedbackPending = vue.ref(false);
40215
40119
  const feedbackJustSet = vue.ref(null);
40120
+ let feedbackJustSetTimer = null;
40121
+ function armJustSetReset() {
40122
+ if (feedbackJustSetTimer !== null) window.clearTimeout(feedbackJustSetTimer);
40123
+ feedbackJustSetTimer = window.setTimeout(() => {
40124
+ feedbackJustSet.value = null;
40125
+ feedbackJustSetTimer = null;
40126
+ }, 800);
40127
+ }
40128
+ vue.watch(
40129
+ () => props.message.status,
40130
+ (s, prev) => {
40131
+ if (prev === "done" && s !== "done" && feedbackJustSet.value) {
40132
+ feedbackJustSet.value = null;
40133
+ if (feedbackJustSetTimer !== null) {
40134
+ window.clearTimeout(feedbackJustSetTimer);
40135
+ feedbackJustSetTimer = null;
40136
+ }
40137
+ }
40138
+ }
40139
+ );
40140
+ vue.onBeforeUnmount(() => {
40141
+ if (feedbackJustSetTimer !== null) window.clearTimeout(feedbackJustSetTimer);
40142
+ });
40216
40143
  const commentTextareaRef = vue.ref(null);
40217
40144
  async function submitFeedback(next, comment) {
40218
40145
  const handler = props.feedbackHandler;
@@ -40222,12 +40149,17 @@
40222
40149
  try {
40223
40150
  props.message.feedback = next === "CLEAR" ? { action: null } : { action: next, ...comment ? { comment } : {} };
40224
40151
  feedbackJustSet.value = next === "CLEAR" ? null : next;
40152
+ if (next !== "CLEAR") armJustSetReset();
40225
40153
  const r = await handler(props.message, next, comment);
40226
40154
  if (typeof r === "string" && r) throw new Error(r);
40227
40155
  emit("feedback-change", props.message, next);
40228
40156
  } catch (e) {
40229
40157
  props.message.feedback = prev;
40230
40158
  feedbackJustSet.value = null;
40159
+ if (feedbackJustSetTimer !== null) {
40160
+ window.clearTimeout(feedbackJustSetTimer);
40161
+ feedbackJustSetTimer = null;
40162
+ }
40231
40163
  emit("feedback-error", e instanceof Error ? e.message : String(e));
40232
40164
  } finally {
40233
40165
  feedbackPending.value = false;
@@ -40298,16 +40230,17 @@
40298
40230
  const copied = vue.ref(false);
40299
40231
  let copiedTimer = 0;
40300
40232
  function onCopy() {
40233
+ if (props.copyToClipboard && navigator.clipboard) {
40234
+ void navigator.clipboard.writeText(`${props.message.content}`).then(() => {
40235
+ copied.value = true;
40236
+ window.clearTimeout(copiedTimer);
40237
+ copiedTimer = window.setTimeout(() => {
40238
+ copied.value = false;
40239
+ }, COPIED_MS);
40240
+ }).catch(() => {
40241
+ });
40242
+ }
40301
40243
  emit("copy", props.message);
40302
- if (!navigator.clipboard) return;
40303
- void navigator.clipboard.writeText(`${props.message.content}`).then(() => {
40304
- copied.value = true;
40305
- window.clearTimeout(copiedTimer);
40306
- copiedTimer = window.setTimeout(() => {
40307
- copied.value = false;
40308
- }, COPIED_MS);
40309
- }).catch(() => {
40310
- });
40311
40244
  }
40312
40245
  vue.onBeforeUnmount(() => window.clearTimeout(copiedTimer));
40313
40246
  function onRegenerate() {
@@ -40327,7 +40260,6 @@
40327
40260
  }]]),
40328
40261
  "data-message-id": __props.message.id
40329
40262
  }, [
40330
- 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) "),
40331
40263
  (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (vue.openBlock(), vue.createElementBlock(
40332
40264
  "div",
40333
40265
  {
@@ -40369,7 +40301,6 @@
40369
40301
  /* STYLE */
40370
40302
  )) : vue.createCommentVNode("v-if", true),
40371
40303
  vue.createElementVNode("div", _hoisted_4$3, [
40372
- 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 "),
40373
40304
  showHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
40374
40305
  isUser.value ? vue.renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
40375
40306
  vue.createTextVNode(
@@ -40392,7 +40323,6 @@
40392
40323
  /* TEXT */
40393
40324
  )) : vue.createCommentVNode("v-if", true)
40394
40325
  ])) : vue.createCommentVNode("v-if", true),
40395
- 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) "),
40396
40326
  __props.message.files?.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
40397
40327
  vue.renderSlot(_ctx.$slots, "message-files", {
40398
40328
  message: __props.message,
@@ -40446,7 +40376,6 @@
40446
40376
  ))
40447
40377
  ])
40448
40378
  ])) : vue.createCommentVNode("v-if", true),
40449
- 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) "),
40450
40379
  previewVisible.value && previewSrcList.value.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImageViewer), {
40451
40380
  key: 2,
40452
40381
  "url-list": previewSrcList.value,
@@ -40454,7 +40383,6 @@
40454
40383
  teleported: "",
40455
40384
  onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
40456
40385
  }, null, 8, ["url-list", "initial-index"])) : vue.createCommentVNode("v-if", true),
40457
- 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 "),
40458
40386
  !isUser.value && (hasToolSteps.value || hasReasoning.value) ? (vue.openBlock(), vue.createBlock(_sfc_main$g, {
40459
40387
  key: 3,
40460
40388
  modelValue: toolsExpanded.value,
@@ -40471,21 +40399,13 @@
40471
40399
  collapsible: __props.collapsible,
40472
40400
  "show-duration": __props.showDuration,
40473
40401
  onTyping: _cache[1] || (_cache[1] = ($event) => emit("typing"))
40474
- }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (vue.openBlock(), vue.createElementBlock(
40475
- vue.Fragment,
40476
- { key: 1 },
40477
- [
40478
- vue.createCommentVNode(" \u7EAF\u601D\u8003\u6D88\u606F(reasoning \u65E0 toolSteps)\u56DE\u843D\u94FE\u4E0B\u6E32\u67D3:\u6D41\u5F0F\u671F\u95F4 Typewriter \u9010\u5B57,\r\n \u6B63\u6587\u51FA\u73B0/\u601D\u8003\u6536\u53E3\u5373\u51B2\u5237\u56DE\u843D\u9759\u6001 Markdown(\u540C ThoughtChain \u5C01\u53E3\u51B2\u5237\u8BED\u4E49) "),
40479
- vue.createVNode(_sfc_main$n, {
40480
- content: __props.message.reasoning ?? "",
40481
- "is-markdown": "",
40482
- typing: __props.typing,
40483
- onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40484
- }, null, 8, ["content", "typing"])
40485
- ],
40486
- 2112
40487
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40488
- )) : hasReasoning.value ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
40402
+ }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (vue.openBlock(), vue.createBlock(_sfc_main$n, {
40403
+ key: 1,
40404
+ content: __props.message.reasoning ?? "",
40405
+ "is-markdown": "",
40406
+ typing: __props.typing,
40407
+ onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40408
+ }, null, 8, ["content", "typing"])) : hasReasoning.value ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
40489
40409
  key: 2,
40490
40410
  content: __props.message.reasoning ?? ""
40491
40411
  }, null, 8, ["content"])) : vue.createCommentVNode("v-if", true)
@@ -40505,7 +40425,6 @@
40505
40425
  key: "0"
40506
40426
  } : void 0
40507
40427
  ]), 1032, ["modelValue", "status", "hide-header", "class"])) : vue.createCommentVNode("v-if", true),
40508
- 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 "),
40509
40428
  !isUser.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, [
40510
40429
  __props.message.status === "error" ? (vue.openBlock(), vue.createElementBlock(
40511
40430
  "span",
@@ -40527,54 +40446,34 @@
40527
40446
  key: 2,
40528
40447
  content: __props.message.content,
40529
40448
  "code-trigger-langs": __props.codeTriggerLangs
40530
- }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (vue.openBlock(), vue.createElementBlock(
40531
- vue.Fragment,
40532
- { key: 3 },
40533
- [
40534
- vue.createCommentVNode(" \u751F\u6210\u4E2D\u5360\u4F4D:\u4E3B\u9898\u8272\u5708\u5708 spinner + \u8F6E\u6362\u6587\u6848(loadingPhrases,3s \u8F6E\u6362);\r\n \u6709\u5DE5\u5177\u8F68\u8FF9\u65F6\u4E0D\u91CD\u590D\u5360\u4F4D(Thinking \u5934\u5DF2\u662F\u300C\u601D\u8003\u4E2D...\u300D) "),
40535
- vue.createElementVNode("span", _hoisted_13$1, [
40536
- _cache[11] || (_cache[11] = vue.createElementVNode(
40537
- "span",
40538
- {
40539
- class: "fv-msg-spinner",
40540
- "aria-hidden": "true"
40541
- },
40542
- null,
40543
- -1
40544
- /* CACHED */
40545
- )),
40546
- vue.createElementVNode(
40547
- "span",
40548
- _hoisted_14$1,
40549
- vue.toDisplayString(pendingPhrase.value),
40550
- 1
40551
- /* TEXT */
40552
- )
40553
- ])
40554
- ],
40555
- 2112
40556
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40557
- )) : vue.createCommentVNode("v-if", true)
40558
- ])) : __props.message.content ? (vue.openBlock(), vue.createElementBlock(
40559
- vue.Fragment,
40560
- { key: 5 },
40561
- [
40562
- 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) "),
40449
+ }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$1, [
40450
+ _cache[11] || (_cache[11] = vue.createElementVNode(
40451
+ "span",
40452
+ {
40453
+ class: "fv-msg-spinner",
40454
+ "aria-hidden": "true"
40455
+ },
40456
+ null,
40457
+ -1
40458
+ /* CACHED */
40459
+ )),
40563
40460
  vue.createElementVNode(
40564
- "div",
40565
- _hoisted_15$1,
40566
- vue.toDisplayString(__props.message.content),
40461
+ "span",
40462
+ _hoisted_14$1,
40463
+ vue.toDisplayString(pendingPhrase.value),
40567
40464
  1
40568
40465
  /* TEXT */
40569
40466
  )
40570
- ],
40571
- 2112
40572
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40467
+ ])) : vue.createCommentVNode("v-if", true)
40468
+ ])) : __props.message.content ? (vue.openBlock(), vue.createElementBlock(
40469
+ "div",
40470
+ _hoisted_15$1,
40471
+ vue.toDisplayString(__props.message.content),
40472
+ 1
40473
+ /* TEXT */
40573
40474
  )) : vue.createCommentVNode("v-if", true),
40574
- 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 "),
40575
40475
  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, [
40576
40476
  vue.renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
40577
- 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 "),
40578
40477
  actionsVisible.value && isUser.value && userCopyVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
40579
40478
  key: 0,
40580
40479
  content: vue.unref(dict).aiMessage.copy,
@@ -40647,7 +40546,6 @@
40647
40546
  _: 1
40648
40547
  /* STABLE */
40649
40548
  }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
40650
- 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 "),
40651
40549
  feedbackVisible.value && !isToolOnlyRow.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_20, [
40652
40550
  vue.createVNode(vue.unref(elementPlus.ElTooltip), {
40653
40551
  content: vue.unref(dict).aiMessage.feedback.like,
@@ -40707,7 +40605,6 @@
40707
40605
  }, 8, ["content"])
40708
40606
  ])) : vue.createCommentVNode("v-if", true)
40709
40607
  ]),
40710
- vue.createCommentVNode(" \u5206\u652F\u5207\u6362:\u5144\u5F1F\u5206\u652F > 1 \u65F6 "),
40711
40608
  __props.showBranchSwitch && __props.branch && __props.branch.count > 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_23, [
40712
40609
  vue.createElementVNode("button", {
40713
40610
  type: "button",
@@ -40747,7 +40644,6 @@
40747
40644
  })
40748
40645
  ], 8, _hoisted_26)
40749
40646
  ])) : vue.createCommentVNode("v-if", true),
40750
- 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 "),
40751
40647
  messageTimeText.value && timeVisible.value ? (vue.openBlock(), vue.createElementBlock(
40752
40648
  "span",
40753
40649
  _hoisted_27,
@@ -40756,7 +40652,6 @@
40756
40652
  /* TEXT */
40757
40653
  )) : vue.createCommentVNode("v-if", true)
40758
40654
  ])) : vue.createCommentVNode("v-if", true),
40759
- 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 "),
40760
40655
  followups.value.length && followupsVisible.value ? (vue.openBlock(), vue.createElementBlock("div", {
40761
40656
  key: 7,
40762
40657
  class: vue.normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
@@ -40789,7 +40684,6 @@
40789
40684
  ))
40790
40685
  ], 10, _hoisted_28)) : vue.createCommentVNode("v-if", true)
40791
40686
  ]),
40792
- 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 "),
40793
40687
  feedbackVisible.value && !isToolOnlyRow.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
40794
40688
  key: 1,
40795
40689
  modelValue: dislikePopVisible.value,
@@ -40874,6 +40768,7 @@
40874
40768
  showScrollButton: { type: Boolean, required: false, default: true },
40875
40769
  scrollButtonThreshold: { type: Number, required: false, default: 100 },
40876
40770
  showActions: { type: Boolean, required: false, default: true },
40771
+ copyToClipboard: { type: Boolean, required: false, default: true },
40877
40772
  showBranchSwitch: { type: Boolean, required: false, default: true },
40878
40773
  showUserAvatar: { type: Boolean, required: false, default: false },
40879
40774
  showUserName: { type: Boolean, required: false, default: false },
@@ -41062,7 +40957,6 @@
41062
40957
  __expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
41063
40958
  return (_ctx, _cache) => {
41064
40959
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
41065
- 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) "),
41066
40960
  isEmpty.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
41067
40961
  vue.renderSlot(_ctx.$slots, "empty", {}, () => [
41068
40962
  vue.createVNode(_sfc_main$e, {
@@ -41073,7 +40967,6 @@
41073
40967
  locale: __props.locale
41074
40968
  }, vue.createSlots({
41075
40969
  suggestions: vue.withCtx(() => [
41076
- vue.createCommentVNode(" welcome-suggestions \u63D2\u69FD\u6574\u4F53\u66FF\u6362\u9ED8\u8BA4 Prompts \u6E32\u67D3 "),
41077
40970
  vue.renderSlot(_ctx.$slots, "welcome-suggestions", {}, () => [
41078
40971
  __props.suggestions.length ? (vue.openBlock(), vue.createBlock(_sfc_main$d, {
41079
40972
  key: 0,
@@ -41112,153 +41005,145 @@
41112
41005
  ]), 1032, ["icon", "name", "description", "layout", "locale"])
41113
41006
  ])
41114
41007
  ])) : (vue.openBlock(), vue.createElementBlock(
41115
- vue.Fragment,
41116
- { key: 1 },
41008
+ "div",
41009
+ {
41010
+ key: 1,
41011
+ ref_key: "scrollRef",
41012
+ ref: scrollRef,
41013
+ class: "fv-messages-scroll",
41014
+ onScrollPassive: onScroll
41015
+ },
41117
41016
  [
41118
- vue.createCommentVNode(" \u6D88\u606F\u5217\u8868:\u5185\u5C42 fv-messages-inner \u63A7\u5236\u6EDA\u52A8\u5185\u5BB9\u6700\u5927\u5BBD\u5EA6\u5E76\u5DE6\u53F3\u5C45\u4E2D(--fv-messages-max-width \u53EF\u8986\u76D6) "),
41119
- vue.createElementVNode(
41120
- "div",
41121
- {
41122
- ref_key: "scrollRef",
41123
- ref: scrollRef,
41124
- class: "fv-messages-scroll",
41125
- onScrollPassive: onScroll
41126
- },
41127
- [
41128
- vue.createElementVNode("div", _hoisted_3$5, [
41129
- (vue.openBlock(true), vue.createElementBlock(
41130
- vue.Fragment,
41131
- null,
41132
- vue.renderList(__props.messages, (m) => {
41133
- return vue.openBlock(), vue.createBlock(_sfc_main$7, {
41134
- key: m.id,
41135
- ref_for: true,
41136
- ref: (el) => setMessageRef(m.id, el),
41137
- message: m,
41138
- branch: branchInfo(m),
41139
- "is-last": m.id === lastMessageId.value,
41140
- "show-actions": __props.showActions,
41141
- "show-branch-switch": __props.showBranchSwitch,
41142
- "show-user-avatar": __props.showUserAvatar,
41143
- "show-user-name": __props.showUserName,
41144
- "show-assistant-avatar": __props.showAssistantAvatar,
41145
- "show-assistant-name": __props.showAssistantName,
41146
- "user-avatar": __props.userAvatar,
41147
- "assistant-avatar": __props.assistantAvatar,
41148
- "assistant-avatar-scale": __props.assistantAvatarScale,
41149
- "avatar-circle": __props.avatarCircle,
41150
- "user-name": __props.userName,
41151
- "assistant-name": __props.assistantName,
41152
- typing: __props.typing,
41153
- "auto-collapse": __props.autoCollapse,
41154
- collapsible: __props.collapsible,
41155
- "show-duration": __props.showDuration,
41156
- "show-time": __props.showTime,
41157
- "time-format": __props.timeFormat,
41158
- "followup-style": __props.followupStyle,
41159
- "code-trigger-langs": __props.codeTriggerLangs,
41160
- "resolve-file-url": __props.resolveFileUrl,
41161
- "feedback-handler": __props.feedbackHandler,
41162
- onTyping: onChildTyping,
41163
- onCopy,
41164
- onRegenerate,
41165
- onBranchChange: onBranch,
41166
- onFollowupSelect: onFollowup,
41167
- onFileClick,
41168
- onFeedbackChange,
41169
- onFeedbackError
41170
- }, vue.createSlots({
41171
- _: 2
41172
- /* DYNAMIC */
41173
- }, [
41174
- _ctx.$slots["message-avatar"] ? {
41175
- name: "message-avatar",
41176
- fn: vue.withCtx((scope) => [
41177
- vue.renderSlot(_ctx.$slots, "message-avatar", vue.mergeProps({ ref_for: true }, scope))
41178
- ]),
41179
- key: "0"
41180
- } : void 0,
41181
- _ctx.$slots["message-actions"] ? {
41182
- name: "message-actions",
41183
- fn: vue.withCtx((scope) => [
41184
- vue.renderSlot(_ctx.$slots, "message-actions", vue.mergeProps({ ref_for: true }, scope))
41185
- ]),
41186
- key: "1"
41187
- } : void 0,
41188
- _ctx.$slots["user-avatar"] ? {
41189
- name: "user-avatar",
41190
- fn: vue.withCtx(() => [
41191
- vue.renderSlot(_ctx.$slots, "user-avatar")
41192
- ]),
41193
- key: "2"
41194
- } : void 0,
41195
- _ctx.$slots["assistant-avatar"] ? {
41196
- name: "assistant-avatar",
41197
- fn: vue.withCtx((scope) => [
41198
- vue.renderSlot(_ctx.$slots, "assistant-avatar", vue.mergeProps({ ref_for: true }, scope))
41199
- ]),
41200
- key: "3"
41201
- } : void 0,
41202
- _ctx.$slots["user-name"] ? {
41203
- name: "user-name",
41204
- fn: vue.withCtx((scope) => [
41205
- vue.renderSlot(_ctx.$slots, "user-name", vue.mergeProps({ ref_for: true }, scope))
41206
- ]),
41207
- key: "4"
41208
- } : void 0,
41209
- _ctx.$slots["assistant-name"] ? {
41210
- name: "assistant-name",
41211
- fn: vue.withCtx((scope) => [
41212
- vue.renderSlot(_ctx.$slots, "assistant-name", vue.mergeProps({ ref_for: true }, scope))
41213
- ]),
41214
- key: "5"
41215
- } : void 0
41216
- ]), 1032, ["message", "branch", "is-last", "show-actions", "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"]);
41217
- }),
41218
- 128
41219
- /* KEYED_FRAGMENT */
41220
- )),
41221
- vue.createCommentVNode(" \u6EDA\u5230\u5E95\u90E8\u60AC\u6D6E\u6309\u94AE:\u5728 fv-messages-inner \u5185,\u968F\u5185\u5BB9\u5BBD\u5EA6\u7EA6\u675F\u5C42\u5B9A\u4F4D(\u5BBD\u5C4F\u65F6\u4E0D\u8D34\u89C6\u53E3\u53F3\u7F18);\r\n \u8DDD\u5E95\u8D85\u8FC7 scrollButtonThreshold \u663E\u793A(\u7A7A\u6001\u4E0D\u6E32\u67D3);\r\n scroll-button \u63D2\u69FD\u6574\u4F53\u8986\u76D6\u6309\u94AE,scroll-button-icon \u63D2\u69FD\u4EC5\u8986\u76D6\u56FE\u6807\u5185\u5BB9 "),
41222
- vue.createVNode(vue.Transition, { name: "fv-messages-back-fade" }, {
41223
- default: vue.withCtx(() => [
41224
- vue.renderSlot(_ctx.$slots, "scroll-button", {
41225
- scrollToBottom,
41226
- awayFromBottom: isAwayFromBottom.value
41227
- }, () => [
41228
- __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
41229
- key: 0,
41230
- class: "fv-messages-back",
41231
- circle: "",
41232
- "aria-label": vue.unref(dict).scroll.toBottom,
41233
- onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41234
- }, {
41017
+ vue.createElementVNode("div", _hoisted_3$5, [
41018
+ (vue.openBlock(true), vue.createElementBlock(
41019
+ vue.Fragment,
41020
+ null,
41021
+ vue.renderList(__props.messages, (m) => {
41022
+ return vue.openBlock(), vue.createBlock(_sfc_main$7, {
41023
+ key: m.id,
41024
+ ref_for: true,
41025
+ ref: (el) => setMessageRef(m.id, el),
41026
+ message: m,
41027
+ branch: branchInfo(m),
41028
+ "is-last": m.id === lastMessageId.value,
41029
+ "show-actions": __props.showActions,
41030
+ "copy-to-clipboard": __props.copyToClipboard,
41031
+ "show-branch-switch": __props.showBranchSwitch,
41032
+ "show-user-avatar": __props.showUserAvatar,
41033
+ "show-user-name": __props.showUserName,
41034
+ "show-assistant-avatar": __props.showAssistantAvatar,
41035
+ "show-assistant-name": __props.showAssistantName,
41036
+ "user-avatar": __props.userAvatar,
41037
+ "assistant-avatar": __props.assistantAvatar,
41038
+ "assistant-avatar-scale": __props.assistantAvatarScale,
41039
+ "avatar-circle": __props.avatarCircle,
41040
+ "user-name": __props.userName,
41041
+ "assistant-name": __props.assistantName,
41042
+ typing: __props.typing,
41043
+ "auto-collapse": __props.autoCollapse,
41044
+ collapsible: __props.collapsible,
41045
+ "show-duration": __props.showDuration,
41046
+ "show-time": __props.showTime,
41047
+ "time-format": __props.timeFormat,
41048
+ "followup-style": __props.followupStyle,
41049
+ "code-trigger-langs": __props.codeTriggerLangs,
41050
+ "resolve-file-url": __props.resolveFileUrl,
41051
+ "feedback-handler": __props.feedbackHandler,
41052
+ onTyping: onChildTyping,
41053
+ onCopy,
41054
+ onRegenerate,
41055
+ onBranchChange: onBranch,
41056
+ onFollowupSelect: onFollowup,
41057
+ onFileClick,
41058
+ onFeedbackChange,
41059
+ onFeedbackError
41060
+ }, vue.createSlots({
41061
+ _: 2
41062
+ /* DYNAMIC */
41063
+ }, [
41064
+ _ctx.$slots["message-avatar"] ? {
41065
+ name: "message-avatar",
41066
+ fn: vue.withCtx((scope) => [
41067
+ vue.renderSlot(_ctx.$slots, "message-avatar", vue.mergeProps({ ref_for: true }, scope))
41068
+ ]),
41069
+ key: "0"
41070
+ } : void 0,
41071
+ _ctx.$slots["message-actions"] ? {
41072
+ name: "message-actions",
41073
+ fn: vue.withCtx((scope) => [
41074
+ vue.renderSlot(_ctx.$slots, "message-actions", vue.mergeProps({ ref_for: true }, scope))
41075
+ ]),
41076
+ key: "1"
41077
+ } : void 0,
41078
+ _ctx.$slots["user-avatar"] ? {
41079
+ name: "user-avatar",
41080
+ fn: vue.withCtx(() => [
41081
+ vue.renderSlot(_ctx.$slots, "user-avatar")
41082
+ ]),
41083
+ key: "2"
41084
+ } : void 0,
41085
+ _ctx.$slots["assistant-avatar"] ? {
41086
+ name: "assistant-avatar",
41087
+ fn: vue.withCtx((scope) => [
41088
+ vue.renderSlot(_ctx.$slots, "assistant-avatar", vue.mergeProps({ ref_for: true }, scope))
41089
+ ]),
41090
+ key: "3"
41091
+ } : void 0,
41092
+ _ctx.$slots["user-name"] ? {
41093
+ name: "user-name",
41094
+ fn: vue.withCtx((scope) => [
41095
+ vue.renderSlot(_ctx.$slots, "user-name", vue.mergeProps({ ref_for: true }, scope))
41096
+ ]),
41097
+ key: "4"
41098
+ } : void 0,
41099
+ _ctx.$slots["assistant-name"] ? {
41100
+ name: "assistant-name",
41101
+ fn: vue.withCtx((scope) => [
41102
+ vue.renderSlot(_ctx.$slots, "assistant-name", vue.mergeProps({ ref_for: true }, scope))
41103
+ ]),
41104
+ key: "5"
41105
+ } : void 0
41106
+ ]), 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"]);
41107
+ }),
41108
+ 128
41109
+ /* KEYED_FRAGMENT */
41110
+ )),
41111
+ vue.createVNode(vue.Transition, { name: "fv-messages-back-fade" }, {
41112
+ default: vue.withCtx(() => [
41113
+ vue.renderSlot(_ctx.$slots, "scroll-button", {
41114
+ scrollToBottom,
41115
+ awayFromBottom: isAwayFromBottom.value
41116
+ }, () => [
41117
+ __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
41118
+ key: 0,
41119
+ class: "fv-messages-back",
41120
+ circle: "",
41121
+ "aria-label": vue.unref(dict).scroll.toBottom,
41122
+ onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41123
+ }, {
41124
+ default: vue.withCtx(() => [
41125
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-messages-back-icon" }, {
41235
41126
  default: vue.withCtx(() => [
41236
- vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-messages-back-icon" }, {
41237
- default: vue.withCtx(() => [
41238
- vue.renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41239
- vue.createVNode(vue.unref(ElementPlusIconsVue.Bottom))
41240
- ])
41241
- ]),
41242
- _: 3
41243
- /* FORWARDED */
41244
- })
41127
+ vue.renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41128
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Bottom))
41129
+ ])
41245
41130
  ]),
41246
41131
  _: 3
41247
41132
  /* FORWARDED */
41248
- }, 8, ["aria-label"])) : vue.createCommentVNode("v-if", true)
41249
- ])
41250
- ]),
41251
- _: 3
41252
- /* FORWARDED */
41253
- })
41254
- ])
41255
- ],
41256
- 544
41257
- /* NEED_HYDRATION, NEED_PATCH */
41258
- )
41133
+ })
41134
+ ]),
41135
+ _: 3
41136
+ /* FORWARDED */
41137
+ }, 8, ["aria-label"])) : vue.createCommentVNode("v-if", true)
41138
+ ])
41139
+ ]),
41140
+ _: 3
41141
+ /* FORWARDED */
41142
+ })
41143
+ ])
41259
41144
  ],
41260
- 2112
41261
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41145
+ 544
41146
+ /* NEED_HYDRATION, NEED_PATCH */
41262
41147
  ))
41263
41148
  ]);
41264
41149
  };
@@ -41371,139 +41256,110 @@
41371
41256
  }
41372
41257
  __expose({ open, close });
41373
41258
  return (_ctx, _cache) => {
41374
- return vue.openBlock(), vue.createElementBlock(
41375
- vue.Fragment,
41376
- null,
41259
+ return visible.value && current.value ? (vue.openBlock(), vue.createElementBlock(
41260
+ "div",
41261
+ {
41262
+ key: 0,
41263
+ class: "fv-artifacts",
41264
+ style: vue.normalizeStyle({
41265
+ "--fv-artifacts-width": __props.width,
41266
+ "--fv-artifacts-min-width": __props.minWidth,
41267
+ "--fv-artifacts-max-width": __props.maxWidth
41268
+ })
41269
+ },
41377
41270
  [
41378
- vue.createCommentVNode(" activeKey \u4E3A\u7A7A\u65F6\u4E0D\u6E32\u67D3\u9762\u677F;\u5BBD\u5EA6\u7ECF CSS \u53D8\u91CF\u843D\u5730(width/min/max),\u6D88\u8D39\u65B9\u4EA6\u53EF\u7528\r\n --fv-artifacts-width \u7B49\u53D8\u91CF\u6574\u4F53\u8986\u76D6 "),
41379
- visible.value && current.value ? (vue.openBlock(), vue.createElementBlock(
41380
- "div",
41381
- {
41382
- key: 0,
41383
- class: "fv-artifacts",
41384
- style: vue.normalizeStyle({
41385
- "--fv-artifacts-width": __props.width,
41386
- "--fv-artifacts-min-width": __props.minWidth,
41387
- "--fv-artifacts-max-width": __props.maxWidth
41388
- })
41389
- },
41390
- [
41391
- vue.createCommentVNode(" tab \u5207\u6362\u680F "),
41392
- vue.createElementVNode("div", _hoisted_1$5, [
41393
- (vue.openBlock(true), vue.createElementBlock(
41394
- vue.Fragment,
41395
- null,
41396
- vue.renderList(__props.artifacts, (a) => {
41397
- return vue.openBlock(), vue.createElementBlock("button", {
41398
- key: a.key,
41399
- type: "button",
41400
- class: vue.normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41401
- onClick: ($event) => select(a.key)
41402
- }, vue.toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41403
- }),
41404
- 128
41405
- /* KEYED_FRAGMENT */
41406
- )),
41407
- _cache[0] || (_cache[0] = vue.createElementVNode(
41408
- "span",
41409
- { class: "fv-artifacts-spacer" },
41410
- null,
41411
- -1
41412
- /* CACHED */
41413
- )),
41414
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
41415
- content: vue.unref(dict).aiArtifacts.copy,
41416
- placement: "top"
41271
+ vue.createElementVNode("div", _hoisted_1$5, [
41272
+ (vue.openBlock(true), vue.createElementBlock(
41273
+ vue.Fragment,
41274
+ null,
41275
+ vue.renderList(__props.artifacts, (a) => {
41276
+ return vue.openBlock(), vue.createElementBlock("button", {
41277
+ key: a.key,
41278
+ type: "button",
41279
+ class: vue.normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41280
+ onClick: ($event) => select(a.key)
41281
+ }, vue.toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41282
+ }),
41283
+ 128
41284
+ /* KEYED_FRAGMENT */
41285
+ )),
41286
+ _cache[0] || (_cache[0] = vue.createElementVNode(
41287
+ "span",
41288
+ { class: "fv-artifacts-spacer" },
41289
+ null,
41290
+ -1
41291
+ /* CACHED */
41292
+ )),
41293
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
41294
+ content: vue.unref(dict).aiArtifacts.copy,
41295
+ placement: "top"
41296
+ }, {
41297
+ default: vue.withCtx(() => [
41298
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
41299
+ text: "",
41300
+ size: "small",
41301
+ "aria-label": vue.unref(dict).aiArtifacts.copy,
41302
+ onClick: onCopy
41417
41303
  }, {
41418
41304
  default: vue.withCtx(() => [
41419
- vue.createVNode(vue.unref(elementPlus.ElButton), {
41420
- text: "",
41421
- size: "small",
41422
- "aria-label": vue.unref(dict).aiArtifacts.copy,
41423
- onClick: onCopy
41424
- }, {
41305
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41425
41306
  default: vue.withCtx(() => [
41426
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41427
- default: vue.withCtx(() => [
41428
- vue.createVNode(vue.unref(ElementPlusIconsVue.CopyDocument))
41429
- ]),
41430
- _: 1
41431
- /* STABLE */
41432
- })
41307
+ vue.createVNode(vue.unref(ElementPlusIconsVue.CopyDocument))
41433
41308
  ]),
41434
41309
  _: 1
41435
41310
  /* STABLE */
41436
- }, 8, ["aria-label"])
41311
+ })
41437
41312
  ]),
41438
41313
  _: 1
41439
41314
  /* STABLE */
41440
- }, 8, ["content"]),
41441
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
41442
- content: vue.unref(dict).aiArtifacts.download,
41443
- placement: "top"
41444
- }, {
41445
- default: vue.withCtx(() => [
41446
- vue.createVNode(vue.unref(elementPlus.ElButton), {
41447
- text: "",
41448
- size: "small",
41449
- "aria-label": vue.unref(dict).aiArtifacts.download,
41450
- onClick: onDownload
41451
- }, {
41452
- default: vue.withCtx(() => [
41453
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41454
- default: vue.withCtx(() => [
41455
- vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
41456
- ]),
41457
- _: 1
41458
- /* STABLE */
41459
- })
41460
- ]),
41461
- _: 1
41462
- /* STABLE */
41463
- }, 8, ["aria-label"])
41464
- ]),
41465
- _: 1
41466
- /* STABLE */
41467
- }, 8, ["content"]),
41468
- current.value?.type === "html" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
41469
- key: 0,
41470
- content: vue.unref(dict).aiArtifacts.fullscreen,
41471
- placement: "top"
41315
+ }, 8, ["aria-label"])
41316
+ ]),
41317
+ _: 1
41318
+ /* STABLE */
41319
+ }, 8, ["content"]),
41320
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
41321
+ content: vue.unref(dict).aiArtifacts.download,
41322
+ placement: "top"
41323
+ }, {
41324
+ default: vue.withCtx(() => [
41325
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
41326
+ text: "",
41327
+ size: "small",
41328
+ "aria-label": vue.unref(dict).aiArtifacts.download,
41329
+ onClick: onDownload
41472
41330
  }, {
41473
41331
  default: vue.withCtx(() => [
41474
- vue.createVNode(vue.unref(elementPlus.ElButton), {
41475
- text: "",
41476
- size: "small",
41477
- "aria-label": vue.unref(dict).aiArtifacts.fullscreen,
41478
- onClick: onFullscreen
41479
- }, {
41332
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41480
41333
  default: vue.withCtx(() => [
41481
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41482
- default: vue.withCtx(() => [
41483
- vue.createVNode(vue.unref(ElementPlusIconsVue.FullScreen))
41484
- ]),
41485
- _: 1
41486
- /* STABLE */
41487
- })
41334
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
41488
41335
  ]),
41489
41336
  _: 1
41490
41337
  /* STABLE */
41491
- }, 8, ["aria-label"])
41338
+ })
41492
41339
  ]),
41493
41340
  _: 1
41494
41341
  /* STABLE */
41495
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
41342
+ }, 8, ["aria-label"])
41343
+ ]),
41344
+ _: 1
41345
+ /* STABLE */
41346
+ }, 8, ["content"]),
41347
+ current.value?.type === "html" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
41348
+ key: 0,
41349
+ content: vue.unref(dict).aiArtifacts.fullscreen,
41350
+ placement: "top"
41351
+ }, {
41352
+ default: vue.withCtx(() => [
41496
41353
  vue.createVNode(vue.unref(elementPlus.ElButton), {
41497
41354
  text: "",
41498
41355
  size: "small",
41499
- class: "fv-artifacts-close",
41500
- "aria-label": vue.unref(dict).aiArtifacts.close,
41501
- onClick: onClose
41356
+ "aria-label": vue.unref(dict).aiArtifacts.fullscreen,
41357
+ onClick: onFullscreen
41502
41358
  }, {
41503
41359
  default: vue.withCtx(() => [
41504
41360
  vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41505
41361
  default: vue.withCtx(() => [
41506
- vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
41362
+ vue.createVNode(vue.unref(ElementPlusIconsVue.FullScreen))
41507
41363
  ]),
41508
41364
  _: 1
41509
41365
  /* STABLE */
@@ -41513,23 +41369,41 @@
41513
41369
  /* STABLE */
41514
41370
  }, 8, ["aria-label"])
41515
41371
  ]),
41516
- vue.createCommentVNode(" iframe \u6C99\u7BB1\u9884\u89C8 "),
41517
- vue.createElementVNode("iframe", {
41518
- ref_key: "iframeRef",
41519
- ref: iframeRef,
41520
- class: "fv-artifacts-frame",
41521
- srcdoc: srcdoc.value,
41522
- sandbox: "allow-scripts allow-downloads",
41523
- title: "artifact-preview"
41524
- }, null, 8, _hoisted_3$4)
41525
- ],
41526
- 4
41527
- /* STYLE */
41528
- )) : vue.createCommentVNode("v-if", true)
41372
+ _: 1
41373
+ /* STABLE */
41374
+ }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
41375
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
41376
+ text: "",
41377
+ size: "small",
41378
+ class: "fv-artifacts-close",
41379
+ "aria-label": vue.unref(dict).aiArtifacts.close,
41380
+ onClick: onClose
41381
+ }, {
41382
+ default: vue.withCtx(() => [
41383
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41384
+ default: vue.withCtx(() => [
41385
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
41386
+ ]),
41387
+ _: 1
41388
+ /* STABLE */
41389
+ })
41390
+ ]),
41391
+ _: 1
41392
+ /* STABLE */
41393
+ }, 8, ["aria-label"])
41394
+ ]),
41395
+ vue.createElementVNode("iframe", {
41396
+ ref_key: "iframeRef",
41397
+ ref: iframeRef,
41398
+ class: "fv-artifacts-frame",
41399
+ srcdoc: srcdoc.value,
41400
+ sandbox: "allow-scripts allow-downloads",
41401
+ title: "artifact-preview"
41402
+ }, null, 8, _hoisted_3$4)
41529
41403
  ],
41530
- 2112
41531
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41532
- );
41404
+ 4
41405
+ /* STYLE */
41406
+ )) : vue.createCommentVNode("v-if", true);
41533
41407
  };
41534
41408
  }
41535
41409
  });
@@ -41565,6 +41439,7 @@
41565
41439
  showScrollButton: { type: Boolean, required: false, default: true },
41566
41440
  scrollButtonThreshold: { type: Number, required: false, default: 100 },
41567
41441
  scrollThreshold: { type: Number, required: false, default: 100 },
41442
+ copyToClipboard: { type: Boolean, required: false, default: true },
41568
41443
  showUserAvatar: { type: Boolean, required: false, default: false },
41569
41444
  showUserName: { type: Boolean, required: false, default: false },
41570
41445
  showAssistantAvatar: { type: Boolean, required: false, default: true },
@@ -41943,7 +41818,6 @@
41943
41818
  class: vue.normalizeClass(["fv-ai-chat", { "is-dark": isDark.value, "is-center-welcome": isCenterWelcome.value, "is-empty": isEmpty.value }])
41944
41819
  },
41945
41820
  [
41946
- vue.createCommentVNode(" \u9876\u680F:\u6807\u9898 + \u6A21\u578B\u9009\u62E9\u5668(models \u6709\u503C\u65F6 multiple) "),
41947
41821
  __props.showHeader ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
41948
41822
  vue.createElementVNode(
41949
41823
  "div",
@@ -41981,7 +41855,6 @@
41981
41855
  /* STABLE */
41982
41856
  }, 8, ["modelValue", "placeholder"])) : vue.createCommentVNode("v-if", true)
41983
41857
  ])) : vue.createCommentVNode("v-if", true),
41984
- vue.createCommentVNode(" \u6D88\u606F\u533A:\u7A7A\u65F6 Welcome + Prompts(AiMessages \u5185\u7F6E);\u5F00\u542F artifacts \u65F6\u53F3\u4FA7\u62FC\u9884\u89C8\u9762\u677F "),
41985
41858
  vue.createElementVNode("div", _hoisted_3$3, [
41986
41859
  vue.createVNode(_sfc_main$6, {
41987
41860
  ref_key: "messagesRef",
@@ -41996,6 +41869,7 @@
41996
41869
  "show-scroll-button": __props.showScrollButton,
41997
41870
  "scroll-button-threshold": __props.scrollButtonThreshold,
41998
41871
  "scroll-threshold": __props.scrollThreshold,
41872
+ "copy-to-clipboard": __props.copyToClipboard,
41999
41873
  "show-user-avatar": __props.showUserAvatar,
42000
41874
  "show-user-name": __props.showUserName,
42001
41875
  "show-assistant-avatar": __props.showAssistantAvatar,
@@ -42119,7 +41993,7 @@
42119
41993
  ]),
42120
41994
  key: "12"
42121
41995
  } : void 0
42122
- ]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "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"]),
41996
+ ]), 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"]),
42123
41997
  artifactsOn.value && artifacts.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
42124
41998
  key: 0,
42125
41999
  artifacts: artifacts.value,
@@ -42131,7 +42005,6 @@
42131
42005
  onChange: onArtifactChange
42132
42006
  }, null, 8, ["artifacts", "active-key", "width", "min-width", "max-width"])) : vue.createCommentVNode("v-if", true)
42133
42007
  ]),
42134
- 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) "),
42135
42008
  vue.createElementVNode("div", _hoisted_4$2, [
42136
42009
  vue.createVNode(_sfc_main$j, {
42137
42010
  placeholder: __props.placeholder,
@@ -42561,7 +42434,10 @@
42561
42434
  key: 0,
42562
42435
  class: "fv-ai-sidebar-loading-tip"
42563
42436
  };
42564
- const _hoisted_9$1 = { class: "fv-ai-sidebar is-collapsed" };
42437
+ const _hoisted_9$1 = {
42438
+ key: 1,
42439
+ class: "fv-ai-sidebar is-collapsed"
42440
+ };
42565
42441
  var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
42566
42442
  ...{ name: "FvAiSessionSidebar" },
42567
42443
  __name: "index",
@@ -42748,62 +42624,170 @@
42748
42624
  });
42749
42625
  vue.onMounted(reload);
42750
42626
  return (_ctx, _cache) => {
42751
- return vue.openBlock(), vue.createElementBlock(
42752
- vue.Fragment,
42753
- null,
42754
- [
42755
- vue.createCommentVNode(" \u5C55\u5F00\u6001:\u5B8C\u6574\u4FA7\u680F "),
42756
- !collapsed.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
42757
- vue.createCommentVNode(" \u54C1\u724C\u884C:\u5FBD\u7AE0 + \u540D\u79F0 + \u6298\u53E0\u5165\u53E3(open-webui \u5E03\u5C40:logo \u884C\u5728\u65B0\u5EFA\u6309\u94AE\u4E4B\u4E0A);\r\n #brand \u8986\u76D6\u6574\u884C;brandIcon \u7A7A\u65F6\u6E32\u67D3\u6E10\u53D8\u5E95\u5706\u5F62\u5360\u4F4D "),
42758
- vue.createElementVNode("div", _hoisted_2$2, [
42759
- vue.renderSlot(_ctx.$slots, "brand", {}, () => [
42760
- vue.createElementVNode("div", _hoisted_3$2, [
42761
- __props.brandIcon ? (vue.openBlock(), vue.createElementBlock("img", {
42762
- key: 0,
42763
- class: "fv-ai-sidebar-brand-badge-img",
42764
- src: __props.brandIcon,
42765
- alt: __props.brandName
42766
- }, null, 8, _hoisted_4$1)) : vue.createCommentVNode("v-if", true)
42767
- ]),
42768
- vue.createElementVNode(
42769
- "span",
42770
- _hoisted_5$1,
42771
- vue.toDisplayString(__props.brandName),
42772
- 1
42773
- /* TEXT */
42774
- ),
42775
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42776
- content: vue.unref(dict).sessionSidebar.collapse,
42777
- placement: "bottom",
42778
- "show-after": 300
42779
- }, {
42780
- default: vue.withCtx(() => [
42781
- vue.createElementVNode("button", {
42782
- class: "fv-ai-sidebar-collapse",
42783
- type: "button",
42784
- onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42785
- }, [
42786
- vue.createVNode(_sfc_main$c, {
42787
- name: "sidebar",
42788
- size: 16
42789
- })
42790
- ])
42791
- ]),
42792
- _: 1
42793
- /* STABLE */
42794
- }, 8, ["content"])
42795
- ])
42627
+ return !collapsed.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
42628
+ vue.createElementVNode("div", _hoisted_2$2, [
42629
+ vue.renderSlot(_ctx.$slots, "brand", {}, () => [
42630
+ vue.createElementVNode("div", _hoisted_3$2, [
42631
+ __props.brandIcon ? (vue.openBlock(), vue.createElementBlock("img", {
42632
+ key: 0,
42633
+ class: "fv-ai-sidebar-brand-badge-img",
42634
+ src: __props.brandIcon,
42635
+ alt: __props.brandName
42636
+ }, null, 8, _hoisted_4$1)) : vue.createCommentVNode("v-if", true)
42796
42637
  ]),
42797
- 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) "),
42798
- vue.createElementVNode("button", {
42799
- class: "fv-ai-sidebar-new-chat",
42800
- type: "button",
42801
- onClick: onCreate
42802
- }, [
42803
- vue.renderSlot(_ctx.$slots, "new-chat", {}, () => [
42804
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
42638
+ vue.createElementVNode(
42639
+ "span",
42640
+ _hoisted_5$1,
42641
+ vue.toDisplayString(__props.brandName),
42642
+ 1
42643
+ /* TEXT */
42644
+ ),
42645
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42646
+ content: vue.unref(dict).sessionSidebar.collapse,
42647
+ placement: "bottom",
42648
+ "show-after": 300
42649
+ }, {
42650
+ default: vue.withCtx(() => [
42651
+ vue.createElementVNode("button", {
42652
+ class: "fv-ai-sidebar-collapse",
42653
+ type: "button",
42654
+ onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42655
+ }, [
42656
+ vue.createVNode(_sfc_main$c, {
42657
+ name: "sidebar",
42658
+ size: 16
42659
+ })
42660
+ ])
42661
+ ]),
42662
+ _: 1
42663
+ /* STABLE */
42664
+ }, 8, ["content"])
42665
+ ])
42666
+ ]),
42667
+ vue.createElementVNode("button", {
42668
+ class: "fv-ai-sidebar-new-chat",
42669
+ type: "button",
42670
+ onClick: onCreate
42671
+ }, [
42672
+ vue.renderSlot(_ctx.$slots, "new-chat", {}, () => [
42673
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
42674
+ default: vue.withCtx(() => [
42675
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
42676
+ ]),
42677
+ _: 1
42678
+ /* STABLE */
42679
+ }),
42680
+ vue.createElementVNode(
42681
+ "span",
42682
+ null,
42683
+ vue.toDisplayString(vue.unref(dict).sessionSidebar.newChat),
42684
+ 1
42685
+ /* TEXT */
42686
+ )
42687
+ ])
42688
+ ]),
42689
+ archiveEnabled.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
42690
+ vue.createVNode(vue.unref(elementPlus.ElSegmented), {
42691
+ modelValue: statusFilter.value,
42692
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42693
+ options: statusOptions.value,
42694
+ onChange: _cache[2] || (_cache[2] = () => reload())
42695
+ }, null, 8, ["modelValue", "options"])
42696
+ ])) : vue.createCommentVNode("v-if", true),
42697
+ __props.searchable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
42698
+ vue.createVNode(vue.unref(elementPlus.ElInput), {
42699
+ ref_key: "searchInputRef",
42700
+ ref: searchInputRef,
42701
+ modelValue: keyword.value,
42702
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42703
+ placeholder: vue.unref(dict).sessionSidebar.searchPlaceholder,
42704
+ clearable: "",
42705
+ "prefix-icon": vue.unref(ElementPlusIconsVue.Search)
42706
+ }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42707
+ ])) : vue.createCommentVNode("v-if", true),
42708
+ vue.createVNode(
42709
+ vue.unref(elementPlus.ElScrollbar),
42710
+ {
42711
+ ref_key: "listScrollbarRef",
42712
+ ref: listScrollbarRef,
42713
+ class: "fv-ai-sidebar-list",
42714
+ onScroll: onListScroll
42715
+ },
42716
+ {
42717
+ default: vue.withCtx(() => [
42718
+ vue.createVNode(_sfc_main$9, {
42719
+ ref_key: "conversationsRef",
42720
+ ref: conversationsRef,
42721
+ items: conversationItems.value,
42722
+ active: __props.activeId ?? void 0,
42723
+ loading: loading.value,
42724
+ "has-more": hasMore.value,
42725
+ locale: __props.locale,
42726
+ "onUpdate:active": onSelect,
42727
+ onMenuCommand
42728
+ }, {
42729
+ menu: vue.withCtx(({ item }) => [
42730
+ vue.renderSlot(_ctx.$slots, "menu", { item }, () => [
42731
+ vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
42732
+ default: vue.withCtx(() => [
42733
+ vue.createTextVNode(
42734
+ vue.toDisplayString(vue.unref(dict).conversations.rename),
42735
+ 1
42736
+ /* TEXT */
42737
+ )
42738
+ ]),
42739
+ _: 1
42740
+ /* STABLE */
42741
+ }),
42742
+ archiveEnabled.value ? (vue.openBlock(), vue.createBlock(
42743
+ vue.unref(elementPlus.ElDropdownItem),
42744
+ {
42745
+ key: 0,
42746
+ command: "archive"
42747
+ },
42748
+ {
42749
+ default: vue.withCtx(() => [
42750
+ vue.createTextVNode(
42751
+ vue.toDisplayString(isArchived(String(item.key)) ? vue.unref(dict).sessionSidebar.restore : vue.unref(dict).sessionSidebar.archive),
42752
+ 1
42753
+ /* TEXT */
42754
+ )
42755
+ ]),
42756
+ _: 2
42757
+ /* DYNAMIC */
42758
+ },
42759
+ 1024
42760
+ /* DYNAMIC_SLOTS */
42761
+ )) : vue.createCommentVNode("v-if", true),
42762
+ vue.createVNode(vue.unref(elementPlus.ElDropdownItem), {
42763
+ command: "prompt-delete",
42764
+ divided: ""
42765
+ }, {
42766
+ default: vue.withCtx(() => [
42767
+ vue.createTextVNode(
42768
+ vue.toDisplayString(vue.unref(dict).conversations.delete),
42769
+ 1
42770
+ /* TEXT */
42771
+ )
42772
+ ]),
42773
+ _: 1
42774
+ /* STABLE */
42775
+ })
42776
+ ])
42777
+ ]),
42778
+ item: vue.withCtx((scope) => [
42779
+ vue.renderSlot(_ctx.$slots, "item", {
42780
+ item: scope.item,
42781
+ active: scope.active
42782
+ })
42783
+ ]),
42784
+ _: 3
42785
+ /* FORWARDED */
42786
+ }, 8, ["items", "active", "loading", "has-more", "locale"]),
42787
+ loading.value && sessions.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, [
42788
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
42805
42789
  default: vue.withCtx(() => [
42806
- vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
42790
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
42807
42791
  ]),
42808
42792
  _: 1
42809
42793
  /* STABLE */
@@ -42811,221 +42795,87 @@
42811
42795
  vue.createElementVNode(
42812
42796
  "span",
42813
42797
  null,
42814
- vue.toDisplayString(vue.unref(dict).sessionSidebar.newChat),
42798
+ vue.toDisplayString(vue.unref(dict).sessionSidebar.listLoading),
42815
42799
  1
42816
42800
  /* TEXT */
42817
42801
  )
42818
- ])
42802
+ ])) : vue.createCommentVNode("v-if", true)
42819
42803
  ]),
42820
- vue.createCommentVNode(" \u7B5B\u9009:\u672A\u5F52\u6863(\u9ED8\u8BA4)/\u5DF2\u5F52\u6863(el-segmented \u8D70 :options;\u9009\u4E2D\u6001\u6D45\u5E95\u6DF1\u5B57)\u3002\r\n service.archive \u672A\u5B9E\u73B0\u65F6\u6574\u6BB5\u9690\u85CF,status \u6052\u4F20 'ACTIVE' "),
42821
- archiveEnabled.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
42822
- vue.createCommentVNode(" @change \u56DE\u8C03\u8F7D\u8377\u662F\u9009\u4E2D\u503C\u5B57\u7B26\u4E32,\u76F4\u8FDE reload \u4F1A\u843D\u8FDB silent \u5F62\u53C2,\r\n \u987B\u5305\u4E00\u5C42\u4FDD\u6301\u9ED8\u8BA4\u975E\u9759\u9ED8(\u9996\u8F7D/\u7B5B\u9009/\u641C\u7D22\u5747\u663E\u793A loading) "),
42823
- vue.createVNode(vue.unref(elementPlus.ElSegmented), {
42824
- modelValue: statusFilter.value,
42825
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42826
- options: statusOptions.value,
42827
- onChange: _cache[2] || (_cache[2] = () => reload())
42828
- }, null, 8, ["modelValue", "options"])
42829
- ])) : vue.createCommentVNode("v-if", true),
42830
- vue.createCommentVNode(" \u641C\u7D22:keyword \u540E\u7AEF\u6A21\u7CCA\u641C\u7D22(\u9632\u6296),\u4E0E\u7B5B\u9009 tab \u6B63\u4EA4 "),
42831
- __props.searchable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
42832
- vue.createVNode(vue.unref(elementPlus.ElInput), {
42833
- ref_key: "searchInputRef",
42834
- ref: searchInputRef,
42835
- modelValue: keyword.value,
42836
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42837
- placeholder: vue.unref(dict).sessionSidebar.searchPlaceholder,
42838
- clearable: "",
42839
- "prefix-icon": vue.unref(ElementPlusIconsVue.Search)
42840
- }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42841
- ])) : vue.createCommentVNode("v-if", true),
42842
- vue.createCommentVNode(" \u4F1A\u8BDD\u5217\u8868:\u5185\u7F6E hover \u83DC\u5355(\u91CD\u547D\u540D/\u5220\u9664\u786E\u8BA4),#menu \u8FFD\u52A0\u5F52\u6863/\u6062\u590D\u3002\r\n el-scrollbar \u63A5\u7BA1\u6EDA\u52A8(FvConversations \u81EA\u8EAB\u4E0D\u518D\u6EDA\u52A8,\u89E6\u5E95\u5224\u5B9A\u79FB\u5230\u672C\u7EC4\u4EF6 onListScroll) "),
42843
- vue.createVNode(
42844
- vue.unref(elementPlus.ElScrollbar),
42845
- {
42846
- ref_key: "listScrollbarRef",
42847
- ref: listScrollbarRef,
42848
- class: "fv-ai-sidebar-list",
42849
- onScroll: onListScroll
42850
- },
42851
- {
42804
+ _: 3
42805
+ /* FORWARDED */
42806
+ },
42807
+ 512
42808
+ /* NEED_PATCH */
42809
+ )
42810
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, [
42811
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42812
+ content: vue.unref(dict).sessionSidebar.expand,
42813
+ placement: "right",
42814
+ "show-after": 300
42815
+ }, {
42816
+ default: vue.withCtx(() => [
42817
+ vue.createElementVNode("button", {
42818
+ class: "fv-ai-sidebar-rail",
42819
+ type: "button",
42820
+ onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42821
+ }, [
42822
+ vue.createVNode(_sfc_main$c, {
42823
+ name: "sidebar",
42824
+ size: 16
42825
+ })
42826
+ ])
42827
+ ]),
42828
+ _: 1
42829
+ /* STABLE */
42830
+ }, 8, ["content"]),
42831
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42832
+ content: vue.unref(dict).sessionSidebar.newChat,
42833
+ placement: "right",
42834
+ "show-after": 300
42835
+ }, {
42836
+ default: vue.withCtx(() => [
42837
+ vue.createElementVNode("button", {
42838
+ class: "fv-ai-sidebar-rail",
42839
+ type: "button",
42840
+ onClick: onCreate
42841
+ }, [
42842
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
42852
42843
  default: vue.withCtx(() => [
42853
- vue.createVNode(_sfc_main$9, {
42854
- ref_key: "conversationsRef",
42855
- ref: conversationsRef,
42856
- items: conversationItems.value,
42857
- active: __props.activeId ?? void 0,
42858
- loading: loading.value,
42859
- "has-more": hasMore.value,
42860
- locale: __props.locale,
42861
- "onUpdate:active": onSelect,
42862
- onMenuCommand
42863
- }, {
42864
- menu: vue.withCtx(({ item }) => [
42865
- vue.createCommentVNode("\r\n \u547D\u4EE4\u533A\u5206:dropdown \u76F4\u53D1 prompt-* \u547D\u4EE4(\u672C\u7EC4\u4EF6\u4EC5\u5F39\u786E\u8BA4\u6846);\r\n FvConversations.renamePrompt/deleteConfirm \u786E\u8BA4\u540E\u518D\u4E0A\u629B rename(\u5E26 value)/delete\u3002\r\n \u4E24\u7C7B\u547D\u4EE4\u9519\u5F00\u547D\u540D,\u907F\u514D\u76F4\u53D1\u547D\u4EE4\u4E0E\u786E\u8BA4\u540E\u56DE\u629B\u547D\u4EE4\u6DF7\u6DC6\u9020\u6210\u6B7B\u5FAA\u73AF\r\n "),
42866
- vue.renderSlot(_ctx.$slots, "menu", { item }, () => [
42867
- vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
42868
- default: vue.withCtx(() => [
42869
- vue.createTextVNode(
42870
- vue.toDisplayString(vue.unref(dict).conversations.rename),
42871
- 1
42872
- /* TEXT */
42873
- )
42874
- ]),
42875
- _: 1
42876
- /* STABLE */
42877
- }),
42878
- archiveEnabled.value ? (vue.openBlock(), vue.createBlock(
42879
- vue.unref(elementPlus.ElDropdownItem),
42880
- {
42881
- key: 0,
42882
- command: "archive"
42883
- },
42884
- {
42885
- default: vue.withCtx(() => [
42886
- vue.createTextVNode(
42887
- vue.toDisplayString(isArchived(String(item.key)) ? vue.unref(dict).sessionSidebar.restore : vue.unref(dict).sessionSidebar.archive),
42888
- 1
42889
- /* TEXT */
42890
- )
42891
- ]),
42892
- _: 2
42893
- /* DYNAMIC */
42894
- },
42895
- 1024
42896
- /* DYNAMIC_SLOTS */
42897
- )) : vue.createCommentVNode("v-if", true),
42898
- vue.createVNode(vue.unref(elementPlus.ElDropdownItem), {
42899
- command: "prompt-delete",
42900
- divided: ""
42901
- }, {
42902
- default: vue.withCtx(() => [
42903
- vue.createTextVNode(
42904
- vue.toDisplayString(vue.unref(dict).conversations.delete),
42905
- 1
42906
- /* TEXT */
42907
- )
42908
- ]),
42909
- _: 1
42910
- /* STABLE */
42911
- })
42912
- ])
42913
- ]),
42914
- item: vue.withCtx((scope) => [
42915
- vue.renderSlot(_ctx.$slots, "item", {
42916
- item: scope.item,
42917
- active: scope.active
42918
- })
42919
- ]),
42920
- _: 3
42921
- /* FORWARDED */
42922
- }, 8, ["items", "active", "loading", "has-more", "locale"]),
42923
- 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) "),
42924
- loading.value && sessions.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, [
42925
- vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
42926
- default: vue.withCtx(() => [
42927
- vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
42928
- ]),
42929
- _: 1
42930
- /* STABLE */
42931
- }),
42932
- vue.createElementVNode(
42933
- "span",
42934
- null,
42935
- vue.toDisplayString(vue.unref(dict).sessionSidebar.listLoading),
42936
- 1
42937
- /* TEXT */
42938
- )
42939
- ])) : vue.createCommentVNode("v-if", true)
42844
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
42940
42845
  ]),
42941
- _: 3
42942
- /* FORWARDED */
42943
- },
42944
- 512
42945
- /* NEED_PATCH */
42946
- )
42947
- ])) : (vue.openBlock(), vue.createElementBlock(
42948
- vue.Fragment,
42949
- { key: 1 },
42950
- [
42951
- vue.createCommentVNode(" \u6536\u8D77\u6001:\u7A84\u6761(\u5C55\u5F00 + \u65B0\u5EFA + \u641C\u7D22,\u5747\u65E0\u8272\u5E95\u56FE\u6807\u6309\u94AE) "),
42952
- vue.createElementVNode("div", _hoisted_9$1, [
42953
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42954
- content: vue.unref(dict).sessionSidebar.expand,
42955
- placement: "right",
42956
- "show-after": 300
42957
- }, {
42958
- default: vue.withCtx(() => [
42959
- vue.createElementVNode("button", {
42960
- class: "fv-ai-sidebar-rail",
42961
- type: "button",
42962
- onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42963
- }, [
42964
- vue.createVNode(_sfc_main$c, {
42965
- name: "sidebar",
42966
- size: 16
42967
- })
42968
- ])
42969
- ]),
42970
- _: 1
42971
- /* STABLE */
42972
- }, 8, ["content"]),
42973
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42974
- content: vue.unref(dict).sessionSidebar.newChat,
42975
- placement: "right",
42976
- "show-after": 300
42977
- }, {
42978
- default: vue.withCtx(() => [
42979
- vue.createElementVNode("button", {
42980
- class: "fv-ai-sidebar-rail",
42981
- type: "button",
42982
- onClick: onCreate
42983
- }, [
42984
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
42985
- default: vue.withCtx(() => [
42986
- vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
42987
- ]),
42988
- _: 1
42989
- /* STABLE */
42990
- })
42991
- ])
42992
- ]),
42993
- _: 1
42994
- /* STABLE */
42995
- }, 8, ["content"]),
42996
- __props.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
42997
- key: 0,
42998
- content: vue.unref(dict).sessionSidebar.searchPlaceholder,
42999
- placement: "right",
43000
- "show-after": 300
43001
- }, {
43002
- default: vue.withCtx(() => [
43003
- vue.createElementVNode("button", {
43004
- class: "fv-ai-sidebar-rail",
43005
- type: "button",
43006
- onClick: expandToSearch
43007
- }, [
43008
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
43009
- default: vue.withCtx(() => [
43010
- vue.createVNode(vue.unref(ElementPlusIconsVue.Search))
43011
- ]),
43012
- _: 1
43013
- /* STABLE */
43014
- })
43015
- ])
43016
- ]),
43017
- _: 1
43018
- /* STABLE */
43019
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true)
43020
- ])
43021
- ],
43022
- 2112
43023
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43024
- ))
43025
- ],
43026
- 2112
43027
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43028
- );
42846
+ _: 1
42847
+ /* STABLE */
42848
+ })
42849
+ ])
42850
+ ]),
42851
+ _: 1
42852
+ /* STABLE */
42853
+ }, 8, ["content"]),
42854
+ __props.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
42855
+ key: 0,
42856
+ content: vue.unref(dict).sessionSidebar.searchPlaceholder,
42857
+ placement: "right",
42858
+ "show-after": 300
42859
+ }, {
42860
+ default: vue.withCtx(() => [
42861
+ vue.createElementVNode("button", {
42862
+ class: "fv-ai-sidebar-rail",
42863
+ type: "button",
42864
+ onClick: expandToSearch
42865
+ }, [
42866
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
42867
+ default: vue.withCtx(() => [
42868
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Search))
42869
+ ]),
42870
+ _: 1
42871
+ /* STABLE */
42872
+ })
42873
+ ])
42874
+ ]),
42875
+ _: 1
42876
+ /* STABLE */
42877
+ }, 8, ["content"])) : vue.createCommentVNode("v-if", true)
42878
+ ]));
43029
42879
  };
43030
42880
  }
43031
42881
  });
@@ -43310,7 +43160,6 @@
43310
43160
  style: vue.normalizeStyle(bodyStyle.value)
43311
43161
  },
43312
43162
  [
43313
- 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 "),
43314
43163
  (vue.openBlock(), vue.createBlock(_sfc_main$4, {
43315
43164
  key: viewKey.value,
43316
43165
  adapter: lazyAdapter,
@@ -43429,7 +43278,6 @@
43429
43278
  key: "11"
43430
43279
  } : void 0
43431
43280
  ]), 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"])),
43432
- 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) "),
43433
43281
  hasEarlier.value && atTop.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
43434
43282
  key: 0,
43435
43283
  class: "fv-ai-chat-panel-load-earlier",
@@ -43449,7 +43297,6 @@
43449
43297
  _: 1
43450
43298
  /* STABLE */
43451
43299
  }, 8, ["loading"])) : vue.createCommentVNode("v-if", true),
43452
- vue.createCommentVNode(" \u5207\u4F1A\u8BDD\u8BE6\u60C5\u52A0\u8F7D\u906E\u7F69(\u8349\u7A3F\u5207\u6362\u4E0D\u89E6\u53D1\u2014\u2014\u65E0\u8BF7\u6C42) "),
43453
43300
  detailLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
43454
43301
  vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
43455
43302
  default: vue.withCtx(() => [
@@ -44101,351 +43948,334 @@
44101
43948
  }
44102
43949
  __expose({ open, close, toggleMode, toggleMaximize, newChat, switchToPrevious, refresh });
44103
43950
  return (_ctx, _cache) => {
44104
- return vue.openBlock(), vue.createElementBlock(
44105
- vue.Fragment,
44106
- null,
44107
- [
44108
- vue.createCommentVNode(" \u6CE8\u610F:\u4E0D\u8981\u5728 Teleport \u6807\u7B7E\u4F53\u5185\u5199\u6A21\u677F\u6CE8\u91CA/\u591A\u8282\u70B9\u2014\u2014\u672C\u5E93\u6784\u5EFA\u94FE(SFC comments\r\n \u4FDD\u7559)\u4F1A\u628A\u6CE8\u91CA\u7F16\u8BD1\u6210 createCommentVNode \u8FDB Teleport children,prod \u5757\u4F18\u5316\u4E0B\r\n unmount \u89E6\u53D1 vuejs/core#10747(el \u4E3A null \u8BFB parentNode \u5D29\u6E83);\u4E00\u5F8B\u5355\u8282\u70B9,\r\n \u6CE8\u91CA\u5199\u5728\u5305\u88F9\u5143\u7D20\u5185\u6216 Teleport \u6807\u7B7E\u5916 "),
44109
- (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
44110
- vue.createElementVNode("div", _hoisted_1$1, [
44111
- vue.createCommentVNode(" \u60AC\u7A97\u8D34\u8FB9\u5438\u9644\u9884\u89C8:\u8D34\u9760\u4FA7\u7F18\u6EE1 0.5s \u9884\u793A\u677E\u5F00\u5373\u8F6C\u62BD\u5C49\u3002\r\n \u6302 body \u76F4\u6302(\u72EC\u7ACB\u4E8E\u9762\u677F,\u907F\u514D\u88AB overflow:hidden \u88C1\u526A),\u6309\u62BD\u5C49\u843D\u4F4D\r\n \u6E32\u67D3\u2014\u2014\u8D34\u9760\u4FA7\u5168\u89C6\u53E3\u9AD8\u3001\u5BBD\u540C\u9762\u677F\u3001\u534A\u900F\u660E\u5E95\u6A21\u62DF\u5438\u9644\u540E\u7684\u62BD\u5C49\u5360\u4F4D "),
44112
- snapHint.value ? (vue.openBlock(), vue.createElementBlock(
43951
+ return vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
43952
+ vue.createElementVNode("div", _hoisted_1$1, [
43953
+ snapHint.value ? (vue.openBlock(), vue.createElementBlock(
43954
+ "div",
43955
+ {
43956
+ key: 0,
43957
+ class: vue.normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
43958
+ style: vue.normalizeStyle({ width: `${currentWidgetWidth()}px` })
43959
+ },
43960
+ null,
43961
+ 6
43962
+ /* CLASS, STYLE */
43963
+ )) : vue.createCommentVNode("v-if", true),
43964
+ vue.createVNode(vue.Transition, { name: "fv-ai-widget-slide" }, {
43965
+ default: vue.withCtx(() => [
43966
+ renderWidget.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
44113
43967
  "div",
44114
43968
  {
44115
43969
  key: 0,
44116
- class: vue.normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
44117
- style: vue.normalizeStyle({ width: `${currentWidgetWidth()}px` })
43970
+ ref_key: "widgetEl",
43971
+ ref: widgetEl,
43972
+ class: vue.normalizeClass(["fv-ai-widget", [
43973
+ `is-${drawerSide.value}`,
43974
+ {
43975
+ "is-floating": mode.value === "floating",
43976
+ "is-maximized": isMaximized.value,
43977
+ "is-dragging": isDragging.value
43978
+ }
43979
+ ]]),
43980
+ style: vue.normalizeStyle(panelStyle.value)
44118
43981
  },
44119
- null,
44120
- 6
44121
- /* CLASS, STYLE */
44122
- )) : vue.createCommentVNode("v-if", true),
44123
- vue.createVNode(vue.Transition, { name: "fv-ai-widget-slide" }, {
44124
- default: vue.withCtx(() => [
44125
- renderWidget.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
43982
+ [
43983
+ (vue.openBlock(true), vue.createElementBlock(
43984
+ vue.Fragment,
43985
+ null,
43986
+ vue.renderList(resizeEdges.value, (edge) => {
43987
+ return vue.openBlock(), vue.createElementBlock("div", {
43988
+ key: edge,
43989
+ class: vue.normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
43990
+ onMousedown: ($event) => onResizeStart($event, edge)
43991
+ }, null, 42, _hoisted_2$1);
43992
+ }),
43993
+ 128
43994
+ /* KEYED_FRAGMENT */
43995
+ )),
43996
+ isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
43997
+ key: 0,
43998
+ ref_key: "sidebarRef",
43999
+ ref: sidebarRef,
44000
+ collapsed: sidebarCollapsed.value,
44001
+ "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
44002
+ class: "fv-ai-widget-sidebar",
44003
+ service: __props.service,
44004
+ "active-id": activeSessionId.value,
44005
+ searchable: true,
44006
+ "brand-name": displayTitle.value,
44007
+ "brand-icon": avatarSrc.value,
44008
+ locale: __props.locale,
44009
+ onSelect: onSidebarSelect,
44010
+ onNewChat,
44011
+ onRemoved: onSidebarRemoved
44012
+ }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : vue.createCommentVNode("v-if", true),
44013
+ vue.createElementVNode(
44126
44014
  "div",
44127
44015
  {
44128
- key: 0,
44129
- ref_key: "widgetEl",
44130
- ref: widgetEl,
44131
- class: vue.normalizeClass(["fv-ai-widget", [
44132
- `is-${drawerSide.value}`,
44133
- {
44134
- "is-floating": mode.value === "floating",
44135
- "is-maximized": isMaximized.value,
44136
- "is-dragging": isDragging.value
44137
- }
44138
- ]]),
44139
- style: vue.normalizeStyle(panelStyle.value)
44016
+ class: "fv-ai-widget-header",
44017
+ onMousedown: onHeaderDragStart
44140
44018
  },
44141
44019
  [
44142
- vue.createCommentVNode(" \u5BBD\u5EA6\u62D6\u62FD\u624B\u67C4:\u62BD\u5C49\u4EC5\u9762\u677F\u5185\u7F18\u4E00\u4E2A(position=right \u65F6\u5DE6\u7F18/left \u65F6\u53F3\u7F18);\r\n \u60AC\u7A97\u5DE6\u53F3\u4E24\u7F18\u5747\u53EF\u8C03,\u5DE6\u7F18\u62D6\u52A8\u540C\u65F6\u5E73\u79FB\u7A97\u53E3(\u53F3\u7F18\u4E0D\u52A8),col-resize "),
44143
- (vue.openBlock(true), vue.createElementBlock(
44020
+ !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44144
44021
  vue.Fragment,
44145
- null,
44146
- vue.renderList(resizeEdges.value, (edge) => {
44147
- return vue.openBlock(), vue.createElementBlock("div", {
44148
- key: edge,
44149
- class: vue.normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
44150
- onMousedown: ($event) => onResizeStart($event, edge)
44151
- }, null, 42, _hoisted_2$1);
44152
- }),
44153
- 128
44154
- /* KEYED_FRAGMENT */
44155
- )),
44156
- 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) "),
44157
- isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
44158
- key: 0,
44159
- ref_key: "sidebarRef",
44160
- ref: sidebarRef,
44161
- collapsed: sidebarCollapsed.value,
44162
- "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
44163
- class: "fv-ai-widget-sidebar",
44164
- service: __props.service,
44165
- "active-id": activeSessionId.value,
44166
- searchable: true,
44167
- "brand-name": displayTitle.value,
44168
- "brand-icon": avatarSrc.value,
44169
- locale: __props.locale,
44170
- onSelect: onSidebarSelect,
44171
- onNewChat,
44172
- onRemoved: onSidebarRemoved
44173
- }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : vue.createCommentVNode("v-if", true),
44174
- 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) "),
44175
- vue.createElementVNode(
44176
- "div",
44177
- {
44178
- class: "fv-ai-widget-header",
44179
- onMousedown: onHeaderDragStart
44180
- },
44022
+ { key: 0 },
44181
44023
  [
44182
- vue.createCommentVNode(" \u6700\u5927\u5316\u6001\u5934\u90E8\u6536\u655B:\u5934\u50CF/\u6807\u9898\u9690\u85CF(\u4FA7\u680F\u54C1\u724C\u884C\u627F\u62C5\u6807\u8BC6)\u3001\u5386\u53F2\u4F1A\u8BDD/\r\n \u65B0\u5BF9\u8BDD/\u6A21\u5F0F\u5207\u6362\u6536\u8D77,\u4EC5\u7559\u6700\u5927\u5316(\u8FD8\u539F)+ \u5173\u95ED;\u7A7A title \u5360\u4F4D\u4FDD\u6301\r\n \u53F3\u4FA7\u6309\u94AE\u53F3\u5BF9\u9F50 "),
44183
- !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44184
- vue.Fragment,
44185
- { key: 0 },
44186
- [
44187
- vue.renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44188
- vue.createElementVNode("img", {
44189
- class: "fv-ai-widget-avatar",
44190
- src: avatarSrc.value,
44191
- alt: ""
44192
- }, null, 8, _hoisted_3$1)
44193
- ]),
44194
- vue.createElementVNode("div", _hoisted_4, [
44195
- vue.renderSlot(_ctx.$slots, "header-title", {}, () => [
44196
- vue.createTextVNode(
44197
- vue.toDisplayString(displayTitle.value),
44198
- 1
44199
- /* TEXT */
44200
- )
44201
- ])
44202
- ])
44203
- ],
44204
- 64
44205
- /* STABLE_FRAGMENT */
44206
- )) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5)),
44207
- vue.renderSlot(_ctx.$slots, "header-actions"),
44208
- vue.createCommentVNode(" \u6700\u5927\u5316\u6001\u5934\u90E8\u6536\u655B:\u5386\u53F2\u4F1A\u8BDD/\u65B0\u5BF9\u8BDD/\u6A21\u5F0F\u5207\u6362\u6536\u8D77(\u7531\u5185\u5D4C\u4FA7\u680F\u627F\u62C5),\r\n \u4EC5\u7559\u6700\u5927\u5316(\u8FD8\u539F)+ \u5173\u95ED "),
44209
- !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44210
- vue.Fragment,
44211
- { key: 2 },
44212
- [
44213
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44214
- content: vue.unref(dict).aiChatPanel.history,
44215
- "show-after": 300,
44216
- placement: "bottom"
44217
- }, {
44218
- default: vue.withCtx(() => [
44219
- vue.createElementVNode("button", {
44220
- type: "button",
44221
- class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44222
- "aria-label": vue.unref(dict).aiChatPanel.history,
44223
- onClick: onHistoryToggle
44224
- }, [
44225
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44226
- default: vue.withCtx(() => [
44227
- vue.createVNode(vue.unref(ElementPlusIconsVue.Clock))
44228
- ]),
44229
- _: 1
44230
- /* STABLE */
44231
- })
44232
- ], 8, _hoisted_6)
44233
- ]),
44234
- _: 1
44235
- /* STABLE */
44236
- }, 8, ["content"]),
44237
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44238
- content: vue.unref(dict).sessionSidebar.newChat,
44239
- "show-after": 300,
44240
- placement: "bottom"
44241
- }, {
44242
- default: vue.withCtx(() => [
44243
- vue.createElementVNode("button", {
44244
- type: "button",
44245
- class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44246
- "aria-label": vue.unref(dict).sessionSidebar.newChat,
44247
- onClick: onNewChat
44248
- }, [
44249
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44250
- default: vue.withCtx(() => [
44251
- vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
44252
- ]),
44253
- _: 1
44254
- /* STABLE */
44255
- })
44256
- ], 8, _hoisted_7)
44257
- ]),
44258
- _: 1
44259
- /* STABLE */
44260
- }, 8, ["content"]),
44261
- __props.showModeToggle ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
44262
- key: 0,
44263
- content: mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
44264
- "show-after": 300,
44265
- placement: "bottom"
44266
- }, {
44267
- default: vue.withCtx(() => [
44268
- vue.createElementVNode("button", {
44269
- type: "button",
44270
- class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44271
- "aria-label": mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
44272
- onClick: toggleMode
44273
- }, [
44274
- mode.value === "drawer" ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44275
- key: 0,
44276
- name: "to-window",
44277
- size: 18
44278
- })) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44279
- key: 1,
44280
- name: "to-drawer",
44281
- size: 18
44282
- }))
44283
- ], 8, _hoisted_8)
44284
- ]),
44285
- _: 1
44286
- /* STABLE */
44287
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true)
44288
- ],
44289
- 64
44290
- /* STABLE_FRAGMENT */
44291
- )) : vue.createCommentVNode("v-if", true),
44292
- __props.maximizable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
44293
- key: 3,
44294
- content: isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
44024
+ vue.renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44025
+ vue.createElementVNode("img", {
44026
+ class: "fv-ai-widget-avatar",
44027
+ src: avatarSrc.value,
44028
+ alt: ""
44029
+ }, null, 8, _hoisted_3$1)
44030
+ ]),
44031
+ vue.createElementVNode("div", _hoisted_4, [
44032
+ vue.renderSlot(_ctx.$slots, "header-title", {}, () => [
44033
+ vue.createTextVNode(
44034
+ vue.toDisplayString(displayTitle.value),
44035
+ 1
44036
+ /* TEXT */
44037
+ )
44038
+ ])
44039
+ ])
44040
+ ],
44041
+ 64
44042
+ /* STABLE_FRAGMENT */
44043
+ )) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5)),
44044
+ vue.renderSlot(_ctx.$slots, "header-actions"),
44045
+ !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44046
+ vue.Fragment,
44047
+ { key: 2 },
44048
+ [
44049
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44050
+ content: vue.unref(dict).aiChatPanel.history,
44295
44051
  "show-after": 300,
44296
44052
  placement: "bottom"
44297
44053
  }, {
44298
44054
  default: vue.withCtx(() => [
44299
44055
  vue.createElementVNode("button", {
44300
44056
  type: "button",
44301
- class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44302
- "aria-label": isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
44303
- onClick: toggleMaximize
44057
+ class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44058
+ "aria-label": vue.unref(dict).aiChatPanel.history,
44059
+ onClick: onHistoryToggle
44304
44060
  }, [
44305
- isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44306
- key: 0,
44307
- name: "win-restore",
44308
- size: 18
44309
- })) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44310
- key: 1,
44311
- name: "maximize",
44312
- size: 18
44313
- }))
44314
- ], 8, _hoisted_9)
44061
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44062
+ default: vue.withCtx(() => [
44063
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Clock))
44064
+ ]),
44065
+ _: 1
44066
+ /* STABLE */
44067
+ })
44068
+ ], 8, _hoisted_6)
44315
44069
  ]),
44316
44070
  _: 1
44317
44071
  /* STABLE */
44318
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
44072
+ }, 8, ["content"]),
44319
44073
  vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44320
- content: vue.unref(dict).aiChatPanel.close,
44074
+ content: vue.unref(dict).sessionSidebar.newChat,
44321
44075
  "show-after": 300,
44322
44076
  placement: "bottom"
44323
44077
  }, {
44324
44078
  default: vue.withCtx(() => [
44325
44079
  vue.createElementVNode("button", {
44326
44080
  type: "button",
44327
- class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44328
- "aria-label": vue.unref(dict).aiChatPanel.close,
44329
- onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", false))
44081
+ class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44082
+ "aria-label": vue.unref(dict).sessionSidebar.newChat,
44083
+ onClick: onNewChat
44330
44084
  }, [
44331
44085
  vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44332
44086
  default: vue.withCtx(() => [
44333
- vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
44087
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
44334
44088
  ]),
44335
44089
  _: 1
44336
44090
  /* STABLE */
44337
44091
  })
44338
- ], 8, _hoisted_10)
44092
+ ], 8, _hoisted_7)
44339
44093
  ]),
44340
44094
  _: 1
44341
44095
  /* STABLE */
44342
- }, 8, ["content"])
44343
- ],
44344
- 32
44345
- /* NEED_HYDRATION */
44346
- ),
44347
- vue.createCommentVNode(" \u5BF9\u8BDD\u4E3B\u4F53:\r\n \u5E38\u89C4\u6001(welcomeLayout \u56FA\u5B9A vertical \u7EB5\u6392 + \u6B22\u8FCE\u5185\u5BB9\u4E0D\u5782\u76F4\u5C45\u4E2D:\r\n \u60AC\u6D6E\u7A97\u6B22\u8FCE\u9875\u8D34\u4E0A\u3001\u8F93\u5165\u533A\u8D34\u5E95,\u4E0E\u975E\u7A7A\u6001\u8F93\u5165\u533A\u4F4D\u7F6E\u4E00\u81F4);\r\n \u6700\u5927\u5316\u6001\u6A2A\u5411\u94FA\u5F00:\u5DE6 FvAiSessionSidebar(\u627F\u62C5\u5386\u53F2/\u65B0\u5BF9\u8BDD,\u5934\u90E8\u76F8\u5E94\u6309\u94AE\r\n \u5DF2\u6536\u655B)+ \u53F3 AiChatPanel(welcomeLayout=horizontal \u5927\u5C4F\u6B22\u8FCE\u9875,\u9650\u5BBD\r\n \u56DE\u5E93\u9ED8\u8BA4\u805A\u7126\u4E2D\u680F) "),
44348
- vue.createElementVNode(
44349
- "div",
44350
- {
44351
- class: vue.normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44352
- },
44353
- [
44354
- 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 "),
44355
- vue.createVNode(vue.Transition, { name: "fv-ai-widget-history" }, {
44096
+ }, 8, ["content"]),
44097
+ __props.showModeToggle ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
44098
+ key: 0,
44099
+ content: mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
44100
+ "show-after": 300,
44101
+ placement: "bottom"
44102
+ }, {
44356
44103
  default: vue.withCtx(() => [
44357
- historyOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
44358
- vue.createElementVNode("div", _hoisted_12, [
44359
- vue.createElementVNode("button", {
44360
- type: "button",
44361
- class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44362
- "aria-label": vue.unref(dict).aiChatPanel.back,
44363
- onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44364
- }, [
44365
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
44366
- default: vue.withCtx(() => [
44367
- vue.createVNode(vue.unref(ElementPlusIconsVue.ArrowLeft))
44368
- ]),
44369
- _: 1
44370
- /* STABLE */
44371
- }),
44372
- vue.createElementVNode(
44373
- "span",
44374
- _hoisted_14,
44375
- vue.toDisplayString(vue.unref(dict).aiChatPanel.back),
44376
- 1
44377
- /* TEXT */
44378
- )
44379
- ], 8, _hoisted_13)
44380
- ]),
44381
- vue.createElementVNode("div", _hoisted_15, [
44382
- vue.createVNode(_sfc_main$9, {
44383
- ref_key: "conversationsRef",
44384
- ref: conversationsRef,
44385
- items: historyItems.value,
44386
- active: activeSessionId.value,
44387
- loading: historyLoading.value,
44388
- "has-more": historyHasMore.value,
44389
- locale: __props.locale,
44390
- "onUpdate:active": onSelectSession,
44391
- onLoadMore: loadMoreHistory,
44392
- onMenuCommand: onHistoryMenuCommand
44393
- }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44394
- !historyLoading.value && !historyItems.value.length ? (vue.openBlock(), vue.createElementBlock(
44395
- "div",
44396
- _hoisted_16,
44397
- vue.toDisplayString(vue.unref(dict).aiChatPanel.historyEmpty),
44398
- 1
44399
- /* TEXT */
44400
- )) : vue.createCommentVNode("v-if", true)
44401
- ])
44402
- ])) : vue.createCommentVNode("v-if", true)
44104
+ vue.createElementVNode("button", {
44105
+ type: "button",
44106
+ class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44107
+ "aria-label": mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
44108
+ onClick: toggleMode
44109
+ }, [
44110
+ mode.value === "drawer" ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44111
+ key: 0,
44112
+ name: "to-window",
44113
+ size: 18
44114
+ })) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44115
+ key: 1,
44116
+ name: "to-drawer",
44117
+ size: 18
44118
+ }))
44119
+ ], 8, _hoisted_8)
44403
44120
  ]),
44404
44121
  _: 1
44405
44122
  /* STABLE */
44406
- }),
44407
- vue.createVNode(_sfc_main$2, vue.mergeProps({
44408
- ref_key: "panelRef",
44409
- ref: panelRef
44410
- }, panelProps.value, {
44411
- "session-id": activeSessionId.value,
44412
- "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44413
- "center-welcome": isMaximized.value,
44414
- onSessionCreated,
44415
- onRoundComplete
44416
- }, vue.toHandlers(panelListeners)), vue.createSlots({
44417
- _: 2
44418
- /* DYNAMIC */
44123
+ }, 8, ["content"])) : vue.createCommentVNode("v-if", true)
44124
+ ],
44125
+ 64
44126
+ /* STABLE_FRAGMENT */
44127
+ )) : vue.createCommentVNode("v-if", true),
44128
+ __props.maximizable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
44129
+ key: 3,
44130
+ content: isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
44131
+ "show-after": 300,
44132
+ placement: "bottom"
44133
+ }, {
44134
+ default: vue.withCtx(() => [
44135
+ vue.createElementVNode("button", {
44136
+ type: "button",
44137
+ class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44138
+ "aria-label": isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
44139
+ onClick: toggleMaximize
44419
44140
  }, [
44420
- vue.renderList(_ctx.$slots, (_, name) => {
44421
- return {
44422
- name,
44423
- fn: vue.withCtx((slotProps) => [
44424
- vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps ?? {})))
44425
- ])
44426
- };
44141
+ isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44142
+ key: 0,
44143
+ name: "win-restore",
44144
+ size: 18
44145
+ })) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44146
+ key: 1,
44147
+ name: "maximize",
44148
+ size: 18
44149
+ }))
44150
+ ], 8, _hoisted_9)
44151
+ ]),
44152
+ _: 1
44153
+ /* STABLE */
44154
+ }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
44155
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44156
+ content: vue.unref(dict).aiChatPanel.close,
44157
+ "show-after": 300,
44158
+ placement: "bottom"
44159
+ }, {
44160
+ default: vue.withCtx(() => [
44161
+ vue.createElementVNode("button", {
44162
+ type: "button",
44163
+ class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44164
+ "aria-label": vue.unref(dict).aiChatPanel.close,
44165
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", false))
44166
+ }, [
44167
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44168
+ default: vue.withCtx(() => [
44169
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
44170
+ ]),
44171
+ _: 1
44172
+ /* STABLE */
44427
44173
  })
44428
- ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44429
- ],
44430
- 2
44431
- /* CLASS */
44432
- )
44174
+ ], 8, _hoisted_10)
44175
+ ]),
44176
+ _: 1
44177
+ /* STABLE */
44178
+ }, 8, ["content"])
44433
44179
  ],
44434
- 6
44435
- /* CLASS, STYLE */
44436
- )), [
44437
- [vue.vShow, __props.modelValue]
44438
- ]) : vue.createCommentVNode("v-if", true)
44439
- ]),
44440
- _: 3
44441
- /* FORWARDED */
44442
- })
44443
- ])
44444
- ]))
44445
- ],
44446
- 2112
44447
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44448
- );
44180
+ 32
44181
+ /* NEED_HYDRATION */
44182
+ ),
44183
+ vue.createElementVNode(
44184
+ "div",
44185
+ {
44186
+ class: vue.normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44187
+ },
44188
+ [
44189
+ vue.createVNode(vue.Transition, { name: "fv-ai-widget-history" }, {
44190
+ default: vue.withCtx(() => [
44191
+ historyOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
44192
+ vue.createElementVNode("div", _hoisted_12, [
44193
+ vue.createElementVNode("button", {
44194
+ type: "button",
44195
+ class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44196
+ "aria-label": vue.unref(dict).aiChatPanel.back,
44197
+ onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44198
+ }, [
44199
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
44200
+ default: vue.withCtx(() => [
44201
+ vue.createVNode(vue.unref(ElementPlusIconsVue.ArrowLeft))
44202
+ ]),
44203
+ _: 1
44204
+ /* STABLE */
44205
+ }),
44206
+ vue.createElementVNode(
44207
+ "span",
44208
+ _hoisted_14,
44209
+ vue.toDisplayString(vue.unref(dict).aiChatPanel.back),
44210
+ 1
44211
+ /* TEXT */
44212
+ )
44213
+ ], 8, _hoisted_13)
44214
+ ]),
44215
+ vue.createElementVNode("div", _hoisted_15, [
44216
+ vue.createVNode(_sfc_main$9, {
44217
+ ref_key: "conversationsRef",
44218
+ ref: conversationsRef,
44219
+ items: historyItems.value,
44220
+ active: activeSessionId.value,
44221
+ loading: historyLoading.value,
44222
+ "has-more": historyHasMore.value,
44223
+ locale: __props.locale,
44224
+ "onUpdate:active": onSelectSession,
44225
+ onLoadMore: loadMoreHistory,
44226
+ onMenuCommand: onHistoryMenuCommand
44227
+ }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44228
+ !historyLoading.value && !historyItems.value.length ? (vue.openBlock(), vue.createElementBlock(
44229
+ "div",
44230
+ _hoisted_16,
44231
+ vue.toDisplayString(vue.unref(dict).aiChatPanel.historyEmpty),
44232
+ 1
44233
+ /* TEXT */
44234
+ )) : vue.createCommentVNode("v-if", true)
44235
+ ])
44236
+ ])) : vue.createCommentVNode("v-if", true)
44237
+ ]),
44238
+ _: 1
44239
+ /* STABLE */
44240
+ }),
44241
+ vue.createVNode(_sfc_main$2, vue.mergeProps({
44242
+ ref_key: "panelRef",
44243
+ ref: panelRef
44244
+ }, panelProps.value, {
44245
+ "session-id": activeSessionId.value,
44246
+ "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44247
+ "center-welcome": isMaximized.value,
44248
+ onSessionCreated,
44249
+ onRoundComplete
44250
+ }, vue.toHandlers(panelListeners)), vue.createSlots({
44251
+ _: 2
44252
+ /* DYNAMIC */
44253
+ }, [
44254
+ vue.renderList(_ctx.$slots, (_, name) => {
44255
+ return {
44256
+ name,
44257
+ fn: vue.withCtx((slotProps) => [
44258
+ vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps ?? {})))
44259
+ ])
44260
+ };
44261
+ })
44262
+ ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44263
+ ],
44264
+ 2
44265
+ /* CLASS */
44266
+ )
44267
+ ],
44268
+ 6
44269
+ /* CLASS, STYLE */
44270
+ )), [
44271
+ [vue.vShow, __props.modelValue]
44272
+ ]) : vue.createCommentVNode("v-if", true)
44273
+ ]),
44274
+ _: 3
44275
+ /* FORWARDED */
44276
+ })
44277
+ ])
44278
+ ]);
44449
44279
  };
44450
44280
  }
44451
44281
  });
@@ -44470,6 +44300,7 @@
44470
44300
  offset: { type: Number, required: false, default: 24 },
44471
44301
  draggable: { type: Boolean, required: false, default: true },
44472
44302
  size: { type: Number, required: false, default: 42 },
44303
+ zIndex: { type: Number, required: false, default: void 0 },
44473
44304
  icon: { type: String, required: false, default: "" },
44474
44305
  iconComponent: { type: null, required: false, default: void 0 },
44475
44306
  eyeTrack: { type: Boolean, required: false, default: true },
@@ -44641,6 +44472,7 @@
44641
44472
  "--fv-launcher-size": `${props.size}px`,
44642
44473
  "--fv-launcher-offset-x": `${resolvedOffsetX.value}px`,
44643
44474
  "--fv-launcher-offset-y": `${resolvedOffsetY.value}px`,
44475
+ ...props.floating && props.zIndex !== void 0 ? { "--fv-launcher-z-index": `${props.zIndex}` } : null,
44644
44476
  ...dragPos.value ? { left: `${dragPos.value.left}px`, top: `${dragPos.value.top}px` } : null
44645
44477
  }));
44646
44478
  return (_ctx, _cache) => {
@@ -44654,32 +44486,22 @@
44654
44486
  onClick: _cache[1] || (_cache[1] = ($event) => __props.interactive && onClickGuard($event))
44655
44487
  }, {
44656
44488
  default: vue.withCtx(() => [
44657
- 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) "),
44658
44489
  vue.createVNode(_sfc_main$8, vue.mergeProps({
44659
44490
  class: "fv-ai-launcher-halo",
44660
44491
  size: __props.size
44661
44492
  }, haloProps.value), null, 16, ["size"]),
44662
- 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 "),
44663
44493
  vue.createElementVNode("span", _hoisted_1, [
44664
44494
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
44665
44495
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
44666
44496
  __props.iconComponent ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.iconComponent), {
44667
44497
  key: 0,
44668
44498
  class: "fv-ai-launcher-comp-icon"
44669
- })) : !__props.icon ? (vue.openBlock(), vue.createElementBlock(
44670
- vue.Fragment,
44671
- { key: 1 },
44672
- [
44673
- vue.createCommentVNode(" \u5185\u7F6E\u5934\u50CF:\u5185\u8054 fvai-avatar.svg \u77E2\u91CF\u56FE(\u773C\u795E\u53EF\u968F\u9F20\u6807,\u89C1 eyeTrack);\r\n \u81EA\u5B9A\u4E49 icon URL \u4ECD\u662F <img> "),
44674
- vue.createElementVNode("span", {
44675
- class: vue.normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44676
- "aria-hidden": "true",
44677
- innerHTML: vue.unref(defaultAvatarSvg)
44678
- }, null, 10, _hoisted_2)
44679
- ],
44680
- 2112
44681
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44682
- )) : (vue.openBlock(), vue.createElementBlock("img", {
44499
+ })) : !__props.icon ? (vue.openBlock(), vue.createElementBlock("span", {
44500
+ key: 1,
44501
+ class: vue.normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44502
+ "aria-hidden": "true",
44503
+ innerHTML: vue.unref(defaultAvatarSvg)
44504
+ }, null, 10, _hoisted_2)) : (vue.openBlock(), vue.createElementBlock("img", {
44683
44505
  key: 2,
44684
44506
  class: "fv-ai-launcher-avatar",
44685
44507
  src: __props.icon,