@fv-ui/ai-chat 1.9.2 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/es/index.mjs +897 -1111
  2. package/lib/index.js +896 -1110
  3. package/package.json +1 -1
package/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"
@@ -40350,7 +40253,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40350
40253
  }]]),
40351
40254
  "data-message-id": __props.message.id
40352
40255
  }, [
40353
- 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) "),
40354
40256
  (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (openBlock(), createElementBlock(
40355
40257
  "div",
40356
40258
  {
@@ -40392,7 +40294,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40392
40294
  /* STYLE */
40393
40295
  )) : createCommentVNode("v-if", true),
40394
40296
  createElementVNode("div", _hoisted_4$3, [
40395
- 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 "),
40396
40297
  showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
40397
40298
  isUser.value ? renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
40398
40299
  createTextVNode(
@@ -40415,7 +40316,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40415
40316
  /* TEXT */
40416
40317
  )) : createCommentVNode("v-if", true)
40417
40318
  ])) : createCommentVNode("v-if", true),
40418
- 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) "),
40419
40319
  __props.message.files?.length ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
40420
40320
  renderSlot(_ctx.$slots, "message-files", {
40421
40321
  message: __props.message,
@@ -40469,7 +40369,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40469
40369
  ))
40470
40370
  ])
40471
40371
  ])) : createCommentVNode("v-if", true),
40472
- 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) "),
40473
40372
  previewVisible.value && previewSrcList.value.length ? (openBlock(), createBlock(unref(ElImageViewer), {
40474
40373
  key: 2,
40475
40374
  "url-list": previewSrcList.value,
@@ -40477,7 +40376,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40477
40376
  teleported: "",
40478
40377
  onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
40479
40378
  }, null, 8, ["url-list", "initial-index"])) : createCommentVNode("v-if", true),
40480
- 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 "),
40481
40379
  !isUser.value && (hasToolSteps.value || hasReasoning.value) ? (openBlock(), createBlock(_sfc_main$g, {
40482
40380
  key: 3,
40483
40381
  modelValue: toolsExpanded.value,
@@ -40494,21 +40392,13 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40494
40392
  collapsible: __props.collapsible,
40495
40393
  "show-duration": __props.showDuration,
40496
40394
  onTyping: _cache[1] || (_cache[1] = ($event) => emit("typing"))
40497
- }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (openBlock(), createElementBlock(
40498
- Fragment,
40499
- { key: 1 },
40500
- [
40501
- 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) "),
40502
- createVNode(_sfc_main$n, {
40503
- content: __props.message.reasoning ?? "",
40504
- "is-markdown": "",
40505
- typing: __props.typing,
40506
- onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40507
- }, null, 8, ["content", "typing"])
40508
- ],
40509
- 2112
40510
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40511
- )) : 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, {
40512
40402
  key: 2,
40513
40403
  content: __props.message.reasoning ?? ""
40514
40404
  }, null, 8, ["content"])) : createCommentVNode("v-if", true)
@@ -40528,7 +40418,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40528
40418
  key: "0"
40529
40419
  } : void 0
40530
40420
  ]), 1032, ["modelValue", "status", "hide-header", "class"])) : createCommentVNode("v-if", true),
40531
- 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 "),
40532
40421
  !isUser.value ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
40533
40422
  __props.message.status === "error" ? (openBlock(), createElementBlock(
40534
40423
  "span",
@@ -40550,54 +40439,34 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40550
40439
  key: 2,
40551
40440
  content: __props.message.content,
40552
40441
  "code-trigger-langs": __props.codeTriggerLangs
40553
- }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (openBlock(), createElementBlock(
40554
- Fragment,
40555
- { key: 3 },
40556
- [
40557
- 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) "),
40558
- createElementVNode("span", _hoisted_13$1, [
40559
- _cache[11] || (_cache[11] = createElementVNode(
40560
- "span",
40561
- {
40562
- class: "fv-msg-spinner",
40563
- "aria-hidden": "true"
40564
- },
40565
- null,
40566
- -1
40567
- /* CACHED */
40568
- )),
40569
- createElementVNode(
40570
- "span",
40571
- _hoisted_14$1,
40572
- toDisplayString(pendingPhrase.value),
40573
- 1
40574
- /* TEXT */
40575
- )
40576
- ])
40577
- ],
40578
- 2112
40579
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40580
- )) : createCommentVNode("v-if", true)
40581
- ])) : __props.message.content ? (openBlock(), createElementBlock(
40582
- Fragment,
40583
- { key: 5 },
40584
- [
40585
- 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
+ )),
40586
40453
  createElementVNode(
40587
- "div",
40588
- _hoisted_15$1,
40589
- toDisplayString(__props.message.content),
40454
+ "span",
40455
+ _hoisted_14$1,
40456
+ toDisplayString(pendingPhrase.value),
40590
40457
  1
40591
40458
  /* TEXT */
40592
40459
  )
40593
- ],
40594
- 2112
40595
- /* 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 */
40596
40467
  )) : createCommentVNode("v-if", true),
40597
- 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 "),
40598
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, [
40599
40469
  renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
40600
- 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 "),
40601
40470
  actionsVisible.value && isUser.value && userCopyVisible.value ? (openBlock(), createBlock(unref(ElTooltip), {
40602
40471
  key: 0,
40603
40472
  content: unref(dict).aiMessage.copy,
@@ -40670,7 +40539,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40670
40539
  _: 1
40671
40540
  /* STABLE */
40672
40541
  }, 8, ["content"])) : createCommentVNode("v-if", true),
40673
- 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 "),
40674
40542
  feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createElementBlock("span", _hoisted_20, [
40675
40543
  createVNode(unref(ElTooltip), {
40676
40544
  content: unref(dict).aiMessage.feedback.like,
@@ -40730,7 +40598,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40730
40598
  }, 8, ["content"])
40731
40599
  ])) : createCommentVNode("v-if", true)
40732
40600
  ]),
40733
- createCommentVNode(" \u5206\u652F\u5207\u6362:\u5144\u5F1F\u5206\u652F > 1 \u65F6 "),
40734
40601
  __props.showBranchSwitch && __props.branch && __props.branch.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_23, [
40735
40602
  createElementVNode("button", {
40736
40603
  type: "button",
@@ -40770,7 +40637,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40770
40637
  })
40771
40638
  ], 8, _hoisted_26)
