@fv-ui/ai-chat 1.9.1 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.mjs CHANGED
@@ -11,7 +11,7 @@ import 'element-plus/es/components/avatar/style/css';
11
11
  import 'element-plus/es/components/dropdown/style/css';
12
12
  import 'element-plus/es/components/select/style/css';
13
13
  import 'element-plus/es/components/image-viewer/style/css';
14
- import { shallowRef, inject, computed, provide, defineComponent, ref, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, createCommentVNode, createBlock, Teleport, watch, normalizeClass, createTextVNode, toDisplayString, normalizeStyle, renderSlot, unref, renderList, createVNode, isRef, nextTick, onMounted, mergeProps, createSlots, withCtx, Transition, getCurrentInstance, useSlots, normalizeProps, guardReactiveProps, reactive, resolveDynamicComponent, markRaw, withModifiers, h, onActivated, useModel, onDeactivated, mergeModels, withDirectives, toHandlers, vShow, watchEffect } from 'vue';
14
+ import { shallowRef, inject, computed, provide, defineComponent, ref, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, createBlock, Teleport, watch, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, renderSlot, unref, renderList, isRef, nextTick, onMounted, mergeProps, createSlots, withCtx, createVNode, Transition, getCurrentInstance, useSlots, normalizeProps, guardReactiveProps, reactive, resolveDynamicComponent, markRaw, withModifiers, h, onActivated, useModel, onDeactivated, mergeModels, withDirectives, toHandlers, vShow, watchEffect } from 'vue';
15
15
  import { ElMessage, ElAvatar, ElButton, ElIcon, ElPopover, ElDialog, ElScrollbar, ElDropdown, ElDropdownMenu, ElDropdownItem, ElMessageBox, ElImageViewer, ElTooltip, ElInput, ElSelect, ElOption, ElSegmented } from 'element-plus';
16
16
  import * as ElementPlusIconsVue from '@element-plus/icons-vue';
17
17
  import { ArrowDown, Close, Check, Delete, Microphone, Promotion, VideoPause, Loading, SuccessFilled, WarningFilled, CircleCloseFilled, ArrowUp, Picture, Download, Paperclip, RefreshRight, MoreFilled, Search, User, CircleCheck, DocumentCopy, Bottom, CopyDocument, FullScreen, Plus, Clock, ArrowLeft } from '@element-plus/icons-vue';
@@ -34329,8 +34329,6 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
34329
34329
  onMouseover: onRootOver,
34330
34330
  onMouseleave: hideTip
34331
34331
  }, null, 40, _hoisted_1$o),
34332
- 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 "),
34333
- createCommentVNode(" tooltip div \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
34334
34332
  (openBlock(), createBlock(Teleport, { to: "body" }, [
34335
34333
  createElementVNode(
34336
34334
  "div",
@@ -34456,7 +34454,6 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
34456
34454
  class: normalizeClass(["fv-typewriter", { "is-typing": isTyping.value, "is-fog": !!fog.value }])
34457
34455
  },
34458
34456
  [
34459
- createCommentVNode(" markdown \u6A21\u5F0F:suffix \u4E0D\u8FFD\u52A0(element-plus-x \u884C\u4E3A),isTyping \u900F\u4F20\u7ED9 Markdown \u4F5C\u6837\u5F0F\u94A9\u5B50 "),
34460
34457
  __props.isMarkdown ? (openBlock(), createBlock(_sfc_main$o, {
34461
34458
  key: 0,
34462
34459
  content: renderedContent.value,
@@ -34477,7 +34474,6 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
34477
34474
  /* TEXT */
34478
34475
  )) : createCommentVNode("v-if", true)
34479
34476
  ])),
34480
- createCommentVNode(" \u96FE\u5316:\u6253\u5B57\u4E2D\u5728\u5185\u5BB9\u5C3E\u90E8\u53E0\u4E00\u5C42\u5411\u80CC\u666F\u8272\u6E10\u9690\u7684\u906E\u7F69 "),
34481
34477
  fog.value && isTyping.value ? (openBlock(), createElementBlock(
34482
34478
  "span",
34483
34479
  {
@@ -34585,7 +34581,6 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
34585
34581
  style: normalizeStyle({ "--fv-bubble-avatar-gap": __props.avatarGap, "--fv-bubble-avatar-size": __props.avatarSize || void 0 })
34586
34582
  },
34587
34583
  [
34588
- createCommentVNode(" \u5934\u50CF:placement \u540C\u7F18\u6392\u5217(end \u7ECF row-reverse \u7FFB\u8F6C\u5230\u53F3\u4FA7),#avatar \u63D2\u69FD\u4F18\u5148 "),
34589
34584
  _ctx.$slots.avatar || __props.avatar || __props.avatarIcon ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
34590
34585
  _ctx.$slots.avatar ? renderSlot(_ctx.$slots, "avatar", {}, void 0, void 0, 0) : (openBlock(), createBlock(unref(ElAvatar), {
34591
34586
  key: 1,
@@ -34609,7 +34604,6 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
34609
34604
  class: normalizeClass(["fv-bubble-content", { "no-padding": __props.noPadding, "no-style": __props.noStyle }])
34610
34605
  },
34611
34606
  [
34612
- createCommentVNode(" loading \u4F18\u5148:#loading \u63D2\u69FD\u4F18\u5148\u4E8E\u5185\u7F6E\u4E09\u70B9\u52A8\u753B "),
34613
34607
  __props.loading ? (openBlock(), createElementBlock("div", _hoisted_4$f, [
34614
34608
  _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", {}, void 0, void 0, 0) : (openBlock(), createElementBlock(
34615
34609
  Fragment,
@@ -34630,35 +34624,18 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
34630
34624
  64
34631
34625
  /* STABLE_FRAGMENT */
34632
34626
  ))
34633
- ])) : _ctx.$slots.content ? (openBlock(), createElementBlock(
34634
- Fragment,
34635
- { key: 1 },
34636
- [
34637
- createCommentVNode(" #content \u63D2\u69FD\u4F18\u5148\u4E8E content prop "),
34638
- renderSlot(_ctx.$slots, "content")
34639
- ],
34640
- 2112
34641
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
34642
- )) : __props.typing ? (openBlock(), createElementBlock(
34643
- Fragment,
34644
- { key: 2 },
34645
- [
34646
- createCommentVNode(" typing \u900F\u4F20 Typewriter;\u975E typing:isMarkdown \u2192 Markdown,\u5426\u5219\u7EAF\u6587\u672C "),
34647
- createVNode(_sfc_main$n, {
34648
- ref_key: "twRef",
34649
- ref: twRef,
34650
- content: __props.content,
34651
- "is-markdown": __props.isMarkdown,
34652
- "is-fog": __props.isFog,
34653
- typing: __props.typing,
34654
- onStart,
34655
- onWriting,
34656
- onFinish
34657
- }, null, 8, ["content", "is-markdown", "is-fog", "typing"])
34658
- ],
34659
- 2112
34660
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
34661
- )) : __props.isMarkdown ? (openBlock(), createBlock(_sfc_main$o, {
34627
+ ])) : _ctx.$slots.content ? renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1) : __props.typing ? (openBlock(), createBlock(_sfc_main$n, {
34628
+ key: 2,
34629
+ ref_key: "twRef",
34630
+ ref: twRef,
34631
+ content: __props.content,
34632
+ "is-markdown": __props.isMarkdown,
34633
+ "is-fog": __props.isFog,
34634
+ typing: __props.typing,
34635
+ onStart,
34636
+ onWriting,
34637
+ onFinish
34638
+ }, null, 8, ["content", "is-markdown", "is-fog", "typing"])) : __props.isMarkdown ? (openBlock(), createBlock(_sfc_main$o, {
34662
34639
  key: 3,
34663
34640
  content: __props.content
34664
34641
  }, null, 8, ["content"])) : (openBlock(), createElementBlock(
@@ -34871,7 +34848,6 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
34871
34848
  38
34872
34849
  /* CLASS, STYLE, NEED_HYDRATION */
34873
34850
  ),
34874
- createCommentVNode(" \u56DE\u5E95\u6309\u94AE:\u8DDD\u5E95\u8D85\u8FC7 backButtonThreshold \u663E\u793A "),
34875
34851
  createVNode(Transition, { name: "fv-bubble-list-fade" }, {
34876
34852
  default: withCtx(() => [
34877
34853
  __props.showBackButton && isAwayFromBottom.value ? (openBlock(), createBlock(unref(ElButton), {
@@ -35444,22 +35420,17 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35444
35420
  class: normalizeClass(["fv-sender", [`variant-${__props.variant}`, { "is-disabled": __props.disabled, "is-loading": __props.loading, "is-focused": isFocused.value, "has-shadow": __props.shadow }]])
35445
35421
  },
35446
35422
  [
35447
- createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
35448
35423
  headerVisible.value && _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
35449
35424
  renderSlot(_ctx.$slots, "header")
35450
35425
  ])) : createCommentVNode("v-if", true),
35451
35426
  createElementVNode("div", _hoisted_2$h, [
35452
- createCommentVNode(" body \u9876\u90E8\u533A:\u5728\u8F93\u5165\u6846\u4E0A\u65B9\u3001body \u8FB9\u6846\u5185(\u5982\u9644\u4EF6\u5217\u8868) "),
35453
35427
  _ctx.$slots["body-top"] ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
35454
35428
  renderSlot(_ctx.$slots, "body-top")
35455
35429
  ])) : createCommentVNode("v-if", true),
35456
- createCommentVNode(" \u4E3B\u4F53\u884C:\u524D\u7F00 + \u8F93\u5165 + \u64CD\u4F5C "),
35457
35430
  createElementVNode("div", _hoisted_4$e, [
35458
- createCommentVNode(" \u524D\u7F00\u533A "),
35459
35431
  _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
35460
35432
  renderSlot(_ctx.$slots, "prefix")
35461
35433
  ])) : createCommentVNode("v-if", true),
35462
- 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 "),
35463
35434
  unref(isRecording) ? (openBlock(), createElementBlock(
35464
35435
  "div",
35465
35436
  {
@@ -35562,7 +35533,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35562
35533
  onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
35563
35534
  onBlur: onTextareaBlur
35564
35535
  }, null, 40, _hoisted_8$7),
35565
- createCommentVNode(" \u6307\u4EE4\u5F39\u6846:\u5185\u7F6E el-popover,\u5B9A\u4F4D\u6309 triggerPopover* \u7CFB\u5217 "),
35566
35536
  createVNode(unref(ElPopover), {
35567
35537
  visible: triggerVisible.value && __props.triggerStrings.length > 0,
35568
35538
  placement: __props.triggerPopoverPlacement,
@@ -35593,7 +35563,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35593
35563
  4
35594
35564
  /* STYLE */
35595
35565
  )),
35596
- 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) "),
35597
35566
  hasActionListSlot.value ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
35598
35567
  renderSlot(_ctx.$slots, "action-list")
35599
35568
  ])) : (openBlock(), createElementBlock("div", _hoisted_10$4, [
@@ -35640,7 +35609,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35640
35609
  _: 1
35641
35610
  /* STABLE */
35642
35611
  }, 8, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
35643
- createCommentVNode(" loading \u2192 \u505C\u6B62\u6309\u94AE:SVG \u5149\u5E26\u6CBF\u8FB9\u6846\u5300\u901F\u6D41\u8F6C,\u65B9/\u5706\u6309\u94AE\u5747\u9002\u7528 "),
35644
35612
  __props.loading ? (openBlock(), createBlock(unref(ElButton), {
35645
35613
  key: 3,
35646
35614
  class: normalizeClass(["fv-sender-stop", { "is-guarded": stopGuarded.value }]),
@@ -35657,7 +35625,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35657
35625
  _: 1
35658
35626
  /* STABLE */
35659
35627
  }),
35660
- 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 '),
35661
35628
  (openBlock(), createElementBlock("svg", _hoisted_12$4, [
35662
35629
  (openBlock(true), createElementBlock(
35663
35630
  Fragment,
@@ -35700,10 +35667,8 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35700
35667
  /* STABLE */
35701
35668
  }, 8, ["circle", "disabled", "aria-label"]))
35702
35669
  ]))
35703
- ]),
35704
- createCommentVNode(" /fv-sender-row ")
35670
+ ])
35705
35671
  ]),
35706
- createCommentVNode(" \u5E95\u90E8 "),
35707
35672
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_14$4, [
35708
35673
  renderSlot(_ctx.$slots, "footer")
35709
35674
  ])) : createCommentVNode("v-if", true)
@@ -36031,7 +35996,6 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
36031
35996
  onKeydownCapture
36032
35997
  },
36033
35998
  [
36034
- createCommentVNode(" Sender \u900F\u4F20:\u672A\u58F0\u660E\u7684 props/\u76D1\u542C\u5668\u7ECF $attrs \u4E0B\u4F20;slots \u52A8\u6001\u8F6C\u53D1 "),
36035
35999
  createVNode(_sfc_main$j, mergeProps({
36036
36000
  ref_key: "senderRef",
36037
36001
  ref: senderRef
@@ -36058,7 +36022,6 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
36058
36022
  };
36059
36023
  })
36060
36024
  ]), 1040, ["model-value"]),
36061
- createCommentVNode(" \u63D0\u53CA\u5F39\u5C42:v-if \u6574\u4F53\u5378\u8F7D(el-popover \u5173\u95ED\u4EC5 display:none \u4F1A\u5BFC\u81F4 DOM \u6B8B\u7559) "),
36062
36025
  mentionVisible.value ? (openBlock(), createBlock(unref(ElPopover), {
36063
36026
  key: 0,
36064
36027
  visible: true,
@@ -36929,17 +36892,14 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
36929
36892
  style: normalizeStyle(__props.customStyle)
36930
36893
  },
36931
36894
  [
36932
- createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
36933
36895
  headerVisible.value && _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
36934
36896
  renderSlot(_ctx.$slots, "header")
36935
36897
  ])) : createCommentVNode("v-if", true),
36936
36898
  createElementVNode("div", _hoisted_2$f, [
36937
- createCommentVNode(" \u524D\u7F00\u533A "),
36938
36899
  _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
36939
36900
  renderSlot(_ctx.$slots, "prefix")
36940
36901
  ])) : createCommentVNode("v-if", true),
36941
36902
  createElementVNode("div", _hoisted_4$c, [
36942
- createCommentVNode(" \u6807\u7B7E\u7F16\u8F91\u533A:contenteditable,\u5185\u5BB9\u7531\u547D\u4EE4\u5F0F\u6E32\u67D3(nodes \u2192 DOM) "),
36943
36903
  createElementVNode("div", {
36944
36904
  ref_key: "editorRef",
36945
36905
  ref: editorRef,
@@ -36954,8 +36914,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
36954
36914
  onFocus: onEditorFocus,
36955
36915
  onBlur: onEditorBlur
36956
36916
  }, null, 40, _hoisted_5$a),
36957
- createCommentVNode(" at \u5F39\u5C42\u951A\u70B9:\u4E0D\u53EF\u89C1,\u4EC5\u627F\u8F7D el-popover \u5B9A\u4F4D(\u5728 ElPopover #reference \u5185) "),
36958
- createCommentVNode(" @\u5F39\u5C42:v-if \u6574\u4F53\u5378\u8F7D(el-popover \u5173\u95ED\u4EC5 display:none \u4F1A\u6B8B\u7559 DOM) "),
36959
36917
  mentionVisible.value ? (openBlock(), createBlock(unref(ElPopover), {
36960
36918
  key: 0,
36961
36919
  visible: true,
@@ -37039,7 +36997,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37039
36997
  _: 1
37040
36998
  /* STABLE */
37041
36999
  })) : createCommentVNode("v-if", true),
37042
- createCommentVNode(" \u8F93\u5165\u6807\u7B7E tip \u5F39\u5C42(openTipTag/closeTipTag \u63A7\u5236) "),
37043
37000
  tipVisible.value ? (openBlock(), createBlock(unref(ElPopover), {
37044
37001
  key: 1,
37045
37002
  visible: true,
@@ -37076,7 +37033,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37076
37033
  /* FORWARDED */
37077
37034
  })) : createCommentVNode("v-if", true)
37078
37035
  ]),
