@fv-ui/ai-chat 1.9.2 → 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.
Files changed (3) hide show
  1. package/es/index.mjs +897 -1111
  2. package/lib/index.js +896 -1110
  3. package/package.json +1 -1
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"
@@ -40357,7 +40260,6 @@
40357
40260
  }]]),
40358
40261
  "data-message-id": __props.message.id
40359
40262
  }, [
40360
- vue.createCommentVNode(" \u5934\u50CF:user \u53F3\u4FA7(\u81EA\u8EAB),assistant \u5DE6\u4FA7;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\r\n \u4F18\u5148\u7EA7:message-avatar \u6574\u4F53\u63D2\u69FD > user-avatar/assistant-avatar \u7EC6\u5206\u63D2\u69FD > props \u56FE\u7247 > \u5185\u7F6E\u56FE\u6807;\r\n \u5757\u5C3A\u5BF8\u9ED8\u8BA4 50\xD750(--fv-msg-avatar-size \u53EF\u8986\u76D6),\u5706\u5F62\u6A21\u5F0F\u9ED8\u8BA4\u5F00\r\n (--fv-msg-avatar-radius \u53D8\u91CF\u4F18\u5148,avatarCircle=false \u56DE\u843D\u9ED8\u8BA4\u5706\u89D2) "),
40361
40263
  (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (vue.openBlock(), vue.createElementBlock(
40362
40264
  "div",
40363
40265
  {
@@ -40399,7 +40301,6 @@
40399
40301
  /* STYLE */
40400
40302
  )) : vue.createCommentVNode("v-if", true),
40401
40303
  vue.createElementVNode("div", _hoisted_4$3, [
40402
- vue.createCommentVNode(" \u5934\u90E8:\u89D2\u8272\u540D + \u6A21\u578B\u6807\u8BB0;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\u7EC6\u5206\u63D2\u69FD > props > \u9ED8\u8BA4\u6587\u6848 "),
40403
40304
  showHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
40404
40305
  isUser.value ? vue.renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
40405
40306
  vue.createTextVNode(
@@ -40422,7 +40323,6 @@
40422
40323
  /* TEXT */
40423
40324
  )) : vue.createCommentVNode("v-if", true)
40424
40325
  ])) : vue.createCommentVNode("v-if", true),
40425
- vue.createCommentVNode(" \u9644\u4EF6:user \u6D88\u606F files \u5E73\u94FA;\u56FE\u7247\u7F29\u7565\u53EF\u70B9(\u5185\u7F6E\u653E\u5927\u9884\u89C8),\u6587\u6863\u590D\u7528\r\n sender \u7684 FilesCard \u5361\u7247(\u7C7B\u578B\u56FE\u6807 + \u540D\u79F0/\u5927\u5C0F)\u2014\u2014\u4E0B\u8F7D\u4EC5\u8D70\u5361\u7247\u53F3\u4E0A\r\n \u5E38\u9A7B\u4E0B\u8F7D\u6309\u94AE,\u70B9\u672C\u4F53\u53EA\u4E0A\u629B file-click(\u5BBF\u4E3B\u57CB\u70B9/\u63A5\u7BA1,\u9ED8\u8BA4\u65E0\u884C\u4E3A) "),
40426
40326
  __props.message.files?.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
40427
40327
  vue.renderSlot(_ctx.$slots, "message-files", {
40428
40328
  message: __props.message,
@@ -40476,7 +40376,6 @@
40476
40376
  ))
40477
40377
  ])
40478
40378
  ])) : vue.createCommentVNode("v-if", true),
40479
- vue.createCommentVNode(" \u56FE\u7247\u653E\u5927\u9884\u89C8(\u672C\u6D88\u606F\u9644\u4EF6\u5185\u8F6E\u64AD;teleported \u6302 body \u9632\u88AB\u6D88\u606F\u533A\u88C1\u526A) "),
40480
40379
  previewVisible.value && previewSrcList.value.length ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImageViewer), {
40481
40380
  key: 2,
40482
40381
  "url-list": previewSrcList.value,
@@ -40484,7 +40383,6 @@
40484
40383
  teleported: "",
40485
40384
  onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
40486
40385
  }, null, 8, ["url-list", "initial-index"])) : vue.createCommentVNode("v-if", true),
40487
- vue.createCommentVNode(" \u601D\u8003\u94FE(assistant \u542B toolSteps/reasoning \u65F6):\u591A item \u7531 Thinking \u6298\u53E0\u5934\u627F\u8F7D\u72B6\u6001\r\n \u6C47\u603B\u6587\u6848(\u843D\u5B9A\u5E26\u5DE5\u5177\u6B21\u6570)\u4E0E\u6536\u8D77/\u5C55\u5F00;\u5355 item \u65E0\u6C47\u603B\u5FC5\u8981,\u9690\u85CF\u6298\u53E0\u5934\r\n (hideHeader,\u94FE\u5E73\u94FA\u4E14\u5E38\u9A7B\u5C55\u5F00,\u5355\u6B65\u81EA\u5E26\u72B6\u6001\u56FE\u6807\u4E0E per-item \u6298\u53E0);\r\n \u4EC5 reasoning \u65E0 toolSteps \u65F6(\u7EAF\u601D\u8003\u6D88\u606F)\u56DE\u843D\u94FE\u4E0B Markdown \u6E32\u67D3 "),
40488
40386
  !isUser.value && (hasToolSteps.value || hasReasoning.value) ? (vue.openBlock(), vue.createBlock(_sfc_main$g, {
40489
40387
  key: 3,
40490
40388
  modelValue: toolsExpanded.value,
@@ -40501,21 +40399,13 @@
40501
40399
  collapsible: __props.collapsible,
40502
40400
  "show-duration": __props.showDuration,
40503
40401
  onTyping: _cache[1] || (_cache[1] = ($event) => emit("typing"))
40504
- }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (vue.openBlock(), vue.createElementBlock(
40505
- vue.Fragment,
40506
- { key: 1 },
40507
- [
40508
- 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) "),
40509
- vue.createVNode(_sfc_main$n, {
40510
- content: __props.message.reasoning ?? "",
40511
- "is-markdown": "",
40512
- typing: __props.typing,
40513
- onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40514
- }, null, 8, ["content", "typing"])
40515
- ],
40516
- 2112
40517
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40518
- )) : hasReasoning.value ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
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, {
40519
40409
  key: 2,
40520
40410
  content: __props.message.reasoning ?? ""
40521
40411
  }, null, 8, ["content"])) : vue.createCommentVNode("v-if", true)
@@ -40535,7 +40425,6 @@
40535
40425
  key: "0"
40536
40426
  } : void 0
40537
40427
  ]), 1032, ["modelValue", "status", "hide-header", "class"])) : vue.createCommentVNode("v-if", true),
40538
- vue.createCommentVNode(" \u6B63\u6587:user \u7EAF\u6587\u672C\u6C14\u6CE1(\u4EC5\u6709\u9644\u4EF6\u65E0\u6587\u5B57\u65F6\u4E0D\u6E32\u67D3\u7A7A\u6C14\u6CE1);assistant Markdown;pending \u7A7A\u5185\u5BB9\u7ED9\u52A0\u8F7D\u5360\u4F4D "),
40539
40428
  !isUser.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, [
40540
40429
  __props.message.status === "error" ? (vue.openBlock(), vue.createElementBlock(
40541
40430
  "span",
@@ -40557,54 +40446,34 @@
40557
40446
  key: 2,
40558
40447
  content: __props.message.content,
40559
40448
  "code-trigger-langs": __props.codeTriggerLangs
40560
- }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (vue.openBlock(), vue.createElementBlock(
40561
- vue.Fragment,
40562
- { key: 3 },
40563
- [
40564
- 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) "),
40565
- vue.createElementVNode("span", _hoisted_13$1, [
40566
- _cache[11] || (_cache[11] = vue.createElementVNode(
40567
- "span",
40568
- {
40569
- class: "fv-msg-spinner",
40570
- "aria-hidden": "true"
40571
- },
40572
- null,
40573
- -1
40574
- /* CACHED */
40575
- )),
40576
- vue.createElementVNode(
40577
- "span",
40578
- _hoisted_14$1,
40579
- vue.toDisplayString(pendingPhrase.value),
40580
- 1
40581
- /* TEXT */
40582
- )
40583
- ])
40584
- ],
40585
- 2112
40586
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40587
- )) : vue.createCommentVNode("v-if", true)
40588
- ])) : __props.message.content ? (vue.openBlock(), vue.createElementBlock(
40589
- vue.Fragment,
40590
- { key: 5 },
40591
- [
40592
- vue.createCommentVNode(" user \u6B63\u6587:\u53EA\u4F20\u9644\u4EF6\u65E0\u6587\u5B57\u65F6\u4E0D\u6E32\u67D3\u8BE5 div(\u7A7A\u5185\u5BB9\u6C14\u6CE1\u65E0\u4FE1\u606F\u91CF) "),
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
+ )),
40593
40460
  vue.createElementVNode(
40594
- "div",
40595
- _hoisted_15$1,
40596
- vue.toDisplayString(__props.message.content),
40461
+ "span",
40462
+ _hoisted_14$1,
40463
+ vue.toDisplayString(pendingPhrase.value),
40597
40464
  1
40598
40465
  /* TEXT */
40599
40466
  )
40600
- ],
40601
- 2112
40602
- /* 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 */
40603
40474
  )) : vue.createCommentVNode("v-if", true),
