@fv-ui/ai-chat 1.9.4 → 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/lib/index.js CHANGED
@@ -33241,7 +33241,9 @@
33241
33241
  welcome: {
33242
33242
  greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
33243
33243
  greetingName: "Gizmo",
33244
- 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"
33244
+ 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",
33245
+ /** 空态建议区「换一批」按钮默认文案 */
33246
+ refreshSuggestions: "\u6362\u4E00\u6279"
33245
33247
  },
33246
33248
  sender: {
33247
33249
  clear: "\u6E05\u7A7A",
@@ -33437,7 +33439,9 @@
33437
33439
  welcome: {
33438
33440
  greetingPrefix: "Hello, I am ",
33439
33441
  greetingName: "Gizmo",
33440
- description: "I can help you query data, analyze problems, generate reports, and perform system operations to make production management more efficient."
33442
+ description: "I can help you query data, analyze problems, generate reports, and perform system operations to make production management more efficient.",
33443
+ /** 空态建议区「换一批」按钮默认文案 */
33444
+ refreshSuggestions: "Refresh suggestions"
33441
33445
  },
33442
33446
  sender: {
33443
33447
  clear: "Clear",
@@ -33626,7 +33630,9 @@
33626
33630
  welcome: {
33627
33631
  greetingPrefix: "\uC548\uB155\uD558\uC138\uC694, \uC800\uB294 ",
33628
33632
  greetingName: "Gizmo",
33629
- 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."
33633
+ 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.",
33634
+ /** 空态建议区「换一批」按钮默认文案 */
33635
+ refreshSuggestions: "\uB2E4\uB978 \uCD94\uCC9C \uBCF4\uAE30"
33630
33636
  },
33631
33637
  sender: {
33632
33638
  clear: "\uC9C0\uC6B0\uAE30",
@@ -33825,7 +33831,9 @@
33825
33831
  welcome: {
33826
33832
  greetingPrefix: "Xin ch\xE0o, t\xF4i l\xE0 ",
33827
33833
  greetingName: "Gizmo",
33828
- 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."
33834
+ 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.",
33835
+ /** 空态建议区「换一批」按钮默认文案 */
33836
+ refreshSuggestions: "\u0110\u1ED5i g\u1EE3i \xFD kh\xE1c"
33829
33837
  },
33830
33838
  sender: {
33831
33839
  clear: "X\xF3a h\u1EBFt",
@@ -34024,7 +34032,9 @@
34024
34032
  welcome: {
34025
34033
  greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
34026
34034
  greetingName: "Gizmo",
34027
- 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"
34035
+ 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",
34036
+ /** 空态建议区「换一批」按钮默认文案 */
34037
+ refreshSuggestions: "\u63DB\u4E00\u6279"
34028
34038
  },
34029
34039
  sender: {
34030
34040
  clear: "\u6E05\u7A7A",
@@ -34510,7 +34520,7 @@
34510
34520
  key: 0,
34511
34521
  class: "fv-bubble-header"
34512
34522
  };
34513
- const _hoisted_4$f = {
34523
+ const _hoisted_4$g = {
34514
34524
  key: 0,
34515
34525
  class: "fv-bubble-loading"
34516
34526
  };
@@ -34611,7 +34621,7 @@
34611
34621
  class: vue.normalizeClass(["fv-bubble-content", { "no-padding": __props.noPadding, "no-style": __props.noStyle }])
34612
34622
  },
34613
34623
  [
34614
- __props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, [
34624
+ __props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$g, [
34615
34625
  _ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", {}, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
34616
34626
  vue.Fragment,
34617
34627
  { key: 1 },
@@ -35035,7 +35045,7 @@
35035
35045
  key: 0,
35036
35046
  class: "fv-sender-body-top"
35037
35047
  };
35038
- const _hoisted_4$e = { class: "fv-sender-row" };
35048
+ const _hoisted_4$f = { class: "fv-sender-row" };
35039
35049
  const _hoisted_5$c = {
35040
35050
  key: 0,
35041
35051
  class: "fv-sender-prefix"
@@ -35045,7 +35055,7 @@
35045
35055
  "aria-hidden": "true"
35046
35056
  };
35047
35057
  const _hoisted_7$9 = { class: "fv-sender-recording-duration" };
35048
- const _hoisted_8$7 = ["value", "placeholder", "disabled", "readonly"];
35058
+ const _hoisted_8$8 = ["value", "placeholder", "disabled", "readonly"];
35049
35059
  const _hoisted_9$5 = {
35050
35060
  key: 3,
35051
35061
  class: "fv-sender-actions"
@@ -35434,7 +35444,7 @@
35434
35444
  _ctx.$slots["body-top"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$h, [
35435
35445
  vue.renderSlot(_ctx.$slots, "body-top")
35436
35446
  ])) : vue.createCommentVNode("v-if", true),
35437
- vue.createElementVNode("div", _hoisted_4$e, [
35447
+ vue.createElementVNode("div", _hoisted_4$f, [
35438
35448
  _ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$c, [
35439
35449
  vue.renderSlot(_ctx.$slots, "prefix")
35440
35450
  ])) : vue.createCommentVNode("v-if", true),
@@ -35539,7 +35549,7 @@
35539
35549
  onPaste,
35540
35550
  onFocus: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
35541
35551
  onBlur: onTextareaBlur
35542
- }, null, 40, _hoisted_8$7),
35552
+ }, null, 40, _hoisted_8$8),
35543
35553
  vue.createVNode(vue.unref(elementPlus.ElPopover), {
35544
35554
  visible: triggerVisible.value && __props.triggerStrings.length > 0,
35545
35555
  placement: __props.triggerPopoverPlacement,
@@ -35696,7 +35706,7 @@
35696
35706
  key: 1,
35697
35707
  class: "fv-mention-loading"
35698
35708
  };
35699
- const _hoisted_4$d = ["onMouseenter", "onClick"];
35709
+ const _hoisted_4$e = ["onMouseenter", "onClick"];
35700
35710
  const _hoisted_5$b = { class: "fv-mention-avatar" };
35701
35711
  const _hoisted_6$a = ["src", "alt"];
35702
35712
  const _hoisted_7$8 = { class: "fv-mention-name" };
@@ -36102,7 +36112,7 @@
36102
36112
  1
36103
36113
  /* TEXT */
36104
36114
  )
36105
- ], 42, _hoisted_4$d);
36115
+ ], 42, _hoisted_4$e);
36106
36116
  }),
