@fv-ui/ai-chat 1.9.2 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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';
@@ -33234,7 +33234,9 @@ const zhCN = {
33234
33234
  welcome: {
33235
33235
  greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
33236
33236
  greetingName: "Gizmo",
33237
- description: "\u6211\u53EF\u4EE5\u5E2E\u4F60\u67E5\u8BE2\u6570\u636E\u3001\u5206\u6790\u95EE\u9898\u3001\u751F\u6210\u62A5\u8868\u3001\u4EE5\u53CA\u6267\u884C\u7CFB\u7EDF\u64CD\u4F5C\uFF0C\u8BA9\u751F\u4EA7\u7BA1\u7406\u66F4\u9AD8\u6548\u3002"
33237
+ description: "\u6211\u53EF\u4EE5\u5E2E\u4F60\u67E5\u8BE2\u6570\u636E\u3001\u5206\u6790\u95EE\u9898\u3001\u751F\u6210\u62A5\u8868\u3001\u4EE5\u53CA\u6267\u884C\u7CFB\u7EDF\u64CD\u4F5C\uFF0C\u8BA9\u751F\u4EA7\u7BA1\u7406\u66F4\u9AD8\u6548\u3002",
33238
+ /** 空态建议区「换一批」按钮默认文案 */
33239
+ refreshSuggestions: "\u6362\u4E00\u6279"
33238
33240
  },
33239
33241
  sender: {
33240
33242
  clear: "\u6E05\u7A7A",
@@ -33430,7 +33432,9 @@ const en = {
33430
33432
  welcome: {
33431
33433
  greetingPrefix: "Hello, I am ",
33432
33434
  greetingName: "Gizmo",
33433
- description: "I can help you query data, analyze problems, generate reports, and perform system operations to make production management more efficient."
33435
+ description: "I can help you query data, analyze problems, generate reports, and perform system operations to make production management more efficient.",
33436
+ /** 空态建议区「换一批」按钮默认文案 */
33437
+ refreshSuggestions: "Refresh suggestions"
33434
33438
  },
33435
33439
  sender: {
33436
33440
  clear: "Clear",
@@ -33619,7 +33623,9 @@ const ko = {
33619
33623
  welcome: {
33620
33624
  greetingPrefix: "\uC548\uB155\uD558\uC138\uC694, \uC800\uB294 ",
33621
33625
  greetingName: "Gizmo",
33622
- description: "\uB370\uC774\uD130 \uC870\uD68C, \uBB38\uC81C \uBD84\uC11D, \uBCF4\uACE0\uC11C \uC0DD\uC131, \uC2DC\uC2A4\uD15C \uC791\uC5C5 \uC2E4\uD589\uC744 \uB3C4\uC640\uB4DC\uB824 \uC0DD\uC0B0 \uAD00\uB9AC\uB97C \uB354 \uD6A8\uC728\uC801\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC694."
33626
+ description: "\uB370\uC774\uD130 \uC870\uD68C, \uBB38\uC81C \uBD84\uC11D, \uBCF4\uACE0\uC11C \uC0DD\uC131, \uC2DC\uC2A4\uD15C \uC791\uC5C5 \uC2E4\uD589\uC744 \uB3C4\uC640\uB4DC\uB824 \uC0DD\uC0B0 \uAD00\uB9AC\uB97C \uB354 \uD6A8\uC728\uC801\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC694.",
33627
+ /** 空态建议区「换一批」按钮默认文案 */
33628
+ refreshSuggestions: "\uB2E4\uB978 \uCD94\uCC9C \uBCF4\uAE30"
33623
33629
  },
33624
33630
  sender: {
33625
33631
  clear: "\uC9C0\uC6B0\uAE30",
@@ -33818,7 +33824,9 @@ const vi = {
33818
33824
  welcome: {
33819
33825
  greetingPrefix: "Xin ch\xE0o, t\xF4i l\xE0 ",
33820
33826
  greetingName: "Gizmo",
33821
- description: "T\xF4i c\xF3 th\u1EC3 gi\xFAp b\u1EA1n truy v\u1EA5n d\u1EEF li\u1EC7u, ph\xE2n t\xEDch v\u1EA5n \u0111\u1EC1, t\u1EA1o b\xE1o c\xE1o v\xE0 thao t\xE1c h\u1EC7 th\u1ED1ng, gi\xFAp vi\u1EC7c qu\u1EA3n l\xFD s\u1EA3n xu\u1EA5t hi\u1EC7u qu\u1EA3 h\u01A1n."
33827
+ description: "T\xF4i c\xF3 th\u1EC3 gi\xFAp b\u1EA1n truy v\u1EA5n d\u1EEF li\u1EC7u, ph\xE2n t\xEDch v\u1EA5n \u0111\u1EC1, t\u1EA1o b\xE1o c\xE1o v\xE0 thao t\xE1c h\u1EC7 th\u1ED1ng, gi\xFAp vi\u1EC7c qu\u1EA3n l\xFD s\u1EA3n xu\u1EA5t hi\u1EC7u qu\u1EA3 h\u01A1n.",
33828
+ /** 空态建议区「换一批」按钮默认文案 */
33829
+ refreshSuggestions: "\u0110\u1ED5i g\u1EE3i \xFD kh\xE1c"
33822
33830
  },
33823
33831
  sender: {
33824
33832
  clear: "X\xF3a h\u1EBFt",
@@ -34017,7 +34025,9 @@ const zhHK = {
34017
34025
  welcome: {
34018
34026
  greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
34019
34027
  greetingName: "Gizmo",
34020
- description: "\u6211\u53EF\u4EE5\u5E6B\u4F60\u67E5\u8A62\u8CC7\u6599\u3001\u5206\u6790\u554F\u984C\u3001\u7522\u751F\u5831\u8868\uFF0C\u4EE5\u53CA\u57F7\u884C\u7CFB\u7D71\u64CD\u4F5C\uFF0C\u4EE4\u751F\u7522\u7BA1\u7406\u66F4\u6709\u6548\u7387\u3002"
34028
+ description: "\u6211\u53EF\u4EE5\u5E6B\u4F60\u67E5\u8A62\u8CC7\u6599\u3001\u5206\u6790\u554F\u984C\u3001\u7522\u751F\u5831\u8868\uFF0C\u4EE5\u53CA\u57F7\u884C\u7CFB\u7D71\u64CD\u4F5C\uFF0C\u4EE4\u751F\u7522\u7BA1\u7406\u66F4\u6709\u6548\u7387\u3002",
34029
+ /** 空态建议区「换一批」按钮默认文案 */
34030
+ refreshSuggestions: "\u63DB\u4E00\u6279"
34021
34031
  },
34022
34032
  sender: {
34023
34033
  clear: "\u6E05\u7A7A",
@@ -34329,8 +34339,6 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
34329
34339
  onMouseover: onRootOver,
34330
34340
  onMouseleave: hideTip
34331
34341
  }, 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
34342
  (openBlock(), createBlock(Teleport, { to: "body" }, [
34335
34343
  createElementVNode(
34336
34344
  "div",
@@ -34456,7 +34464,6 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
34456
34464
  class: normalizeClass(["fv-typewriter", { "is-typing": isTyping.value, "is-fog": !!fog.value }])
34457
34465
  },
34458
34466
  [
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
34467
  __props.isMarkdown ? (openBlock(), createBlock(_sfc_main$o, {
34461
34468
  key: 0,
34462
34469
  content: renderedContent.value,
@@ -34477,7 +34484,6 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
34477
34484
  /* TEXT */
34478
34485
  )) : createCommentVNode("v-if", true)
34479
34486
  ])),
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
34487
  fog.value && isTyping.value ? (openBlock(), createElementBlock(
34482
34488
  "span",
34483
34489
  {
@@ -34507,7 +34513,7 @@ const _hoisted_3$i = {
34507
34513
  key: 0,
34508
34514
  class: "fv-bubble-header"
34509
34515
  };
34510
- const _hoisted_4$f = {
34516
+ const _hoisted_4$g = {
34511
34517
  key: 0,
34512
34518
  class: "fv-bubble-loading"
34513
34519
  };
@@ -34585,7 +34591,6 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
34585
34591
  style: normalizeStyle({ "--fv-bubble-avatar-gap": __props.avatarGap, "--fv-bubble-avatar-size": __props.avatarSize || void 0 })
34586
34592
  },
34587
34593
  [
34588
- createCommentVNode(" \u5934\u50CF:placement \u540C\u7F18\u6392\u5217(end \u7ECF row-reverse \u7FFB\u8F6C\u5230\u53F3\u4FA7),#avatar \u63D2\u69FD\u4F18\u5148 "),
34589
34594
  _ctx.$slots.avatar || __props.avatar || __props.avatarIcon ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
34590
34595
  _ctx.$slots.avatar ? renderSlot(_ctx.$slots, "avatar", {}, void 0, void 0, 0) : (openBlock(), createBlock(unref(ElAvatar), {
34591
34596
  key: 1,
@@ -34609,8 +34614,7 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
34609
34614
  class: normalizeClass(["fv-bubble-content", { "no-padding": __props.noPadding, "no-style": __props.noStyle }])
34610
34615
  },
34611
34616
  [
34612
- createCommentVNode(" loading \u4F18\u5148:#loading \u63D2\u69FD\u4F18\u5148\u4E8E\u5185\u7F6E\u4E09\u70B9\u52A8\u753B "),
34613
- __props.loading ? (openBlock(), createElementBlock("div", _hoisted_4$f, [
34617
+ __props.loading ? (openBlock(), createElementBlock("div", _hoisted_4$g, [
34614
34618
  _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", {}, void 0, void 0, 0) : (openBlock(), createElementBlock(
34615
34619
  Fragment,
34616
34620
  { key: 1 },
@@ -34630,35 +34634,18 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
34630
34634
  64
34631
34635
  /* STABLE_FRAGMENT */
34632
34636
  ))
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, {
34637
+ ])) : _ctx.$slots.content ? renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1) : __props.typing ? (openBlock(), createBlock(_sfc_main$n, {
34638
+ key: 2,
34639
+ ref_key: "twRef",
34640
+ ref: twRef,
34641
+ content: __props.content,
34642
+ "is-markdown": __props.isMarkdown,
34643
+ "is-fog": __props.isFog,
34644
+ typing: __props.typing,
34645
+ onStart,
34646
+ onWriting,
34647
+ onFinish
34648
+ }, null, 8, ["content", "is-markdown", "is-fog", "typing"])) : __props.isMarkdown ? (openBlock(), createBlock(_sfc_main$o, {
34662
34649
  key: 3,
34663
34650
  content: __props.content
34664
34651
  }, null, 8, ["content"])) : (openBlock(), createElementBlock(
@@ -34871,7 +34858,6 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
34871
34858
  38
34872
34859
  /* CLASS, STYLE, NEED_HYDRATION */
34873
34860
  ),
34874
- createCommentVNode(" \u56DE\u5E95\u6309\u94AE:\u8DDD\u5E95\u8D85\u8FC7 backButtonThreshold \u663E\u793A "),
34875
34861
  createVNode(Transition, { name: "fv-bubble-list-fade" }, {
34876
34862
  default: withCtx(() => [
34877
34863
  __props.showBackButton && isAwayFromBottom.value ? (openBlock(), createBlock(unref(ElButton), {
@@ -35052,7 +35038,7 @@ const _hoisted_3$h = {
35052
35038
  key: 0,
35053
35039
  class: "fv-sender-body-top"
35054
35040
  };
35055
- const _hoisted_4$e = { class: "fv-sender-row" };
35041
+ const _hoisted_4$f = { class: "fv-sender-row" };
35056
35042
  const _hoisted_5$c = {
35057
35043
  key: 0,
35058
35044
  class: "fv-sender-prefix"
@@ -35062,7 +35048,7 @@ const _hoisted_6$b = {
35062
35048
  "aria-hidden": "true"
35063
35049
  };
35064
35050
  const _hoisted_7$9 = { class: "fv-sender-recording-duration" };
35065
- const _hoisted_8$7 = ["value", "placeholder", "disabled", "readonly"];
35051
+ const _hoisted_8$8 = ["value", "placeholder", "disabled", "readonly"];
35066
35052
  const _hoisted_9$5 = {
35067
35053
  key: 3,
35068
35054
  class: "fv-sender-actions"
@@ -35444,22 +35430,17 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35444
35430
  class: normalizeClass(["fv-sender", [`variant-${__props.variant}`, { "is-disabled": __props.disabled, "is-loading": __props.loading, "is-focused": isFocused.value, "has-shadow": __props.shadow }]])
35445
35431
  },
35446
35432
  [
35447
- createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
35448
35433
  headerVisible.value && _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
35449
35434
  renderSlot(_ctx.$slots, "header")
35450
35435
  ])) : createCommentVNode("v-if", true),
35451
35436
  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
35437
  _ctx.$slots["body-top"] ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
35454
35438
  renderSlot(_ctx.$slots, "body-top")
35455
35439
  ])) : createCommentVNode("v-if", true),
35456
- createCommentVNode(" \u4E3B\u4F53\u884C:\u524D\u7F00 + \u8F93\u5165 + \u64CD\u4F5C "),
35457
- createElementVNode("div", _hoisted_4$e, [
35458
- createCommentVNode(" \u524D\u7F00\u533A "),
35440
+ createElementVNode("div", _hoisted_4$f, [
35459
35441
  _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
35460
35442
  renderSlot(_ctx.$slots, "prefix")
35461
35443
  ])) : 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
35444
  unref(isRecording) ? (openBlock(), createElementBlock(
35464
35445
  "div",
35465
35446
  {
@@ -35561,8 +35542,7 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35561
35542
  onPaste,
35562
35543
  onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
35563
35544
  onBlur: onTextareaBlur
35564
- }, null, 40, _hoisted_8$7),
35565
- createCommentVNode(" \u6307\u4EE4\u5F39\u6846:\u5185\u7F6E el-popover,\u5B9A\u4F4D\u6309 triggerPopover* \u7CFB\u5217 "),
35545
+ }, null, 40, _hoisted_8$8),
35566
35546
  createVNode(unref(ElPopover), {
35567
35547
  visible: triggerVisible.value && __props.triggerStrings.length > 0,
35568
35548
  placement: __props.triggerPopoverPlacement,
@@ -35593,7 +35573,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35593
35573
  4
35594
35574
  /* STYLE */
35595
35575
  )),
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
35576
  hasActionListSlot.value ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
35598
35577
  renderSlot(_ctx.$slots, "action-list")
35599
35578
  ])) : (openBlock(), createElementBlock("div", _hoisted_10$4, [
@@ -35640,7 +35619,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35640
35619
  _: 1
35641
35620
  /* STABLE */
35642
35621
  }, 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
35622
  __props.loading ? (openBlock(), createBlock(unref(ElButton), {
35645
35623
  key: 3,
35646
35624
  class: normalizeClass(["fv-sender-stop", { "is-guarded": stopGuarded.value }]),
@@ -35657,7 +35635,6 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35657
35635
  _: 1
35658
35636
  /* STABLE */
35659
35637
  }),
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
35638
  (openBlock(), createElementBlock("svg", _hoisted_12$4, [
35662
35639
  (openBlock(true), createElementBlock(
35663
35640
  Fragment,
@@ -35700,10 +35677,8 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
35700
35677
  /* STABLE */
35701
35678
  }, 8, ["circle", "disabled", "aria-label"]))
35702
35679
  ]))
35703
- ]),
35704
- createCommentVNode(" /fv-sender-row ")
35680
+ ])
35705
35681
  ]),
35706
- createCommentVNode(" \u5E95\u90E8 "),
35707
35682
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_14$4, [
35708
35683
  renderSlot(_ctx.$slots, "footer")
35709
35684
  ])) : createCommentVNode("v-if", true)
@@ -35724,7 +35699,7 @@ const _hoisted_3$g = {
35724
35699
  key: 1,
35725
35700
  class: "fv-mention-loading"
35726
35701
  };
35727
- const _hoisted_4$d = ["onMouseenter", "onClick"];
35702
+ const _hoisted_4$e = ["onMouseenter", "onClick"];
35728
35703
  const _hoisted_5$b = { class: "fv-mention-avatar" };
35729
35704
  const _hoisted_6$a = ["src", "alt"];
35730
35705
  const _hoisted_7$8 = { class: "fv-mention-name" };
@@ -36031,7 +36006,6 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
36031
36006
  onKeydownCapture
36032
36007
  },
36033
36008
  [
36034
- createCommentVNode(" Sender \u900F\u4F20:\u672A\u58F0\u660E\u7684 props/\u76D1\u542C\u5668\u7ECF $attrs \u4E0B\u4F20;slots \u52A8\u6001\u8F6C\u53D1 "),
36035
36009
  createVNode(_sfc_main$j, mergeProps({
36036
36010
  ref_key: "senderRef",
36037
36011
  ref: senderRef
@@ -36058,7 +36032,6 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
36058
36032
  };
36059
36033
  })
36060
36034
  ]), 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
36035
  mentionVisible.value ? (openBlock(), createBlock(unref(ElPopover), {
36063
36036
  key: 0,
36064
36037
  visible: true,
@@ -36132,7 +36105,7 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
36132
36105
  1
36133
36106
  /* TEXT */
36134
36107
  )
36135
- ], 42, _hoisted_4$d);
36108
+ ], 42, _hoisted_4$e);
36136
36109
  }),
36137
36110
  128
36138
36111
  /* KEYED_FRAGMENT */
@@ -36159,14 +36132,14 @@ const _hoisted_3$f = {
36159
36132
  key: 0,
36160
36133
  class: "fv-editor-prefix"
36161
36134
  };
36162
- const _hoisted_4$c = { class: "fv-editor-input" };
36135
+ const _hoisted_4$d = { class: "fv-editor-input" };
36163
36136
  const _hoisted_5$a = ["contenteditable", "data-placeholder"];
36164
36137
  const _hoisted_6$9 = { class: "fv-editor-mention-panel" };
36165
36138
  const _hoisted_7$7 = {
36166
36139
  key: 0,
36167
36140
  class: "fv-editor-mention-title"
36168
36141
  };
36169
- const _hoisted_8$6 = {
36142
+ const _hoisted_8$7 = {
36170
36143
  key: 1,
36171
36144
  class: "fv-editor-mention-loading"
36172
36145
  };
@@ -36929,17 +36902,14 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
36929
36902
  style: normalizeStyle(__props.customStyle)
36930
36903
  },
36931
36904
  [
36932
- createCommentVNode(" \u5934\u90E8:#header \u63D2\u69FD,openHeader/closeHeader \u63A7\u5236 "),
36933
36905
  headerVisible.value && _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
36934
36906
  renderSlot(_ctx.$slots, "header")
36935
36907
  ])) : createCommentVNode("v-if", true),
36936
36908
  createElementVNode("div", _hoisted_2$f, [
36937
- createCommentVNode(" \u524D\u7F00\u533A "),
36938
36909
  _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
36939
36910
  renderSlot(_ctx.$slots, "prefix")
36940
36911
  ])) : createCommentVNode("v-if", true),
36941
- createElementVNode("div", _hoisted_4$c, [
36942
- createCommentVNode(" \u6807\u7B7E\u7F16\u8F91\u533A:contenteditable,\u5185\u5BB9\u7531\u547D\u4EE4\u5F0F\u6E32\u67D3(nodes \u2192 DOM) "),
36912
+ createElementVNode("div", _hoisted_4$d, [
36943
36913
  createElementVNode("div", {
36944
36914
  ref_key: "editorRef",
36945
36915
  ref: editorRef,
@@ -36954,8 +36924,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
36954
36924
  onFocus: onEditorFocus,
36955
36925
  onBlur: onEditorBlur
36956
36926
  }, 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
36927
  mentionVisible.value ? (openBlock(), createBlock(unref(ElPopover), {
36960
36928
  key: 0,
36961
36929
  visible: true,
@@ -36989,7 +36957,7 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
36989
36957
  )) : createCommentVNode("v-if", true),
36990
36958
  asyncLoading.value ? (openBlock(), createElementBlock(
36991
36959
  "div",
36992
- _hoisted_8$6,
36960
+ _hoisted_8$7,
36993
36961
  toDisplayString(unref(dict).editorSender.loading),
36994
36962
  1
36995
36963
  /* TEXT */
@@ -37039,7 +37007,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37039
37007
  _: 1
37040
37008
  /* STABLE */
37041
37009
  })) : createCommentVNode("v-if", true),
37042
- createCommentVNode(" \u8F93\u5165\u6807\u7B7E tip \u5F39\u5C42(openTipTag/closeTipTag \u63A7\u5236) "),
37043
37010
  tipVisible.value ? (openBlock(), createBlock(unref(ElPopover), {
37044
37011
  key: 1,
37045
37012
  visible: true,
@@ -37076,7 +37043,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37076
37043
  /* FORWARDED */
37077
37044
  })) : createCommentVNode("v-if", true)
37078
37045
  ]),
37079
- createCommentVNode(" \u64CD\u4F5C\u533A:#action-list \u5B58\u5728\u65F6\u5168\u81EA\u5B9A\u4E49,\u9690\u85CF\u5185\u7F6E\u6309\u94AE "),
37080
37046
  hasActionListSlot.value ? (openBlock(), createElementBlock("div", _hoisted_14$3, [
37081
37047
  renderSlot(_ctx.$slots, "action-list")
37082
37048
  ])) : (openBlock(), createElementBlock("div", _hoisted_15$3, [
@@ -37100,7 +37066,6 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37100
37066
  _: 1
37101
37067
  /* STABLE */
37102
37068
  }, 8, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
37103
- createCommentVNode(" loading \u2192 \u505C\u6B62\u6309\u94AE;\u5426\u5219\u53D1\u9001\u6309\u94AE "),
37104
37069
  __props.loading ? (openBlock(), createBlock(unref(ElButton), {
37105
37070
  key: 1,
37106
37071
  class: "fv-editor-stop",
@@ -37141,11 +37106,9 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
37141
37106
  }, 8, ["disabled", "aria-label"]))
37142
37107
  ]))
37143
37108
  ]),
37144
- createCommentVNode(" \u5E95\u90E8 "),
37145
37109
  _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_16$2, [
37146
37110
  renderSlot(_ctx.$slots, "footer")
37147
37111
  ])) : 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
37112
  selectVisible.value && !__props.customDialog ? (openBlock(), createBlock(unref(ElDialog), {
37150
37113
  key: 2,
37151
37114
  "model-value": selectVisible.value,
@@ -37227,7 +37190,7 @@ const _hoisted_2$e = {
37227
37190
  class: "fv-thinking-dot"
37228
37191
  };
37229
37192
  const _hoisted_3$e = { class: "fv-thinking-label" };
37230
- const _hoisted_4$b = ["hidden"];
37193
+ const _hoisted_4$c = ["hidden"];
37231
37194
  var _sfc_main$g = /* @__PURE__ */ defineComponent({
37232
37195
  ...{ name: "FvThinking" },
37233
37196
  __name: "index",
@@ -37286,7 +37249,6 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
37286
37249
  })
37287
37250
  },
37288
37251
  [
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
37252
  !__props.hideHeader ? (openBlock(), createElementBlock(
37291
37253
  "button",
37292
37254
  {
@@ -37370,7 +37332,6 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
37370
37332
  4
37371
37333
  /* STYLE */
37372
37334
  )) : 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
37335
  hasBody.value ? (openBlock(), createElementBlock("div", {
37375
37336
  key: 1,
37376
37337
  class: "fv-thinking-content",
@@ -37384,7 +37345,7 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
37384
37345
  /* TEXT */
37385
37346
  )
37386
37347
  ], void 0, 1)
37387
- ], 12, _hoisted_4$b)) : createCommentVNode("v-if", true)
37348
+ ], 12, _hoisted_4$c)) : createCommentVNode("v-if", true)
37388
37349
  ],