40604
- vue.createCommentVNode(" \u64CD\u4F5C\u533A:assistant \u590D\u5236/\u91CD\u751F\u6210 + \u6D88\u606F\u8BC4\u4EF7 + \u5206\u652F\u5207\u6362;user \u4EC5\u590D\u5236(hover \u6D88\u606F\u65F6\u6D6E\u73B0,\u89C1 scss)\u3002\r\n \u590D\u5236/\u91CD\u751F\u6210\u6309\u94AE\u5F85\u56DE\u7B54\u843D\u5B9A(status=done)\u624D\u6E32\u67D3\u2014\u2014\u751F\u6210\u4E2D(pending/streaming)\u4E0D\u51FA\u5DE5\u5177\u6309\u94AE;\r\n error \u65E0\u53EF\u590D\u5236/\u91CD\u751F\u6210\u6B63\u6587\u4E5F\u4E0D\u51FA;\u5206\u652F\u5207\u6362\u5668\u4E0E\u65F6\u95F4\u4E0D\u53D7\u6B64\u95E8\u63A7,\u751F\u6210\u4E2D\u4ECD\u53EF\u5207\u5206\u652F/\u663E\u65F6\u95F4\u3002\r\n feedbackVisible \u72EC\u7ACB\u4E8E showActions:\u5173\u95ED\u64CD\u4F5C\u6309\u94AE\u4E0D\u541E\u8BC4\u4EF7\u5165\u53E3\u3002\r\n \u5BB9\u5668\u663E\u9690 = \u4EFB\u4E00\u5185\u4EF6\u5728\u573A(\u64CD\u4F5C\u6309\u94AE/\u8BC4\u4EF7/\u5206\u652F/\u65F6\u95F4),\u5168\u90E8\u7F3A\u5E2D\u624D\u4E0D\u6E32\u67D3,\u907F\u514D\u7A7A\u64CD\u4F5C\u533A\u5360\u4F4D "),
40605
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, [
40606
40476
  vue.renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
40607
- vue.createCommentVNode(" \u5DE5\u5177\u6309\u94AE\u7528\u539F\u751F button \u81EA\u7ED8(.fv-msg-action,\u89C1 scss):EP text small \u9ED8\u8BA4\r\n \u6A2A\u5411 padding 11px \u4E14 1em \u56FE\u6807\u968F\u6309\u94AE\u5B57\u53F7\u4EC5 12px,\u8FC7\u677E\u8FC7\u5C0F;\u539F\u751F\u6309\u94AE\r\n 3px \u5185\u8DDD + 16px \u56FE\u6807,\u6574\u6392\u7D27\u51D1\u4E14\u56FE\u6807\u5927\u5C0F\u4E0E\u8BC4\u4EF7\u56FE\u6807(\u56FA\u5B9A 16px)\u4E00\u81F4 "),
40608
40477
  actionsVisible.value && isUser.value && userCopyVisible.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
40609
40478
  key: 0,
40610
40479
  content: vue.unref(dict).aiMessage.copy,
@@ -40677,7 +40546,6 @@
40677
40546
  _: 1
40678
40547
  /* STABLE */
40679
40548
  }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
40680
- vue.createCommentVNode(" \u6D88\u606F\u8BC4\u4EF7 \u{1F44D}/\u{1F44E}(assistant \u6700\u7EC8\u56DE\u7B54\u884C;\u518D\u6B21\u70B9\u51FB\u5F53\u524D\u6001\u53D6\u6D88):\r\n \u70B9\u8E29\u5E26\u9644\u8A00\u5F39\u7A97(\u5C45\u4E2D ElDialog,textarea \u2264500 \u53EF\u8DF3\u8FC7),\u4E50\u89C2\u66F4\u65B0\u5931\u8D25\u56DE\u6EDA "),
40681
40549
  feedbackVisible.value && !isToolOnlyRow.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_20, [
40682
40550
  vue.createVNode(vue.unref(elementPlus.ElTooltip), {
40683
40551
  content: vue.unref(dict).aiMessage.feedback.like,
@@ -40737,7 +40605,6 @@
40737
40605
  }, 8, ["content"])
40738
40606
  ])) : vue.createCommentVNode("v-if", true)
40739
40607
  ]),
40740
- vue.createCommentVNode(" \u5206\u652F\u5207\u6362:\u5144\u5F1F\u5206\u652F > 1 \u65F6 "),
40741
40608
  __props.showBranchSwitch && __props.branch && __props.branch.count > 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_23, [
40742
40609
  vue.createElementVNode("button", {
40743
40610
  type: "button",
@@ -40777,7 +40644,6 @@
40777
40644
  })
40778
40645
  ], 8, _hoisted_26)
40779
40646
  ])) : vue.createCommentVNode("v-if", true),
40780
- vue.createCommentVNode(" \u6D88\u606F\u65F6\u95F4:\u8DDF\u5728\u64CD\u4F5C\u6309\u94AE\u4E0E\u5206\u652F\u5207\u6362\u4E4B\u540E;user \u6D88\u606F hover \u9690\u85CF\u6309\u94AE\u4E0D\u5F71\u54CD\u65F6\u95F4\u5E38\u9A7B;\r\n assistant \u751F\u6210\u4E2D\u4E0D\u663E,\u6B63\u6587\u6253\u5B8C\u5B57(\u6216 error)\u540E\u624D\u6D6E\u73B0 "),
40781
40647
  messageTimeText.value && timeVisible.value ? (vue.openBlock(), vue.createElementBlock(
40782
40648
  "span",
40783
40649
  _hoisted_27,
@@ -40786,7 +40652,6 @@
40786
40652
  /* TEXT */
40787
40653
  )) : vue.createCommentVNode("v-if", true)
40788
40654
  ])) : vue.createCommentVNode("v-if", true),
40789
- vue.createCommentVNode(" \u8FFD\u95EE\u5EFA\u8BAE:\u64CD\u4F5C\u533A(\u5DE5\u5177\u680F)\u4E0B\u65B9,\u5206\u9694\u7EBF + \u52A0\u7C97\u300C\u8FFD\u95EE\u300D\u6807\u9898\u5F15\u51FA;\u7EB5\u5411\u5217\u8868\u4E00\u884C\u4E00\u6761\r\n (followupStyle='chips' \u5207\u56DE\u65E7\u6A2A\u5411\u6C14\u6CE1\u5F62\u6001,\u65E0\u6807\u9898)\u3002\u5386\u53F2\u6D88\u606F\u540C\u6837\u6E32\u67D3;\r\n \u6B63\u6587\u6253\u5B57\u6548\u679C\u5B8C\u6210\u540E\u624D\u6E32\u67D3(\u6D41\u5F0F suggestions \u4E8B\u4EF6\u5230\u8FBE\u4E0D\u51FA,\u843D\u5B9A+\u6253\u5B8C\u5B57\u6574\u4F53\u6D6E\u73B0),\r\n \u843D\u5B9A\u540E\u53EF\u70B9\u51FB,\u70B9\u51FB\u7ECF followup-select \u4E0A\u629B "),
40790
40655
  followups.value.length && followupsVisible.value ? (vue.openBlock(), vue.createElementBlock("div", {
40791
40656
  key: 7,
40792
40657
  class: vue.normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
@@ -40819,7 +40684,6 @@
40819
40684
  ))
40820
40685
  ], 10, _hoisted_28)) : vue.createCommentVNode("v-if", true)
40821
40686
  ]),