36107
36117
  128
36108
36118
  /* KEYED_FRAGMENT */
@@ -36129,14 +36139,14 @@
36129
36139
  key: 0,
36130
36140
  class: "fv-editor-prefix"
36131
36141
  };
36132
- const _hoisted_4$c = { class: "fv-editor-input" };
36142
+ const _hoisted_4$d = { class: "fv-editor-input" };
36133
36143
  const _hoisted_5$a = ["contenteditable", "data-placeholder"];
36134
36144
  const _hoisted_6$9 = { class: "fv-editor-mention-panel" };
36135
36145
  const _hoisted_7$7 = {
36136
36146
  key: 0,
36137
36147
  class: "fv-editor-mention-title"
36138
36148
  };
36139
- const _hoisted_8$6 = {
36149
+ const _hoisted_8$7 = {
36140
36150
  key: 1,
36141
36151
  class: "fv-editor-mention-loading"
36142
36152
  };
@@ -36906,7 +36916,7 @@
36906
36916
  _ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$f, [
36907
36917
  vue.renderSlot(_ctx.$slots, "prefix")
36908
36918
  ])) : vue.createCommentVNode("v-if", true),
36909
- vue.createElementVNode("div", _hoisted_4$c, [
36919
+ vue.createElementVNode("div", _hoisted_4$d, [
36910
36920
  vue.createElementVNode("div", {
36911
36921
  ref_key: "editorRef",
36912
36922
  ref: editorRef,
@@ -36954,7 +36964,7 @@
36954
36964
  )) : vue.createCommentVNode("v-if", true),
36955
36965
  asyncLoading.value ? (vue.openBlock(), vue.createElementBlock(
36956
36966
  "div",
36957
- _hoisted_8$6,
36967
+ _hoisted_8$7,
36958
36968
  vue.toDisplayString(vue.unref(dict).editorSender.loading),
36959
36969
  1
36960
36970
  /* TEXT */
@@ -37187,7 +37197,7 @@
37187
37197
  class: "fv-thinking-dot"
37188
37198
  };
37189
37199
  const _hoisted_3$e = { class: "fv-thinking-label" };
37190
- const _hoisted_4$b = ["hidden"];
37200
+ const _hoisted_4$c = ["hidden"];
37191
37201
  var _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
37192
37202
  ...{ name: "FvThinking" },
37193
37203
  __name: "index",
@@ -37342,7 +37352,7 @@
37342
37352
  /* TEXT */
37343
37353
  )
37344
37354
  ], void 0, 1)
37345
- ], 12, _hoisted_4$b)) : vue.createCommentVNode("v-if", true)
37355
+ ], 12, _hoisted_4$c)) : vue.createCommentVNode("v-if", true)
37346
37356
  ],
37347
37357
  6
37348
37358
  /* CLASS, STYLE */
@@ -37357,7 +37367,7 @@
37357
37367
  class: "fv-chain-dot"
37358
37368
  };
37359
37369
  const _hoisted_3$d = { class: "fv-chain-main" };
37360
- const _hoisted_4$a = ["aria-label", "onClick"];
37370
+ const _hoisted_4$b = ["aria-label", "onClick"];
37361
37371
  const _hoisted_5$9 = { class: "fv-chain-head-title" };
37362
37372
  const _hoisted_6$8 = {
37363
37373
  key: 0,
@@ -37367,7 +37377,7 @@
37367
37377
  key: 0,
37368
37378
  class: "fv-chain-body"
37369
37379
  };
37370
- const _hoisted_8$5 = {
37380
+ const _hoisted_8$6 = {
37371
37381
  key: 0,
37372
37382
  class: "scroll-edge-fade-top",
37373
37383
  "aria-hidden": "true"
@@ -37836,9 +37846,9 @@
37836
37846
  1024
37837
37847
  /* DYNAMIC_SLOTS */
37838
37848
  )
37839
- ], 10, _hoisted_4$a),
37849
+ ], 10, _hoisted_4$b),
37840
37850
  isTextExpanded(item.key) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$6, [
37841
- edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$5)) : vue.createCommentVNode("v-if", true),
37851
+ edgeFade(item.key).top ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$6)) : vue.createCommentVNode("v-if", true),
37842
37852
  edgeFade(item.key).bottom ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9$3)) : vue.createCommentVNode("v-if", true),
37843
37853
  vue.createVNode(vue.unref(elementPlus.ElScrollbar), {
37844
37854
  ref_for: true,
@@ -37959,11 +37969,11 @@
37959
37969
  const _hoisted_1$e = { class: "fv-welcome-icon" };
37960
37970
  const _hoisted_2$c = ["src"];
37961
37971
  const _hoisted_3$c = { class: "fv-welcome-main" };
37962
- const _hoisted_4$9 = { class: "fv-welcome-text" };
37972
+ const _hoisted_4$a = { class: "fv-welcome-text" };
37963
37973
  const _hoisted_5$8 = { class: "fv-welcome-name" };
37964
37974
  const _hoisted_6$7 = { class: "fv-welcome-name-accent" };
37965
37975
  const _hoisted_7$5 = { class: "fv-welcome-description" };
37966
- const _hoisted_8$4 = {
37976
+ const _hoisted_8$5 = {
37967
37977
  key: 0,
37968
37978
  class: "fv-welcome-suggestions"
37969
37979
  };
@@ -38014,7 +38024,7 @@
38014
38024
  ])
38015
38025
  ]),
