yc-agent-ui 1.1.1 → 1.2.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 (147) hide show
  1. package/es/components/dialog-form/index.d.ts +4 -4
  2. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  3. package/es/components/display-item/index.d.ts +15 -15
  4. package/es/components/display-item/src/index.vue.d.ts +13 -13
  5. package/es/components/drawer-form/index.d.ts +4 -4
  6. package/es/components/drawer-form/src/index.vue.d.ts +4 -4
  7. package/es/components/form/index.d.ts +8 -8
  8. package/es/components/form/src/form-content.vue.d.ts +8 -8
  9. package/es/components/form/src/index.vue.d.ts +8 -8
  10. package/es/components/form-item/index.d.ts +6 -6
  11. package/es/components/form-item/src/index.vue.d.ts +6 -6
  12. package/es/components/index.d.ts +1 -0
  13. package/es/components/page/index.d.ts +172 -172
  14. package/es/components/page/src/index.vue.d.ts +60 -60
  15. package/es/components/search/index.d.ts +52 -52
  16. package/es/components/search/src/index.vue.d.ts +20 -20
  17. package/es/components/table/src/table-column.vue.d.ts +34 -34
  18. package/es/components/yc-ai-chat/index.d.ts +14 -0
  19. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +27 -0
  20. package/es/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  21. package/es/components/yc-ai-chat/src/mobile-frame.vue.d.ts +31 -0
  22. package/es/components/yc-ai-chat/src/presets.d.ts +6 -0
  23. package/es/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  24. package/es/components/yc-ai-chat/src/sender.vue.d.ts +44 -0
  25. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +23 -0
  26. package/es/components/yc-ai-chat/src/studio.vue.d.ts +46 -0
  27. package/es/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  28. package/es/components/yc-ai-chat/src/type.d.ts +34 -0
  29. package/es/components/yc-ai-chat/src/welcome.vue.d.ts +19 -0
  30. package/es/components/yc-plus-page/src/index.vue.d.ts +176 -176
  31. package/es/hooks/usePlusFormReset.d.ts +48 -48
  32. package/es/index.css +10 -10
  33. package/es/index.mjs +10 -0
  34. package/es/packages/components/index.mjs +10 -0
  35. package/es/packages/components/yc-ai-chat/index.mjs +14 -0
  36. package/es/packages/components/yc-ai-chat/src/bubble.vue.mjs +5 -0
  37. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +289 -0
  38. package/es/packages/components/yc-ai-chat/src/file-card.vue.mjs +5 -0
  39. package/es/packages/components/yc-ai-chat/src/file-card2.vue.mjs +127 -0
  40. package/es/packages/components/yc-ai-chat/src/mobile-frame.vue.mjs +5 -0
  41. package/es/packages/components/yc-ai-chat/src/mobile-frame2.vue.mjs +245 -0
  42. package/es/packages/components/yc-ai-chat/src/presets.mjs +55 -0
  43. package/es/packages/components/yc-ai-chat/src/select.vue.mjs +5 -0
  44. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +337 -0
  45. package/es/packages/components/yc-ai-chat/src/sender.vue.mjs +5 -0
  46. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +432 -0
  47. package/es/packages/components/yc-ai-chat/src/sidebar.vue.mjs +5 -0
  48. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +251 -0
  49. package/es/packages/components/yc-ai-chat/src/studio.vue.mjs +5 -0
  50. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +421 -0
  51. package/es/packages/components/yc-ai-chat/src/thinking.vue.mjs +5 -0
  52. package/es/packages/components/yc-ai-chat/src/thinking2.vue.mjs +88 -0
  53. package/es/packages/components/yc-ai-chat/src/type.mjs +1 -0
  54. package/es/packages/components/yc-ai-chat/src/welcome.vue.mjs +5 -0
  55. package/es/packages/components/yc-ai-chat/src/welcome2.vue.mjs +113 -0
  56. package/es/packages/components/yc-lens/capability.mjs +10 -2
  57. package/es/version.d.ts +1 -1
  58. package/es/version.mjs +1 -1
  59. package/index.css +12 -2
  60. package/index.js +18963 -17199
  61. package/index.min.css +11 -1
  62. package/index.min.js +50 -27
  63. package/index.min.mjs +50 -27
  64. package/index.mjs +18941 -17188
  65. package/lib/components/dialog-form/index.d.ts +4 -4
  66. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  67. package/lib/components/display-item/index.d.ts +15 -15
  68. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  69. package/lib/components/drawer-form/index.d.ts +4 -4
  70. package/lib/components/drawer-form/src/index.vue.d.ts +4 -4
  71. package/lib/components/form/index.d.ts +8 -8
  72. package/lib/components/form/src/form-content.vue.d.ts +8 -8
  73. package/lib/components/form/src/index.vue.d.ts +8 -8
  74. package/lib/components/form-item/index.d.ts +6 -6
  75. package/lib/components/form-item/src/index.vue.d.ts +6 -6
  76. package/lib/components/index.d.ts +1 -0
  77. package/lib/components/page/index.d.ts +172 -172
  78. package/lib/components/page/src/index.vue.d.ts +60 -60
  79. package/lib/components/search/index.d.ts +52 -52
  80. package/lib/components/search/src/index.vue.d.ts +20 -20
  81. package/lib/components/table/src/table-column.vue.d.ts +34 -34
  82. package/lib/components/yc-ai-chat/index.d.ts +14 -0
  83. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +27 -0
  84. package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +18 -0
  85. package/lib/components/yc-ai-chat/src/mobile-frame.vue.d.ts +31 -0
  86. package/lib/components/yc-ai-chat/src/presets.d.ts +6 -0
  87. package/lib/components/yc-ai-chat/src/select.vue.d.ts +23 -0
  88. package/lib/components/yc-ai-chat/src/sender.vue.d.ts +44 -0
  89. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +23 -0
  90. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +46 -0
  91. package/lib/components/yc-ai-chat/src/thinking.vue.d.ts +9 -0
  92. package/lib/components/yc-ai-chat/src/type.d.ts +34 -0
  93. package/lib/components/yc-ai-chat/src/welcome.vue.d.ts +19 -0
  94. package/lib/components/yc-plus-page/src/index.vue.d.ts +176 -176
  95. package/lib/hooks/usePlusFormReset.d.ts +48 -48
  96. package/lib/index.css +10 -10
  97. package/lib/index.js +23 -0
  98. package/lib/packages/components/index.js +23 -0
  99. package/lib/packages/components/yc-ai-chat/index.js +31 -0
  100. package/lib/packages/components/yc-ai-chat/src/bubble.vue.js +9 -0
  101. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +293 -0
  102. package/lib/packages/components/yc-ai-chat/src/file-card.vue.js +9 -0
  103. package/lib/packages/components/yc-ai-chat/src/file-card2.vue.js +131 -0
  104. package/lib/packages/components/yc-ai-chat/src/mobile-frame.vue.js +9 -0
  105. package/lib/packages/components/yc-ai-chat/src/mobile-frame2.vue.js +249 -0
  106. package/lib/packages/components/yc-ai-chat/src/presets.js +60 -0
  107. package/lib/packages/components/yc-ai-chat/src/select.vue.js +9 -0
  108. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +341 -0
  109. package/lib/packages/components/yc-ai-chat/src/sender.vue.js +9 -0
  110. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +436 -0
  111. package/lib/packages/components/yc-ai-chat/src/sidebar.vue.js +9 -0
  112. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +255 -0
  113. package/lib/packages/components/yc-ai-chat/src/studio.vue.js +9 -0
  114. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +425 -0
  115. package/lib/packages/components/yc-ai-chat/src/thinking.vue.js +9 -0
  116. package/lib/packages/components/yc-ai-chat/src/thinking2.vue.js +92 -0
  117. package/lib/packages/components/yc-ai-chat/src/type.js +2 -0
  118. package/lib/packages/components/yc-ai-chat/src/welcome.vue.js +9 -0
  119. package/lib/packages/components/yc-ai-chat/src/welcome2.vue.js +117 -0
  120. package/lib/packages/components/yc-lens/capability.js +10 -2
  121. package/lib/version.d.ts +1 -1
  122. package/lib/version.js +1 -1
  123. package/locale/en.js +1 -1
  124. package/locale/en.min.js +1 -1
  125. package/locale/en.min.mjs +1 -1
  126. package/locale/en.mjs +1 -1
  127. package/locale/ja.js +1 -1
  128. package/locale/ja.min.js +1 -1
  129. package/locale/ja.min.mjs +1 -1
  130. package/locale/ja.mjs +1 -1
  131. package/locale/ko.js +1 -1
  132. package/locale/ko.min.js +1 -1
  133. package/locale/ko.min.mjs +1 -1
  134. package/locale/ko.mjs +1 -1
  135. package/locale/zh-cn.js +1 -1
  136. package/locale/zh-cn.min.js +1 -1
  137. package/locale/zh-cn.min.mjs +1 -1
  138. package/locale/zh-cn.mjs +1 -1
  139. package/locale/zh-tw.js +1 -1
  140. package/locale/zh-tw.min.js +1 -1
  141. package/locale/zh-tw.min.mjs +1 -1
  142. package/locale/zh-tw.mjs +1 -1
  143. package/package.json +2 -1
  144. package/theme-chalk/index.css +12 -2
  145. package/theme-chalk/plus-yc-ai-chat.css +1 -0
  146. package/theme-chalk/src/index.scss +1 -0
  147. package/theme-chalk/src/yc-ai-chat.scss +1691 -0