40822
- vue.createCommentVNode(" \u70B9\u8E29\u9644\u8A00\u5F39\u7A97:\u5C45\u4E2D\u5F39\u7A97(ElDialog,teleported + align-center),\u4E0D\u518D\u968F\u64CD\u4F5C\u533A\u5B9A\u4F4D\u2014\u2014\r\n \u6700\u5E95\u4E00\u6761\u6D88\u606F\u7684\u9644\u8A00\u5C42\u5F80\u4E0B\u5F39\u4F1A\u88AB\u6EDA\u52A8\u533A\u88C1\u526A,\u4E0D\u6613\u6EDA\u5230\u5E95\u770B\u5230;\u5F39\u7A97\u5C45\u4E2D\u4E00\u5C4F\u5185\u53EF\u89C1\u3002\r\n \u70B9\u906E\u7F69/ESC \u5173\u95ED(\u8349\u7A3F\u4FDD\u7559\u5728\u672C\u5730,\u518D\u70B9 \u{1F44E} \u590D\u586B);submit/skip \u8BED\u4E49\u540C\u64CD\u4F5C\u533A\u6309\u94AE "),
40823
40687
  feedbackVisible.value && !isToolOnlyRow.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), {
40824
40688
  key: 1,
40825
40689
  modelValue: dislikePopVisible.value,
@@ -41093,7 +40957,6 @@
41093
40957
  __expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
41094
40958
  return (_ctx, _cache) => {
41095
40959
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
41096
- vue.createCommentVNode(" \u7A7A\u6001:Welcome(\u6587\u6848 + #suggestions \u5185 Prompts \u5FEB\u6377\u6761,\u6A2A\u6392:\u6587\u6848\u4E0E\u5FEB\u6377\u6761\u540C\u5217\u9760\u5DE6,\r\n \u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u5FEB\u6377\u6761\u9876\u9AD8) "),
41097
40960
  isEmpty.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$5, [
41098
40961
  vue.renderSlot(_ctx.$slots, "empty", {}, () => [
41099
40962
  vue.createVNode(_sfc_main$e, {
@@ -41104,7 +40967,6 @@
41104
40967
  locale: __props.locale
41105
40968
  }, vue.createSlots({
41106
40969
  suggestions: vue.withCtx(() => [
41107
- vue.createCommentVNode(" welcome-suggestions \u63D2\u69FD\u6574\u4F53\u66FF\u6362\u9ED8\u8BA4 Prompts \u6E32\u67D3 "),
41108
40970
  vue.renderSlot(_ctx.$slots, "welcome-suggestions", {}, () => [
41109
40971
  __props.suggestions.length ? (vue.openBlock(), vue.createBlock(_sfc_main$d, {
41110
40972
  key: 0,
@@ -41143,154 +41005,145 @@
41143
41005
  ]), 1032, ["icon", "name", "description", "layout", "locale"])
41144
41006
  ])
41145
41007
  ])) : (vue.openBlock(), vue.createElementBlock(
41146
- vue.Fragment,
41147
- { key: 1 },
41008
+ "div",
41009
+ {
41010
+ key: 1,
41011
+ ref_key: "scrollRef",
41012
+ ref: scrollRef,
41013
+ class: "fv-messages-scroll",
41014
+ onScrollPassive: onScroll
41015
+ },
41148
41016
  [
41149
- 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) "),
41150
- vue.createElementVNode(
41151
- "div",
41152
- {
41153
- ref_key: "scrollRef",
41154
- ref: scrollRef,
41155
- class: "fv-messages-scroll",
41156
- onScrollPassive: onScroll
41157
- },
41158
- [
41159
- vue.createElementVNode("div", _hoisted_3$5, [
41160
- (vue.openBlock(true), vue.createElementBlock(
41161
- vue.Fragment,
41162
- null,
41163
- vue.renderList(__props.messages, (m) => {
41164
- return vue.openBlock(), vue.createBlock(_sfc_main$7, {
41165
- key: m.id,
41166
- ref_for: true,
41167
- ref: (el) => setMessageRef(m.id, el),
41168
- message: m,
41169
- branch: branchInfo(m),
41170
- "is-last": m.id === lastMessageId.value,
41171
- "show-actions": __props.showActions,
41172
- "copy-to-clipboard": __props.copyToClipboard,
41173
- "show-branch-switch": __props.showBranchSwitch,
41174
- "show-user-avatar": __props.showUserAvatar,
41175
- "show-user-name": __props.showUserName,
41176
- "show-assistant-avatar": __props.showAssistantAvatar,
41177
- "show-assistant-name": __props.showAssistantName,
41178
- "user-avatar": __props.userAvatar,
41179
- "assistant-avatar": __props.assistantAvatar,
41180
- "assistant-avatar-scale": __props.assistantAvatarScale,
41181
- "avatar-circle": __props.avatarCircle,
41182
- "user-name": __props.userName,
41183
- "assistant-name": __props.assistantName,
41184
- typing: __props.typing,
41185
- "auto-collapse": __props.autoCollapse,
41186
- collapsible: __props.collapsible,
41187
- "show-duration": __props.showDuration,
41188
- "show-time": __props.showTime,
41189
- "time-format": __props.timeFormat,
41190
- "followup-style": __props.followupStyle,
41191
- "code-trigger-langs": __props.codeTriggerLangs,
41192
- "resolve-file-url": __props.resolveFileUrl,
41193
- "feedback-handler": __props.feedbackHandler,
41194
- onTyping: onChildTyping,
41195
- onCopy,
41196
- onRegenerate,
41197
- onBranchChange: onBranch,
41198
- onFollowupSelect: onFollowup,
41199
- onFileClick,
41200
- onFeedbackChange,
41201
- onFeedbackError
41202
- }, vue.createSlots({
41203
- _: 2
41204
- /* DYNAMIC */
41205
- }, [
41206
- _ctx.$slots["message-avatar"] ? {
41207
- name: "message-avatar",
41208
- fn: vue.withCtx((scope) => [
41209
- vue.renderSlot(_ctx.$slots, "message-avatar", vue.mergeProps({ ref_for: true }, scope))
41210
- ]),
41211
- key: "0"
41212
- } : void 0,
41213
- _ctx.$slots["message-actions"] ? {
41214
- name: "message-actions",
41215
- fn: vue.withCtx((scope) => [
41216
- vue.renderSlot(_ctx.$slots, "message-actions", vue.mergeProps({ ref_for: true }, scope))
41217
- ]),
41218
- key: "1"
41219
- } : void 0,
41220
- _ctx.$slots["user-avatar"] ? {
41221
- name: "user-avatar",
41222
- fn: vue.withCtx(() => [
41223
- vue.renderSlot(_ctx.$slots, "user-avatar")
41224
- ]),
41225
- key: "2"
41226
- } : void 0,
41227
- _ctx.$slots["assistant-avatar"] ? {
41228
- name: "assistant-avatar",
41229
- fn: vue.withCtx((scope) => [
41230
- vue.renderSlot(_ctx.$slots, "assistant-avatar", vue.mergeProps({ ref_for: true }, scope))
41231
- ]),
41232
- key: "3"
41233
- } : void 0,
41234
- _ctx.$slots["user-name"] ? {
41235
- name: "user-name",
41236
- fn: vue.withCtx((scope) => [
41237
- vue.renderSlot(_ctx.$slots, "user-name", vue.mergeProps({ ref_for: true }, scope))
41238
- ]),
41239
- key: "4"
41240
- } : void 0,
41241
- _ctx.$slots["assistant-name"] ? {
41242
- name: "assistant-name",
41243
- fn: vue.withCtx((scope) => [
41244
- vue.renderSlot(_ctx.$slots, "assistant-name", vue.mergeProps({ ref_for: true }, scope))
41245
- ]),
41246
- key: "5"
41247
- } : void 0
41248
- ]), 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"]);
41249
- }),
41250
- 128
41251
- /* KEYED_FRAGMENT */
41252
- )),
41253
- 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 "),
41254
- vue.createVNode(vue.Transition, { name: "fv-messages-back-fade" }, {
41255
- default: vue.withCtx(() => [
41256
- vue.renderSlot(_ctx.$slots, "scroll-button", {
41257
- scrollToBottom,
41258
- awayFromBottom: isAwayFromBottom.value
41259
- }, () => [
41260
- __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
41261
- key: 0,
41262
- class: "fv-messages-back",
41263
- circle: "",
41264
- "aria-label": vue.unref(dict).scroll.toBottom,
41265
- onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41266
- }, {
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" }, {
41267
41126
  default: vue.withCtx(() => [
41268
- vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-messages-back-icon" }, {
41269
- default: vue.withCtx(() => [
41270
- vue.renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41271
- vue.createVNode(vue.unref(ElementPlusIconsVue.Bottom))
41272
- ])
41273
- ]),
41274
- _: 3
41275
- /* FORWARDED */
41276
- })
41127
+ vue.renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41128
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Bottom))
41129
+ ])
41277
41130
  ]),
41278
41131
  _: 3
41279
41132
  /* FORWARDED */
41280
- }, 8, ["aria-label"])) : vue.createCommentVNode("v-if", true)
41281
- ])
41282
- ]),
41283
- _: 3
41284
- /* FORWARDED */
41285
- })
41286
- ])
41287
- ],
41288
- 544
41289
- /* NEED_HYDRATION, NEED_PATCH */
41290
- )
41133
+ })
41134
+ ]),
41135
+ _: 3
41136
+ /* FORWARDED */
41137
+ }, 8, ["aria-label"])) : vue.createCommentVNode("v-if", true)
41138
+ ])
41139
+ ]),
41140
+ _: 3
41141
+ /* FORWARDED */
41142
+ })
41143
+ ])
41291
41144
  ],