38016
38026
  vue.createElementVNode("div", _hoisted_3$c, [
38017
- vue.createElementVNode("div", _hoisted_4$9, [
38027
+ vue.createElementVNode("div", _hoisted_4$a, [
38018
38028
  vue.createElementVNode("h2", _hoisted_5$8, [
38019
38029
  vue.renderSlot(_ctx.$slots, "name", {}, () => [
38020
38030
  __props.name ? (vue.openBlock(), vue.createElementBlock(
@@ -38061,7 +38071,7 @@
38061
38071
  ])
38062
38072
  ])
38063
38073
  ]),
38064
- _ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
38074
+ _ctx.$slots.suggestions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
38065
38075
  vue.renderSlot(_ctx.$slots, "suggestions")
38066
38076
  ])) : vue.createCommentVNode("v-if", true)
38067
38077
  ])
@@ -38079,7 +38089,7 @@
38079
38089
  class: "fv-prompts-title"
38080
38090
  };
38081
38091
  const _hoisted_3$b = ["role", "tabindex", "onClick"];
38082
- const _hoisted_4$8 = { class: "fv-prompt-item-main" };
38092
+ const _hoisted_4$9 = { class: "fv-prompt-item-main" };
38083
38093
  const _hoisted_5$7 = { class: "fv-prompt-item-text" };
38084
38094
  const _hoisted_6$6 = {
38085
38095
  key: 0,
@@ -38089,6 +38099,10 @@
38089
38099
  key: 1,
38090
38100
  class: "fv-prompt-item-description"
38091
38101
  };
38102
+ const _hoisted_8$4 = {
38103
+ key: 0,
38104
+ class: "fv-prompts-footer"
38105
+ };
38092
38106
  var _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
38093
38107
  ...{ name: "FvPrompts" },
38094
38108
  __name: "index",
@@ -38142,7 +38156,7 @@
38142
38156
  item,
38143
38157
  index
38144
38158
  }, () => [
38145
- vue.createElementVNode("div", _hoisted_4$8, [
38159
+ vue.createElementVNode("div", _hoisted_4$9, [
38146
38160
  resolvedIcons.value[index] ? (vue.openBlock(), vue.createBlock(
38147
38161
  vue.unref(elementPlus.ElIcon),
38148
38162
  {
@@ -38181,7 +38195,10 @@
38181
38195
  }),
38182
38196
  128
38183
38197
  /* KEYED_FRAGMENT */
38184
- ))
38198
+ )),
38199
+ _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
38200
+ vue.renderSlot(_ctx.$slots, "footer")
38201
+ ])) : vue.createCommentVNode("v-if", true)
38185
38202
  ],
38186
38203
  2
38187
38204
  /* CLASS */
@@ -38290,7 +38307,7 @@
38290
38307
  const _hoisted_1$b = ["src", "alt"];
38291
38308
  const _hoisted_2$a = { class: "fv-files-card-info" };
38292
38309
  const _hoisted_3$a = ["title"];
38293
- const _hoisted_4$7 = ["title"];
38310
+ const _hoisted_4$8 = ["title"];
38294
38311
  const _hoisted_5$6 = {
38295
38312
  key: 1,
38296
38313
  class: "fv-files-card-size"
@@ -38442,7 +38459,7 @@
38442
38459
  key: 0,
38443
38460
  class: "fv-files-card-error",
38444
38461
  title: __props.errorText
38445
- }, vue.toDisplayString(__props.errorText), 9, _hoisted_4$7)) : __props.status === "loading" ? (vue.openBlock(), vue.createElementBlock(
38462
+ }, vue.toDisplayString(__props.errorText), 9, _hoisted_4$8)) : __props.status === "loading" ? (vue.openBlock(), vue.createElementBlock(
38446
38463
  "div",
38447
38464
  _hoisted_5$6,
38448
38465
  vue.toDisplayString(vue.unref(dict).attachments.uploading),
@@ -38506,7 +38523,7 @@
38506
38523
  const _hoisted_1$a = { class: "fv-attachments" };
38507
38524
  const _hoisted_2$9 = ["accept"];
38508
38525
  const _hoisted_3$9 = ["disabled", "aria-label"];
38509
- const _hoisted_4$6 = {
38526
+ const _hoisted_4$7 = {
38510
38527
  key: 1,
38511
38528
  class: "fv-attachments-list"
38512
38529
  };
@@ -38694,7 +38711,7 @@
38694
38711
  /* STABLE */
38695
38712
  })
38696
38713
  ], 10, _hoisted_3$9)) : vue.createCommentVNode("v-if", true),
38697
- list.value.length && __props.layout !== "triggerOnly" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
38714
+ list.value.length && __props.layout !== "triggerOnly" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7, [
38698
38715
  (vue.openBlock(true), vue.createElementBlock(
38699
38716
  vue.Fragment,
38700
38717
  null,
@@ -38770,7 +38787,7 @@
38770
38787
  };
38771
38788
  const _hoisted_2$8 = ["onClick"];
38772
38789
  const _hoisted_3$8 = { class: "fv-conversations-item-content" };
38773
- const _hoisted_4$5 = ["title"];
38790
+ const _hoisted_4$6 = ["title"];
38774
38791
  const _hoisted_5$4 = ["aria-label"];
38775
38792
  var _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38776
38793
  ...{ name: "FvConversations" },
@@ -38914,7 +38931,7 @@
38914
38931
  vue.createElementVNode("span", {
38915
38932
  class: "fv-conversations-item-label",
38916
38933
  title: item.label
38917
- }, vue.toDisplayString(item.label), 9, _hoisted_4$5)
38934
+ }, vue.toDisplayString(item.label), 9, _hoisted_4$6)
38918
38935
  ])
38919
38936
  ]),
38920
38937
  !item.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
@@ -39002,7 +39019,7 @@
39002
39019
  const _hoisted_1$8 = { viewBox: "0 0 1200 1200" };
39003
39020
  const _hoisted_2$7 = ["id"];