37079
- createCommentVNode(" \u64CD\u4F5C\u533A:#action-list \u5B58\u5728\u65F6\u5168\u81EA\u5B9A\u4E49,\u9690\u85CF\u5185\u7F6E\u6309\u94AE "),
37080
37036
  hasActionListSlot.value ? (openBlock(), createElementBlock("div", _hoisted_14$3, [
37081
37037
  renderSlot(_ctx.$slots, "action-list")
37082
37038
  ])) : (openBlock(), createElementBlock("div", _hoisted_15$3, [
@@ -37100,7 +37056,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37100
37056
  _: 1
37101
37057
  /* STABLE */
37102
37058
  }, 8, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
37103
- createCommentVNode(" loading \u2192 \u505C\u6B62\u6309\u94AE;\u5426\u5219\u53D1\u9001\u6309\u94AE "),
37104
37059
  __props.loading ? (openBlock(), createBlock(unref(ElButton), {
37105
37060
  key: 1,
37106
37061
  class: "fv-editor-stop",
@@ -37141,11 +37096,9 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37141
37096
  }, 8, ["disabled", "aria-label"]))
37142
37097
  ]))
37143
37098
  ]),
37144
- createCommentVNode(" \u5E95\u90E8 "),
37145
37099
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_16$2, [
37146
37100
  renderSlot(_ctx.$slots, "footer")
37147
37101
  ])) : createCommentVNode("v-if", true),
37148
- createCommentVNode(" \u9009\u62E9\u6807\u7B7E\u5F39\u7A97:customDialog=true \u65F6\u4E0D\u5F39,\u7531\u5916\u90E8\u7ECF show-select-dialog \u63A5\u7BA1 "),
37149
37102
  selectVisible.value && !__props.customDialog ? (openBlock(), createBlock(unref(ElDialog), {
37150
37103
  key: 2,
37151
37104
  "model-value": selectVisible.value,
@@ -37286,7 +37239,6 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
37286
37239
  })
37287
37240
  },
