yc-agent-ui 1.1.2 → 1.2.1

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