39004
39021
  const _hoisted_3$7 = ["stop-color"];
39005
- const _hoisted_4$4 = ["stop-color", "stop-opacity"];
39022
+ const _hoisted_4$5 = ["stop-color", "stop-opacity"];
39006
39023
  const _hoisted_5$3 = ["stop-color"];
39007
39024
  const _hoisted_6$3 = ["d"];
39008
39025
  var _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
@@ -39118,7 +39135,7 @@
39118
39135
  offset: "50%",
39119
39136
  "stop-color": highlightGradient.value.color,
39120
39137
  "stop-opacity": highlightGradient.value.midOpacity
39121
- }, null, 8, _hoisted_4$4),
39138
+ }, null, 8, _hoisted_4$5),
39122
39139
  vue.createElementVNode("stop", {
39123
39140
  offset: "100%",
39124
39141
  "stop-color": highlightGradient.value.color,
@@ -39770,7 +39787,7 @@
39770
39787
  const _hoisted_1$7 = ["data-message-id"];
39771
39788
  const _hoisted_2$6 = ["src"];
39772
39789
  const _hoisted_3$6 = ["src"];
39773
- const _hoisted_4$3 = { class: "fv-msg-main" };
39790
+ const _hoisted_4$4 = { class: "fv-msg-main" };
39774
39791
  const _hoisted_5$2 = {
39775
39792
  key: 0,
39776
39793
  class: "fv-msg-header"
@@ -40300,7 +40317,7 @@
40300
40317
  4
40301
40318
  /* STYLE */
40302
40319
  )) : vue.createCommentVNode("v-if", true),
40303
- vue.createElementVNode("div", _hoisted_4$3, [
40320
+ vue.createElementVNode("div", _hoisted_4$4, [
40304
40321
  showHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
40305
40322
  isUser.value ? vue.renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
40306
40323
  vue.createTextVNode(
@@ -40750,7 +40767,11 @@
40750
40767
  key: 0,
40751
40768
  class: "fv-messages-empty"
40752
40769
  };
40753
- const _hoisted_3$5 = { class: "fv-messages-inner" };
40770
+ const _hoisted_3$5 = {
40771
+ key: 1,
40772
+ class: "fv-welcome-suggestions-footer"
40773
+ };
40774
+ const _hoisted_4$3 = { class: "fv-messages-inner" };
40754
40775
  var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
40755
40776
  ...{ name: "FvAiMessages" },
40756
40777
  __name: "index",
@@ -40764,6 +40785,8 @@
40764
40785
  suggestionsTitle: { type: String, required: false, default: "" },
40765
40786
  suggestionsWrap: { type: Boolean, required: false, default: true },
40766
40787
  welcomeLayout: { type: String, required: false, default: "horizontal" },
40788
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
40789
+ refreshSuggestionsText: { type: String, required: false, default: "" },
40767
40790
  scrollThreshold: { type: Number, required: false, default: 100 },
40768
40791
  showScrollButton: { type: Boolean, required: false, default: true },
40769
40792
  scrollButtonThreshold: { type: Number, required: false, default: 100 },
@@ -40792,7 +40815,7 @@
40792
40815
  feedbackHandler: { type: Function, required: false, default: void 0 },
40793
40816
  locale: { type: null, required: false }
40794
40817
  },
40795
- emits: ["select", "copy", "regenerate", "branch-change", "scroll", "followup-select", "message-file-click", "feedback-change", "feedback-error"],
40818
+ emits: ["select", "copy", "regenerate", "branch-change", "scroll", "followup-select", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
40796
40819
  setup(__props, { expose: __expose, emit: __emit }) {
40797
40820
  const props = __props;
40798
40821
  const dict = useLocaleDict(() => props.locale);
@@ -40801,6 +40824,10 @@
40801
40824
  followIfPinned();
40802
40825
  }
40803
40826
  const isEmpty = vue.computed(() => props.messages.length === 0);
40827
+ const slots = vue.useSlots();
40828
+ const hasRefreshFooter = vue.computed(
40829
+ () => props.showRefreshSuggestions || !!slots["refresh-suggestions"] || !!slots["suggestions-footer"]
40830
+ );
40804
40831
  const scrollRef = vue.ref(null);
40805
40832
  function distanceFromBottom() {
40806
40833
  const el = scrollRef.value;
@@ -40975,7 +41002,69 @@
40975
41002
  title: __props.suggestionsTitle,
40976
41003
  wrap: __props.suggestionsWrap,
40977
41004
  onSelect
40978
- }, null, 8, ["prompts", "title", "wrap"])) : vue.createCommentVNode("v-if", true)
41005
+ }, vue.createSlots({
41006
+ _: 2
41007
+ /* DYNAMIC */
41008
+ }, [
41009
+ hasRefreshFooter.value && __props.welcomeLayout === "horizontal" ? {
41010
+ name: "footer",
41011
+ fn: vue.withCtx(() => [
41012
+ _ctx.$slots["refresh-suggestions"] ? vue.renderSlot(_ctx.$slots, "refresh-suggestions", {}, void 0, void 0, 0) : __props.showRefreshSuggestions ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
41013
+ key: 1,
41014
+ class: "fv-welcome-refresh",
41015
+ text: "",
41016
+ size: "small",
41017
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("refresh-suggestions"))
41018
+ }, {
41019
+ default: vue.withCtx(() => [
41020
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-welcome-refresh-icon" }, {
41021
+ default: vue.withCtx(() => [
41022
+ vue.createVNode(vue.unref(ElementPlusIconsVue.RefreshRight))
41023
+ ]),
41024
+ _: 1
41025
+ /* STABLE */
41026
+ }),
41027
+ vue.createTextVNode(
41028
+ " " + vue.toDisplayString(__props.refreshSuggestionsText || vue.unref(dict).welcome.refreshSuggestions),
41029
+ 1
41030
+ /* TEXT */
41031
+ )
41032
+ ]),
41033
+ _: 1
41034
+ /* STABLE */
41035
+ })) : vue.createCommentVNode("v-if", true),
41036
+ _ctx.$slots["suggestions-footer"] ? vue.renderSlot(_ctx.$slots, "suggestions-footer", {}, void 0, void 0, 2) : vue.createCommentVNode("v-if", true)
41037
+ ]),
41038
+ key: "0"
41039
+ } : void 0
41040
+ ]), 1032, ["prompts", "title", "wrap"])) : vue.createCommentVNode("v-if", true),
41041
+ hasRefreshFooter.value && __props.welcomeLayout === "vertical" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [
41042
+ _ctx.$slots["refresh-suggestions"] ? vue.renderSlot(_ctx.$slots, "refresh-suggestions", {}, void 0, void 0, 0) : __props.showRefreshSuggestions ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
41043
+ key: 1,
41044
+ class: "fv-welcome-refresh",
41045
+ text: "",
41046
+ size: "small",
41047
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("refresh-suggestions"))
41048
+ }, {
41049
+ default: vue.withCtx(() => [
41050
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-welcome-refresh-icon" }, {
41051
+ default: vue.withCtx(() => [
41052
+ vue.createVNode(vue.unref(ElementPlusIconsVue.RefreshRight))
41053
+ ]),
41054
+ _: 1
41055
+ /* STABLE */
41056
+ }),
41057
+ vue.createTextVNode(
41058
+ " " + vue.toDisplayString(__props.refreshSuggestionsText || vue.unref(dict).welcome.refreshSuggestions),
41059
+ 1
41060
+ /* TEXT */
41061
+ )
41062
+ ]),
41063
+ _: 1
41064
+ /* STABLE */
41065
+ })) : vue.createCommentVNode("v-if", true),
41066
+ _ctx.$slots["suggestions-footer"] ? vue.renderSlot(_ctx.$slots, "suggestions-footer", {}, void 0, void 0, 2) : vue.createCommentVNode("v-if", true)
41067
+ ])) : vue.createCommentVNode("v-if", true)
40979
41068
  ])