41292
- 2112
41293
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41145
+ 544
41146
+ /* NEED_HYDRATION, NEED_PATCH */
41294
41147
  ))
41295
41148
  ]);
41296
41149
  };
@@ -41403,139 +41256,110 @@
41403
41256
  }
41404
41257
  __expose({ open, close });
41405
41258
  return (_ctx, _cache) => {
41406
- return vue.openBlock(), vue.createElementBlock(
41407
- vue.Fragment,
41408
- 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
+ },
41409
41270
  [
41410
- 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 "),
41411
- visible.value && current.value ? (vue.openBlock(), vue.createElementBlock(
41412
- "div",
41413
- {
41414
- key: 0,
41415
- class: "fv-artifacts",
41416
- style: vue.normalizeStyle({
41417
- "--fv-artifacts-width": __props.width,
41418
- "--fv-artifacts-min-width": __props.minWidth,
41419
- "--fv-artifacts-max-width": __props.maxWidth
41420
- })
41421
- },
41422
- [
41423
- vue.createCommentVNode(" tab \u5207\u6362\u680F "),
41424
- vue.createElementVNode("div", _hoisted_1$5, [
41425
- (vue.openBlock(true), vue.createElementBlock(
41426
- vue.Fragment,
41427
- null,
41428
- vue.renderList(__props.artifacts, (a) => {
41429
- return vue.openBlock(), vue.createElementBlock("button", {
41430
- key: a.key,
41431
- type: "button",
41432
- class: vue.normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41433
- onClick: ($event) => select(a.key)
41434
- }, vue.toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41435
- }),
41436
- 128
41437
- /* KEYED_FRAGMENT */
41438
- )),
41439
- _cache[0] || (_cache[0] = vue.createElementVNode(
41440
- "span",
41441
- { class: "fv-artifacts-spacer" },
41442
- null,
41443
- -1
41444
- /* CACHED */
41445
- )),
41446
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
41447
- content: vue.unref(dict).aiArtifacts.copy,
41448
- 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
41449
41303
  }, {
41450
41304
  default: vue.withCtx(() => [
41451
- vue.createVNode(vue.unref(elementPlus.ElButton), {
41452
- text: "",
41453
- size: "small",
41454
- "aria-label": vue.unref(dict).aiArtifacts.copy,
41455
- onClick: onCopy
41456
- }, {
41305
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41457
41306
  default: vue.withCtx(() => [
41458
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41459
- default: vue.withCtx(() => [
41460
- vue.createVNode(vue.unref(ElementPlusIconsVue.CopyDocument))
41461
- ]),
41462
- _: 1
41463
- /* STABLE */
41464
- })
41307
+ vue.createVNode(vue.unref(ElementPlusIconsVue.CopyDocument))
41465
41308
  ]),
41466
41309
  _: 1
41467
41310
  /* STABLE */
41468
- }, 8, ["aria-label"])
41311
+ })
41469
41312
  ]),
41470
41313
  _: 1
41471
41314
  /* STABLE */
41472
- }, 8, ["content"]),
41473
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
41474
- content: vue.unref(dict).aiArtifacts.download,
41475
- 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
41476
41330
  }, {
41477
41331
  default: vue.withCtx(() => [
41478
- vue.createVNode(vue.unref(elementPlus.ElButton), {
41479
- text: "",
41480
- size: "small",
41481
- "aria-label": vue.unref(dict).aiArtifacts.download,
41482
- onClick: onDownload
41483
- }, {
41332
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41484
41333
  default: vue.withCtx(() => [
41485
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41486
- default: vue.withCtx(() => [
41487
- vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
41488
- ]),
41489
- _: 1
41490
- /* STABLE */
41491
- })
41334
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Download))
41492
41335
  ]),
41493
41336
  _: 1
41494
41337
  /* STABLE */
41495
- }, 8, ["aria-label"])
41338
+ })
41496
41339
  ]),
41497
41340
  _: 1
41498
41341
  /* STABLE */
41499
- }, 8, ["content"]),
41500
- current.value?.type === "html" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
41501
- key: 0,
41502
- content: vue.unref(dict).aiArtifacts.fullscreen,
41503
- placement: "top"
41504
- }, {
41505
- default: vue.withCtx(() => [
41506
- vue.createVNode(vue.unref(elementPlus.ElButton), {
41507
- text: "",
41508
- size: "small",
41509
- "aria-label": vue.unref(dict).aiArtifacts.fullscreen,
41510
- onClick: onFullscreen
41511
- }, {
41512
- default: vue.withCtx(() => [
41513
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41514
- default: vue.withCtx(() => [
41515
- vue.createVNode(vue.unref(ElementPlusIconsVue.FullScreen))
41516
- ]),
41517
- _: 1
41518
- /* STABLE */
41519
- })
41520
- ]),
41521
- _: 1
41522
- /* STABLE */
41523
- }, 8, ["aria-label"])
41524
- ]),
41525
- _: 1
41526
- /* STABLE */
41527
- }, 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(() => [
41528
41353
  vue.createVNode(vue.unref(elementPlus.ElButton), {
41529
41354
  text: "",
41530
41355
  size: "small",
41531
- class: "fv-artifacts-close",
41532
- "aria-label": vue.unref(dict).aiArtifacts.close,
41533
- onClick: onClose
41356
+ "aria-label": vue.unref(dict).aiArtifacts.fullscreen,
41357
+ onClick: onFullscreen
41534
41358
  }, {
41535
41359
  default: vue.withCtx(() => [
41536
41360
  vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
41537
41361
  default: vue.withCtx(() => [
41538
- vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
41362
+ vue.createVNode(vue.unref(ElementPlusIconsVue.FullScreen))
41539
41363
  ]),
41540
41364
  _: 1
41541
41365
  /* STABLE */
@@ -41545,23 +41369,41 @@
41545
41369
  /* STABLE */
41546
41370
  }, 8, ["aria-label"])
41547
41371
  ]),
41548
- vue.createCommentVNode(" iframe \u6C99\u7BB1\u9884\u89C8 "),
41549
- vue.createElementVNode("iframe", {
41550
- ref_key: "iframeRef",
41551
- ref: iframeRef,
41552
- class: "fv-artifacts-frame",
41553
- srcdoc: srcdoc.value,
41554
- sandbox: "allow-scripts allow-downloads",
41555
- title: "artifact-preview"
41556
- }, null, 8, _hoisted_3$4)
41557
- ],
41558
- 4
41559
- /* STYLE */
41560
- )) : 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)
41561
41403
  ],
41562
- 2112
41563
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41564
- );
41404
+ 4
41405
+ /* STYLE */
41406
+ )) : vue.createCommentVNode("v-if", true);
41565
41407
  };
41566
41408
  }
41567
41409
  });
@@ -41976,7 +41818,6 @@
41976
41818
  class: vue.normalizeClass(["fv-ai-chat", { "is-dark": isDark.value, "is-center-welcome": isCenterWelcome.value, "is-empty": isEmpty.value }])
41977
41819
  },
41978
41820
  [
41979
- vue.createCommentVNode(" \u9876\u680F:\u6807\u9898 + \u6A21\u578B\u9009\u62E9\u5668(models \u6709\u503C\u65F6 multiple) "),
41980
41821
  __props.showHeader ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
41981
41822
  vue.createElementVNode(
41982
41823
  "div",
@@ -42014,7 +41855,6 @@
42014
41855
  /* STABLE */
42015
41856
  }, 8, ["modelValue", "placeholder"])) : vue.createCommentVNode("v-if", true)
42016
41857
  ])) : vue.createCommentVNode("v-if", true),
42017
- vue.createCommentVNode(" \u6D88\u606F\u533A:\u7A7A\u65F6 Welcome + Prompts(AiMessages \u5185\u7F6E);\u5F00\u542F artifacts \u65F6\u53F3\u4FA7\u62FC\u9884\u89C8\u9762\u677F "),
42018
41858
  vue.createElementVNode("div", _hoisted_3$3, [
42019
41859
  vue.createVNode(_sfc_main$6, {
42020
41860
  ref_key: "messagesRef",
@@ -42165,7 +42005,6 @@
42165
42005
  onChange: onArtifactChange
42166
42006
  }, null, 8, ["artifacts", "active-key", "width", "min-width", "max-width"])) : vue.createCommentVNode("v-if", true)
42167
42007
  ]),
