@blueking/ai-blueking 0.3.7 → 0.3.9

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.
@@ -2,7 +2,7 @@ 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
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 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";
5
+ import { ref as x, onMounted as ne, onBeforeUnmount as le, defineComponent as Y, withDirectives as E, openBlock as h, createElementBlock as g, createElementVNode as u, toDisplayString as T, unref as c, createCommentVNode as k, vShow as fe, createTextVNode as ee, pushScopeId as ae, popScopeId as ie, computed as X, normalizeStyle as W, normalizeClass as $, createVNode as R, 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";
@@ -36,14 +36,14 @@ function pe() {
36
36
  const r = window.getSelection();
37
37
  if (r && r.toString().trim().length > 0) {
38
38
  de.value = !1;
39
- const k = r.getRangeAt(0).getBoundingClientRect(), C = window.innerWidth;
39
+ const w = r.getRangeAt(0).getBoundingClientRect(), C = window.innerWidth;
40
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`,
41
+ const L = 80, B = 34, z = 10;
42
+ let H = w.left + window.scrollX + w.width / 2 - L / 2;
43
+ H = Math.max(z, Math.min(H, C - L - z));
44
+ let P = w.top + window.scrollY - B - z;
45
+ w.top > B + z || (P = w.bottom + window.scrollY + z), n.value = {
46
+ top: `${P}px`,
47
47
  left: `${H}px`
48
48
  }, o.value = !0;
49
49
  } else
@@ -138,29 +138,29 @@ const Xe = [
138
138
  },
139
139
  emits: ["close"],
140
140
  setup(o) {
141
- return (n, t) => E((m(), g(
141
+ return (n, t) => E((h(), g(
142
142
  "section",
143
143
  We,
144
144
  [
145
- d(
145
+ u(
146
146
  "span",
147
147
  Ge,
148
- P(n.text),
148
+ T(n.text),
149
149
  1
150
150
  /* TEXT */
151
151
  ),
152
- d(
152
+ u(
153
153
  "span",
154
154
  Je,
155
- P(c(b)("您选择的文本内容")),
155
+ T(c(b)("您选择的文本内容")),
156
156
  1
157
157
  /* TEXT */
158
158
  ),
159
- n.showCloseIcon ? (m(), g("i", {
159
+ n.showCloseIcon ? (h(), 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
- })) : M("v-if", !0)
163
+ })) : k("v-if", !0)
164
164
  ],
165
165
  512
166
166
  /* NEED_PATCH */
@@ -173,7 +173,7 @@ const Xe = [
173
173
  for (const [s, i] of n)
174
174
  t[s] = i;
175
175
  return t;
176
- }, we = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-3fd96961"]]), Oe = (o) => (ae("data-v-a8d839da"), o = o(), ie(), o), Ne = /* @__PURE__ */ Oe(() => /* @__PURE__ */ d(
176
+ }, we = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-3fd96961"]]), Oe = (o) => (ae("data-v-a8d839da"), o = o(), ie(), o), Ne = /* @__PURE__ */ Oe(() => /* @__PURE__ */ u(
177
177
  "i",
178
178
  { class: "ai-blueking-icon ai-blueking-xiangxia-2" },
179
179
  null,
@@ -183,7 +183,7 @@ const Xe = [
183
183
  __name: "render-back",
184
184
  setup(o) {
185
185
  const { isShow: n, scrollToBottom: t } = ke();
186
- return (s, i) => c(n) ? (m(), g("span", {
186
+ return (s, i) => c(n) ? (h(), g("span", {
187
187
  key: 0,
188
188
  class: "ai-blueking-render-back",
189
189
  onClick: i[0] || (i[0] = //@ts-ignore
@@ -191,11 +191,11 @@ const Xe = [
191
191
  }, [
192
192
  Ne,
193
193
  ee(
194
- " " + P(c(b)("返回最新")),
194
+ " " + T(c(b)("返回最新")),
195
195
  1
196
196
  /* TEXT */
197
197
  )
198
- ])) : M("v-if", !0);
198
+ ])) : k("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/ls58APwjfzWKavyfK4HqOsGyHcymqZFAGOA0UCSd2FyDAWK91kvKAJR99F1oCQr6WDJ/5M9HQfmAZ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69e/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 || {});
@@ -216,14 +216,14 @@ const et = /* @__PURE__ */ Y({
216
216
  fontSize: `${n.size * 0.611}px`
217
217
  // 保持原比例 22/36
218
218
  }));
219
- return (i, l) => (m(), g(
219
+ return (i, l) => (h(), g(
220
220
  "span",
221
221
  {
222
222
  style: W(t.value),
223
223
  class: "message-photo ai"
224
224
  },
225
225
  [
226
- d(
226
+ u(
227
227
  "i",
228
228
  {
229
229
  style: W(s.value),
@@ -253,7 +253,7 @@ const et = /* @__PURE__ */ Y({
253
253
  height: "18",
254
254
  class: "loading-message",
255
255
  "aria-hidden": "true"
256
- }, pt = /* @__PURE__ */ d(
256
+ }, pt = /* @__PURE__ */ u(
257
257
  "use",
258
258
  { "xlink:href": "#ai-blueking-quanquan" },
259
259
  null,
@@ -296,55 +296,55 @@ const et = /* @__PURE__ */ Y({
296
296
  const e = se(t.message.time), r = se();
297
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, r) => (m(), g(
299
+ return (e, r) => (h(), g(
300
300
  "li",
301
301
  {
302
302
  class: $([e.message.role, "message-main"])
303
303
  },
304
304
  [
305
- e.message.cite ? (m(), g("div", ot, [
306
- T(we, {
305
+ e.message.cite ? (h(), g("div", ot, [
306
+ R(we, {
307
307
  text: e.message.cite
308
308
  }, null, 8, ["text"])
309
- ])) : M("v-if", !0),
310
- d("div", st, [
311
- e.message.role === c(Le).User ? (m(), g(
309
+ ])) : k("v-if", !0),
310
+ u("div", st, [
311
+ e.message.role === c(Le).User ? (h(), g(
312
312
  K,
313
313
  { key: 0 },
314
314
  [
315
- d("p", nt, [
316
- l.value ? (m(), g(
315
+ u("p", nt, [
316
+ l.value ? (h(), g(
317
317
  "span",
318
318
  lt,
319
- P(l.value),
319
+ T(l.value),
320
320
  1
321
321
  /* TEXT */
322
- )) : M("v-if", !0),
323
- d("span", {
322
+ )) : k("v-if", !0),
323
+ u("span", {
324
324
  class: "markdown-message",
325
325
  innerHTML: i.value
326
326
  }, null, 8, at)
327
327
  ]),
328
- d("span", it, [
329
- d("img", { src: e.userPhoto }, null, 8, rt)
328
+ u("span", it, [
329
+ u("img", { src: e.userPhoto }, null, 8, rt)
330
330
  ])
331
331
  ],
332
332
  64
333
333
  /* STABLE_FRAGMENT */
334
- )) : (m(), g(
334
+ )) : (h(), g(
335
335
  K,
336
336
  { key: 1 },
337
337
  [
338
- T(tt),
339
- d("p", ct, [
340
- l.value ? (m(), g(
338
+ R(tt),
339
+ u("p", ct, [
340
+ l.value ? (h(), g(
341
341
  "span",
342
342
  dt,
343
- P(l.value),
343
+ T(l.value),
344
344
  1
345
345
  /* TEXT */
346
- )) : M("v-if", !0),
347
- s.value ? (m(), g(
346
+ )) : k("v-if", !0),
347
+ s.value ? (h(), g(
348
348
  "i",
349
349
  {
350
350
  key: 1,
@@ -353,15 +353,15 @@ const et = /* @__PURE__ */ Y({
353
353
  null,
354
354
  2
355
355
  /* CLASS */
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(
356
+ )) : k("v-if", !0),
357
+ e.message.status === c(oe).Loading ? (h(), g("svg", ut, ht)) : k("v-if", !0),
358
+ e.message.status === c(oe).Error ? (h(), g(
359
359
  "span",
360
360
  mt,
361
- P(e.message.content),
361
+ T(e.message.content),
362
362
  1
363
363
  /* TEXT */
364
- )) : (m(), g("span", {
364
+ )) : (h(), g("span", {
365
365
  key: 4,
366
366
  innerHTML: i.value,
367
367
  class: $({
@@ -389,50 +389,50 @@ const et = /* @__PURE__ */ Y({
389
389
  },
390
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: r } = pe(), h = x(""), k = x(40), C = x(), w = x(!1), B = X(() => {
392
+ const t = o, s = n, i = Te, l = ue, { selectedText: e, lockSelectedText: r } = pe(), m = x(""), w = x(40), C = x(), L = x(!1), B = X(() => {
393
393
  var v;
394
- return ((v = t.prompts) == null ? void 0 : v.filter((L) => L.content.includes(h.value))) || [];
394
+ return ((v = t.prompts) == null ? void 0 : v.filter((S) => S.content.includes(m.value))) || [];
395
395
  }), z = X(() => {
396
396
  var v;
397
397
  return t.placeholder ? t.placeholder : (v = t.prompts) != null && v.length ? b("您可以键入 “/” 查看更多Prompt") : b("请输入");
398
398
  }), H = (v) => {
399
399
  s("update:value", v), s("change-prompt", v);
400
- }, R = () => {
400
+ }, P = () => {
401
401
  var v;
402
402
  t.value === "/" && ((v = t.prompts) != null && v.length) ? f() : y();
403
- }, u = () => {
403
+ }, d = () => {
404
404
  ye(() => {
405
- var L;
406
- const v = (L = C.value) == null ? void 0 : L.$el.querySelector("textarea");
407
- (v == null ? void 0 : v.scrollHeight) > 40 && t.value ? k.value = v.scrollHeight <= 300 ? v.scrollHeight : 300 : k.value = 40;
405
+ var S;
406
+ const v = (S = C.value) == null ? void 0 : S.$el.querySelector("textarea");
407
+ (v == null ? void 0 : v.scrollHeight) > 40 && t.value ? w.value = v.scrollHeight <= 300 ? v.scrollHeight : 300 : w.value = 40;
408
408
  });
409
409
  }, A = (v) => {
410
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"));
411
+ }, J = (v, S) => {
412
+ S.key === "Enter" && !S.shiftKey && (S.preventDefault(), s("enter"));
413
413
  }, Z = () => {
414
414
  H("");
415
415
  }, U = () => {
416
- var L;
417
- const v = (L = C.value) == null ? void 0 : L.$el.querySelector("textarea");
416
+ var S;
417
+ const v = (S = C.value) == null ? void 0 : S.$el.querySelector("textarea");
418
418
  v == null || v.focus();
419
419
  }, p = () => {
420
420
  e.value && (r.value = !0);
421
421
  }, f = () => {
422
- w.value = !0;
422
+ L.value = !0;
423
423
  }, y = () => {
424
- w.value = !1;
424
+ L.value = !1;
425
425
  };
426
426
  return be(
427
427
  () => t.value,
428
428
  () => {
429
- u(), R();
429
+ d(), P();
430
430
  }
431
- ), ne(U), (v, L) => (m(), q(c(Be), {
431
+ ), ne(U), (v, S) => (h(), q(c(Be), {
432
432
  width: "calc(100% - 118px)",
433
433
  "ext-cls": "empty-padding",
434
434
  arrow: !1,
435
- "is-show": w.value,
435
+ "is-show": L.value,
436
436
  "popover-delay": 0,
437
437
  boundary: "parent",
438
438
  placement: "bottom",
@@ -442,28 +442,28 @@ const et = /* @__PURE__ */ Y({
442
442
  content: G(() => {
443
443
  var te;
444
444
  return [
445
- d("div", null, [
446
- E((m(), g("section", ft, [
447
- T(c(he), {
445
+ u("div", null, [
446
+ E((h(), g("section", ft, [
447
+ R(c(he), {
448
448
  class: "input-search",
449
- modelValue: h.value,
450
- "onUpdate:modelValue": L[0] || (L[0] = (Q) => h.value = Q),
449
+ modelValue: m.value,
450
+ "onUpdate:modelValue": S[0] || (S[0] = (Q) => m.value = Q),
451
451
  behavior: "simplicity",
452
452
  clearable: ""
453
453
  }, null, 8, ["modelValue"]),
454
- d("section", bt, [
455
- (m(!0), g(
454
+ u("section", bt, [
455
+ (h(!0), g(
456
456
  K,
457
457
  null,
458
- re(B.value, (Q, ce) => E((m(), g("span", {
458
+ re(B.value, (Q, ce) => E((h(), g("span", {
459
459
  class: "group-prompt",
460
460
  key: ce,
461
461
  onClick: (a) => A(Q)
462
462
  }, [
463
- d(
463
+ u(
464
464
  "span",
465
465
  kt,
466
- P(Q.content),
466
+ T(Q.content),
467
467
  1
468
468
  /* TEXT */
469
469
  )
@@ -479,7 +479,7 @@ const et = /* @__PURE__ */ Y({
479
479
  128
480
480
  /* KEYED_FRAGMENT */
481
481
  )),
482
- (te = B.value) != null && te.length ? M("v-if", !0) : (m(), q(c(He), {
482
+ (te = B.value) != null && te.length ? k("v-if", !0) : (h(), q(c(He), {
483
483
  key: 0,
484
484
  class: "exception-wrap-item exception-part",
485
485
  scene: "part",
@@ -493,16 +493,16 @@ const et = /* @__PURE__ */ Y({
493
493
  ];
494
494
  }),
495
495
  default: G(() => [
496
- d(
496
+ u(
497
497
  "section",
498
498
  {
499
499
  style: W({
500
- "--text-height": k.value + "px"
500
+ "--text-height": w.value + "px"
501
501
  }),
502
502
  class: "send-prompt-container"
503
503
  },
504
504
  [
505
- T(c(he), {
505
+ R(c(he), {
506
506
  ref_key: "inputRef",
507
507
  ref: C,
508
508
  class: "send-prompt",
@@ -517,11 +517,11 @@ const et = /* @__PURE__ */ Y({
517
517
  onInput: H,
518
518
  onKeydown: J
519
519
  }, null, 8, ["model-value", "placeholder"]),
520
- v.value ? (m(), q(c(Ee), {
520
+ v.value ? (h(), 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
- })) : M("v-if", !0)
524
+ })) : k("v-if", !0)
525
525
  ],
526
526
  4
527
527
  /* STYLE */
@@ -541,11 +541,11 @@ const et = /* @__PURE__ */ Y({
541
541
  const t = n, s = (i) => {
542
542
  t("select", i);
543
543
  };
544
- return (i, l) => (m(), g("ul", St, [
545
- (m(!0), g(
544
+ return (i, l) => (h(), g("ul", St, [
545
+ (h(!0), g(
546
546
  K,
547
547
  null,
548
- re(i.shortcuts, (e) => (m(), q(c(Pe), {
548
+ re(i.shortcuts, (e) => (h(), q(c(Pe), {
549
549
  class: "ai-blueking-shortcut",
550
550
  key: e.label,
551
551
  theme: "info",
@@ -553,7 +553,7 @@ const et = /* @__PURE__ */ Y({
553
553
  }, {
554
554
  default: G(() => [
555
555
  ee(
556
- P(e.label),
556
+ T(e.label),
557
557
  1
558
558
  /* TEXT */
559
559
  )
@@ -566,7 +566,7 @@ const et = /* @__PURE__ */ Y({
566
566
  ))
567
567
  ]));
568
568
  }
569
- }), zt = /* @__PURE__ */ I(Mt, [["__scopeId", "data-v-266e17ca"]]), Ct = (o) => (ae("data-v-fd57f18d"), o = o(), ie(), o), Bt = /* @__PURE__ */ Ct(() => /* @__PURE__ */ d(
569
+ }), zt = /* @__PURE__ */ I(Mt, [["__scopeId", "data-v-266e17ca"]]), Ct = (o) => (ae("data-v-fd57f18d"), o = o(), ie(), o), Bt = /* @__PURE__ */ Ct(() => /* @__PURE__ */ u(
570
570
  "svg",
571
571
  {
572
572
  width: "10",
@@ -575,7 +575,7 @@ const et = /* @__PURE__ */ Y({
575
575
  "aria-hidden": "true"
576
576
  },
577
577
  [
578
- /* @__PURE__ */ d("use", { "xlink:href": "#ai-blueking-tingzhi" })
578
+ /* @__PURE__ */ u("use", { "xlink:href": "#ai-blueking-tingzhi" })
579
579
  ],
580
580
  -1
581
581
  /* HOISTED */
@@ -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 ? (m(), g("span", {
592
+ return (i, l) => i.isShow ? (h(), 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(c(b)("终止生成")),
599
+ " " + T(c(b)("终止生成")),
600
600
  1
601
601
  /* TEXT */
602
602
  )
603
- ])) : M("v-if", !0);
603
+ ])) : k("v-if", !0);
604
604
  }
605
605
  }), Tt = /* @__PURE__ */ I(Ht, [["__scopeId", "data-v-fd57f18d"]]), Pt = {
606
606
  key: 0,
@@ -626,15 +626,15 @@ const et = /* @__PURE__ */ Y({
626
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 ? (m(), g("section", Pt, [
630
- d(
629
+ return (s, i) => t.value ? (h(), g("section", Pt, [
630
+ u(
631
631
  "span",
632
632
  Rt,
633
- P(t.value),
633
+ T(t.value),
634
634
  1
635
635
  /* TEXT */
636
636
  )
637
- ])) : M("v-if", !0);
637
+ ])) : k("v-if", !0);
638
638
  }
639
639
  }), Dt = /* @__PURE__ */ I(Vt, [["__scopeId", "data-v-55c9a119"]]), Se = (o) => (ae("data-v-de79ff73"), o = o(), ie(), o), xt = {
640
640
  key: 0,
@@ -642,7 +642,7 @@ const et = /* @__PURE__ */ Y({
642
642
  height: "18",
643
643
  class: "scroll-loading-icon",
644
644
  "aria-hidden": "true"
645
- }, Yt = /* @__PURE__ */ Se(() => /* @__PURE__ */ d(
645
+ }, Yt = /* @__PURE__ */ Se(() => /* @__PURE__ */ u(
646
646
  "use",
647
647
  { "xlink:href": "#ai-blueking-loading-2" },
648
648
  null,
@@ -650,7 +650,7 @@ const et = /* @__PURE__ */ Y({
650
650
  /* HOISTED */
651
651
  )), It = [
652
652
  Yt
653
- ], At = { class: "ai-operation" }, Et = { class: "ai-operation-input-wrapper" }, Xt = { class: "ai-cite-tips" }, qt = { class: "ai-operation-input" }, Kt = /* @__PURE__ */ Se(() => /* @__PURE__ */ d(
653
+ ], At = { class: "ai-operation" }, Et = { class: "ai-operation-input-wrapper" }, Xt = { class: "ai-cite-tips" }, qt = { class: "ai-operation-input" }, Kt = /* @__PURE__ */ Se(() => /* @__PURE__ */ u(
654
654
  "i",
655
655
  { class: "ai-blueking-icon ai-blueking-fasong" },
656
656
  null,
@@ -672,12 +672,12 @@ const et = /* @__PURE__ */ Y({
672
672
  },
673
673
  emits: ["ai-click", "change-prompt", "send", "choose-prompt", "scroll-load", "stop"],
674
674
  setup(o, { expose: n, emit: t }) {
675
- const s = o, i = t, l = ue, e = x(""), { selectedText: r, clearSelection: h } = pe(), { isShow: k } = ke(), C = () => {
675
+ const s = o, i = t, l = ue, e = x(""), { selectedText: r, clearSelection: m } = pe(), { isShow: w } = ke(), C = () => {
676
676
  ye(() => {
677
677
  const p = document.querySelector(".ai-blueking-messages");
678
678
  p.scrollTop = p.scrollHeight;
679
679
  });
680
- }, w = Ue((p) => {
680
+ }, L = Ue((p) => {
681
681
  if (s.scrollLoading || s.scrollLoadingEnd)
682
682
  return;
683
683
  p.target.scrollTop < 200 && i("scroll-load");
@@ -696,9 +696,9 @@ const et = /* @__PURE__ */ Y({
696
696
  i("choose-prompt", p);
697
697
  }, H = (p) => {
698
698
  i("change-prompt", p);
699
- }, R = () => {
699
+ }, P = () => {
700
700
  i("stop");
701
- }, u = (p) => {
701
+ }, d = (p) => {
702
702
  const f = p.target;
703
703
  if (f != null && f.classList.contains("ai-blueking-angle-up")) {
704
704
  const y = f == null ? void 0 : f.parentElement;
@@ -706,9 +706,9 @@ const et = /* @__PURE__ */ Y({
706
706
  }
707
707
  f != null && f.classList.contains("ai-clickable") && i("ai-click", f.dataset.ai);
708
708
  }, A = () => {
709
- C(), document.addEventListener("click", u);
709
+ C(), document.addEventListener("click", d);
710
710
  }, J = () => {
711
- window.showTimes = [], document.removeEventListener("click", u);
711
+ window.showTimes = [], document.removeEventListener("click", d);
712
712
  }, Z = (p) => {
713
713
  e.value = p;
714
714
  }, U = (p) => {
@@ -734,7 +734,7 @@ const et = /* @__PURE__ */ Y({
734
734
  }
735
735
  ), ne(A), le(J), n({
736
736
  setInputMessage: Z
737
- }), (p, f) => (m(), g(
737
+ }), (p, f) => (h(), g(
738
738
  "section",
739
739
  {
740
740
  style: W({
@@ -743,35 +743,35 @@ const et = /* @__PURE__ */ Y({
743
743
  class: "ai-content"
744
744
  },
745
745
  [
746
- p.alert ? (m(), q(c(Re), {
746
+ p.alert ? (h(), q(c(Re), {
747
747
  key: 0,
748
748
  title: p.alert,
749
749
  theme: "warning",
750
750
  closable: ""
751
- }, null, 8, ["title"])) : M("v-if", !0),
752
- d(
751
+ }, null, 8, ["title"])) : k("v-if", !0),
752
+ u(
753
753
  "ul",
754
754
  {
755
755
  class: "ai-messages ai-blueking-messages",
756
756
  onScrollPassive: f[0] || (f[0] = //@ts-ignore
757
- (...y) => c(w) && c(w)(...y))
757
+ (...y) => c(L) && c(L)(...y))
758
758
  },
759
759
  [
760
- p.scrollLoading ? (m(), g("svg", xt, It)) : M("v-if", !0),
761
- (m(!0), g(
760
+ p.scrollLoading ? (h(), g("svg", xt, It)) : k("v-if", !0),
761
+ (h(!0), g(
762
762
  K,
763
763
  null,
764
- re(p.messages, (y) => (m(), g(
764
+ re(p.messages, (y) => (h(), g(
765
765
  K,
766
766
  {
767
767
  key: y.content
768
768
  },
769
769
  [
770
- T(Dt, {
770
+ R(Dt, {
771
771
  class: "render-message",
772
772
  message: y
773
773
  }, null, 8, ["message"]),
774
- T(vt, {
774
+ R(vt, {
775
775
  class: "render-message",
776
776
  message: y,
777
777
  "user-photo": p.userPhoto
@@ -787,8 +787,8 @@ const et = /* @__PURE__ */ Y({
787
787
  32
788
788
  /* NEED_HYDRATION */
789
789
  ),
790
- d("section", At, [
791
- d(
790
+ u("section", At, [
791
+ u(
792
792
  "section",
793
793
  {
794
794
  class: "ai-operation-tools",
@@ -796,47 +796,47 @@ const et = /* @__PURE__ */ Y({
796
796
  }, ["prevent"]))
797
797
  },
798
798
  [
799
- T(_e),
800
- T(Tt, {
799
+ R(_e),
800
+ R(Tt, {
801
801
  "is-show": p.loading,
802
- onStop: R
802
+ onStop: P
803
803
  }, null, 8, ["is-show"])
804
804
  ],
805
805
  32
806
806
  /* NEED_HYDRATION */
807
807
  ),
808
- d("section", Et, [
809
- c(r) ? (m(), g(
808
+ u("section", Et, [
809
+ c(r) ? (h(), g(
810
810
  "div",
811
811
  {
812
812
  key: 0,
813
- class: $(["ai-cite-container", { "is-back-show": !c(k) }]),
813
+ class: $(["ai-cite-container", { "is-back-show": !c(w) }]),
814
814
  onMousedown: f[2] || (f[2] = D(() => {
815
815
  }, ["prevent"]))
816
816
  },
817
817
  [
818
- T(we, {
818
+ R(we, {
819
819
  "show-close-icon": !0,
820
820
  text: c(r),
821
- onClose: c(h)
821
+ onClose: c(m)
822
822
  }, null, 8, ["text", "onClose"]),
823
- d(
823
+ u(
824
824
  "span",
825
825
  Xt,
826
- P(c(b)("想对选中的文本做什么")),
826
+ T(c(b)("想对选中的文本做什么")),
827
827
  1
828
828
  /* TEXT */
829
829
  ),
830
- T(zt, {
830
+ R(zt, {
831
831
  shortcuts: p.shortcuts,
832
832
  onSelect: U
833
833
  }, null, 8, ["shortcuts"])
834
834
  ],
835
835
  34
836
836
  /* CLASS, NEED_HYDRATION */
837
- )) : M("v-if", !0),
838
- d("section", qt, [
839
- T(Lt, {
837
+ )) : k("v-if", !0),
838
+ u("section", qt, [
839
+ R(Lt, {
840
840
  value: e.value,
841
841
  "onUpdate:value": f[3] || (f[3] = (y) => e.value = y),
842
842
  placeholder: p.placeholder,
@@ -845,7 +845,7 @@ const et = /* @__PURE__ */ Y({
845
845
  onChoosePrompt: z,
846
846
  onEnter: B
847
847
  }, null, 8, ["value", "placeholder", "prompts"]),
848
- E((m(), q(c(Ve), {
848
+ E((h(), q(c(Ve), {
849
849
  class: "ai-operation-button",
850
850
  disabled: p.loading || !e.value,
851
851
  size: "large",
@@ -855,7 +855,7 @@ const et = /* @__PURE__ */ Y({
855
855
  default: G(() => [
856
856
  Kt,
857
857
  ee(
858
- " " + P(c(b)("发送")),
858
+ " " + T(c(b)("发送")),
859
859
  1
860
860
  /* TEXT */
861
861
  )
@@ -912,17 +912,17 @@ const et = /* @__PURE__ */ Y({
912
912
  clientX: 0,
913
913
  clientY: 0
914
914
  }, r = () => {
915
- var S, V, O, N;
915
+ var M, V, O, N;
916
916
  const a = (F, Me) => F === void 0 ? Me : F;
917
917
  return {
918
- top: a((S = t.startPosition) == null ? void 0 : S.top, l.height - t.sizeLimit.height),
918
+ top: a((M = t.startPosition) == null ? void 0 : M.top, l.height - t.sizeLimit.height),
919
919
  bottom: a((V = t.startPosition) == null ? void 0 : V.bottom, 0),
920
920
  left: a((O = t.startPosition) == null ? void 0 : O.left, 0),
921
921
  right: a((N = t.startPosition) == null ? void 0 : N.right, l.width - t.sizeLimit.width)
922
922
  };
923
- }, h = x(r()), k = X(() => h.value.top <= t.positionLimit.top && h.value.bottom <= t.positionLimit.bottom), C = (a) => {
923
+ }, m = x(r()), w = X(() => m.value.top <= t.positionLimit.top && m.value.bottom <= t.positionLimit.bottom), C = (a) => {
924
924
  s("choose-model", a);
925
- }, w = (a) => {
925
+ }, L = (a) => {
926
926
  e.isMove = !0, e.type = "move", e.clientX = a.clientX, e.clientY = a.clientY;
927
927
  }, B = (a) => {
928
928
  e.isMove = !0, e.type = "rightDrag", e.clientX = a.clientX;
@@ -930,9 +930,9 @@ const et = /* @__PURE__ */ Y({
930
930
  e.isMove = !0, e.type = "leftDrag", e.clientX = a.clientX;
931
931
  }, H = (a) => {
932
932
  e.isMove = !0, e.type = "topDrag", e.clientY = a.clientY;
933
- }, R = (a) => {
933
+ }, P = (a) => {
934
934
  e.isMove = !0, e.type = "bottomDrag", e.clientY = a.clientY;
935
- }, u = (a) => {
935
+ }, d = (a) => {
936
936
  e.isMove = !0, e.type = "topLeftDrag", e.clientY = a.clientY, e.clientX = a.clientX;
937
937
  }, A = (a) => {
938
938
  e.isMove = !0, e.type = "topRightDrag", e.clientY = a.clientY, e.clientX = a.clientX;
@@ -942,23 +942,23 @@ const et = /* @__PURE__ */ Y({
942
942
  e.isMove = !0, e.type = "bottomRightDrag", e.clientY = a.clientY, e.clientX = a.clientX;
943
943
  }, U = () => {
944
944
  e.isMove = !1;
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));
945
+ }, p = (a, M) => {
946
+ ["move", "leftDrag"].includes(e.type) && (m.value.left += a), ["move", "rightDrag"].includes(e.type) && (m.value.right -= a), ["move", "topDrag"].includes(e.type) && (m.value.top += M), ["move", "bottomDrag"].includes(e.type) && (m.value.bottom -= M), ["topLeftDrag"].includes(e.type) && (m.value.left += a, m.value.top += M), ["topRightDrag"].includes(e.type) && (m.value.right -= a, m.value.top += M), ["bottomLeftDrag"].includes(e.type) && (m.value.left += a, m.value.bottom -= M), ["bottomRightDrag"].includes(e.type) && (m.value.right -= a, m.value.bottom -= M);
947
+ }, f = (a, M) => {
948
+ const { top: V, bottom: O, left: N, right: F } = m.value;
949
+ (l.width - N - F < t.sizeLimit.width || N < t.positionLimit.left || F < t.positionLimit.right) && (["move", "leftDrag", "topLeftDrag", "bottomLeftDrag"].includes(e.type) && (m.value.left -= a), ["move", "rightDrag", "topRightDrag", "bottomRightDrag"].includes(e.type) && (m.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) && (m.value.top -= M), ["move", "bottomDrag", "bottomLeftDrag", "bottomRightDrag"].includes(e.type) && (m.value.bottom += M));
950
950
  }, y = (a) => {
951
951
  if (!e.isMove)
952
952
  return;
953
953
  a.preventDefault();
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;
954
+ const M = a.clientX - e.clientX, V = a.clientY - e.clientY;
955
+ p(M, V), f(M, V), e.clientX = a.clientX, e.clientY = a.clientY;
956
956
  }, v = () => {
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;
957
+ l.height = window.innerHeight, l.width = window.innerWidth, m.value = r();
958
+ }, S = () => {
959
+ m.value.top = t.positionLimit.top, m.value.bottom = t.positionLimit.bottom;
960
960
  }, te = () => {
961
- h.value.top = l.height - t.sizeLimit.height, h.value.bottom = t.positionLimit.bottom;
961
+ m.value.top = l.height - t.sizeLimit.height, m.value.bottom = t.positionLimit.bottom;
962
962
  }, Q = () => {
963
963
  s("clear");
964
964
  }, ce = () => {
@@ -968,30 +968,30 @@ const et = /* @__PURE__ */ Y({
968
968
  window.addEventListener("mousemove", y, !0), window.addEventListener("mouseup", U), window.addEventListener("resize", v);
969
969
  }), le(() => {
970
970
  window.removeEventListener("mousemove", y, !0), window.removeEventListener("mouseup", U), window.removeEventListener("resize", v);
971
- }), (a, S) => (m(), g(
971
+ }), (a, M) => (h(), g(
972
972
  "section",
973
973
  {
974
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
+ top: m.value.top + "px",
976
+ bottom: m.value.bottom + "px",
977
+ left: m.value.left + "px",
978
+ right: m.value.right + "px"
979
979
  }),
980
980
  class: "ai-modal"
981
981
  },
982
982
  [
983
- d(
983
+ u(
984
984
  "header",
985
985
  {
986
986
  style: W({
987
987
  background: a.headBackground
988
988
  }),
989
989
  class: "ai-modal-header",
990
- onMousedown: D(w, ["stop"])
990
+ onMousedown: D(L, ["stop"])
991
991
  },
992
992
  [
993
- d("span", jt, [
994
- d(
993
+ u("span", jt, [
994
+ u(
995
995
  "i",
996
996
  {
997
997
  class: $(a.logo)
@@ -1001,11 +1001,11 @@ const et = /* @__PURE__ */ Y({
1001
1001
  /* CLASS */
1002
1002
  ),
1003
1003
  ee(
1004
- " " + P(a.name || c(b)("小鲸")) + " ",
1004
+ " " + T(a.name || c(b)("小鲸")) + " ",
1005
1005
  1
1006
1006
  /* TEXT */
1007
1007
  ),
1008
- a.models ? (m(), q(c(ge), {
1008
+ a.models ? (h(), q(c(ge), {
1009
1009
  key: 0,
1010
1010
  class: "ai-modal-header-models",
1011
1011
  "model-value": a.model,
@@ -1013,10 +1013,10 @@ const et = /* @__PURE__ */ Y({
1013
1013
  onChange: C
1014
1014
  }, {
1015
1015
  default: G(() => [
1016
- (m(!0), g(
1016
+ (h(!0), g(
1017
1017
  K,
1018
1018
  null,
1019
- re(a.models, (V) => (m(), q(c(ge).Option, {
1019
+ re(a.models, (V) => (h(), q(c(ge).Option, {
1020
1020
  key: V.id,
1021
1021
  name: V.name,
1022
1022
  value: V.id
@@ -1027,10 +1027,10 @@ const et = /* @__PURE__ */ Y({
1027
1027
  ]),
1028
1028
  _: 1
1029
1029
  /* STABLE */
1030
- }, 8, ["model-value"])) : M("v-if", !0)
1030
+ }, 8, ["model-value"])) : k("v-if", !0)
1031
1031
  ]),
1032
- d("span", null, [
1033
- k.value ? E((m(), g(
1032
+ u("span", null, [
1033
+ w.value ? E((h(), g(
1034
1034
  "i",
1035
1035
  {
1036
1036
  key: 0,
@@ -1045,12 +1045,12 @@ const et = /* @__PURE__ */ Y({
1045
1045
  content: c(b)("向下收缩"),
1046
1046
  distance: 20
1047
1047
  }]
1048
- ]) : E((m(), g(
1048
+ ]) : E((h(), g(
1049
1049
  "i",
1050
1050
  {
1051
1051
  key: 1,
1052
1052
  class: "ai-header-tool ai-blueking-icon ai-blueking-shangxialashen-2",
1053
- onClick: L
1053
+ onClick: S
1054
1054
  },
1055
1055
  null,
1056
1056
  512
@@ -1061,7 +1061,7 @@ const et = /* @__PURE__ */ Y({
1061
1061
  distance: 20
1062
1062
  }]
1063
1063
  ]),
1064
- E(d(
1064
+ E(u(
1065
1065
  "i",
1066
1066
  {
1067
1067
  class: "ai-header-tool ai-blueking-icon ai-blueking-saoba",
@@ -1076,7 +1076,7 @@ const et = /* @__PURE__ */ Y({
1076
1076
  distance: 20
1077
1077
  }]
1078
1078
  ]),
1079
- E(d(
1079
+ E(u(
1080
1080
  "i",
1081
1081
  {
1082
1082
  class: "ai-header-tool ai-blueking-icon ai-blueking-shanchu-2",
@@ -1097,7 +1097,7 @@ const et = /* @__PURE__ */ Y({
1097
1097
  /* STYLE, NEED_HYDRATION */
1098
1098
  ),
1099
1099
  Ye(a.$slots, "default", {}, void 0, !0),
1100
- d(
1100
+ u(
1101
1101
  "span",
1102
1102
  {
1103
1103
  class: "drag-line left",
@@ -1107,7 +1107,7 @@ const et = /* @__PURE__ */ Y({
1107
1107
  32
1108
1108
  /* NEED_HYDRATION */
1109
1109
  ),
1110
- d(
1110
+ u(
1111
1111
  "span",
1112
1112
  {
1113
1113
  class: "drag-line right",
@@ -1117,7 +1117,7 @@ const et = /* @__PURE__ */ Y({
1117
1117
  32
1118
1118
  /* NEED_HYDRATION */
1119
1119
  ),
1120
- d(
1120
+ u(
1121
1121
  "span",
1122
1122
  {
1123
1123
  class: "drag-line top",
@@ -1127,27 +1127,27 @@ const et = /* @__PURE__ */ Y({
1127
1127
  32
1128
1128
  /* NEED_HYDRATION */
1129
1129
  ),
1130
- d(
1130
+ u(
1131
1131
  "span",
1132
1132
  {
1133
1133
  class: "drag-line bottom",
1134
- onMousedown: D(R, ["stop"])
1134
+ onMousedown: D(P, ["stop"])
1135
1135
  },
1136
1136
  null,
1137
1137
  32
1138
1138
  /* NEED_HYDRATION */
1139
1139
  ),
1140
- d(
1140
+ u(
1141
1141
  "span",
1142
1142
  {
1143
1143
  class: "drag-line top-left-corner",
1144
- onMousedown: D(u, ["stop"])
1144
+ onMousedown: D(d, ["stop"])
1145
1145
  },
1146
1146
  null,
1147
1147
  32
1148
1148
  /* NEED_HYDRATION */
1149
1149
  ),
1150
- d(
1150
+ u(
1151
1151
  "span",
1152
1152
  {
1153
1153
  class: "drag-line top-right-corner",
@@ -1157,7 +1157,7 @@ const et = /* @__PURE__ */ Y({
1157
1157
  32
1158
1158
  /* NEED_HYDRATION */
1159
1159
  ),
1160
- d(
1160
+ u(
1161
1161
  "span",
1162
1162
  {
1163
1163
  class: "drag-line bottom-left-corner",
@@ -1167,7 +1167,7 @@ const et = /* @__PURE__ */ Y({
1167
1167
  32
1168
1168
  /* NEED_HYDRATION */
1169
1169
  ),
1170
- d(
1170
+ u(
1171
1171
  "span",
1172
1172
  {
1173
1173
  class: "drag-line bottom-right-corner",
@@ -1182,7 +1182,7 @@ const et = /* @__PURE__ */ Y({
1182
1182
  /* STYLE */
1183
1183
  ));
1184
1184
  }
1185
- }), Gt = /* @__PURE__ */ I(Wt, [["__scopeId", "data-v-01d5a54a"]]), Jt = (o) => (ae("data-v-d5e26041"), o = o(), ie(), o), Zt = /* @__PURE__ */ Jt(() => /* @__PURE__ */ d(
1185
+ }), Gt = /* @__PURE__ */ I(Wt, [["__scopeId", "data-v-01d5a54a"]]), Jt = (o) => (ae("data-v-b3f7ed37"), o = o(), ie(), o), Zt = /* @__PURE__ */ Jt(() => /* @__PURE__ */ u(
1186
1186
  "i",
1187
1187
  { class: "ai-blueking-icon ai-blueking-ai" },
1188
1188
  null,
@@ -1195,7 +1195,7 @@ const et = /* @__PURE__ */ Y({
1195
1195
  const { isIconVisible: t, iconPosition: s } = pe(), i = n, l = () => {
1196
1196
  i("click"), t.value = !1;
1197
1197
  };
1198
- return (e, r) => c(t) ? (m(), g(
1198
+ return (e, r) => c(t) ? (h(), g(
1199
1199
  "div",
1200
1200
  {
1201
1201
  key: 0,
@@ -1205,15 +1205,15 @@ const et = /* @__PURE__ */ Y({
1205
1205
  }, ["prevent"]))
1206
1206
  },
1207
1207
  [
1208
- d("div", {
1208
+ u("div", {
1209
1209
  class: "popup-content",
1210
1210
  onClick: l
1211
1211
  }, [
1212
1212
  Zt,
1213
- d(
1213
+ u(
1214
1214
  "span",
1215
1215
  Ot,
1216
- P(c(b)("问小鲸")),
1216
+ T(c(b)("问小鲸")),
1217
1217
  1
1218
1218
  /* TEXT */
1219
1219
  )
@@ -1221,9 +1221,9 @@ const et = /* @__PURE__ */ Y({
1221
1221
  ],
1222
1222
  36
1223
1223
  /* STYLE, NEED_HYDRATION */
1224
- )) : M("v-if", !0);
1224
+ )) : k("v-if", !0);
1225
1225
  }
1226
- }), Ft = /* @__PURE__ */ I(Nt, [["__scopeId", "data-v-d5e26041"]]), ao = /* @__PURE__ */ Y({
1226
+ }), Ft = /* @__PURE__ */ I(Nt, [["__scopeId", "data-v-b3f7ed37"]]), ao = /* @__PURE__ */ Y({
1227
1227
  __name: "ai-blueking",
1228
1228
  props: {
1229
1229
  messages: {},
@@ -1244,81 +1244,85 @@ const et = /* @__PURE__ */ Y({
1244
1244
  models: {},
1245
1245
  model: {},
1246
1246
  isShow: { type: Boolean },
1247
- shortcuts: {}
1247
+ shortcuts: {},
1248
+ enableCursorPopup: { type: Boolean, default: !0 }
1248
1249
  },
1249
1250
  emits: ["clear", "close", "scroll-load", "stop", "ai-click", "change-prompt", "update:model", "choose-prompt", "send", "update:isShow"],
1250
1251
  setup(o, { expose: n, emit: t }) {
1251
- const s = t, i = x(), l = (u) => {
1252
+ const s = t, i = x(), l = (d) => {
1252
1253
  var A;
1253
- (A = i.value) == null || A.setInputMessage(u);
1254
+ (A = i.value) == null || A.setInputMessage(d);
1254
1255
  }, e = () => {
1255
1256
  s("update:isShow", !0);
1256
1257
  }, r = () => {
1257
1258
  s("clear");
1258
- }, h = () => {
1259
+ }, m = () => {
1259
1260
  s("update:isShow", !1), s("close");
1260
- }, k = (u) => {
1261
- s("update:model", u);
1262
- }, C = (u) => {
1263
- s("send", u);
1264
- }, w = () => {
1261
+ }, w = (d) => {
1262
+ s("update:model", d);
1263
+ }, C = (d) => {
1264
+ s("send", d);
1265
+ }, L = () => {
1265
1266
  s("stop");
1266
1267
  }, B = () => {
1267
1268
  s("scroll-load");
1268
- }, z = (u) => {
1269
- s("ai-click", u);
1270
- }, H = (u) => {
1271
- s("choose-prompt", u);
1272
- }, R = (u) => {
1273
- s("change-prompt", u);
1269
+ }, z = (d) => {
1270
+ s("ai-click", d);
1271
+ }, H = (d) => {
1272
+ s("choose-prompt", d);
1273
+ }, P = (d) => {
1274
+ s("change-prompt", d);
1274
1275
  };
1275
1276
  return n({
1276
1277
  setInputMessage: l
1277
- }), (u, A) => (m(), g(
1278
+ }), (d, A) => (h(), g(
1278
1279
  K,
1279
1280
  null,
1280
1281
  [
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,
1290
- onChooseModel: k,
1282
+ E(R(Gt, {
1283
+ "head-background": d.headBackground,
1284
+ logo: d.logo,
1285
+ model: d.model,
1286
+ models: d.models,
1287
+ name: d.name,
1288
+ "position-limit": d.positionLimit,
1289
+ "size-limit": d.sizeLimit,
1290
+ "start-position": d.startPosition,
1291
+ onChooseModel: w,
1291
1292
  onClear: r,
1292
- onClose: h
1293
+ onClose: m
1293
1294
  }, {
1294
1295
  default: G(() => [
1295
- T(Qt, {
1296
+ R(Qt, {
1296
1297
  ref_key: "contentRef",
1297
1298
  ref: i,
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,
1299
+ alert: d.alert,
1300
+ background: d.background,
1301
+ loading: d.loading,
1302
+ messages: d.messages,
1303
+ placeholder: d.placeholder,
1304
+ prompts: d.prompts,
1305
+ "scroll-loading": d.scrollLoading,
1306
+ "scroll-loading-end": d.scrollLoadingEnd,
1307
+ shortcuts: d.shortcuts,
1308
+ "user-photo": d.userPhoto,
1308
1309
  onAiClick: z,
1309
- onChangePrompt: R,
1310
+ onChangePrompt: P,
1310
1311
  onChoosePrompt: H,
1311
1312
  onScrollLoad: B,
1312
1313
  onSend: C,
1313
- onStop: w
1314
+ onStop: L
1314
1315
  }, null, 8, ["alert", "background", "loading", "messages", "placeholder", "prompts", "scroll-loading", "scroll-loading-end", "shortcuts", "user-photo"])
1315
1316
  ]),
1316
1317
  _: 1
1317
1318
  /* STABLE */
1318
1319
  }, 8, ["head-background", "logo", "model", "models", "name", "position-limit", "size-limit", "start-position"]), [
1319
- [fe, u.isShow]
1320
+ [fe, d.isShow]
1320
1321
  ]),
1321
- T(Ft, { onClick: e })
1322
+ d.enableCursorPopup ? (h(), q(Ft, {
1323
+ key: 0,
1324
+ onClick: e
1325
+ })) : k("v-if", !0)
1322
1326
  ],
1323
1327
  64
1324
1328
  /* STABLE_FRAGMENT */
@@ -1361,22 +1365,22 @@ class io {
1361
1365
  const e = l.body.pipeThrough(new window.TextDecoderStream()).getReader();
1362
1366
  for (; ; )
1363
1367
  try {
1364
- const { value: r, done: h } = await e.read();
1368
+ const { value: r, done: m } = await e.read();
1365
1369
  if (!l.ok) {
1366
1370
  this.handleError(r || l.statusText, l.status, t);
1367
1371
  break;
1368
1372
  }
1369
- if (h) {
1373
+ if (m) {
1370
1374
  this.handleEnd(t);
1371
1375
  break;
1372
1376
  }
1373
1377
  r.toString().split(`
1374
1378
  `).forEach((C) => {
1375
- const w = C.replace("data:", "").trim();
1376
- if (Ke(w)) {
1377
- const { event: B, content: z, result: H, code: R, message: u } = JSON.parse(w);
1379
+ const L = C.replace("data:", "").trim();
1380
+ if (Ke(L)) {
1381
+ const { event: B, content: z, result: H, code: P, message: d } = JSON.parse(L);
1378
1382
  if (H === !1 || l.status !== 200) {
1379
- this.handleError(u, R, t);
1383
+ this.handleError(d, P, t);
1380
1384
  return;
1381
1385
  }
1382
1386
  switch (B) {
@@ -1387,7 +1391,7 @@ class io {
1387
1391
  this.handleEnd(t);
1388
1392
  break;
1389
1393
  case "error":
1390
- this.handleError(u, R, t);
1394
+ this.handleError(d, P, t);
1391
1395
  break;
1392
1396
  }
1393
1397
  }