40980
41069
  ]),
40981
41070
  _: 2
@@ -41014,7 +41103,7 @@
41014
41103
  onScrollPassive: onScroll
41015
41104
  },
41016
41105
  [
41017
- vue.createElementVNode("div", _hoisted_3$5, [
41106
+ vue.createElementVNode("div", _hoisted_4$3, [
41018
41107
  (vue.openBlock(true), vue.createElementBlock(
41019
41108
  vue.Fragment,
41020
41109
  null,
@@ -41119,7 +41208,7 @@
41119
41208
  class: "fv-messages-back",
41120
41209
  circle: "",
41121
41210
  "aria-label": vue.unref(dict).scroll.toBottom,
41122
- onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom())
41211
+ onClick: _cache[2] || (_cache[2] = ($event) => scrollToBottom())
41123
41212
  }, {
41124
41213
  default: vue.withCtx(() => [
41125
41214
  vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "fv-messages-back-icon" }, {
@@ -41463,6 +41552,8 @@
41463
41552
  suggestions: { type: Array, required: false, default: () => [] },
41464
41553
  suggestionsWrap: { type: Boolean, required: false, default: true },
41465
41554
  welcomeLayout: { type: String, required: false, default: "horizontal" },
41555
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
41556
+ refreshSuggestionsText: { type: String, required: false, default: "" },
41466
41557
  followupStyle: { type: String, required: false, default: "list" },
41467
41558
  features: { type: Object, required: false, default: () => ({}) },
41468
41559
  allowAttachments: { type: Boolean, required: false, default: false },
@@ -41474,7 +41565,7 @@
41474
41565
  theme: { type: String, required: false, default: "light" },
41475
41566
  locale: { type: null, required: false }
41476
41567
  },
41477
- 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"],
41568
+ 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"],
41478
41569
  setup(__props, { expose: __expose, emit: __emit }) {
41479
41570
  const props = __props;
41480
41571
  const dict = useLocaleDict(() => props.locale);
@@ -41865,6 +41956,8 @@
41865
41956
  suggestions: __props.suggestions,
41866
41957
  "suggestions-wrap": __props.suggestionsWrap,
41867
41958
  "welcome-layout": __props.welcomeLayout,
41959
+ "show-refresh-suggestions": __props.showRefreshSuggestions,
41960
+ "refresh-suggestions-text": __props.refreshSuggestionsText,
41868
41961
  "followup-style": __props.followupStyle,
41869
41962
  "show-scroll-button": __props.showScrollButton,
41870
41963
  "scroll-button-threshold": __props.scrollButtonThreshold,
@@ -41891,6 +41984,7 @@
41891
41984
  "feedback-handler": __props.feedbackHandler,
41892
41985
  onSelect: onSelectSuggestion,
41893
41986
  onFollowupSelect,
41987
+ onRefreshSuggestions: _cache[1] || (_cache[1] = ($event) => emit("refresh-suggestions")),
41894
41988
  onCopy,
41895
41989
  onRegenerate,
41896
41990
  onBranchChange,
@@ -41979,21 +42073,35 @@
41979
42073
  ]),
41980
42074
  key: "10"
41981
42075
  } : void 0,
42076
+ _ctx.$slots["refresh-suggestions"] ? {
42077
+ name: "refresh-suggestions",
42078
+ fn: vue.withCtx(() => [
42079
+ vue.renderSlot(_ctx.$slots, "refresh-suggestions")
42080
+ ]),
42081
+ key: "11"
42082
+ } : void 0,
42083
+ _ctx.$slots["suggestions-footer"] ? {
42084
+ name: "suggestions-footer",
42085
+ fn: vue.withCtx(() => [
42086
+ vue.renderSlot(_ctx.$slots, "suggestions-footer")
42087
+ ]),
42088
+ key: "12"
42089
+ } : void 0,
41982
42090
  _ctx.$slots["scroll-button"] ? {
41983
42091
  name: "scroll-button",
41984
42092
  fn: vue.withCtx((scope) => [
41985
42093
  vue.renderSlot(_ctx.$slots, "scroll-button", vue.normalizeProps(vue.guardReactiveProps(scope)))
41986
42094
  ]),
41987
- key: "11"
42095
+ key: "13"
41988
42096
  } : void 0,
41989
42097
  _ctx.$slots["scroll-button-icon"] ? {
41990
42098
  name: "scroll-button-icon",
41991
42099
  fn: vue.withCtx(() => [
41992
42100
  vue.renderSlot(_ctx.$slots, "scroll-button-icon")
41993
42101
  ]),
41994
- key: "12"
42102
+ key: "14"
41995
42103
  } : void 0
41996
- ]), 1032, ["messages", "nodes", "name", "suggestions", "suggestions-wrap", "welcome-layout", "followup-style", "show-scroll-button", "scroll-button-threshold", "scroll-threshold", "copy-to-clipboard", "show-user-avatar", "show-user-name", "show-assistant-avatar", "show-assistant-name", "user-avatar", "assistant-avatar", "assistant-avatar-scale", "avatar-circle", "user-name", "assistant-name", "typing", "auto-collapse", "collapsible", "show-duration", "show-time", "time-format", "code-trigger-langs", "resolve-file-url", "feedback-handler"]),
42104
+ ]), 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"]),
41997
42105
  artifactsOn.value && artifacts.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$5, {
41998
42106
  key: 0,
41999
42107
  artifacts: artifacts.value,
@@ -42025,7 +42133,7 @@
42025
42133
  fn: vue.withCtx(() => [
42026
42134
  vue.createVNode(_sfc_main$a, {
42027
42135
  modelValue: pendingFiles.value,
42028
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => pendingFiles.value = $event),
42136
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pendingFiles.value = $event),
42029
42137
  layout: "listOnly",
42030
42138
  accept: __props.accept,
42031
42139
  count: __props.attachmentLimit,
@@ -42043,7 +42151,7 @@
42043
42151
  fn: vue.withCtx(() => [
42044
42152
  vue.createVNode(_sfc_main$a, {
42045
42153
  modelValue: pendingFiles.value,
42046
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pendingFiles.value = $event),
42154
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => pendingFiles.value = $event),
42047
42155
  layout: "triggerOnly",
42048
42156
  accept: __props.accept,
42049
42157
  count: __props.attachmentLimit,
@@ -42898,6 +43006,8 @@
42898
43006
  suggestions: { type: Array, required: false, default: () => [] },
42899
43007
  suggestionsTitle: { type: String, required: false, default: "" },
42900
43008
  suggestionsWrap: { type: Boolean, required: false, default: true },
43009
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
43010
+ refreshSuggestionsText: { type: String, required: false, default: "" },
42901
43011
  typing: { type: [Boolean, Object], required: false, default: true },
42902
43012
  collapsible: { type: Boolean, required: false, default: true },
42903
43013
  showTime: { type: Boolean, required: false, default: true },
@@ -42916,7 +43026,7 @@
42916
43026
  detailLimit: { type: Number, required: false, default: 100 },
42917
43027
  historyLimit: { type: Number, required: false, default: 50 }
42918
43028
  },
42919
- emits: ["session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error"],
43029
+ emits: ["session-created", "round-complete", "error", "message-complete", "attachment-exceed", "attachment-uploaded", "message-file-click", "feedback-change", "feedback-error", "refresh-suggestions"],
42920
43030
  setup(__props, { expose: __expose, emit: __emit }) {
42921
43031
  const props = __props;
42922
43032
  const emit = __emit;
@@ -43173,6 +43283,8 @@
43173
43283
  suggestions: __props.suggestions,
43174
43284
  "suggestions-title": __props.suggestionsTitle,
43175
43285
  "suggestions-wrap": __props.suggestionsWrap,
43286
+ "show-refresh-suggestions": __props.showRefreshSuggestions,
43287
+ "refresh-suggestions-text": __props.refreshSuggestionsText,
43176
43288
  typing: __props.typing,
43177
43289
  collapsible: __props.collapsible,
43178
43290
  "show-time": __props.showTime,
@@ -43188,7 +43300,8 @@
43188
43300
  onAttachmentUploaded,
43189
43301
  onMessageFileClick,
43190
43302
  onFeedbackChange,
43191
- onFeedbackError
43303
+ onFeedbackError,
43304
+ onRefreshSuggestions: _cache[0] || (_cache[0] = ($event) => emit("refresh-suggestions"))
43192
43305
  }, vue.createSlots({
43193
43306
  _: 2
43194
43307
  /* DYNAMIC */
@@ -43228,56 +43341,70 @@
43228
43341
  ]),
43229
43342
  key: "4"
43230
43343
  } : void 0,
43344
+ _ctx.$slots["refresh-suggestions"] ? {
43345
+ name: "refresh-suggestions",
43346
+ fn: vue.withCtx(() => [
43347
+ vue.renderSlot(_ctx.$slots, "refresh-suggestions")
43348
+ ]),
43349
+ key: "5"
43350
+ } : void 0,
43351
+ _ctx.$slots["suggestions-footer"] ? {
43352
+ name: "suggestions-footer",
43353
+ fn: vue.withCtx(() => [
43354
+ vue.renderSlot(_ctx.$slots, "suggestions-footer")
43355
+ ]),
43356
+ key: "6"
43357
+ } : void 0,
43231
43358
  _ctx.$slots["user-avatar"] ? {
43232
43359
  name: "user-avatar",
43233
43360
  fn: vue.withCtx(() => [
43234
43361
  vue.renderSlot(_ctx.$slots, "user-avatar")
43235
43362
  ]),
43236
- key: "5"
43363
+ key: "7"
43237
43364
  } : void 0,
43238
43365
  _ctx.$slots["assistant-avatar"] ? {
43239
43366
  name: "assistant-avatar",
43240
43367
  fn: vue.withCtx((scope) => [
43241
43368
  vue.renderSlot(_ctx.$slots, "assistant-avatar", vue.normalizeProps(vue.guardReactiveProps(scope)))
43242
43369
  ]),
43243
- key: "6"
43370
+ key: "8"
43244
43371
  } : void 0,
43245
43372
  _ctx.$slots["user-name"] ? {
43246
43373
  name: "user-name",
43247
43374
  fn: vue.withCtx((scope) => [
43248
43375
  vue.renderSlot(_ctx.$slots, "user-name", vue.normalizeProps(vue.guardReactiveProps(scope)))
43249
43376
  ]),
43250
- key: "7"
43377
+ key: "9"
43251
43378
  } : void 0,
43252
43379
  _ctx.$slots["assistant-name"] ? {
43253
43380
  name: "assistant-name",
43254
43381
  fn: vue.withCtx((scope) => [
43255
43382
  vue.renderSlot(_ctx.$slots, "assistant-name", vue.normalizeProps(vue.guardReactiveProps(scope)))
43256
43383
  ]),
43257
- key: "8"
43384
+ key: "10"
43258
43385
  } : void 0,
43259
43386
  _ctx.$slots["message-avatar"] ? {
43260
43387
  name: "message-avatar",
43261
43388
  fn: vue.withCtx((scope) => [
43262
43389
  vue.renderSlot(_ctx.$slots, "message-avatar", vue.normalizeProps(vue.guardReactiveProps(scope)))
43263
43390
  ]),
43264
- key: "9"
43391
+ key: "11"
43265
43392
  } : void 0,
43266
43393
  _ctx.$slots["message-actions"] ? {
43267
43394
  name: "message-actions",
43268
43395
  fn: vue.withCtx((scope) => [
43269
43396
  vue.renderSlot(_ctx.$slots, "message-actions", vue.normalizeProps(vue.guardReactiveProps(scope)))
43270
43397
  ]),
43271
- key: "10"
43398
+ key: "12"
43272
43399
  } : void 0,
43273
43400
  _ctx.$slots["sender-prefix"] ? {
43274
43401
  name: "prefix",
43275
43402
  fn: vue.withCtx(() => [
43276
43403
  vue.renderSlot(_ctx.$slots, "sender-prefix")
43277
43404
  ]),
43278
- key: "11"
43405
+ key: "13"
43279
43406
  } : void 0
43280
- ]), 1032, ["messages", "placeholder", "theme", "welcome-layout", "center-welcome", "tool-step-label", "locale", "suggestions", "suggestions-title", "suggestions-wrap", "typing", "collapsible", "show-time", "allow-attachments", "accept", "attachment-limit", "resolve-file-url", "feedback-handler"])),
43407
+ ]), 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"])),
43281
43408
  hasEarlier.value && atTop.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