42168
- vue.createCommentVNode(" \u8F93\u5165\u533A:Sender(\u4E0D\u4F20 allowSpeech,Task 15 \u6869\u4E0D\u63A5\u7EBF);\r\n allowAttachments \u5F00\u542F\u65F6:\u56DE\u5F62\u9488\u5728\u64CD\u4F5C\u680F\u5DE6\u4FA7(#action-left,\u4E0E\u63D0\u4EA4\u6309\u94AE\u540C\u884C),\r\n \u5DF2\u9009\u9644\u4EF6\u5217\u8868\u5728 fv-sender-body \u5185\u8F93\u5165\u884C\u4E0A\u65B9(#body-top,body-top:empty \u81EA\u52A8\u9690\u85CF);\r\n \u751F\u6210\u4E2D(loading)\u65F6\u9644\u4EF6\u5165\u53E3\u6574\u4F53\u7981\u7528(\u5355\u98DE\u884C\u95F8\u8BED\u4E49:\u53D1\u9001\u671F\u95F4\u9501\u5B9A\u8F93\u5165) "),
42169
42008
  vue.createElementVNode("div", _hoisted_4$2, [
42170
42009
  vue.createVNode(_sfc_main$j, {
42171
42010
  placeholder: __props.placeholder,
@@ -42595,7 +42434,10 @@
42595
42434
  key: 0,
42596
42435
  class: "fv-ai-sidebar-loading-tip"
42597
42436
  };
42598
- 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
+ };
42599
42441
  var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
42600
42442
  ...{ name: "FvAiSessionSidebar" },
42601
42443
  __name: "index",
@@ -42782,62 +42624,170 @@
42782
42624
  });
42783
42625
  vue.onMounted(reload);
42784
42626
  return (_ctx, _cache) => {
42785
- return vue.openBlock(), vue.createElementBlock(
42786
- vue.Fragment,
42787
- null,
42788
- [
42789
- vue.createCommentVNode(" \u5C55\u5F00\u6001:\u5B8C\u6574\u4FA7\u680F "),
42790
- !collapsed.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
42791
- 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 "),
42792
- vue.createElementVNode("div", _hoisted_2$2, [
42793
- vue.renderSlot(_ctx.$slots, "brand", {}, () => [
42794
- vue.createElementVNode("div", _hoisted_3$2, [
42795
- __props.brandIcon ? (vue.openBlock(), vue.createElementBlock("img", {
42796
- key: 0,
42797
- class: "fv-ai-sidebar-brand-badge-img",
42798
- src: __props.brandIcon,
42799
- alt: __props.brandName
42800
- }, null, 8, _hoisted_4$1)) : vue.createCommentVNode("v-if", true)
42801
- ]),
42802
- vue.createElementVNode(
42803
- "span",
42804
- _hoisted_5$1,
42805
- vue.toDisplayString(__props.brandName),
42806
- 1
42807
- /* TEXT */
42808
- ),
42809
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42810
- content: vue.unref(dict).sessionSidebar.collapse,
42811
- placement: "bottom",
42812
- "show-after": 300
42813
- }, {
42814
- default: vue.withCtx(() => [
42815
- vue.createElementVNode("button", {
42816
- class: "fv-ai-sidebar-collapse",
42817
- type: "button",
42818
- onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42819
- }, [
42820
- vue.createVNode(_sfc_main$c, {
42821
- name: "sidebar",
42822
- size: 16
42823
- })
42824
- ])
42825
- ]),
42826
- _: 1
42827
- /* STABLE */
42828
- }, 8, ["content"])
42829
- ])
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)
42830
42637
  ]),
42831
- vue.createCommentVNode(" \u65B0\u5BF9\u8BDD:open-webui \u5F0F\u4F4E\u8C03\u884C\u6309\u94AE(hover \u6D45\u5E95\u5706\u89D2),\u70B9\u51FB\u4EC5\u5207\u8349\u7A3F\u6001;\r\n #new-chat \u8986\u76D6\u6309\u94AE\u5185\u5BB9(\u6309\u94AE\u5143\u7D20\u4FDD\u7559,\u70B9\u51FB\u884C\u4E3A\u4E0D\u53D8) "),
42832
- vue.createElementVNode("button", {
42833
- class: "fv-ai-sidebar-new-chat",
42834
- type: "button",
42835
- onClick: onCreate
42836
- }, [
42837
- vue.renderSlot(_ctx.$slots, "new-chat", {}, () => [
42838
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
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" }, {
42839
42789
  default: vue.withCtx(() => [
42840
- vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
42790
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
42841
42791
  ]),
42842
42792
  _: 1
42843
42793
  /* STABLE */
@@ -42845,221 +42795,87 @@
42845
42795
  vue.createElementVNode(
42846
42796
  "span",
42847
42797
  null,
42848
- vue.toDisplayString(vue.unref(dict).sessionSidebar.newChat),
42798
+ vue.toDisplayString(vue.unref(dict).sessionSidebar.listLoading),
42849
42799
  1
42850
42800
  /* TEXT */
42851
42801
  )
42852
- ])
42802
+ ])) : vue.createCommentVNode("v-if", true)
42853
42803
  ]),
42854
- 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' "),
42855
- archiveEnabled.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
42856
- 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) "),
42857
- vue.createVNode(vue.unref(elementPlus.ElSegmented), {
42858
- modelValue: statusFilter.value,
42859
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42860
- options: statusOptions.value,
42861
- onChange: _cache[2] || (_cache[2] = () => reload())
42862
- }, null, 8, ["modelValue", "options"])
42863
- ])) : vue.createCommentVNode("v-if", true),
42864
- vue.createCommentVNode(" \u641C\u7D22:keyword \u540E\u7AEF\u6A21\u7CCA\u641C\u7D22(\u9632\u6296),\u4E0E\u7B5B\u9009 tab \u6B63\u4EA4 "),
42865
- __props.searchable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
42866
- vue.createVNode(vue.unref(elementPlus.ElInput), {
42867
- ref_key: "searchInputRef",
42868
- ref: searchInputRef,
42869
- modelValue: keyword.value,
42870
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42871
- placeholder: vue.unref(dict).sessionSidebar.searchPlaceholder,
42872
- clearable: "",
42873
- "prefix-icon": vue.unref(ElementPlusIconsVue.Search)
42874
- }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42875
- ])) : vue.createCommentVNode("v-if", true),
42876
- 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) "),
42877
- vue.createVNode(
42878
- vue.unref(elementPlus.ElScrollbar),
42879
- {
42880
- ref_key: "listScrollbarRef",
42881
- ref: listScrollbarRef,
42882
- class: "fv-ai-sidebar-list",
42883
- onScroll: onListScroll
42884
- },
42885
- {
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 }, {
42886
42843
  default: vue.withCtx(() => [
42887
- vue.createVNode(_sfc_main$9, {
42888
- ref_key: "conversationsRef",
42889
- ref: conversationsRef,
42890
- items: conversationItems.value,
42891
- active: __props.activeId ?? void 0,
42892
- loading: loading.value,
42893
- "has-more": hasMore.value,
42894
- locale: __props.locale,
42895
- "onUpdate:active": onSelect,
42896
- onMenuCommand
42897
- }, {
42898
- menu: vue.withCtx(({ item }) => [
42899
- 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 "),
42900
- vue.renderSlot(_ctx.$slots, "menu", { item }, () => [
42901
- vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
42902
- default: vue.withCtx(() => [
42903
- vue.createTextVNode(
42904
- vue.toDisplayString(vue.unref(dict).conversations.rename),
42905
- 1
42906
- /* TEXT */
42907
- )
42908
- ]),
42909
- _: 1
42910
- /* STABLE */
42911
- }),
42912
- archiveEnabled.value ? (vue.openBlock(), vue.createBlock(
42913
- vue.unref(elementPlus.ElDropdownItem),
42914
- {
42915
- key: 0,
42916
- command: "archive"
42917
- },
42918
- {
42919
- default: vue.withCtx(() => [
42920
- vue.createTextVNode(
42921
- vue.toDisplayString(isArchived(String(item.key)) ? vue.unref(dict).sessionSidebar.restore : vue.unref(dict).sessionSidebar.archive),
42922
- 1
42923
- /* TEXT */
42924
- )
42925
- ]),
42926
- _: 2
42927
- /* DYNAMIC */
42928
- },
42929
- 1024
42930
- /* DYNAMIC_SLOTS */
42931
- )) : vue.createCommentVNode("v-if", true),
42932
- vue.createVNode(vue.unref(elementPlus.ElDropdownItem), {
42933
- command: "prompt-delete",
42934
- divided: ""
42935
- }, {
42936
- default: vue.withCtx(() => [
42937
- vue.createTextVNode(
42938
- vue.toDisplayString(vue.unref(dict).conversations.delete),
42939
- 1
42940
- /* TEXT */
42941
- )
42942
- ]),
42943
- _: 1
42944
- /* STABLE */
42945
- })
42946
- ])
42947
- ]),
42948
- item: vue.withCtx((scope) => [
42949
- vue.renderSlot(_ctx.$slots, "item", {
42950
- item: scope.item,
42951
- active: scope.active
42952
- })
42953
- ]),
42954
- _: 3
42955
- /* FORWARDED */
42956
- }, 8, ["items", "active", "loading", "has-more", "locale"]),
42957
- vue.createCommentVNode(" \u89E6\u5E95\u52A0\u8F7D\u6307\u793A:\u5217\u8868\u672B\u5C3E(\u5206\u9875\u52A0\u8F7D\u65F6\u8F6C\u5708;el-scrollbar \u65E0\u5185\u7F6E loading \u5C3E\u884C) "),
42958
- loading.value && sessions.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, [
42959
- vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
42960
- default: vue.withCtx(() => [
42961
- vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
42962
- ]),
42963
- _: 1
42964
- /* STABLE */
42965
- }),
42966
- vue.createElementVNode(
42967
- "span",
42968
- null,
42969
- vue.toDisplayString(vue.unref(dict).sessionSidebar.listLoading),
42970
- 1
42971
- /* TEXT */
42972
- )
42973
- ])) : vue.createCommentVNode("v-if", true)
42844
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
42974
42845
  ]),