37288
37241
  [
37289
- 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) "),
37290
37242
  !__props.hideHeader ? (openBlock(), createElementBlock(
37291
37243
  "button",
37292
37244
  {
@@ -37370,7 +37322,6 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
37370
37322
  4
37371
37323
  /* STYLE */
37372
37324
  )) : createCommentVNode("v-if", true),
37373
- 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 "),
37374
37325
  hasBody.value ? (openBlock(), createElementBlock("div", {
37375
37326
  key: 1,
37376
37327
  class: "fv-thinking-content",
@@ -37800,7 +37751,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37800
37751
  class: normalizeClass(["fv-chain-item", [statusClass(item.status), item.class]])
37801
37752
  },
37802
37753
  [
37803
- 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 "),
37804
37754
  createElementVNode("span", _hoisted_1$f, [
37805
37755
  item.icon ? (openBlock(), createBlock(unref(ElIcon), {
37806
37756
  key: 0,
@@ -37837,13 +37787,11 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37837
37787
  /* STABLE */
37838
37788
  })) : (openBlock(), createElementBlock("span", _hoisted_2$d))
37839
37789
  ]),
37840
- 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 "),
37841
37790
  createElementVNode("div", _hoisted_3$d, [
37842
37791
  renderSlot(_ctx.$slots, "content", {
37843
37792
  item,
37844
37793
  index
37845
37794
  }, () => [
37846
- createCommentVNode(" text \u6B65:\u6807\u9898\u884C + \u53EF\u6298\u53E0 description \u6EDA\u52A8\u533A(2026-10-07 \u601D\u8003\u94FE\u8C03\u6574) "),
37847
37795
  item.kind === "text" ? (openBlock(), createElementBlock(
37848
37796
  Fragment,
37849
37797
  { key: 0 },
@@ -37861,7 +37809,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37861
37809
  1
37862
37810
  /* TEXT */
37863
37811
  ),
37864
- 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 "),
37865
37812
  !isTextExpanded(item.key) && !item.closed && textStepPreview(item) ? (openBlock(), createElementBlock(
37866
37813
  "span",
37867
37814
  _hoisted_6$8,
@@ -37869,7 +37816,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37869
37816
  1
37870
37817
  /* TEXT */
37871
37818
  )) : createCommentVNode("v-if", true),
37872
- createCommentVNode(" \u5C55\u5F00/\u6536\u8D77\u7BAD\u5934:\u6536\u8D77 ArrowDown / \u5C55\u5F00 ArrowUp(\u4E0E\u5DE5\u5177\u6B65\u6298\u53E0\u6309\u94AE\u540C\u8BED\u4E49) "),
37873
37819
  createVNode(
37874
37820
  unref(ElIcon),
37875
37821
  { class: "fv-chain-head-arrow" },
@@ -37885,7 +37831,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37885
37831
  )
37886
37832
  ], 10, _hoisted_4$a),
37887
37833
  isTextExpanded(item.key) ? (openBlock(), createElementBlock("div", _hoisted_7$6, [
37888
- 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 "),
37889
37834
  edgeFade(item.key).top ? (openBlock(), createElementBlock("span", _hoisted_8$5)) : createCommentVNode("v-if", true),
37890
37835
  edgeFade(item.key).bottom ? (openBlock(), createElementBlock("span", _hoisted_9$3)) : createCommentVNode("v-if", true),
37891
37836
  createVNode(unref(ElScrollbar), {
@@ -37927,7 +37872,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37927
37872
  Fragment,
37928
37873
  { key: 1 },
37929
37874
  [
37930
- createCommentVNode(" tool \u6B65:\u539F\u5E03\u5C40 "),
37931
37875
  createElementVNode(
37932
37876
  "div",
37933
37877
  {
@@ -37936,7 +37880,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37936
37880
  class: normalizeClass(["fv-chain-title", { "is-clamped": __props.collapsible && showToggle(item.key) && !expandedKeys.value.has(item.key) }])
37937
37881
  },
37938
37882
  [
37939
- 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 "),
37940
37883
  isTypingItem(item) && item.key === lastTypingKey.value && !holdingKeys.value.has(item.key) ? (openBlock(), createBlock(_sfc_main$n, {
37941
37884
  key: 0,
37942
37885
  content: normalizeTitle(item.title),
@@ -38038,7 +37981,6 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38038
37981
  class: normalizeClass(["fv-welcome", `is-${__props.layout}`])
38039
37982
  },
38040
37983
  [
38041
- 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 "),
38042
37984
  createElementVNode("div", _hoisted_1$e, [
38043
37985
  renderSlot(_ctx.$slots, "icon", {}, () => [
38044
37986
  isImage(__props.icon) ? (openBlock(), createBlock(unref(ElAvatar), {
@@ -38064,10 +38006,8 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38064
38006
  }, null, 10, _hoisted_2$c))
38065
38007
  ])
38066
38008
  ]),
38067
- 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) "),
38068
38009
  createElementVNode("div", _hoisted_3$c, [
38069
38010
  createElementVNode("div", _hoisted_4$9, [
38070
- 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) "),
38071
38011
  createElementVNode("h2", _hoisted_5$8, [
38072
38012
  renderSlot(_ctx.$slots, "name", {}, () => [
38073
38013
  __props.name ? (openBlock(), createElementBlock(
@@ -38104,7 +38044,6 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38104
38044
  ))
38105
38045
  ])
38106
38046
  ]),
38107
- createCommentVNode(" #description \u63D2\u69FD\u8986\u76D6\u63CF\u8FF0;\u672A\u4F20 description \u65F6\u56DE\u843D\u5185\u7F6E\u9ED8\u8BA4\u63CF\u8FF0 "),
38108
38047
  createElementVNode("p", _hoisted_7$5, [
38109
38048
  renderSlot(_ctx.$slots, "description", {}, () => [
38110
38049
  createTextVNode(
@@ -38115,7 +38054,6 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38115
38054
  ])
38116
38055
  ])
38117
38056
  ]),
38118
- 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) "),
38119
38057
  _ctx.$slots.suggestions ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
38120
38058
  renderSlot(_ctx.$slots, "suggestions")
38121
38059
  ])) : createCommentVNode("v-if", true)
@@ -38193,7 +38131,6 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
38193
38131
  tabindex: item.disabled ? -1 : 0,
38194
38132
  onClick: ($event) => onSelect(item)
38195
38133
  }, [
38196
- createCommentVNode(" #default \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u6574\u5361 "),
38197
38134
  renderSlot(_ctx.$slots, "default", {
38198
38135
  item,
38199
38136
  index
@@ -38333,21 +38270,12 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
38333
38270
  );
38334
38271
  });
38335
38272
  return (_ctx, _cache) => {
38336
- return openBlock(), createElementBlock(
38337
- Fragment,
38338
- null,
38339
- [
38340
- 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 "),
38341
- createElementVNode("span", {
38342
- class: "fv-svg-icon",
38343
- style: normalizeStyle(sizeStyle.value),
38344
- "aria-hidden": "true",
38345
- innerHTML: rendered.value
38346
- }, null, 12, _hoisted_1$c)
38347
- ],
38348
- 2112
38349
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
38350
- );
38273
+ return openBlock(), createElementBlock("span", {
38274
+ class: "fv-svg-icon",
38275
+ style: normalizeStyle(sizeStyle.value),
38276
+ "aria-hidden": "true",
38277
+ innerHTML: rendered.value
38278
+ }, null, 12, _hoisted_1$c);
38351
38279
  };
38352
38280
  }
38353
38281
  });
@@ -38457,7 +38385,6 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38457
38385
  class: normalizeClass(["fv-files-card", [`is-${__props.fileType}`, `is-${__props.status}`, { "has-download": !!__props.onDownload }]])
38458
38386
  },
38459
38387
  [
38460
- createCommentVNode(" \u56FE\u7247\u6A21\u5F0F:#image \u63D2\u69FD > url \u7F29\u7565\u56FE > Picture \u5360\u4F4D "),
38461
38388
  isImage.value ? (openBlock(), createElementBlock(
38462
38389
  "div",
38463
38390
  {
@@ -38486,32 +38413,24 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38486
38413
  ],
38487
38414
  4
38488
38415
  /* STYLE */
38489
- )) : (openBlock(), createElementBlock(
38490
- Fragment,
38491
- { key: 1 },
38492
- [
38493
- createCommentVNode(" \u6587\u6863\u6A21\u5F0F:\u6309\u6269\u5C55\u540D\u6620\u5C04\u8BBE\u8BA1\u7A3F\u7C7B\u578B\u56FE\u6807 + \u540D\u79F0/\u5927\u5C0F "),
38494
- 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) "),
38495
- createVNode(unref(ElIcon), { class: "fv-files-card-icon" }, {
38496
- default: withCtx(() => [
38497
- createVNode(_sfc_main$c, {
38498
- name: docIconKind.value,
38499
- size: "1em"
38500
- }, null, 8, ["name"])
38501
- ]),
38502
- _: 1
38503
- /* STABLE */
38504
- })
38505
- ],
38506
- 2112
38507
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
38508
- )),
38416
+ )) : (openBlock(), createBlock(unref(ElIcon), {
38417
+ key: 1,
38418
+ class: "fv-files-card-icon"
38419
+ }, {
38420
+ default: withCtx(() => [
38421
+ createVNode(_sfc_main$c, {
38422
+ name: docIconKind.value,
38423
+ size: "1em"
38424
+ }, null, 8, ["name"])
38425
+ ]),
38426
+ _: 1
38427
+ /* STABLE */
38428
+ })),
38509
38429
  createElementVNode("div", _hoisted_2$a, [
38510
38430
  createElementVNode("div", {
38511
38431
  class: "fv-files-card-name",
38512
38432
  title: __props.name
38513
38433
  }, toDisplayString(__props.name), 9, _hoisted_3$a),
38514
- 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 "),
38515
38434
  __props.status === "error" && __props.errorText ? (openBlock(), createElementBlock("div", {
38516
38435
  key: 0,
38517
38436
  class: "fv-files-card-error",
@@ -38530,7 +38449,6 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38530
38449
  /* TEXT */
38531
38450
  )) : createCommentVNode("v-if", true)
38532
38451
  ]),
38533
- createCommentVNode(" \u72B6\u6001:loading \u65F6\u56FE\u6807\u4F4D\u6362 spinner(\u540D\u79F0\u884C\u65C1\u300C\u4E0A\u4F20\u4E2D\u2026\u300D\u6587\u6848\u8F85\u52A9) "),
38534
38452
  __props.status === "loading" ? (openBlock(), createBlock(unref(ElIcon), {
38535
38453
  key: 2,
38536
38454
  class: "fv-files-card-loading"
@@ -38541,7 +38459,6 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38541
38459
  _: 1
38542
38460
  /* STABLE */
38543
38461
  })) : createCommentVNode("v-if", true),
38544
- 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 "),
38545
38462
  createElementVNode("button", {
38546
38463
  type: "button",
38547
38464
  class: "fv-files-card-remove",
@@ -38745,7 +38662,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38745
38662
  __expose({ openSelect, retry });
38746
38663
  return (_ctx, _cache) => {
38747
38664
  return openBlock(), createElementBlock("div", _hoisted_1$a, [
38748
- createCommentVNode(" \u9690\u85CF input:accept \u8FC7\u6EE4 + count \u7531\u903B\u8F91\u5C42\u5224\u5B9A "),
38749
38665
  createElementVNode("input", {
38750
38666
  ref_key: "inputRef",
38751
38667
  ref: inputRef,
@@ -38755,7 +38671,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38755
38671
  multiple: "",
38756
38672
  onChange
38757
38673
  }, null, 40, _hoisted_2$9),
38758
- createCommentVNode(" \u89E6\u53D1\u6309\u94AE:\u56DE\u5F62\u9488;count \u6EE1\u6216\u6574\u4F53\u7981\u7528\u65F6\u7981\u7528(listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
38759
38674
  __props.layout !== "listOnly" ? (openBlock(), createElementBlock("button", {
38760
38675
  key: 0,
38761
38676
  type: "button",
@@ -38772,7 +38687,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38772
38687
  /* STABLE */
38773
38688
  })
38774
38689
  ], 10, _hoisted_3$9)) : createCommentVNode("v-if", true),
38775
- createCommentVNode(" \u6587\u4EF6\u5217\u8868:FilesCard;#list-thumb/#list-item \u8986\u76D6\u9879\u6E32\u67D3(triggerOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
38776
38690
  list.value.length && __props.layout !== "triggerOnly" ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
38777
38691
  (openBlock(true), createElementBlock(
38778
38692
  Fragment,
@@ -38809,7 +38723,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38809
38723
  key: "0"
38810
38724
  } : void 0
38811
38725
  ]), 1032, ["name", "size", "url", "file-type", "status", "error-text", "on-delete"]),
38812
- createCommentVNode(" error \u9879:\u91CD\u4F20\u6309\u94AE(\u5220\u9664\u5165\u53E3\u7531 FilesCard \u53F3\u4E0A\u6309\u94AE\u627F\u62C5,onDelete prop \u5DF2\u6CE8\u5165) "),
38813
38726
  item.status === "error" ? (openBlock(), createElementBlock("button", {
38814
38727
  key: 0,
38815
38728
  type: "button",
@@ -38832,7 +38745,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38832
38745
  /* KEYED_FRAGMENT */
38833
38746
  ))
38834
38747
  ])) : createCommentVNode("v-if", true),
38835
- createCommentVNode(" \u5185\u8054\u63D0\u793A(triggerOnly/listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
38836
38748
  __props.tip && __props.layout === "inline" ? (openBlock(), createElementBlock(
38837
38749
  "div",
38838
38750
  _hoisted_6$4,
@@ -38967,7 +38879,6 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
38967
38879
  key: grp.group ?? "__ungrouped__",
38968
38880
  class: "fv-conversations-group"
38969
38881
  }, [
38970
- createCommentVNode(" \u5206\u7EC4\u6807\u9898:\u6EDA\u52A8\u5438\u9876;#group-title \u8986\u76D6 "),
38971
38882
  grp.group ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
38972
38883
  renderSlot(_ctx.$slots, "group-title", {
38973
38884
  group: grp.group
@@ -38988,7 +38899,6 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
38988
38899
  class: normalizeClass(["fv-conversations-item", { "is-active": isActive(item), "is-disabled": !!item.disabled }]),
38989
38900
  onClick: ($event) => onItemClick(item)
38990
38901
  }, [
38991
- createCommentVNode(" \u884C\u5185\u5BB9:#item \u8986\u76D6\u6574\u884C(\u9ED8\u8BA4\u6E32\u67D3 label) "),
38992
38902
  createElementVNode("div", _hoisted_3$8, [
38993
38903
  renderSlot(_ctx.$slots, "item", {
38994
38904
  item,
@@ -39000,7 +38910,6 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
39000
38910
  }, toDisplayString(item.label), 9, _hoisted_4$5)
39001
38911
  ])
39002
38912
  ]),
39003
- 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 "),
39004
38913
  !item.disabled ? (openBlock(), createBlock(unref(ElDropdown), {
39005
38914
  key: 0,
39006
38915
  trigger: "click",
@@ -39181,73 +39090,63 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
39181
39090
  const SHAPES = INIT_D;
39182
39091
  return (_ctx, _cache) => {
39183
39092
  return openBlock(), createElementBlock(
39184
- Fragment,
39185
- null,
39093
+ "div",
39094
+ {
39095
+ class: normalizeClass(["fv-blob-halo", { "is-paused": __props.paused }]),
39096
+ style: normalizeStyle(rootStyle.value),
39097
+ "aria-hidden": "true"
39098
+ },
39186
39099
  [
39187
- 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 "),
39188
- createElementVNode(
39189
- "div",
39190
- {
39191
- class: normalizeClass(["fv-blob-halo", { "is-paused": __props.paused }]),
39192
- style: normalizeStyle(rootStyle.value),
39193
- "aria-hidden": "true"
39194
- },
39195
- [
39196
- (openBlock(), createElementBlock("svg", _hoisted_1$8, [
39197
- createCommentVNode(" \u9AD8\u5149\u5F84\u5411\u6E10\u53D8(\u7B2C 4 \u69FD\u4F4D\u4E13\u7528):\u4E2D\u5FC3\u5B9E\u8272 \u2192 \u5411\u5916\u900F\u660E\u6E10\u5927 "),
39198
- createElementVNode("defs", null, [
39199
- createElementVNode("radialGradient", {
39200
- id: highlightGradient.value.id
39201
- }, [
39202
- createElementVNode("stop", {
39203
- offset: "0%",
39204
- "stop-color": highlightGradient.value.color,
39205
- "stop-opacity": "1"
39206
- }, null, 8, _hoisted_3$7),
39207
- createElementVNode("stop", {
39208
- offset: "50%",
39209
- "stop-color": highlightGradient.value.color,
39210
- "stop-opacity": highlightGradient.value.midOpacity
39211
- }, null, 8, _hoisted_4$4),
39212
- createElementVNode("stop", {
39213
- offset: "100%",
39214
- "stop-color": highlightGradient.value.color,
39215
- "stop-opacity": "0"
39216
- }, null, 8, _hoisted_5$3)
39217
- ], 8, _hoisted_2$7)
39218
- ]),
39219
- (openBlock(true), createElementBlock(
39220
- Fragment,
39221
- null,
39222
- renderList(blobs.value, (b, i) => {
39223
- return openBlock(), createElementBlock(
39224
- "g",
39225
- {
39226
- key: `${b.slot}-${i}`,
39227
- class: normalizeClass(["fv-blob-halo-blob", [`is-${b.slot}`, { "is-alt": b.alt }]]),
39228
- style: normalizeStyle(b.style)
39229
- },
39230
- [
39231
- createElementVNode("path", {
39232
- d: unref(SHAPES)[b.shape],
39233
- style: normalizeStyle(b.pathStyle)
39234
- }, null, 12, _hoisted_6$3)
39235
- ],
39236
- 6
39237
- /* CLASS, STYLE */
39238
- );
39239
- }),
39240
- 128
39241
- /* KEYED_FRAGMENT */
39242
- ))
39243
- ]))
39244
- ],
39245
- 6
39246
- /* CLASS, STYLE */
39247
- )
39100
+ (openBlock(), createElementBlock("svg", _hoisted_1$8, [
39101
+ createElementVNode("defs", null, [
39102
+ createElementVNode("radialGradient", {
39103
+ id: highlightGradient.value.id
39104
+ }, [
39105
+ createElementVNode("stop", {
39106
+ offset: "0%",
39107
+ "stop-color": highlightGradient.value.color,
39108
+ "stop-opacity": "1"
39109
+ }, null, 8, _hoisted_3$7),
39110
+ createElementVNode("stop", {
39111
+ offset: "50%",
39112
+ "stop-color": highlightGradient.value.color,
39113
+ "stop-opacity": highlightGradient.value.midOpacity
39114
+ }, null, 8, _hoisted_4$4),
39115
+ createElementVNode("stop", {
39116
+ offset: "100%",
39117
+ "stop-color": highlightGradient.value.color,
39118
+ "stop-opacity": "0"
39119
+ }, null, 8, _hoisted_5$3)
39120
+ ], 8, _hoisted_2$7)
39121
+ ]),
39122
+ (openBlock(true), createElementBlock(
39123
+ Fragment,
39124
+ null,
39125
+ renderList(blobs.value, (b, i) => {
39126
+ return openBlock(), createElementBlock(
39127
+ "g",
39128
+ {
39129
+ key: `${b.slot}-${i}`,
39130
+ class: normalizeClass(["fv-blob-halo-blob", [`is-${b.slot}`, { "is-alt": b.alt }]]),
39131
+ style: normalizeStyle(b.style)
39132
+ },
39133
+ [
39134
+ createElementVNode("path", {
39135
+ d: unref(SHAPES)[b.shape],
39136
+ style: normalizeStyle(b.pathStyle)
39137
+ }, null, 12, _hoisted_6$3)
39138
+ ],
39139
+ 6
39140
+ /* CLASS, STYLE */
39141
+ );
39142
+ }),
39143
+ 128
39144
+ /* KEYED_FRAGMENT */
39145
+ ))
39146
+ ]))
39248
39147
  ],
39249
- 2112
39250
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
39148
+ 6
39149
+ /* CLASS, STYLE */
39251
39150
  );
39252
39151
  };
39253
39152
  }
@@ -39892,12 +39791,16 @@ const _hoisted_12$1 = {
39892
39791
  class: "fv-msg-error"
39893
39792
  };
39894
39793
  const _hoisted_13$1 = {
39794
+ key: 3,
39895
39795
  class: "fv-msg-pending",
39896
39796
  role: "status",
39897
39797
  "aria-live": "polite"
39898
39798
  };
39899
39799
  const _hoisted_14$1 = { class: "fv-msg-pending-text" };
39900
- const _hoisted_15$1 = { class: "fv-msg-content fv-msg-content-user" };
39800
+ const _hoisted_15$1 = {
39801
+ key: 5,
39802
+ class: "fv-msg-content fv-msg-content-user"
39803
+ };
39901
39804
  const _hoisted_16$1 = {
39902
39805
  key: 6,
39903
39806
  class: "fv-msg-actions"
@@ -39939,6 +39842,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
39939
39842
  isLast: { type: Boolean, required: false, default: false },
39940
39843
  followupStyle: { type: String, required: false, default: "list" },
39941
39844
  showActions: { type: Boolean, required: false, default: true },
39845
+ copyToClipboard: { type: Boolean, required: false, default: true },
39942
39846
  showBranchSwitch: { type: Boolean, required: false, default: true },
39943
39847
  showUserAvatar: { type: Boolean, required: false, default: false },
39944
39848
  showUserName: { type: Boolean, required: false, default: false },
@@ -40206,6 +40110,29 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40206
40110
  });
40207
40111
  const feedbackPending = ref(false);
40208
40112
  const feedbackJustSet = ref(null);
40113
+ let feedbackJustSetTimer = null;
40114
+ function armJustSetReset() {
40115
+ if (feedbackJustSetTimer !== null) window.clearTimeout(feedbackJustSetTimer);
40116
+ feedbackJustSetTimer = window.setTimeout(() => {
40117
+ feedbackJustSet.value = null;
40118
+ feedbackJustSetTimer = null;
40119
+ }, 800);
40120
+ }
40121
+ watch(
40122
+ () => props.message.status,
40123
+ (s, prev) => {
40124
+ if (prev === "done" && s !== "done" && feedbackJustSet.value) {
40125
+ feedbackJustSet.value = null;
40126
+ if (feedbackJustSetTimer !== null) {
40127
+ window.clearTimeout(feedbackJustSetTimer);
40128
+ feedbackJustSetTimer = null;
40129
+ }
40130
+ }
40131
+ }
40132
+ );
40133
+ onBeforeUnmount(() => {
40134
+ if (feedbackJustSetTimer !== null) window.clearTimeout(feedbackJustSetTimer);
40135
+ });
40209
40136
  const commentTextareaRef = ref(null);
40210
40137
  async function submitFeedback(next, comment) {
40211
40138
  const handler = props.feedbackHandler;
@@ -40215,12 +40142,17 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40215
40142
  try {
40216
40143
  props.message.feedback = next === "CLEAR" ? { action: null } : { action: next, ...comment ? { comment } : {} };
40217
40144
  feedbackJustSet.value = next === "CLEAR" ? null : next;
40145
+ if (next !== "CLEAR") armJustSetReset();
40218
40146
  const r = await handler(props.message, next, comment);
40219
40147
  if (typeof r === "string" && r) throw new Error(r);
40220
40148
  emit("feedback-change", props.message, next);
40221
40149
  } catch (e) {
40222
40150
  props.message.feedback = prev;
40223
40151
  feedbackJustSet.value = null;
40152
+ if (feedbackJustSetTimer !== null) {
40153
+ window.clearTimeout(feedbackJustSetTimer);
40154
+ feedbackJustSetTimer = null;
40155
+ }
40224
40156
  emit("feedback-error", e instanceof Error ? e.message : String(e));
40225
40157
  } finally {
40226
40158
  feedbackPending.value = false;
@@ -40291,16 +40223,17 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40291
40223
  const copied = ref(false);
40292
40224
  let copiedTimer = 0;
40293
40225
  function onCopy() {
40226
+ if (props.copyToClipboard && navigator.clipboard) {
40227
+ void navigator.clipboard.writeText(`${props.message.content}`).then(() => {
40228
+ copied.value = true;
40229
+ window.clearTimeout(copiedTimer);
40230
+ copiedTimer = window.setTimeout(() => {
40231
+ copied.value = false;
40232
+ }, COPIED_MS);
40233
+ }).catch(() => {
40234
+ });
40235
+ }
40294
40236
  emit("copy", props.message);
40295
- if (!navigator.clipboard) return;
40296
- void navigator.clipboard.writeText(`${props.message.content}`).then(() => {
40297
- copied.value = true;
40298
- window.clearTimeout(copiedTimer);
40299
- copiedTimer = window.setTimeout(() => {
40300
- copied.value = false;
40301
- }, COPIED_MS);
40302
- }).catch(() => {
40303
- });
40304
40237
  }
40305
40238
  onBeforeUnmount(() => window.clearTimeout(copiedTimer));
40306
40239
  function onRegenerate() {
@@ -40320,7 +40253,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40320
40253
  }]]),
40321
40254
  "data-message-id": __props.message.id
40322
40255
  }, [
40323
- 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) "),
40324
40256
  (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (openBlock(), createElementBlock(
40325
40257
  "div",
40326
40258
  {
@@ -40362,7 +40294,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40362
40294
  /* STYLE */
40363
40295
  )) : createCommentVNode("v-if", true),
40364
40296
  createElementVNode("div", _hoisted_4$3, [
40365
- 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 "),
40366
40297
  showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
40367
40298
  isUser.value ? renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
40368
40299
  createTextVNode(
@@ -40385,7 +40316,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40385
40316
  /* TEXT */
40386
40317
  )) : createCommentVNode("v-if", true)
40387
40318
  ])) : createCommentVNode("v-if", true),
40388
- 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) "),
40389
40319
  __props.message.files?.length ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
40390
40320
  renderSlot(_ctx.$slots, "message-files", {
40391
40321
  message: __props.message,
@@ -40439,7 +40369,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40439
40369
  ))
40440
40370
  ])
40441
40371
  ])) : createCommentVNode("v-if", true),
40442
- 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) "),
40443
40372
  previewVisible.value && previewSrcList.value.length ? (openBlock(), createBlock(unref(ElImageViewer), {
40444
40373
  key: 2,
40445
40374
  "url-list": previewSrcList.value,
@@ -40447,7 +40376,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40447
40376
  teleported: "",
40448
40377
  onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
40449
40378
  }, null, 8, ["url-list", "initial-index"])) : createCommentVNode("v-if", true),
40450
- 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 "),
40451
40379
  !isUser.value && (hasToolSteps.value || hasReasoning.value) ? (openBlock(), createBlock(_sfc_main$g, {
40452
40380
  key: 3,
40453
40381
  modelValue: toolsExpanded.value,
@@ -40464,21 +40392,13 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40464
40392
  collapsible: __props.collapsible,
40465
40393
  "show-duration": __props.showDuration,
40466
40394
  onTyping: _cache[1] || (_cache[1] = ($event) => emit("typing"))
40467
- }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (openBlock(), createElementBlock(
40468
- Fragment,
40469
- { key: 1 },
40470
- [
40471
- 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) "),
40472
- createVNode(_sfc_main$n, {
40473
- content: __props.message.reasoning ?? "",
40474
- "is-markdown": "",
40475
- typing: __props.typing,
40476
- onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40477
- }, null, 8, ["content", "typing"])
40478
- ],
40479
- 2112
40480
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40481
- )) : hasReasoning.value ? (openBlock(), createBlock(_sfc_main$o, {
40395
+ }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (openBlock(), createBlock(_sfc_main$n, {
40396
+ key: 1,
40397
+ content: __props.message.reasoning ?? "",
40398
+ "is-markdown": "",
40399
+ typing: __props.typing,
40400
+ onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40401
+ }, null, 8, ["content", "typing"])) : hasReasoning.value ? (openBlock(), createBlock(_sfc_main$o, {
40482
40402
  key: 2,
40483
40403
  content: __props.message.reasoning ?? ""
40484
40404
  }, null, 8, ["content"])) : createCommentVNode("v-if", true)
@@ -40498,7 +40418,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40498
40418
  key: "0"
40499
40419
  } : void 0
40500
40420
  ]), 1032, ["modelValue", "status", "hide-header", "class"])) : createCommentVNode("v-if", true),
40501
- 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 "),
40502
40421
  !isUser.value ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
40503
40422
  __props.message.status === "error" ? (openBlock(), createElementBlock(
40504
40423
  "span",
@@ -40520,54 +40439,34 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40520
40439
  key: 2,
40521
40440
  content: __props.message.content,
40522
40441
  "code-trigger-langs": __props.codeTriggerLangs
40523
- }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (openBlock(), createElementBlock(
40524
- Fragment,
40525
- { key: 3 },
40526
- [
40527
- 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) "),
40528
- createElementVNode("span", _hoisted_13$1, [
40529
- _cache[11] || (_cache[11] = createElementVNode(
40530
- "span",
40531
- {
40532
- class: "fv-msg-spinner",
40533
- "aria-hidden": "true"
40534
- },
40535
- null,
40536
- -1
40537
- /* CACHED */
40538
- )),
40539
- createElementVNode(
40540
- "span",
40541
- _hoisted_14$1,
40542
- toDisplayString(pendingPhrase.value),
40543
- 1
40544
- /* TEXT */
40545
- )
40546
- ])
40547
- ],
40548
- 2112
40549
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40550
- )) : createCommentVNode("v-if", true)
40551
- ])) : __props.message.content ? (openBlock(), createElementBlock(
40552
- Fragment,
40553
- { key: 5 },
40554
- [
40555
- 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) "),
40442
+ }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (openBlock(), createElementBlock("span", _hoisted_13$1, [
40443
+ _cache[11] || (_cache[11] = createElementVNode(
40444
+ "span",
40445
+ {
40446
+ class: "fv-msg-spinner",
40447
+ "aria-hidden": "true"
40448
+ },
40449
+ null,
40450
+ -1
40451
+ /* CACHED */
40452
+ )),
40556
40453
  createElementVNode(
40557
- "div",
40558
- _hoisted_15$1,
40559
- toDisplayString(__props.message.content),
40454
+ "span",
40455
+ _hoisted_14$1,
40456
+ toDisplayString(pendingPhrase.value),
40560
40457
  1
40561
40458
  /* TEXT */
40562
40459
  )
40563
- ],
40564
- 2112
40565
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40460
+ ])) : createCommentVNode("v-if", true)
40461
+ ])) : __props.message.content ? (openBlock(), createElementBlock(
40462
+ "div",
40463
+ _hoisted_15$1,
40464
+ toDisplayString(__props.message.content),
40465
+ 1
40466
+ /* TEXT */
40566
40467
  )) : createCommentVNode("v-if", true),
