@kg-ui/kg-ui-plus 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +1 -1
  3. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +173 -2
  4. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +2 -2
  5. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +1 -1
  6. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +1 -1
  7. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +2 -2
  8. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
  10. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  11. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  12. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  13. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  14. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  15. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +1 -1
  16. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +2 -2
  17. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  18. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  19. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  20. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  21. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  22. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  23. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
  24. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  25. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  26. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  27. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
  28. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
  29. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
  30. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  31. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
  32. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  33. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  34. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  35. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +9 -6
  36. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  37. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  38. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  39. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  40. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  41. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  42. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +2 -2
  43. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  44. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  45. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  46. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  47. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  48. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  49. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  50. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  51. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  52. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  53. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  54. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  55. package/dist/es/home/LProject/index.vue.mjs +1 -1
  56. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  57. package/dist/es/home/index.vue.mjs +1 -1
  58. package/dist/es/home/index.vue3.mjs +2 -2
  59. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs +8 -0
  60. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
  61. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
  62. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
  63. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
  64. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
  65. package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
  66. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
  67. package/dist/es/store/modules/copilot.mjs +9 -12
  68. package/dist/es/style.css +1 -1
  69. package/package.json +123 -123
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-01dfdc25"]]);
4
+ const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4654fa0d"]]);
5
5
  export {
6
6
  MessageParse as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_01dfdc25_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_4654fa0d_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_01dfdc25_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_4654fa0d_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./readMd.vue2.mjs";
2
2
  import "./readMd.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-25449f8b"]]);
4
+ const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1bd1c886"]]);
5
5
  export {
6
6
  ReadMd as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const readMd_vue_vue_type_style_index_0_scoped_25449f8b_lang = "";
1
+ const readMd_vue_vue_type_style_index_0_scoped_1bd1c886_lang = "";
2
2
  export {
3
- readMd_vue_vue_type_style_index_0_scoped_25449f8b_lang as default
3
+ readMd_vue_vue_type_style_index_0_scoped_1bd1c886_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-48bbffe1"]]);
4
+ const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b7d2f09"]]);
5
5
  export {
6
6
  HistoryReport as default
7
7
  };
@@ -7,8 +7,8 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
7
7
  import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/check.mjs";
8
8
  import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
9
9
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
10
- const _withScopeId = (n) => (pushScopeId("data-v-48bbffe1"), n = n(), popScopeId(), n);
11
- const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "history-title" }, "历史记录", -1));
10
+ const _withScopeId = (n) => (pushScopeId("data-v-1b7d2f09"), n = n(), popScopeId(), n);
11
+ const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h3", { class: "history-title" }, "历史记录", -1));
12
12
  const _hoisted_2 = { class: "search_box" };
13
13
  const _hoisted_3 = { class: "list_box" };
14
14
  const _hoisted_4 = ["onClick"];
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_48bbffe1_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_48bbffe1_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1766bab8"]]);
4
+ const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3615eb0f"]]);
5
5
  export {
6
6
  KgCopilot as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_1766bab8_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_3615eb0f_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_1766bab8_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_3615eb0f_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./FilterArea.vue2.mjs";
2
2
  import "./FilterArea.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e04c24d"]]);
4
+ const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-996410e5"]]);
5
5
  export {
6
6
  FilterArea as default
7
7
  };
@@ -9,7 +9,7 @@ import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_module
9
9
  import { checkFilterShow_xinyuan, checkFilterShow, checkFilterShow_letter } from "../../utils/home.mjs";
10
10
  import FilterItem from "./FilterItem.vue.mjs";
11
11
  import FilterItemIcon from "./FilterItemIcon.vue.mjs";
12
- const _withScopeId = (n) => (pushScopeId("data-v-4e04c24d"), n = n(), popScopeId(), n);
12
+ const _withScopeId = (n) => (pushScopeId("data-v-996410e5"), n = n(), popScopeId(), n);
13
13
  const _hoisted_1 = { id: "filterWrap" };