37389
37350
  6
37390
37351
  /* CLASS, STYLE */
@@ -37399,7 +37360,7 @@ const _hoisted_2$d = {
37399
37360
  class: "fv-chain-dot"
37400
37361
  };
37401
37362
  const _hoisted_3$d = { class: "fv-chain-main" };
37402
- const _hoisted_4$a = ["aria-label", "onClick"];
37363
+ const _hoisted_4$b = ["aria-label", "onClick"];
37403
37364
  const _hoisted_5$9 = { class: "fv-chain-head-title" };
37404
37365
  const _hoisted_6$8 = {
37405
37366
  key: 0,
@@ -37409,7 +37370,7 @@ const _hoisted_7$6 = {
37409
37370
  key: 0,
37410
37371
  class: "fv-chain-body"
37411
37372
  };
37412
- const _hoisted_8$5 = {
37373
+ const _hoisted_8$6 = {
37413
37374
  key: 0,
37414
37375
  class: "scroll-edge-fade-top",
37415
37376
  "aria-hidden": "true"
@@ -37800,7 +37761,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37800
37761
  class: normalizeClass(["fv-chain-item", [statusClass(item.status), item.class]])
37801
37762
  },
37802
37763
  [
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
37764
  createElementVNode("span", _hoisted_1$f, [
37805
37765
  item.icon ? (openBlock(), createBlock(unref(ElIcon), {
37806
37766
  key: 0,
@@ -37837,13 +37797,11 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37837
37797
  /* STABLE */
37838
37798
  })) : (openBlock(), createElementBlock("span", _hoisted_2$d))
37839
37799
  ]),
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
37800
  createElementVNode("div", _hoisted_3$d, [
37842
37801
  renderSlot(_ctx.$slots, "content", {
37843
37802
  item,
37844
37803
  index
37845
37804
  }, () => [
37846
- createCommentVNode(" text \u6B65:\u6807\u9898\u884C + \u53EF\u6298\u53E0 description \u6EDA\u52A8\u533A(2026-10-07 \u601D\u8003\u94FE\u8C03\u6574) "),
37847
37805
  item.kind === "text" ? (openBlock(), createElementBlock(
37848
37806
  Fragment,
37849
37807
  { key: 0 },
@@ -37861,7 +37819,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37861
37819
  1
37862
37820
  /* TEXT */
37863
37821
  ),
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
37822
  !isTextExpanded(item.key) && !item.closed && textStepPreview(item) ? (openBlock(), createElementBlock(
37866
37823
  "span",
37867
37824
  _hoisted_6$8,
@@ -37869,7 +37826,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37869
37826
  1
37870
37827
  /* TEXT */
37871
37828
  )) : 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
37829
  createVNode(
37874
37830
  unref(ElIcon),
37875
37831
  { class: "fv-chain-head-arrow" },
@@ -37883,10 +37839,9 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37883
37839
  1024
37884
37840
  /* DYNAMIC_SLOTS */
37885
37841
  )
37886
- ], 10, _hoisted_4$a),
37842
+ ], 10, _hoisted_4$b),
37887
37843
  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
- edgeFade(item.key).top ? (openBlock(), createElementBlock("span", _hoisted_8$5)) : createCommentVNode("v-if", true),
37844
+ edgeFade(item.key).top ? (openBlock(), createElementBlock("span", _hoisted_8$6)) : createCommentVNode("v-if", true),
37890
37845
  edgeFade(item.key).bottom ? (openBlock(), createElementBlock("span", _hoisted_9$3)) : createCommentVNode("v-if", true),
37891
37846
  createVNode(unref(ElScrollbar), {
37892
37847
  ref_for: true,
@@ -37927,7 +37882,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37927
37882
  Fragment,
37928
37883
  { key: 1 },
37929
37884
  [
37930
- createCommentVNode(" tool \u6B65:\u539F\u5E03\u5C40 "),
37931
37885
  createElementVNode(
37932
37886
  "div",
37933
37887
  {
@@ -37936,7 +37890,6 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
37936
37890
  class: normalizeClass(["fv-chain-title", { "is-clamped": __props.collapsible && showToggle(item.key) && !expandedKeys.value.has(item.key) }])
37937
37891
  },
37938
37892
  [
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
37893
  isTypingItem(item) && item.key === lastTypingKey.value && !holdingKeys.value.has(item.key) ? (openBlock(), createBlock(_sfc_main$n, {
37941
37894
  key: 0,
37942
37895
  content: normalizeTitle(item.title),
@@ -38009,11 +37962,11 @@ var welcomeGif = new URL('assets/fvai-welcome-m4yx7X4O.gif', import.meta.url).hr
38009
37962
  const _hoisted_1$e = { class: "fv-welcome-icon" };
38010
37963
  const _hoisted_2$c = ["src"];
38011
37964
  const _hoisted_3$c = { class: "fv-welcome-main" };
38012
- const _hoisted_4$9 = { class: "fv-welcome-text" };
37965
+ const _hoisted_4$a = { class: "fv-welcome-text" };
38013
37966
  const _hoisted_5$8 = { class: "fv-welcome-name" };
38014
37967
  const _hoisted_6$7 = { class: "fv-welcome-name-accent" };
38015
37968
  const _hoisted_7$5 = { class: "fv-welcome-description" };
38016
- const _hoisted_8$4 = {
37969
+ const _hoisted_8$5 = {
38017
37970
  key: 0,
38018
37971
  class: "fv-welcome-suggestions"
38019
37972
  };
@@ -38038,7 +37991,6 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38038
37991
  class: normalizeClass(["fv-welcome", `is-${__props.layout}`])
38039
37992
  },
38040
37993
  [
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
37994
  createElementVNode("div", _hoisted_1$e, [
38043
37995
  renderSlot(_ctx.$slots, "icon", {}, () => [
38044
37996
  isImage(__props.icon) ? (openBlock(), createBlock(unref(ElAvatar), {
@@ -38064,10 +38016,8 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38064
38016
  }, null, 10, _hoisted_2$c))
38065
38017
  ])
38066
38018
  ]),
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
38019
  createElementVNode("div", _hoisted_3$c, [
38069
- 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) "),
38020
+ createElementVNode("div", _hoisted_4$a, [
38071
38021
  createElementVNode("h2", _hoisted_5$8, [
38072
38022
  renderSlot(_ctx.$slots, "name", {}, () => [
38073
38023
  __props.name ? (openBlock(), createElementBlock(
@@ -38104,7 +38054,6 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38104
38054
  ))
38105
38055
  ])
38106
38056
  ]),
38107
- createCommentVNode(" #description \u63D2\u69FD\u8986\u76D6\u63CF\u8FF0;\u672A\u4F20 description \u65F6\u56DE\u843D\u5185\u7F6E\u9ED8\u8BA4\u63CF\u8FF0 "),
38108
38057
  createElementVNode("p", _hoisted_7$5, [
38109
38058
  renderSlot(_ctx.$slots, "description", {}, () => [
38110
38059
  createTextVNode(
@@ -38115,8 +38064,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
38115
38064
  ])
38116
38065
  ])
38117
38066
  ]),
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
- _ctx.$slots.suggestions ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
38067
+ _ctx.$slots.suggestions ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
38120
38068
  renderSlot(_ctx.$slots, "suggestions")
38121
38069
  ])) : createCommentVNode("v-if", true)
38122
38070
  ])
@@ -38134,7 +38082,7 @@ const _hoisted_2$b = {
38134
38082
  class: "fv-prompts-title"
38135
38083
  };
38136
38084
  const _hoisted_3$b = ["role", "tabindex", "onClick"];
38137
- const _hoisted_4$8 = { class: "fv-prompt-item-main" };
38085
+ const _hoisted_4$9 = { class: "fv-prompt-item-main" };
38138
38086
  const _hoisted_5$7 = { class: "fv-prompt-item-text" };
38139
38087
  const _hoisted_6$6 = {
38140
38088
  key: 0,
@@ -38144,6 +38092,10 @@ const _hoisted_7$4 = {
38144
38092
  key: 1,
38145
38093
  class: "fv-prompt-item-description"
38146
38094
  };
38095
+ const _hoisted_8$4 = {
38096
+ key: 0,
38097
+ class: "fv-prompts-footer"
38098
+ };
38147
38099
  var _sfc_main$d = /* @__PURE__ */ defineComponent({
38148
38100
  ...{ name: "FvPrompts" },
38149
38101
  __name: "index",
@@ -38193,12 +38145,11 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
38193
38145
  tabindex: item.disabled ? -1 : 0,
38194
38146
  onClick: ($event) => onSelect(item)
38195
38147
  }, [
38196
- createCommentVNode(" #default \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u6574\u5361 "),
38197
38148
  renderSlot(_ctx.$slots, "default", {
38198
38149
  item,
38199
38150
  index
38200
38151
  }, () => [
38201
- createElementVNode("div", _hoisted_4$8, [
38152
+ createElementVNode("div", _hoisted_4$9, [
38202
38153
  resolvedIcons.value[index] ? (openBlock(), createBlock(
38203
38154
  unref(ElIcon),
38204
38155
  {
@@ -38237,7 +38188,10 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
38237
38188
  }),
38238
38189
  128
38239
38190
  /* KEYED_FRAGMENT */
38240
- ))
38191
+ )),
38192
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
38193
+ renderSlot(_ctx.$slots, "footer")
38194
+ ])) : createCommentVNode("v-if", true)
38241
38195
  ],
38242
38196
  2
38243
38197
  /* CLASS */
@@ -38333,21 +38287,12 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
38333
38287
  );
38334
38288
  });
38335
38289
  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
- );
38290
+ return openBlock(), createElementBlock("span", {
38291
+ class: "fv-svg-icon",
38292
+ style: normalizeStyle(sizeStyle.value),
38293
+ "aria-hidden": "true",
38294
+ innerHTML: rendered.value
38295
+ }, null, 12, _hoisted_1$c);
38351
38296
  };
38352
38297
  }
38353
38298
  });
@@ -38355,7 +38300,7 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
38355
38300
  const _hoisted_1$b = ["src", "alt"];
38356
38301
  const _hoisted_2$a = { class: "fv-files-card-info" };
38357
38302
  const _hoisted_3$a = ["title"];
38358
- const _hoisted_4$7 = ["title"];
38303
+ const _hoisted_4$8 = ["title"];
38359
38304
  const _hoisted_5$6 = {
38360
38305
  key: 1,
38361
38306
  class: "fv-files-card-size"
@@ -38457,7 +38402,6 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38457
38402
  class: normalizeClass(["fv-files-card", [`is-${__props.fileType}`, `is-${__props.status}`, { "has-download": !!__props.onDownload }]])
38458
38403
  },
38459
38404
  [
38460
- createCommentVNode(" \u56FE\u7247\u6A21\u5F0F:#image \u63D2\u69FD > url \u7F29\u7565\u56FE > Picture \u5360\u4F4D "),
38461
38405
  isImage.value ? (openBlock(), createElementBlock(
38462
38406
  "div",
38463
38407
  {
@@ -38486,37 +38430,29 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38486
38430
  ],
38487
38431
  4
38488
38432
  /* 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
- )),
38433
+ )) : (openBlock(), createBlock(unref(ElIcon), {
38434
+ key: 1,
38435
+ class: "fv-files-card-icon"
38436
+ }, {
38437
+ default: withCtx(() => [
38438
+ createVNode(_sfc_main$c, {
38439
+ name: docIconKind.value,
38440
+ size: "1em"
38441
+ }, null, 8, ["name"])
38442
+ ]),
38443
+ _: 1
38444
+ /* STABLE */
38445
+ })),
38509
38446
  createElementVNode("div", _hoisted_2$a, [
38510
38447
  createElementVNode("div", {
38511
38448
  class: "fv-files-card-name",
38512
38449
  title: __props.name
38513
38450
  }, 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
38451
  __props.status === "error" && __props.errorText ? (openBlock(), createElementBlock("div", {
38516
38452
  key: 0,
38517
38453
  class: "fv-files-card-error",
38518
38454
  title: __props.errorText
38519
- }, toDisplayString(__props.errorText), 9, _hoisted_4$7)) : __props.status === "loading" ? (openBlock(), createElementBlock(
38455
+ }, toDisplayString(__props.errorText), 9, _hoisted_4$8)) : __props.status === "loading" ? (openBlock(), createElementBlock(
38520
38456
  "div",
38521
38457
  _hoisted_5$6,
38522
38458
  toDisplayString(unref(dict).attachments.uploading),
@@ -38530,7 +38466,6 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38530
38466
  /* TEXT */
38531
38467
  )) : createCommentVNode("v-if", true)
38532
38468
  ]),
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
38469
  __props.status === "loading" ? (openBlock(), createBlock(unref(ElIcon), {
38535
38470
  key: 2,
38536
38471
  class: "fv-files-card-loading"
@@ -38541,7 +38476,6 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38541
38476
  _: 1
38542
38477
  /* STABLE */
38543
38478
  })) : 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
38479
  createElementVNode("button", {
38546
38480
  type: "button",
38547
38481
  class: "fv-files-card-remove",
@@ -38582,7 +38516,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
38582
38516
  const _hoisted_1$a = { class: "fv-attachments" };
38583
38517
  const _hoisted_2$9 = ["accept"];
38584
38518
  const _hoisted_3$9 = ["disabled", "aria-label"];
38585
- const _hoisted_4$6 = {
38519
+ const _hoisted_4$7 = {
38586
38520
  key: 1,
38587
38521
  class: "fv-attachments-list"
38588
38522
  };
@@ -38745,7 +38679,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38745
38679
  __expose({ openSelect, retry });
38746
38680
  return (_ctx, _cache) => {
38747
38681
  return openBlock(), createElementBlock("div", _hoisted_1$a, [
38748
- createCommentVNode(" \u9690\u85CF input:accept \u8FC7\u6EE4 + count \u7531\u903B\u8F91\u5C42\u5224\u5B9A "),
38749
38682
  createElementVNode("input", {
38750
38683
  ref_key: "inputRef",
38751
38684
  ref: inputRef,
@@ -38755,7 +38688,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38755
38688
  multiple: "",
38756
38689
  onChange
38757
38690
  }, 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
38691
  __props.layout !== "listOnly" ? (openBlock(), createElementBlock("button", {
38760
38692
  key: 0,
38761
38693
  type: "button",
@@ -38772,8 +38704,7 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38772
38704
  /* STABLE */
38773
38705
  })
38774
38706
  ], 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
- list.value.length && __props.layout !== "triggerOnly" ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
38707
+ list.value.length && __props.layout !== "triggerOnly" ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
38777
38708
  (openBlock(true), createElementBlock(
38778
38709
  Fragment,
38779
38710
  null,
@@ -38809,7 +38740,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38809
38740
  key: "0"
38810
38741
  } : void 0
38811
38742
  ]), 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
38743
  item.status === "error" ? (openBlock(), createElementBlock("button", {
38814
38744
  key: 0,
38815
38745
  type: "button",
@@ -38832,7 +38762,6 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
38832
38762
  /* KEYED_FRAGMENT */
38833
38763
  ))
38834
38764
  ])) : createCommentVNode("v-if", true),
38835
- createCommentVNode(" \u5185\u8054\u63D0\u793A(triggerOnly/listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
38836
38765
  __props.tip && __props.layout === "inline" ? (openBlock(), createElementBlock(
38837
38766
  "div",
38838
38767
  _hoisted_6$4,
@@ -38851,7 +38780,7 @@ const _hoisted_1$9 = {
38851
38780
  };
38852
38781
  const _hoisted_2$8 = ["onClick"];
38853
38782
  const _hoisted_3$8 = { class: "fv-conversations-item-content" };
38854
- const _hoisted_4$5 = ["title"];
38783
+ const _hoisted_4$6 = ["title"];
38855
38784
  const _hoisted_5$4 = ["aria-label"];
38856
38785
  var _sfc_main$9 = /* @__PURE__ */ defineComponent({
38857
38786
  ...{ name: "FvConversations" },
@@ -38967,7 +38896,6 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
38967
38896
  key: grp.group ?? "__ungrouped__",
38968
38897
  class: "fv-conversations-group"
38969
38898
  }, [
38970
- createCommentVNode(" \u5206\u7EC4\u6807\u9898:\u6EDA\u52A8\u5438\u9876;#group-title \u8986\u76D6 "),
38971
38899
  grp.group ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
38972
38900
  renderSlot(_ctx.$slots, "group-title", {
38973
38901
  group: grp.group
@@ -38988,7 +38916,6 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
38988
38916
  class: normalizeClass(["fv-conversations-item", { "is-active": isActive(item), "is-disabled": !!item.disabled }]),
38989
38917
  onClick: ($event) => onItemClick(item)
38990
38918
  }, [
38991
- createCommentVNode(" \u884C\u5185\u5BB9:#item \u8986\u76D6\u6574\u884C(\u9ED8\u8BA4\u6E32\u67D3 label) "),
38992
38919
  createElementVNode("div", _hoisted_3$8, [
38993
38920
  renderSlot(_ctx.$slots, "item", {
38994
38921
  item,
@@ -38997,10 +38924,9 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
38997
38924
  createElementVNode("span", {
38998
38925
  class: "fv-conversations-item-label",
38999
38926
  title: item.label
39000
- }, toDisplayString(item.label), 9, _hoisted_4$5)
38927
+ }, toDisplayString(item.label), 9, _hoisted_4$6)
39001
38928
  ])
39002
38929
  ]),
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
38930
  !item.disabled ? (openBlock(), createBlock(unref(ElDropdown), {
39005
38931
  key: 0,
39006
38932
  trigger: "click",
@@ -39086,7 +39012,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
39086
39012
  const _hoisted_1$8 = { viewBox: "0 0 1200 1200" };
39087
39013
  const _hoisted_2$7 = ["id"];
39088
39014
  const _hoisted_3$7 = ["stop-color"];
39089
- const _hoisted_4$4 = ["stop-color", "stop-opacity"];
39015
+ const _hoisted_4$5 = ["stop-color", "stop-opacity"];
39090
39016
  const _hoisted_5$3 = ["stop-color"];
39091
39017
  const _hoisted_6$3 = ["d"];
39092
39018
  var _sfc_main$8 = /* @__PURE__ */ defineComponent({
@@ -39181,73 +39107,63 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
39181
39107
  const SHAPES = INIT_D;
39182
39108
  return (_ctx, _cache) => {
39183
39109
  return openBlock(), createElementBlock(
39184
- Fragment,
39185
- null,
39110
+ "div",
39111
+ {
39112
+ class: normalizeClass(["fv-blob-halo", { "is-paused": __props.paused }]),
39113
+ style: normalizeStyle(rootStyle.value),
39114
+ "aria-hidden": "true"
39115
+ },
39186
39116
  [
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
- )
39117
+ (openBlock(), createElementBlock("svg", _hoisted_1$8, [
39118
+ createElementVNode("defs", null, [
39119
+ createElementVNode("radialGradient", {
39120
+ id: highlightGradient.value.id
39121
+ }, [
39122
+ createElementVNode("stop", {
39123
+ offset: "0%",
39124
+ "stop-color": highlightGradient.value.color,
39125
+ "stop-opacity": "1"
39126
+ }, null, 8, _hoisted_3$7),
39127
+ createElementVNode("stop", {
39128
+ offset: "50%",
39129
+ "stop-color": highlightGradient.value.color,
39130
+ "stop-opacity": highlightGradient.value.midOpacity
39131
+ }, null, 8, _hoisted_4$5),
39132
+ createElementVNode("stop", {
39133
+ offset: "100%",
39134
+ "stop-color": highlightGradient.value.color,
39135
+ "stop-opacity": "0"
39136
+ }, null, 8, _hoisted_5$3)
39137
+ ], 8, _hoisted_2$7)
39138
+ ]),
39139
+ (openBlock(true), createElementBlock(
39140
+ Fragment,
39141
+ null,
39142
+ renderList(blobs.value, (b, i) => {
39143
+ return openBlock(), createElementBlock(
39144
+ "g",
39145
+ {
39146
+ key: `${b.slot}-${i}`,
39147
+ class: normalizeClass(["fv-blob-halo-blob", [`is-${b.slot}`, { "is-alt": b.alt }]]),
39148
+ style: normalizeStyle(b.style)
39149
+ },
39150
+ [
39151
+ createElementVNode("path", {
39152
+ d: unref(SHAPES)[b.shape],
39153
+ style: normalizeStyle(b.pathStyle)
39154
+ }, null, 12, _hoisted_6$3)
39155
+ ],
39156
+ 6
39157
+ /* CLASS, STYLE */
39158
+ );
39159
+ }),
39160
+ 128
39161
+ /* KEYED_FRAGMENT */
39162
+ ))
39163
+ ]))
39248
39164
  ],
39249
- 2112
39250
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
39165
+ 6
39166
+ /* CLASS, STYLE */
39251
39167
  );
39252
39168
  };
39253
39169
  }
@@ -39864,7 +39780,7 @@ var idleAssistantGif = new URL('assets/fvai-idle-BhBsbPV4.gif', import.meta.url)
39864
39780
  const _hoisted_1$7 = ["data-message-id"];
39865
39781
  const _hoisted_2$6 = ["src"];
39866
39782
  const _hoisted_3$6 = ["src"];
39867
- const _hoisted_4$3 = { class: "fv-msg-main" };
39783
+ const _hoisted_4$4 = { class: "fv-msg-main" };
39868
39784
  const _hoisted_5$2 = {
39869
39785
  key: 0,
39870
39786
  class: "fv-msg-header"
@@ -39892,12 +39808,16 @@ const _hoisted_12$1 = {
39892
39808
  class: "fv-msg-error"
39893
39809
  };
39894
39810
  const _hoisted_13$1 = {
39811
+ key: 3,
39895
39812
  class: "fv-msg-pending",
39896
39813
  role: "status",
39897
39814
  "aria-live": "polite"
39898
39815
  };
39899
39816
  const _hoisted_14$1 = { class: "fv-msg-pending-text" };
39900
- const _hoisted_15$1 = { class: "fv-msg-content fv-msg-content-user" };
39817
+ const _hoisted_15$1 = {
39818
+ key: 5,
39819
+ class: "fv-msg-content fv-msg-content-user"
39820
+ };
39901
39821
  const _hoisted_16$1 = {
39902
39822
  key: 6,
39903
39823
  class: "fv-msg-actions"
@@ -40350,7 +40270,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40350
40270
  }]]),
40351
40271
  "data-message-id": __props.message.id
40352
40272
  }, [
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
40273
  (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (openBlock(), createElementBlock(
40355
40274
  "div",
40356
40275
  {
@@ -40391,8 +40310,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40391
40310
  4
40392
40311
  /* STYLE */
40393
40312
  )) : createCommentVNode("v-if", true),
40394
- 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 "),
40313
+ createElementVNode("div", _hoisted_4$4, [
40396
40314
  showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
40397
40315
  isUser.value ? renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
40398
40316
  createTextVNode(
@@ -40415,7 +40333,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40415
40333
  /* TEXT */
40416
40334
  )) : createCommentVNode("v-if", true)
40417
40335
  ])) : 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
40336
  __props.message.files?.length ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
40420
40337
  renderSlot(_ctx.$slots, "message-files", {
40421
40338
  message: __props.message,
@@ -40469,7 +40386,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40469
40386
  ))
40470
40387
  ])
40471
40388
  ])) : 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
40389
  previewVisible.value && previewSrcList.value.length ? (openBlock(), createBlock(unref(ElImageViewer), {
40474
40390
  key: 2,
40475
40391
  "url-list": previewSrcList.value,
@@ -40477,7 +40393,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40477
40393
  teleported: "",
40478
40394
  onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
40479
40395
  }, 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
40396
  !isUser.value && (hasToolSteps.value || hasReasoning.value) ? (openBlock(), createBlock(_sfc_main$g, {
40482
40397
  key: 3,
40483
40398
  modelValue: toolsExpanded.value,
@@ -40494,21 +40409,13 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40494
40409
  collapsible: __props.collapsible,
40495
40410
  "show-duration": __props.showDuration,
40496
40411
  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, {
40412
+ }, null, 8, ["items", "collapsible", "show-duration"])) : hasReasoning.value && useTypewriter.value && !reasoningFlushed.value ? (openBlock(), createBlock(_sfc_main$n, {
40413
+ key: 1,
40414
+ content: __props.message.reasoning ?? "",
40415
+ "is-markdown": "",
40416
+ typing: __props.typing,
40417
+ onWriting: _cache[2] || (_cache[2] = ($event) => emit("typing"))
40418
+ }, null, 8, ["content", "typing"])) : hasReasoning.value ? (openBlock(), createBlock(_sfc_main$o, {
40512
40419
  key: 2,
40513
40420
  content: __props.message.reasoning ?? ""
40514
40421
  }, null, 8, ["content"])) : createCommentVNode("v-if", true)
@@ -40528,7 +40435,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40528
40435
  key: "0"
40529
40436
  } : void 0
40530
40437
  ]), 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
40438
  !isUser.value ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
40533
40439
  __props.message.status === "error" ? (openBlock(), createElementBlock(
40534
40440
  "span",
@@ -40550,54 +40456,34 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40550
40456
  key: 2,
40551
40457
  content: __props.message.content,
40552
40458
  "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) "),
40459
+ }, null, 8, ["content", "code-trigger-langs"])) : isPendingPlaceholder.value ? (openBlock(), createElementBlock("span", _hoisted_13$1, [
40460
+ _cache[11] || (_cache[11] = createElementVNode(
40461
+ "span",
40462
+ {
40463
+ class: "fv-msg-spinner",
40464
+ "aria-hidden": "true"
40465
+ },
40466
+ null,
40467
+ -1
40468
+ /* CACHED */
40469
+ )),
40586
40470
  createElementVNode(
40587
- "div",
40588
- _hoisted_15$1,
40589
- toDisplayString(__props.message.content),
40471
+ "span",
40472
+ _hoisted_14$1,
40473
+ toDisplayString(pendingPhrase.value),
40590
40474
  1
40591
40475
  /* TEXT */
40592
40476
  )
40593
- ],
40594
- 2112
40595
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
40477
+ ])) : createCommentVNode("v-if", true)
40478
+ ])) : __props.message.content ? (openBlock(), createElementBlock(
40479
+ "div",
40480
+ _hoisted_15$1,
40481
+ toDisplayString(__props.message.content),
40482
+ 1
40483
+ /* TEXT */
40596
40484
  )) : 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
40485
  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
40486
  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
40487
  actionsVisible.value && isUser.value && userCopyVisible.value ? (openBlock(), createBlock(unref(ElTooltip), {
40602
40488
  key: 0,
40603
40489
  content: unref(dict).aiMessage.copy,
@@ -40670,7 +40556,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40670
40556
  _: 1
40671
40557
  /* STABLE */
40672
40558
  }, 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
40559
  feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createElementBlock("span", _hoisted_20, [
40675
40560
  createVNode(unref(ElTooltip), {
40676
40561
  content: unref(dict).aiMessage.feedback.like,
@@ -40730,7 +40615,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40730
40615
  }, 8, ["content"])
40731
40616
  ])) : createCommentVNode("v-if", true)
40732
40617
  ]),
40733
- createCommentVNode(" \u5206\u652F\u5207\u6362:\u5144\u5F1F\u5206\u652F > 1 \u65F6 "),
40734
40618
  __props.showBranchSwitch && __props.branch && __props.branch.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_23, [
40735
40619
  createElementVNode("button", {
40736
40620
  type: "button",
@@ -40770,7 +40654,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40770
40654
  })
40771
40655
  ], 8, _hoisted_26)
40772
40656
  ])) : 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