40772
40639
  ])) : createCommentVNode("v-if", true),
40773
- 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 "),
40774
40640
  messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock(
40775
40641
  "span",
40776
40642
  _hoisted_27,
@@ -40779,7 +40645,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40779
40645
  /* TEXT */
40780
40646
  )) : createCommentVNode("v-if", true)
40781
40647
  ])) : createCommentVNode("v-if", true),
40782
- 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 "),
40783
40648
  followups.value.length && followupsVisible.value ? (openBlock(), createElementBlock("div", {
40784
40649
  key: 7,
40785
40650
  class: normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
@@ -40812,7 +40677,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40812
40677
  ))
40813
40678
  ], 10, _hoisted_28)) : createCommentVNode("v-if", true)
40814
40679
  ]),
40815
- 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 "),
40816
40680
  feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createBlock(unref(ElDialog), {
40817
40681
  key: 1,
40818
40682
  modelValue: dislikePopVisible.value,
@@ -41086,7 +40950,6 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41086
40950
  __expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
41087
40951
  return (_ctx, _cache) => {
41088
40952
  return openBlock(), createElementBlock("div", _hoisted_1$6, [
41089
- 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) "),
41090
40953
  isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
41091
40954
  renderSlot(_ctx.$slots, "empty", {}, () => [
41092
40955
  createVNode(_sfc_main$e, {
@@ -41097,7 +40960,6 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41097
40960
  locale: __props.locale
41098
40961
  }, createSlots({
41099
40962
  suggestions: withCtx(() => [
41100
- createCommentVNode(" welcome-suggestions \u63D2\u69FD\u6574\u4F53\u66FF\u6362\u9ED8\u8BA4 Prompts \u6E32\u67D3 "),
41101
40963
  renderSlot(_ctx.$slots, "welcome-suggestions", {}, () => [
41102
40964
  __props.suggestions.length ? (openBlock(), createBlock(_sfc_main$d, {
41103
40965
  key: 0,
@@ -41136,154 +40998,145 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41136
40998
  ]), 1032, ["icon", "name", "description", "layout", "locale"])
41137
40999
  ])
41138
41000
  ])) : (openBlock(), createElementBlock(
41139
- Fragment,
41140
- { key: 1 },
41001
+ "div",
41002
+ {
41003
+ key: 1,
41004
+ ref_key: "scrollRef",
41005
+ ref: scrollRef,
41006
+ class: "fv-messages-scroll",
41007
+ onScrollPassive: onScroll
41008
+ },
41141
41009
  [
41142
- 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) "),
41143
- createElementVNode(
41144
- "div",
41145
- {
41146
- ref_key: "scrollRef",
41147
- ref: scrollRef,
41148
- class: "fv-messages-scroll",
41149
- onScrollPassive: onScroll
41150
- },
41151
- [
41152
- createElementVNode("div", _hoisted_3$5, [
41153
- (openBlock(true), createElementBlock(
41154
- Fragment,
41155
- null,
41156
- renderList(__props.messages, (m) => {
41157
- return openBlock(), createBlock(_sfc_main$7, {
41158
- key: m.id,
41159
- ref_for: true,
41160
- ref: (el) => setMessageRef(m.id, el),
41161
- message: m,
41162
- branch: branchInfo(m),
41163
- "is-last": m.id === lastMessageId.value,
41164
- "show-actions": __props.showActions,
41165
- "copy-to-clipboard": __props.copyToClipboard,
41166
- "show-branch-switch": __props.showBranchSwitch,
41167
- "show-user-avatar": __props.showUserAvatar,
41168
- "show-user-name": __props.showUserName,
41169
- "show-assistant-avatar": __props.showAssistantAvatar,
41170
- "show-assistant-name": __props.showAssistantName,
41171
- "user-avatar": __props.userAvatar,
41172
- "assistant-avatar": __props.assistantAvatar,
41173
- "assistant-avatar-scale": __props.assistantAvatarScale,
41174
- "avatar-circle": __props.avatarCircle,
41175
- "user-name": __props.userName,
41176
- "assistant-name": __props.assistantName,
41177
- typing: __props.typing,
41178
- "auto-collapse": __props.autoCollapse,
41179
- collapsible: __props.collapsible,
41180
- "show-duration": __props.showDuration,
41181
- "show-time": __props.showTime,
41182
- "time-format": __props.timeFormat,
41183
- "followup-style": __props.followupStyle,
41184
- "code-trigger-langs": __props.codeTriggerLangs,
41185
- "resolve-file-url": __props.resolveFileUrl,
41186
- "feedback-handler": __props.feedbackHandler,
41187
- onTyping: onChildTyping,
41188
- onCopy,
41189
- onRegenerate,
41190
- onBranchChange: onBranch,
41191
- onFollowupSelect: onFollowup,
41192
- onFileClick,
41193
- onFeedbackChange,
41194
- onFeedbackError
41195
- }, createSlots({
41196
- _: 2
41197
- /* DYNAMIC */
41198
- }, [
41199
- _ctx.$slots["message-avatar"] ? {
41200
- name: "message-avatar",
41201
- fn: withCtx((scope) => [
41202
- renderSlot(_ctx.$slots, "message-avatar", mergeProps({ ref_for: true }, scope))
41203
- ]),
41204
- key: "0"
41205
- } : void 0,
41206
- _ctx.$slots["message-actions"] ? {
41207
- name: "message-actions",
41208
- fn: withCtx((scope) => [
41209
- renderSlot(_ctx.$slots, "message-actions", mergeProps({ ref_for: true }, scope))
41210
- ]),
41211
- key: "1"
41212
- } : void 0,
41213
- _ctx.$slots["user-avatar"] ? {
41214
- name: "user-avatar",
41215
- fn: withCtx(() => [
41216
- renderSlot(_ctx.$slots, "user-avatar")
41217
- ]),
41218
- key: "2"
41219
- } : void 0,
41220
- _ctx.$slots["assistant-avatar"] ? {
41221
- name: "assistant-avatar",
41222
- fn: withCtx((scope) => [
41223
- renderSlot(_ctx.$slots, "assistant-avatar", mergeProps({ ref_for: true }, scope))
41224
- ]),
41225
- key: "3"
41226
- } : void 0,
41227
- _ctx.$slots["user-name"] ? {
41228
- name: "user-name",
41229
- fn: withCtx((scope) => [
41230
- renderSlot(_ctx.$slots, "user-name", mergeProps({ ref_for: true }, scope))
41231
- ]),
41232
- key: "4"
41233
- } : void 0,
41234
- _ctx.$slots["assistant-name"] ? {
41235
- name: "assistant-name",
41236
- fn: withCtx((scope) => [
41237
- renderSlot(_ctx.$slots, "assistant-name", mergeProps({ ref_for: true }, scope))
41238
- ]),
41239
- key: "5"
41240
- } : void 0
41241
- ]), 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"]);
41242
- }),
41243
- 128
41244
- /* KEYED_FRAGMENT */
41245
- )),
41246
- 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 "),
41247
- createVNode(Transition, { name: "fv-messages-back-fade" }, {
41248
- default: withCtx(() => [
41249
- renderSlot(_ctx.$slots, "scroll-button", {
41250
- scrollToBottom,
41251
- awayFromBottom: isAwayFromBottom.value
41252
- }, () => [
41253
- __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (openBlock(), createBlock(unref(ElButton), {
41254
- key: 0,
41255
- class: "fv-messages-back",
41256
- circle: "",
41257
- "aria-label": unref(dict).scroll.toBottom,
41258
- onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41259
- }, {
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" }, {
41260
41119
  default: withCtx(() => [
41261
- createVNode(unref(ElIcon), { class: "fv-messages-back-icon" }, {
41262
- default: withCtx(() => [
41263
- renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41264
- createVNode(unref(Bottom))
41265
- ])
41266
- ]),
41267
- _: 3
41268
- /* FORWARDED */
41269
- })
41120
+ renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41121
+ createVNode(unref(Bottom))
41122
+ ])
41270
41123
  ]),
41271
41124
  _: 3
41272
41125
  /* FORWARDED */
41273
- }, 8, ["aria-label"])) : createCommentVNode("v-if", true)
41274
- ])
41275
- ]),
41276
- _: 3
41277
- /* FORWARDED */
41278
- })
41279
- ])
41280
- ],
41281
- 544
41282
- /* NEED_HYDRATION, NEED_PATCH */
41283
- )
41126
+ })
41127
+ ]),
41128
+ _: 3
41129
+ /* FORWARDED */
41130
+ }, 8, ["aria-label"])) : createCommentVNode("v-if", true)
41131
+ ])
41132
+ ]),
41133
+ _: 3
41134
+ /* FORWARDED */
41135
+ })
41136
+ ])
41284
41137
  ],