42975
- _: 3
42976
- /* FORWARDED */
42977
- },
42978
- 512
42979
- /* NEED_PATCH */
42980
- )
42981
- ])) : (vue.openBlock(), vue.createElementBlock(
42982
- vue.Fragment,
42983
- { key: 1 },
42984
- [
42985
- vue.createCommentVNode(" \u6536\u8D77\u6001:\u7A84\u6761(\u5C55\u5F00 + \u65B0\u5EFA + \u641C\u7D22,\u5747\u65E0\u8272\u5E95\u56FE\u6807\u6309\u94AE) "),
42986
- vue.createElementVNode("div", _hoisted_9$1, [
42987
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
42988
- content: vue.unref(dict).sessionSidebar.expand,
42989
- placement: "right",
42990
- "show-after": 300
42991
- }, {
42992
- default: vue.withCtx(() => [
42993
- vue.createElementVNode("button", {
42994
- class: "fv-ai-sidebar-rail",
42995
- type: "button",
42996
- onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42997
- }, [
42998
- vue.createVNode(_sfc_main$c, {
42999
- name: "sidebar",
43000
- size: 16
43001
- })
43002
- ])
43003
- ]),
43004
- _: 1
43005
- /* STABLE */
43006
- }, 8, ["content"]),
43007
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
43008
- content: vue.unref(dict).sessionSidebar.newChat,
43009
- placement: "right",
43010
- "show-after": 300
43011
- }, {
43012
- default: vue.withCtx(() => [
43013
- vue.createElementVNode("button", {
43014
- class: "fv-ai-sidebar-rail",
43015
- type: "button",
43016
- onClick: onCreate
43017
- }, [
43018
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
43019
- default: vue.withCtx(() => [
43020
- vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
43021
- ]),
43022
- _: 1
43023
- /* STABLE */
43024
- })
43025
- ])
43026
- ]),
43027
- _: 1
43028
- /* STABLE */
43029
- }, 8, ["content"]),
43030
- __props.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
43031
- key: 0,
43032
- content: vue.unref(dict).sessionSidebar.searchPlaceholder,
43033
- placement: "right",
43034
- "show-after": 300
43035
- }, {
43036
- default: vue.withCtx(() => [
43037
- vue.createElementVNode("button", {
43038
- class: "fv-ai-sidebar-rail",
43039
- type: "button",
43040
- onClick: expandToSearch
43041
- }, [
43042
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
43043
- default: vue.withCtx(() => [
43044
- vue.createVNode(vue.unref(ElementPlusIconsVue.Search))
43045
- ]),
43046
- _: 1
43047
- /* STABLE */
43048
- })
43049
- ])
43050
- ]),
43051
- _: 1
43052
- /* STABLE */
43053
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true)
43054
- ])
43055
- ],
43056
- 2112
43057
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43058
- ))
43059
- ],
43060
- 2112
43061
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43062
- );
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
+ ]));
43063
42879
  };
43064
42880
  }
43065
42881
  });
@@ -43344,7 +43160,6 @@
43344
43160
  style: vue.normalizeStyle(bodyStyle.value)
43345
43161
  },
43346
43162
  [
43347
- vue.createCommentVNode("\r\n key \u91CD\u5EFA\u65F6\u673A:\u5207\u6362\u4F1A\u8BDD\u3001\u91CD\u590D\u70B9\u300C\u65B0\u5BF9\u8BDD\u300D(\u91CD\u64AD\u6B22\u8FCE\u9875\u52A8\u753B)\u3001\u52A0\u8F7D\u66F4\u65E9\r\n \u5408\u5E76\u5386\u53F2\u2014\u2014FvAiChat \u7684 messages \u4E3A\u534A\u53D7\u63A7(\u4EC5 setup \u65F6\u4E00\u6B21\u6027\u704C\u5165),\r\n \u5386\u53F2\u53D8\u5316\u53EA\u80FD\u901A\u8FC7\u91CD\u5EFA\u5B9E\u4F8B\u56DE\u704C;\u8349\u7A3F\u61D2\u521B\u5EFA\u6210\u529F(draft \u2192 \u771F\u5B9E id)\u65F6\r\n \u5B88\u536B\u8DF3\u8FC7\u91CD\u5EFA,\u907F\u514D\u6253\u65AD\u9996\u6761\u6D41\u5F0F\r\n "),
43348
43163
  (vue.openBlock(), vue.createBlock(_sfc_main$4, {
43349
43164
  key: viewKey.value,
43350
43165
  adapter: lazyAdapter,
@@ -43463,7 +43278,6 @@
43463
43278
  key: "11"
43464
43279
  } : void 0
43465
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"])),
43466
- vue.createCommentVNode(" \u52A0\u8F7D\u66F4\u65E9:\u60AC\u6D6E\u6D88\u606F\u533A\u9876\u90E8\u5C45\u4E2D(\u9762\u677F\u65E0\u5934\u8BBE\u8BA1,\u5F52\u6863/\u8FDB\u884C\u4E2D\u7EDF\u4E00);\r\n \u4EC5\u5728\u5DF2\u6EDA\u5230\u6D88\u606F\u533A\u9876\u90E8\u65F6\u51FA\u73B0(atTop \u7531\u6EDA\u52A8\u76D1\u542C\u7EF4\u62A4) "),
43467
43281
  hasEarlier.value && atTop.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
43468
43282
  key: 0,
43469
43283
  class: "fv-ai-chat-panel-load-earlier",
@@ -43483,7 +43297,6 @@
43483
43297
  _: 1
43484
43298
  /* STABLE */
43485
43299
  }, 8, ["loading"])) : vue.createCommentVNode("v-if", true),
43486
- vue.createCommentVNode(" \u5207\u4F1A\u8BDD\u8BE6\u60C5\u52A0\u8F7D\u906E\u7F69(\u8349\u7A3F\u5207\u6362\u4E0D\u89E6\u53D1\u2014\u2014\u65E0\u8BF7\u6C42) "),
43487
43300
  detailLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
43488
43301
  vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