40567
- 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 "),
40568
40468
  actionsVisible.value || feedbackVisible.value && !isToolOnlyRow.value || __props.showBranchSwitch && __props.branch && __props.branch.count > 1 || messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock("div", _hoisted_16$1, [
40569
40469
  renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
40570
- 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 "),
40571
40470
  actionsVisible.value && isUser.value && userCopyVisible.value ? (openBlock(), createBlock(unref(ElTooltip), {
40572
40471
  key: 0,
40573
40472
  content: unref(dict).aiMessage.copy,
@@ -40640,7 +40539,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40640
40539
  _: 1
40641
40540
  /* STABLE */
40642
40541
  }, 8, ["content"])) : createCommentVNode("v-if", true),
40643
- 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 "),
40644
40542
  feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createElementBlock("span", _hoisted_20, [
40645
40543
  createVNode(unref(ElTooltip), {
40646
40544
  content: unref(dict).aiMessage.feedback.like,
@@ -40700,7 +40598,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40700
40598
  }, 8, ["content"])
40701
40599
  ])) : createCommentVNode("v-if", true)
40702
40600
  ]),
40703
- createCommentVNode(" \u5206\u652F\u5207\u6362:\u5144\u5F1F\u5206\u652F > 1 \u65F6 "),
40704
40601
  __props.showBranchSwitch && __props.branch && __props.branch.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_23, [
40705
40602
  createElementVNode("button", {
40706
40603
  type: "button",
@@ -40740,7 +40637,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40740
40637
  })
40741
40638
  ], 8, _hoisted_26)
40742
40639
  ])) : createCommentVNode("v-if", true),
40743
- 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 "),
40744
40640
  messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock(
40745
40641
  "span",
40746
40642
  _hoisted_27,
@@ -40749,7 +40645,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40749
40645
  /* TEXT */
40750
40646
  )) : createCommentVNode("v-if", true)
40751
40647
  ])) : createCommentVNode("v-if", true),
40752
- 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 "),
40753
40648
  followups.value.length && followupsVisible.value ? (openBlock(), createElementBlock("div", {
40754
40649
  key: 7,
40755
40650
  class: normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
@@ -40782,7 +40677,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40782
40677
  ))
40783
40678
  ], 10, _hoisted_28)) : createCommentVNode("v-if", true)
40784
40679
  ]),
40785
- 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 "),
40786
40680
  feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createBlock(unref(ElDialog), {
40787
40681
  key: 1,
40788
40682
  modelValue: dislikePopVisible.value,
@@ -40867,6 +40761,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
40867
40761
  showScrollButton: { type: Boolean, required: false, default: true },
40868
40762
  scrollButtonThreshold: { type: Number, required: false, default: 100 },
40869
40763
  showActions: { type: Boolean, required: false, default: true },
40764
+ copyToClipboard: { type: Boolean, required: false, default: true },
40870
40765
  showBranchSwitch: { type: Boolean, required: false, default: true },
40871
40766
  showUserAvatar: { type: Boolean, required: false, default: false },
40872
40767
  showUserName: { type: Boolean, required: false, default: false },
@@ -41055,7 +40950,6 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41055
40950
  __expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
41056
40951
  return (_ctx, _cache) => {
41057
40952
  return openBlock(), createElementBlock("div", _hoisted_1$6, [
41058
- 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) "),
41059
40953
  isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
41060
40954
  renderSlot(_ctx.$slots, "empty", {}, () => [
41061
40955
  createVNode(_sfc_main$e, {
@@ -41066,7 +40960,6 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41066
40960
  locale: __props.locale
41067
40961
  }, createSlots({
41068
40962
  suggestions: withCtx(() => [
41069
- createCommentVNode(" welcome-suggestions \u63D2\u69FD\u6574\u4F53\u66FF\u6362\u9ED8\u8BA4 Prompts \u6E32\u67D3 "),
41070
40963
  renderSlot(_ctx.$slots, "welcome-suggestions", {}, () => [
41071
40964
  __props.suggestions.length ? (openBlock(), createBlock(_sfc_main$d, {
41072
40965
  key: 0,
@@ -41105,153 +40998,145 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41105
40998
  ]), 1032, ["icon", "name", "description", "layout", "locale"])
41106
40999
  ])
41107
41000
  ])) : (openBlock(), createElementBlock(
41108
- Fragment,
41109
- { key: 1 },
41001
+ "div",
41002
+ {
41003
+ key: 1,
41004
+ ref_key: "scrollRef",
41005
+ ref: scrollRef,
41006
+ class: "fv-messages-scroll",
41007
+ onScrollPassive: onScroll
41008
+ },
41110
41009
  [
41111
- 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) "),
41112
- createElementVNode(
41113
- "div",
41114
- {
41115
- ref_key: "scrollRef",
41116
- ref: scrollRef,
41117
- class: "fv-messages-scroll",
41118
- onScrollPassive: onScroll
41119
- },
41120
- [
41121
- createElementVNode("div", _hoisted_3$5, [
41122
- (openBlock(true), createElementBlock(
41123
- Fragment,
41124
- null,
41125
- renderList(__props.messages, (m) => {
41126
- return openBlock(), createBlock(_sfc_main$7, {
41127
- key: m.id,
41128
- ref_for: true,
41129
- ref: (el) => setMessageRef(m.id, el),
41130
- message: m,
41131
- branch: branchInfo(m),
41132
- "is-last": m.id === lastMessageId.value,
41133
- "show-actions": __props.showActions,
41134
- "show-branch-switch": __props.showBranchSwitch,
41135
- "show-user-avatar": __props.showUserAvatar,
41136
- "show-user-name": __props.showUserName,
41137
- "show-assistant-avatar": __props.showAssistantAvatar,
41138
- "show-assistant-name": __props.showAssistantName,
41139
- "user-avatar": __props.userAvatar,
41140
- "assistant-avatar": __props.assistantAvatar,
41141
- "assistant-avatar-scale": __props.assistantAvatarScale,
41142
- "avatar-circle": __props.avatarCircle,
41143
- "user-name": __props.userName,
41144
- "assistant-name": __props.assistantName,
41145
- typing: __props.typing,
41146
- "auto-collapse": __props.autoCollapse,
41147
- collapsible: __props.collapsible,
41148
- "show-duration": __props.showDuration,
41149
- "show-time": __props.showTime,
41150
- "time-format": __props.timeFormat,
41151
- "followup-style": __props.followupStyle,
41152
- "code-trigger-langs": __props.codeTriggerLangs,
41153
- "resolve-file-url": __props.resolveFileUrl,
41154
- "feedback-handler": __props.feedbackHandler,
41155
- onTyping: onChildTyping,
41156
- onCopy,
41157
- onRegenerate,
41158
- onBranchChange: onBranch,
41159
- onFollowupSelect: onFollowup,
41160
- onFileClick,
41161
- onFeedbackChange,
41162
- onFeedbackError
41163
- }, createSlots({
41164
- _: 2
41165
- /* DYNAMIC */
41166
- }, [
41167
- _ctx.$slots["message-avatar"] ? {
41168
- name: "message-avatar",
41169
- fn: withCtx((scope) => [
41170
- renderSlot(_ctx.$slots, "message-avatar", mergeProps({ ref_for: true }, scope))
41171
- ]),
41172
- key: "0"
41173
- } : void 0,
41174
- _ctx.$slots["message-actions"] ? {
41175
- name: "message-actions",
41176
- fn: withCtx((scope) => [
41177
- renderSlot(_ctx.$slots, "message-actions", mergeProps({ ref_for: true }, scope))
41178
- ]),
41179
- key: "1"
41180
- } : void 0,
41181
- _ctx.$slots["user-avatar"] ? {
41182
- name: "user-avatar",
41183
- fn: withCtx(() => [
41184
- renderSlot(_ctx.$slots, "user-avatar")
41185
- ]),
41186
- key: "2"
41187
- } : void 0,
41188
- _ctx.$slots["assistant-avatar"] ? {
41189
- name: "assistant-avatar",
41190
- fn: withCtx((scope) => [
41191
- renderSlot(_ctx.$slots, "assistant-avatar", mergeProps({ ref_for: true }, scope))
41192
- ]),
41193
- key: "3"
41194
- } : void 0,
41195
- _ctx.$slots["user-name"] ? {
41196
- name: "user-name",
41197
- fn: withCtx((scope) => [
41198
- renderSlot(_ctx.$slots, "user-name", mergeProps({ ref_for: true }, scope))
41199
- ]),
41200
- key: "4"
41201
- } : void 0,
41202
- _ctx.$slots["assistant-name"] ? {
41203
- name: "assistant-name",
41204
- fn: withCtx((scope) => [
41205
- renderSlot(_ctx.$slots, "assistant-name", mergeProps({ ref_for: true }, scope))
41206
- ]),
41207
- key: "5"
41208
- } : void 0
41209
- ]), 1032, ["message", "branch", "is-last", "show-actions", "show-branch-switch", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "followup-style", "code-trigger-langs", "resolve-file-url", "feedback-handler"]);
41210
- }),
41211
- 128
41212
- /* KEYED_FRAGMENT */
41213
- )),
41214
- 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 "),
41215
- createVNode(Transition, { name: "fv-messages-back-fade" }, {
41216
- default: withCtx(() => [
41217
- renderSlot(_ctx.$slots, "scroll-button", {
41218
- scrollToBottom,
41219
- awayFromBottom: isAwayFromBottom.value
41220
- }, () => [
41221
- __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (openBlock(), createBlock(unref(ElButton), {
41222
- key: 0,
41223
- class: "fv-messages-back",
41224
- circle: "",
41225
- "aria-label": unref(dict).scroll.toBottom,
41226
- onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41227
- }, {
41010
+ createElementVNode("div", _hoisted_3$5, [
41011
+ (openBlock(true), createElementBlock(
41012
+ Fragment,
41013
+ null,
41014
+ renderList(__props.messages, (m) => {
41015
+ return openBlock(), createBlock(_sfc_main$7, {
41016
+ key: m.id,
41017
+ ref_for: true,
41018
+ ref: (el) => setMessageRef(m.id, el),
41019
+ message: m,
41020
+ branch: branchInfo(m),
41021
+ "is-last": m.id === lastMessageId.value,
41022
+ "show-actions": __props.showActions,
41023
+ "copy-to-clipboard": __props.copyToClipboard,
41024
+ "show-branch-switch": __props.showBranchSwitch,
41025
+ "show-user-avatar": __props.showUserAvatar,
41026
+ "show-user-name": __props.showUserName,
41027
+ "show-assistant-avatar": __props.showAssistantAvatar,
41028
+ "show-assistant-name": __props.showAssistantName,
41029
+ "user-avatar": __props.userAvatar,
41030
+ "assistant-avatar": __props.assistantAvatar,
41031
+ "assistant-avatar-scale": __props.assistantAvatarScale,
41032
+ "avatar-circle": __props.avatarCircle,
41033
+ "user-name": __props.userName,
41034
+ "assistant-name": __props.assistantName,
41035
+ typing: __props.typing,
41036
+ "auto-collapse": __props.autoCollapse,
41037
+ collapsible: __props.collapsible,
41038
+ "show-duration": __props.showDuration,
41039
+ "show-time": __props.showTime,
41040
+ "time-format": __props.timeFormat,
41041
+ "followup-style": __props.followupStyle,
41042
+ "code-trigger-langs": __props.codeTriggerLangs,
41043
+ "resolve-file-url": __props.resolveFileUrl,
41044
+ "feedback-handler": __props.feedbackHandler,
41045
+ onTyping: onChildTyping,
41046
+ onCopy,
41047
+ onRegenerate,
41048
+ onBranchChange: onBranch,
41049
+ onFollowupSelect: onFollowup,
41050
+ onFileClick,
41051
+ onFeedbackChange,
41052
+ onFeedbackError
41053
+ }, createSlots({
41054
+ _: 2
41055
+ /* DYNAMIC */
41056
+ }, [
41057
+ _ctx.$slots["message-avatar"] ? {
41058
+ name: "message-avatar",
41059
+ fn: withCtx((scope) => [
41060
+ renderSlot(_ctx.$slots, "message-avatar", mergeProps({ ref_for: true }, scope))
41061
+ ]),
41062
+ key: "0"
41063
+ } : void 0,
41064
+ _ctx.$slots["message-actions"] ? {
41065
+ name: "message-actions",
41066
+ fn: withCtx((scope) => [
41067
+ renderSlot(_ctx.$slots, "message-actions", mergeProps({ ref_for: true }, scope))
41068
+ ]),
41069
+ key: "1"
41070
+ } : void 0,
41071
+ _ctx.$slots["user-avatar"] ? {
41072
+ name: "user-avatar",
41073
+ fn: withCtx(() => [
41074
+ renderSlot(_ctx.$slots, "user-avatar")
41075
+ ]),
41076
+ key: "2"
41077
+ } : void 0,
41078
+ _ctx.$slots["assistant-avatar"] ? {
41079
+ name: "assistant-avatar",
41080
+ fn: withCtx((scope) => [
41081
+ renderSlot(_ctx.$slots, "assistant-avatar", mergeProps({ ref_for: true }, scope))
41082
+ ]),
41083
+ key: "3"
41084
+ } : void 0,
41085
+ _ctx.$slots["user-name"] ? {
41086
+ name: "user-name",
41087
+ fn: withCtx((scope) => [
41088
+ renderSlot(_ctx.$slots, "user-name", mergeProps({ ref_for: true }, scope))
41089
+ ]),
41090
+ key: "4"
41091
+ } : void 0,
41092
+ _ctx.$slots["assistant-name"] ? {
41093
+ name: "assistant-name",
41094
+ fn: withCtx((scope) => [
41095
+ renderSlot(_ctx.$slots, "assistant-name", mergeProps({ ref_for: true }, scope))
41096
+ ]),
41097
+ key: "5"
41098
+ } : void 0
41099
+ ]), 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"]);
41100
+ }),
41101
+ 128
41102
+ /* KEYED_FRAGMENT */
41103
+ )),
41104
+ createVNode(Transition, { name: "fv-messages-back-fade" }, {
41105
+ default: withCtx(() => [
41106
+ renderSlot(_ctx.$slots, "scroll-button", {
41107
+ scrollToBottom,
41108
+ awayFromBottom: isAwayFromBottom.value
41109
+ }, () => [
41110
+ __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (openBlock(), createBlock(unref(ElButton), {
41111
+ key: 0,
41112
+ class: "fv-messages-back",
41113
+ circle: "",
41114
+ "aria-label": unref(dict).scroll.toBottom,
41115
+ onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41116
+ }, {
41117
+ default: withCtx(() => [
41118
+ createVNode(unref(ElIcon), { class: "fv-messages-back-icon" }, {
41228
41119
  default: withCtx(() => [
41229
- createVNode(unref(ElIcon), { class: "fv-messages-back-icon" }, {
41230
- default: withCtx(() => [
41231
- renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41232
- createVNode(unref(Bottom))
41233
- ])
41234
- ]),
41235
- _: 3
41236
- /* FORWARDED */
41237
- })
41120
+ renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41121
+ createVNode(unref(Bottom))
41122
+ ])
41238
41123
  ]),
41239
41124
  _: 3
41240
41125
  /* FORWARDED */
41241
- }, 8, ["aria-label"])) : createCommentVNode("v-if", true)
41242
- ])
41243
- ]),
41244
- _: 3
41245
- /* FORWARDED */
41246
- })
41247
- ])
41248
- ],
41249
- 544
41250
- /* NEED_HYDRATION, NEED_PATCH */
41251
- )
41126
+ })
41127
+ ]),
41128
+ _: 3
41129
+ /* FORWARDED */
41130
+ }, 8, ["aria-label"])) : createCommentVNode("v-if", true)
41131
+ ])
41132
+ ]),
41133
+ _: 3
41134
+ /* FORWARDED */
41135
+ })
41136
+ ])
41252
41137
  ],
41253
- 2112
41254
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41138
+ 544
41139
+ /* NEED_HYDRATION, NEED_PATCH */
41255
41140
  ))
41256
41141
  ]);
41257
41142
  };
@@ -41364,139 +41249,110 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
41364
41249
  }