40657
  messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock(
40775
40658
  "span",
40776
40659
  _hoisted_27,
@@ -40779,7 +40662,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40779
40662
  /* TEXT */
40780
40663
  )) : createCommentVNode("v-if", true)
40781
40664
  ])) : 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
40665
  followups.value.length && followupsVisible.value ? (openBlock(), createElementBlock("div", {
40784
40666
  key: 7,
40785
40667
  class: normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
@@ -40812,7 +40694,6 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
40812
40694
  ))
40813
40695
  ], 10, _hoisted_28)) : createCommentVNode("v-if", true)
40814
40696
  ]),
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
40697
  feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createBlock(unref(ElDialog), {
40817
40698
  key: 1,
40818
40699
  modelValue: dislikePopVisible.value,
@@ -40879,7 +40760,11 @@ const _hoisted_2$5 = {
40879
40760
  key: 0,
40880
40761
  class: "fv-messages-empty"
40881
40762
  };
40882
- const _hoisted_3$5 = { class: "fv-messages-inner" };
40763
+ const _hoisted_3$5 = {
40764
+ key: 1,
40765
+ class: "fv-welcome-suggestions-footer"
40766
+ };
40767
+ const _hoisted_4$3 = { class: "fv-messages-inner" };
40883
40768
  var _sfc_main$6 = /* @__PURE__ */ defineComponent({
40884
40769
  ...{ name: "FvAiMessages" },
40885
40770
  __name: "index",
@@ -40893,6 +40778,8 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
40893
40778
  suggestionsTitle: { type: String, required: false, default: "" },
40894
40779
  suggestionsWrap: { type: Boolean, required: false, default: true },
40895
40780
  welcomeLayout: { type: String, required: false, default: "horizontal" },
40781
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
40782
+ refreshSuggestionsText: { type: String, required: false, default: "" },
40896
40783
  scrollThreshold: { type: Number, required: false, default: 100 },
40897
40784
  showScrollButton: { type: Boolean, required: false, default: true },
40898
40785
  scrollButtonThreshold: { type: Number, required: false, default: 100 },
@@ -40921,7 +40808,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
40921
40808
  feedbackHandler: { type: Function, required: false, default: void 0 },
40922
40809
  locale: { type: null, required: false }
40923
40810
  },
40924
- emits: ["select", "copy", "regenerate", "branch-change", "scroll", "followup-select", "message-file-click", "feedback-change", "feedback-error"],
40811
+ emits: ["select", "copy", "regenerate", "branch-change", "scroll", "followup-select", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
40925
40812
  setup(__props, { expose: __expose, emit: __emit }) {
40926
40813
  const props = __props;
40927
40814
  const dict = useLocaleDict(() => props.locale);
@@ -40930,6 +40817,10 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
40930
40817
  followIfPinned();
40931
40818
  }
40932
40819
  const isEmpty = computed(() => props.messages.length === 0);
40820
+ const slots = useSlots();
40821
+ const hasRefreshFooter = computed(
40822
+ () => props.showRefreshSuggestions || !!slots["refresh-suggestions"] || !!slots["suggestions-footer"]
40823
+ );
40933
40824
  const scrollRef = ref(null);
40934
40825
  function distanceFromBottom() {
40935
40826
  const el = scrollRef.value;
@@ -41086,7 +40977,6 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41086
40977
  __expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
41087
40978
  return (_ctx, _cache) => {
41088
40979
  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
40980
  isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
41091
40981
  renderSlot(_ctx.$slots, "empty", {}, () => [
41092
40982
  createVNode(_sfc_main$e, {
@@ -41097,7 +40987,6 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41097
40987
  locale: __props.locale
41098
40988
  }, createSlots({
41099
40989
  suggestions: withCtx(() => [
41100
- createCommentVNode(" welcome-suggestions \u63D2\u69FD\u6574\u4F53\u66FF\u6362\u9ED8\u8BA4 Prompts \u6E32\u67D3 "),
41101
40990
  renderSlot(_ctx.$slots, "welcome-suggestions", {}, () => [
41102
40991
  __props.suggestions.length ? (openBlock(), createBlock(_sfc_main$d, {
41103
40992
  key: 0,
@@ -41106,7 +40995,69 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41106
40995
  title: __props.suggestionsTitle,
41107
40996
  wrap: __props.suggestionsWrap,
41108
40997
  onSelect
41109
- }, null, 8, ["prompts", "title", "wrap"])) : createCommentVNode("v-if", true)
40998
+ }, createSlots({
40999
+ _: 2
41000
+ /* DYNAMIC */
41001
+ }, [
41002
+ hasRefreshFooter.value && __props.welcomeLayout === "horizontal" ? {
41003
+ name: "footer",
41004
+ fn: withCtx(() => [
41005
+ _ctx.$slots["refresh-suggestions"] ? renderSlot(_ctx.$slots, "refresh-suggestions", {}, void 0, void 0, 0) : __props.showRefreshSuggestions ? (openBlock(), createBlock(unref(ElButton), {
41006
+ key: 1,
41007
+ class: "fv-welcome-refresh",
41008
+ text: "",
41009
+ size: "small",
41010
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("refresh-suggestions"))
41011
+ }, {
41012
+ default: withCtx(() => [
41013
+ createVNode(unref(ElIcon), { class: "fv-welcome-refresh-icon" }, {
41014
+ default: withCtx(() => [
41015
+ createVNode(unref(RefreshRight))
41016
+ ]),
41017
+ _: 1
41018
+ /* STABLE */
41019
+ }),
41020
+ createTextVNode(
41021
+ " " + toDisplayString(__props.refreshSuggestionsText || unref(dict).welcome.refreshSuggestions),
41022
+ 1
41023
+ /* TEXT */
41024
+ )
41025
+ ]),
41026
+ _: 1
41027
+ /* STABLE */
41028
+ })) : createCommentVNode("v-if", true),
41029
+ _ctx.$slots["suggestions-footer"] ? renderSlot(_ctx.$slots, "suggestions-footer", {}, void 0, void 0, 2) : createCommentVNode("v-if", true)
41030
+ ]),
41031
+ key: "0"
41032
+ } : void 0
41033
+ ]), 1032, ["prompts", "title", "wrap"])) : createCommentVNode("v-if", true),
41034
+ hasRefreshFooter.value && __props.welcomeLayout === "vertical" ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
41035
+ _ctx.$slots["refresh-suggestions"] ? renderSlot(_ctx.$slots, "refresh-suggestions", {}, void 0, void 0, 0) : __props.showRefreshSuggestions ? (openBlock(), createBlock(unref(ElButton), {
41036
+ key: 1,
41037
+ class: "fv-welcome-refresh",
41038
+ text: "",
41039
+ size: "small",
41040
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("refresh-suggestions"))
41041
+ }, {
41042
+ default: withCtx(() => [
41043
+ createVNode(unref(ElIcon), { class: "fv-welcome-refresh-icon" }, {
41044
+ default: withCtx(() => [
41045
+ createVNode(unref(RefreshRight))
41046
+ ]),
41047
+ _: 1
41048
+ /* STABLE */
41049
+ }),
41050
+ createTextVNode(
41051
+ " " + toDisplayString(__props.refreshSuggestionsText || unref(dict).welcome.refreshSuggestions),
41052
+ 1
41053
+ /* TEXT */
41054
+ )
41055
+ ]),
41056
+ _: 1
41057
+ /* STABLE */
41058
+ })) : createCommentVNode("v-if", true),
41059
+ _ctx.$slots["suggestions-footer"] ? renderSlot(_ctx.$slots, "suggestions-footer", {}, void 0, void 0, 2) : createCommentVNode("v-if", true)
41060
+ ])) : createCommentVNode("v-if", true)
41110
41061
  ])
41111
41062
  ]),
41112
41063
  _: 2
@@ -41136,154 +41087,145 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
41136
41087
  ]), 1032, ["icon", "name", "description", "layout", "locale"])