41285
- 2112
41286
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41138
+ 544
41139
+ /* NEED_HYDRATION, NEED_PATCH */
41287
41140
  ))
41288
41141
  ]);
41289
41142
  };
@@ -41396,139 +41249,110 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
41396
41249
  }
41397
41250
  __expose({ open, close });
41398
41251
  return (_ctx, _cache) => {
41399
- return openBlock(), createElementBlock(
41400
- Fragment,
41401
- 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
+ },
41402
41263
  [
41403
- 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 "),
41404
- visible.value && current.value ? (openBlock(), createElementBlock(
41405
- "div",
41406
- {
41407
- key: 0,
41408
- class: "fv-artifacts",
41409
- style: normalizeStyle({
41410
- "--fv-artifacts-width": __props.width,
41411
- "--fv-artifacts-min-width": __props.minWidth,
41412
- "--fv-artifacts-max-width": __props.maxWidth
41413
- })
41414
- },
41415
- [
41416
- createCommentVNode(" tab \u5207\u6362\u680F "),
41417
- createElementVNode("div", _hoisted_1$5, [
41418
- (openBlock(true), createElementBlock(
41419
- Fragment,
41420
- null,
41421
- renderList(__props.artifacts, (a) => {
41422
- return openBlock(), createElementBlock("button", {
41423
- key: a.key,
41424
- type: "button",
41425
- class: normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41426
- onClick: ($event) => select(a.key)
41427
- }, toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41428
- }),
41429
- 128
41430
- /* KEYED_FRAGMENT */
41431
- )),
41432
- _cache[0] || (_cache[0] = createElementVNode(
41433
- "span",
41434
- { class: "fv-artifacts-spacer" },
41435
- null,
41436
- -1
41437
- /* CACHED */
41438
- )),
41439
- createVNode(unref(ElTooltip), {
41440
- content: unref(dict).aiArtifacts.copy,
41441
- placement: "top"
41442
- }, {
41443
- default: withCtx(() => [
41444
- createVNode(unref(ElButton), {
41445
- text: "",
41446
- size: "small",
41447
- "aria-label": unref(dict).aiArtifacts.copy,
41448
- onClick: onCopy
41449
- }, {
41450
- default: withCtx(() => [
41451
- createVNode(unref(ElIcon), null, {
41452
- default: withCtx(() => [
41453
- createVNode(unref(CopyDocument))
41454
- ]),
41455
- _: 1
41456
- /* STABLE */
41457
- })
41458
- ]),
41459
- _: 1
41460
- /* STABLE */
41461
- }, 8, ["aria-label"])
41462
- ]),
41463
- _: 1
41464
- /* STABLE */
41465
- }, 8, ["content"]),
41466
- createVNode(unref(ElTooltip), {
41467
- content: unref(dict).aiArtifacts.download,
41468
- 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
41469
41296
  }, {
41470
41297
  default: withCtx(() => [
41471
- createVNode(unref(ElButton), {
41472
- text: "",
41473
- size: "small",
41474
- "aria-label": unref(dict).aiArtifacts.download,
41475
- onClick: onDownload
41476
- }, {
41298
+ createVNode(unref(ElIcon), null, {
41477
41299
  default: withCtx(() => [
41478
- createVNode(unref(ElIcon), null, {
41479
- default: withCtx(() => [
41480
- createVNode(unref(Download))
41481
- ]),
41482
- _: 1
41483
- /* STABLE */
41484
- })
41300
+ createVNode(unref(CopyDocument))
41485
41301
  ]),
41486
41302
  _: 1
41487
41303
  /* STABLE */
41488
- }, 8, ["aria-label"])
41304
+ })
41489
41305
  ]),
41490
41306
  _: 1
41491
41307
  /* STABLE */
41492
- }, 8, ["content"]),
41493
- current.value?.type === "html" ? (openBlock(), createBlock(unref(ElTooltip), {
41494
- key: 0,
41495
- content: unref(dict).aiArtifacts.fullscreen,
41496
- 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
41497
41323
  }, {
41498
41324
  default: withCtx(() => [
41499
- createVNode(unref(ElButton), {
41500
- text: "",
41501
- size: "small",
41502
- "aria-label": unref(dict).aiArtifacts.fullscreen,
41503
- onClick: onFullscreen
41504
- }, {
41325
+ createVNode(unref(ElIcon), null, {
41505
41326
  default: withCtx(() => [
41506
- createVNode(unref(ElIcon), null, {
41507
- default: withCtx(() => [
41508
- createVNode(unref(FullScreen))
41509
- ]),
41510
- _: 1
41511
- /* STABLE */
41512
- })
41327
+ createVNode(unref(Download))
41513
41328
  ]),
41514
41329
  _: 1
41515
41330
  /* STABLE */
41516
- }, 8, ["aria-label"])
41331
+ })
41517
41332
  ]),
41518
41333
  _: 1
41519
41334
  /* STABLE */
41520
- }, 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(() => [
41521
41346
  createVNode(unref(ElButton), {
41522
41347
  text: "",
41523
41348
  size: "small",
41524
- class: "fv-artifacts-close",
41525
- "aria-label": unref(dict).aiArtifacts.close,
41526
- onClick: onClose
41349
+ "aria-label": unref(dict).aiArtifacts.fullscreen,
41350
+ onClick: onFullscreen
41527
41351
  }, {
41528
41352
  default: withCtx(() => [
41529
41353
  createVNode(unref(ElIcon), null, {
41530
41354
  default: withCtx(() => [
41531
- createVNode(unref(Close))
41355
+ createVNode(unref(FullScreen))
41532
41356
  ]),
41533
41357
  _: 1
41534
41358
  /* STABLE */
@@ -41538,23 +41362,41 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
41538
41362
  /* STABLE */
41539
41363
  }, 8, ["aria-label"])
41540
41364
  ]),
41541
- createCommentVNode(" iframe \u6C99\u7BB1\u9884\u89C8 "),
41542
- createElementVNode("iframe", {
41543
- ref_key: "iframeRef",
41544
- ref: iframeRef,
41545
- class: "fv-artifacts-frame",
41546
- srcdoc: srcdoc.value,
41547
- sandbox: "allow-scripts allow-downloads",
41548
- title: "artifact-preview"
41549
- }, null, 8, _hoisted_3$4)
41550
- ],
41551
- 4
41552
- /* STYLE */
41553
- )) : 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)
41554
41396
  ],
41555
- 2112
41556
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41557
- );
41397
+ 4
41398
+ /* STYLE */
41399
+ )) : createCommentVNode("v-if", true);
41558
41400
  };
41559
41401
  }
41560
41402
  });
@@ -41969,7 +41811,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41969
41811
  class: normalizeClass(["fv-ai-chat", { "is-dark": isDark.value, "is-center-welcome": isCenterWelcome.value, "is-empty": isEmpty.value }])
41970
41812
  },
41971
41813
  [
41972
- createCommentVNode(" \u9876\u680F:\u6807\u9898 + \u6A21\u578B\u9009\u62E9\u5668(models \u6709\u503C\u65F6 multiple) "),
41973
41814
  __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
41974
41815
  createElementVNode(
41975
41816
  "div",
@@ -42007,7 +41848,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42007
41848
  /* STABLE */
42008
41849
  }, 8, ["modelValue", "placeholder"])) : createCommentVNode("v-if", true)