41365
41250
  __expose({ open, close });
41366
41251
  return (_ctx, _cache) => {
41367
- return openBlock(), createElementBlock(
41368
- Fragment,
41369
- null,
41252
+ return visible.value && current.value ? (openBlock(), createElementBlock(
41253
+ "div",
41254
+ {
41255
+ key: 0,
41256
+ class: "fv-artifacts",
41257
+ style: normalizeStyle({
41258
+ "--fv-artifacts-width": __props.width,
41259
+ "--fv-artifacts-min-width": __props.minWidth,
41260
+ "--fv-artifacts-max-width": __props.maxWidth
41261
+ })
41262
+ },
41370
41263
  [
41371
- 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 "),
41372
- visible.value && current.value ? (openBlock(), createElementBlock(
41373
- "div",
41374
- {
41375
- key: 0,
41376
- class: "fv-artifacts",
41377
- style: normalizeStyle({
41378
- "--fv-artifacts-width": __props.width,
41379
- "--fv-artifacts-min-width": __props.minWidth,
41380
- "--fv-artifacts-max-width": __props.maxWidth
41381
- })
41382
- },
41383
- [
41384
- createCommentVNode(" tab \u5207\u6362\u680F "),
41385
- createElementVNode("div", _hoisted_1$5, [
41386
- (openBlock(true), createElementBlock(
41387
- Fragment,
41388
- null,
41389
- renderList(__props.artifacts, (a) => {
41390
- return openBlock(), createElementBlock("button", {
41391
- key: a.key,
41392
- type: "button",
41393
- class: normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41394
- onClick: ($event) => select(a.key)
41395
- }, toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41396
- }),
41397
- 128
41398
- /* KEYED_FRAGMENT */
41399
- )),
41400
- _cache[0] || (_cache[0] = createElementVNode(
41401
- "span",
41402
- { class: "fv-artifacts-spacer" },
41403
- null,
41404
- -1
41405
- /* CACHED */
41406
- )),
41407
- createVNode(unref(ElTooltip), {
41408
- content: unref(dict).aiArtifacts.copy,
41409
- placement: "top"
41410
- }, {
41411
- default: withCtx(() => [
41412
- createVNode(unref(ElButton), {
41413
- text: "",
41414
- size: "small",
41415
- "aria-label": unref(dict).aiArtifacts.copy,
41416
- onClick: onCopy
41417
- }, {
41418
- default: withCtx(() => [
41419
- createVNode(unref(ElIcon), null, {
41420
- default: withCtx(() => [
41421
- createVNode(unref(CopyDocument))
41422
- ]),
41423
- _: 1
41424
- /* STABLE */
41425
- })
41426
- ]),
41427
- _: 1
41428
- /* STABLE */
41429
- }, 8, ["aria-label"])
41430
- ]),
41431
- _: 1
41432
- /* STABLE */
41433
- }, 8, ["content"]),
41434
- createVNode(unref(ElTooltip), {
41435
- content: unref(dict).aiArtifacts.download,
41436
- placement: "top"
41264
+ createElementVNode("div", _hoisted_1$5, [
41265
+ (openBlock(true), createElementBlock(
41266
+ Fragment,
41267
+ null,
41268
+ renderList(__props.artifacts, (a) => {
41269
+ return openBlock(), createElementBlock("button", {
41270
+ key: a.key,
41271
+ type: "button",
41272
+ class: normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41273
+ onClick: ($event) => select(a.key)
41274
+ }, toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41275
+ }),
41276
+ 128
41277
+ /* KEYED_FRAGMENT */
41278
+ )),
41279
+ _cache[0] || (_cache[0] = createElementVNode(
41280
+ "span",
41281
+ { class: "fv-artifacts-spacer" },
41282
+ null,
41283
+ -1
41284
+ /* CACHED */
41285
+ )),
41286
+ createVNode(unref(ElTooltip), {
41287
+ content: unref(dict).aiArtifacts.copy,
41288
+ placement: "top"
41289
+ }, {
41290
+ default: withCtx(() => [
41291
+ createVNode(unref(ElButton), {
41292
+ text: "",
41293
+ size: "small",
41294
+ "aria-label": unref(dict).aiArtifacts.copy,
41295
+ onClick: onCopy
41437
41296
  }, {
41438
41297
  default: withCtx(() => [
41439
- createVNode(unref(ElButton), {
41440
- text: "",
41441
- size: "small",
41442
- "aria-label": unref(dict).aiArtifacts.download,
41443
- onClick: onDownload
41444
- }, {
41298
+ createVNode(unref(ElIcon), null, {
41445
41299
  default: withCtx(() => [
41446
- createVNode(unref(ElIcon), null, {
41447
- default: withCtx(() => [
41448
- createVNode(unref(Download))
41449
- ]),
41450
- _: 1
41451
- /* STABLE */
41452
- })
41300
+ createVNode(unref(CopyDocument))
41453
41301
  ]),
41454
41302
  _: 1
41455
41303
  /* STABLE */
41456
- }, 8, ["aria-label"])
41304
+ })
41457
41305
  ]),
41458
41306
  _: 1
41459
41307
  /* STABLE */
41460
- }, 8, ["content"]),
41461
- current.value?.type === "html" ? (openBlock(), createBlock(unref(ElTooltip), {
41462
- key: 0,
41463
- content: unref(dict).aiArtifacts.fullscreen,
41464
- placement: "top"
41308
+ }, 8, ["aria-label"])
41309
+ ]),
41310
+ _: 1
41311
+ /* STABLE */
41312
+ }, 8, ["content"]),
41313
+ createVNode(unref(ElTooltip), {
41314
+ content: unref(dict).aiArtifacts.download,
41315
+ placement: "top"
41316
+ }, {
41317
+ default: withCtx(() => [
41318
+ createVNode(unref(ElButton), {
41319
+ text: "",
41320
+ size: "small",
41321
+ "aria-label": unref(dict).aiArtifacts.download,
41322
+ onClick: onDownload
41465
41323
  }, {
41466
41324
  default: withCtx(() => [
41467
- createVNode(unref(ElButton), {
41468
- text: "",
41469
- size: "small",
41470
- "aria-label": unref(dict).aiArtifacts.fullscreen,
41471
- onClick: onFullscreen
41472
- }, {
41325
+ createVNode(unref(ElIcon), null, {
41473
41326
  default: withCtx(() => [
41474
- createVNode(unref(ElIcon), null, {
41475
- default: withCtx(() => [
41476
- createVNode(unref(FullScreen))
41477
- ]),
41478
- _: 1
41479
- /* STABLE */
41480
- })
41327
+ createVNode(unref(Download))
41481
41328
  ]),
41482
41329
  _: 1
41483
41330
  /* STABLE */
41484
- }, 8, ["aria-label"])
41331
+ })
41485
41332
  ]),
41486
41333
  _: 1
41487
41334
  /* STABLE */
41488
- }, 8, ["content"])) : createCommentVNode("v-if", true),
41335
+ }, 8, ["aria-label"])
41336
+ ]),
41337
+ _: 1
41338
+ /* STABLE */
41339
+ }, 8, ["content"]),
41340
+ current.value?.type === "html" ? (openBlock(), createBlock(unref(ElTooltip), {
41341
+ key: 0,
41342
+ content: unref(dict).aiArtifacts.fullscreen,
41343
+ placement: "top"
41344
+ }, {
41345
+ default: withCtx(() => [
41489
41346
  createVNode(unref(ElButton), {
41490
41347
  text: "",
41491
41348
  size: "small",
41492
- class: "fv-artifacts-close",
41493
- "aria-label": unref(dict).aiArtifacts.close,
41494
- onClick: onClose
41349
+ "aria-label": unref(dict).aiArtifacts.fullscreen,
41350
+ onClick: onFullscreen
41495
41351
  }, {
41496
41352
  default: withCtx(() => [
41497
41353
  createVNode(unref(ElIcon), null, {
41498
41354
  default: withCtx(() => [
41499
- createVNode(unref(Close))
41355
+ createVNode(unref(FullScreen))
41500
41356
  ]),
41501
41357
  _: 1
41502
41358
  /* STABLE */
@@ -41506,23 +41362,41 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
41506
41362
  /* STABLE */
41507
41363
  }, 8, ["aria-label"])
41508
41364
  ]),
41509
- createCommentVNode(" iframe \u6C99\u7BB1\u9884\u89C8 "),
41510
- createElementVNode("iframe", {
41511
- ref_key: "iframeRef",
41512
- ref: iframeRef,
41513
- class: "fv-artifacts-frame",
41514
- srcdoc: srcdoc.value,
41515
- sandbox: "allow-scripts allow-downloads",
41516
- title: "artifact-preview"
41517
- }, null, 8, _hoisted_3$4)
41518
- ],
41519
- 4
41520
- /* STYLE */
41521
- )) : createCommentVNode("v-if", true)
41365
+ _: 1
41366
+ /* STABLE */
41367
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
41368
+ createVNode(unref(ElButton), {
41369
+ text: "",
41370
+ size: "small",
41371
+ class: "fv-artifacts-close",
41372
+ "aria-label": unref(dict).aiArtifacts.close,
41373
+ onClick: onClose
41374
+ }, {
41375
+ default: withCtx(() => [
41376
+ createVNode(unref(ElIcon), null, {
41377
+ default: withCtx(() => [
41378
+ createVNode(unref(Close))
41379
+ ]),
41380
+ _: 1
41381
+ /* STABLE */
41382
+ })
41383
+ ]),
41384
+ _: 1
41385
+ /* STABLE */
41386
+ }, 8, ["aria-label"])
41387
+ ]),
41388
+ createElementVNode("iframe", {
41389
+ ref_key: "iframeRef",
41390
+ ref: iframeRef,
41391
+ class: "fv-artifacts-frame",
41392
+ srcdoc: srcdoc.value,
41393
+ sandbox: "allow-scripts allow-downloads",
41394
+ title: "artifact-preview"
41395
+ }, null, 8, _hoisted_3$4)
41522
41396
  ],
41523
- 2112
41524
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41525
- );
41397
+ 4
41398
+ /* STYLE */
41399
+ )) : createCommentVNode("v-if", true);
41526
41400
  };
41527
41401
  }
41528
41402
  });
@@ -41558,6 +41432,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41558
41432
  showScrollButton: { type: Boolean, required: false, default: true },
41559
41433
  scrollButtonThreshold: { type: Number, required: false, default: 100 },
41560
41434
  scrollThreshold: { type: Number, required: false, default: 100 },
41435
+ copyToClipboard: { type: Boolean, required: false, default: true },
41561
41436
  showUserAvatar: { type: Boolean, required: false, default: false },
41562
41437
  showUserName: { type: Boolean, required: false, default: false },
41563
41438
  showAssistantAvatar: { type: Boolean, required: false, default: true },
@@ -41936,7 +41811,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41936
41811
  class: normalizeClass(["fv-ai-chat", { "is-dark": isDark.value, "is-center-welcome": isCenterWelcome.value, "is-empty": isEmpty.value }])
41937
41812
  },
41938
41813
  [
41939
- createCommentVNode(" \u9876\u680F:\u6807\u9898 + \u6A21\u578B\u9009\u62E9\u5668(models \u6709\u503C\u65F6 multiple) "),
41940
41814
  __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
41941
41815
  createElementVNode(
41942
41816
  "div",
@@ -41974,7 +41848,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41974
41848
  /* STABLE */
41975
41849
  }, 8, ["modelValue", "placeholder"])) : createCommentVNode("v-if", true)
41976
41850
  ])) : createCommentVNode("v-if", true),
41977
- createCommentVNode(" \u6D88\u606F\u533A:\u7A7A\u65F6 Welcome + Prompts(AiMessages \u5185\u7F6E);\u5F00\u542F artifacts \u65F6\u53F3\u4FA7\u62FC\u9884\u89C8\u9762\u677F "),
41978
41851
  createElementVNode("div", _hoisted_3$3, [
41979
41852
  createVNode(_sfc_main$6, {
41980
41853
  ref_key: "messagesRef",
@@ -41989,6 +41862,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41989
41862
  "show-scroll-button": __props.showScrollButton,
41990
41863
  "scroll-button-threshold": __props.scrollButtonThreshold,
41991
41864
  "scroll-threshold": __props.scrollThreshold,
41865
+ "copy-to-clipboard": __props.copyToClipboard,
41992
41866
  "show-user-avatar": __props.showUserAvatar,
41993
41867
  "show-user-name": __props.showUserName,
41994
41868
  "show-assistant-avatar": __props.showAssistantAvatar,
@@ -42112,7 +41986,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42112
41986
  ]),
42113
41987
  key: "12"
42114
41988
  } : void 0
42115
- ]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
41989
+ ]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "copy-to-clipboard", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
42116
41990
  artifactsOn.value && artifacts.value.length ? (openBlock(), createBlock(_sfc_main$5, {
42117
41991
  key: 0,
42118
41992
  artifacts: artifacts.value,
@@ -42124,7 +41998,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42124
41998
  onChange: onArtifactChange
42125
41999
  }, null, 8, ["artifacts", "active-key", "width", "min-width", "max-width"])) : createCommentVNode("v-if", true)
42126
42000
  ]),