41137
41088
  ])
41138
41089
  ])) : (openBlock(), createElementBlock(
41139
- Fragment,
41140
- { key: 1 },
41090
+ "div",
41091
+ {
41092
+ key: 1,
41093
+ ref_key: "scrollRef",
41094
+ ref: scrollRef,
41095
+ class: "fv-messages-scroll",
41096
+ onScrollPassive: onScroll
41097
+ },
41141
41098
  [
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
- }, {
41099
+ createElementVNode("div", _hoisted_4$3, [
41100
+ (openBlock(true), createElementBlock(
41101
+ Fragment,
41102
+ null,
41103
+ renderList(__props.messages, (m) => {
41104
+ return openBlock(), createBlock(_sfc_main$7, {
41105
+ key: m.id,
41106
+ ref_for: true,
41107
+ ref: (el) => setMessageRef(m.id, el),
41108
+ message: m,
41109
+ branch: branchInfo(m),
41110
+ "is-last": m.id === lastMessageId.value,
41111
+ "show-actions": __props.showActions,
41112
+ "copy-to-clipboard": __props.copyToClipboard,
41113
+ "show-branch-switch": __props.showBranchSwitch,
41114
+ "show-user-avatar": __props.showUserAvatar,
41115
+ "show-user-name": __props.showUserName,
41116
+ "show-assistant-avatar": __props.showAssistantAvatar,
41117
+ "show-assistant-name": __props.showAssistantName,
41118
+ "user-avatar": __props.userAvatar,
41119
+ "assistant-avatar": __props.assistantAvatar,
41120
+ "assistant-avatar-scale": __props.assistantAvatarScale,
41121
+ "avatar-circle": __props.avatarCircle,
41122
+ "user-name": __props.userName,
41123
+ "assistant-name": __props.assistantName,
41124
+ typing: __props.typing,
41125
+ "auto-collapse": __props.autoCollapse,
41126
+ collapsible: __props.collapsible,
41127
+ "show-duration": __props.showDuration,
41128
+ "show-time": __props.showTime,
41129
+ "time-format": __props.timeFormat,
41130
+ "followup-style": __props.followupStyle,
41131
+ "code-trigger-langs": __props.codeTriggerLangs,
41132
+ "resolve-file-url": __props.resolveFileUrl,
41133
+ "feedback-handler": __props.feedbackHandler,
41134
+ onTyping: onChildTyping,
41135
+ onCopy,
41136
+ onRegenerate,
41137
+ onBranchChange: onBranch,
41138
+ onFollowupSelect: onFollowup,
41139
+ onFileClick,
41140
+ onFeedbackChange,
41141
+ onFeedbackError
41142
+ }, createSlots({
41143
+ _: 2
41144
+ /* DYNAMIC */
41145
+ }, [
41146
+ _ctx.$slots["message-avatar"] ? {
41147
+ name: "message-avatar",
41148
+ fn: withCtx((scope) => [
41149
+ renderSlot(_ctx.$slots, "message-avatar", mergeProps({ ref_for: true }, scope))
41150
+ ]),
41151
+ key: "0"
41152
+ } : void 0,
41153
+ _ctx.$slots["message-actions"] ? {
41154
+ name: "message-actions",
41155
+ fn: withCtx((scope) => [
41156
+ renderSlot(_ctx.$slots, "message-actions", mergeProps({ ref_for: true }, scope))
41157
+ ]),
41158
+ key: "1"
41159
+ } : void 0,
41160
+ _ctx.$slots["user-avatar"] ? {
41161
+ name: "user-avatar",
41162
+ fn: withCtx(() => [
41163
+ renderSlot(_ctx.$slots, "user-avatar")
41164
+ ]),
41165
+ key: "2"
41166
+ } : void 0,
41167
+ _ctx.$slots["assistant-avatar"] ? {
41168
+ name: "assistant-avatar",
41169
+ fn: withCtx((scope) => [
41170
+ renderSlot(_ctx.$slots, "assistant-avatar", mergeProps({ ref_for: true }, scope))
41171
+ ]),
41172
+ key: "3"
41173
+ } : void 0,
41174
+ _ctx.$slots["user-name"] ? {
41175
+ name: "user-name",
41176
+ fn: withCtx((scope) => [
41177
+ renderSlot(_ctx.$slots, "user-name", mergeProps({ ref_for: true }, scope))
41178
+ ]),
41179
+ key: "4"
41180
+ } : void 0,
41181
+ _ctx.$slots["assistant-name"] ? {
41182
+ name: "assistant-name",
41183
+ fn: withCtx((scope) => [
41184
+ renderSlot(_ctx.$slots, "assistant-name", mergeProps({ ref_for: true }, scope))
41185
+ ]),
41186
+ key: "5"
41187
+ } : void 0
41188
+ ]), 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"]);
41189
+ }),
41190
+ 128
41191
+ /* KEYED_FRAGMENT */
41192
+ )),
41193
+ createVNode(Transition, { name: "fv-messages-back-fade" }, {
41194
+ default: withCtx(() => [
41195
+ renderSlot(_ctx.$slots, "scroll-button", {
41196
+ scrollToBottom,
41197
+ awayFromBottom: isAwayFromBottom.value
41198
+ }, () => [
41199
+ __props.showScrollButton && !isEmpty.value && isAwayFromBottom.value ? (openBlock(), createBlock(unref(ElButton), {
41200
+ key: 0,
41201
+ class: "fv-messages-back",
41202
+ circle: "",
41203
+ "aria-label": unref(dict).scroll.toBottom,
41204
+ onClick: _cache[2] || (_cache[2] = ($event) => scrollToBottom())
41205
+ }, {
41206
+ default: withCtx(() => [
41207
+ createVNode(unref(ElIcon), { class: "fv-messages-back-icon" }, {
41260
41208
  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
- })
41209
+ renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [
41210
+ createVNode(unref(Bottom))
41211
+ ])
41270
41212
  ]),
41271
41213
  _: 3
41272
41214
  /* 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
- )
41215
+ })
41216
+ ]),
41217
+ _: 3
41218
+ /* FORWARDED */
41219
+ }, 8, ["aria-label"])) : createCommentVNode("v-if", true)
41220
+ ])
41221
+ ]),
41222
+ _: 3
41223
+ /* FORWARDED */
41224
+ })
41225
+ ])
41284
41226
  ],
41285
- 2112
41286
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41227
+ 544
41228
+ /* NEED_HYDRATION, NEED_PATCH */
41287
41229
  ))