42009
41850
  ])) : createCommentVNode("v-if", true),
42010
- createCommentVNode(" \u6D88\u606F\u533A:\u7A7A\u65F6 Welcome + Prompts(AiMessages \u5185\u7F6E);\u5F00\u542F artifacts \u65F6\u53F3\u4FA7\u62FC\u9884\u89C8\u9762\u677F "),
42011
41851
  createElementVNode("div", _hoisted_3$3, [
42012
41852
  createVNode(_sfc_main$6, {
42013
41853
  ref_key: "messagesRef",
@@ -42158,7 +41998,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42158
41998
  onChange: onArtifactChange
42159
41999
  }, null, 8, ["artifacts", "active-key", "width", "min-width", "max-width"])) : createCommentVNode("v-if", true)
42160
42000
  ]),
42161
- 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) "),
42162
42001
  createElementVNode("div", _hoisted_4$2, [
42163
42002
  createVNode(_sfc_main$j, {
42164
42003
  placeholder: __props.placeholder,
@@ -42588,7 +42427,10 @@ const _hoisted_8$1 = {
42588
42427
  key: 0,
42589
42428
  class: "fv-ai-sidebar-loading-tip"
42590
42429
  };
42591
- 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
+ };
42592
42434
  var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42593
42435
  ...{ name: "FvAiSessionSidebar" },
42594
42436
  __name: "index",
@@ -42775,62 +42617,170 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42775
42617
  });
42776
42618
  onMounted(reload);
42777
42619
  return (_ctx, _cache) => {
42778
- return openBlock(), createElementBlock(
42779
- Fragment,
42780
- null,
42781
- [
42782
- createCommentVNode(" \u5C55\u5F00\u6001:\u5B8C\u6574\u4FA7\u680F "),
42783
- !collapsed.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
42784
- 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 "),
42785
- createElementVNode("div", _hoisted_2$2, [
42786
- renderSlot(_ctx.$slots, "brand", {}, () => [
42787
- createElementVNode("div", _hoisted_3$2, [
42788
- __props.brandIcon ? (openBlock(), createElementBlock("img", {
42789
- key: 0,
42790
- class: "fv-ai-sidebar-brand-badge-img",
42791
- src: __props.brandIcon,
42792
- alt: __props.brandName
42793
- }, null, 8, _hoisted_4$1)) : createCommentVNode("v-if", true)
42794
- ]),
42795
- createElementVNode(
42796
- "span",
42797
- _hoisted_5$1,
42798
- toDisplayString(__props.brandName),
42799
- 1
42800
- /* TEXT */
42801
- ),
42802
- createVNode(unref(ElTooltip), {
42803
- content: unref(dict).sessionSidebar.collapse,
42804
- placement: "bottom",
42805
- "show-after": 300
42806
- }, {
42807
- default: withCtx(() => [
42808
- createElementVNode("button", {
42809
- class: "fv-ai-sidebar-collapse",
42810
- type: "button",
42811
- onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42812
- }, [
42813
- createVNode(_sfc_main$c, {
42814
- name: "sidebar",
42815
- size: 16
42816
- })
42817
- ])
42818
- ]),
42819
- _: 1
42820
- /* STABLE */
42821
- }, 8, ["content"])
42822
- ])
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)
42823
42630
  ]),
42824
- 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) "),
42825
- createElementVNode("button", {
42826
- class: "fv-ai-sidebar-new-chat",
42827
- type: "button",
42828
- onClick: onCreate
42829
- }, [
42830
- renderSlot(_ctx.$slots, "new-chat", {}, () => [
42831
- 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" }, {
42832
42782
  default: withCtx(() => [
42833
- createVNode(unref(Plus))
42783
+ createVNode(unref(Loading))
42834
42784
  ]),
42835
42785
  _: 1
42836
42786
  /* STABLE */
@@ -42838,221 +42788,87 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42838
42788
  createElementVNode(
42839
42789
  "span",
42840
42790
  null,
42841
- toDisplayString(unref(dict).sessionSidebar.newChat),
42791
+ toDisplayString(unref(dict).sessionSidebar.listLoading),
42842
42792
  1
42843
42793
  /* TEXT */
42844
42794
  )
42845
- ])
42795
+ ])) : createCommentVNode("v-if", true)
42846
42796
  ]),
