@kg-ui/kg-ui-plus 0.0.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.
Files changed (156) hide show
  1. package/README.md +39 -0
  2. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +16 -0
  3. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +4 -0
  4. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +26 -0
  5. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +4 -0
  6. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +7 -0
  7. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +49 -0
  8. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +4 -0
  9. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +7 -0
  10. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +94 -0
  11. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +4 -0
  12. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +7 -0
  13. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +33 -0
  14. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +4 -0
  15. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +7 -0
  16. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +140 -0
  17. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +4 -0
  18. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +7 -0
  19. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +131 -0
  20. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +4 -0
  21. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +7 -0
  22. package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +21 -0
  23. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +4 -0
  24. package/dist/es/KgCopilot/dialogue.vue.mjs +7 -0
  25. package/dist/es/KgCopilot/dialogue.vue2.mjs +131 -0
  26. package/dist/es/KgCopilot/dialogue.vue3.mjs +4 -0
  27. package/dist/es/KgCopilot/index.vue.mjs +7 -0
  28. package/dist/es/KgCopilot/index.vue2.mjs +49 -0
  29. package/dist/es/KgCopilot/index.vue3.mjs +4 -0
  30. package/dist/es/KgCopilot/mdInCode.mjs +56 -0
  31. package/dist/es/KgCopilot/readMd.vue.mjs +7 -0
  32. package/dist/es/KgCopilot/readMd.vue2.mjs +87 -0
  33. package/dist/es/KgCopilot/readMd.vue3.mjs +4 -0
  34. package/dist/es/ReIcon/index.mjs +11 -0
  35. package/dist/es/ReIcon/src/iconfont.mjs +46 -0
  36. package/dist/es/ReIcon/src/iconifyIconOffline.mjs +30 -0
  37. package/dist/es/ReIcon/src/iconifyIconOnline.mjs +29 -0
  38. package/dist/es/_virtual/___vite-browser-external.mjs +6 -0
  39. package/dist/es/_virtual/__vite-browser-external.mjs +4 -0
  40. package/dist/es/_virtual/_commonjsHelpers.mjs +34 -0
  41. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
  42. package/dist/es/_virtual/index.mjs +13 -0
  43. package/dist/es/api/project.mjs +51 -0
  44. package/dist/es/directives/heighlight/index.mjs +69 -0
  45. package/dist/es/directives/index.mjs +4 -0
  46. package/dist/es/home/LFilter/FilterArea.vue.mjs +7 -0
  47. package/dist/es/home/LFilter/FilterArea.vue2.mjs +507 -0
  48. package/dist/es/home/LFilter/FilterArea.vue3.mjs +4 -0
  49. package/dist/es/home/LFilter/FilterHead.vue.mjs +129 -0
  50. package/dist/es/home/LFilter/FilterHead.vue2.mjs +4 -0
  51. package/dist/es/home/LFilter/FilterItem.vue.mjs +7 -0
  52. package/dist/es/home/LFilter/FilterItem.vue2.mjs +114 -0
  53. package/dist/es/home/LFilter/FilterItem.vue3.mjs +4 -0
  54. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +7 -0
  55. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +171 -0
  56. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +4 -0
  57. package/dist/es/home/LFilter/index.vue.mjs +17 -0
  58. package/dist/es/home/LFilter/index.vue2.mjs +4 -0
  59. package/dist/es/home/LProject/index.vue.mjs +7 -0
  60. package/dist/es/home/LProject/index.vue2.mjs +70 -0
  61. package/dist/es/home/LProject/index.vue3.mjs +4 -0
  62. package/dist/es/home/index.vue.mjs +7 -0
  63. package/dist/es/home/index.vue2.mjs +80 -0
  64. package/dist/es/home/index.vue3.mjs +4 -0
  65. package/dist/es/index.mjs +36 -0
  66. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +8 -0
  67. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +8 -0
  68. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +8 -0
  69. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +8 -0
  70. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +8 -0
  71. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +8 -0
  72. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +8 -0
  73. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +8 -0
  74. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +8 -0
  75. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +8 -0
  76. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +8 -0
  77. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +8 -0
  78. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +8 -0
  79. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +8 -0
  80. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +8 -0
  81. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +8 -0
  82. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +8 -0
  83. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +8 -0
  84. package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/iconify.mjs +1702 -0
  85. package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/offline.mjs +436 -0
  86. package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +70 -0
  87. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +16 -0
  88. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +36 -0
  89. package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +48 -0
  90. package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +949 -0
  91. package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +22 -0
  92. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +4 -0
  93. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +4 -0
  94. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +4 -0
  95. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +4 -0
  96. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +4 -0
  97. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +4 -0
  98. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +4 -0
  99. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +72 -0
  100. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +6 -0
  101. package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +320 -0
  102. package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +14 -0
  103. package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +19 -0
  104. package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +11 -0
  105. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +21 -0
  106. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +48 -0
  107. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +8 -0
  108. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +5 -0
  109. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +91 -0
  110. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +377 -0
  111. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +221 -0
  112. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +280 -0
  113. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +732 -0
  114. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +247 -0
  115. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +47 -0
  116. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +71 -0
  117. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +160 -0
  118. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +38 -0
  119. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +176 -0
  120. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +135 -0
  121. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +89 -0
  122. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +254 -0
  123. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +698 -0
  124. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +40 -0
  125. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +227 -0
  126. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +144 -0
  127. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +589 -0
  128. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +414 -0
  129. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +414 -0
  130. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +766 -0
  131. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +832 -0
  132. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +788 -0
  133. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +227 -0
  134. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +1580 -0
  135. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +4 -0
  136. package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +2045 -0
  137. package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +514 -0
  138. package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +124 -0
  139. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +22 -0
  140. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +14 -0
  141. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +199 -0
  142. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +262 -0
  143. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +196 -0
  144. package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +54 -0
  145. package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +115 -0
  146. package/dist/es/store/index.mjs +8 -0
  147. package/dist/es/store/modules/copilot.mjs +108 -0
  148. package/dist/es/store/modules/filters.mjs +346 -0
  149. package/dist/es/store/modules/types.mjs +19 -0
  150. package/dist/es/style/index.scss.mjs +4 -0
  151. package/dist/es/style/tailwind.css.mjs +4 -0
  152. package/dist/es/style.css +1 -0
  153. package/dist/es/utils/home.mjs +129 -0
  154. package/dist/es/utils/http/index.mjs +90 -0
  155. package/dist/es/utils/message.mjs +42 -0
  156. package/package.json +124 -0
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # 星光探索 copilot组件
2
+
3
+ ## 简介:
4
+ - 星光探索 copilot组件vue3版本
5
+
6
+ ## 属性
7
+ ## 暴露的方法
8
+ - getSearchText: 获取输入框的文字
9
+ - setSearchText: 设置输入框的文字
10
+ - getMsgList: 获取消息列表信息
11
+ - setMsgList: 设置消息列表信息
12
+
13
+ ## 事件
14
+ - sendMsg: 发送时触发
15
+
16
+ ## 接口定义(建议)
17
+ - /sendMsg
18
+
19
+
20
+ | 参数名 | 类型 | 说明 |
21
+ | -- | ----- | ----- |
22
+ | msg | string | 关键字 |
23
+ | token | string | 用户标识 |
24
+
25
+
26
+ **接口参数**
27
+ - post请求
28
+ - json格式
29
+
30
+ **返回值**
31
+ - 流的方式
32
+ ```js{4}
33
+ {
34
+ 文字内容
35
+ }
36
+ ```
37
+
38
+
39
+
@@ -0,0 +1,16 @@
1
+ import { openBlock, createElementBlock, createStaticVNode } from "vue";
2
+ import "./AnswerHead.vue2.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _sfc_main = {};
5
+ const _hoisted_1 = { class: "answer" };
6
+ const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="icon" data-v-dbeec78a><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-dbeec78a><g clip-path="url(#clip0_3984_10372)" data-v-dbeec78a><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-dbeec78a></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-dbeec78a></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-dbeec78a></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-dbeec78a></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-dbeec78a></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-dbeec78a></path></g><defs data-v-dbeec78a><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-dbeec78a><stop offset="0.0955758" stop-color="#00AEFF" data-v-dbeec78a></stop><stop offset="0.773185" stop-color="#2253CE" data-v-dbeec78a></stop><stop offset="1" stop-color="#0736C4" data-v-dbeec78a></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-dbeec78a><stop stop-color="#FFB657" data-v-dbeec78a></stop><stop offset="0.633728" stop-color="#FF5F3D" data-v-dbeec78a></stop><stop offset="0.923392" stop-color="#C02B3C" data-v-dbeec78a></stop></radialGradient><linearGradient id="paint2_linear_3984_10372" x1="11.4526" y1="6.75624" x2="13.8689" y2="35.1765" gradientUnits="userSpaceOnUse" data-v-dbeec78a><stop offset="0.156162" stop-color="#0D91E1" data-v-dbeec78a></stop><stop offset="0.487484" stop-color="#52B471" data-v-dbeec78a></stop><stop offset="0.652394" stop-color="#98BD42" data-v-dbeec78a></stop><stop offset="0.937361" stop-color="#FFC800" data-v-dbeec78a></stop></linearGradient><linearGradient id="paint3_linear_3984_10372" x1="13.6347" y1="3" x2="14.954" y2="34.0019" gradientUnits="userSpaceOnUse" data-v-dbeec78a><stop stop-color="#3DCBFF" data-v-dbeec78a></stop><stop offset="0.246674" stop-color="#0588F7" stop-opacity="0" data-v-dbeec78a></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-dbeec78a><stop offset="0.0661714" stop-color="#8C48FF" data-v-dbeec78a></stop><stop offset="0.5" stop-color="#F2598A" data-v-dbeec78a></stop><stop offset="0.895833" stop-color="#FFB152" data-v-dbeec78a></stop></radialGradient><linearGradient id="paint5_linear_3984_10372" x1="44.2778" y1="12.1074" x2="44.2606" y2="20.5507" gradientUnits="userSpaceOnUse" data-v-dbeec78a><stop offset="0.0581535" stop-color="#F8ADFA" data-v-dbeec78a></stop><stop offset="0.708063" stop-color="#A86EDD" stop-opacity="0" data-v-dbeec78a></stop></linearGradient><clipPath id="clip0_3984_10372" data-v-dbeec78a><rect width="48" height="48" fill="white" data-v-dbeec78a></rect></clipPath></defs></svg></div><div class="head-label" data-v-dbeec78a>Copilot</div>', 2);
7
+ const _hoisted_4 = [
8
+ _hoisted_2
9
+ ];
10
+ function _sfc_render(_ctx, _cache) {
11
+ return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4);
12
+ }
13
+ const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dbeec78a"]]);
14
+ export {
15
+ AnswerHead as default
16
+ };
@@ -0,0 +1,4 @@
1
+ const AnswerHead_vue_vue_type_style_index_0_scoped_dbeec78a_lang = "";
2
+ export {
3
+ AnswerHead_vue_vue_type_style_index_0_scoped_dbeec78a_lang as default
4
+ };
@@ -0,0 +1,26 @@
1
+ import { openBlock, createElementBlock, pushScopeId, popScopeId, createElementVNode } from "vue";
2
+ import "./UserHead.vue2.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _sfc_main = {};
5
+ const _withScopeId = (n) => (pushScopeId("data-v-90e179cd"), n = n(), popScopeId(), n);
6
+ const _hoisted_1 = { class: "user" };
7
+ const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "icon header-avatar rounded-full" }, [
8
+ /* @__PURE__ */ createElementVNode("svg", {
9
+ viewBox: "0 0 24 24",
10
+ xmlns: "http://www.w3.org/2000/svg"
11
+ }, [
12
+ /* @__PURE__ */ createElementVNode("path", { d: "M17.755 14a2.249 2.249 0 0 1 2.248 2.25v.918a2.75 2.75 0 0 1-.512 1.598c-1.546 2.164-4.07 3.235-7.49 3.235-3.422 0-5.945-1.072-7.487-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.253 14h11.502ZM12 2.005a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z" })
13
+ ])
14
+ ], -1));
15
+ const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "head-label" }, "你", -1));
16
+ const _hoisted_4 = [
17
+ _hoisted_2,
18
+ _hoisted_3
19
+ ];
20
+ function _sfc_render(_ctx, _cache) {
21
+ return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4);
22
+ }
23
+ const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-90e179cd"]]);
24
+ export {
25
+ UserHead as default
26
+ };
@@ -0,0 +1,4 @@
1
+ const UserHead_vue_vue_type_style_index_0_scoped_90e179cd_lang = "";
2
+ export {
3
+ UserHead_vue_vue_type_style_index_0_scoped_90e179cd_lang as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./NewTheme.vue2.mjs";
2
+ import "./NewTheme.vue3.mjs";
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3632a947"]]);
5
+ export {
6
+ NewTheme as default
7
+ };
@@ -0,0 +1,49 @@
1
+ import { defineComponent, ref, watch, openBlock, createElementBlock, createElementVNode, normalizeStyle, createStaticVNode } from "vue";
2
+ import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
3
+ import { storeToRefs } from "pinia";
4
+ const _hoisted_1 = { class: "outside-left-container" };
5
+ const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-3632a947><div class="button-compose-icon" data-v-3632a947><svg class="button-compose-icon" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-3632a947><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-3632a947></path></svg></div><div class="button-compose-text" data-v-3632a947>新主题</div></div>', 1);
6
+ const _hoisted_3 = [
7
+ _hoisted_2
8
+ ];
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "NewTheme",
11
+ setup(__props) {
12
+ const CopilotStore = useCopilotStoreHook();
13
+ const { clearMsgList } = CopilotStore;
14
+ const { isShowNewTheme } = storeToRefs(CopilotStore);
15
+ const newthemeWidth = ref(50);
16
+ watch(isShowNewTheme, (val) => {
17
+ if (val) {
18
+ newthemeWidth.value = 110;
19
+ } else {
20
+ newthemeWidth.value = 50;
21
+ }
22
+ });
23
+ const getNewTheme = () => {
24
+ clearMsgList();
25
+ };
26
+ const mouseEnterBtn = () => {
27
+ newthemeWidth.value = 110;
28
+ };
29
+ const mouseLeaveBtn = () => {
30
+ newthemeWidth.value = 50;
31
+ };
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createElementBlock("div", _hoisted_1, [
34
+ createElementVNode("button", {
35
+ type: "button",
36
+ class: "button-compose",
37
+ style: normalizeStyle({ width: newthemeWidth.value + "px" }),
38
+ "aria-label": "新主题",
39
+ onMouseenter: mouseEnterBtn,
40
+ onMouseleave: mouseLeaveBtn,
41
+ onClick: getNewTheme
42
+ }, _hoisted_3, 36)
43
+ ]);
44
+ };
45
+ }
46
+ });
47
+ export {
48
+ _sfc_main as default
49
+ };
@@ -0,0 +1,4 @@
1
+ const NewTheme_vue_vue_type_style_index_0_scoped_3632a947_lang = "";
2
+ export {
3
+ NewTheme_vue_vue_type_style_index_0_scoped_3632a947_lang as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./SelectPlugin.vue2.mjs";
2
+ import "./SelectPlugin.vue3.mjs";
3
+ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const SelectPlugin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9e62625f"]]);
5
+ export {
6
+ SelectPlugin as default
7
+ };
@@ -0,0 +1,94 @@
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, unref, withModifiers, createTextVNode, createVNode, normalizeClass, createCommentVNode, withDirectives, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
2
+ import { ClickOutside } from "element-plus";
3
+ import data$1 from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs";
4
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs";
5
+ import { useCopilotStoreHook } from "../../../../store/modules/copilot.mjs";
6
+ import { storeToRefs } from "pinia";
7
+ const _hoisted_1 = { class: "select-plugin-box" };
8
+ const _hoisted_2 = ["onClick"];
9
+ const _hoisted_3 = {
10
+ key: 1,
11
+ class: "selection"
12
+ };
13
+ const _hoisted_4 = { class: "plugin-content" };
14
+ const _hoisted_5 = ["onClick"];
15
+ const _sfc_main = /* @__PURE__ */ defineComponent({
16
+ __name: "SelectPlugin",
17
+ setup(__props) {
18
+ const CopilotStore = useCopilotStoreHook();
19
+ const { sendLonding } = storeToRefs(CopilotStore);
20
+ const pluginList = ref(["模型1", "模型2", "模型3", "模型4", "模型5", "模型6"]);
21
+ const isShowSelection = ref(false);
22
+ const outsideClose = ref(false);
23
+ watch(sendLonding, (val) => {
24
+ if (val) {
25
+ isShowSelection.value = false;
26
+ setCheckedList.value = [];
27
+ }
28
+ });
29
+ const selectPlugin = () => {
30
+ isShowSelection.value = outsideClose.value ? false : true;
31
+ outsideClose.value = false;
32
+ };
33
+ const onClickOutside = () => {
34
+ outsideClose.value = true;
35
+ isShowSelection.value = false;
36
+ };
37
+ const setCheckedList = ref([]);
38
+ const choosePlugin = (plugin) => {
39
+ if (setCheckedList.value.includes(plugin)) {
40
+ const index = setCheckedList.value.findIndex((item) => item === plugin);
41
+ setCheckedList.value.splice(index, 1);
42
+ } else {
43
+ setCheckedList.value.push(plugin);
44
+ }
45
+ };
46
+ return (_ctx, _cache) => {
47
+ const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
48
+ return openBlock(), createElementBlock("div", _hoisted_1, [
49
+ !unref(sendLonding) ? (openBlock(), createElementBlock("button", {
50
+ key: 0,
51
+ class: "select-button",
52
+ onClick: withModifiers(selectPlugin, ["stop"])
53
+ }, [
54
+ createTextVNode(" 选择插件"),
55
+ createVNode(_component_IconifyIconOffline, {
56
+ class: normalizeClass(["icon", [isShowSelection.value && "rotated"]]),
57
+ icon: unref(data)
58
+ }, null, 8, ["icon", "class"])
59
+ ], 8, _hoisted_2)) : createCommentVNode("", true),
60
+ isShowSelection.value ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
61
+ createElementVNode("div", _hoisted_4, [
62
+ (openBlock(true), createElementBlock(Fragment, null, renderList(pluginList.value, (plugin, index) => {
63
+ return openBlock(), createElementBlock("div", {
64
+ key: index,
65
+ class: "plugin-item",
66
+ onClick: ($event) => choosePlugin(plugin)
67
+ }, [
68
+ createElementVNode("span", null, toDisplayString(plugin), 1),
69
+ createElementVNode("div", {
70
+ class: normalizeClass(["select-radio", [setCheckedList.value.includes(plugin) && "active-radio"]])
71
+ }, [
72
+ createVNode(_component_IconifyIconOffline, {
73
+ class: "icon",
74
+ icon: unref(data$1)
75
+ }, null, 8, ["icon"])
76
+ ], 2)
77
+ ], 8, _hoisted_5);
78
+ }), 128))
79
+ ])
80
+ ])), [
81
+ [
82
+ unref(ClickOutside),
83
+ onClickOutside,
84
+ void 0,
85
+ { stop: true }
86
+ ]
87
+ ]) : createCommentVNode("", true)
88
+ ]);
89
+ };
90
+ }
91
+ });
92
+ export {
93
+ _sfc_main as default
94
+ };
@@ -0,0 +1,4 @@
1
+ const SelectPlugin_vue_vue_type_style_index_0_scoped_9e62625f_lang = "";
2
+ export {
3
+ SelectPlugin_vue_vue_type_style_index_0_scoped_9e62625f_lang as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./SpeechControl.vue2.mjs";
2
+ import "./SpeechControl.vue3.mjs";
3
+ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const SpeechControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b5395f9"]]);
5
+ export {
6
+ SpeechControl as default
7
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, unref } from "vue";
2
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs";
3
+ const _hoisted_1 = { class: "top-controls" };
4
+ const _hoisted_2 = { class: "icon-button" };
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "SpeechControl",
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
10
+ const _component_el_tooltip = resolveComponent("el-tooltip");
11
+ return openBlock(), createElementBlock("div", _hoisted_1, [
12
+ createVNode(_component_el_tooltip, {
13
+ content: "使用麦克风",
14
+ placement: "top"
15
+ }, {
16
+ default: withCtx(() => [
17
+ createElementVNode("button", _hoisted_2, [
18
+ createVNode(_component_IconifyIconOffline, {
19
+ class: "icon",
20
+ icon: unref(data),
21
+ style: { "color": "#1e56ea" }
22
+ }, null, 8, ["icon"])
23
+ ])
24
+ ]),
25
+ _: 1
26
+ })
27
+ ]);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ _sfc_main as default
33
+ };
@@ -0,0 +1,4 @@
1
+ const SpeechControl_vue_vue_type_style_index_0_scoped_5b5395f9_lang = "";
2
+ export {
3
+ SpeechControl_vue_vue_type_style_index_0_scoped_5b5395f9_lang as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./Upload.vue2.mjs";
2
+ import "./Upload.vue3.mjs";
3
+ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-68a23803"]]);
5
+ export {
6
+ Upload as default
7
+ };
@@ -0,0 +1,140 @@
1
+ import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, withDirectives, createBlock, withCtx, createElementVNode, createVNode, unref, createTextVNode, createCommentVNode, pushScopeId, popScopeId } from "vue";
2
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs";
3
+ import data$1 from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs";
4
+ import { ClickOutside, genFileId } from "element-plus";
5
+ const _withScopeId = (n) => (pushScopeId("data-v-68a23803"), n = n(), popScopeId(), n);
6
+ const _hoisted_1 = { class: "pic-control" };
7
+ const _hoisted_2 = { class: "visual-search" };
8
+ const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "visual-search-title" }, "添加图像", -1));
9
+ const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "search-input" }, [
10
+ /* @__PURE__ */ createElementVNode("input", {
11
+ type: "text",
12
+ class: "search-input",
13
+ placeholder: "粘贴图像或链接"
14
+ })
15
+ ], -1));
16
+ const _hoisted_5 = { class: "push-pic" };
17
+ const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "icon header-avatar rounded-full" }, [
18
+ /* @__PURE__ */ createElementVNode("svg", {
19
+ viewBox: "0 0 24 24",
20
+ xmlns: "http://www.w3.org/2000/svg"
21
+ }, [
22
+ /* @__PURE__ */ createElementVNode("path", { d: "M17.75 3C19.5449 3 21 4.45508 21 6.25V9.25C21 9.66421 20.6642 10 20.25 10C19.8358 10 19.5 9.66421 19.5 9.25V6.25C19.5 5.2835 18.7165 4.5 17.75 4.5L14.75 4.5C14.3358 4.5 14 4.16421 14 3.75C14 3.33579 14.3358 3 14.75 3H17.75ZM6.25 3C4.45507 3 3 4.45507 3 6.25V9.25C3 9.66421 3.33579 10 3.75 10C4.16421 10 4.5 9.66421 4.5 9.25V6.25C4.5 5.2835 5.2835 4.5 6.25 4.5H9.25C9.66421 4.5 10 4.16421 10 3.75C10 3.33579 9.66421 3 9.25 3H6.25ZM17.75 21C19.5449 21 21 19.5449 21 17.75V14.75C21 14.3358 20.6642 14 20.25 14C19.8358 14 19.5 14.3358 19.5 14.75V17.75C19.5 18.7165 18.7165 19.5 17.75 19.5H14.75C14.3358 19.5 14 19.8358 14 20.25C14 20.6642 14.3358 21 14.75 21H17.75ZM3 17.75C3 19.5449 4.45507 21 6.25 21H9.25C9.66421 21 10 20.6642 10 20.25C10 19.8358 9.66421 19.5 9.25 19.5H6.25C5.2835 19.5 4.5 18.7165 4.5 17.75L4.5 14.75C4.5 14.3358 4.16421 14 3.75 14C3.33579 14 3 14.3358 3 14.75L3 17.75ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15ZM12 13.5C11.1716 13.5 10.5 12.8284 10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5ZM7.5 8.5C8.05229 8.5 8.5 8.05229 8.5 7.5C8.5 6.94772 8.05229 6.5 7.5 6.5C6.94772 6.5 6.5 6.94772 6.5 7.5C6.5 8.05229 6.94772 8.5 7.5 8.5Z" })
23
+ ])
24
+ ], -1));
25
+ const _hoisted_7 = [
26
+ _hoisted_6
27
+ ];
28
+ const _hoisted_8 = { class: "icon-button" };
29
+ const _sfc_main = /* @__PURE__ */ defineComponent({
30
+ __name: "Upload",
31
+ props: {
32
+ type: null
33
+ },
34
+ setup(__props) {
35
+ const props = __props;
36
+ const toolTip = ref("");
37
+ if (props.type === "pic") {
38
+ toolTip.value = "添加图像";
39
+ } else {
40
+ toolTip.value = "添加文件";
41
+ }
42
+ const upload = ref();
43
+ const isShowPictureCard = ref(false);
44
+ const clickAddPicture = () => {
45
+ if (props.type === "pic") {
46
+ isShowPictureCard.value = true;
47
+ }
48
+ };
49
+ const onClickOutside = () => {
50
+ if (props.type === "pic") {
51
+ isShowPictureCard.value = false;
52
+ }
53
+ };
54
+ const handleExceed = (files) => {
55
+ upload.value.clearFiles();
56
+ const file = files[0];
57
+ file.uid = genFileId();
58
+ upload.value.handleStart(file);
59
+ };
60
+ return (_ctx, _cache) => {
61
+ const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
62
+ const _component_el_upload = resolveComponent("el-upload");
63
+ const _component_el_card = resolveComponent("el-card");
64
+ const _component_el_tooltip = resolveComponent("el-tooltip");
65
+ return openBlock(), createElementBlock("div", _hoisted_1, [
66
+ isShowPictureCard.value ? withDirectives((openBlock(), createBlock(_component_el_card, {
67
+ key: 0,
68
+ style: { "width": "250px" },
69
+ class: "visual-search"
70
+ }, {
71
+ default: withCtx(() => [
72
+ createElementVNode("div", _hoisted_2, [
73
+ _hoisted_3,
74
+ _hoisted_4,
75
+ createVNode(_component_el_upload, {
76
+ ref_key: "upload",
77
+ ref: upload,
78
+ style: { "width": "100%" },
79
+ action: "https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",
80
+ limit: 1,
81
+ "show-file-list": false,
82
+ "on-exceed": handleExceed,
83
+ "auto-upload": false
84
+ }, {
85
+ trigger: withCtx(() => [
86
+ createElementVNode("button", _hoisted_5, [
87
+ createVNode(_component_IconifyIconOffline, { icon: unref(data) }, null, 8, ["icon"]),
88
+ createTextVNode("从此设备上传 ")
89
+ ])
90
+ ]),
91
+ _: 1
92
+ }, 512)
93
+ ])
94
+ ]),
95
+ _: 1
96
+ })), [
97
+ [unref(ClickOutside), onClickOutside]
98
+ ]) : createCommentVNode("", true),
99
+ createVNode(_component_el_tooltip, {
100
+ content: toolTip.value,
101
+ placement: "top"
102
+ }, {
103
+ default: withCtx(() => [
104
+ __props.type === "pic" ? (openBlock(), createElementBlock("button", {
105
+ key: 0,
106
+ class: "icon-button",
107
+ ref: "buttonRef",
108
+ onClick: clickAddPicture
109
+ }, _hoisted_7, 512)) : createCommentVNode("", true),
110
+ __props.type === "file" ? (openBlock(), createBlock(_component_el_upload, {
111
+ key: 1,
112
+ ref_key: "upload",
113
+ ref: upload,
114
+ style: { "width": "100%" },
115
+ action: "https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",
116
+ limit: 1,
117
+ "show-file-list": false,
118
+ "on-exceed": handleExceed,
119
+ "auto-upload": false
120
+ }, {
121
+ trigger: withCtx(() => [
122
+ createElementVNode("button", _hoisted_8, [
123
+ createVNode(_component_IconifyIconOffline, {
124
+ class: "icon",
125
+ icon: unref(data$1)
126
+ }, null, 8, ["icon"])
127
+ ])
128
+ ]),
129
+ _: 1
130
+ }, 512)) : createCommentVNode("", true)
131
+ ]),
132
+ _: 1
133
+ }, 8, ["content"])
134
+ ]);
135
+ };
136
+ }
137
+ });
138
+ export {
139
+ _sfc_main as default
140
+ };
@@ -0,0 +1,4 @@
1
+ const Upload_vue_vue_type_style_index_0_scoped_68a23803_lang = "";
2
+ export {
3
+ Upload_vue_vue_type_style_index_0_scoped_68a23803_lang as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./index.vue2.mjs";
2
+ import "./index.vue3.mjs";
3
+ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-226f43fa"]]);
5
+ export {
6
+ SearchInput as default
7
+ };
@@ -0,0 +1,131 @@
1
+ import { defineComponent, ref, onMounted, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, unref, createCommentVNode, createElementVNode, withKeys, toDisplayString, createTextVNode, normalizeStyle, pushScopeId, popScopeId } from "vue";
2
+ import Upload from "./Upload.vue.mjs";
3
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs";
4
+ import SpeechControl from "./SpeechControl.vue.mjs";
5
+ import SelectPlugin from "./SelectPlugin.vue.mjs";
6
+ import { useCopilotStoreHook } from "../../../../store/modules/copilot.mjs";
7
+ import { storeToRefs } from "pinia";
8
+ const _withScopeId = (n) => (pushScopeId("data-v-226f43fa"), n = n(), popScopeId(), n);
9
+ const _hoisted_1 = { class: "input-container" };
10
+ const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "stop-icon" }, null, -1));
11
+ const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "停止响应", -1));
12
+ const _hoisted_4 = [
13
+ _hoisted_2,
14
+ _hoisted_3
15
+ ];
16
+ const _hoisted_5 = { class: "input-row" };
17
+ const _hoisted_6 = ["onKeydown"];
18
+ const _hoisted_7 = { class: "bottom-controls" };
19
+ const _hoisted_8 = { class: "bottom-left-controls" };
20
+ const _hoisted_9 = { class: "bottom-right-controls" };
21
+ const _hoisted_10 = { class: "text-sum" };
22
+ const _hoisted_11 = {
23
+ key: 1,
24
+ class: "disable",
25
+ "click.stop": ""
26
+ };
27
+ const _sfc_main = /* @__PURE__ */ defineComponent({
28
+ __name: "index",
29
+ setup(__props) {
30
+ const CopilotStore = useCopilotStoreHook();
31
+ const { searchText, isInitCopilot, sendLonding, stopDialogue } = storeToRefs(CopilotStore);
32
+ const { setSearchText, sendMsg, setShowNewTheme, cancelRequest } = CopilotStore;
33
+ const coptInput = ref();
34
+ onMounted(() => {
35
+ coptInput.value.focus();
36
+ });
37
+ const textLength = computed(() => {
38
+ const num = searchText.value.length;
39
+ if (num === 0) {
40
+ setShowNewTheme(false);
41
+ }
42
+ return num;
43
+ });
44
+ const myInput = (e) => {
45
+ if (e.target.innerText.length >= 2e3) {
46
+ e.target.innerText = e.target.innerText.substring(0, 2e3);
47
+ const range = document.createRange();
48
+ range.selectNodeContents(e.target);
49
+ range.collapse(false);
50
+ const sel = window.getSelection();
51
+ sel.removeAllRanges();
52
+ sel.addRange(range);
53
+ }
54
+ setSearchText(e.target.innerText);
55
+ };
56
+ const initInput = () => {
57
+ coptInput.value.innerText = "";
58
+ setSearchText("");
59
+ };
60
+ const send = (event) => {
61
+ if (event.key === "Enter") {
62
+ event.preventDefault();
63
+ }
64
+ const sendText = searchText.value;
65
+ if (!sendText)
66
+ return;
67
+ if (sendLonding.value)
68
+ return;
69
+ sendMsg(sendText);
70
+ };
71
+ watch(isInitCopilot, (newVal) => {
72
+ if (newVal) {
73
+ initInput();
74
+ isInitCopilot.value = false;
75
+ }
76
+ });
77
+ const handleClickStopBtn = () => {
78
+ cancelRequest();
79
+ };
80
+ return (_ctx, _cache) => {
81
+ const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
82
+ return openBlock(), createElementBlock("div", _hoisted_1, [
83
+ createVNode(SelectPlugin),
84
+ unref(sendLonding) ? (openBlock(), createElementBlock("button", {
85
+ key: 0,
86
+ class: "stop-responding-button",
87
+ onClick: handleClickStopBtn
88
+ }, _hoisted_4)) : createCommentVNode("", true),
89
+ createElementVNode("div", _hoisted_5, [
90
+ createElementVNode("div", {
91
+ ref_key: "coptInput",
92
+ ref: coptInput,
93
+ class: "text-area",
94
+ contenteditable: true,
95
+ placeholder: "有问题请尽管问我。。。",
96
+ onInput: myInput,
97
+ onKeydown: withKeys(send, ["enter"])
98
+ }, toDisplayString(unref(searchText)), 41, _hoisted_6),
99
+ createVNode(SpeechControl)
100
+ ]),
101
+ createElementVNode("div", _hoisted_7, [
102
+ createElementVNode("div", _hoisted_8, [
103
+ createVNode(Upload, { type: "pic" })
104
+ ]),
105
+ createElementVNode("div", _hoisted_9, [
106
+ createElementVNode("span", _hoisted_10, [
107
+ createElementVNode("span", null, toDisplayString(unref(textLength)), 1),
108
+ createTextVNode("/2000")
109
+ ]),
110
+ createElementVNode("button", {
111
+ class: "send-button",
112
+ onClick: send
113
+ }, [
114
+ createVNode(_component_IconifyIconOffline, {
115
+ class: "icon",
116
+ icon: unref(data),
117
+ style: normalizeStyle({
118
+ color: unref(textLength) && !unref(sendLonding) ? "#1e56ea" : "#dbdbdb"
119
+ })
120
+ }, null, 8, ["icon", "style"])
121
+ ])
122
+ ])
123
+ ]),
124
+ unref(stopDialogue) ? (openBlock(), createElementBlock("div", _hoisted_11)) : createCommentVNode("", true)
125
+ ]);
126
+ };
127
+ }
128
+ });
129
+ export {
130
+ _sfc_main as default
131
+ };
@@ -0,0 +1,4 @@
1
+ const index_vue_vue_type_style_index_0_scoped_226f43fa_lang = "";
2
+ export {
3
+ index_vue_vue_type_style_index_0_scoped_226f43fa_lang as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./index.vue2.mjs";
2
+ import "./index.vue3.mjs";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91759429"]]);
5
+ export {
6
+ CopiFooter as default
7
+ };