41288
41230
  ]);
41289
41231
  };
@@ -41396,139 +41338,110 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
41396
41338
  }
41397
41339
  __expose({ open, close });
41398
41340
  return (_ctx, _cache) => {
41399
- return openBlock(), createElementBlock(
41400
- Fragment,
41401
- null,
41341
+ return visible.value && current.value ? (openBlock(), createElementBlock(
41342
+ "div",
41343
+ {
41344
+ key: 0,
41345
+ class: "fv-artifacts",
41346
+ style: normalizeStyle({
41347
+ "--fv-artifacts-width": __props.width,
41348
+ "--fv-artifacts-min-width": __props.minWidth,
41349
+ "--fv-artifacts-max-width": __props.maxWidth
41350
+ })
41351
+ },
41402
41352
  [
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"
41353
+ createElementVNode("div", _hoisted_1$5, [
41354
+ (openBlock(true), createElementBlock(
41355
+ Fragment,
41356
+ null,
41357
+ renderList(__props.artifacts, (a) => {
41358
+ return openBlock(), createElementBlock("button", {
41359
+ key: a.key,
41360
+ type: "button",
41361
+ class: normalizeClass(["fv-artifact-tab", { "is-active": a.key === currentKey.value }]),
41362
+ onClick: ($event) => select(a.key)
41363
+ }, toDisplayString(a.title || a.key), 11, _hoisted_2$4);
41364
+ }),
41365
+ 128
41366
+ /* KEYED_FRAGMENT */
41367
+ )),
41368
+ _cache[0] || (_cache[0] = createElementVNode(
41369
+ "span",
41370
+ { class: "fv-artifacts-spacer" },
41371
+ null,
41372
+ -1
41373
+ /* CACHED */
41374
+ )),
41375
+ createVNode(unref(ElTooltip), {
41376
+ content: unref(dict).aiArtifacts.copy,
41377
+ placement: "top"
41378
+ }, {
41379
+ default: withCtx(() => [
41380
+ createVNode(unref(ElButton), {
41381
+ text: "",
41382
+ size: "small",
41383
+ "aria-label": unref(dict).aiArtifacts.copy,
41384
+ onClick: onCopy
41469
41385
  }, {
41470
41386
  default: withCtx(() => [
41471
- createVNode(unref(ElButton), {
41472
- text: "",
41473
- size: "small",
41474
- "aria-label": unref(dict).aiArtifacts.download,
41475
- onClick: onDownload
41476
- }, {
41387
+ createVNode(unref(ElIcon), null, {
41477
41388
  default: withCtx(() => [
41478
- createVNode(unref(ElIcon), null, {
41479
- default: withCtx(() => [
41480
- createVNode(unref(Download))
41481
- ]),
41482
- _: 1
41483
- /* STABLE */
41484
- })
41389
+ createVNode(unref(CopyDocument))
41485
41390
  ]),
41486
41391
  _: 1
41487
41392
  /* STABLE */
41488
- }, 8, ["aria-label"])
41393
+ })
41489
41394
  ]),
41490
41395
  _: 1
41491
41396
  /* 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"
41397
+ }, 8, ["aria-label"])
41398
+ ]),
41399
+ _: 1
41400
+ /* STABLE */
41401
+ }, 8, ["content"]),
41402
+ createVNode(unref(ElTooltip), {
41403
+ content: unref(dict).aiArtifacts.download,
41404
+ placement: "top"
41405
+ }, {
41406
+ default: withCtx(() => [
41407
+ createVNode(unref(ElButton), {
41408
+ text: "",
41409
+ size: "small",
41410
+ "aria-label": unref(dict).aiArtifacts.download,
41411
+ onClick: onDownload
41497
41412
  }, {
41498
41413
  default: withCtx(() => [
41499
- createVNode(unref(ElButton), {
41500
- text: "",
41501
- size: "small",
41502
- "aria-label": unref(dict).aiArtifacts.fullscreen,
41503
- onClick: onFullscreen
41504
- }, {
41414
+ createVNode(unref(ElIcon), null, {
41505
41415
  default: withCtx(() => [
41506
- createVNode(unref(ElIcon), null, {
41507
- default: withCtx(() => [
41508
- createVNode(unref(FullScreen))
41509
- ]),
41510
- _: 1
41511
- /* STABLE */
41512
- })
41416
+ createVNode(unref(Download))
41513
41417
  ]),
41514
41418
  _: 1
41515
41419
  /* STABLE */
41516
- }, 8, ["aria-label"])
41420
+ })
41517
41421
  ]),
41518
41422
  _: 1
41519
41423
  /* STABLE */
41520
- }, 8, ["content"])) : createCommentVNode("v-if", true),
41424
+ }, 8, ["aria-label"])
41425
+ ]),
41426
+ _: 1
41427
+ /* STABLE */
41428
+ }, 8, ["content"]),
41429
+ current.value?.type === "html" ? (openBlock(), createBlock(unref(ElTooltip), {
41430
+ key: 0,
41431
+ content: unref(dict).aiArtifacts.fullscreen,
41432
+ placement: "top"
41433
+ }, {
41434
+ default: withCtx(() => [
41521
41435
  createVNode(unref(ElButton), {
41522
41436
  text: "",
41523
41437
  size: "small",
41524
- class: "fv-artifacts-close",
41525
- "aria-label": unref(dict).aiArtifacts.close,
41526
- onClick: onClose
41438
+ "aria-label": unref(dict).aiArtifacts.fullscreen,
41439
+ onClick: onFullscreen
41527
41440
  }, {
41528
41441
  default: withCtx(() => [
41529
41442
  createVNode(unref(ElIcon), null, {
41530
41443
  default: withCtx(() => [
41531
- createVNode(unref(Close))
41444
+ createVNode(unref(FullScreen))
41532
41445
  ]),
41533
41446
  _: 1
41534
41447
  /* STABLE */
@@ -41538,23 +41451,41 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
41538
41451
  /* STABLE */
41539
41452
  }, 8, ["aria-label"])
41540
41453
  ]),
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)
41454
+ _: 1
41455
+ /* STABLE */
41456
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
41457
+ createVNode(unref(ElButton), {
41458
+ text: "",
41459
+ size: "small",
41460
+ class: "fv-artifacts-close",
41461
+ "aria-label": unref(dict).aiArtifacts.close,
41462
+ onClick: onClose
41463
+ }, {
41464
+ default: withCtx(() => [
41465
+ createVNode(unref(ElIcon), null, {
41466
+ default: withCtx(() => [
41467
+ createVNode(unref(Close))
41468
+ ]),
41469
+ _: 1
41470
+ /* STABLE */
41471
+ })
41472
+ ]),
41473
+ _: 1
41474
+ /* STABLE */
41475
+ }, 8, ["aria-label"])
41476
+ ]),
41477
+ createElementVNode("iframe", {
41478
+ ref_key: "iframeRef",
41479
+ ref: iframeRef,
41480
+ class: "fv-artifacts-frame",
41481
+ srcdoc: srcdoc.value,
41482
+ sandbox: "allow-scripts allow-downloads",
41483
+ title: "artifact-preview"
41484
+ }, null, 8, _hoisted_3$4)
41554
41485
  ],
41555
- 2112
41556
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41557
- );
41486
+ 4
41487
+ /* STYLE */
41488
+ )) : createCommentVNode("v-if", true);
41558
41489
  };
41559
41490
  }
41560
41491
  });
@@ -41614,6 +41545,8 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41614
41545
  suggestions: { type: Array, required: false, default: () => [] },
41615
41546
  suggestionsWrap: { type: Boolean, required: false, default: true },
41616
41547
  welcomeLayout: { type: String, required: false, default: "horizontal" },
41548
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
41549
+ refreshSuggestionsText: { type: String, required: false, default: "" },
41617
41550
  followupStyle: { type: String, required: false, default: "list" },
41618
41551
  features: { type: Object, required: false, default: () => ({}) },
41619
41552
  allowAttachments: { type: Boolean, required: false, default: false },
@@ -41625,7 +41558,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41625
41558
  theme: { type: String, required: false, default: "light" },
41626
41559
  locale: { type: null, required: false }
41627
41560
  },
41628
- emits: ["update:messages", "send", "copy", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-reject", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "tool-event"],
41561
+ emits: ["update:messages", "send", "copy", "suggestion-select", "followup-select", "message-complete", "error", "branch-change", "attachment-exceed", "attachment-reject", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "scroll", "refresh-suggestions", "tool-event"],
41629
41562
  setup(__props, { expose: __expose, emit: __emit }) {
41630
41563
  const props = __props;
41631
41564
  const dict = useLocaleDict(() => props.locale);
@@ -41969,7 +41902,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
41969
41902
  class: normalizeClass(["fv-ai-chat", { "is-dark": isDark.value, "is-center-welcome": isCenterWelcome.value, "is-empty": isEmpty.value }])
41970
41903
  },
41971
41904
  [
41972
- createCommentVNode(" \u9876\u680F:\u6807\u9898 + \u6A21\u578B\u9009\u62E9\u5668(models \u6709\u503C\u65F6 multiple) "),
41973
41905
  __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
41974
41906
  createElementVNode(
41975
41907
  "div",
@@ -42007,7 +41939,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42007
41939
  /* STABLE */
42008
41940
  }, 8, ["modelValue", "placeholder"])) : createCommentVNode("v-if", true)
42009
41941
  ])) : 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