43282
43409
  key: 0,
43283
43410
  class: "fv-ai-chat-panel-load-earlier",
@@ -43427,6 +43554,7 @@
43427
43554
  floatingHeight: { type: String, required: false, default: "" },
43428
43555
  showModeToggle: { type: Boolean, required: false, default: false },
43429
43556
  storageKey: { type: String, required: false, default: "fv-ai-chat-widget" },
43557
+ rememberPosition: { type: Boolean, required: false, default: true },
43430
43558
  keepAlive: { type: Boolean, required: false, default: true },
43431
43559
  maximizable: { type: Boolean, required: false, default: true },
43432
43560
  title: { type: String, required: false, default: "" },
@@ -43438,6 +43566,8 @@
43438
43566
  suggestions: { type: Array, required: false, default: () => [] },
43439
43567
  suggestionsTitle: { type: String, required: false, default: "" },
43440
43568
  suggestionsWrap: { type: Boolean, required: false, default: true },
43569
+ showRefreshSuggestions: { type: Boolean, required: false, default: false },
43570
+ refreshSuggestionsText: { type: String, required: false, default: "" },
43441
43571
  typing: { type: [Boolean, Object], required: false, default: true },
43442
43572
  collapsible: { type: Boolean, required: false, default: true },
43443
43573
  showTime: { type: Boolean, required: false, default: true },
