@kg-ui/kg-ui-plus 0.1.24 → 0.1.26

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 (53) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  3. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  4. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  5. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  6. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  7. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  8. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  10. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  11. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  12. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  13. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +6 -5
  14. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  15. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  16. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  17. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  18. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
  19. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  20. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  21. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  22. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +1 -1
  23. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  24. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  25. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  26. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  27. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +2 -2
  28. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  29. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  30. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +29 -16
  31. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  32. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  33. package/dist/es/KgCopilot/index.vue2.mjs +34 -10
  34. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  35. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  36. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  37. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  38. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  39. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  40. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  41. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  42. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  43. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  44. package/dist/es/home/LProject/index.vue.mjs +1 -1
  45. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  46. package/dist/es/home/index.vue.mjs +1 -1
  47. package/dist/es/home/index.vue3.mjs +2 -2
  48. package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +5 -0
  49. package/dist/es/node_modules/.pnpm/{dompurify@3.1.5 → dompurify@3.0.10}/node_modules/dompurify/dist/purify.es.mjs +11 -48
  50. package/dist/es/node_modules/.pnpm/{marked@12.0.2 → marked@12.0.1}/node_modules/marked/lib/marked.esm.mjs +1 -2
  51. package/dist/es/store/modules/copilot.mjs +7 -8
  52. package/dist/es/style.css +1 -1
  53. package/package.json +123 -123
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # 星光探索-组件库
2
-
3
- ## 基于vue3 elemet-plus封装的组件库
1
+ # 星光探索-组件库
2
+
3
+ ## 基于vue3 elemet-plus封装的组件库
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./AnswerHead.vue2.mjs";
2
2
  import "./AnswerHead.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79b56717"]]);
4
+ const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7714b264"]]);
5
5
  export {
6
6
  AnswerHead as default
7
7
  };
@@ -3,7 +3,7 @@ import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
3
3
  import { storeToRefs } from "pinia";
4
4
  const _hoisted_1 = { class: "answer" };
5
5
  const _hoisted_2 = { class: "icon" };