42847
- 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' "),
42848
- archiveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
42849
- 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) "),
42850
- createVNode(unref(ElSegmented), {
42851
- modelValue: statusFilter.value,
42852
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42853
- options: statusOptions.value,
42854
- onChange: _cache[2] || (_cache[2] = () => reload())
42855
- }, null, 8, ["modelValue", "options"])
42856
- ])) : createCommentVNode("v-if", true),
42857
- createCommentVNode(" \u641C\u7D22:keyword \u540E\u7AEF\u6A21\u7CCA\u641C\u7D22(\u9632\u6296),\u4E0E\u7B5B\u9009 tab \u6B63\u4EA4 "),
42858
- __props.searchable ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
42859
- createVNode(unref(ElInput), {
42860
- ref_key: "searchInputRef",
42861
- ref: searchInputRef,
42862
- modelValue: keyword.value,
42863
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42864
- placeholder: unref(dict).sessionSidebar.searchPlaceholder,
42865
- clearable: "",
42866
- "prefix-icon": unref(Search)
42867
- }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42868
- ])) : createCommentVNode("v-if", true),
42869
- 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) "),
42870
- createVNode(
42871
- unref(ElScrollbar),
42872
- {
42873
- ref_key: "listScrollbarRef",
42874
- ref: listScrollbarRef,
42875
- class: "fv-ai-sidebar-list",
42876
- onScroll: onListScroll
42877
- },
42878
- {
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 }, {
42879
42836
  default: withCtx(() => [
42880
- createVNode(_sfc_main$9, {
42881
- ref_key: "conversationsRef",
42882
- ref: conversationsRef,
42883
- items: conversationItems.value,
42884
- active: __props.activeId ?? void 0,
42885
- loading: loading.value,
42886
- "has-more": hasMore.value,
42887
- locale: __props.locale,
42888
- "onUpdate:active": onSelect,
42889
- onMenuCommand
42890
- }, {
42891
- menu: withCtx(({ item }) => [
42892
- 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 "),
42893
- renderSlot(_ctx.$slots, "menu", { item }, () => [
42894
- createVNode(unref(ElDropdownItem), { command: "prompt-rename" }, {
42895
- default: withCtx(() => [
42896
- createTextVNode(
42897
- toDisplayString(unref(dict).conversations.rename),
42898
- 1
42899
- /* TEXT */
42900
- )
42901
- ]),
42902
- _: 1
42903
- /* STABLE */
42904
- }),
42905
- archiveEnabled.value ? (openBlock(), createBlock(
42906
- unref(ElDropdownItem),
42907
- {
42908
- key: 0,
42909
- command: "archive"
42910
- },
42911
- {
42912
- default: withCtx(() => [
42913
- createTextVNode(
42914
- toDisplayString(isArchived(String(item.key)) ? unref(dict).sessionSidebar.restore : unref(dict).sessionSidebar.archive),
42915
- 1
42916
- /* TEXT */
42917
- )
42918
- ]),
42919
- _: 2
42920
- /* DYNAMIC */
42921
- },
42922
- 1024
42923
- /* DYNAMIC_SLOTS */
42924
- )) : createCommentVNode("v-if", true),
42925
- createVNode(unref(ElDropdownItem), {
42926
- command: "prompt-delete",
42927
- divided: ""
42928
- }, {
42929
- default: withCtx(() => [
42930
- createTextVNode(
42931
- toDisplayString(unref(dict).conversations.delete),
42932
- 1
42933
- /* TEXT */
42934
- )
42935
- ]),
42936
- _: 1
42937
- /* STABLE */
42938
- })
42939
- ])
42940
- ]),
42941
- item: withCtx((scope) => [
42942
- renderSlot(_ctx.$slots, "item", {
42943
- item: scope.item,
42944
- active: scope.active
42945
- })
42946
- ]),
42947
- _: 3
42948
- /* FORWARDED */
42949
- }, 8, ["items", "active", "loading", "has-more", "locale"]),
42950
- 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) "),
42951
- loading.value && sessions.value.length ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
42952
- createVNode(unref(ElIcon), { class: "is-loading" }, {
42953
- default: withCtx(() => [
42954
- createVNode(unref(Loading))
42955
- ]),
42956
- _: 1
42957
- /* STABLE */
42958
- }),
42959
- createElementVNode(
42960
- "span",
42961
- null,
42962
- toDisplayString(unref(dict).sessionSidebar.listLoading),
42963
- 1
42964
- /* TEXT */
42965
- )
42966
- ])) : createCommentVNode("v-if", true)
42837
+ createVNode(unref(Plus))
42967
42838
  ]),
