@blueking/ai-blueking 0.3.4 → 0.3.6

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.
@@ -1,8 +1,8 @@
1
1
  var ze = Object.defineProperty;
2
2
  var Ce = (o, n, t) => n in o ? ze(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
3
- var Q = (o, n, t) => (Ce(o, typeof n != "symbol" ? n + "" : n, t), t);
3
+ var j = (o, n, t) => (Ce(o, typeof n != "symbol" ? n + "" : n, t), t);
4
4
  import { Popover as Be, Input as he, Exception as He, clickoutside as Te, bkTooltips as ue, Tag as Pe, Alert as Re, Button as Ve, Message as me, Select as ge, provideGlobalConfig as De } from "bkui-vue";
5
- import { ref as x, onMounted as ne, onBeforeUnmount as le, defineComponent as Y, withDirectives as A, openBlock as h, createElementBlock as g, createElementVNode as d, toDisplayString as P, unref as r, createCommentVNode as z, vShow as fe, createTextVNode as ee, pushScopeId as ae, popScopeId as ie, computed as E, normalizeStyle as j, normalizeClass as $, createVNode as T, Fragment as q, watch as be, createBlock as X, withCtx as W, renderList as ce, nextTick as ye, withModifiers as D, onBeforeMount as xe, renderSlot as Ye } from "vue";
5
+ import { ref as x, onMounted as ne, onBeforeUnmount as le, defineComponent as Y, withDirectives as E, openBlock as m, createElementBlock as g, createElementVNode as d, toDisplayString as P, unref as c, createCommentVNode as M, vShow as fe, createTextVNode as ee, pushScopeId as ae, popScopeId as ie, computed as X, normalizeStyle as W, normalizeClass as $, createVNode as T, Fragment as K, watch as be, createBlock as q, withCtx as G, renderList as re, nextTick as ye, withModifiers as D, onBeforeMount as xe, renderSlot as Ye } from "vue";
6
6
  import se from "dayjs";
7
7
  import ve from "highlight.js";
8
8
  import Ie from "markdown-it";
@@ -33,18 +33,18 @@ function pe() {
33
33
  let t;
34
34
  const s = () => {
35
35
  clearTimeout(t), t = setTimeout(() => {
36
- const c = window.getSelection();
37
- if (c && c.toString().trim().length > 0) {
36
+ const r = window.getSelection();
37
+ if (r && r.toString().trim().length > 0) {
38
38
  de.value = !1;
39
- const k = c.getRangeAt(0).getBoundingClientRect(), R = window.innerWidth;
40
- _.value = c.toString().trim();
41
- const w = 80, C = 34, L = 10;
42
- let B = k.left + window.scrollX + k.width / 2 - w / 2;
43
- B = Math.max(L, Math.min(B, R - w - L));
44
- let p = k.top + window.scrollY - C - L;
45
- k.top > C + L || (p = k.bottom + window.scrollY + L), n.value = {
46
- top: `${p}px`,
47
- left: `${B}px`
39
+ const k = r.getRangeAt(0).getBoundingClientRect(), C = window.innerWidth;
40
+ _.value = r.toString().trim();
41
+ const w = 80, B = 34, z = 10;
42
+ let H = k.left + window.scrollX + k.width / 2 - w / 2;
43
+ H = Math.max(z, Math.min(H, C - w - z));
44
+ let R = k.top + window.scrollY - B - z;
45
+ k.top > B + z || (R = k.bottom + window.scrollY + z), n.value = {
46
+ top: `${R}px`,
47
+ left: `${H}px`
48
48
  }, o.value = !0;
49
49
  } else
50
50
  i();
@@ -52,10 +52,10 @@ function pe() {
52
52
  }, i = () => {
53
53
  o.value = !1, de.value || (_.value = "");
54
54
  }, l = () => {
55
- const c = window.getSelection();
56
- c && c.removeAllRanges(), _.value = "";
57
- }, e = (c) => {
58
- _.value = c;
55
+ const r = window.getSelection();
56
+ r && r.removeAllRanges(), _.value = "";
57
+ }, e = (r) => {
58
+ _.value = r;
59
59
  };
60
60
  return ne(() => {
61
61
  document.addEventListener("selectionchange", s);
@@ -138,7 +138,7 @@ const Xe = [
138
138
  },
139
139
  emits: ["close"],
140
140
  setup(o) {
141
- return (n, t) => A((h(), g(
141
+ return (n, t) => E((m(), g(
142
142
  "section",
143
143
  We,
144
144
  [
@@ -152,15 +152,15 @@ const Xe = [
152
152
  d(
153
153
  "span",
154
154
  Je,
155
- P(r(b)("您选择的文本内容")),
155
+ P(c(b)("您选择的文本内容")),
156
156
  1
157
157
  /* TEXT */
158
158
  ),
159
- n.showCloseIcon ? (h(), g("i", {
159
+ n.showCloseIcon ? (m(), g("i", {
160
160
  key: 0,
161
161
  class: "ai-blueking-icon ai-blueking-close-circle-fill",
162
162
  onClick: t[0] || (t[0] = (s) => n.$emit("close"))
163
- })) : z("v-if", !0)
163
+ })) : M("v-if", !0)
164
164
  ],
165
165
  512
166
166
  /* NEED_PATCH */
@@ -183,19 +183,19 @@ const Xe = [
183
183
  __name: "render-back",
184
184
  setup(o) {
185
185
  const { isShow: n, scrollToBottom: t } = ke();
186
- return (s, i) => r(n) ? (h(), g("span", {
186
+ return (s, i) => c(n) ? (m(), g("span", {
187
187
  key: 0,
188
188
  class: "ai-blueking-render-back",
189
189
  onClick: i[0] || (i[0] = //@ts-ignore
190
- (...l) => r(t) && r(t)(...l))
190
+ (...l) => c(t) && c(t)(...l))
191
191
  }, [
192
192
  Ne,
193
193
  ee(
194
- " " + P(r(b)("返回最新")),
194
+ " " + P(c(b)("返回最新")),
195
195
  1
196
196
  /* TEXT */
197
197
  )
198
- ])) : z("v-if", !0);
198
+ ])) : M("v-if", !0);
199
199
  }
200
200
  }), _e = /* @__PURE__ */ I(Fe, [["__scopeId", "data-v-a8d839da"]]), $e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAH3tJREFUeF69nAd4VFXax39nStqkNxJC6KGDghQFXIosogGkCKKuFYVFFBVQXEEN69pFF5VFFGRFUelSFUQjCFIUkN5LIIH0hGSSSabd7zln5sIkhBRwv8MzzwBz7yn/8/b3PUfwP2iaphkAgxDC6du9pmmxQFugKdACaAU0BkKBEO9HvlLs/RQBZ4AjwDHgFHBQCJFdqV8T4BZCuP/s5Yg/s0NN02R/Ehw5WU32rWmaBGMI0ANoDTQHzNc4rgM4ARwGtgLfCiEkaHKcK8a+xjEqvPanAOSlGPQd9FLKX4FRgPz29xlVAucC5Nj6R/9Zn48C19vk3/WP0fuO/ls58APwjfzWKavyfK4HqOsGyHcymqZFAGOA0UCSd2FyDAWK91kvKAJR99F1o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lAHkaQRg0JZQPpZ5i69e/KftJsnO9pjH0vL8rTTs3cDnKPDVYyhsxsTPzZNaLU/vG/fj/ernJ5QWnGFJSICUlxT3viBbiNjNaiKqvx6lw4YksMTEKTNKz0MugBTjt4HZ6QnxGI5Rb7Zw7kkl8UiyW8ABl9+iay1bspDCrSLovWni9YM0cYNQc5erUknwkU9N4y+Bg3uhWolhuppxzSkrdb35RFFx7Yqv6yRTPfWWkCOFemKZF2NyMQav6gqVLLKhJpvEpElfRGE+QTAplSTnfz9rEps+30Sm5PcNfulNRlTy8IenLYBRuowmj9F1dDmlJqOOkxxHMCzTwyf2NRIGa1/RrB0Zf7XUDpMDxAUn+e/YJLdZkoL/wXNHVr05XdGlgNKOt+2ATqfO2SGGsjZg+UGKhaS6lqmXBhV7bUq7BRiHEN043G8Y191z+Vnk+10MEfwpAPqaAWAKGET6XvH2WpjXVnAzRDPRAq8Ulb7IAwQS2i+WkHUgnoVUcIdEW3J779DyXvAkOCzdbhYlvH210+ZK3ymNfDzB/KgVVnojawZ8xpPSpeE2gpCw/E21x01TTaIGglabRRIhLVwTKq75kKzYYKTYHUORwcMZdzhEhOIaBU3YnB3VK0cdNSdVM9MYt2fzPAMW3j/8Dx+VMHl8zFNkAAAAASUVORK5CYII=";
201
201
  var Le = /* @__PURE__ */ ((o) => (o.Assistant = "assistant", o.Cite = "cite", o.System = "system", o.User = "user", o))(Le || {}), oe = /* @__PURE__ */ ((o) => (o.Error = "error", o.Loading = "loading", o.Success = "success", o))(oe || {});
@@ -205,28 +205,28 @@ const et = /* @__PURE__ */ Y({
205
205
  size: { default: 36 }
206
206
  },
207
207
  setup(o) {
208
- const n = o, t = E(() => ({
208
+ const n = o, t = X(() => ({
209
209
  minWidth: `${n.size}px`,
210
210
  maxWidth: `${n.size}px`,
211
211
  minHeight: `${n.size}px`,
212
212
  maxHeight: `${n.size}px`,
213
213
  padding: `${n.size * 0.208}px ${n.size * 0.222}px ${n.size * 0.194}px ${n.size * 0.18}px`
214
214
  // 保持原比例
215
- })), s = E(() => ({
215
+ })), s = X(() => ({
216
216
  fontSize: `${n.size * 0.611}px`
217
217
  // 保持原比例 22/36
218
218
  }));
219
- return (i, l) => (h(), g(
219
+ return (i, l) => (m(), g(
220
220
  "span",
221
221
  {
222
- style: j(t.value),
222
+ style: W(t.value),
223
223
  class: "message-photo ai"
224
224
  },
225
225
  [
226
226
  d(
227
227
  "i",
228
228
  {
229
- style: j(s.value),
229
+ style: W(s.value),
230
230
  class: "ai-blueking-icon ai-blueking-ai"
231
231
  },
232
232
  null,
@@ -244,7 +244,7 @@ const et = /* @__PURE__ */ Y({
244
244
  }, st = { class: "message-content-container" }, nt = { class: "message-content user" }, lt = {
245
245
  key: 0,
246
246
  class: "time-message user"
247
- }, at = ["innerHTML"], it = { class: "message-photo user" }, ct = ["src"], rt = { class: "message-content ai" }, dt = {
247
+ }, at = ["innerHTML"], it = { class: "message-photo user" }, rt = ["src"], ct = { class: "message-content ai" }, dt = {
248
248
  key: 0,
249
249
  class: "time-message ai"
250
250
  }, ut = {
@@ -273,10 +273,10 @@ const et = /* @__PURE__ */ Y({
273
273
  setup(o) {
274
274
  const n = new Ie({
275
275
  html: !0,
276
- highlight: function(e, c) {
277
- if (c && ve.getLanguage(c))
276
+ highlight: function(e, r) {
277
+ if (r && ve.getLanguage(r))
278
278
  try {
279
- return ve.highlight(e, { language: c }).value;
279
+ return ve.highlight(e, { language: r }).value;
280
280
  } catch {
281
281
  }
282
282
  return "";
@@ -284,67 +284,67 @@ const et = /* @__PURE__ */ Y({
284
284
  }).use(Ae, {
285
285
  iconClass: "ai-blueking-icon ai-blueking-copy",
286
286
  buttonClass: "ai-blueking-copy-button"
287
- }), t = o, s = E(() => {
288
- var c;
287
+ }), t = o, s = X(() => {
288
+ var r;
289
289
  const e = {
290
290
  error: "ai-blueking-icon ai-blueking-warning-circle-fill",
291
291
  loading: "",
292
292
  success: ""
293
293
  };
294
- return (c = t.message) != null && c.status ? e[t.message.status] : "";
295
- }), i = E(() => t.message.content ? n.render(t.message.content) : ""), l = E(() => {
296
- const e = se(t.message.time), c = se();
297
- return t.message.time ? c.isSame(e, "year") ? e.format("MM-DD HH:mm:ss") : e.format("YYYY-MM-DD HH:mm:ss") : "";
294
+ return (r = t.message) != null && r.status ? e[t.message.status] : "";
295
+ }), i = X(() => t.message.content ? n.render(t.message.content) : ""), l = X(() => {
296
+ const e = se(t.message.time), r = se();
297
+ return t.message.time ? r.isSame(e, "year") ? e.format("MM-DD HH:mm:ss") : e.format("YYYY-MM-DD HH:mm:ss") : "";
298
298
  });
299
- return (e, c) => (h(), g(
299
+ return (e, r) => (m(), g(
300
300
  "li",
301
301
  {
302
302
  class: $([e.message.role, "message-main"])
303
303
  },
304
304
  [
305
- e.message.cite ? (h(), g("div", ot, [
305
+ e.message.cite ? (m(), g("div", ot, [
306
306
  T(we, {
307
307
  text: e.message.cite
308
308
  }, null, 8, ["text"])
309
- ])) : z("v-if", !0),
309
+ ])) : M("v-if", !0),
310
310
  d("div", st, [
311
- e.message.role === r(Le).User ? (h(), g(
312
- q,
311
+ e.message.role === c(Le).User ? (m(), g(
312
+ K,
313
313
  { key: 0 },
314
314
  [
315
315
  d("p", nt, [
316
- l.value ? (h(), g(
316
+ l.value ? (m(), g(
317
317
  "span",
318
318
  lt,
319
319
  P(l.value),
320
320
  1
321
321
  /* TEXT */
322
- )) : z("v-if", !0),
322
+ )) : M("v-if", !0),
323
323
  d("span", {
324
324
  class: "markdown-message",
325
325
  innerHTML: i.value
326
326
  }, null, 8, at)
327
327
  ]),
328
328
  d("span", it, [
329
- d("img", { src: e.userPhoto }, null, 8, ct)
329
+ d("img", { src: e.userPhoto }, null, 8, rt)
330
330
  ])
331
331
  ],
332
332
  64
333
333
  /* STABLE_FRAGMENT */
334
- )) : (h(), g(
335
- q,
334
+ )) : (m(), g(
335
+ K,
336
336
  { key: 1 },
337
337
  [
338
338
  T(tt),
339
- d("p", rt, [
340
- l.value ? (h(), g(
339
+ d("p", ct, [
340
+ l.value ? (m(), g(
341
341
  "span",
342
342
  dt,
343
343
  P(l.value),
344
344
  1
345
345
  /* TEXT */
346
- )) : z("v-if", !0),
347
- s.value ? (h(), g(
346
+ )) : M("v-if", !0),
347
+ s.value ? (m(), g(
348
348
  "i",
349
349
  {
350
350
  key: 1,
@@ -353,20 +353,20 @@ const et = /* @__PURE__ */ Y({
353
353
  null,
354
354
  2
355
355
  /* CLASS */
356
- )) : z("v-if", !0),
357
- e.message.status === r(oe).Loading ? (h(), g("svg", ut, ht)) : z("v-if", !0),
358
- e.message.status === r(oe).Error ? (h(), g(
356
+ )) : M("v-if", !0),
357
+ e.message.status === c(oe).Loading ? (m(), g("svg", ut, ht)) : M("v-if", !0),
358
+ e.message.status === c(oe).Error ? (m(), g(
359
359
  "span",
360
360
  mt,
361
361
  P(e.message.content),
362
362
  1
363
363
  /* TEXT */
364
- )) : (h(), g("span", {
364
+ )) : (m(), g("span", {
365
365
  key: 4,
366
366
  innerHTML: i.value,
367
367
  class: $({
368
368
  "markdown-message": !0,
369
- loading: e.message.status === r(oe).Loading
369
+ loading: e.message.status === c(oe).Loading
370
370
  })
371
371
  }, null, 10, gt))
372
372
  ])
@@ -387,37 +387,37 @@ const et = /* @__PURE__ */ Y({
387
387
  placeholder: {},
388
388
  value: {}
389
389
  },
390
- emits: ["update:value", "enter", "choose-prompt"],
390
+ emits: ["change-prompt", "update:value", "enter", "choose-prompt"],
391
391
  setup(o, { emit: n }) {
392
- const t = o, s = n, i = Te, l = ue, { selectedText: e, lockSelectedText: c } = pe(), u = x(""), k = x(40), R = x(), w = x(!1), C = E(() => {
392
+ const t = o, s = n, i = Te, l = ue, { selectedText: e, lockSelectedText: r } = pe(), h = x(""), k = x(40), C = x(), w = x(!1), B = X(() => {
393
393
  var v;
394
- return ((v = t.prompts) == null ? void 0 : v.filter((S) => S.content.includes(u.value))) || [];
395
- }), L = E(() => {
394
+ return ((v = t.prompts) == null ? void 0 : v.filter((L) => L.content.includes(h.value))) || [];
395
+ }), z = X(() => {
396
396
  var v;
397
397
  return t.placeholder ? t.placeholder : (v = t.prompts) != null && v.length ? b("您可以键入 “/” 查看更多Prompt") : b("请输入");
398
- }), B = (v) => {
399
- s("update:value", v);
400
- }, p = () => {
398
+ }), H = (v) => {
399
+ s("update:value", v), s("change-prompt", v);
400
+ }, R = () => {
401
401
  var v;
402
402
  t.value === "/" && ((v = t.prompts) != null && v.length) ? f() : y();
403
- }, H = () => {
403
+ }, u = () => {
404
404
  ye(() => {
405
- var S;
406
- const v = (S = R.value) == null ? void 0 : S.$el.querySelector("textarea");
405
+ var L;
406
+ const v = (L = C.value) == null ? void 0 : L.$el.querySelector("textarea");
407
407
  (v == null ? void 0 : v.scrollHeight) > 40 && t.value ? k.value = v.scrollHeight <= 300 ? v.scrollHeight : 300 : k.value = 40;
408
408
  });
409
- }, G = (v) => {
410
- s("update:value", v.content), s("choose-prompt", v), y(), K();
411
- }, J = (v, S) => {
412
- S.key === "Enter" && !S.shiftKey && (S.preventDefault(), s("enter"));
409
+ }, A = (v) => {
410
+ s("update:value", v.content), s("choose-prompt", v), y(), U();
411
+ }, J = (v, L) => {
412
+ L.key === "Enter" && !L.shiftKey && (L.preventDefault(), s("enter"));
413
413
  }, Z = () => {
414
- B("");
415
- }, K = () => {
416
- var S;
417
- const v = (S = R.value) == null ? void 0 : S.$el.querySelector("textarea");
414
+ H("");
415
+ }, U = () => {
416
+ var L;
417
+ const v = (L = C.value) == null ? void 0 : L.$el.querySelector("textarea");
418
418
  v == null || v.focus();
419
- }, m = () => {
420
- e.value && (c.value = !0);
419
+ }, p = () => {
420
+ e.value && (r.value = !0);
421
421
  }, f = () => {
422
422
  w.value = !0;
423
423
  }, y = () => {
@@ -426,9 +426,9 @@ const et = /* @__PURE__ */ Y({
426
426
  return be(
427
427
  () => t.value,
428
428
  () => {
429
- H(), p();
429
+ u(), R();
430
430
  }
431
- ), ne(K), (v, S) => (h(), X(r(Be), {
431
+ ), ne(U), (v, L) => (m(), q(c(Be), {
432
432
  width: "calc(100% - 118px)",
433
433
  "ext-cls": "empty-padding",
434
434
  arrow: !1,
@@ -439,37 +439,37 @@ const et = /* @__PURE__ */ Y({
439
439
  theme: "light",
440
440
  trigger: "manual"
441
441
  }, {
442
- content: W(() => {
442
+ content: G(() => {
443
443
  var te;
444
444
  return [
445
445
  d("div", null, [
446
- A((h(), g("section", ft, [
447
- T(r(he), {
446
+ E((m(), g("section", ft, [
447
+ T(c(he), {
448
448
  class: "input-search",
449
- modelValue: u.value,
450
- "onUpdate:modelValue": S[0] || (S[0] = (U) => u.value = U),
449
+ modelValue: h.value,
450
+ "onUpdate:modelValue": L[0] || (L[0] = (Q) => h.value = Q),
451
451
  behavior: "simplicity",
452
452
  clearable: ""
453
453
  }, null, 8, ["modelValue"]),
454
454
  d("section", bt, [
455
- (h(!0), g(
456
- q,
455
+ (m(!0), g(
456
+ K,
457
457
  null,
458
- ce(C.value, (U, re) => A((h(), g("span", {
458
+ re(B.value, (Q, ce) => E((m(), g("span", {
459
459
  class: "group-prompt",
460
- key: re,
461
- onClick: (a) => G(U)
460
+ key: ce,
461
+ onClick: (a) => A(Q)
462
462
  }, [
463
463
  d(
464
464
  "span",
465
465
  kt,
466
- P(U.content),
466
+ P(Q.content),
467
467
  1
468
468
  /* TEXT */
469
469
  )
470
470
  ], 8, yt)), [
471
- [r(l), {
472
- content: U.content,
471
+ [c(l), {
472
+ content: Q.content,
473
473
  placement: "right",
474
474
  theme: "light",
475
475
  width: 300,
@@ -479,7 +479,7 @@ const et = /* @__PURE__ */ Y({
479
479
  128
480
480
  /* KEYED_FRAGMENT */
481
481
  )),
482
- (te = C.value) != null && te.length ? z("v-if", !0) : (h(), X(r(He), {
482
+ (te = B.value) != null && te.length ? M("v-if", !0) : (m(), q(c(He), {
483
483
  key: 0,
484
484
  class: "exception-wrap-item exception-part",
485
485
  scene: "part",
@@ -487,41 +487,41 @@ const et = /* @__PURE__ */ Y({
487
487
  }))
488
488
  ])
489
489
  ])), [
490
- [r(i), y]
490
+ [c(i), y]
491
491
  ])
492
492
  ])
493
493
  ];
494
494
  }),
495
- default: W(() => [
495
+ default: G(() => [
496
496
  d(
497
497
  "section",
498
498
  {
499
- style: j({
499
+ style: W({
500
500
  "--text-height": k.value + "px"
501
501
  }),
502
502
  class: "send-prompt-container"
503
503
  },
504
504
  [
505
- T(r(he), {
505
+ T(c(he), {
506
506
  ref_key: "inputRef",
507
- ref: R,
507
+ ref: C,
508
508
  class: "send-prompt",
509
509
  autosize: !1,
510
510
  clearable: !0,
511
511
  "model-value": v.value,
512
512
  "native-attributes": { autofocus: "autofocus" },
513
- placeholder: L.value,
513
+ placeholder: z.value,
514
514
  row: "1",
515
515
  type: "textarea",
516
- onFocus: m,
517
- onInput: B,
516
+ onFocus: p,
517
+ onInput: H,
518
518
  onKeydown: J
519
519
  }, null, 8, ["model-value", "placeholder"]),
520
- v.value ? (h(), X(r(Ee), {
520
+ v.value ? (m(), q(c(Ee), {
521
521
  key: 0,
522
522
  class: "show-clear-only-hover bk-input--clear-icon clear-icon",
523
523
  onClick: Z
524
- })) : z("v-if", !0)
524
+ })) : M("v-if", !0)
525
525
  ],
526
526
  4
527
527
  /* STYLE */
@@ -531,7 +531,7 @@ const et = /* @__PURE__ */ Y({
531
531
  /* STABLE */
532
532
  }, 8, ["is-show"]));
533
533
  }
534
- }), Lt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-3354f392"]]), St = { class: "ai-shortcuts" }, Mt = /* @__PURE__ */ Y({
534
+ }), Lt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-ce69f471"]]), St = { class: "ai-shortcuts" }, Mt = /* @__PURE__ */ Y({
535
535
  __name: "render-shortcuts",
536
536
  props: {
537
537
  shortcuts: {}
@@ -541,17 +541,17 @@ const et = /* @__PURE__ */ Y({
541
541
  const t = n, s = (i) => {
542
542
  t("select", i);
543
543
  };
544
- return (i, l) => (h(), g("ul", St, [
545
- (h(!0), g(
546
- q,
544
+ return (i, l) => (m(), g("ul", St, [
545
+ (m(!0), g(
546
+ K,
547
547
  null,
548
- ce(i.shortcuts, (e) => (h(), X(r(Pe), {
548
+ re(i.shortcuts, (e) => (m(), q(c(Pe), {
549
549
  class: "ai-blueking-shortcut",
550
550
  key: e.label,
551
551
  theme: "info",
552
- onClick: (c) => s(e)
552
+ onClick: (r) => s(e)
553
553
  }, {
554
- default: W(() => [
554
+ default: G(() => [
555
555
  ee(
556
556
  P(e.label),
557
557
  1
@@ -589,18 +589,18 @@ const et = /* @__PURE__ */ Y({
589
589
  const t = n, s = () => {
590
590
  t("stop");
591
591
  };
592
- return (i, l) => i.isShow ? (h(), g("span", {
592
+ return (i, l) => i.isShow ? (m(), g("span", {
593
593
  key: 0,
594
594
  class: "ai-blueking-render-stop",
595
595
  onClick: s
596
596
  }, [
597
597
  Bt,
598
598
  ee(
599
- " " + P(r(b)("终止生成")),
599
+ " " + P(c(b)("终止生成")),
600
600
  1
601
601
  /* TEXT */
602
602
  )
603
- ])) : z("v-if", !0);
603
+ ])) : M("v-if", !0);
604
604
  }
605
605
  }), Tt = /* @__PURE__ */ I(Ht, [["__scopeId", "data-v-fd57f18d"]]), Pt = {
606
606
  key: 0,
@@ -611,7 +611,7 @@ const et = /* @__PURE__ */ Y({
611
611
  message: {}
612
612
  },
613
613
  setup(o) {
614
- const n = o, t = E(() => {
614
+ const n = o, t = X(() => {
615
615
  var e;
616
616
  const s = se(n.message.time), i = se(), l = {
617
617
  0: b("日"),
@@ -623,10 +623,10 @@ const et = /* @__PURE__ */ Y({
623
623
  6: b("六")
624
624
  };
625
625
  return !n.message.time || (e = window.showTimes) != null && e.some(
626
- (c) => Math.abs(s.diff(c, "minute")) < 10 && c !== n.message.time
626
+ (r) => Math.abs(s.diff(r, "minute")) < 10 && r !== n.message.time
627
627
  ) ? "" : (window.showTimes = [...window.showTimes || [], n.message.time], i.isSame(s, "day") ? s.format("HH:mm:ss") : i.subtract(1, "day").isSame(s, "week") ? b("昨天") + " " + s.format("HH:mm:ss") : i.isSame(s, "week") ? b("本周") + l[s.day()] + " " + s.format("HH:mm:ss") : i.subtract(1, "week").isSame(s, "week") ? b("上周") + l[s.day()] + " " + s.format("HH:mm:ss") : i.isSame(s, "year") ? s.format("MM-DD HH:mm:ss") : s.format("YYYY-MM-DD HH:mm:ss"));
628
628
  });
629
- return (s, i) => t.value ? (h(), g("section", Pt, [
629
+ return (s, i) => t.value ? (m(), g("section", Pt, [
630
630
  d(
631
631
  "span",
632
632
  Rt,
@@ -634,9 +634,9 @@ const et = /* @__PURE__ */ Y({
634
634
  1
635
635
  /* TEXT */
636
636
  )
637
- ])) : z("v-if", !0);
637
+ ])) : M("v-if", !0);
638
638
  }
639
- }), Dt = /* @__PURE__ */ I(Vt, [["__scopeId", "data-v-55c9a119"]]), Se = (o) => (ae("data-v-830cceda"), o = o(), ie(), o), xt = {
639
+ }), Dt = /* @__PURE__ */ I(Vt, [["__scopeId", "data-v-55c9a119"]]), Se = (o) => (ae("data-v-de79ff73"), o = o(), ie(), o), xt = {
640
640
  key: 0,
641
641
  width: "18",
642
642
  height: "18",
@@ -667,20 +667,21 @@ const et = /* @__PURE__ */ Y({
667
667
  placeholder: {},
668
668
  scrollLoading: { type: Boolean },
669
669
  scrollLoadingEnd: { type: Boolean, default: !0 },
670
- alert: {}
670
+ alert: {},
671
+ shortcuts: { default: () => Xe }
671
672
  },
672
- emits: ["ai-click", "send", "choose-prompt", "scroll-load", "stop"],
673
+ emits: ["ai-click", "change-prompt", "send", "choose-prompt", "scroll-load", "stop"],
673
674
  setup(o, { expose: n, emit: t }) {
674
- const s = o, i = t, l = ue, e = x(""), { selectedText: c, clearSelection: u } = pe(), { isShow: k } = ke(), R = Xe, w = () => {
675
+ const s = o, i = t, l = ue, e = x(""), { selectedText: r, clearSelection: h } = pe(), { isShow: k } = ke(), C = () => {
675
676
  ye(() => {
676
- const m = document.querySelector(".ai-blueking-messages");
677
- m.scrollTop = m.scrollHeight;
677
+ const p = document.querySelector(".ai-blueking-messages");
678
+ p.scrollTop = p.scrollHeight;
678
679
  });
679
- }, C = Ue((m) => {
680
+ }, w = Ue((p) => {
680
681
  if (s.scrollLoading || s.scrollLoadingEnd)
681
682
  return;
682
- m.target.scrollTop < 200 && i("scroll-load");
683
- }), L = () => {
683
+ p.target.scrollTop < 200 && i("scroll-load");
684
+ }), B = () => {
684
685
  if (e.value) {
685
686
  if (s.loading) {
686
687
  me({ theme: "warning", message: b("内容正在执行中,请执行完成后再发送") });
@@ -688,78 +689,80 @@ const et = /* @__PURE__ */ Y({
688
689
  }
689
690
  i("send", {
690
691
  content: e.value,
691
- cite: c.value
692
- }), e.value = "", c.value = "";
692
+ cite: r.value
693
+ }), e.value = "", r.value = "";
693
694
  }
694
- }, B = (m) => {
695
- i("choose-prompt", m);
696
- }, p = () => {
695
+ }, z = (p) => {
696
+ i("choose-prompt", p);
697
+ }, H = (p) => {
698
+ i("change-prompt", p);
699
+ }, R = () => {
697
700
  i("stop");
698
- }, H = (m) => {
699
- const f = m.target;
701
+ }, u = (p) => {
702
+ const f = p.target;
700
703
  if (f != null && f.classList.contains("ai-blueking-angle-up")) {
701
704
  const y = f == null ? void 0 : f.parentElement;
702
705
  y != null && y.classList.contains("closed") ? y == null || y.classList.remove("closed") : y == null || y.classList.add("closed");
703
706
  }
704
707
  f != null && f.classList.contains("ai-clickable") && i("ai-click", f.dataset.ai);
705
- }, G = () => {
706
- w(), document.addEventListener("click", H);
708
+ }, A = () => {
709
+ C(), document.addEventListener("click", u);
707
710
  }, J = () => {
708
- window.showTimes = [], document.removeEventListener("click", H);
709
- }, Z = (m) => {
710
- e.value = m;
711
- }, K = (m) => {
712
- const f = m.prompt.replace("{{ SELECTED_TEXT }}", c.value);
711
+ window.showTimes = [], document.removeEventListener("click", u);
712
+ }, Z = (p) => {
713
+ e.value = p;
714
+ }, U = (p) => {
715
+ const f = p.prompt.replace("{{ SELECTED_TEXT }}", r.value);
713
716
  if (s.loading) {
714
717
  me({ theme: "warning", message: b("内容正在执行中,请执行完成后再发送") });
715
718
  return;
716
719
  }
717
720
  i("send", {
718
- content: m.label,
719
- cite: c.value,
721
+ content: p.label,
722
+ cite: r.value,
720
723
  prompt: f
721
- }), c.value = "";
724
+ }), r.value = "";
722
725
  };
723
726
  return be(
724
727
  () => s.messages,
725
728
  () => {
726
- const m = document.querySelector(".ai-blueking-messages");
727
- (m == null ? void 0 : m.scrollTop) + (m == null ? void 0 : m.clientHeight) + 100 >= (m == null ? void 0 : m.scrollHeight) && w();
729
+ const p = document.querySelector(".ai-blueking-messages");
730
+ (p == null ? void 0 : p.scrollTop) + (p == null ? void 0 : p.clientHeight) + 100 >= (p == null ? void 0 : p.scrollHeight) && C();
728
731
  },
729
732
  {
730
733
  deep: !0
731
734
  }
732
- ), ne(G), le(J), n({
735
+ ), ne(A), le(J), n({
733
736
  setInputMessage: Z
734
- }), (m, f) => (h(), g(
737
+ }), (p, f) => (m(), g(
735
738
  "section",
736
739
  {
737
- style: j({
738
- background: m.background
740
+ style: W({
741
+ background: p.background
739
742
  }),
740
743
  class: "ai-content"
741
744
  },
742
745
  [
743
- m.alert ? (h(), X(r(Re), {
746
+ p.alert ? (m(), q(c(Re), {
744
747
  key: 0,
745
- title: m.alert,
748
+ title: p.alert,
746
749
  theme: "warning",
747
750
  closable: ""
748
- }, null, 8, ["title"])) : z("v-if", !0),
751
+ }, null, 8, ["title"])) : M("v-if", !0),
749
752
  d(
750
753
  "ul",
751
754
  {
752
755
  class: "ai-messages ai-blueking-messages",
753
756
  onScrollPassive: f[0] || (f[0] = //@ts-ignore
754
- (...y) => r(C) && r(C)(...y))
757
+ (...y) => c(w) && c(w)(...y))
755
758
  },
756
759
  [
757
- m.scrollLoading ? (h(), g("svg", xt, It)) : z("v-if", !0),
758
- (h(!0), g(
759
- q,
760
+ p.scrollLoading ? (m(), g("svg", xt, It)) : M("v-if", !0),
761
+ (m(!0), g(
762
+ K,
760
763
  null,
761
- ce(m.messages, (y) => (h(), g(
762
- q,
764
+ re(p.messages, (y) => (m(), g(
765
+ K,
763
766
  {
764
767
  key: y.content
765
768
  },
@@ -771,7 +774,7 @@ const et = /* @__PURE__ */ Y({
771
774
  T(vt, {
772
775
  class: "render-message",
773
776
  message: y,
774
- "user-photo": m.userPhoto
777
+ "user-photo": p.userPhoto
775
778
  }, null, 8, ["message", "user-photo"])
776
779
  ],
777
780
  64
@@ -795,63 +798,64 @@ const et = /* @__PURE__ */ Y({
795
798
  [
796
799
  T(_e),
797
800
  T(Tt, {
798
- "is-show": m.loading,
799
- onStop: p
801
+ "is-show": p.loading,
802
+ onStop: R
800
803
  }, null, 8, ["is-show"])
801
804
  ],
802
805
  32
803
806
  /* NEED_HYDRATION */
804
807
  ),
805
808
  d("section", Et, [
806
- r(c) ? (h(), g(
809
+ c(r) ? (m(), g(
807
810
  "div",
808
811
  {
809
812
  key: 0,
810
- class: $(["ai-cite-container", { "is-back-show": !r(k) }]),
813
+ class: $(["ai-cite-container", { "is-back-show": !c(k) }]),
811
814
  onMousedown: f[2] || (f[2] = D(() => {
812
815
  }, ["prevent"]))
813
816
  },
814
817
  [
815
818
  T(we, {
816
819
  "show-close-icon": !0,
817
- text: r(c),
818
- onClose: r(u)
820
+ text: c(r),
821
+ onClose: c(h)
819
822
  }, null, 8, ["text", "onClose"]),
820
823
  d(
821
824
  "span",
822
825
  Xt,
823
- P(r(b)("想对选中的文本做什么")),
826
+ P(c(b)("想对选中的文本做什么")),
824
827
  1
825
828
  /* TEXT */
826
829
  ),
827
830
  T(zt, {
828
- shortcuts: r(R),
829
- onSelect: K
831
+ shortcuts: p.shortcuts,
832
+ onSelect: U
830
833
  }, null, 8, ["shortcuts"])
831
834
  ],
832
835
  34
833
836
  /* CLASS, NEED_HYDRATION */
834
- )) : z("v-if", !0),
837
+ )) : M("v-if", !0),
835
838
  d("section", qt, [
836
839
  T(Lt, {
837
840
  value: e.value,
838
841
  "onUpdate:value": f[3] || (f[3] = (y) => e.value = y),
839
- placeholder: m.placeholder,
840
- prompts: m.prompts,
841
- onChoosePrompt: B,
842
- onEnter: L
842
+ placeholder: p.placeholder,
843
+ prompts: p.prompts,
844
+ onChangePrompt: H,
845
+ onChoosePrompt: z,
846
+ onEnter: B
843
847
  }, null, 8, ["value", "placeholder", "prompts"]),
844
- A((h(), X(r(Ve), {
848
+ E((m(), q(c(Ve), {
845
849
  class: "ai-operation-button",
846
- disabled: m.loading || !e.value,
850
+ disabled: p.loading || !e.value,
847
851
  size: "large",
848
852
  theme: "primary",
849
- onClick: L
853
+ onClick: B
850
854
  }, {
851
- default: W(() => [
855
+ default: G(() => [
852
856
  Kt,
853
857
  ee(
854
- " " + P(r(b)("发送")),
858
+ " " + P(c(b)("发送")),
855
859
  1
856
860
  /* TEXT */
857
861
  )
@@ -859,9 +863,9 @@ const et = /* @__PURE__ */ Y({
859
863
  _: 1
860
864
  /* STABLE */
861
865
  }, 8, ["disabled"])), [
862
- [r(l), {
863
- content: r(b)("内容正在执行中,请执行完成后再发送"),
864
- disabled: !m.loading
866
+ [c(l), {
867
+ content: c(b)("内容正在执行中,请执行完成后再发送"),
868
+ disabled: !p.loading
865
869
  }]
866
870
  ])
867
871
  ])
@@ -872,7 +876,7 @@ const et = /* @__PURE__ */ Y({
872
876
  /* STYLE */
873
877
  ));
874
878
  }
875
- }), Qt = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-830cceda"]]), jt = { class: "ai-modal-header-icon" }, Wt = /* @__PURE__ */ Y({
879
+ }), Qt = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-de79ff73"]]), jt = { class: "ai-modal-header-icon" }, Wt = /* @__PURE__ */ Y({
876
880
  __name: "render-modal",
877
881
  props: {
878
882
  headBackground: { default: "linear-gradient(267deg, #2dd1f4 0%, #1482ff 95%)" },
@@ -907,71 +911,71 @@ const et = /* @__PURE__ */ Y({
907
911
  type: "",
908
912
  clientX: 0,
909
913
  clientY: 0
910
- }, c = () => {
911
- var M, V, O, N;
914
+ }, r = () => {
915
+ var S, V, O, N;
912
916
  const a = (F, Me) => F === void 0 ? Me : F;
913
917
  return {
914
- top: a((M = t.startPosition) == null ? void 0 : M.top, l.height - t.sizeLimit.height),
918
+ top: a((S = t.startPosition) == null ? void 0 : S.top, l.height - t.sizeLimit.height),
915
919
  bottom: a((V = t.startPosition) == null ? void 0 : V.bottom, 0),
916
920
  left: a((O = t.startPosition) == null ? void 0 : O.left, 0),
917
921
  right: a((N = t.startPosition) == null ? void 0 : N.right, l.width - t.sizeLimit.width)
918
922
  };
919
- }, u = x(c()), k = E(() => u.value.top <= t.positionLimit.top && u.value.bottom <= t.positionLimit.bottom), R = (a) => {
923
+ }, h = x(r()), k = X(() => h.value.top <= t.positionLimit.top && h.value.bottom <= t.positionLimit.bottom), C = (a) => {
920
924
  s("choose-model", a);
921
925
  }, w = (a) => {
922
926
  e.isMove = !0, e.type = "move", e.clientX = a.clientX, e.clientY = a.clientY;
923
- }, C = (a) => {
927
+ }, B = (a) => {
924
928
  e.isMove = !0, e.type = "rightDrag", e.clientX = a.clientX;
925
- }, L = (a) => {
929
+ }, z = (a) => {
926
930
  e.isMove = !0, e.type = "leftDrag", e.clientX = a.clientX;
927
- }, B = (a) => {
931
+ }, H = (a) => {
928
932
  e.isMove = !0, e.type = "topDrag", e.clientY = a.clientY;
929
- }, p = (a) => {
933
+ }, R = (a) => {
930
934
  e.isMove = !0, e.type = "bottomDrag", e.clientY = a.clientY;
931
- }, H = (a) => {
935
+ }, u = (a) => {
932
936
  e.isMove = !0, e.type = "topLeftDrag", e.clientY = a.clientY, e.clientX = a.clientX;
933
- }, G = (a) => {
937
+ }, A = (a) => {
934
938
  e.isMove = !0, e.type = "topRightDrag", e.clientY = a.clientY, e.clientX = a.clientX;
935
939
  }, J = (a) => {
936
940
  e.isMove = !0, e.type = "bottomLeftDrag", e.clientY = a.clientY, e.clientX = a.clientX;
937
941
  }, Z = (a) => {
938
942
  e.isMove = !0, e.type = "bottomRightDrag", e.clientY = a.clientY, e.clientX = a.clientX;
939
- }, K = () => {
943
+ }, U = () => {
940
944
  e.isMove = !1;
941
- }, m = (a, M) => {
942
- ["move", "leftDrag"].includes(e.type) && (u.value.left += a), ["move", "rightDrag"].includes(e.type) && (u.value.right -= a), ["move", "topDrag"].includes(e.type) && (u.value.top += M), ["move", "bottomDrag"].includes(e.type) && (u.value.bottom -= M), ["topLeftDrag"].includes(e.type) && (u.value.left += a, u.value.top += M), ["topRightDrag"].includes(e.type) && (u.value.right -= a, u.value.top += M), ["bottomLeftDrag"].includes(e.type) && (u.value.left += a, u.value.bottom -= M), ["bottomRightDrag"].includes(e.type) && (u.value.right -= a, u.value.bottom -= M);
943
- }, f = (a, M) => {
944
- const { top: V, bottom: O, left: N, right: F } = u.value;
945
- (l.width - N - F < t.sizeLimit.width || N < t.positionLimit.left || F < t.positionLimit.right) && (["move", "leftDrag", "topLeftDrag", "bottomLeftDrag"].includes(e.type) && (u.value.left -= a), ["move", "rightDrag", "topRightDrag", "bottomRightDrag"].includes(e.type) && (u.value.right += a)), (l.height - V - O < t.sizeLimit.height || V < t.positionLimit.top || O < t.positionLimit.bottom) && (["move", "topDrag", "topRightDrag", "topLeftDrag"].includes(e.type) && (u.value.top -= M), ["move", "bottomDrag", "bottomLeftDrag", "bottomRightDrag"].includes(e.type) && (u.value.bottom += M));
945
+ }, p = (a, S) => {
946
+ ["move", "leftDrag"].includes(e.type) && (h.value.left += a), ["move", "rightDrag"].includes(e.type) && (h.value.right -= a), ["move", "topDrag"].includes(e.type) && (h.value.top += S), ["move", "bottomDrag"].includes(e.type) && (h.value.bottom -= S), ["topLeftDrag"].includes(e.type) && (h.value.left += a, h.value.top += S), ["topRightDrag"].includes(e.type) && (h.value.right -= a, h.value.top += S), ["bottomLeftDrag"].includes(e.type) && (h.value.left += a, h.value.bottom -= S), ["bottomRightDrag"].includes(e.type) && (h.value.right -= a, h.value.bottom -= S);
947
+ }, f = (a, S) => {
948
+ const { top: V, bottom: O, left: N, right: F } = h.value;
949
+ (l.width - N - F < t.sizeLimit.width || N < t.positionLimit.left || F < t.positionLimit.right) && (["move", "leftDrag", "topLeftDrag", "bottomLeftDrag"].includes(e.type) && (h.value.left -= a), ["move", "rightDrag", "topRightDrag", "bottomRightDrag"].includes(e.type) && (h.value.right += a)), (l.height - V - O < t.sizeLimit.height || V < t.positionLimit.top || O < t.positionLimit.bottom) && (["move", "topDrag", "topRightDrag", "topLeftDrag"].includes(e.type) && (h.value.top -= S), ["move", "bottomDrag", "bottomLeftDrag", "bottomRightDrag"].includes(e.type) && (h.value.bottom += S));
946
950
  }, y = (a) => {
947
951
  if (!e.isMove)
948
952
  return;
949
953
  a.preventDefault();
950
- const M = a.clientX - e.clientX, V = a.clientY - e.clientY;
951
- m(M, V), f(M, V), e.clientX = a.clientX, e.clientY = a.clientY;
954
+ const S = a.clientX - e.clientX, V = a.clientY - e.clientY;
955
+ p(S, V), f(S, V), e.clientX = a.clientX, e.clientY = a.clientY;
952
956
  }, v = () => {
953
- l.height = window.innerHeight, l.width = window.innerWidth, u.value = c();
954
- }, S = () => {
955
- u.value.top = t.positionLimit.top, u.value.bottom = t.positionLimit.bottom;
957
+ l.height = window.innerHeight, l.width = window.innerWidth, h.value = r();
958
+ }, L = () => {
959
+ h.value.top = t.positionLimit.top, h.value.bottom = t.positionLimit.bottom;
956
960
  }, te = () => {
957
- u.value.top = l.height - t.sizeLimit.height, u.value.bottom = t.positionLimit.bottom;
958
- }, U = () => {
961
+ h.value.top = l.height - t.sizeLimit.height, h.value.bottom = t.positionLimit.bottom;
962
+ }, Q = () => {
959
963
  s("clear");
960
- }, re = () => {
964
+ }, ce = () => {
961
965
  s("close");
962
966
  };
963
967
  return xe(() => {
964
- window.addEventListener("mousemove", y, !0), window.addEventListener("mouseup", K), window.addEventListener("resize", v);
968
+ window.addEventListener("mousemove", y, !0), window.addEventListener("mouseup", U), window.addEventListener("resize", v);
965
969
  }), le(() => {
966
- window.removeEventListener("mousemove", y, !0), window.removeEventListener("mouseup", K), window.removeEventListener("resize", v);
967
- }), (a, M) => (h(), g(
970
+ window.removeEventListener("mousemove", y, !0), window.removeEventListener("mouseup", U), window.removeEventListener("resize", v);
971
+ }), (a, S) => (m(), g(
968
972
  "section",
969
973
  {
970
- style: j({
971
- top: u.value.top + "px",
972
- bottom: u.value.bottom + "px",
973
- left: u.value.left + "px",
974
- right: u.value.right + "px"
974
+ style: W({
975
+ top: h.value.top + "px",
976
+ bottom: h.value.bottom + "px",
977
+ left: h.value.left + "px",
978
+ right: h.value.right + "px"
975
979
  }),
976
980
  class: "ai-modal"
977
981
  },
@@ -979,7 +983,7 @@ const et = /* @__PURE__ */ Y({
979
983
  d(
980
984
  "header",
981
985
  {
982
- style: j({
986
+ style: W({
983
987
  background: a.headBackground
984
988
  }),
985
989
  class: "ai-modal-header",
@@ -997,22 +1001,22 @@ const et = /* @__PURE__ */ Y({
997
1001
  /* CLASS */
998
1002
  ),
999
1003
  ee(
1000
- " " + P(a.name || r(b)("小鲸")) + " ",
1004
+ " " + P(a.name || c(b)("小鲸")) + " ",
1001
1005
  1
1002
1006
  /* TEXT */
1003
1007
  ),
1004
- a.models ? (h(), X(r(ge), {
1008
+ a.models ? (m(), q(c(ge), {
1005
1009
  key: 0,
1006
1010
  class: "ai-modal-header-models",
1007
1011
  "model-value": a.model,
1008
1012
  size: "small",
1009
- onChange: R
1013
+ onChange: C
1010
1014
  }, {
1011
- default: W(() => [
1012
- (h(!0), g(
1013
- q,
1015
+ default: G(() => [
1016
+ (m(!0), g(
1017
+ K,
1014
1018
  null,
1015
- ce(a.models, (V) => (h(), X(r(ge).Option, {
1019
+ re(a.models, (V) => (m(), q(c(ge).Option, {
1016
1020
  key: V.id,
1017
1021
  name: V.name,
1018
1022
  value: V.id
@@ -1023,10 +1027,10 @@ const et = /* @__PURE__ */ Y({
1023
1027
  ]),
1024
1028
  _: 1
1025
1029
  /* STABLE */
1026
- }, 8, ["model-value"])) : z("v-if", !0)
1030
+ }, 8, ["model-value"])) : M("v-if", !0)
1027
1031
  ]),
1028
1032
  d("span", null, [
1029
- k.value ? A((h(), g(
1033
+ k.value ? E((m(), g(
1030
1034
  "i",
1031
1035
  {
1032
1036
  key: 0,
@@ -1037,53 +1041,53 @@ const et = /* @__PURE__ */ Y({
1037
1041
  512
1038
1042
  /* NEED_PATCH */
1039
1043
  )), [
1040
- [r(i), {
1041
- content: r(b)("向下收缩"),
1044
+ [c(i), {
1045
+ content: c(b)("向下收缩"),
1042
1046
  distance: 20
1043
1047
  }]
1044
- ]) : A((h(), g(
1048
+ ]) : E((m(), g(
1045
1049
  "i",
1046
1050
  {
1047
1051
  key: 1,
1048
1052
  class: "ai-header-tool ai-blueking-icon ai-blueking-shangxialashen-2",
1049
- onClick: S
1053
+ onClick: L
1050
1054
  },
1051
1055
  null,
1052
1056
  512
1053
1057
  /* NEED_PATCH */
1054
1058
  )), [
1055
- [r(i), {
1056
- content: r(b)("向上扩展"),
1059
+ [c(i), {
1060
+ content: c(b)("向上扩展"),
1057
1061
  distance: 20
1058
1062
  }]
1059
1063
  ]),
1060
- A(d(
1064
+ E(d(
1061
1065
  "i",
1062
1066
  {
1063
1067
  class: "ai-header-tool ai-blueking-icon ai-blueking-saoba",
1064
- onClick: U
1068
+ onClick: Q
1065
1069
  },
1066
1070
  null,
1067
1071
  512
1068
1072
  /* NEED_PATCH */
1069
1073
  ), [
1070
- [r(i), {
1071
- content: r(b)("清空聊天记录"),
1074
+ [c(i), {
1075
+ content: c(b)("清空聊天记录"),
1072
1076
  distance: 20
1073
1077
  }]
1074
1078
  ]),
1075
- A(d(
1079
+ E(d(
1076
1080
  "i",
1077
1081
  {
1078
1082
  class: "ai-header-tool ai-blueking-icon ai-blueking-shanchu-2",
1079
- onClick: re
1083
+ onClick: ce
1080
1084
  },
1081
1085
  null,
1082
1086
  512
1083
1087
  /* NEED_PATCH */
1084
1088
  ), [
1085
- [r(i), {
1086
- content: r(b)("关闭"),
1089
+ [c(i), {
1090
+ content: c(b)("关闭"),
1087
1091
  distance: 20
1088
1092
  }]
1089
1093
  ])
@@ -1097,7 +1101,7 @@ const et = /* @__PURE__ */ Y({
1097
1101
  "span",
1098
1102
  {
1099
1103
  class: "drag-line left",
1100
- onMousedown: D(L, ["stop"])
1104
+ onMousedown: D(z, ["stop"])
1101
1105
  },
1102
1106
  null,
1103
1107
  32
@@ -1107,7 +1111,7 @@ const et = /* @__PURE__ */ Y({
1107
1111
  "span",
1108
1112
  {
1109
1113
  class: "drag-line right",
1110
- onMousedown: D(C, ["stop"])
1114
+ onMousedown: D(B, ["stop"])
1111
1115
  },
1112
1116
  null,
1113
1117
  32
@@ -1117,7 +1121,7 @@ const et = /* @__PURE__ */ Y({
1117
1121
  "span",
1118
1122
  {
1119
1123
  class: "drag-line top",
1120
- onMousedown: D(B, ["stop"])
1124
+ onMousedown: D(H, ["stop"])
1121
1125
  },
1122
1126
  null,
1123
1127
  32
@@ -1127,7 +1131,7 @@ const et = /* @__PURE__ */ Y({
1127
1131
  "span",
1128
1132
  {
1129
1133
  class: "drag-line bottom",
1130
- onMousedown: D(p, ["stop"])
1134
+ onMousedown: D(R, ["stop"])
1131
1135
  },
1132
1136
  null,
1133
1137
  32
@@ -1137,7 +1141,7 @@ const et = /* @__PURE__ */ Y({
1137
1141
  "span",
1138
1142
  {
1139
1143
  class: "drag-line top-left-corner",
1140
- onMousedown: D(H, ["stop"])
1144
+ onMousedown: D(u, ["stop"])
1141
1145
  },
1142
1146
  null,
1143
1147
  32
@@ -1147,7 +1151,7 @@ const et = /* @__PURE__ */ Y({
1147
1151
  "span",
1148
1152
  {
1149
1153
  class: "drag-line top-right-corner",
1150
- onMousedown: D(G, ["stop"])
1154
+ onMousedown: D(A, ["stop"])
1151
1155
  },
1152
1156
  null,
1153
1157
  32
@@ -1191,13 +1195,13 @@ const et = /* @__PURE__ */ Y({
1191
1195
  const { isIconVisible: t, iconPosition: s } = pe(), i = n, l = () => {
1192
1196
  i("click"), t.value = !1;
1193
1197
  };
1194
- return (e, c) => r(t) ? (h(), g(
1198
+ return (e, r) => c(t) ? (m(), g(
1195
1199
  "div",
1196
1200
  {
1197
1201
  key: 0,
1198
- style: j(r(s)),
1202
+ style: W(c(s)),
1199
1203
  class: "ai-blueking-render-popup",
1200
- onMousedown: c[0] || (c[0] = D(() => {
1204
+ onMousedown: r[0] || (r[0] = D(() => {
1201
1205
  }, ["prevent"]))
1202
1206
  },
1203
1207
  [
@@ -1209,7 +1213,7 @@ const et = /* @__PURE__ */ Y({
1209
1213
  d(
1210
1214
  "span",
1211
1215
  Ot,
1212
- P(r(b)("问小鲸")),
1216
+ P(c(b)("问小鲸")),
1213
1217
  1
1214
1218
  /* TEXT */
1215
1219
  )
@@ -1217,7 +1221,7 @@ const et = /* @__PURE__ */ Y({
1217
1221
  ],
1218
1222
  36
1219
1223
  /* STYLE, NEED_HYDRATION */
1220
- )) : z("v-if", !0);
1224
+ )) : M("v-if", !0);
1221
1225
  }
1222
1226
  }), Ft = /* @__PURE__ */ I(Nt, [["__scopeId", "data-v-d5e26041"]]), ao = /* @__PURE__ */ Y({
1223
1227
  __name: "ai-blueking",
@@ -1239,75 +1243,80 @@ const et = /* @__PURE__ */ Y({
1239
1243
  alert: {},
1240
1244
  models: {},
1241
1245
  model: {},
1242
- isShow: { type: Boolean }
1246
+ isShow: { type: Boolean },
1247
+ shortcuts: {}
1243
1248
  },
1244
- emits: ["clear", "close", "scroll-load", "stop", "ai-click", "update:model", "choose-prompt", "send", "update:isShow"],
1249
+ emits: ["clear", "close", "scroll-load", "stop", "ai-click", "change-prompt", "update:model", "choose-prompt", "send", "update:isShow"],
1245
1250
  setup(o, { expose: n, emit: t }) {
1246
- const s = t, i = x(), l = (p) => {
1247
- var H;
1248
- (H = i.value) == null || H.setInputMessage(p);
1251
+ const s = t, i = x(), l = (u) => {
1252
+ var A;
1253
+ (A = i.value) == null || A.setInputMessage(u);
1249
1254
  }, e = () => {
1250
1255
  s("update:isShow", !0);
1251
- }, c = () => {
1256
+ }, r = () => {
1252
1257
  s("clear");
1253
- }, u = () => {
1258
+ }, h = () => {
1254
1259
  s("update:isShow", !1), s("close");
1255
- }, k = (p) => {
1256
- s("update:model", p);
1257
- }, R = (p) => {
1258
- s("send", p);
1260
+ }, k = (u) => {
1261
+ s("update:model", u);
1262
+ }, C = (u) => {
1263
+ s("send", u);
1259
1264
  }, w = () => {
1260
1265
  s("stop");
1261
- }, C = () => {
1266
+ }, B = () => {
1262
1267
  s("scroll-load");
1263
- }, L = (p) => {
1264
- s("ai-click", p);
1265
- }, B = (p) => {
1266
- s("choose-prompt", p);
1268
+ }, z = (u) => {
1269
+ s("ai-click", u);
1270
+ }, H = (u) => {
1271
+ s("choose-prompt", u);
1272
+ }, R = (u) => {
1273
+ s("change-prompt", u);
1267
1274
  };
1268
1275
  return n({
1269
1276
  setInputMessage: l
1270
- }), (p, H) => (h(), g(
1271
- q,
1277
+ }), (u, A) => (m(), g(
1278
+ K,
1272
1279
  null,
1273
1280
  [
1274
- A(T(Gt, {
1275
- "head-background": p.headBackground,
1276
- logo: p.logo,
1277
- model: p.model,
1278
- models: p.models,
1279
- name: p.name,
1280
- "position-limit": p.positionLimit,
1281
- "size-limit": p.sizeLimit,
1282
- "start-position": p.startPosition,
1281
+ E(T(Gt, {
1282
+ "head-background": u.headBackground,
1283
+ logo: u.logo,
1284
+ model: u.model,
1285
+ models: u.models,
1286
+ name: u.name,
1287
+ "position-limit": u.positionLimit,
1288
+ "size-limit": u.sizeLimit,
1289
+ "start-position": u.startPosition,
1283
1290
  onChooseModel: k,
1284
- onClear: c,
1285
- onClose: u
1291
+ onClear: r,
1292
+ onClose: h
1286
1293
  }, {
1287
- default: W(() => [
1294
+ default: G(() => [
1288
1295
  T(Qt, {
1289
1296
  ref_key: "contentRef",
1290
1297
  ref: i,
1291
- alert: p.alert,
1292
- background: p.background,
1293
- loading: p.loading,
1294
- messages: p.messages,
1295
- placeholder: p.placeholder,
1296
- prompts: p.prompts,
1297
- "scroll-loading": p.scrollLoading,
1298
- "scroll-loading-end": p.scrollLoadingEnd,
1299
- "user-photo": p.userPhoto,
1300
- onAiClick: L,
1301
- onChoosePrompt: B,
1302
- onScrollLoad: C,
1303
- onSend: R,
1298
+ alert: u.alert,
1299
+ background: u.background,
1300
+ loading: u.loading,
1301
+ messages: u.messages,
1302
+ placeholder: u.placeholder,
1303
+ prompts: u.prompts,
1304
+ "scroll-loading": u.scrollLoading,
1305
+ "scroll-loading-end": u.scrollLoadingEnd,
1306
+ shortcuts: u.shortcuts,
1307
+ "user-photo": u.userPhoto,
1308
+ onAiClick: z,
1309
+ onChangePrompt: R,
1310
+ onChoosePrompt: H,
1311
+ onScrollLoad: B,
1312
+ onSend: C,
1304
1313
  onStop: w
1305
- }, null, 8, ["alert", "background", "loading", "messages", "placeholder", "prompts", "scroll-loading", "scroll-loading-end", "user-photo"])
1314
+ }, null, 8, ["alert", "background", "loading", "messages", "placeholder", "prompts", "scroll-loading", "scroll-loading-end", "shortcuts", "user-photo"])
1306
1315
  ]),
1307
1316
  _: 1
1308
1317
  /* STABLE */
1309
1318
  }, 8, ["head-background", "logo", "model", "models", "name", "position-limit", "size-limit", "start-position"]), [
1310
- [fe, p.isShow]
1319
+ [fe, u.isShow]
1311
1320
  ]),
1312
1321
  T(Ft, { onClick: e })
1313
1322
  ],
@@ -1324,12 +1333,12 @@ const et = /* @__PURE__ */ Y({
1324
1333
  })();
1325
1334
  class io {
1326
1335
  constructor(n, t, s, i, l) {
1327
- Q(this, "controllerMap");
1328
- Q(this, "handleEnd");
1329
- Q(this, "handleError");
1330
- Q(this, "handleReceiveMessage");
1331
- Q(this, "handleStart");
1332
- Q(this, "url");
1336
+ j(this, "controllerMap");
1337
+ j(this, "handleEnd");
1338
+ j(this, "handleError");
1339
+ j(this, "handleReceiveMessage");
1340
+ j(this, "handleStart");
1341
+ j(this, "url");
1333
1342
  this.url = n, this.handleStart = t, this.handleReceiveMessage = s, this.handleEnd = i, this.handleError = l, this.controllerMap = {};
1334
1343
  }
1335
1344
  stop(n) {
@@ -1352,39 +1361,39 @@ class io {
1352
1361
  const e = l.body.pipeThrough(new window.TextDecoderStream()).getReader();
1353
1362
  for (; ; )
1354
1363
  try {
1355
- const { value: c, done: u } = await e.read();
1364
+ const { value: r, done: h } = await e.read();
1356
1365
  if (!l.ok) {
1357
- this.handleError(c || l.statusText, l.status, t);
1366
+ this.handleError(r || l.statusText, l.status, t);
1358
1367
  break;
1359
1368
  }
1360
- if (u) {
1369
+ if (h) {
1361
1370
  this.handleEnd(t);
1362
1371
  break;
1363
1372
  }
1364
- c.toString().split(`
1365
- `).forEach((R) => {
1366
- const w = R.replace("data:", "").trim();
1373
+ r.toString().split(`
1374
+ `).forEach((C) => {
1375
+ const w = C.replace("data:", "").trim();
1367
1376
  if (Ke(w)) {
1368
- const { event: C, content: L, result: B, code: p, message: H } = JSON.parse(w);
1369
- if (B === !1 || l.status !== 200) {
1370
- this.handleError(H, p, t);
1377
+ const { event: B, content: z, result: H, code: R, message: u } = JSON.parse(w);
1378
+ if (H === !1 || l.status !== 200) {
1379
+ this.handleError(u, R, t);
1371
1380
  return;
1372
1381
  }
1373
- switch (C) {
1382
+ switch (B) {
1374
1383
  case "text":
1375
- this.handleReceiveMessage(L, t);
1384
+ this.handleReceiveMessage(z, t);
1376
1385
  break;
1377
1386
  case "done":
1378
1387
  this.handleEnd(t);
1379
1388
  break;
1380
1389
  case "error":
1381
- this.handleError(H, p, t);
1390
+ this.handleError(u, R, t);
1382
1391
  break;
1383
1392
  }
1384
1393
  }
1385
1394
  });
1386
- } catch (c) {
1387
- (c == null ? void 0 : c.code) !== 20 && this.handleError(c.message, c.code, t);
1395
+ } catch (r) {
1396
+ (r == null ? void 0 : r.code) !== 20 && this.handleError(r.message, r.code, t);
1388
1397
  break;
1389
1398
  }
1390
1399
  }).catch((l) => {