42127
- 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) "),
42128
42001
  createElementVNode("div", _hoisted_4$2, [
42129
42002
  createVNode(_sfc_main$j, {
42130
42003
  placeholder: __props.placeholder,
@@ -42554,7 +42427,10 @@ const _hoisted_8$1 = {
42554
42427
  key: 0,
42555
42428
  class: "fv-ai-sidebar-loading-tip"
42556
42429
  };
42557
- const _hoisted_9$1 = { class: "fv-ai-sidebar is-collapsed" };
42430
+ const _hoisted_9$1 = {
42431
+ key: 1,
42432
+ class: "fv-ai-sidebar is-collapsed"
42433
+ };
42558
42434
  var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42559
42435
  ...{ name: "FvAiSessionSidebar" },
42560
42436
  __name: "index",
@@ -42741,62 +42617,170 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42741
42617
  });
42742
42618
  onMounted(reload);
42743
42619
  return (_ctx, _cache) => {
42744
- return openBlock(), createElementBlock(
42745
- Fragment,
42746
- null,
42747
- [
42748
- createCommentVNode(" \u5C55\u5F00\u6001:\u5B8C\u6574\u4FA7\u680F "),
42749
- !collapsed.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
42750
- 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 "),
42751
- createElementVNode("div", _hoisted_2$2, [
42752
- renderSlot(_ctx.$slots, "brand", {}, () => [
42753
- createElementVNode("div", _hoisted_3$2, [
42754
- __props.brandIcon ? (openBlock(), createElementBlock("img", {
42755
- key: 0,
42756
- class: "fv-ai-sidebar-brand-badge-img",
42757
- src: __props.brandIcon,
42758
- alt: __props.brandName
42759
- }, null, 8, _hoisted_4$1)) : createCommentVNode("v-if", true)
42760
- ]),
42761
- createElementVNode(
42762
- "span",
42763
- _hoisted_5$1,
42764
- toDisplayString(__props.brandName),
42765
- 1
42766
- /* TEXT */
42767
- ),
42768
- createVNode(unref(ElTooltip), {
42769
- content: unref(dict).sessionSidebar.collapse,
42770
- placement: "bottom",
42771
- "show-after": 300
42772
- }, {
42773
- default: withCtx(() => [
42774
- createElementVNode("button", {
42775
- class: "fv-ai-sidebar-collapse",
42776
- type: "button",
42777
- onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42778
- }, [
42779
- createVNode(_sfc_main$c, {
42780
- name: "sidebar",
42781
- size: 16
42782
- })
42783
- ])
42784
- ]),
42785
- _: 1
42786
- /* STABLE */
42787
- }, 8, ["content"])
42788
- ])
42620
+ return !collapsed.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
42621
+ createElementVNode("div", _hoisted_2$2, [
42622
+ renderSlot(_ctx.$slots, "brand", {}, () => [
42623
+ createElementVNode("div", _hoisted_3$2, [
42624
+ __props.brandIcon ? (openBlock(), createElementBlock("img", {
42625
+ key: 0,
42626
+ class: "fv-ai-sidebar-brand-badge-img",
42627
+ src: __props.brandIcon,
42628
+ alt: __props.brandName
42629
+ }, null, 8, _hoisted_4$1)) : createCommentVNode("v-if", true)
42789
42630
  ]),
42790
- 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) "),
42791
- createElementVNode("button", {
42792
- class: "fv-ai-sidebar-new-chat",
42793
- type: "button",
42794
- onClick: onCreate
42795
- }, [
42796
- renderSlot(_ctx.$slots, "new-chat", {}, () => [
42797
- createVNode(unref(ElIcon), null, {
42631
+ createElementVNode(
42632
+ "span",
42633
+ _hoisted_5$1,
42634
+ toDisplayString(__props.brandName),
42635
+ 1
42636
+ /* TEXT */
42637
+ ),
42638
+ createVNode(unref(ElTooltip), {
42639
+ content: unref(dict).sessionSidebar.collapse,
42640
+ placement: "bottom",
42641
+ "show-after": 300
42642
+ }, {
42643
+ default: withCtx(() => [
42644
+ createElementVNode("button", {
42645
+ class: "fv-ai-sidebar-collapse",
42646
+ type: "button",
42647
+ onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42648
+ }, [
42649
+ createVNode(_sfc_main$c, {
42650
+ name: "sidebar",
42651
+ size: 16
42652
+ })
42653
+ ])
42654
+ ]),
42655
+ _: 1
42656
+ /* STABLE */
42657
+ }, 8, ["content"])
42658
+ ])
42659
+ ]),
42660
+ createElementVNode("button", {
42661
+ class: "fv-ai-sidebar-new-chat",
42662
+ type: "button",
42663
+ onClick: onCreate
42664
+ }, [
42665
+ renderSlot(_ctx.$slots, "new-chat", {}, () => [
42666
+ createVNode(unref(ElIcon), null, {
42667
+ default: withCtx(() => [
42668
+ createVNode(unref(Plus))
42669
+ ]),
42670
+ _: 1
42671
+ /* STABLE */
42672
+ }),
42673
+ createElementVNode(
42674
+ "span",
42675
+ null,
42676
+ toDisplayString(unref(dict).sessionSidebar.newChat),
42677
+ 1
42678
+ /* TEXT */
42679
+ )
42680
+ ])
42681
+ ]),
42682
+ archiveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
42683
+ createVNode(unref(ElSegmented), {
42684
+ modelValue: statusFilter.value,
42685
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42686
+ options: statusOptions.value,
42687
+ onChange: _cache[2] || (_cache[2] = () => reload())
42688
+ }, null, 8, ["modelValue", "options"])
42689
+ ])) : createCommentVNode("v-if", true),
42690
+ __props.searchable ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
42691
+ createVNode(unref(ElInput), {
42692
+ ref_key: "searchInputRef",
42693
+ ref: searchInputRef,
42694
+ modelValue: keyword.value,
42695
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42696
+ placeholder: unref(dict).sessionSidebar.searchPlaceholder,
42697
+ clearable: "",
42698
+ "prefix-icon": unref(Search)
42699
+ }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42700
+ ])) : createCommentVNode("v-if", true),
42701
+ createVNode(
42702
+ unref(ElScrollbar),
42703
+ {
42704
+ ref_key: "listScrollbarRef",
42705
+ ref: listScrollbarRef,
42706
+ class: "fv-ai-sidebar-list",
42707
+ onScroll: onListScroll
42708
+ },
42709
+ {
42710
+ default: withCtx(() => [
42711
+ createVNode(_sfc_main$9, {
42712
+ ref_key: "conversationsRef",
42713
+ ref: conversationsRef,
42714
+ items: conversationItems.value,
42715
+ active: __props.activeId ?? void 0,
42716
+ loading: loading.value,
42717
+ "has-more": hasMore.value,
42718
+ locale: __props.locale,
42719
+ "onUpdate:active": onSelect,
42720
+ onMenuCommand
42721
+ }, {
42722
+ menu: withCtx(({ item }) => [
42723
+ renderSlot(_ctx.$slots, "menu", { item }, () => [
42724
+ createVNode(unref(ElDropdownItem), { command: "prompt-rename" }, {
42725
+ default: withCtx(() => [
42726
+ createTextVNode(
42727
+ toDisplayString(unref(dict).conversations.rename),
42728
+ 1
42729
+ /* TEXT */
42730
+ )
42731
+ ]),
42732
+ _: 1
42733
+ /* STABLE */
42734
+ }),
42735
+ archiveEnabled.value ? (openBlock(), createBlock(
42736
+ unref(ElDropdownItem),
42737
+ {
42738
+ key: 0,
42739
+ command: "archive"
42740
+ },
42741
+ {
42742
+ default: withCtx(() => [
42743
+ createTextVNode(
42744
+ toDisplayString(isArchived(String(item.key)) ? unref(dict).sessionSidebar.restore : unref(dict).sessionSidebar.archive),
42745
+ 1
42746
+ /* TEXT */
42747
+ )
42748
+ ]),
42749
+ _: 2
42750
+ /* DYNAMIC */
42751
+ },
42752
+ 1024
42753
+ /* DYNAMIC_SLOTS */
42754
+ )) : createCommentVNode("v-if", true),
42755
+ createVNode(unref(ElDropdownItem), {
42756
+ command: "prompt-delete",
42757
+ divided: ""
42758
+ }, {
42759
+ default: withCtx(() => [
42760
+ createTextVNode(
42761
+ toDisplayString(unref(dict).conversations.delete),
42762
+ 1
42763
+ /* TEXT */
42764
+ )
42765
+ ]),
42766
+ _: 1
42767
+ /* STABLE */
42768
+ })
42769
+ ])
42770
+ ]),
42771
+ item: withCtx((scope) => [
42772
+ renderSlot(_ctx.$slots, "item", {
42773
+ item: scope.item,
42774
+ active: scope.active
42775
+ })
42776
+ ]),
42777
+ _: 3
42778
+ /* FORWARDED */
42779
+ }, 8, ["items", "active", "loading", "has-more", "locale"]),
42780
+ loading.value && sessions.value.length ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
42781
+ createVNode(unref(ElIcon), { class: "is-loading" }, {
42798
42782
  default: withCtx(() => [
42799
- createVNode(unref(Plus))
42783
+ createVNode(unref(Loading))
42800
42784
  ]),
42801
42785
  _: 1
42802
42786
  /* STABLE */
@@ -42804,221 +42788,87 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42804
42788
  createElementVNode(
42805
42789
  "span",
42806
42790
  null,
42807
- toDisplayString(unref(dict).sessionSidebar.newChat),
42791
+ toDisplayString(unref(dict).sessionSidebar.listLoading),
42808
42792
  1
42809
42793
  /* TEXT */
42810
42794
  )
42811
- ])
42795
+ ])) : createCommentVNode("v-if", true)
42812
42796
  ]),
42813
- 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' "),
42814
- archiveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
42815
- 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) "),
42816
- createVNode(unref(ElSegmented), {
42817
- modelValue: statusFilter.value,
42818
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42819
- options: statusOptions.value,
42820
- onChange: _cache[2] || (_cache[2] = () => reload())
42821
- }, null, 8, ["modelValue", "options"])
42822
- ])) : createCommentVNode("v-if", true),
42823
- createCommentVNode(" \u641C\u7D22:keyword \u540E\u7AEF\u6A21\u7CCA\u641C\u7D22(\u9632\u6296),\u4E0E\u7B5B\u9009 tab \u6B63\u4EA4 "),
42824
- __props.searchable ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
42825
- createVNode(unref(ElInput), {
42826
- ref_key: "searchInputRef",
42827
- ref: searchInputRef,
42828
- modelValue: keyword.value,
42829
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42830
- placeholder: unref(dict).sessionSidebar.searchPlaceholder,
42831
- clearable: "",
42832
- "prefix-icon": unref(Search)
42833
- }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42834
- ])) : createCommentVNode("v-if", true),
42835
- 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) "),
42836
- createVNode(
42837
- unref(ElScrollbar),
42838
- {
42839
- ref_key: "listScrollbarRef",
42840
- ref: listScrollbarRef,
42841
- class: "fv-ai-sidebar-list",
42842
- onScroll: onListScroll
42843
- },
42844
- {
42797
+ _: 3
42798
+ /* FORWARDED */
42799
+ },
42800
+ 512
42801
+ /* NEED_PATCH */
42802
+ )
42803
+ ])) : (openBlock(), createElementBlock("div", _hoisted_9$1, [
42804
+ createVNode(unref(ElTooltip), {
42805
+ content: unref(dict).sessionSidebar.expand,
42806
+ placement: "right",
42807
+ "show-after": 300
42808
+ }, {
42809
+ default: withCtx(() => [
42810
+ createElementVNode("button", {
42811
+ class: "fv-ai-sidebar-rail",
42812
+ type: "button",
42813
+ onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42814
+ }, [
42815
+ createVNode(_sfc_main$c, {
42816
+ name: "sidebar",
42817
+ size: 16
42818
+ })
42819
+ ])
42820
+ ]),
42821
+ _: 1
42822
+ /* STABLE */
42823
+ }, 8, ["content"]),
42824
+ createVNode(unref(ElTooltip), {
42825
+ content: unref(dict).sessionSidebar.newChat,
42826
+ placement: "right",
42827
+ "show-after": 300
42828
+ }, {
42829
+ default: withCtx(() => [
42830
+ createElementVNode("button", {
42831
+ class: "fv-ai-sidebar-rail",
42832
+ type: "button",
42833
+ onClick: onCreate
42834
+ }, [
42835
+ createVNode(unref(ElIcon), { size: 16 }, {
42845
42836
  default: withCtx(() => [
42846
- createVNode(_sfc_main$9, {
42847
- ref_key: "conversationsRef",
42848
- ref: conversationsRef,
42849
- items: conversationItems.value,
42850
- active: __props.activeId ?? void 0,
42851
- loading: loading.value,
42852
- "has-more": hasMore.value,
42853
- locale: __props.locale,
42854
- "onUpdate:active": onSelect,
42855
- onMenuCommand
42856
- }, {
42857
- menu: withCtx(({ item }) => [
42858
- 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 "),
42859
- renderSlot(_ctx.$slots, "menu", { item }, () => [
42860
- createVNode(unref(ElDropdownItem), { command: "prompt-rename" }, {
42861
- default: withCtx(() => [
42862
- createTextVNode(
42863
- toDisplayString(unref(dict).conversations.rename),
42864
- 1
42865
- /* TEXT */
42866
- )
42867
- ]),
42868
- _: 1
42869
- /* STABLE */
42870
- }),
42871
- archiveEnabled.value ? (openBlock(), createBlock(
42872
- unref(ElDropdownItem),
42873
- {
42874
- key: 0,
42875
- command: "archive"
42876
- },
42877
- {
42878
- default: withCtx(() => [
42879
- createTextVNode(
42880
- toDisplayString(isArchived(String(item.key)) ? unref(dict).sessionSidebar.restore : unref(dict).sessionSidebar.archive),
42881
- 1
42882
- /* TEXT */
42883
- )
42884
- ]),
42885
- _: 2
42886
- /* DYNAMIC */
42887
- },
42888
- 1024
42889
- /* DYNAMIC_SLOTS */
42890
- )) : createCommentVNode("v-if", true),
42891
- createVNode(unref(ElDropdownItem), {
42892
- command: "prompt-delete",
42893
- divided: ""
42894
- }, {
42895
- default: withCtx(() => [
42896
- createTextVNode(
42897
- toDisplayString(unref(dict).conversations.delete),
42898
- 1
42899
- /* TEXT */
42900
- )
42901
- ]),
42902
- _: 1
42903
- /* STABLE */
42904
- })
42905
- ])
42906
- ]),
42907
- item: withCtx((scope) => [
42908
- renderSlot(_ctx.$slots, "item", {
42909
- item: scope.item,
42910
- active: scope.active
42911
- })
42912
- ]),
42913
- _: 3
42914
- /* FORWARDED */
42915
- }, 8, ["items", "active", "loading", "has-more", "locale"]),
42916
- 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) "),
42917
- loading.value && sessions.value.length ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
42918
- createVNode(unref(ElIcon), { class: "is-loading" }, {
42919
- default: withCtx(() => [
42920
- createVNode(unref(Loading))
42921
- ]),
42922
- _: 1
42923
- /* STABLE */
42924
- }),
42925
- createElementVNode(
42926
- "span",
42927
- null,
42928
- toDisplayString(unref(dict).sessionSidebar.listLoading),
42929
- 1
42930
- /* TEXT */
42931
- )
42932
- ])) : createCommentVNode("v-if", true)
42837
+ createVNode(unref(Plus))
42933
42838
  ]),
42934
- _: 3
42935
- /* FORWARDED */
42936
- },
42937
- 512
42938
- /* NEED_PATCH */
42939
- )
42940
- ])) : (openBlock(), createElementBlock(
42941
- Fragment,
42942
- { key: 1 },
42943
- [
42944
- createCommentVNode(" \u6536\u8D77\u6001:\u7A84\u6761(\u5C55\u5F00 + \u65B0\u5EFA + \u641C\u7D22,\u5747\u65E0\u8272\u5E95\u56FE\u6807\u6309\u94AE) "),
42945
- createElementVNode("div", _hoisted_9$1, [
42946
- createVNode(unref(ElTooltip), {
42947
- content: unref(dict).sessionSidebar.expand,
42948
- placement: "right",
42949
- "show-after": 300
42950
- }, {
42951
- default: withCtx(() => [
42952
- createElementVNode("button", {
42953
- class: "fv-ai-sidebar-rail",
42954
- type: "button",
42955
- onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42956
- }, [
42957
- createVNode(_sfc_main$c, {
42958
- name: "sidebar",
42959
- size: 16
42960
- })
42961
- ])
42962
- ]),
42963
- _: 1
42964
- /* STABLE */
42965
- }, 8, ["content"]),
42966
- createVNode(unref(ElTooltip), {
42967
- content: unref(dict).sessionSidebar.newChat,
42968
- placement: "right",
42969
- "show-after": 300
42970
- }, {
42971
- default: withCtx(() => [
42972
- createElementVNode("button", {
42973
- class: "fv-ai-sidebar-rail",
42974
- type: "button",
42975
- onClick: onCreate
42976
- }, [
42977
- createVNode(unref(ElIcon), { size: 16 }, {
42978
- default: withCtx(() => [
42979
- createVNode(unref(Plus))
42980
- ]),
42981
- _: 1
42982
- /* STABLE */
42983
- })
42984
- ])
42985
- ]),
42986
- _: 1
42987
- /* STABLE */
42988
- }, 8, ["content"]),
42989
- __props.searchable ? (openBlock(), createBlock(unref(ElTooltip), {
42990
- key: 0,
42991
- content: unref(dict).sessionSidebar.searchPlaceholder,
42992
- placement: "right",
42993
- "show-after": 300
42994
- }, {
42995
- default: withCtx(() => [
42996
- createElementVNode("button", {
42997
- class: "fv-ai-sidebar-rail",
42998
- type: "button",
42999
- onClick: expandToSearch
43000
- }, [
43001
- createVNode(unref(ElIcon), { size: 16 }, {
43002
- default: withCtx(() => [
43003
- createVNode(unref(Search))
43004
- ]),
43005
- _: 1
43006
- /* STABLE */
43007
- })
43008
- ])
43009
- ]),
43010
- _: 1
43011
- /* STABLE */
43012
- }, 8, ["content"])) : createCommentVNode("v-if", true)
43013
- ])
43014
- ],
43015
- 2112
43016
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43017
- ))
43018
- ],
43019
- 2112
43020
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43021
- );
42839
+ _: 1
42840
+ /* STABLE */
42841
+ })
42842
+ ])
42843
+ ]),
42844
+ _: 1
42845
+ /* STABLE */
42846
+ }, 8, ["content"]),
42847
+ __props.searchable ? (openBlock(), createBlock(unref(ElTooltip), {
42848
+ key: 0,
42849
+ content: unref(dict).sessionSidebar.searchPlaceholder,
42850
+ placement: "right",
42851
+ "show-after": 300
42852
+ }, {
42853
+ default: withCtx(() => [
42854
+ createElementVNode("button", {
42855
+ class: "fv-ai-sidebar-rail",
42856
+ type: "button",
42857
+ onClick: expandToSearch
42858
+ }, [
42859
+ createVNode(unref(ElIcon), { size: 16 }, {
42860
+ default: withCtx(() => [
42861
+ createVNode(unref(Search))
42862
+ ]),
42863
+ _: 1
42864
+ /* STABLE */
42865
+ })
42866
+ ])
42867
+ ]),
42868
+ _: 1
42869
+ /* STABLE */
42870
+ }, 8, ["content"])) : createCommentVNode("v-if", true)
42871
+ ]));
43022
42872
  };