42968
- _: 3
42969
- /* FORWARDED */
42970
- },
42971
- 512
42972
- /* NEED_PATCH */
42973
- )
42974
- ])) : (openBlock(), createElementBlock(
42975
- Fragment,
42976
- { key: 1 },
42977
- [
42978
- createCommentVNode(" \u6536\u8D77\u6001:\u7A84\u6761(\u5C55\u5F00 + \u65B0\u5EFA + \u641C\u7D22,\u5747\u65E0\u8272\u5E95\u56FE\u6807\u6309\u94AE) "),
42979
- createElementVNode("div", _hoisted_9$1, [
42980
- createVNode(unref(ElTooltip), {
42981
- content: unref(dict).sessionSidebar.expand,
42982
- placement: "right",
42983
- "show-after": 300
42984
- }, {
42985
- default: withCtx(() => [
42986
- createElementVNode("button", {
42987
- class: "fv-ai-sidebar-rail",
42988
- type: "button",
42989
- onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42990
- }, [
42991
- createVNode(_sfc_main$c, {
42992
- name: "sidebar",
42993
- size: 16
42994
- })
42995
- ])
42996
- ]),
42997
- _: 1
42998
- /* STABLE */
42999
- }, 8, ["content"]),
43000
- createVNode(unref(ElTooltip), {
43001
- content: unref(dict).sessionSidebar.newChat,
43002
- placement: "right",
43003
- "show-after": 300
43004
- }, {
43005
- default: withCtx(() => [
43006
- createElementVNode("button", {
43007
- class: "fv-ai-sidebar-rail",
43008
- type: "button",
43009
- onClick: onCreate
43010
- }, [
43011
- createVNode(unref(ElIcon), { size: 16 }, {
43012
- default: withCtx(() => [
43013
- createVNode(unref(Plus))
43014
- ]),
43015
- _: 1
43016
- /* STABLE */
43017
- })
43018
- ])
43019
- ]),
43020
- _: 1
43021
- /* STABLE */
43022
- }, 8, ["content"]),
43023
- __props.searchable ? (openBlock(), createBlock(unref(ElTooltip), {
43024
- key: 0,
43025
- content: unref(dict).sessionSidebar.searchPlaceholder,
43026
- placement: "right",
43027
- "show-after": 300
43028
- }, {
43029
- default: withCtx(() => [
43030
- createElementVNode("button", {
43031
- class: "fv-ai-sidebar-rail",
43032
- type: "button",
43033
- onClick: expandToSearch
43034
- }, [
43035
- createVNode(unref(ElIcon), { size: 16 }, {
43036
- default: withCtx(() => [
43037
- createVNode(unref(Search))
43038
- ]),
43039
- _: 1
43040
- /* STABLE */
43041
- })
43042
- ])
43043
- ]),
43044
- _: 1
43045
- /* STABLE */
43046
- }, 8, ["content"])) : createCommentVNode("v-if", true)
43047
- ])
43048
- ],
43049
- 2112
43050
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43051
- ))
43052
- ],
43053
- 2112
43054
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
43055
- );
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
+ ]));
43056
42872
  };
43057
42873
  }
43058
42874
  });
@@ -43337,7 +43153,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43337
43153
  style: normalizeStyle(bodyStyle.value)
43338
43154
  },