43489
43302
  default: vue.withCtx(() => [
@@ -44135,351 +43948,334 @@
44135
43948
  }
44136
43949
  __expose({ open, close, toggleMode, toggleMaximize, newChat, switchToPrevious, refresh });
44137
43950
  return (_ctx, _cache) => {
44138
- return vue.openBlock(), vue.createElementBlock(
44139
- vue.Fragment,
44140
- null,
44141
- [
44142
- 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 "),
44143
- (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
44144
- vue.createElementVNode("div", _hoisted_1$1, [
44145
- 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 "),
44146
- 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(
44147
43967
  "div",
44148
43968
  {
44149
43969
  key: 0,
44150
- class: vue.normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
44151
- 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)
44152
43981
  },
44153
- null,
44154
- 6
44155
- /* CLASS, STYLE */
44156
- )) : vue.createCommentVNode("v-if", true),
44157
- vue.createVNode(vue.Transition, { name: "fv-ai-widget-slide" }, {
44158
- default: vue.withCtx(() => [
44159
- 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(
44160
44014
  "div",
44161
44015
  {
44162
- key: 0,
44163
- ref_key: "widgetEl",
44164
- ref: widgetEl,
44165
- class: vue.normalizeClass(["fv-ai-widget", [
44166
- `is-${drawerSide.value}`,
44167
- {
44168
- "is-floating": mode.value === "floating",
44169
- "is-maximized": isMaximized.value,
44170
- "is-dragging": isDragging.value
44171
- }
44172
- ]]),
44173
- style: vue.normalizeStyle(panelStyle.value)
44016
+ class: "fv-ai-widget-header",
44017
+ onMousedown: onHeaderDragStart
44174
44018
  },
44175
44019
  [
44176
- 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 "),
44177
- (vue.openBlock(true), vue.createElementBlock(
44020
+ !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44178
44021
  vue.Fragment,
44179
- null,
44180
- vue.renderList(resizeEdges.value, (edge) => {
44181
- return vue.openBlock(), vue.createElementBlock("div", {
44182
- key: edge,
44183
- class: vue.normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
44184
- onMousedown: ($event) => onResizeStart($event, edge)
44185
- }, null, 42, _hoisted_2$1);
44186
- }),
44187
- 128
44188
- /* KEYED_FRAGMENT */
44189
- )),
44190
- vue.createCommentVNode(" \u6700\u5927\u5316\u6001\u4F1A\u8BDD\u4FA7\u680F:\u6839\u7EA7\u5168\u9AD8\u8986\u76D6(\u76D6\u4F4F header \u5DE6\u5217,\u6807\u8BC6\u7531\u4FA7\u680F\u54C1\u724C\u884C\r\n \u627F\u62C5),\u9009\u4E2D\u5207\u4F1A\u8BDD/\u65B0\u5EFA\u91CD\u64AD\u6B22\u8FCE\u9875/\u5220\u9664\u5F53\u524D\u5207\u8349\u7A3F;session-created /\r\n round-complete \u7ECF refresh \u4FDD\u6301\u5217\u8868\u6807\u9898\u540C\u6B65\u3002\u5BBD\u5EA6\u56DE\u5F52\u4FA7\u680F\u81EA\u8EAB\r\n (\u5C55\u5F00 260 / \u6536\u8D77 44),body \u7ECF padding-left \u8BA9\u4F4D(\u89C1 scss) "),
44191
- isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
44192
- key: 0,
44193
- ref_key: "sidebarRef",
44194
- ref: sidebarRef,
44195
- collapsed: sidebarCollapsed.value,
44196
- "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
44197
- class: "fv-ai-widget-sidebar",
44198
- service: __props.service,
44199
- "active-id": activeSessionId.value,
44200
- searchable: true,
44201
- "brand-name": displayTitle.value,
44202
- "brand-icon": avatarSrc.value,
44203
- locale: __props.locale,
44204
- onSelect: onSidebarSelect,
44205
- onNewChat,
44206
- onRemoved: onSidebarRemoved
44207
- }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : vue.createCommentVNode("v-if", true),
44208
- vue.createCommentVNode(" \u5934\u90E8:\u5DE6\u4FA7\u5934\u50CF + \u6807\u9898(AI \u540D\u79F0),\u53F3\u4FA7\u56FE\u6807\u6309\u94AE\r\n (\u5386\u53F2\u4F1A\u8BDD\u4E0B\u62C9 + \u65B0\u5BF9\u8BDD + \u6A21\u5F0F\u5207\u6362 + \u5173\u95ED,\u5747\u5E26 tooltip);\r\n \u60AC\u7A97\u6A21\u5F0F\u5934\u90E8\u517C\u4F5C\u62D6\u62FD\u533A\u3002\r\n #header-avatar / #header-title \u66FF\u6362\u54C1\u724C\u533A,#header-actions \u5728\u6807\u9898\u4E0E\r\n \u9ED8\u8BA4\u6309\u94AE\u4E4B\u95F4\u8FFD\u52A0\u81EA\u5B9A\u4E49\u6309\u94AE(\u4EA4\u4E92\u914D\u5408 expose \u7684 newChat/switchToPrevious) "),
44209
- vue.createElementVNode(
44210
- "div",
44211
- {
44212
- class: "fv-ai-widget-header",
44213
- onMousedown: onHeaderDragStart
44214
- },
44022
+ { key: 0 },
44215
44023
  [
44216
- 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 "),
44217
- !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44218
- vue.Fragment,
44219
- { key: 0 },
44220
- [
44221
- vue.renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44222
- vue.createElementVNode("img", {
44223
- class: "fv-ai-widget-avatar",
44224
- src: avatarSrc.value,
44225
- alt: ""
44226
- }, null, 8, _hoisted_3$1)
44227
- ]),
44228
- vue.createElementVNode("div", _hoisted_4, [
44229
- vue.renderSlot(_ctx.$slots, "header-title", {}, () => [
44230
- vue.createTextVNode(
44231
- vue.toDisplayString(displayTitle.value),
44232
- 1
44233
- /* TEXT */
44234
- )
44235
- ])
44236
- ])
44237
- ],
44238
- 64
44239
- /* STABLE_FRAGMENT */
44240
- )) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5)),
44241
- vue.renderSlot(_ctx.$slots, "header-actions"),
44242
- 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 "),
44243
- !isMaximized.value ? (vue.openBlock(), vue.createElementBlock(
44244
- vue.Fragment,
44245
- { key: 2 },
44246
- [
44247
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44248
- content: vue.unref(dict).aiChatPanel.history,
44249
- "show-after": 300,
44250
- placement: "bottom"
44251
- }, {
44252
- default: vue.withCtx(() => [
44253
- vue.createElementVNode("button", {
44254
- type: "button",
44255
- class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44256
- "aria-label": vue.unref(dict).aiChatPanel.history,
44257
- onClick: onHistoryToggle
44258
- }, [
44259
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44260
- default: vue.withCtx(() => [
44261
- vue.createVNode(vue.unref(ElementPlusIconsVue.Clock))
44262
- ]),
44263
- _: 1
44264
- /* STABLE */
44265
- })
44266
- ], 8, _hoisted_6)
44267
- ]),
44268
- _: 1
44269
- /* STABLE */
44270
- }, 8, ["content"]),
44271
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44272
- content: vue.unref(dict).sessionSidebar.newChat,
44273
- "show-after": 300,
44274
- placement: "bottom"
44275
- }, {
44276
- default: vue.withCtx(() => [
44277
- vue.createElementVNode("button", {
44278
- type: "button",
44279
- class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44280
- "aria-label": vue.unref(dict).sessionSidebar.newChat,
44281
- onClick: onNewChat
44282
- }, [
44283
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44284
- default: vue.withCtx(() => [
44285
- vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
44286
- ]),
44287
- _: 1
44288
- /* STABLE */
44289
- })
44290
- ], 8, _hoisted_7)
44291
- ]),
44292
- _: 1
44293
- /* STABLE */
44294
- }, 8, ["content"]),
44295
- __props.showModeToggle ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
44296
- key: 0,
44297
- content: mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
44298
- "show-after": 300,
44299
- placement: "bottom"
44300
- }, {
44301
- default: vue.withCtx(() => [
44302
- vue.createElementVNode("button", {
44303
- type: "button",
44304
- class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44305
- "aria-label": mode.value === "drawer" ? vue.unref(dict).aiChatPanel.floatMode : vue.unref(dict).aiChatPanel.drawerMode,
44306
- onClick: toggleMode
44307
- }, [
44308
- mode.value === "drawer" ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44309
- key: 0,
44310
- name: "to-window",
44311
- size: 18
44312
- })) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44313
- key: 1,
44314
- name: "to-drawer",
44315
- size: 18
44316
- }))
44317
- ], 8, _hoisted_8)
44318
- ]),
44319
- _: 1
44320
- /* STABLE */
44321
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true)
44322
- ],
44323
- 64
44324
- /* STABLE_FRAGMENT */
44325
- )) : vue.createCommentVNode("v-if", true),
44326
- __props.maximizable ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
44327
- key: 3,
44328
- content: isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
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,
44329
44051
  "show-after": 300,
44330
44052
  placement: "bottom"
44331
44053
  }, {
44332
44054
  default: vue.withCtx(() => [
44333
44055
  vue.createElementVNode("button", {
44334
44056
  type: "button",
44335
- class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44336
- "aria-label": isMaximized.value ? vue.unref(dict).aiChatPanel.restore : vue.unref(dict).aiChatPanel.maximize,
44337
- onClick: toggleMaximize
44057
+ class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44058
+ "aria-label": vue.unref(dict).aiChatPanel.history,
44059
+ onClick: onHistoryToggle
44338
44060
  }, [
44339
- isMaximized.value ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44340
- key: 0,
44341
- name: "win-restore",
44342
- size: 18
44343
- })) : (vue.openBlock(), vue.createBlock(_sfc_main$c, {
44344
- key: 1,
44345
- name: "maximize",
44346
- size: 18
44347
- }))
44348
- ], 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)
44349
44069
  ]),