43023
42873
  }
43024
42874
  });
@@ -43303,7 +43153,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43303
43153
  style: normalizeStyle(bodyStyle.value)
43304
43154
  },
43305
43155
  [
43306
- 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 "),
43307
43156
  (openBlock(), createBlock(_sfc_main$4, {
43308
43157
  key: viewKey.value,
43309
43158
  adapter: lazyAdapter,
@@ -43422,7 +43271,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43422
43271
  key: "11"
43423
43272
  } : void 0
43424
43273
  ]), 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"])),
43425
- 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) "),
43426
43274
  hasEarlier.value && atTop.value ? (openBlock(), createBlock(unref(ElButton), {
43427
43275
  key: 0,
43428
43276
  class: "fv-ai-chat-panel-load-earlier",
@@ -43442,7 +43290,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43442
43290
  _: 1
43443
43291
  /* STABLE */
43444
43292
  }, 8, ["loading"])) : createCommentVNode("v-if", true),
43445
- createCommentVNode(" \u5207\u4F1A\u8BDD\u8BE6\u60C5\u52A0\u8F7D\u906E\u7F69(\u8349\u7A3F\u5207\u6362\u4E0D\u89E6\u53D1\u2014\u2014\u65E0\u8BF7\u6C42) "),
43446
43293
  detailLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