41942
  createElementVNode("div", _hoisted_3$3, [
42012
41943
  createVNode(_sfc_main$6, {
42013
41944
  ref_key: "messagesRef",
@@ -42018,6 +41949,8 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42018
41949
  suggestions: __props.suggestions,
42019
41950
  "suggestions-wrap": __props.suggestionsWrap,
42020
41951
  "welcome-layout": __props.welcomeLayout,
41952
+ "show-refresh-suggestions": __props.showRefreshSuggestions,
41953
+ "refresh-suggestions-text": __props.refreshSuggestionsText,
42021
41954
  "followup-style": __props.followupStyle,
42022
41955
  "show-scroll-button": __props.showScrollButton,
42023
41956
  "scroll-button-threshold": __props.scrollButtonThreshold,
@@ -42044,6 +41977,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42044
41977
  "feedback-handler": __props.feedbackHandler,
42045
41978
  onSelect: onSelectSuggestion,
42046
41979
  onFollowupSelect,
41980
+ onRefreshSuggestions: _cache[1] || (_cache[1] = ($event) => emit("refresh-suggestions")),
42047
41981
  onCopy,
42048
41982
  onRegenerate,
42049
41983
  onBranchChange,
@@ -42132,21 +42066,35 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42132
42066
  ]),
42133
42067
  key: "10"
42134
42068
  } : void 0,
42069
+ _ctx.$slots["refresh-suggestions"] ? {
42070
+ name: "refresh-suggestions",
42071
+ fn: withCtx(() => [
42072
+ renderSlot(_ctx.$slots, "refresh-suggestions")
42073
+ ]),
42074
+ key: "11"
42075
+ } : void 0,
42076
+ _ctx.$slots["suggestions-footer"] ? {
42077
+ name: "suggestions-footer",
42078
+ fn: withCtx(() => [
42079
+ renderSlot(_ctx.$slots, "suggestions-footer")
42080
+ ]),
42081
+ key: "12"
42082
+ } : void 0,
42135
42083
  _ctx.$slots["scroll-button"] ? {
42136
42084
  name: "scroll-button",
42137
42085
  fn: withCtx((scope) => [
42138
42086
  renderSlot(_ctx.$slots, "scroll-button", normalizeProps(guardReactiveProps(scope)))
42139
42087
  ]),
42140
- key: "11"
42088
+ key: "13"
42141
42089
  } : void 0,
42142
42090
  _ctx.$slots["scroll-button-icon"] ? {
42143
42091
  name: "scroll-button-icon",
42144
42092
  fn: withCtx(() => [
42145
42093
  renderSlot(_ctx.$slots, "scroll-button-icon")
42146
42094
  ]),
42147
- key: "12"
42095
+ key: "14"
42148
42096
  } : void 0
42149
- ]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "copy-to-clipboard", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
42097
+ ]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "show-refresh-suggestions", "refresh-suggestions-text", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "copy-to-clipboard", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
42150
42098
  artifactsOn.value && artifacts.value.length ? (openBlock(), createBlock(_sfc_main$5, {
42151
42099
  key: 0,
42152
42100
  artifacts: artifacts.value,
@@ -42158,7 +42106,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42158
42106
  onChange: onArtifactChange
42159
42107
  }, null, 8, ["artifacts", "active-key", "width", "min-width", "max-width"])) : createCommentVNode("v-if", true)
42160
42108
  ]),
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
42109
  createElementVNode("div", _hoisted_4$2, [
42163
42110
  createVNode(_sfc_main$j, {
42164
42111
  placeholder: __props.placeholder,
@@ -42179,7 +42126,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42179
42126
  fn: withCtx(() => [
42180
42127
  createVNode(_sfc_main$a, {
42181
42128
  modelValue: pendingFiles.value,
42182
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => pendingFiles.value = $event),
42129
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pendingFiles.value = $event),
42183
42130
  layout: "listOnly",
42184
42131
  accept: __props.accept,
42185
42132
  count: __props.attachmentLimit,
@@ -42197,7 +42144,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
42197
42144
  fn: withCtx(() => [
42198
42145
  createVNode(_sfc_main$a, {
42199
42146
  modelValue: pendingFiles.value,
42200
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pendingFiles.value = $event),
42147
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => pendingFiles.value = $event),
42201
42148
  layout: "triggerOnly",
42202
42149
  accept: __props.accept,
42203
42150
  count: __props.attachmentLimit,
@@ -42588,7 +42535,10 @@ const _hoisted_8$1 = {
42588
42535
  key: 0,
42589
42536
  class: "fv-ai-sidebar-loading-tip"
42590
42537
  };
42591
- const _hoisted_9$1 = { class: "fv-ai-sidebar is-collapsed" };
42538
+ const _hoisted_9$1 = {
42539
+ key: 1,
42540
+ class: "fv-ai-sidebar is-collapsed"
42541
+ };
42592
42542
  var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42593
42543
  ...{ name: "FvAiSessionSidebar" },
42594
42544
  __name: "index",
@@ -42775,62 +42725,170 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42775
42725
  });
42776
42726
  onMounted(reload);
42777
42727
  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
- ])
42728
+ return !collapsed.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
42729
+ createElementVNode("div", _hoisted_2$2, [
42730
+ renderSlot(_ctx.$slots, "brand", {}, () => [
42731
+ createElementVNode("div", _hoisted_3$2, [
42732
+ __props.brandIcon ? (openBlock(), createElementBlock("img", {
42733
+ key: 0,
42734
+ class: "fv-ai-sidebar-brand-badge-img",
42735
+ src: __props.brandIcon,
42736
+ alt: __props.brandName
42737
+ }, null, 8, _hoisted_4$1)) : createCommentVNode("v-if", true)
42823
42738
  ]),
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, {
42739
+ createElementVNode(
42740
+ "span",
42741
+ _hoisted_5$1,
42742
+ toDisplayString(__props.brandName),
42743
+ 1
42744
+ /* TEXT */
42745
+ ),
42746
+ createVNode(unref(ElTooltip), {
42747
+ content: unref(dict).sessionSidebar.collapse,
42748
+ placement: "bottom",
42749
+ "show-after": 300
42750
+ }, {
42751
+ default: withCtx(() => [
42752
+ createElementVNode("button", {
42753
+ class: "fv-ai-sidebar-collapse",
42754
+ type: "button",
42755
+ onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = true)
42756
+ }, [
42757
+ createVNode(_sfc_main$c, {
42758
+ name: "sidebar",
42759
+ size: 16
42760
+ })
42761
+ ])
42762
+ ]),
42763
+ _: 1
42764
+ /* STABLE */
42765
+ }, 8, ["content"])
42766
+ ])
42767
+ ]),
42768
+ createElementVNode("button", {
42769
+ class: "fv-ai-sidebar-new-chat",
42770
+ type: "button",
42771
+ onClick: onCreate
42772
+ }, [
42773
+ renderSlot(_ctx.$slots, "new-chat", {}, () => [
42774
+ createVNode(unref(ElIcon), null, {
42775
+ default: withCtx(() => [
42776
+ createVNode(unref(Plus))
42777
+ ]),
42778
+ _: 1
42779
+ /* STABLE */
42780
+ }),
42781
+ createElementVNode(
42782
+ "span",
42783
+ null,
42784
+ toDisplayString(unref(dict).sessionSidebar.newChat),
42785
+ 1
42786
+ /* TEXT */
42787
+ )
42788
+ ])
42789
+ ]),
42790
+ archiveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
42791
+ createVNode(unref(ElSegmented), {
42792
+ modelValue: statusFilter.value,
42793
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => statusFilter.value = $event),
42794
+ options: statusOptions.value,
42795
+ onChange: _cache[2] || (_cache[2] = () => reload())
42796
+ }, null, 8, ["modelValue", "options"])
42797
+ ])) : createCommentVNode("v-if", true),
42798
+ __props.searchable ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
42799
+ createVNode(unref(ElInput), {
42800
+ ref_key: "searchInputRef",
42801
+ ref: searchInputRef,
42802
+ modelValue: keyword.value,
42803
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => keyword.value = $event),
42804
+ placeholder: unref(dict).sessionSidebar.searchPlaceholder,
42805
+ clearable: "",
42806
+ "prefix-icon": unref(Search)
42807
+ }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
42808
+ ])) : createCommentVNode("v-if", true),
42809
+ createVNode(
42810
+ unref(ElScrollbar),
42811
+ {
42812
+ ref_key: "listScrollbarRef",
42813
+ ref: listScrollbarRef,
42814
+ class: "fv-ai-sidebar-list",
42815
+ onScroll: onListScroll
42816
+ },
42817
+ {
42818
+ default: withCtx(() => [
42819
+ createVNode(_sfc_main$9, {
42820
+ ref_key: "conversationsRef",
42821
+ ref: conversationsRef,
42822
+ items: conversationItems.value,
42823
+ active: __props.activeId ?? void 0,
42824
+ loading: loading.value,
42825
+ "has-more": hasMore.value,
42826
+ locale: __props.locale,
42827
+ "onUpdate:active": onSelect,
42828
+ onMenuCommand
42829
+ }, {
42830
+ menu: withCtx(({ item }) => [
42831
+ renderSlot(_ctx.$slots, "menu", { item }, () => [
42832
+ createVNode(unref(ElDropdownItem), { command: "prompt-rename" }, {
42833
+ default: withCtx(() => [
42834
+ createTextVNode(
42835
+ toDisplayString(unref(dict).conversations.rename),
42836
+ 1
42837
+ /* TEXT */
42838
+ )
42839
+ ]),
42840
+ _: 1
42841
+ /* STABLE */
42842
+ }),
42843
+ archiveEnabled.value ? (openBlock(), createBlock(
42844
+ unref(ElDropdownItem),
42845
+ {
42846
+ key: 0,
42847
+ command: "archive"
42848
+ },
42849
+ {
42850
+ default: withCtx(() => [
42851
+ createTextVNode(
42852
+ toDisplayString(isArchived(String(item.key)) ? unref(dict).sessionSidebar.restore : unref(dict).sessionSidebar.archive),
42853
+ 1
42854
+ /* TEXT */
42855
+ )
42856
+ ]),
42857
+ _: 2
42858
+ /* DYNAMIC */
42859
+ },
42860
+ 1024
42861
+ /* DYNAMIC_SLOTS */
42862
+ )) : createCommentVNode("v-if", true),
42863
+ createVNode(unref(ElDropdownItem), {
42864
+ command: "prompt-delete",
42865
+ divided: ""
42866
+ }, {
42867
+ default: withCtx(() => [
42868
+ createTextVNode(
42869
+ toDisplayString(unref(dict).conversations.delete),
42870
+ 1
42871
+ /* TEXT */
42872
+ )
42873
+ ]),
42874
+ _: 1
42875
+ /* STABLE */
42876
+ })
42877
+ ])
42878
+ ]),
42879
+ item: withCtx((scope) => [
42880
+ renderSlot(_ctx.$slots, "item", {
42881
+ item: scope.item,
42882
+ active: scope.active
42883
+ })
42884
+ ]),
42885
+ _: 3
42886
+ /* FORWARDED */
42887
+ }, 8, ["items", "active", "loading", "has-more", "locale"]),
42888
+ loading.value && sessions.value.length ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
42889
+ createVNode(unref(ElIcon), { class: "is-loading" }, {
42832
42890
  default: withCtx(() => [
42833
- createVNode(unref(Plus))
42891
+ createVNode(unref(Loading))
42834
42892
  ]),
42835
42893
  _: 1
42836
42894
  /* STABLE */
@@ -42838,221 +42896,87 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
42838
42896
  createElementVNode(
42839
42897
  "span",
42840
42898
  null,
42841
- toDisplayString(unref(dict).sessionSidebar.newChat),
42899
+ toDisplayString(unref(dict).sessionSidebar.listLoading),
42842
42900
  1
42843
42901
  /* TEXT */
42844
42902
  )
42845
- ])
42903
+ ])) : createCommentVNode("v-if", true)
42846
42904
  ]),
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
- {
42905
+ _: 3
42906
+ /* FORWARDED */
42907
+ },
42908
+ 512
42909
+ /* NEED_PATCH */
42910
+ )
42911
+ ])) : (openBlock(), createElementBlock("div", _hoisted_9$1, [
42912
+ createVNode(unref(ElTooltip), {
42913
+ content: unref(dict).sessionSidebar.expand,
42914
+ placement: "right",
42915
+ "show-after": 300
42916
+ }, {
42917
+ default: withCtx(() => [
42918
+ createElementVNode("button", {
42919
+ class: "fv-ai-sidebar-rail",
42920
+ type: "button",
42921
+ onClick: _cache[4] || (_cache[4] = ($event) => collapsed.value = false)
42922
+ }, [
42923
+ createVNode(_sfc_main$c, {
42924
+ name: "sidebar",
42925
+ size: 16
42926
+ })
42927
+ ])
42928
+ ]),
42929
+ _: 1
42930
+ /* STABLE */
42931
+ }, 8, ["content"]),
42932
+ createVNode(unref(ElTooltip), {
42933
+ content: unref(dict).sessionSidebar.newChat,
42934
+ placement: "right",
42935
+ "show-after": 300
42936
+ }, {
42937
+ default: withCtx(() => [
42938
+ createElementVNode("button", {
42939
+ class: "fv-ai-sidebar-rail",
42940
+ type: "button",
42941
+ onClick: onCreate
42942
+ }, [
42943
+ createVNode(unref(ElIcon), { size: 16 }, {
42879
42944
  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)
42945
+ createVNode(unref(Plus))
42967
42946
  ]),
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
- );
42947
+ _: 1
42948
+ /* STABLE */
42949
+ })
42950
+ ])
42951
+ ]),
42952
+ _: 1
42953
+ /* STABLE */
42954
+ }, 8, ["content"]),
42955
+ __props.searchable ? (openBlock(), createBlock(unref(ElTooltip), {
42956
+ key: 0,
42957
+ content: unref(dict).sessionSidebar.searchPlaceholder,
42958
+ placement: "right",
42959
+ "show-after": 300
42960
+ }, {
42961
+ default: withCtx(() => [
42962
+ createElementVNode("button", {
42963
+ class: "fv-ai-sidebar-rail",
42964
+ type: "button",
42965
+ onClick: expandToSearch
42966
+ }, [
42967
+ createVNode(unref(ElIcon), { size: 16 }, {
42968
+ default: withCtx(() => [
42969
+ createVNode(unref(Search))
42970
+ ]),
42971
+ _: 1
42972
+ /* STABLE */
42973
+ })
42974
+ ])
42975
+ ]),
42976
+ _: 1
42977
+ /* STABLE */
42978
+ }, 8, ["content"])) : createCommentVNode("v-if", true)
42979
+ ]));
43056
42980
  };
43057
42981
  }
43058
42982
  });
@@ -43075,6 +42999,8 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43075
42999
  suggestions: { type: Array, required: false, default: () => [] },
43076
43000
  suggestionsTitle: { type: String, required: false, default: "" },
43077
43001
  suggestionsWrap: { type: Boolean, required: false, default: true },
43002
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
43003
+ refreshSuggestionsText: { type: String, required: false, default: "" },
43078
43004
  typing: { type: [Boolean, Object], required: false, default: true },
43079
43005
  collapsible: { type: Boolean, required: false, default: true },
43080
43006
  showTime: { type: Boolean, required: false, default: true },
@@ -43093,7 +43019,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43093
43019
  detailLimit: { type: Number, required: false, default: 100 },
43094
43020
  historyLimit: { type: Number, required: false, default: 50 }
43095
43021
  },