@@ -43453,7 +43583,7 @@
43453
43583
  detailLimit: { type: Number, required: false, default: 100 },
43454
43584
  historyLimit: { type: Number, required: false, default: 50 }
43455
43585
  },
43456
- 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"],
43586
+ 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"],
43457
43587
  setup(__props, { expose: __expose, emit: __emit }) {
43458
43588
  const props = __props;
43459
43589
  const emit = __emit;
@@ -43620,6 +43750,8 @@
43620
43750
  suggestions: props.suggestions,
43621
43751
  suggestionsTitle: props.suggestionsTitle,
43622
43752
  suggestionsWrap: props.suggestionsWrap,
43753
+ showRefreshSuggestions: props.showRefreshSuggestions,
43754
+ refreshSuggestionsText: props.refreshSuggestionsText,
43623
43755
  typing: props.typing,
43624
43756
  collapsible: props.collapsible,
43625
43757
  showTime: props.showTime,
@@ -43664,6 +43796,9 @@
43664
43796
  function onPanelFeedbackError(message) {
43665
43797
  emit("feedback-error", message);
43666
43798
  }
43799
+ function onPanelRefreshSuggestions() {
43800
+ emit("refresh-suggestions");
43801
+ }
43667
43802
  const panelListeners = {
43668
43803
  error: onPanelError,
43669
43804
  "message-complete": onPanelMessageComplete,
@@ -43671,7 +43806,8 @@
43671
43806
  "attachment-uploaded": onPanelAttachmentUploaded,
43672
43807
  "message-file-click": onPanelMessageFileClick,
43673
43808
  "feedback-change": onPanelFeedbackChange,
43674
- "feedback-error": onPanelFeedbackError
43809
+ "feedback-error": onPanelFeedbackError,
43810
+ "refresh-suggestions": onPanelRefreshSuggestions
43675
43811
  };
43676
43812
  const widgetEl = vue.ref(null);
43677
43813
  const floatingPos = vue.ref(null);
@@ -43681,15 +43817,44 @@
43681
43817
  if (!props.storageKey) return null;
43682
43818
  return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-width`;
43683
43819
  }
43820
+ function resolvePositionKey() {
43821
+ if (!props.storageKey || !props.rememberPosition) return null;
43822
+ return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-position`;
43823
+ }
43824
+ function clampPos(pos) {
43825
+ const w = currentWidgetWidth();
43826
+ const h = floatingHeightPx();
43827
+ return {
43828
+ left: Math.min(Math.max(pos.left, 0), Math.max(0, window.innerWidth - w)),
43829
+ top: Math.min(Math.max(pos.top, 0), Math.max(0, window.innerHeight - h))
43830
+ };
43831
+ }
43684
43832
  const dragWidth = vue.ref(null);