43447
43294
  createVNode(unref(ElIcon), { class: "is-loading" }, {
43448
43295
  default: withCtx(() => [
@@ -44094,351 +43941,334 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
44094
43941
  }
44095
43942
  __expose({ open, close, toggleMode, toggleMaximize, newChat, switchToPrevious, refresh });
44096
43943
  return (_ctx, _cache) => {
44097
- return openBlock(), createElementBlock(
44098
- Fragment,
44099
- null,
44100
- [
44101
- 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 "),
44102
- (openBlock(), createBlock(Teleport, { to: "body" }, [
44103
- createElementVNode("div", _hoisted_1$1, [
44104
- 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 "),
44105
- snapHint.value ? (openBlock(), createElementBlock(
43944
+ return openBlock(), createBlock(Teleport, { to: "body" }, [
43945
+ createElementVNode("div", _hoisted_1$1, [
43946
+ snapHint.value ? (openBlock(), createElementBlock(
43947
+ "div",
43948
+ {
43949
+ key: 0,
43950
+ class: normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
43951
+ style: normalizeStyle({ width: `${currentWidgetWidth()}px` })
43952
+ },
43953
+ null,
43954
+ 6
43955
+ /* CLASS, STYLE */
43956
+ )) : createCommentVNode("v-if", true),
43957
+ createVNode(Transition, { name: "fv-ai-widget-slide" }, {
43958
+ default: withCtx(() => [
43959
+ renderWidget.value ? withDirectives((openBlock(), createElementBlock(
44106
43960
  "div",
44107
43961
  {
44108
43962
  key: 0,
44109
- class: normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
44110
- style: normalizeStyle({ width: `${currentWidgetWidth()}px` })
43963
+ ref_key: "widgetEl",
43964
+ ref: widgetEl,
43965
+ class: normalizeClass(["fv-ai-widget", [
43966
+ `is-${drawerSide.value}`,
43967
+ {
43968
+ "is-floating": mode.value === "floating",
43969
+ "is-maximized": isMaximized.value,
43970
+ "is-dragging": isDragging.value
43971
+ }
43972
+ ]]),
43973
+ style: normalizeStyle(panelStyle.value)
44111
43974
  },
44112
- null,
44113
- 6
44114
- /* CLASS, STYLE */
44115
- )) : createCommentVNode("v-if", true),
44116
- createVNode(Transition, { name: "fv-ai-widget-slide" }, {
44117
- default: withCtx(() => [
44118
- renderWidget.value ? withDirectives((openBlock(), createElementBlock(
43975
+ [
43976
+ (openBlock(true), createElementBlock(
43977
+ Fragment,
43978
+ null,
43979
+ renderList(resizeEdges.value, (edge) => {
43980
+ return openBlock(), createElementBlock("div", {
43981
+ key: edge,
43982
+ class: normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
43983
+ onMousedown: ($event) => onResizeStart($event, edge)
43984
+ }, null, 42, _hoisted_2$1);
43985
+ }),
43986
+ 128
43987
+ /* KEYED_FRAGMENT */
43988
+ )),
43989
+ isMaximized.value ? (openBlock(), createBlock(_sfc_main$3, {
43990
+ key: 0,
43991
+ ref_key: "sidebarRef",
43992
+ ref: sidebarRef,
43993
+ collapsed: sidebarCollapsed.value,
43994
+ "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
43995
+ class: "fv-ai-widget-sidebar",
43996
+ service: __props.service,
43997
+ "active-id": activeSessionId.value,
43998
+ searchable: true,
43999
+ "brand-name": displayTitle.value,
44000
+ "brand-icon": avatarSrc.value,
44001
+ locale: __props.locale,
44002
+ onSelect: onSidebarSelect,
44003
+ onNewChat,
44004
+ onRemoved: onSidebarRemoved
44005
+ }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : createCommentVNode("v-if", true),
44006
+ createElementVNode(
44119
44007
  "div",
44120
44008
  {
44121
- key: 0,
44122
- ref_key: "widgetEl",
44123
- ref: widgetEl,
44124
- class: normalizeClass(["fv-ai-widget", [
44125
- `is-${drawerSide.value}`,
44126
- {
44127
- "is-floating": mode.value === "floating",
44128
- "is-maximized": isMaximized.value,
44129
- "is-dragging": isDragging.value
44130
- }
44131
- ]]),
44132
- style: normalizeStyle(panelStyle.value)
44009
+ class: "fv-ai-widget-header",
44010
+ onMousedown: onHeaderDragStart
44133
44011
  },
44134
44012
  [
44135
- 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 "),
44136
- (openBlock(true), createElementBlock(
44013
+ !isMaximized.value ? (openBlock(), createElementBlock(
44137
44014
  Fragment,
44138
- null,
44139
- renderList(resizeEdges.value, (edge) => {
44140
- return openBlock(), createElementBlock("div", {
44141
- key: edge,
44142
- class: normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
44143
- onMousedown: ($event) => onResizeStart($event, edge)
44144
- }, null, 42, _hoisted_2$1);
44145
- }),
44146
- 128
44147
- /* KEYED_FRAGMENT */
44148
- )),
44149
- 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) "),
44150
- isMaximized.value ? (openBlock(), createBlock(_sfc_main$3, {
44151
- key: 0,
44152
- ref_key: "sidebarRef",
44153
- ref: sidebarRef,
44154
- collapsed: sidebarCollapsed.value,
44155
- "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
44156
- class: "fv-ai-widget-sidebar",
44157
- service: __props.service,
44158
- "active-id": activeSessionId.value,
44159
- searchable: true,
44160
- "brand-name": displayTitle.value,
44161
- "brand-icon": avatarSrc.value,
44162
- locale: __props.locale,
44163
- onSelect: onSidebarSelect,
44164
- onNewChat,
44165
- onRemoved: onSidebarRemoved
44166
- }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : createCommentVNode("v-if", true),
44167
- 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) "),
44168
- createElementVNode(
44169
- "div",
44170
- {
44171
- class: "fv-ai-widget-header",
44172
- onMousedown: onHeaderDragStart
44173
- },
44015
+ { key: 0 },
44174
44016
  [
44175
- 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 "),
44176
- !isMaximized.value ? (openBlock(), createElementBlock(
44177
- Fragment,
44178
- { key: 0 },
44179
- [
44180
- renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44181
- createElementVNode("img", {
44182
- class: "fv-ai-widget-avatar",
44183
- src: avatarSrc.value,
44184
- alt: ""
44185
- }, null, 8, _hoisted_3$1)
44186
- ]),
44187
- createElementVNode("div", _hoisted_4, [
44188
- renderSlot(_ctx.$slots, "header-title", {}, () => [
44189
- createTextVNode(
44190
- toDisplayString(displayTitle.value),
44191
- 1
44192
- /* TEXT */
44193
- )
44194
- ])
44195
- ])
44196
- ],
44197
- 64
44198
- /* STABLE_FRAGMENT */
44199
- )) : (openBlock(), createElementBlock("div", _hoisted_5)),
44200
- renderSlot(_ctx.$slots, "header-actions"),
44201
- 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 "),
44202
- !isMaximized.value ? (openBlock(), createElementBlock(
44203
- Fragment,
44204
- { key: 2 },
44205
- [
44206
- createVNode(unref(ElTooltip), {
44207
- content: unref(dict).aiChatPanel.history,
44208
- "show-after": 300,
44209
- placement: "bottom"
44210
- }, {
44211
- default: withCtx(() => [
44212
- createElementVNode("button", {
44213
- type: "button",
44214
- class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44215
- "aria-label": unref(dict).aiChatPanel.history,
44216
- onClick: onHistoryToggle
44217
- }, [
44218
- createVNode(unref(ElIcon), { size: 18 }, {
44219
- default: withCtx(() => [
44220
- createVNode(unref(Clock))
44221
- ]),
44222
- _: 1
44223
- /* STABLE */
44224
- })
44225
- ], 8, _hoisted_6)
44226
- ]),
44227
- _: 1
44228
- /* STABLE */
44229
- }, 8, ["content"]),
44230
- createVNode(unref(ElTooltip), {
44231
- content: unref(dict).sessionSidebar.newChat,
44232
- "show-after": 300,
44233
- placement: "bottom"
44234
- }, {
44235
- default: withCtx(() => [
44236
- createElementVNode("button", {
44237
- type: "button",
44238
- class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44239
- "aria-label": unref(dict).sessionSidebar.newChat,
44240
- onClick: onNewChat
44241
- }, [
44242
- createVNode(unref(ElIcon), { size: 18 }, {
44243
- default: withCtx(() => [
44244
- createVNode(unref(Plus))
44245
- ]),
44246
- _: 1
44247
- /* STABLE */
44248
- })
44249
- ], 8, _hoisted_7)
44250
- ]),
44251
- _: 1
44252
- /* STABLE */
44253
- }, 8, ["content"]),
44254
- __props.showModeToggle ? (openBlock(), createBlock(unref(ElTooltip), {
44255
- key: 0,
44256
- content: mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44257
- "show-after": 300,
44258
- placement: "bottom"
44259
- }, {
44260
- default: withCtx(() => [
44261
- createElementVNode("button", {
44262
- type: "button",
44263
- class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44264
- "aria-label": mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44265
- onClick: toggleMode
44266
- }, [
44267
- mode.value === "drawer" ? (openBlock(), createBlock(_sfc_main$c, {
44268
- key: 0,
44269
- name: "to-window",
44270
- size: 18
44271
- })) : (openBlock(), createBlock(_sfc_main$c, {
44272
- key: 1,
44273
- name: "to-drawer",
44274
- size: 18
44275
- }))
44276
- ], 8, _hoisted_8)
44277
- ]),
44278
- _: 1
44279
- /* STABLE */
44280
- }, 8, ["content"])) : createCommentVNode("v-if", true)
44281
- ],
44282
- 64
44283
- /* STABLE_FRAGMENT */
44284
- )) : createCommentVNode("v-if", true),
44285
- __props.maximizable ? (openBlock(), createBlock(unref(ElTooltip), {
44286
- key: 3,
44287
- content: isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44017
+ renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44018
+ createElementVNode("img", {
44019
+ class: "fv-ai-widget-avatar",
44020
+ src: avatarSrc.value,
44021
+ alt: ""
44022
+ }, null, 8, _hoisted_3$1)
44023
+ ]),
44024
+ createElementVNode("div", _hoisted_4, [
44025
+ renderSlot(_ctx.$slots, "header-title", {}, () => [
44026
+ createTextVNode(
44027
+ toDisplayString(displayTitle.value),
44028
+ 1
44029
+ /* TEXT */
44030
+ )
44031
+ ])
44032
+ ])
44033
+ ],
44034
+ 64
44035
+ /* STABLE_FRAGMENT */
44036
+ )) : (openBlock(), createElementBlock("div", _hoisted_5)),
44037
+ renderSlot(_ctx.$slots, "header-actions"),
44038
+ !isMaximized.value ? (openBlock(), createElementBlock(
44039
+ Fragment,
44040
+ { key: 2 },
44041
+ [
44042
+ createVNode(unref(ElTooltip), {
44043
+ content: unref(dict).aiChatPanel.history,
44288
44044
  "show-after": 300,
44289
44045
  placement: "bottom"
44290
44046
  }, {
44291
44047
  default: withCtx(() => [
44292
44048
  createElementVNode("button", {
44293
44049
  type: "button",
44294
- class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44295
- "aria-label": isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44296
- onClick: toggleMaximize
44050
+ class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44051
+ "aria-label": unref(dict).aiChatPanel.history,
44052
+ onClick: onHistoryToggle
44297
44053
  }, [
44298
- isMaximized.value ? (openBlock(), createBlock(_sfc_main$c, {
44299
- key: 0,
44300
- name: "win-restore",
44301
- size: 18
44302
- })) : (openBlock(), createBlock(_sfc_main$c, {
44303
- key: 1,
44304
- name: "maximize",
44305
- size: 18
44306
- }))
44307
- ], 8, _hoisted_9)
44054
+ createVNode(unref(ElIcon), { size: 18 }, {
44055
+ default: withCtx(() => [
44056
+ createVNode(unref(Clock))
44057
+ ]),
44058
+ _: 1
44059
+ /* STABLE */
44060
+ })
44061
+ ], 8, _hoisted_6)
44308
44062
  ]),
44309
44063
  _: 1
44310
44064
  /* STABLE */
44311
- }, 8, ["content"])) : createCommentVNode("v-if", true),
44065
+ }, 8, ["content"]),
44312
44066
  createVNode(unref(ElTooltip), {
44313
- content: unref(dict).aiChatPanel.close,
44067
+ content: unref(dict).sessionSidebar.newChat,
44314
44068
  "show-after": 300,
44315
44069
  placement: "bottom"
44316
44070
  }, {
44317
44071
  default: withCtx(() => [
44318
44072
  createElementVNode("button", {
44319
44073
  type: "button",
44320
- class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44321
- "aria-label": unref(dict).aiChatPanel.close,
44322
- onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", false))
44074
+ class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44075
+ "aria-label": unref(dict).sessionSidebar.newChat,
44076
+ onClick: onNewChat
44323
44077
  }, [
44324
44078
  createVNode(unref(ElIcon), { size: 18 }, {
44325
44079
  default: withCtx(() => [
44326
- createVNode(unref(Close))
44080
+ createVNode(unref(Plus))
44327
44081
  ]),
44328
44082
  _: 1
44329
44083
  /* STABLE */
44330
44084
  })
44331
- ], 8, _hoisted_10)
44085
+ ], 8, _hoisted_7)
44332
44086
  ]),
44333
44087
  _: 1
44334
44088
  /* STABLE */
44335
- }, 8, ["content"])
44336
- ],
44337
- 32
44338
- /* NEED_HYDRATION */
44339
- ),
44340
- 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) "),
44341
- createElementVNode(
44342
- "div",
44343
- {
44344
- class: normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44345
- },
44346
- [
44347
- 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 "),
44348
- createVNode(Transition, { name: "fv-ai-widget-history" }, {
44089
+ }, 8, ["content"]),
44090
+ __props.showModeToggle ? (openBlock(), createBlock(unref(ElTooltip), {
44091
+ key: 0,
44092
+ content: mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44093
+ "show-after": 300,
44094
+ placement: "bottom"
44095
+ }, {
44349
44096
  default: withCtx(() => [
44350
- historyOpen.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
44351
- createElementVNode("div", _hoisted_12, [
44352
- createElementVNode("button", {
44353
- type: "button",
44354
- class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44355
- "aria-label": unref(dict).aiChatPanel.back,
44356
- onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44357
- }, [
44358
- createVNode(unref(ElIcon), { size: 16 }, {
44359
- default: withCtx(() => [
44360
- createVNode(unref(ArrowLeft))
44361
- ]),
44362
- _: 1
44363
- /* STABLE */
44364
- }),
44365
- createElementVNode(
44366
- "span",
44367
- _hoisted_14,
44368
- toDisplayString(unref(dict).aiChatPanel.back),
44369
- 1
44370
- /* TEXT */
44371
- )
44372
- ], 8, _hoisted_13)
44373
- ]),
44374
- createElementVNode("div", _hoisted_15, [
44375
- createVNode(_sfc_main$9, {
44376
- ref_key: "conversationsRef",
44377
- ref: conversationsRef,
44378
- items: historyItems.value,
44379
- active: activeSessionId.value,
44380
- loading: historyLoading.value,
44381
- "has-more": historyHasMore.value,
44382
- locale: __props.locale,
44383
- "onUpdate:active": onSelectSession,
44384
- onLoadMore: loadMoreHistory,
44385
- onMenuCommand: onHistoryMenuCommand
44386
- }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44387
- !historyLoading.value && !historyItems.value.length ? (openBlock(), createElementBlock(
44388
- "div",
44389
- _hoisted_16,
44390
- toDisplayString(unref(dict).aiChatPanel.historyEmpty),
44391
- 1
44392
- /* TEXT */
44393
- )) : createCommentVNode("v-if", true)
44394
- ])
44395
- ])) : createCommentVNode("v-if", true)
44097
+ createElementVNode("button", {
44098
+ type: "button",
44099
+ class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44100
+ "aria-label": mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44101
+ onClick: toggleMode
44102
+ }, [
44103
+ mode.value === "drawer" ? (openBlock(), createBlock(_sfc_main$c, {
44104
+ key: 0,
44105
+ name: "to-window",
44106
+ size: 18
44107
+ })) : (openBlock(), createBlock(_sfc_main$c, {
44108
+ key: 1,
44109
+ name: "to-drawer",
44110
+ size: 18
44111
+ }))
44112
+ ], 8, _hoisted_8)
44396
44113
  ]),
44397
44114
  _: 1
44398
44115
  /* STABLE */
44399
- }),
44400
- createVNode(_sfc_main$2, mergeProps({
44401
- ref_key: "panelRef",
44402
- ref: panelRef
44403
- }, panelProps.value, {
44404
- "session-id": activeSessionId.value,
44405
- "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44406
- "center-welcome": isMaximized.value,
44407
- onSessionCreated,
44408
- onRoundComplete
44409
- }, toHandlers(panelListeners)), createSlots({
44410
- _: 2
44411
- /* DYNAMIC */
44116
+ }, 8, ["content"])) : createCommentVNode("v-if", true)
44117
+ ],
44118
+ 64
44119
+ /* STABLE_FRAGMENT */
44120
+ )) : createCommentVNode("v-if", true),
44121
+ __props.maximizable ? (openBlock(), createBlock(unref(ElTooltip), {
44122
+ key: 3,
44123
+ content: isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44124
+ "show-after": 300,
44125
+ placement: "bottom"
44126
+ }, {
44127
+ default: withCtx(() => [
44128
+ createElementVNode("button", {
44129
+ type: "button",
44130
+ class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44131
+ "aria-label": isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44132
+ onClick: toggleMaximize
44412
44133
  }, [
44413
- renderList(_ctx.$slots, (_, name) => {
44414
- return {
44415
- name,
44416
- fn: withCtx((slotProps) => [
44417
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
44418
- ])
44419
- };
44134
+ isMaximized.value ? (openBlock(), createBlock(_sfc_main$c, {
44135
+ key: 0,
44136
+ name: "win-restore",
44137
+ size: 18
44138
+ })) : (openBlock(), createBlock(_sfc_main$c, {
44139
+ key: 1,
44140
+ name: "maximize",
44141
+ size: 18
44142
+ }))
44143
+ ], 8, _hoisted_9)
44144
+ ]),
44145
+ _: 1
44146
+ /* STABLE */
44147
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
44148
+ createVNode(unref(ElTooltip), {
44149
+ content: unref(dict).aiChatPanel.close,
44150
+ "show-after": 300,
44151
+ placement: "bottom"
44152
+ }, {
44153
+ default: withCtx(() => [
44154
+ createElementVNode("button", {
44155
+ type: "button",
44156
+ class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44157
+ "aria-label": unref(dict).aiChatPanel.close,
44158
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", false))
44159
+ }, [
44160
+ createVNode(unref(ElIcon), { size: 18 }, {
44161
+ default: withCtx(() => [
44162
+ createVNode(unref(Close))
44163
+ ]),
44164
+ _: 1
44165
+ /* STABLE */
44420
44166
  })
44421
- ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44422
- ],
44423
- 2
44424
- /* CLASS */
44425
- )
44167
+ ], 8, _hoisted_10)
44168
+ ]),
44169
+ _: 1
44170
+ /* STABLE */
44171
+ }, 8, ["content"])
44426
44172
  ],
44427
- 6
44428
- /* CLASS, STYLE */
44429
- )), [
44430
- [vShow, __props.modelValue]
44431
- ]) : createCommentVNode("v-if", true)
44432
- ]),
44433
- _: 3
44434
- /* FORWARDED */
44435
- })
44436
- ])
44437
- ]))
44438
- ],
44439
- 2112
44440
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44441
- );
44173
+ 32
44174
+ /* NEED_HYDRATION */
44175
+ ),
44176
+ createElementVNode(
44177
+ "div",
44178
+ {
44179
+ class: normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44180
+ },
44181
+ [
44182
+ createVNode(Transition, { name: "fv-ai-widget-history" }, {
44183
+ default: withCtx(() => [
44184
+ historyOpen.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
44185
+ createElementVNode("div", _hoisted_12, [
44186
+ createElementVNode("button", {
44187
+ type: "button",
44188
+ class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44189
+ "aria-label": unref(dict).aiChatPanel.back,
44190
+ onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44191
+ }, [
44192
+ createVNode(unref(ElIcon), { size: 16 }, {
44193
+ default: withCtx(() => [
44194
+ createVNode(unref(ArrowLeft))
44195
+ ]),
44196
+ _: 1
44197
+ /* STABLE */
44198
+ }),
44199
+ createElementVNode(
44200
+ "span",
44201
+ _hoisted_14,
44202
+ toDisplayString(unref(dict).aiChatPanel.back),
44203
+ 1
44204
+ /* TEXT */
44205
+ )
44206
+ ], 8, _hoisted_13)
44207
+ ]),
44208
+ createElementVNode("div", _hoisted_15, [
44209
+ createVNode(_sfc_main$9, {
44210
+ ref_key: "conversationsRef",
44211
+ ref: conversationsRef,
44212
+ items: historyItems.value,
44213
+ active: activeSessionId.value,
44214
+ loading: historyLoading.value,
44215
+ "has-more": historyHasMore.value,
44216
+ locale: __props.locale,
44217
+ "onUpdate:active": onSelectSession,
44218
+ onLoadMore: loadMoreHistory,
44219
+ onMenuCommand: onHistoryMenuCommand
44220
+ }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44221
+ !historyLoading.value && !historyItems.value.length ? (openBlock(), createElementBlock(
44222
+ "div",
44223
+ _hoisted_16,
44224
+ toDisplayString(unref(dict).aiChatPanel.historyEmpty),
44225
+ 1
44226
+ /* TEXT */
44227
+ )) : createCommentVNode("v-if", true)
44228
+ ])
44229
+ ])) : createCommentVNode("v-if", true)
44230
+ ]),
44231
+ _: 1
44232
+ /* STABLE */
44233
+ }),
44234
+ createVNode(_sfc_main$2, mergeProps({
44235
+ ref_key: "panelRef",
44236
+ ref: panelRef
44237
+ }, panelProps.value, {
44238
+ "session-id": activeSessionId.value,
44239
+ "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44240
+ "center-welcome": isMaximized.value,
44241
+ onSessionCreated,
44242
+ onRoundComplete
44243
+ }, toHandlers(panelListeners)), createSlots({
44244
+ _: 2
44245
+ /* DYNAMIC */
44246
+ }, [
44247
+ renderList(_ctx.$slots, (_, name) => {
44248
+ return {
44249
+ name,
44250
+ fn: withCtx((slotProps) => [
44251
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
44252
+ ])
44253
+ };
44254
+ })
44255
+ ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44256
+ ],
44257
+ 2
44258
+ /* CLASS */
44259
+ )
44260
+ ],
44261
+ 6
44262
+ /* CLASS, STYLE */
44263
+ )), [
44264
+ [vShow, __props.modelValue]
44265
+ ]) : createCommentVNode("v-if", true)
44266
+ ]),
44267
+ _: 3
44268
+ /* FORWARDED */
44269
+ })
44270
+ ])
44271
+ ]);
44442
44272
  };
44443
44273
  }
44444
44274
  });
@@ -44463,6 +44293,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44463
44293
  offset: { type: Number, required: false, default: 24 },
44464
44294
  draggable: { type: Boolean, required: false, default: true },
44465
44295
  size: { type: Number, required: false, default: 42 },
44296
+ zIndex: { type: Number, required: false, default: void 0 },
44466
44297
  icon: { type: String, required: false, default: "" },
44467
44298
  iconComponent: { type: null, required: false, default: void 0 },
44468
44299
  eyeTrack: { type: Boolean, required: false, default: true },
@@ -44634,6 +44465,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44634
44465
  "--fv-launcher-size": `${props.size}px`,
44635
44466
  "--fv-launcher-offset-x": `${resolvedOffsetX.value}px`,
44636
44467
  "--fv-launcher-offset-y": `${resolvedOffsetY.value}px`,
44468
+ ...props.floating && props.zIndex !== void 0 ? { "--fv-launcher-z-index": `${props.zIndex}` } : null,
44637
44469
  ...dragPos.value ? { left: `${dragPos.value.left}px`, top: `${dragPos.value.top}px` } : null
44638
44470
  }));
44639
44471
  return (_ctx, _cache) => {
@@ -44647,32 +44479,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44647
44479
  onClick: _cache[1] || (_cache[1] = ($event) => __props.interactive && onClickGuard($event))
44648
44480
  }, {
44649
44481
  default: withCtx(() => [
44650
- 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) "),
44651
44482
  createVNode(_sfc_main$8, mergeProps({
44652
44483
  class: "fv-ai-launcher-halo",
44653
44484
  size: __props.size
44654
44485
  }, haloProps.value), null, 16, ["size"]),
44655
- 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 "),
44656
44486
  createElementVNode("span", _hoisted_1, [
44657
44487
  renderSlot(_ctx.$slots, "default", {}, () => [
44658
44488
  renderSlot(_ctx.$slots, "icon", {}, () => [
44659
44489
  __props.iconComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.iconComponent), {
44660
44490
  key: 0,
44661
44491
  class: "fv-ai-launcher-comp-icon"
44662
- })) : !__props.icon ? (openBlock(), createElementBlock(
44663
- Fragment,
44664
- { key: 1 },
44665
- [
44666
- 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> "),
44667
- createElementVNode("span", {
44668
- class: normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44669
- "aria-hidden": "true",
44670
- innerHTML: unref(defaultAvatarSvg)
44671
- }, null, 10, _hoisted_2)
44672
- ],
44673
- 2112
44674
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44675
- )) : (openBlock(), createElementBlock("img", {
44492
+ })) : !__props.icon ? (openBlock(), createElementBlock("span", {
44493
+ key: 1,
44494
+ class: normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44495
+ "aria-hidden": "true",
44496
+ innerHTML: unref(defaultAvatarSvg)
44497
+ }, null, 10, _hoisted_2)) : (openBlock(), createElementBlock("img", {
44676
44498
  key: 2,
44677
44499
  class: "fv-ai-launcher-avatar",
44678
44500
  src: __props.icon,