43339
43155
  [
43340
- 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 "),
43341
43156
  (openBlock(), createBlock(_sfc_main$4, {
43342
43157
  key: viewKey.value,
43343
43158
  adapter: lazyAdapter,
@@ -43456,7 +43271,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43456
43271
  key: "11"
43457
43272
  } : void 0
43458
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"])),
43459
- 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) "),
43460
43274
  hasEarlier.value && atTop.value ? (openBlock(), createBlock(unref(ElButton), {
43461
43275
  key: 0,
43462
43276
  class: "fv-ai-chat-panel-load-earlier",
@@ -43476,7 +43290,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43476
43290
  _: 1
43477
43291
  /* STABLE */
43478
43292
  }, 8, ["loading"])) : createCommentVNode("v-if", true),
43479
- createCommentVNode(" \u5207\u4F1A\u8BDD\u8BE6\u60C5\u52A0\u8F7D\u906E\u7F69(\u8349\u7A3F\u5207\u6362\u4E0D\u89E6\u53D1\u2014\u2014\u65E0\u8BF7\u6C42) "),
43480
43293
  detailLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
43481
43294
  createVNode(unref(ElIcon), { class: "is-loading" }, {
43482
43295
  default: withCtx(() => [
@@ -44128,351 +43941,334 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
44128
43941
  }
44129
43942
  __expose({ open, close, toggleMode, toggleMaximize, newChat, switchToPrevious, refresh });
44130
43943
  return (_ctx, _cache) => {
44131
- return openBlock(), createElementBlock(
44132
- Fragment,
44133
- null,
44134
- [
44135
- 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 "),
44136
- (openBlock(), createBlock(Teleport, { to: "body" }, [
44137
- createElementVNode("div", _hoisted_1$1, [
44138
- 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 "),
44139
- 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(
44140
43960
  "div",
44141
43961
  {
44142
43962
  key: 0,
44143
- class: normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
44144
- 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)
44145
43974
  },
44146
- null,
44147
- 6
44148
- /* CLASS, STYLE */
44149
- )) : createCommentVNode("v-if", true),
44150
- createVNode(Transition, { name: "fv-ai-widget-slide" }, {
44151
- default: withCtx(() => [
44152
- 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(
44153
44007
  "div",
44154
44008
  {
44155
- key: 0,
44156
- ref_key: "widgetEl",
44157
- ref: widgetEl,
44158
- class: normalizeClass(["fv-ai-widget", [
44159
- `is-${drawerSide.value}`,
44160
- {
44161
- "is-floating": mode.value === "floating",
44162
- "is-maximized": isMaximized.value,
44163
- "is-dragging": isDragging.value
44164
- }
44165
- ]]),
44166
- style: normalizeStyle(panelStyle.value)
44009
+ class: "fv-ai-widget-header",
44010
+ onMousedown: onHeaderDragStart
44167
44011
  },
44168
44012
  [
44169
- 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 "),
44170
- (openBlock(true), createElementBlock(
44013
+ !isMaximized.value ? (openBlock(), createElementBlock(
44171
44014
  Fragment,
44172
- null,
44173
- renderList(resizeEdges.value, (edge) => {
44174
- return openBlock(), createElementBlock("div", {
44175
- key: edge,
44176
- class: normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
44177
- onMousedown: ($event) => onResizeStart($event, edge)
44178
- }, null, 42, _hoisted_2$1);
44179
- }),
44180
- 128
44181
- /* KEYED_FRAGMENT */
44182
- )),
44183
- 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) "),
44184
- isMaximized.value ? (openBlock(), createBlock(_sfc_main$3, {
44185
- key: 0,
44186
- ref_key: "sidebarRef",
44187
- ref: sidebarRef,
44188
- collapsed: sidebarCollapsed.value,
44189
- "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
44190
- class: "fv-ai-widget-sidebar",
44191
- service: __props.service,
44192
- "active-id": activeSessionId.value,
44193
- searchable: true,
44194
- "brand-name": displayTitle.value,
44195
- "brand-icon": avatarSrc.value,
44196
- locale: __props.locale,
44197
- onSelect: onSidebarSelect,
44198
- onNewChat,
44199
- onRemoved: onSidebarRemoved
44200
- }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : createCommentVNode("v-if", true),
44201
- 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) "),
44202
- createElementVNode(
44203
- "div",
44204
- {
44205
- class: "fv-ai-widget-header",
44206
- onMousedown: onHeaderDragStart
44207
- },
44015
+ { key: 0 },
44208
44016
  [
44209
- 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 "),
44210
- !isMaximized.value ? (openBlock(), createElementBlock(
44211
- Fragment,
44212
- { key: 0 },
44213
- [
44214
- renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44215
- createElementVNode("img", {
44216
- class: "fv-ai-widget-avatar",
44217
- src: avatarSrc.value,
44218
- alt: ""
44219
- }, null, 8, _hoisted_3$1)
44220
- ]),
44221
- createElementVNode("div", _hoisted_4, [
44222
- renderSlot(_ctx.$slots, "header-title", {}, () => [
44223
- createTextVNode(
44224
- toDisplayString(displayTitle.value),
44225
- 1
44226
- /* TEXT */
44227
- )
44228
- ])
44229
- ])
44230
- ],
44231
- 64
44232
- /* STABLE_FRAGMENT */
44233
- )) : (openBlock(), createElementBlock("div", _hoisted_5)),
44234
- renderSlot(_ctx.$slots, "header-actions"),
44235
- 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 "),
44236
- !isMaximized.value ? (openBlock(), createElementBlock(
44237
- Fragment,
44238
- { key: 2 },
44239
- [
44240
- createVNode(unref(ElTooltip), {
44241
- content: unref(dict).aiChatPanel.history,
44242
- "show-after": 300,
44243
- placement: "bottom"
44244
- }, {
44245
- default: withCtx(() => [
44246
- createElementVNode("button", {
44247
- type: "button",
44248
- class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44249
- "aria-label": unref(dict).aiChatPanel.history,
44250
- onClick: onHistoryToggle
44251
- }, [
44252
- createVNode(unref(ElIcon), { size: 18 }, {
44253
- default: withCtx(() => [
44254
- createVNode(unref(Clock))
44255
- ]),
44256
- _: 1
44257
- /* STABLE */
44258
- })
44259
- ], 8, _hoisted_6)
44260
- ]),
44261
- _: 1
44262
- /* STABLE */
44263
- }, 8, ["content"]),
44264
- createVNode(unref(ElTooltip), {
44265
- content: unref(dict).sessionSidebar.newChat,
44266
- "show-after": 300,
44267
- placement: "bottom"
44268
- }, {
44269
- default: withCtx(() => [
44270
- createElementVNode("button", {
44271
- type: "button",
44272
- class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44273
- "aria-label": unref(dict).sessionSidebar.newChat,
44274
- onClick: onNewChat
44275
- }, [
44276
- createVNode(unref(ElIcon), { size: 18 }, {
44277
- default: withCtx(() => [
44278
- createVNode(unref(Plus))
44279
- ]),
44280
- _: 1
44281
- /* STABLE */
44282
- })
44283
- ], 8, _hoisted_7)
44284
- ]),
44285
- _: 1
44286
- /* STABLE */
44287
- }, 8, ["content"]),
44288
- __props.showModeToggle ? (openBlock(), createBlock(unref(ElTooltip), {
44289
- key: 0,
44290
- content: mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44291
- "show-after": 300,
44292
- placement: "bottom"
44293
- }, {
44294
- default: withCtx(() => [
44295
- createElementVNode("button", {
44296
- type: "button",
44297
- class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44298
- "aria-label": mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44299
- onClick: toggleMode
44300
- }, [
44301
- mode.value === "drawer" ? (openBlock(), createBlock(_sfc_main$c, {
44302
- key: 0,
44303
- name: "to-window",
44304
- size: 18
44305
- })) : (openBlock(), createBlock(_sfc_main$c, {
44306
- key: 1,
44307
- name: "to-drawer",
44308
- size: 18
44309
- }))
44310
- ], 8, _hoisted_8)
44311
- ]),
44312
- _: 1
44313
- /* STABLE */
44314
- }, 8, ["content"])) : createCommentVNode("v-if", true)
44315
- ],
44316
- 64
44317
- /* STABLE_FRAGMENT */
44318
- )) : createCommentVNode("v-if", true),
44319
- __props.maximizable ? (openBlock(), createBlock(unref(ElTooltip), {
44320
- key: 3,
44321
- 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,
44322
44044
  "show-after": 300,
44323
44045
  placement: "bottom"
44324
44046
  }, {
44325
44047
  default: withCtx(() => [
44326
44048
  createElementVNode("button", {
44327
44049
  type: "button",
44328
- class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44329
- "aria-label": isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44330
- onClick: toggleMaximize
44050
+ class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44051
+ "aria-label": unref(dict).aiChatPanel.history,
44052
+ onClick: onHistoryToggle
44331
44053
  }, [
44332
- isMaximized.value ? (openBlock(), createBlock(_sfc_main$c, {
44333
- key: 0,
44334
- name: "win-restore",
44335
- size: 18
44336
- })) : (openBlock(), createBlock(_sfc_main$c, {
44337
- key: 1,
44338
- name: "maximize",
44339
- size: 18
44340
- }))
44341
- ], 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)
44342
44062
  ]),
44343
44063
  _: 1
44344
44064
  /* STABLE */
44345
- }, 8, ["content"])) : createCommentVNode("v-if", true),
44065
+ }, 8, ["content"]),
44346
44066
  createVNode(unref(ElTooltip), {
44347
- content: unref(dict).aiChatPanel.close,
44067
+ content: unref(dict).sessionSidebar.newChat,
44348
44068
  "show-after": 300,
44349
44069
  placement: "bottom"
44350
44070
  }, {
44351
44071
  default: withCtx(() => [
44352
44072
  createElementVNode("button", {
44353
44073
  type: "button",
44354
- class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44355
- "aria-label": unref(dict).aiChatPanel.close,
44356
- 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
44357
44077
  }, [
44358
44078
  createVNode(unref(ElIcon), { size: 18 }, {
44359
44079
  default: withCtx(() => [
44360
- createVNode(unref(Close))
44080
+ createVNode(unref(Plus))
44361
44081
  ]),
44362
44082
  _: 1
44363
44083
  /* STABLE */
44364
44084
  })
44365
- ], 8, _hoisted_10)
44085
+ ], 8, _hoisted_7)
44366
44086
  ]),
44367
44087
  _: 1
44368
44088
  /* STABLE */
44369
- }, 8, ["content"])
44370
- ],
44371
- 32
44372
- /* NEED_HYDRATION */
44373
- ),
44374
- 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) "),
44375
- createElementVNode(
44376
- "div",
44377
- {
44378
- class: normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44379
- },
44380
- [
44381
- 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 "),
44382
- 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
+ }, {
44383
44096
  default: withCtx(() => [
44384
- historyOpen.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
44385
- createElementVNode("div", _hoisted_12, [
44386
- createElementVNode("button", {
44387
- type: "button",
44388
- class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44389
- "aria-label": unref(dict).aiChatPanel.back,
44390
- onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44391
- }, [
44392
- createVNode(unref(ElIcon), { size: 16 }, {
44393
- default: withCtx(() => [
44394
- createVNode(unref(ArrowLeft))
44395
- ]),
44396
- _: 1
44397
- /* STABLE */
44398
- }),
44399
- createElementVNode(
44400
- "span",
44401
- _hoisted_14,
44402
- toDisplayString(unref(dict).aiChatPanel.back),
44403
- 1
44404
- /* TEXT */
44405
- )
44406
- ], 8, _hoisted_13)
44407
- ]),
44408
- createElementVNode("div", _hoisted_15, [
44409
- createVNode(_sfc_main$9, {
44410
- ref_key: "conversationsRef",
44411
- ref: conversationsRef,
44412
- items: historyItems.value,
44413
- active: activeSessionId.value,
44414
- loading: historyLoading.value,
44415
- "has-more": historyHasMore.value,
44416
- locale: __props.locale,
44417
- "onUpdate:active": onSelectSession,
44418
- onLoadMore: loadMoreHistory,
44419
- onMenuCommand: onHistoryMenuCommand
44420
- }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44421
- !historyLoading.value && !historyItems.value.length ? (openBlock(), createElementBlock(
44422
- "div",
44423
- _hoisted_16,
44424
- toDisplayString(unref(dict).aiChatPanel.historyEmpty),
44425
- 1
44426
- /* TEXT */
44427
- )) : createCommentVNode("v-if", true)
44428
- ])
44429
- ])) : 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)
44430
44113
  ]),
44431
44114
  _: 1
44432
44115
  /* STABLE */
44433
- }),
44434
- createVNode(_sfc_main$2, mergeProps({
44435
- ref_key: "panelRef",
44436
- ref: panelRef
44437
- }, panelProps.value, {
44438
- "session-id": activeSessionId.value,
44439
- "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44440
- "center-welcome": isMaximized.value,
44441
- onSessionCreated,
44442
- onRoundComplete
44443
- }, toHandlers(panelListeners)), createSlots({
44444
- _: 2
44445
- /* 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
44446
44133
  }, [
44447
- renderList(_ctx.$slots, (_, name) => {
44448
- return {
44449
- name,
44450
- fn: withCtx((slotProps) => [
44451
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
44452
- ])
44453
- };
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 */
44454
44166
  })
44455
- ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44456
- ],
44457
- 2
44458
- /* CLASS */
44459
- )
44167
+ ], 8, _hoisted_10)
44168
+ ]),
44169
+ _: 1
44170
+ /* STABLE */
44171
+ }, 8, ["content"])
44460
44172
  ],
44461
- 6
44462
- /* CLASS, STYLE */
44463
- )), [
44464
- [vShow, __props.modelValue]
44465
- ]) : createCommentVNode("v-if", true)
44466
- ]),
44467
- _: 3
44468
- /* FORWARDED */
44469
- })
44470
- ])
44471
- ]))
44472
- ],
44473
- 2112
44474
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44475
- );
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
+ ]);
44476
44272
  };