6
- const _hoisted_3 = /* @__PURE__ */ createStaticVNode('<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-79b56717><g clip-path="url(#clip0_3984_10372)" data-v-79b56717><path d="M35.1201 6.46024C34.4524 4.39741 32.5312 3 30.363 3L28.7093 3C26.2926 3 24.2217 4.72855 23.7898 7.10639L21.448 19.9984L22.1587 17.5866C22.7854 15.46 24.7377 14 26.9548 14H35.2947L38.8884 15.7857L42.3527 14H41.1975C39.0293 14 37.1082 12.6026 36.4405 10.5398L35.1201 6.46024Z" fill="url(#paint0_radial_3984_10372)" data-v-79b56717></path><path d="M13.3948 41.5178C14.0556 43.5918 15.9822 45 18.1589 45H21.397C24.1428 45 26.3748 42.7858 26.3968 40.0401L26.4921 28.1641L25.8179 30.428C25.1866 32.5478 23.2377 34.0009 21.0259 34.0009L12.623 34.0009L9.54267 31.9459L6.20776 34.0009H7.34528C9.52197 34.0009 11.4486 35.4091 12.1093 37.4831L13.3948 41.5178Z" fill="url(#paint1_radial_3984_10372)" data-v-79b56717></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint2_linear_3984_10372)" data-v-79b56717></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint3_linear_3984_10372)" data-v-79b56717></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint4_radial_3984_10372)" data-v-79b56717></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint5_linear_3984_10372)" data-v-79b56717></path></g><defs data-v-79b56717><radialGradient id="paint0_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(39.3087 20.1095) rotate(-130.498) scale(18.242 17.2825)" data-v-79b56717><stop offset="0.0955758" stop-color="#00AEFF" data-v-79b56717></stop><stop offset="0.773185" stop-color="#2253CE" data-v-79b56717></stop><stop offset="1" stop-color="#0736C4" data-v-79b56717></stop></radialGradient><radialGradient id="paint1_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(9.88779 33.7078) rotate(50.1259) scale(16.5438 16.2528)" data-v-79b56717><stop stop-color="#FFB657" data-v-79b56717></stop><stop offset="0.633728" stop-color="#FF5F3D" data-v-79b56717></stop><stop offset="0.923392" stop-color="#C02B3C" data-v-79b56717></stop></radialGradient><linearGradient id="paint2_linear_3984_10372" x1="11.4526" y1="6.75624" x2="13.8689" y2="35.1765" gradientUnits="userSpaceOnUse" data-v-79b56717><stop offset="0.156162" stop-color="#0D91E1" data-v-79b56717></stop><stop offset="0.487484" stop-color="#52B471" data-v-79b56717></stop><stop offset="0.652394" stop-color="#98BD42" data-v-79b56717></stop><stop offset="0.937361" stop-color="#FFC800" data-v-79b56717></stop></linearGradient><linearGradient id="paint3_linear_3984_10372" x1="13.6347" y1="3" x2="14.954" y2="34.0019" gradientUnits="userSpaceOnUse" data-v-79b56717><stop stop-color="#3DCBFF" data-v-79b56717></stop><stop offset="0.246674" stop-color="#0588F7" stop-opacity="0" data-v-79b56717></stop></linearGradient><radialGradient id="paint4_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.8953 10.9649) rotate(109.574) scale(41.2667 50.0822)" data-v-79b56717><stop offset="0.0661714" stop-color="#8C48FF" data-v-79b56717></stop><stop offset="0.5" stop-color="#F2598A" data-v-79b56717></stop><stop offset="0.895833" stop-color="#FFB152" data-v-79b56717></stop></radialGradient><linearGradient id="paint5_linear_3984_10372" x1="44.2778" y1="12.1074" x2="44.2606" y2="20.5507" gradientUnits="userSpaceOnUse" data-v-79b56717><stop offset="0.0581535" stop-color="#F8ADFA" data-v-79b56717></stop><stop offset="0.708063" stop-color="#A86EDD" stop-opacity="0" data-v-79b56717></stop></linearGradient><clipPath id="clip0_3984_10372" data-v-79b56717><rect width="48" height="48" fill="white" data-v-79b56717></rect></clipPath></defs></svg>', 1);
6
+ const _hoisted_3 = /* @__PURE__ */ createStaticVNode('<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-7714b264><g clip-path="url(#clip0_3984_10372)" data-v-7714b264><path d="M35.1201 6.46024C34.4524 4.39741 32.5312 3 30.363 3L28.7093 3C26.2926 3 24.2217 4.72855 23.7898 7.10639L21.448 19.9984L22.1587 17.5866C22.7854 15.46 24.7377 14 26.9548 14H35.2947L38.8884 15.7857L42.3527 14H41.1975C39.0293 14 37.1082 12.6026 36.4405 10.5398L35.1201 6.46024Z" fill="url(#paint0_radial_3984_10372)" data-v-7714b264></path><path d="M13.3948 41.5178C14.0556 43.5918 15.9822 45 18.1589 45H21.397C24.1428 45 26.3748 42.7858 26.3968 40.0401L26.4921 28.1641L25.8179 30.428C25.1866 32.5478 23.2377 34.0009 21.0259 34.0009L12.623 34.0009L9.54267 31.9459L6.20776 34.0009H7.34528C9.52197 34.0009 11.4486 35.4091 12.1093 37.4831L13.3948 41.5178Z" fill="url(#paint1_radial_3984_10372)" data-v-7714b264></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint2_linear_3984_10372)" data-v-7714b264></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint3_linear_3984_10372)" data-v-7714b264></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint4_radial_3984_10372)" data-v-7714b264></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint5_linear_3984_10372)" data-v-7714b264></path></g><defs data-v-7714b264><radialGradient id="paint0_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(39.3087 20.1095) rotate(-130.498) scale(18.242 17.2825)" data-v-7714b264><stop offset="0.0955758" stop-color="#00AEFF" data-v-7714b264></stop><stop offset="0.773185" stop-color="#2253CE" data-v-7714b264></stop><stop offset="1" stop-color="#0736C4" data-v-7714b264></stop></radialGradient><radialGradient id="paint1_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(9.88779 33.7078) rotate(50.1259) scale(16.5438 16.2528)" data-v-7714b264><stop stop-color="#FFB657" data-v-7714b264></stop><stop offset="0.633728" stop-color="#FF5F3D" data-v-7714b264></stop><stop offset="0.923392" stop-color="#C02B3C" data-v-7714b264></stop></radialGradient><linearGradient id="paint2_linear_3984_10372" x1="11.4526" y1="6.75624" x2="13.8689" y2="35.1765" gradientUnits="userSpaceOnUse" data-v-7714b264><stop offset="0.156162" stop-color="#0D91E1" data-v-7714b264></stop><stop offset="0.487484" stop-color="#52B471" data-v-7714b264></stop><stop offset="0.652394" stop-color="#98BD42" data-v-7714b264></stop><stop offset="0.937361" stop-color="#FFC800" data-v-7714b264></stop></linearGradient><linearGradient id="paint3_linear_3984_10372" x1="13.6347" y1="3" x2="14.954" y2="34.0019" gradientUnits="userSpaceOnUse" data-v-7714b264><stop stop-color="#3DCBFF" data-v-7714b264></stop><stop offset="0.246674" stop-color="#0588F7" stop-opacity="0" data-v-7714b264></stop></linearGradient><radialGradient id="paint4_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.8953 10.9649) rotate(109.574) scale(41.2667 50.0822)" data-v-7714b264><stop offset="0.0661714" stop-color="#8C48FF" data-v-7714b264></stop><stop offset="0.5" stop-color="#F2598A" data-v-7714b264></stop><stop offset="0.895833" stop-color="#FFB152" data-v-7714b264></stop></radialGradient><linearGradient id="paint5_linear_3984_10372" x1="44.2778" y1="12.1074" x2="44.2606" y2="20.5507" gradientUnits="userSpaceOnUse" data-v-7714b264><stop offset="0.0581535" stop-color="#F8ADFA" data-v-7714b264></stop><stop offset="0.708063" stop-color="#A86EDD" stop-opacity="0" data-v-7714b264></stop></linearGradient><clipPath id="clip0_3984_10372" data-v-7714b264><rect width="48" height="48" fill="white" data-v-7714b264></rect></clipPath></defs></svg>', 1);
7
7
  const _hoisted_4 = { class: "head-label" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "AnswerHead",
@@ -1,4 +1,4 @@
1
- const AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang = "";
1
+ const AnswerHead_vue_vue_type_style_index_0_scoped_7714b264_lang = "";
2
2
  export {
3
- AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang as default
3
+ AnswerHead_vue_vue_type_style_index_0_scoped_7714b264_lang as default
4
4
  };
@@ -2,7 +2,7 @@ import { openBlock, createElementBlock, pushScopeId, popScopeId, createElementVN
2
2
  import "./UserHead.vue2.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  const _sfc_main = {};
5
- const _withScopeId = (n) => (pushScopeId("data-v-e25476bb"), n = n(), popScopeId(), n);
5
+ const _withScopeId = (n) => (pushScopeId("data-v-1975030b"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1 = { class: "user" };
7
7
  const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "icon header-avatar rounded-full" }, [
8
8
  /* @__PURE__ */ createElementVNode("svg", {
@@ -20,7 +20,7 @@ const _hoisted_4 = [
20
20
  function _sfc_render(_ctx, _cache) {
21
21
  return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4);
22
22
  }
23
- const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e25476bb"]]);
23
+ const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1975030b"]]);
24
24
  export {
25
25
  UserHead as default
26
26
  };
@@ -1,4 +1,4 @@
1
- const UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang = "";
1
+ const UserHead_vue_vue_type_style_index_0_scoped_1975030b_lang = "";
2
2
  export {
3
- UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang as default
3
+ UserHead_vue_vue_type_style_index_0_scoped_1975030b_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./NewTheme.vue2.mjs";
2
2
  import "./NewTheme.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e4530874"]]);
4
+ const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b959a5ee"]]);
5
5
  export {
6
6
  NewTheme as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent, ref, watch, openBlock, createElementBlock, createEleme
2
2
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
3
3
  import { storeToRefs } from "pinia";
4
4
  const _hoisted_1 = { class: "outside-left-container" };
5
- const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-e4530874><div class="button-compose-icon" data-v-e4530874><svg class="button-compose-icon" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-e4530874><path fill="#fff" d="M12 2C17.5228 2 22 6.47715 22 12C22 12.2628 21.9899 12.5232 21.97 12.7809C21.5319 12.3658 21.0361 12.0111 20.4958 11.73C20.3532 7.16054 16.6041 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 13.4696 3.87277 14.8834 4.57303 16.1375L4.72368 16.4072L3.61096 20.3914L7.59755 19.2792L7.86709 19.4295C9.04305 20.0852 10.3592 20.4531 11.73 20.4958C12.0111 21.0361 12.3658 21.5319 12.7809 21.97C12.5232 21.9899 12.2628 22 12 22C10.3817 22 8.81782 21.6146 7.41286 20.888L3.58704 21.9553C2.92212 22.141 2.23258 21.7525 2.04691 21.0876C1.98546 20.8676 1.98549 20.6349 2.04695 20.4151L3.11461 16.5922C2.38637 15.186 2 13.6203 2 12C2 6.47715 6.47715 2 12 2ZM23 17.5C23 14.4624 20.5376 12 17.5 12C14.4624 12 12 14.4624 12 17.5C12 20.5376 14.4624 23 17.5 23C20.5376 23 23 20.5376 23 17.5ZM18.0006 18L18.0011 20.5035C18.0011 20.7797 17.7773 21.0035 17.5011 21.0035C17.225 21.0035 17.0011 20.7797 17.0011 20.5035L17.0006 18H14.4956C14.2197 18 13.9961 17.7762 13.9961 17.5C13.9961 17.2239 14.2197 17 14.4956 17H17.0005L17 14.4993C17 14.2231 17.2239 13.9993 17.5 13.9993C17.7761 13.9993 18 14.2231 18 14.4993L18.0005 17H20.4966C20.7725 17 20.9961 17.2239 20.9961 17.5C20.9961 17.7762 20.7725 18 20.4966 18H18.0006Z" data-v-e4530874></path></svg></div><div class="button-compose-text" data-v-e4530874>新主题</div></div>', 1);
5
+ const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-b959a5ee><div class="button-compose-icon" data-v-b959a5ee><svg class="button-compose-icon" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-b959a5ee><path fill="#fff" d="M12 2C17.5228 2 22 6.47715 22 12C22 12.2628 21.9899 12.5232 21.97 12.7809C21.5319 12.3658 21.0361 12.0111 20.4958 11.73C20.3532 7.16054 16.6041 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 13.4696 3.87277 14.8834 4.57303 16.1375L4.72368 16.4072L3.61096 20.3914L7.59755 19.2792L7.86709 19.4295C9.04305 20.0852 10.3592 20.4531 11.73 20.4958C12.0111 21.0361 12.3658 21.5319 12.7809 21.97C12.5232 21.9899 12.2628 22 12 22C10.3817 22 8.81782 21.6146 7.41286 20.888L3.58704 21.9553C2.92212 22.141 2.23258 21.7525 2.04691 21.0876C1.98546 20.8676 1.98549 20.6349 2.04695 20.4151L3.11461 16.5922C2.38637 15.186 2 13.6203 2 12C2 6.47715 6.47715 2 12 2ZM23 17.5C23 14.4624 20.5376 12 17.5 12C14.4624 12 12 14.4624 12 17.5C12 20.5376 14.4624 23 17.5 23C20.5376 23 23 20.5376 23 17.5ZM18.0006 18L18.0011 20.5035C18.0011 20.7797 17.7773 21.0035 17.5011 21.0035C17.225 21.0035 17.0011 20.7797 17.0011 20.5035L17.0006 18H14.4956C14.2197 18 13.9961 17.7762 13.9961 17.5C13.9961 17.2239 14.2197 17 14.4956 17H17.0005L17 14.4993C17 14.2231 17.2239 13.9993 17.5 13.9993C17.7761 13.9993 18 14.2231 18 14.4993L18.0005 17H20.4966C20.7725 17 20.9961 17.2239 20.9961 17.5C20.9961 17.7762 20.7725 18 20.4966 18H18.0006Z" data-v-b959a5ee></path></svg></div><div class="button-compose-text" data-v-b959a5ee>新主题</div></div>', 1);
6
6
  const _hoisted_3 = [
7
7
  _hoisted_2
8
8
  ];
@@ -1,4 +1,4 @@
1
- const NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang = "";
1
+ const NewTheme_vue_vue_type_style_index_0_scoped_b959a5ee_lang = "";
2
2
  export {
3
- NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang as default
3
+ NewTheme_vue_vue_type_style_index_0_scoped_b959a5ee_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SelectPluginByKey.vue2.mjs";
2
2
  import "./SelectPluginByKey.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bbda30a3"]]);
4
+ const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0f1db82"]]);
5
5
  export {
6
6
  SelectPluginByKey as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const SelectPluginByKey_vue_vue_type_style_index_0_scoped_bbda30a3_lang = "";
1
+ const SelectPluginByKey_vue_vue_type_style_index_0_scoped_c0f1db82_lang = "";
2
2
  export {
3
- SelectPluginByKey_vue_vue_type_style_index_0_scoped_bbda30a3_lang as default
3
+ SelectPluginByKey_vue_vue_type_style_index_0_scoped_c0f1db82_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 SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7eecfe51"]]);
4
+ const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1426ec62"]]);
5
5
  export {
6
6
  SearchInput as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, watch, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withModifiers, toDisplayString, normalizeClass, unref, createCommentVNode, withCtx, Fragment, renderList, normalizeStyle, createBlock, withKeys, createTextVNode, pushScopeId, popScopeId } from "vue";
1
+ import { defineComponent, ref, onMounted, watch, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, normalizeClass, withModifiers, toDisplayString, unref, createCommentVNode, withCtx, Fragment, renderList, normalizeStyle, createBlock, withKeys, createTextVNode, pushScopeId, popScopeId } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
3
  import NewTheme from "./NewTheme.vue.mjs";
4
4
  import { filterPluginByPinyin } from "../../../utils/home.mjs";
@@ -8,9 +8,9 @@ import { plusParamToStr } from "../../../utils/copilot.mjs";
8
8
  import data$2 from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs";
9
9
  import data from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/braces-line.mjs";
10
10
  import data$1 from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/close-circle-line.mjs";
11
- const _withScopeId = (n) => (pushScopeId("data-v-7eecfe51"), n = n(), popScopeId(), n);
11
+ const _withScopeId = (n) => (pushScopeId("data-v-1426ec62"), n = n(), popScopeId(), n);
12
12
  const _hoisted_1 = { class: "control-contain" };
13
- const _hoisted_2 = ["onClick"];
13
+ const _hoisted_2 = ["disabled", "onClick"];
14
14
  const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  width: "32",
@@ -370,14 +370,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
370
370
  onDeleteText: deleteText
371
371
  }, null, 8, ["isShowSelect", "selectPluginList", "activePluInd", "modal"]),
372
372
  createElementVNode("button", {
373
- class: "control-button select-button",
373
+ class: normalizeClass(["control-button select-button", [!selectPluginList.value.length && "disable-button"]]),
374
+ disabled: !selectPluginList.value.length,
374
375
  onClick: withModifiers(openPluDialog, ["stop"])
375
376
  }, [
376
377
  createElementVNode("span", null, toDisplayString(buttonText.value), 1),
377
378
  createElementVNode("div", {
378
379
  class: normalizeClass(["icon", [isShowSelection.value && "rotated"]])
379
380
  }, _hoisted_4, 2)
380
- ], 8, _hoisted_2),
381
+ ], 10, _hoisted_2),
381
382
  createVNode(NewTheme),
382
383
  unref(sendLonding) ? (openBlock(), createElementBlock("button", {
383
384
  key: 0,
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_7eecfe51_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_1426ec62_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_7eecfe51_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_1426ec62_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 CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d9fb74e"]]);
4
+ const CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bb1feefc"]]);
5
5
  export {
6
6
  CopiFooter as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_8d9fb74e_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_bb1feefc_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_8d9fb74e_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_bb1feefc_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 Dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-197eb540"]]);
4
+ const Dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-298999e9"]]);
5
5
  export {
6
6
  Dialogue as default
7
7
  };
@@ -6,7 +6,7 @@ import data$1 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_module
6
6
  import data from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/caret-down-fill.mjs";
7
7
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
8
8
  import { storeToRefs } from "pinia";
9
- const _withScopeId = (n) => (pushScopeId("data-v-197eb540"), n = n(), popScopeId(), n);
9
+ const _withScopeId = (n) => (pushScopeId("data-v-298999e9"), n = n(), popScopeId(), n);
10
10
  const _hoisted_1 = { class: "msg-head" };
11
11
  const _hoisted_2 = { class: "msg-box" };
12
12
  const _hoisted_3 = {
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_197eb540_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_298999e9_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_197eb540_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_298999e9_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./edit.vue2.mjs";
2
2
  import "./edit.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-86d77442"]]);
4
+ const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c85f484"]]);
5
5
  export {
6
6
  Edit as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const edit_vue_vue_type_style_index_0_scoped_86d77442_lang = "";
1
+ const edit_vue_vue_type_style_index_0_scoped_5c85f484_lang = "";
2
2
  export {
3
- edit_vue_vue_type_style_index_0_scoped_86d77442_lang as default
3
+ edit_vue_vue_type_style_index_0_scoped_5c85f484_lang as default
4
4
  };
@@ -87,7 +87,7 @@ const _sfc_main = {
87
87
  };
88
88
  }
89
89
  };
90
- const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecb4b657"]]);
90
+ const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9ceb0a57"]]);
91
91
  export {
92
92
  FileBox as default
93
93
  };
@@ -1,4 +1,4 @@
1
- const fileBox_vue_vue_type_style_index_0_scoped_ecb4b657_lang = "";
1
+ const fileBox_vue_vue_type_style_index_0_scoped_9ceb0a57_lang = "";
2
2
  export {
3
- fileBox_vue_vue_type_style_index_0_scoped_ecb4b657_lang as default
3
+ fileBox_vue_vue_type_style_index_0_scoped_9ceb0a57_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 MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04eb43eb"]]);
4
+ const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-276aaeeb"]]);
5
5
  export {
6
6
  MessageParse as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_04eb43eb_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_276aaeeb_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_04eb43eb_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_276aaeeb_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,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, onMounted, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref } from "vue";
2
- import purify from "../../../node_modules/.pnpm/dompurify@3.1.5/node_modules/dompurify/dist/purify.es.mjs";
3
- import { marked } from "../../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.mjs";
2
+ import purify from "../../../node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs";
3
+ import { marked } from "../../../node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs";
4
4
  import isInCode from "./mdInCode.mjs";
5
5
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
6
6
  import { storeToRefs } from "pinia";
@@ -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-d96aaf4b"]]);
4
+ const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-902b3a8c"]]);
5
5
  export {
6
6
  HistoryReport as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode, withCtx, unref, Fragment, renderList, normalizeClass, withDirectives, toDisplayString, vShow, withModifiers, createCommentVNode, pushScopeId, popScopeId } from "vue";
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode, withCtx, unref, Fragment, renderList, normalizeClass, withDirectives, toDisplayString, vShow, withModifiers, withKeys, createCommentVNode, nextTick, pushScopeId, popScopeId } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
3
  import { ElMessageBox } from "element-plus";
4
4
  import data$1 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/delete.mjs";
5
5
  import data$4 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/edit.mjs";
6
6
  import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/search.mjs";
7
- import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs";
8
- import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs";
7
+ import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs";
8
+ import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs";
9
9
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
10
- const _withScopeId = (n) => (pushScopeId("data-v-d96aaf4b"), n = n(), popScopeId(), n);
10
+ const _withScopeId = (n) => (pushScopeId("data-v-902b3a8c"), n = n(), popScopeId(), n);
11
11
  const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "history-title" }, "历史记录", -1));