43096
- emits: ["session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error"],
43022
+ emits: ["session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
43097
43023
  setup(__props, { expose: __expose, emit: __emit }) {
43098
43024
  const props = __props;
43099
43025
  const emit = __emit;
@@ -43337,7 +43263,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43337
43263
  style: normalizeStyle(bodyStyle.value)
43338
43264
  },
43339
43265
  [
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
43266
  (openBlock(), createBlock(_sfc_main$4, {
43342
43267
  key: viewKey.value,
43343
43268
  adapter: lazyAdapter,
@@ -43351,6 +43276,8 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43351
43276
  suggestions: __props.suggestions,
43352
43277
  "suggestions-title": __props.suggestionsTitle,
43353
43278
  "suggestions-wrap": __props.suggestionsWrap,
43279
+ "show-refresh-suggestions": __props.showRefreshSuggestions,
43280
+ "refresh-suggestions-text": __props.refreshSuggestionsText,
43354
43281
  typing: __props.typing,
43355
43282
  collapsible: __props.collapsible,
43356
43283
  "show-time": __props.showTime,
@@ -43366,7 +43293,8 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43366
43293
  onAttachmentUploaded,
43367
43294
  onMessageFileClick,
43368
43295
  onFeedbackChange,
43369
- onFeedbackError
43296
+ onFeedbackError,
43297
+ onRefreshSuggestions: _cache[0] || (_cache[0] = ($event) => emit("refresh-suggestions"))
43370
43298
  }, createSlots({
43371
43299
  _: 2
43372
43300
  /* DYNAMIC */
@@ -43406,57 +43334,70 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43406
43334
  ]),
43407
43335
  key: "4"
43408
43336
  } : void 0,
43337
+ _ctx.$slots["refresh-suggestions"] ? {
43338
+ name: "refresh-suggestions",
43339
+ fn: withCtx(() => [
43340
+ renderSlot(_ctx.$slots, "refresh-suggestions")
43341
+ ]),
43342
+ key: "5"
43343
+ } : void 0,
43344
+ _ctx.$slots["suggestions-footer"] ? {
43345
+ name: "suggestions-footer",
43346
+ fn: withCtx(() => [
43347
+ renderSlot(_ctx.$slots, "suggestions-footer")
43348
+ ]),
43349
+ key: "6"
43350
+ } : void 0,
43409
43351
  _ctx.$slots["user-avatar"] ? {
43410
43352
  name: "user-avatar",
43411
43353
  fn: withCtx(() => [
43412
43354
  renderSlot(_ctx.$slots, "user-avatar")
43413
43355
  ]),
43414
- key: "5"
43356
+ key: "7"
43415
43357
  } : void 0,
43416
43358
  _ctx.$slots["assistant-avatar"] ? {
43417
43359
  name: "assistant-avatar",
43418
43360
  fn: withCtx((scope) => [
43419
43361
  renderSlot(_ctx.$slots, "assistant-avatar", normalizeProps(guardReactiveProps(scope)))
43420
43362
  ]),
43421
- key: "6"
43363
+ key: "8"
43422
43364
  } : void 0,
43423
43365
  _ctx.$slots["user-name"] ? {
43424
43366
  name: "user-name",
43425
43367
  fn: withCtx((scope) => [
43426
43368
  renderSlot(_ctx.$slots, "user-name", normalizeProps(guardReactiveProps(scope)))
43427
43369
  ]),
43428
- key: "7"
43370
+ key: "9"
43429
43371
  } : void 0,
43430
43372
  _ctx.$slots["assistant-name"] ? {
43431
43373
  name: "assistant-name",
43432
43374
  fn: withCtx((scope) => [
43433
43375
  renderSlot(_ctx.$slots, "assistant-name", normalizeProps(guardReactiveProps(scope)))
43434
43376
  ]),
43435
- key: "8"
43377
+ key: "10"
43436
43378
  } : void 0,
43437
43379
  _ctx.$slots["message-avatar"] ? {
43438
43380
  name: "message-avatar",
43439
43381
  fn: withCtx((scope) => [
43440
43382
  renderSlot(_ctx.$slots, "message-avatar", normalizeProps(guardReactiveProps(scope)))
43441
43383
  ]),
43442
- key: "9"
43384
+ key: "11"
43443
43385
  } : void 0,
43444
43386
  _ctx.$slots["message-actions"] ? {
43445
43387
  name: "message-actions",
43446
43388
  fn: withCtx((scope) => [
43447
43389
  renderSlot(_ctx.$slots, "message-actions", normalizeProps(guardReactiveProps(scope)))
43448
43390
  ]),
43449
- key: "10"
43391
+ key: "12"
43450
43392
  } : void 0,
43451
43393
  _ctx.$slots["sender-prefix"] ? {
43452
43394
  name: "prefix",
43453
43395
  fn: withCtx(() => [
43454
43396
  renderSlot(_ctx.$slots, "sender-prefix")
43455
43397
  ]),
43456
- key: "11"
43398
+ key: "13"
43457
43399
  } : void 0
43458
- ]), 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) "),
43400
+ ]), 1032, ["messages", "placeholder", "theme", "welcome-layout", "center-welcome", "tool-step-label", "locale", "suggestions", "suggestions-title", "suggestions-wrap", "show-refresh-suggestions", "refresh-suggestions-text", "typing", "collapsible", "show-time", "allow-attachments", "accept", "attachment-limit", "resolve-file-url", "feedback-handler"])),
43460
43401
  hasEarlier.value && atTop.value ? (openBlock(), createBlock(unref(ElButton), {
43461
43402
  key: 0,
43462
43403
  class: "fv-ai-chat-panel-load-earlier",
@@ -43476,7 +43417,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
43476
43417
  _: 1
43477
43418
  /* STABLE */
43478
43419
  }, 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
43420
  detailLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
43481
43421
  createVNode(unref(ElIcon), { class: "is-loading" }, {
43482
43422
  default: withCtx(() => [
@@ -43607,6 +43547,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43607
43547
  floatingHeight: { type: String, required: false, default: "" },
43608
43548
  showModeToggle: { type: Boolean, required: false, default: false },
43609
43549
  storageKey: { type: String, required: false, default: "fv-ai-chat-widget" },
43550
+ rememberPosition: { type: Boolean, required: false, default: true },
43610
43551
  keepAlive: { type: Boolean, required: false, default: true },
43611
43552
  maximizable: { type: Boolean, required: false, default: true },
43612
43553
  title: { type: String, required: false, default: "" },
@@ -43618,6 +43559,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43618
43559
  suggestions: { type: Array, required: false, default: () => [] },
43619
43560
  suggestionsTitle: { type: String, required: false, default: "" },
43620
43561
  suggestionsWrap: { type: Boolean, required: false, default: true },
43562
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
43563
+ refreshSuggestionsText: { type: String, required: false, default: "" },
43621
43564
  typing: { type: [Boolean, Object], required: false, default: true },
43622
43565
  collapsible: { type: Boolean, required: false, default: true },
43623
43566
  showTime: { type: Boolean, required: false, default: true },
@@ -43633,7 +43576,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43633
43576
  detailLimit: { type: Number, required: false, default: 100 },
43634
43577
  historyLimit: { type: Number, required: false, default: 50 }
43635
43578
  },
43636
- emits: ["update:modelValue", "open", "close", "session-change", "session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error"],
43579
+ emits: ["update:modelValue", "open", "close", "session-change", "session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
43637
43580
  setup(__props, { expose: __expose, emit: __emit }) {
43638
43581
  const props = __props;
43639
43582
  const emit = __emit;
@@ -43800,6 +43743,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43800
43743
  suggestions: props.suggestions,
43801
43744
  suggestionsTitle: props.suggestionsTitle,
43802
43745
  suggestionsWrap: props.suggestionsWrap,
43746
+ showRefreshSuggestions: props.showRefreshSuggestions,
43747
+ refreshSuggestionsText: props.refreshSuggestionsText,
43803
43748
  typing: props.typing,
43804
43749
  collapsible: props.collapsible,
43805
43750
  showTime: props.showTime,
@@ -43844,6 +43789,9 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43844
43789
  function onPanelFeedbackError(message) {
43845
43790
  emit("feedback-error", message);
43846
43791
  }
43792
+ function onPanelRefreshSuggestions() {
43793
+ emit("refresh-suggestions");
43794
+ }
43847
43795
  const panelListeners = {
43848
43796
  error: onPanelError,
43849
43797
  "message-complete": onPanelMessageComplete,
@@ -43851,7 +43799,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43851
43799
  "attachment-uploaded": onPanelAttachmentUploaded,
43852
43800
  "message-file-click": onPanelMessageFileClick,
43853
43801
  "feedback-change": onPanelFeedbackChange,
43854
- "feedback-error": onPanelFeedbackError
43802
+ "feedback-error": onPanelFeedbackError,
43803
+ "refresh-suggestions": onPanelRefreshSuggestions
43855
43804
  };
43856
43805
  const widgetEl = ref(null);
43857
43806
  const floatingPos = ref(null);
@@ -43861,15 +43810,44 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
43861
43810
  if (!props.storageKey) return null;
43862
43811
  return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-width`;
43863
43812
  }
43813
+ function resolvePositionKey() {
43814
+ if (!props.storageKey || !props.rememberPosition) return null;
43815
+ return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-position`;
43816
+ }
43817
+ function clampPos(pos) {
43818
+ const w = currentWidgetWidth();
43819
+ const h = floatingHeightPx();
43820
+ return {
43821
+ left: Math.min(Math.max(pos.left, 0), Math.max(0, window.innerWidth - w)),
43822
+ top: Math.min(Math.max(pos.top, 0), Math.max(0, window.innerHeight - h))
43823
+ };
43824
+ }
43864
43825
  const dragWidth = ref(null);
43865
43826
  onMounted(async () => {
43866
43827
  const key = resolveWidthKey();
43867
- if (!key) return;
43868
- const saved = await storage.get(key);
43869
- if (typeof saved === "number" && Number.isFinite(saved)) {
43870
- dragWidth.value = Math.min(Math.max(saved, props.minWidth), props.maxWidth);
43828
+ if (key) {
43829
+ const saved = await storage.get(key);
43830
+ if (typeof saved === "number" && Number.isFinite(saved)) {
43831
+ dragWidth.value = Math.min(Math.max(saved, props.minWidth), props.maxWidth);
43832
+ }
43833
+ }
43834
+ const posKey = resolvePositionKey();
43835
+ if (!posKey) {
43836
+ if (mode.value === "floating") initFloatingPos();
43837
+ return;
43838
+ }
43839
+ const pos = await storage.get(posKey);
43840
+ if (pos && Number.isFinite(pos.left) && Number.isFinite(pos.top) && mode.value === "floating") {
43841
+ floatingPos.value = clampPos(pos);
43842
+ } else if (mode.value === "floating") {
43843
+ initFloatingPos();
43871
43844
  }
43872
43845
  });
43846
+ async function persistPosition() {
43847
+ const key = resolvePositionKey();
43848
+ if (!key || mode.value !== "floating" || !floatingPos.value) return;
43849
+ await storage.set(key, { ...floatingPos.value });
43850
+ }
43873
43851
  async function persistWidth() {
43874
43852
  const key = resolveWidthKey();
43875
43853
  if (!key || dragWidth.value == null) return;
@@ -44001,6 +43979,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
44001
43979
  document.removeEventListener("mousemove", onResizeMove);
44002
43980
  document.removeEventListener("mouseup", onResizeEnd);
44003
43981
  void persistWidth();
43982
+ if (mode.value === "floating" && resizeEdge === "left") void persistPosition();
44004
43983
  }
44005
43984
  let dragStartX = 0;
44006
43985
  let dragStartY = 0;
@@ -44081,6 +44060,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
44081
44060
  mode.value = "drawer";
44082
44061
  drawerSide.value = snapHint.value;
44083
44062
  floatingPos.value = null;
44063
+ } else {
44064
+ void persistPosition();
44084
44065
  }
44085
44066
  isDragging.value = false;
44086
44067
  dragStartPos = null;
@@ -44128,351 +44109,334 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
44128
44109
  }
44129
44110
  __expose({ open, close, toggleMode, toggleMaximize, newChat, switchToPrevious, refresh });
44130
44111
  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(
44112
+ return openBlock(), createBlock(Teleport, { to: "body" }, [
44113
+ createElementVNode("div", _hoisted_1$1, [
44114
+ snapHint.value ? (openBlock(), createElementBlock(
44115
+ "div",
44116
+ {
44117
+ key: 0,
44118
+ class: normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
44119
+ style: normalizeStyle({ width: `${currentWidgetWidth()}px` })
44120
+ },
44121
+ null,
44122
+ 6
44123
+ /* CLASS, STYLE */
44124
+ )) : createCommentVNode("v-if", true),
44125
+ createVNode(Transition, { name: "fv-ai-widget-slide" }, {
44126
+ default: withCtx(() => [
44127
+ renderWidget.value ? withDirectives((openBlock(), createElementBlock(
44140
44128
  "div",
44141
44129
  {
44142
44130
  key: 0,
44143
- class: normalizeClass(["fv-ai-widget-snap-hint", `is-${snapHint.value}`]),
44144
- style: normalizeStyle({ width: `${currentWidgetWidth()}px` })
44131
+ ref_key: "widgetEl",
44132
+ ref: widgetEl,
44133
+ class: normalizeClass(["fv-ai-widget", [
44134
+ `is-${drawerSide.value}`,
44135
+ {
44136
+ "is-floating": mode.value === "floating",
44137
+ "is-maximized": isMaximized.value,
44138
+ "is-dragging": isDragging.value
44139
+ }
44140
+ ]]),
44141
+ style: normalizeStyle(panelStyle.value)
44145
44142
  },
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(
44143
+ [
44144
+ (openBlock(true), createElementBlock(
44145
+ Fragment,
44146
+ null,
44147
+ renderList(resizeEdges.value, (edge) => {
44148
+ return openBlock(), createElementBlock("div", {
44149
+ key: edge,
44150
+ class: normalizeClass(["fv-ai-widget-resizer", `is-${edge}`]),
44151
+ onMousedown: ($event) => onResizeStart($event, edge)
44152
+ }, null, 42, _hoisted_2$1);
44153
+ }),
44154
+ 128
44155
+ /* KEYED_FRAGMENT */
44156
+ )),
44157
+ isMaximized.value ? (openBlock(), createBlock(_sfc_main$3, {
44158
+ key: 0,
44159
+ ref_key: "sidebarRef",
44160
+ ref: sidebarRef,
44161
+ collapsed: sidebarCollapsed.value,
44162
+ "onUpdate:collapsed": _cache[0] || (_cache[0] = ($event) => sidebarCollapsed.value = $event),
44163
+ class: "fv-ai-widget-sidebar",
44164
+ service: __props.service,
44165
+ "active-id": activeSessionId.value,
44166
+ searchable: true,
44167
+ "brand-name": displayTitle.value,
44168
+ "brand-icon": avatarSrc.value,
44169
+ locale: __props.locale,
44170
+ onSelect: onSidebarSelect,
44171
+ onNewChat,
44172
+ onRemoved: onSidebarRemoved
44173
+ }, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale"])) : createCommentVNode("v-if", true),
44174
+ createElementVNode(
44153
44175
  "div",
44154
44176
  {
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)
44177
+ class: "fv-ai-widget-header",
44178
+ onMousedown: onHeaderDragStart
44167
44179
  },
44168
44180
  [
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(
44181
+ !isMaximized.value ? (openBlock(), createElementBlock(
44171
44182
  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
- },
44183
+ { key: 0 },
44208
44184
  [
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,
44185
+ renderSlot(_ctx.$slots, "header-avatar", {}, () => [
44186
+ createElementVNode("img", {
44187
+ class: "fv-ai-widget-avatar",
44188
+ src: avatarSrc.value,
44189
+ alt: ""
44190
+ }, null, 8, _hoisted_3$1)
44191
+ ]),
44192
+ createElementVNode("div", _hoisted_4, [
44193
+ renderSlot(_ctx.$slots, "header-title", {}, () => [
44194
+ createTextVNode(
44195
+ toDisplayString(displayTitle.value),
44196
+ 1
44197
+ /* TEXT */
44198
+ )
44199
+ ])
44200
+ ])
44201
+ ],
44202
+ 64
44203
+ /* STABLE_FRAGMENT */
44204
+ )) : (openBlock(), createElementBlock("div", _hoisted_5)),
44205
+ renderSlot(_ctx.$slots, "header-actions"),
44206
+ !isMaximized.value ? (openBlock(), createElementBlock(
44207
+ Fragment,
44208
+ { key: 2 },
44209
+ [
44210
+ createVNode(unref(ElTooltip), {
44211
+ content: unref(dict).aiChatPanel.history,
44322
44212
  "show-after": 300,
44323
44213
  placement: "bottom"
44324
44214
  }, {
44325
44215
  default: withCtx(() => [
44326
44216
  createElementVNode("button", {
44327
44217
  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
44218
+ class: "fv-ai-widget-icon-btn fv-ai-widget-menu",
44219
+ "aria-label": unref(dict).aiChatPanel.history,
44220
+ onClick: onHistoryToggle
44331
44221
  }, [
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)
44222
+ createVNode(unref(ElIcon), { size: 18 }, {
44223
+ default: withCtx(() => [
44224
+ createVNode(unref(Clock))
44225
+ ]),
44226
+ _: 1
44227
+ /* STABLE */
44228
+ })
44229
+ ], 8, _hoisted_6)
44342
44230
  ]),
44343
44231
  _: 1
44344
44232
  /* STABLE */
44345
- }, 8, ["content"])) : createCommentVNode("v-if", true),
44233
+ }, 8, ["content"]),
44346
44234
  createVNode(unref(ElTooltip), {
44347
- content: unref(dict).aiChatPanel.close,
44235
+ content: unref(dict).sessionSidebar.newChat,
44348
44236
  "show-after": 300,
44349
44237
  placement: "bottom"
44350
44238
  }, {
44351
44239
  default: withCtx(() => [
44352
44240
  createElementVNode("button", {
44353
44241
  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))
44242
+ class: "fv-ai-widget-icon-btn fv-ai-widget-new",
44243
+ "aria-label": unref(dict).sessionSidebar.newChat,
44244
+ onClick: onNewChat
44357
44245
  }, [
44358
44246
  createVNode(unref(ElIcon), { size: 18 }, {
44359
44247
  default: withCtx(() => [
44360
- createVNode(unref(Close))
44248
+ createVNode(unref(Plus))
44361
44249
  ]),
44362
44250
  _: 1
44363
44251
  /* STABLE */
44364
44252
  })
44365
- ], 8, _hoisted_10)
44253
+ ], 8, _hoisted_7)
44366
44254
  ]),
44367
44255
  _: 1
44368
44256
  /* 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" }, {
44257
+ }, 8, ["content"]),
44258
+ __props.showModeToggle ? (openBlock(), createBlock(unref(ElTooltip), {
44259
+ key: 0,
44260
+ content: mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44261
+ "show-after": 300,
44262
+ placement: "bottom"
44263
+ }, {
44383
44264
  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)
44265
+ createElementVNode("button", {
44266
+ type: "button",
44267
+ class: "fv-ai-widget-icon-btn fv-ai-widget-mode",
44268
+ "aria-label": mode.value === "drawer" ? unref(dict).aiChatPanel.floatMode : unref(dict).aiChatPanel.drawerMode,
44269
+ onClick: toggleMode
44270
+ }, [
44271
+ mode.value === "drawer" ? (openBlock(), createBlock(_sfc_main$c, {
44272
+ key: 0,
44273
+ name: "to-window",
44274
+ size: 18
44275
+ })) : (openBlock(), createBlock(_sfc_main$c, {
44276
+ key: 1,
44277
+ name: "to-drawer",
44278
+ size: 18
44279
+ }))
44280
+ ], 8, _hoisted_8)
44430
44281
  ]),
44431
44282
  _: 1
44432
44283
  /* 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 */
44284
+ }, 8, ["content"])) : createCommentVNode("v-if", true)
44285
+ ],
44286
+ 64
44287
+ /* STABLE_FRAGMENT */
44288
+ )) : createCommentVNode("v-if", true),
44289
+ __props.maximizable ? (openBlock(), createBlock(unref(ElTooltip), {
44290
+ key: 3,
44291
+ content: isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44292
+ "show-after": 300,
44293
+ placement: "bottom"
44294
+ }, {
44295
+ default: withCtx(() => [
44296
+ createElementVNode("button", {
44297
+ type: "button",
44298
+ class: "fv-ai-widget-icon-btn fv-ai-widget-maximize",
44299
+ "aria-label": isMaximized.value ? unref(dict).aiChatPanel.restore : unref(dict).aiChatPanel.maximize,
44300
+ onClick: toggleMaximize
44446
44301
  }, [
44447
- renderList(_ctx.$slots, (_, name) => {
44448
- return {
44449
- name,
44450
- fn: withCtx((slotProps) => [
44451
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
44452
- ])
44453
- };
44302
+ isMaximized.value ? (openBlock(), createBlock(_sfc_main$c, {
44303
+ key: 0,
44304
+ name: "win-restore",
44305
+ size: 18
44306
+ })) : (openBlock(), createBlock(_sfc_main$c, {
44307
+ key: 1,
44308
+ name: "maximize",
44309
+ size: 18
44310
+ }))
44311
+ ], 8, _hoisted_9)
44312
+ ]),
44313
+ _: 1
44314
+ /* STABLE */
44315
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
44316
+ createVNode(unref(ElTooltip), {
44317
+ content: unref(dict).aiChatPanel.close,
44318
+ "show-after": 300,
44319
+ placement: "bottom"
44320
+ }, {
44321
+ default: withCtx(() => [
44322
+ createElementVNode("button", {
44323
+ type: "button",
44324
+ class: "fv-ai-widget-icon-btn fv-ai-widget-close",
44325
+ "aria-label": unref(dict).aiChatPanel.close,
44326
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", false))
44327
+ }, [
44328
+ createVNode(unref(ElIcon), { size: 18 }, {
44329
+ default: withCtx(() => [
44330
+ createVNode(unref(Close))
44331
+ ]),
44332
+ _: 1
44333
+ /* STABLE */
44454
44334
  })
44455
- ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44456
- ],
44457
- 2
44458
- /* CLASS */
44459
- )
44335
+ ], 8, _hoisted_10)
44336
+ ]),
44337
+ _: 1
44338
+ /* STABLE */
44339
+ }, 8, ["content"])
44460
44340
  ],
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
- );
44341
+ 32
44342
+ /* NEED_HYDRATION */
44343
+ ),
44344
+ createElementVNode(
44345
+ "div",
44346
+ {
44347
+ class: normalizeClass(["fv-ai-widget-body", { "is-maximized": isMaximized.value }])
44348
+ },
44349
+ [
44350
+ createVNode(Transition, { name: "fv-ai-widget-history" }, {
44351
+ default: withCtx(() => [
44352
+ historyOpen.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
44353
+ createElementVNode("div", _hoisted_12, [
44354
+ createElementVNode("button", {
44355
+ type: "button",
44356
+ class: "fv-ai-widget-icon-btn fv-ai-widget-history-back",
44357
+ "aria-label": unref(dict).aiChatPanel.back,
44358
+ onClick: _cache[2] || (_cache[2] = ($event) => historyOpen.value = false)
44359
+ }, [
44360
+ createVNode(unref(ElIcon), { size: 16 }, {
44361
+ default: withCtx(() => [
44362
+ createVNode(unref(ArrowLeft))
44363
+ ]),
44364
+ _: 1
44365
+ /* STABLE */
44366
+ }),
44367
+ createElementVNode(
44368
+ "span",
44369
+ _hoisted_14,
44370
+ toDisplayString(unref(dict).aiChatPanel.back),
44371
+ 1
44372
+ /* TEXT */
44373
+ )
44374
+ ], 8, _hoisted_13)
44375
+ ]),
44376
+ createElementVNode("div", _hoisted_15, [
44377
+ createVNode(_sfc_main$9, {
44378
+ ref_key: "conversationsRef",
44379
+ ref: conversationsRef,
44380
+ items: historyItems.value,
44381
+ active: activeSessionId.value,
44382
+ loading: historyLoading.value,
44383
+ "has-more": historyHasMore.value,
44384
+ locale: __props.locale,
44385
+ "onUpdate:active": onSelectSession,
44386
+ onLoadMore: loadMoreHistory,
44387
+ onMenuCommand: onHistoryMenuCommand
44388
+ }, null, 8, ["items", "active", "loading", "has-more", "locale"]),
44389
+ !historyLoading.value && !historyItems.value.length ? (openBlock(), createElementBlock(
44390
+ "div",
44391
+ _hoisted_16,
44392
+ toDisplayString(unref(dict).aiChatPanel.historyEmpty),
44393
+ 1
44394
+ /* TEXT */
44395
+ )) : createCommentVNode("v-if", true)
44396
+ ])
44397
+ ])) : createCommentVNode("v-if", true)
44398
+ ]),
44399
+ _: 1
44400
+ /* STABLE */
44401
+ }),
44402
+ createVNode(_sfc_main$2, mergeProps({
44403
+ ref_key: "panelRef",
44404
+ ref: panelRef
44405
+ }, panelProps.value, {
44406
+ "session-id": activeSessionId.value,
44407
+ "welcome-layout": isMaximized.value ? "horizontal" : "vertical",
44408
+ "center-welcome": isMaximized.value,
44409
+ onSessionCreated,
44410
+ onRoundComplete
44411
+ }, toHandlers(panelListeners)), createSlots({
44412
+ _: 2
44413
+ /* DYNAMIC */
44414
+ }, [
44415
+ renderList(_ctx.$slots, (_, name) => {
44416
+ return {
44417
+ name,
44418
+ fn: withCtx((slotProps) => [
44419
+ renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
44420
+ ])
44421
+ };
44422
+ })
44423
+ ]), 1040, ["session-id", "welcome-layout", "center-welcome"])
44424
+ ],
44425
+ 2
44426
+ /* CLASS */
44427
+ )
44428
+ ],
44429
+ 6
44430
+ /* CLASS, STYLE */
44431
+ )), [
44432
+ [vShow, __props.modelValue]
44433
+ ]) : createCommentVNode("v-if", true)
44434
+ ]),
44435
+ _: 3
44436
+ /* FORWARDED */
44437
+ })
44438
+ ])
44439
+ ]);
44476
44440
  };