44477
44273
  }
44478
44274
  });
@@ -44683,32 +44479,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44683
44479
  onClick: _cache[1] || (_cache[1] = ($event) => __props.interactive && onClickGuard($event))
44684
44480
  }, {
44685
44481
  default: withCtx(() => [
44686
- 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) "),
44687
44482
  createVNode(_sfc_main$8, mergeProps({
44688
44483
  class: "fv-ai-launcher-halo",
44689
44484
  size: __props.size
44690
44485
  }, haloProps.value), null, 16, ["size"]),
44691
- 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 "),
44692
44486
  createElementVNode("span", _hoisted_1, [
44693
44487
  renderSlot(_ctx.$slots, "default", {}, () => [
44694
44488
  renderSlot(_ctx.$slots, "icon", {}, () => [
44695
44489
  __props.iconComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.iconComponent), {
44696
44490
  key: 0,
44697
44491
  class: "fv-ai-launcher-comp-icon"
44698
- })) : !__props.icon ? (openBlock(), createElementBlock(
44699
- Fragment,
44700
- { key: 1 },
44701
- [
44702
- 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> "),
44703
- createElementVNode("span", {
44704
- class: normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44705
- "aria-hidden": "true",
44706
- innerHTML: unref(defaultAvatarSvg)
44707
- }, null, 10, _hoisted_2)
44708
- ],
44709
- 2112
44710
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
44711
- )) : (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", {
44712
44498
  key: 2,
44713
44499
  class: "fv-ai-launcher-avatar",
44714
44500
  src: __props.icon,