14
14
  const _hoisted_2 = { key: 0 };
15
15
  const _hoisted_3 = { class: "flex flex-1 align-middle justify-items-start flex-wrap" };
@@ -1,4 +1,4 @@
1
- const FilterArea_vue_vue_type_style_index_0_scoped_4e04c24d_lang = "";
1
+ const FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang = "";
2
2
  export {
3
- FilterArea_vue_vue_type_style_index_0_scoped_4e04c24d_lang as default
3
+ FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./FilterItem.vue2.mjs";
2
2
  import "./FilterItem.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be1d5ffc"]]);
4
+ const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10722fd5"]]);
5
5
  export {
6
6
  FilterItem as default
7
7
  };
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
4
4
  import { EnumFilterKind } from "../../store/modules/types.mjs";
5
5
  import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
6
6
  import { getFilterRemark } from "../../utils/home.mjs";
7
- const _withScopeId = (n) => (pushScopeId("data-v-be1d5ffc"), n = n(), popScopeId(), n);
7
+ const _withScopeId = (n) => (pushScopeId("data-v-10722fd5"), n = n(), popScopeId(), n);
8
8
  const _hoisted_1 = { class: "p-2" };
9
9
  const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
10
10
  const _hoisted_3 = ["innerHTML"];
@@ -1,4 +1,4 @@
1
- const FilterItem_vue_vue_type_style_index_0_scoped_be1d5ffc_lang = "";
1
+ const FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang = "";
2
2
  export {
3
- FilterItem_vue_vue_type_style_index_0_scoped_be1d5ffc_lang as default
3
+ FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./FilterItemIcon.vue2.mjs";
2
2
  import "./FilterItemIcon.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c55b8933"]]);
4
+ const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a70be454"]]);
5
5
  export {
6
6
  FilterItemIcon as default
7
7
  };
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
4
4
  import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
5
5
  import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs";
6
6
  import { getFilterRemark } from "../../utils/home.mjs";