43685
43833
  vue.onMounted(async () => {
43686
43834
  const key = resolveWidthKey();
43687
- if (!key) return;
43688
- const saved = await storage.get(key);
43689
- if (typeof saved === "number" && Number.isFinite(saved)) {
43690
- dragWidth.value = Math.min(Math.max(saved, props.minWidth), props.maxWidth);
43835
+ if (key) {
43836
+ const saved = await storage.get(key);
43837
+ if (typeof saved === "number" && Number.isFinite(saved)) {
43838
+ dragWidth.value = Math.min(Math.max(saved, props.minWidth), props.maxWidth);
43839
+ }
43840
+ }
43841
+ const posKey = resolvePositionKey();
43842
+ if (!posKey) {
43843
+ if (mode.value === "floating") initFloatingPos();
43844
+ return;
43845
+ }
43846
+ const pos = await storage.get(posKey);
43847
+ if (pos && Number.isFinite(pos.left) && Number.isFinite(pos.top) && mode.value === "floating") {
43848
+ floatingPos.value = clampPos(pos);
43849
+ } else if (mode.value === "floating") {
43850
+ initFloatingPos();
43691
43851
  }
43692
43852
  });
43853
+ async function persistPosition() {
43854
+ const key = resolvePositionKey();
43855
+ if (!key || mode.value !== "floating" || !floatingPos.value) return;
43856
+ await storage.set(key, { ...floatingPos.value });
43857
+ }
43693
43858
  async function persistWidth() {
43694
43859
  const key = resolveWidthKey();
43695
43860
  if (!key || dragWidth.value == null) return;
@@ -43821,6 +43986,7 @@
43821
43986
  document.removeEventListener("mousemove", onResizeMove);
43822
43987
  document.removeEventListener("mouseup", onResizeEnd);
43823
43988
  void persistWidth();
43989
+ if (mode.value === "floating" && resizeEdge === "left") void persistPosition();
43824
43990
  }
43825
43991
  let dragStartX = 0;
43826
43992
  let dragStartY = 0;
@@ -43901,6 +44067,8 @@
43901
44067
  mode.value = "drawer";
43902
44068
  drawerSide.value = snapHint.value;
43903
44069
  floatingPos.value = null;
44070
+ } else {
44071
+ void persistPosition();
43904
44072
  }
43905
44073
  isDragging.value = false;
43906
44074
  dragStartPos = null;
@@ -44305,6 +44473,8 @@
44305
44473
  iconComponent: { type: null, required: false, default: void 0 },
44306
44474
  eyeTrack: { type: Boolean, required: false, default: true },
44307
44475
  halo: { type: Object, required: false, default: void 0 },
44476
+ storageKey: { type: String, required: false, default: "fv-ai-launcher" },
44477
+ rememberPosition: { type: Boolean, required: false, default: true },
44308
44478
  ariaLabel: { type: String, required: false, default: "" },
44309
44479
  locale: { type: null, required: false, default: void 0 }
44310
44480
  },
@@ -44339,6 +44509,31 @@
44339
44509
  moved: false
44340
44510
  };
44341
44511
  const dragPos = vue.ref(null);
44512
+ const storage = createLocalStorageAdapter();
44513
+ function resolvePositionKey() {
44514
+ if (!props.storageKey || !props.rememberPosition) return null;
44515
+ return props.storageKey.endsWith("!") ? props.storageKey.slice(0, -1) : `${props.storageKey}-position`;
44516
+ }
44517
+ function clampPos(pos) {
44518
+ const size = props.size;
44519
+ return {
44520
+ left: Math.min(Math.max(pos.left, 0), Math.max(0, window.innerWidth - size)),
44521
+ top: Math.min(Math.max(pos.top, 0), Math.max(0, window.innerHeight - size))
44522
+ };
44523
+ }
44524
+ vue.onMounted(async () => {
44525
+ const key = resolvePositionKey();
44526
+ if (!key || !dragEnabled.value) return;
44527
+ const pos = await storage.get(key);
44528
+ if (pos && Number.isFinite(pos.left) && Number.isFinite(pos.top)) {
44529
+ dragPos.value = clampPos(pos);
44530
+ }
44531
+ });
44532
+ async function persistPosition() {
44533
+ const key = resolvePositionKey();
44534
+ if (!key || !dragPos.value) return;
44535
+ await storage.set(key, { ...dragPos.value });
44536
+ }
44342
44537
  function onPointerDown(ev) {
44343
44538
  if (!dragEnabled.value || ev.button !== 0) return;
44344
44539
  const el = rootEl.value;
@@ -44378,7 +44573,10 @@
44378
44573
  el.removeEventListener("pointercancel", onPointerUp);
44379
44574
  }
44380
44575
  dragState.pointerId = -1;
44381
- if (dragState.moved && dragPos.value) emit("drag-end", { ...dragPos.value });
44576
+ if (dragState.moved && dragPos.value) {
44577
+ emit("drag-end", { ...dragPos.value });
44578
+ void persistPosition();
44579
+ }
44382
44580
  }
44383
44581
  vue.onBeforeUnmount(() => {
44384
44582
  const el = rootEl.value;