44477
44441
  }
44478
44442
  });
@@ -44502,6 +44466,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44502
44466
  iconComponent: { type: null, required: false, default: void 0 },
44503
44467
  eyeTrack: { type: Boolean, required: false, default: true },
44504
44468
  halo: { type: Object, required: false, default: void 0 },
44469
+ storageKey: { type: String, required: false, default: "fv-ai-launcher" },
44470
+ rememberPosition: { type: Boolean, required: false, default: true },
44505
44471
  ariaLabel: { type: String, required: false, default: "" },
44506
44472
  locale: { type: null, required: false, default: void 0 }
44507
44473
  },
@@ -44536,6 +44502,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44536
44502
  moved: false
44537
44503
  };
44538
44504
  const dragPos = ref(null);
44505
+ const storage = createLocalStorageAdapter();
44506
+ function resolvePositionKey() {
44507
+ if (!props.storageKey || !props.rememberPosition) return null;
44508
+ return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-position`;
44509
+ }
44510
+ function clampPos(pos) {
44511
+ const size = props.size;
44512
+ return {
44513
+ left: Math.min(Math.max(pos.left, 0), Math.max(0, window.innerWidth - size)),
44514
+ top: Math.min(Math.max(pos.top, 0), Math.max(0, window.innerHeight - size))
44515
+ };
44516
+ }
44517
+ onMounted(async () => {
44518
+ const key = resolvePositionKey();
44519
+ if (!key || !dragEnabled.value) return;
44520
+ const pos = await storage.get(key);
44521
+ if (pos && Number.isFinite(pos.left) && Number.isFinite(pos.top)) {
44522
+ dragPos.value = clampPos(pos);
44523
+ }
44524
+ });
44525
+ async function persistPosition() {
44526
+ const key = resolvePositionKey();
44527
+ if (!key || !dragPos.value) return;
44528
+ await storage.set(key, { ...dragPos.value });
44529
+ }
44539
44530
  function onPointerDown(ev) {
44540
44531
  if (!dragEnabled.value || ev.button !== 0) return;
44541
44532
  const el = rootEl.value;
@@ -44575,7 +44566,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44575
44566
  el.removeEventListener("pointercancel", onPointerUp);
44576
44567
  }
44577
44568
  dragState.pointerId = -1;
44578
- if (dragState.moved && dragPos.value) emit("drag-end", { ...dragPos.value });
44569
+ if (dragState.moved && dragPos.value) {
44570
+ emit("drag-end", { ...dragPos.value });
44571
+ void persistPosition();
44572
+ }
44579
44573
  }
44580
44574
  onBeforeUnmount(() => {
44581
44575
  const el = rootEl.value;
@@ -44683,32 +44677,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44683
44677
  onClick: _cache[1] || (_cache[1] = ($event) => __props.interactive && onClickGuard($event))
44684
44678
  }, {
44685
44679
  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
44680
  createVNode(_sfc_main$8, mergeProps({
44688
44681
  class: "fv-ai-launcher-halo",
44689
44682
  size: __props.size
44690
44683
  }, 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
44684
  createElementVNode("span", _hoisted_1, [
44693
44685
  renderSlot(_ctx.$slots, "default", {}, () => [
44694
44686
  renderSlot(_ctx.$slots, "icon", {}, () => [
44695
44687
  __props.iconComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.iconComponent), {
44696
44688
  key: 0,
44697
44689
  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", {
44690
+ })) : !__props.icon ? (openBlock(), createElementBlock("span", {
44691
+ key: 1,
44692
+ class: normalizeClass(["fv-ai-launcher-avatar", { "is-eye-track": eyeTrackEnabled.value }]),
44693
+ "aria-hidden": "true",
44694
+ innerHTML: unref(defaultAvatarSvg)
44695
+ }, null, 10, _hoisted_2)) : (openBlock(), createElementBlock("img", {
44712
44696
  key: 2,
44713
44697
  class: "fv-ai-launcher-avatar",
44714
44698
  src: __props.icon,