7
- const _withScopeId = (n) => (pushScopeId("data-v-c55b8933"), n = n(), popScopeId(), n);
7
+ const _withScopeId = (n) => (pushScopeId("data-v-a70be454"), n = n(), popScopeId(), n);
8
8
  const _hoisted_1 = {
9
9
  key: 0,
10
10
  class: "flex items-end"
@@ -1,4 +1,4 @@
1
- const FilterItemIcon_vue_vue_type_style_index_0_scoped_c55b8933_lang = "";
1
+ const FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang = "";
2
2
  export {
3
- FilterItemIcon_vue_vue_type_style_index_0_scoped_c55b8933_lang as default
3
+ FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a0e9ea7"]]);
4
+ const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-75d82a2e"]]);
5
5
  export {
6
6
  LProject as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_7a0e9ea7_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_75d82a2e_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_7a0e9ea7_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_75d82a2e_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c86d30a0"]]);
4
+ const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca075550"]]);
5
5
  export {
6
6
  Home as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_c86d30a0_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_ca075550_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_c86d30a0_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_ca075550_lang as default
4
4
  };
@@ -0,0 +1,8 @@
1
+ const data = {
2
+ "width": 24,
3
+ "height": 24,
4
+ "body": '<path fill="currentColor" d="M19 9h-5V4H5v7.857l1.5 1.393L10 9.5l3 5l2-2.5l3 3l-3-.5l-2 2.5l-3-4l-3 3.5l-2-1.25V20h14V9zm2-1v12.993A1 1 0 0 1 20.007 22H3.993A.993.993 0 0 1 3 21.008V2.992C3 2.455 3.449 2 4.002 2h10.995L21 8z"/>'
5
+ };
6
+ export {
7
+ data as default
8
+ };
@@ -1,10 +1,10 @@
1
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
1
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
2
  import { __require as requireFunctionApply } from "./functionApply.mjs";
3
- import functionCall from "./functionCall.mjs";
3
+ import { __require as requireFunctionCall } from "./functionCall.mjs";
4
4
  import reflectApply from "./reflectApply.mjs";
5
- var bind = functionBind;
5
+ var bind = requireFunctionBind();
6
6
  var $apply = requireFunctionApply();
7
- var $call = functionCall;
7
+ var $call = requireFunctionCall();
8
8
  var $reflectApply = reflectApply;
9
9
  var actualApply = $reflectApply || bind.call($call, $apply);
10
10
  export {
@@ -1,4 +1,12 @@
1
- var functionCall = Function.prototype.call;
1
+ var functionCall;
2
+ var hasRequiredFunctionCall;
3
+ function requireFunctionCall() {
4
+ if (hasRequiredFunctionCall)
5
+ return functionCall;
6
+ hasRequiredFunctionCall = 1;
7
+ functionCall = Function.prototype.call;
8
+ return functionCall;
9
+ }
2
10
  export {
3
- functionCall as default
11
+ requireFunctionCall as __require
4
12
  };
@@ -1,10 +1,10 @@
1
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
1
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
2
  import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
3
- import functionCall from "./functionCall.mjs";
3
+ import { __require as requireFunctionCall } from "./functionCall.mjs";
4
4
  import actualApply from "./actualApply.mjs";
5
- var bind = functionBind;
5
+ var bind = requireFunctionBind();
6
6
  var $TypeError = type;
7
- var $call = functionCall;
7
+ var $call = requireFunctionCall();
8
8
  var $actualApply = actualApply;
9
9
  var callBindApplyHelpers = function callBindBasic(args) {
10
10
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -1,72 +1,80 @@
1
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2
- var toStr = Object.prototype.toString;
3
- var max = Math.max;
4
- var funcType = "[object Function]";
5
- var concatty = function concatty2(a, b) {
6
- var arr = [];
7
- for (var i = 0; i < a.length; i += 1) {
8
- arr[i] = a[i];
9
- }
10
- for (var j = 0; j < b.length; j += 1) {
11
- arr[j + a.length] = b[j];
12
- }
13
- return arr;
14
- };
15
- var slicy = function slicy2(arrLike, offset) {
16
- var arr = [];
17
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
18
- arr[j] = arrLike[i];
19
- }
20
- return arr;
21
- };
22
- var joiny = function(arr, joiner) {
23
- var str = "";
24
- for (var i = 0; i < arr.length; i += 1) {
25
- str += arr[i];
26
- if (i + 1 < arr.length) {
27
- str += joiner;
1
+ var implementation;
2
+ var hasRequiredImplementation;
3
+ function requireImplementation() {
4
+ if (hasRequiredImplementation)
5
+ return implementation;
6
+ hasRequiredImplementation = 1;
7
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
8
+ var toStr = Object.prototype.toString;
9
+ var max = Math.max;
10
+ var funcType = "[object Function]";
11
+ var concatty = function concatty2(a, b) {
12
+ var arr = [];
13
+ for (var i = 0; i < a.length; i += 1) {
14
+ arr[i] = a[i];
28
15
  }
29
- }
30
- return str;
31
- };
32
- var implementation = function bind(that) {
33
- var target = this;
34
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
35
- throw new TypeError(ERROR_MESSAGE + target);
36
- }
37
- var args = slicy(arguments, 1);
38
- var bound;
39
- var binder = function() {
40
- if (this instanceof bound) {
41
- var result = target.apply(
42
- this,
43
- concatty(args, arguments)
44
- );
45
- if (Object(result) === result) {
46
- return result;
16
+ for (var j = 0; j < b.length; j += 1) {
17
+ arr[j + a.length] = b[j];
18
+ }
19
+ return arr;
20
+ };
21
+ var slicy = function slicy2(arrLike, offset) {
22
+ var arr = [];
23
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
24
+ arr[j] = arrLike[i];
25
+ }
26
+ return arr;
27
+ };
28
+ var joiny = function(arr, joiner) {
29
+ var str = "";
30
+ for (var i = 0; i < arr.length; i += 1) {
31
+ str += arr[i];
32
+ if (i + 1 < arr.length) {
33
+ str += joiner;
47
34
  }
48
- return this;
49
35
  }
50
- return target.apply(
51
- that,
52
- concatty(args, arguments)
53
- );
36
+ return str;
54
37
  };
55
- var boundLength = max(0, target.length - args.length);
56
- var boundArgs = [];
57
- for (var i = 0; i < boundLength; i++) {
58
- boundArgs[i] = "$" + i;
59
- }
60
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
61
- if (target.prototype) {
62
- var Empty = function Empty2() {
38
+ implementation = function bind(that) {
39
+ var target = this;
40
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
41
+ throw new TypeError(ERROR_MESSAGE + target);
42
+ }
43
+ var args = slicy(arguments, 1);
44
+ var bound;
45
+ var binder = function() {
46
+ if (this instanceof bound) {
47
+ var result = target.apply(
48
+ this,
49
+ concatty(args, arguments)
50
+ );
51
+ if (Object(result) === result) {
52
+ return result;
53
+ }
54
+ return this;
55
+ }
56
+ return target.apply(
57
+ that,
58
+ concatty(args, arguments)
59
+ );
63
60
  };
64
- Empty.prototype = target.prototype;
65
- bound.prototype = new Empty();
66
- Empty.prototype = null;
67
- }
68
- return bound;
69
- };
61
+ var boundLength = max(0, target.length - args.length);
62
+ var boundArgs = [];
63
+ for (var i = 0; i < boundLength; i++) {
64
+ boundArgs[i] = "$" + i;
65
+ }
66
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
67
+ if (target.prototype) {
68
+ var Empty = function Empty2() {
69
+ };
70
+ Empty.prototype = target.prototype;
71
+ bound.prototype = new Empty();
72
+ Empty.prototype = null;
73
+ }
74
+ return bound;
75
+ };
76
+ return implementation;
77
+ }
70
78
  export {
71
- implementation as default
79
+ requireImplementation as __require
72
80
  };
@@ -1,6 +1,14 @@
1
- import implementation$1 from "./implementation.mjs";
2
- var implementation = implementation$1;
3
- var functionBind = Function.prototype.bind || implementation;
1
+ import { __require as requireImplementation } from "./implementation.mjs";
2
+ var functionBind;
3
+ var hasRequiredFunctionBind;
4
+ function requireFunctionBind() {
5
+ if (hasRequiredFunctionBind)
6
+ return functionBind;
7
+ hasRequiredFunctionBind = 1;
8
+ var implementation = requireImplementation();
9
+ functionBind = Function.prototype.bind || implementation;
10
+ return functionBind;
11
+ }
4
12
  export {
5
- functionBind as default
13
+ requireFunctionBind as __require
6
14
  };
@@ -16,8 +16,8 @@ import esDefineProperty from "../../../es-define-property@1.0.1/node_modules/es-
16
16
  import { __require as requireHasSymbols } from "../../../has-symbols@1.1.0/node_modules/has-symbols/index.mjs";
17
17
  import { __require as requireGet } from "../../../dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs";
18
18
  import { __require as requireFunctionApply } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs";
19
- import functionCall from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
20
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
19
+ import { __require as requireFunctionCall } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
20
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
21
21
  import { __require as requireHasown } from "../../../hasown@2.0.2/node_modules/hasown/index.mjs";
22
22
  var undefined$1;
23
23
  var $Object = esObjectAtoms;
@@ -61,7 +61,7 @@ var hasSymbols = requireHasSymbols()();
61
61
  var getDunderProto = requireGet();
62
62
  var getProto = typeof Reflect === "function" && Reflect.getPrototypeOf || $Object.getPrototypeOf || getDunderProto;
63
63
  var $apply = requireFunctionApply();
64
- var $call = functionCall;
64
+ var $call = requireFunctionCall();
65
65
  var needsEval = {};
66
66
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
67
67
  var INTRINSICS = {
@@ -227,7 +227,7 @@ var LEGACY_ALIASES = {
227
227
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
228
228
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
229
229
  };
230
- var bind = functionBind;
230
+ var bind = requireFunctionBind();
231
231
  var hasOwn = requireHasown();
232
232
  var $concat = bind.call($call, Array.prototype.concat);
233
233
  var $spliceApply = bind.call($apply, Array.prototype.splice);
@@ -1,4 +1,4 @@
1
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
1
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
2
  var hasown;
3
3
  var hasRequiredHasown;
4
4
  function requireHasown() {
@@ -7,7 +7,7 @@ function requireHasown() {
7
7
  hasRequiredHasown = 1;
8
8
  var call = Function.prototype.call;
9
9
  var $hasOwn = Object.prototype.hasOwnProperty;
10
- var bind = functionBind;
10
+ var bind = requireFunctionBind();
11
11
  hasown = bind.call(call, $hasOwn);
12
12
  return hasown;
13
13
  }
@@ -107,6 +107,7 @@ const useCopilotStore = defineStore({
107
107
  this.searchText = str;
108
108
  },
109
109
  resetCopilot() {
110
+ this.suggest_message_list = [];
110
111
  this.currentHistoryRecord = {};
111
112
  this.onlyCancelRequest();
112
113
  this.isInitCopilot = true;
@@ -146,7 +147,8 @@ const useCopilotStore = defineStore({
146
147
  },
147
148
  getPreviewFileUrl(url) {
148
149
  const index = url.indexOf("/files/tools");
149
- this.previewFileUrl = url.slice(index);
150
+ const pre = url.includes("ai-work-prod") ? "/dify-prod" : "/dify";
151
+ this.previewFileUrl = pre + url.slice(index);
150
152
  },
151
153
  setCheckedPluginList(plugin) {
152
154
  this.checkedPluginByBtn = this.checkedPluginByBtn === plugin ? {} : plugin;
@@ -175,13 +177,7 @@ const useCopilotStore = defineStore({
175
177
  deleteHistoryRecord({ sessionId, isAll }).then((res) => {
176
178
  if (res.status === 200) {
177
179
  this.getHistoryList();
178
- if (isAll && this.currentHistoryRecord.sessionId) {
179
- this.currentHistoryRecord = {};
180
- this.resetCopilot();
181
- return;
182
- }
183
- if (this.currentHistoryRecord.sessionId === sessionId) {
184
- this.currentHistoryRecord = {};
180
+ if (isAll && this.currentHistoryRecord.sessionId || this.currentHistoryRecord.sessionId === sessionId) {
185
181
  this.resetCopilot();
186
182
  }
187
183
  }
@@ -194,7 +190,7 @@ const useCopilotStore = defineStore({
194
190
  }
195
191
  });
196
192
  },
197
- async sendMsg(msg) {
193
+ async sendMsg(msg, selectTxt = "") {
198
194
  this.suggest_message_list = [];
199
195
  if (this.msgList.length === 1 && this.useHistoryRecord) {
200
196
  createHistoryRecord({ name: msg }).then((res) => {
@@ -225,7 +221,8 @@ const useCopilotStore = defineStore({
225
221
  1
226
222
  /* text */
227
223
  ],
228
- content: message2
224
+ content: message2,
225
+ selectTxt
229
226
  }
230
227
  ],
231
228
  showOpt: false
@@ -238,7 +235,7 @@ const useCopilotStore = defineStore({
238
235
  1
239
236
  /* text */
240
237
  ]) {
241
- return msg2.content;
238
+ return msg2.selectTxt ? msg2.selectTxt + msg2.content : msg2.content;
242
239
  }
243
240
  if (msg2.type === DataType[
244
241
  2
@@ -254,7 +251,7 @@ const useCopilotStore = defineStore({
254
251
  1
255
252
  /* text */
256
253
  ]) {
257
- return msg2.content;
254
+ return msg2.selectTxt ? msg2.selectTxt + msg2.content : msg2.content;
258
255
  }
259
256
  if (msg2.type === DataType[
260
257
  2