@@ -0,0 +1,436 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+
7
+ const _hoisted_1 = {
8
+ key: 0,
9
+ class: "yc-chat-sender__attachments composer-attachments"
10
+ };
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: "yc-chat-sender__mobile-chips"
14
+ };
15
+ const _hoisted_3 = ["aria-checked", "disabled"];
16
+ const _hoisted_4 = { class: "yc-chat-sender__mobile-row" };
17
+ const _hoisted_5 = ["disabled"];
18
+ const _hoisted_6 = ["value", "disabled", "placeholder"];
19
+ const _hoisted_7 = ["disabled"];
20
+ const _hoisted_8 = ["value", "disabled", "placeholder"];
21
+ const _hoisted_9 = { class: "yc-chat-sender__toolbar composer-toolbar" };
22
+ const _hoisted_10 = { class: "yc-chat-sender__controls composer-controls" };
23
+ const _hoisted_11 = ["disabled"];
24
+ const _hoisted_12 = ["aria-checked", "disabled"];
25
+ const _hoisted_13 = { class: "yc-chat-sender__submit" };
26
+ const _hoisted_14 = ["disabled"];
27
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
+ ...{
29
+ name: "YcChatSender"
30
+ },
31
+ __name: "sender",
32
+ props: {
33
+ modelValue: { default: "" },
34
+ placeholder: { default: "\u7ED9 Agent \u53D1\u9001\u6D88\u606F\u2026" },
35
+ disabled: { type: Boolean, default: false },
36
+ sending: { type: Boolean, default: false },
37
+ uploading: { type: Boolean, default: false },
38
+ canSend: { type: Boolean, default: false },
39
+ thinking: { type: Boolean, default: false },
40
+ showThinking: { type: Boolean, default: true },
41
+ thinkingDisabled: { type: Boolean, default: false },
42
+ viewport: { default: "web" },
43
+ enterToSend: { type: Function, default: void 0 }
44
+ },
45
+ emits: ["update:modelValue", "update:thinking", "send", "stop", "upload-files"],
46
+ setup(__props, { emit: __emit }) {
47
+ const props = __props;
48
+ const emit = __emit;
49
+ const fileInputRef = vue.ref(null);
50
+ const textareaRef = vue.ref(null);
51
+ const dragOver = vue.ref(false);
52
+ function adjustHeight() {
53
+ const el = textareaRef.value;
54
+ if (!el) return;
55
+ el.style.height = "auto";
56
+ const maxHeight = props.viewport === "mobile" ? 96 : 168;
57
+ el.style.height = `${Math.min(el.scrollHeight, maxHeight)}px`;
58
+ }
59
+ vue.watch(
60
+ () => props.modelValue,
61
+ () => {
62
+ void vue.nextTick(adjustHeight);
63
+ }
64
+ );
65
+ function handleInput(event) {
66
+ const target = event.target;
67
+ emit("update:modelValue", target.value);
68
+ adjustHeight();
69
+ }
70
+ function toggleThinking() {
71
+ if (props.disabled || props.thinkingDisabled) return;
72
+ emit("update:thinking", !props.thinking);
73
+ }
74
+ function triggerFileSelect() {
75
+ var _a;
76
+ if (props.disabled || props.sending || props.uploading) return;
77
+ (_a = fileInputRef.value) == null ? void 0 : _a.click();
78
+ }
79
+ function handleFileChange(event) {
80
+ const input = event.target;
81
+ const files = (input == null ? void 0 : input.files) ? Array.from(input.files) : [];
82
+ if (files.length > 0) {
83
+ emit("upload-files", files);
84
+ }
85
+ if (input) input.value = "";
86
+ }
87
+ function handlePaste(event) {
88
+ var _a, _b;
89
+ if (props.disabled || props.sending) return;
90
+ const items = Array.from((_b = (_a = event.clipboardData) == null ? void 0 : _a.items) != null ? _b : []);
91
+ const files = items.filter((item) => item.kind === "file").map((item) => item.getAsFile()).filter((file) => Boolean(file));
92
+ if (!files.length) return;
93
+ event.preventDefault();
94
+ emit("upload-files", files);
95
+ }
96
+ function handleDrop(event) {
97
+ var _a, _b;
98
+ dragOver.value = false;
99
+ if (props.disabled || props.sending || props.uploading) return;
100
+ const files = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);
101
+ if (files.length > 0) {
102
+ emit("upload-files", files);
103
+ }
104
+ }
105
+ function shouldSend(event) {
106
+ if (props.enterToSend) {
107
+ return props.enterToSend({
108
+ key: event.key,
109
+ shiftKey: event.shiftKey,
110
+ isComposing: event.isComposing,
111
+ keyCode: event.keyCode
112
+ });
113
+ }
114
+ if (event.isComposing || event.keyCode === 229) return false;
115
+ return event.key === "Enter" && !event.shiftKey;
116
+ }
117
+ function handleKeydown(event) {
118
+ if (!shouldSend(event)) return;
119
+ event.preventDefault();
120
+ if (props.canSend) {
121
+ emit("send");
122
+ }
123
+ }
124
+ return (_ctx, _cache) => {
125
+ return vue.openBlock(), vue.createElementBlock(
126
+ "div",
127
+ {
128
+ class: vue.normalizeClass(["yc-chat-sender composer-shell", [`is-${__props.viewport}`, { "is-dragover": dragOver.value, "is-disabled": __props.disabled }]]),
129
+ onDragover: _cache[4] || (_cache[4] = vue.withModifiers(($event) => dragOver.value = true, ["prevent"])),
130
+ onDragleave: _cache[5] || (_cache[5] = vue.withModifiers(($event) => dragOver.value = false, ["prevent"])),
131
+ onDrop: vue.withModifiers(handleDrop, ["prevent"])
132
+ },
133
+ [
134
+ vue.createElementVNode(
135
+ "input",
136
+ {
137
+ ref_key: "fileInputRef",
138
+ ref: fileInputRef,
139
+ type: "file",
140
+ multiple: "",
141
+ class: "composer-file-input",
142
+ onChange: handleFileChange
143
+ },
144
+ null,
145
+ 544
146
+ /* NEED_HYDRATION, NEED_PATCH */
147
+ ),
148
+ _ctx.$slots.attachments ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
149
+ vue.renderSlot(_ctx.$slots, "attachments")
150
+ ])) : vue.createCommentVNode("v-if", true),
151
+ __props.viewport === "mobile" ? (vue.openBlock(), vue.createElementBlock(
152
+ vue.Fragment,
153
+ { key: 1 },
154
+ [
155
+ __props.showThinking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
156
+ vue.createElementVNode("button", {
157
+ type: "button",
158
+ role: "switch",
159
+ "aria-checked": __props.thinking,
160
+ "aria-label": "\u601D\u8003\u6A21\u5F0F",
161
+ class: vue.normalizeClass(["yc-chat-sender__chip", { "is-active": __props.thinking }]),
162
+ disabled: __props.disabled || __props.thinkingDisabled,
163
+ onClick: toggleThinking
164
+ }, [..._cache[6] || (_cache[6] = [
165
+ vue.createElementVNode(
166
+ "svg",
167
+ {
168
+ viewBox: "0 0 16 16",
169
+ fill: "none",
170
+ "aria-hidden": "true"
171
+ },
172
+ [
173
+ vue.createElementVNode("path", {
174
+ d: "M8 2L9.35 6.15L13.5 7.5L9.35 8.85L8 13L6.65 8.85L2.5 7.5L6.65 6.15L8 2Z",
175
+ stroke: "currentColor",
176
+ "stroke-width": "1.35",
177
+ "stroke-linejoin": "round"
178
+ })
179
+ ],
180
+ -1
181
+ /* CACHED */
182
+ ),
183
+ vue.createElementVNode(
184
+ "span",
185
+ null,
186
+ "\u6DF1\u5EA6\u601D\u8003",
187
+ -1
188
+ /* CACHED */
189
+ )
190
+ ])], 10, _hoisted_3)
191
+ ])) : vue.createCommentVNode("v-if", true),
192
+ vue.createElementVNode("div", _hoisted_4, [
193
+ vue.createElementVNode("button", {
194
+ type: "button",
195
+ class: "yc-chat-sender__mobile-attach",
196
+ "aria-label": "\u4E0A\u4F20\u9644\u4EF6",
197
+ title: "\u4E0A\u4F20\u9644\u4EF6",
198
+ disabled: __props.disabled || __props.sending || __props.uploading,
199
+ onClick: triggerFileSelect
200
+ }, [..._cache[7] || (_cache[7] = [
201
+ vue.createElementVNode(
202
+ "svg",
203
+ {
204
+ viewBox: "0 0 16 16",
205
+ fill: "none",
206
+ "aria-hidden": "true"
207
+ },
208
+ [
209
+ vue.createElementVNode("path", {
210
+ d: "M8 3.25V12.75M3.25 8H12.75",
211
+ stroke: "currentColor",
212
+ "stroke-width": "1.6",
213
+ "stroke-linecap": "round"
214
+ })
215
+ ],
216
+ -1
217
+ /* CACHED */
218
+ )
219
+ ])], 8, _hoisted_5),
220
+ vue.createElementVNode("textarea", {
221
+ ref_key: "textareaRef",
222
+ ref: textareaRef,
223
+ value: __props.modelValue,
224
+ rows: "1",
225
+ disabled: __props.disabled,
226
+ placeholder: __props.placeholder,
227
+ class: "yc-chat-sender__textarea",
228
+ onInput: handleInput,
229
+ onKeydown: handleKeydown,
230
+ onPaste: handlePaste
231
+ }, null, 40, _hoisted_6),
232
+ __props.sending ? (vue.openBlock(), vue.createElementBlock("button", {
233
+ key: 0,
234
+ type: "button",
235
+ class: "yc-chat-sender__submit-btn is-stop",
236
+ "aria-label": "\u505C\u6B62\u751F\u6210",
237
+ title: "\u505C\u6B62\u751F\u6210",
238
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("stop"))
239
+ }, [..._cache[8] || (_cache[8] = [
240
+ vue.createElementVNode(
241
+ "span",
242
+ {
243
+ class: "composer-stop-square",
244
+ "aria-hidden": "true"
245
+ },
246
+ null,
247
+ -1
248
+ /* CACHED */
249
+ )
250
+ ])])) : (vue.openBlock(), vue.createElementBlock("button", {
251
+ key: 1,
252
+ type: "button",
253
+ class: "yc-chat-sender__submit-btn is-send",
254
+ "aria-label": "\u53D1\u9001\u6D88\u606F",
255
+ title: "\u53D1\u9001\u6D88\u606F",
256
+ disabled: !__props.canSend,
257
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("send"))
258
+ }, [..._cache[9] || (_cache[9] = [
259
+ vue.createElementVNode(
260
+ "svg",
261
+ {
262
+ viewBox: "0 0 16 16",
263
+ fill: "none",
264
+ "aria-hidden": "true"
265
+ },
266
+ [
267
+ vue.createElementVNode("path", {
268
+ d: "M8 12.75V3.5M8 3.5L4.25 7.25M8 3.5L11.75 7.25",
269
+ stroke: "currentColor",
270
+ "stroke-width": "1.8",
271
+ "stroke-linecap": "round",
272
+ "stroke-linejoin": "round"
273
+ })
274
+ ],
275
+ -1
276
+ /* CACHED */
277
+ )
278
+ ])], 8, _hoisted_7))
279
+ ])
280
+ ],
281
+ 64
282
+ /* STABLE_FRAGMENT */
283
+ )) : (vue.openBlock(), vue.createElementBlock(
284
+ vue.Fragment,
285
+ { key: 2 },
286
+ [
287
+ vue.createElementVNode("textarea", {
288
+ ref_key: "textareaRef",
289
+ ref: textareaRef,
290
+ value: __props.modelValue,
291
+ rows: "2",
292
+ disabled: __props.disabled,
293
+ placeholder: __props.placeholder,
294
+ class: "yc-chat-sender__textarea",
295
+ onInput: handleInput,
296
+ onKeydown: handleKeydown,
297
+ onPaste: handlePaste
298
+ }, null, 40, _hoisted_8),
299
+ vue.createElementVNode("div", _hoisted_9, [
300
+ vue.createElementVNode("div", _hoisted_10, [
301
+ vue.createElementVNode("button", {
302
+ type: "button",
303
+ class: "yc-chat-sender__chip",
304
+ "aria-label": "\u4E0A\u4F20\u9644\u4EF6",
305
+ title: "\u4E0A\u4F20\u6587\u4EF6\u6216\u76F4\u63A5\u7C98\u8D34\u56FE\u7247",
306
+ disabled: __props.disabled || __props.sending || __props.uploading,
307
+ onClick: triggerFileSelect
308
+ }, [
309
+ _cache[10] || (_cache[10] = vue.createElementVNode(
310
+ "svg",
311
+ {
312
+ viewBox: "0 0 16 16",
313
+ fill: "none",
314
+ "aria-hidden": "true"
315
+ },
316
+ [
317
+ vue.createElementVNode("path", {
318
+ d: "M13.1 7.35L7.65 12.8A3.25 3.25 0 0 1 3.05 8.2L8.85 2.4A2.15 2.15 0 1 1 11.9 5.45L6.35 11A1.05 1.05 0 0 1 4.85 9.5L9.9 4.45",
319
+ stroke: "currentColor",
320
+ "stroke-width": "1.35",
321
+ "stroke-linecap": "round",
322
+ "stroke-linejoin": "round"
323
+ })
324
+ ],
325
+ -1
326
+ /* CACHED */
327
+ )),
328
+ vue.createElementVNode(
329
+ "span",
330
+ null,
331
+ vue.toDisplayString(__props.uploading ? "\u4E0A\u4F20\u4E2D\u2026" : "\u9644\u4EF6"),
332
+ 1
333
+ /* TEXT */
334
+ )
335
+ ], 8, _hoisted_11),
336
+ __props.showThinking ? (vue.openBlock(), vue.createElementBlock("button", {
337
+ key: 0,
338
+ type: "button",
339
+ role: "switch",
340
+ "aria-checked": __props.thinking,
341
+ "aria-label": "\u601D\u8003\u6A21\u5F0F",
342
+ class: vue.normalizeClass(["yc-chat-sender__chip", { "is-active": __props.thinking }]),
343
+ disabled: __props.disabled || __props.thinkingDisabled,
344
+ onClick: toggleThinking
345
+ }, [..._cache[11] || (_cache[11] = [
346
+ vue.createElementVNode(
347
+ "svg",
348
+ {
349
+ viewBox: "0 0 16 16",
350
+ fill: "none",
351
+ "aria-hidden": "true"
352
+ },
353
+ [
354
+ vue.createElementVNode("path", {
355
+ d: "M8 2L9.35 6.15L13.5 7.5L9.35 8.85L8 13L6.65 8.85L2.5 7.5L6.65 6.15L8 2Z",
356
+ stroke: "currentColor",
357
+ "stroke-width": "1.35",
358
+ "stroke-linejoin": "round"
359
+ })
360
+ ],
361
+ -1
362
+ /* CACHED */
363
+ ),
364
+ vue.createElementVNode(
365
+ "span",
366
+ null,
367
+ "\u6DF1\u5EA6\u601D\u8003",
368
+ -1
369
+ /* CACHED */
370
+ )
371
+ ])], 10, _hoisted_12)) : vue.createCommentVNode("v-if", true),
372
+ vue.renderSlot(_ctx.$slots, "controls")
373
+ ]),
374
+ vue.createElementVNode("div", _hoisted_13, [
375
+ __props.sending ? (vue.openBlock(), vue.createElementBlock("button", {
376
+ key: 0,
377
+ type: "button",
378
+ class: "yc-chat-sender__submit-btn is-stop",
379
+ "aria-label": "\u505C\u6B62\u751F\u6210",
380
+ title: "\u505C\u6B62\u751F\u6210",
381
+ onClick: _cache[2] || (_cache[2] = ($event) => emit("stop"))
382
+ }, [..._cache[12] || (_cache[12] = [
383
+ vue.createElementVNode(
384
+ "span",
385
+ {
386
+ class: "composer-stop-square",
387
+ "aria-hidden": "true"
388
+ },
389
+ null,
390
+ -1
391
+ /* CACHED */
392
+ )
393
+ ])])) : (vue.openBlock(), vue.createElementBlock("button", {
394
+ key: 1,
395
+ type: "button",
396
+ class: "yc-chat-sender__submit-btn is-send",
397
+ "aria-label": "\u53D1\u9001\u6D88\u606F",
398
+ title: "\u53D1\u9001\u6D88\u606F (Enter)",
399
+ disabled: !__props.canSend,
400
+ onClick: _cache[3] || (_cache[3] = ($event) => emit("send"))
401
+ }, [..._cache[13] || (_cache[13] = [
402
+ vue.createElementVNode(
403
+ "svg",
404
+ {
405
+ viewBox: "0 0 16 16",
406
+ fill: "none",
407
+ "aria-hidden": "true"
408
+ },
409
+ [
410
+ vue.createElementVNode("path", {
411
+ d: "M8 12.75V3.5M8 3.5L4.25 7.25M8 3.5L11.75 7.25",
412
+ stroke: "currentColor",
413
+ "stroke-width": "1.8",
414
+ "stroke-linecap": "round",
415
+ "stroke-linejoin": "round"
416
+ })
417
+ ],
418
+ -1
419
+ /* CACHED */
420
+ )
421
+ ])], 8, _hoisted_14))
422
+ ])
423
+ ])
424
+ ],
425
+ 64
426
+ /* STABLE_FRAGMENT */
427
+ ))
428
+ ],
429
+ 34
430
+ /* CLASS, NEED_HYDRATION */
431
+ );
432
+ };
433
+ }
434
+ });
435
+
436
+ exports.default = _sfc_main;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var sidebar_vue_vue_type_script_setup_true_lang = require('./sidebar2.vue.js');
6
+
7
+
8
+
9
+ exports.default = sidebar_vue_vue_type_script_setup_true_lang.default;