12
12
  const _hoisted_2 = { class: "search_box" };
13
13
  const _hoisted_3 = { class: "list_box" };
@@ -21,15 +21,21 @@ const _hoisted_7 = {
21
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  __name: "index",
23
23
  props: {
24
- isShow: { type: Boolean }
24
+ isShow: { type: Boolean },
25
+ isMobile: { type: Boolean }
25
26
  },
26
- setup(__props) {
27
+ emits: ["changeExpand"],
28
+ setup(__props, { emit: emits }) {
29
+ const props = __props;
27
30
  const copilotStore = useCopilotStoreHook();
28
31
  const { historyList, currentHistoryRecord } = storeToRefs(copilotStore);
29
32
  const { changeCurrentRecord, delHistoryRecord, updataHistoryName } = copilotStore;
30
33
  const searchText = ref("");
31
34
  const changeActive = (item) => {
32
35
  changeCurrentRecord(item);
36
+ if (props.isMobile) {
37
+ emits("changeExpand");
38
+ }
33
39
  };
34
40
  const searchList = computed(() => {
35
41
  return historyList.value.filter((item) => item.name.includes(searchText.value));
@@ -61,12 +67,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
67
  await updataHistoryName({ sessionId: item.sessionId, name: item.editName });
62
68
  item.showInput = false;
63
69
  };
64
- const toShowInput = (item) => {
70
+ const toShowInput = (item, index) => {
65
71
  historyList.value.forEach((item2) => {
66
72
  item2.showInput = false;
67
73
  });
68
74
  item.editName = item.name;
69
75
  item.showInput = true;
76
+ nextTick(() => {
77
+ const id = "editInput" + index;
78
+ const el = document.getElementById(id);
79
+ el.focus();
80
+ });
70
81
  };
71
82
  return (_ctx, _cache) => {
72
83
  const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
@@ -94,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
105
  }, null, 8, ["icon"])
95
106
  ]),
96
107
  createElementVNode("div", _hoisted_3, [
97
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(searchList), (item) => {
108
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(searchList), (item, index) => {
98
109
  return openBlock(), createElementBlock("div", {
99
110
  key: item.name,
100
111
  onClick: ($event) => changeActive(item),
@@ -110,34 +121,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
121
  [vShow, !item.showInput]
111
122
  ]),
112
123
  withDirectives(createVNode(_component_el_input, {
124
+ id: "editInput" + index,
113
125
  modelValue: item.editName,
114
126
  "onUpdate:modelValue": ($event) => item.editName = $event,
115
127
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
116
128
  }, ["stop"])),
129
+ onKeydown: withKeys(($event) => check(item), ["enter"]),
117
130
  spellcheck: "false"
118
131
  }, {
119
132
  suffix: withCtx(() => [
120
133
  createVNode(_component_IconifyIconOffline, {
121
- icon: unref(data$2),
122
134
  class: "icon",
123
- onClick: withModifiers(($event) => close(item), ["stop"])
135
+ icon: unref(data$2),
136
+ onClick: withModifiers(($event) => check(item), ["stop"])
124
137
  }, null, 8, ["icon", "onClick"]),
125
138
  createVNode(_component_IconifyIconOffline, {
126
- class: "icon",
127
139
  icon: unref(data$3),
128
- onClick: withModifiers(($event) => check(item), ["stop"])
140
+ class: "icon",
141
+ onClick: withModifiers(($event) => close(item), ["stop"])
129
142
  }, null, 8, ["icon", "onClick"])
130
143
  ]),
131
144
  _: 2
132
- }, 1032, ["modelValue", "onUpdate:modelValue"]), [
133
- [vShow, item.showInput]
145
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue", "onKeydown"]), [
146
+ [vShow, item.showInput && !__props.isMobile]
134
147
  ])
135
148
  ]),
136
- !item.showInput ? (openBlock(), createElementBlock("div", _hoisted_7, [
149
+ !item.showInput && !__props.isMobile ? (openBlock(), createElementBlock("div", _hoisted_7, [
137
150
  createVNode(_component_IconifyIconOffline, {
138
151
  class: "icon",
139
152
  icon: unref(data$4),
140
- onClick: withModifiers(($event) => toShowInput(item), ["stop"])
153
+ onClick: withModifiers(($event) => toShowInput(item, index), ["stop"])
141
154
  }, null, 8, ["icon", "onClick"]),
142
155
  createVNode(_component_IconifyIconOffline, {
143
156
  class: "icon",
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_d96aaf4b_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_902b3a8c_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_d96aaf4b_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_902b3a8c_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-6f309652"]]);
4
+ const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9c566ecb"]]);
5
5
  export {
6
6
  KgCopilot as default
7
7
  };
@@ -1,21 +1,19 @@
1
- import { defineComponent, onMounted, watch, useSlots, ref, resolveComponent, openBlock, createElementBlock, createVNode, unref, createCommentVNode, createElementVNode, createSlots, renderList, withCtx, renderSlot, toRaw } from "vue";
1
+ import { defineComponent, onMounted, watch, useSlots, ref, resolveComponent, openBlock, createElementBlock, unref, createVNode, createCommentVNode, createBlock, withCtx, createElementVNode, normalizeClass, createSlots, renderList, renderSlot, toRaw } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
3
  import CopiFooter from "./CopiFooter/index.vue.mjs";
4
4
  import HistoryReport from "./historyRecord/index.vue.mjs";
5
5
  import Dialogue from "./dialogue/index.vue.mjs";
6
6
  import "../style/tailwind.css.mjs";
7
7
  import "../style/index.scss.mjs";
8
- import { useCopilotStoreHook } from "../store/modules/copilot.mjs";
9
8
  import data$1 from "../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/arrow-right.mjs";
10
9
  import data from "../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/arrow-left.mjs";
10
+ import { deviceDetection as Rn } from "../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
11
+ import { useCopilotStoreHook } from "../store/modules/copilot.mjs";
11
12
  const _hoisted_1 = {
12
13
  class: "wrap",
13
14
  style: { "height": "100%" }
14
15
  };
15
- const _hoisted_2 = {
16
- key: 0,
17
- class: "left-wrap"
18
- };
16
+ const _hoisted_2 = { key: 0 };
19
17
  const _hoisted_3 = { class: "copilot-box" };
20
18
  const _hoisted_4 = { class: "copilot-bottom-box" };
21
19
  const __default__ = {
@@ -41,6 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
39
  const CopilotStore = useCopilotStoreHook();
42
40
  const { searchText, msgList } = storeToRefs(CopilotStore);
43
41
  const { initCopilot, setSearchText, sendMsg, setPluginsPayload } = CopilotStore;
42
+ const isMobile = Rn();
44
43
  onMounted(() => {
45
44
  initCopilot({
46
45
  plugins: props.plugins,
@@ -83,16 +82,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
82
  showHistoryList.value = !showHistoryList.value;
84
83
  };
85
84
  return (_ctx, _cache) => {
85
+ const _component_el_drawer = resolveComponent("el-drawer");
86
86
  const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
87
87
  return openBlock(), createElementBlock("div", _hoisted_1, [
88
- props.useHistoryRecord ? (openBlock(), createElementBlock("div", _hoisted_2, [
89
- createVNode(HistoryReport, { isShow: showHistoryList.value }, null, 8, ["isShow"]),
88
+ props.useHistoryRecord && !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2, [
89
+ createVNode(HistoryReport, {
90
+ isShow: showHistoryList.value,
91
+ isMobile: unref(isMobile)
92
+ }, null, 8, ["isShow", "isMobile"])
93
+ ])) : createCommentVNode("", true),
94
+ unref(isMobile) ? (openBlock(), createBlock(_component_el_drawer, {
95
+ key: 1,
96
+ modelValue: showHistoryList.value,
97
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showHistoryList.value = $event),
98
+ direction: "ltr",
99
+ size: "72%",
100
+ "show-close": false
101
+ }, {
102
+ default: withCtx(() => [
103
+ createVNode(HistoryReport, {
104
+ isShow: showHistoryList.value,
105
+ isMobile: unref(isMobile),
106
+ onChangeExpand: changeExpand
107
+ }, null, 8, ["isShow", "isMobile"])
108
+ ]),
109
+ _: 1
110
+ }, 8, ["modelValue"])) : createCommentVNode("", true),
111
+ createElementVNode("div", {
112
+ class: normalizeClass(["left-wrap", { isMobile: unref(isMobile) }])
113
+ }, [
90
114
  createVNode(_component_IconifyIconOffline, {
91
115
  class: "icon",
92
116
  icon: showHistoryList.value ? unref(data) : unref(data$1),
93
117
  onClick: changeExpand
94
118
  }, null, 8, ["icon"])
95
- ])) : createCommentVNode("", true),
119
+ ], 2),
96
120
  createElementVNode("div", _hoisted_3, [
97
121
  createVNode(Dialogue, null, createSlots({ _: 2 }, [
98
122
  renderList(unref(slots), (item, key) => {
@@ -106,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
130
  ]), 1024),
107
131
  createElementVNode("div", _hoisted_4, [
108
132
  createVNode(CopiFooter, {
109
- onCancleBtnEvent: _cache[0] || (_cache[0] = () => {
133
+ onCancleBtnEvent: _cache[1] || (_cache[1] = () => {
110
134
  emit("cancleBtnEvent");
111
135
  })
112
136
  })
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_6f309652_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_9c566ecb_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_6f309652_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_9c566ecb_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
  };