44350
44070
  _: 1
44351
44071
  /* STABLE */
44352
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
44072
+ }, 8, ["content"]),
44353
44073
  vue.createVNode(vue.unref(elementPlus.ElTooltip), {
44354
- content: vue.unref(dict).aiChatPanel.close,
44074
+ content: vue.unref(dict).sessionSidebar.newChat,
44355
44075
  "show-after": 300,
44356
44076
  placement: "bottom"
44357
44077
  }, {
44358
44078
  default: vue.withCtx(() => [
44359
44079
  vue.createElementVNode("button", {
44360
44080
  type: "button",
44361
- class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44362
- "aria-label": vue.unref(dict).aiChatPanel.close,
44363
- 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
44364
44084
  }, [
44365
44085
  vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 18 }, {
44366
44086
  default: vue.withCtx(() => [
44367
- vue.createVNode(vue.unref(ElementPlusIconsVue.Close))
44087
+ vue.createVNode(vue.unref(ElementPlusIconsVue.Plus))
44368
44088
  ]),
44369
44089
  _: 1
44370
44090
  /* STABLE */
44371
44091
  })
44372
- ], 8, _hoisted_10)
44092
+ ], 8, _hoisted_7)
44373
44093
  ]),
44374
44094
  _: 1
44375
44095
  /* STABLE */
44376
- }, 8, ["content"])
44377
- ],
44378
- 32
44379
- /* NEED_HYDRATION */
44380
- ),
44381
- 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) "),
44382
- vue.createElementVNode(
44383
- "div",
44384
- {
44385
- class: vue.normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44386
- },
44387
- [
44388
- vue.createCommentVNode(" \u5386\u53F2\u4F1A\u8BDD\u4E0B\u62C9\u5C42:body \u5185\u8986\u76D6\u5F0F\u6ED1\u51FA,\u4EC5\u906E\u5BF9\u8BDD\u533A(header \u9732\u51FA\u53EF\u7EE7\u7EED\u64CD\u4F5C);\r\n \u9876\u90E8\u5DE5\u5177\u6761(\u8FD4\u56DE) + FvConversations \u5206\u7EC4\u5217\u8868 + hover \u83DC\u5355\u91CD\u547D\u540D/\u5220\u9664 +\r\n \u89E6\u5E95\u52A0\u8F7D,\u70B9\u884C\u5207\u4F1A\u8BDD\u6536\u8D77 "),
44389
- vue.createVNode(vue.Transition, { name: "fv-ai-widget-history" }, {
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
+ }, {
44390
44103
  default: vue.withCtx(() => [
44391
- historyOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
44392
- vue.createElementVNode("div", _hoisted_12, [
44393
- vue.createElementVNode("button", {
44394
- type: "button",
44395
- class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44396
- "aria-label": vue.unref(dict).aiChatPanel.back,
44397
- onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44398
- }, [
44399
- vue.createVNode(vue.unref(elementPlus.ElIcon), { size: 16 }, {
44400
- default: vue.withCtx(() => [
44401
- vue.createVNode(vue.unref(ElementPlusIconsVue.ArrowLeft))
44402
- ]),
44403
- _: 1
44404
- /* STABLE */
44405
- }),
44406
- vue.createElementVNode(
44407
- "span",
44408
- _hoisted_14,
44409
- vue.toDisplayString(vue.unref(dict).aiChatPanel.back),
44410
- 1
44411
- /* TEXT */
44412
- )
44413
- ], 8, _hoisted_13)
44414
- ]),
44415
- vue.createElementVNode("div", _hoisted_15, [
44416
- vue.createVNode(_sfc_main$9, {
44417
- ref_key: "conversationsRef",
44418
- ref: conversationsRef,
44419
- items: historyItems.value,
44420
- active: activeSessionId.value,
44421
- loading: historyLoading.value,
44422
- "has-more": historyHasMore.value,
44423
- locale: __props.locale,
44424
- "onUpdate:active": onSelectSession,
44425
- onLoadMore: loadMoreHistory,
44426
- onMenuCommand: onHistoryMenuCommand
44427
- }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44428
- !historyLoading.value && !historyItems.value.length ? (vue.openBlock(), vue.createElementBlock(
44429
- "div",
44430
- _hoisted_16,
44431
- vue.toDisplayString(vue.unref(dict).aiChatPanel.historyEmpty),
44432
- 1
44433
- /* TEXT */
44434
- )) : vue.createCommentVNode("v-if", true)
44435
- ])
44436
- ])) : vue.createCommentVNode("v-if", true)
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)
44437
44120
  ]),
44438
44121
  _: 1
44439
44122
  /* STABLE */
44440
- }),
44441
- vue.createVNode(_sfc_main$2, vue.mergeProps({
44442
- ref_key: "panelRef",
44443
- ref: panelRef
44444
- }, panelProps.value, {
44445
- "session-id": activeSessionId.value,
44446
- "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44447
- "center-welcome": isMaximized.value,
44448
- onSessionCreated,
44449
- onRoundComplete
44450
- }, vue.toHandlers(panelListeners)), vue.createSlots({
44451
- _: 2
44452
- /* 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
44453
44140
  }, [
44454
- vue.renderList(_ctx.$slots, (_, name) => {
44455
- return {
44456
- name,
44457
- fn: vue.withCtx((slotProps) => [
44458
- vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps ?? {})))
44459
- ])
44460
- };
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 */
44461
44173
  })
44462
- ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44463
- ],
44464
- 2
44465
- /* CLASS */
44466
- )
44174
+ ], 8, _hoisted_10)
44175
+ ]),
44176
+ _: 1
44177
+ /* STABLE */
44178
+ }, 8, ["content"])
44467
44179
  ],
44468
- 6
44469
- /* CLASS, STYLE */
44470
- )), [
44471
- [vue.vShow, __props.modelValue]
44472
- ]) : vue.createCommentVNode("v-if", true)
44473
- ]),
44474
- _: 3
44475
- /* FORWARDED */
44476
- })
44477
- ])
44478
- ]))
44479
- ],
44480
- 2112
44481
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44482
- );
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
+ ]);
44483
44279
  };
44484
44280
  }
44485
44281
  });
@@ -44690,32 +44486,22 @@
44690
44486
  onClick: _cache[1] || (_cache[1] = ($event) => __props.interactive && onClickGuard($event))
44691
44487
  }, {
44692
44488
  default: vue.withCtx(() => [
44693
- vue.createCommentVNode(" blob \u5149\u6655:\u5185\u5D4C FvBlobHalo(\u9ED8\u8BA4\u4E3B\u9898\u8272 + AI \u7D2B + \u6D45\u7D2B + \u767D\u56DB\u8272,\r\n \u76F8\u5BF9\u6309\u94AE\u653E\u5927 1.6 \u500D\u53E0\u5728\u5934\u50CF\u540E\u65B9;halo prop \u6574\u4F53\u900F\u4F20\u53EF\u8986\u76D6) "),
44694
44489
  vue.createVNode(_sfc_main$8, vue.mergeProps({
44695
44490
  class: "fv-ai-launcher-halo",
44696
44491
  size: __props.size
44697
44492
  }, haloProps.value), null, 16, ["size"]),
44698
- vue.createCommentVNode(" #default \u6574\u4F53\u66FF\u6362\u5185\u5BB9(\u5149\u6655\u5C42\u4FDD\u7559);\u7F3A\u7701\u6E32\u67D3 #icon > iconComponent > \u5185\u7F6E\u54C1\u724C\u5934\u50CF "),
44699
44493
  vue.createElementVNode("span", _hoisted_1, [
44700
44494
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
44701
44495
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
44702
44496
  __props.iconComponent ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.iconComponent), {
44703
44497
  key: 0,
44704
44498
  class: "fv-ai-launcher-comp-icon"
44705
- })) : !__props.icon ? (vue.openBlock(), vue.createElementBlock(
44706
- vue.Fragment,
44707
- { key: 1 },
44708
- [
44709
- 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> "),
44710
- vue.createElementVNode("span", {
44711
- class: vue.normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44712
- "aria-hidden": "true",
44713
- innerHTML: vue.unref(defaultAvatarSvg)
44714
- }, null, 10, _hoisted_2)
44715
- ],
44716
- 2112
44717
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44718
- )) : (vue.openBlock(), vue.createElementBlock("img", {
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", {
44719
44505
  key: 2,
44720
44506
  class: "fv-ai-launcher-avatar",
44721
44507
  src: __props.icon,