page-agent-sdk 4.19.0 → 4.19.2
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.
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/dist/page-agent-sdk.headless.js +2 -2
- package/dist/page-agent-sdk.iife.js +3 -3
- package/dist/page-agent-sdk.js +35 -32
- package/dist/page-agent-sdk.legacy.js +37 -34
- package/dist/page-agent-sdk.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/index.d.ts +1 -1
package/dist/page-agent-sdk.js
CHANGED
|
@@ -20352,7 +20352,7 @@ var ND = {
|
|
|
20352
20352
|
quoteChipTitle: "将随下一条消息作为引用发送(❝ 划词引用)",
|
|
20353
20353
|
quoteRemove: "移除引用",
|
|
20354
20354
|
screenshotAlt: "截图查看(点击放大)",
|
|
20355
|
-
selectionMenuLabel: "
|
|
20355
|
+
selectionMenuLabel: "引用到 AI 助手",
|
|
20356
20356
|
selectionMenuTitle: "把选中文本作为引用加入对话框,随下一条消息发给 AI",
|
|
20357
20357
|
imageCountLimitPrefix: "单轮最多 ",
|
|
20358
20358
|
imageCountLimitSuffix: " 张图片",
|
|
@@ -20584,7 +20584,7 @@ var ND = {
|
|
|
20584
20584
|
quoteChipTitle: "Will be quoted with your next message",
|
|
20585
20585
|
quoteRemove: "Remove quote",
|
|
20586
20586
|
screenshotAlt: "Screenshot (click to enlarge)",
|
|
20587
|
-
selectionMenuLabel: "Quote to
|
|
20587
|
+
selectionMenuLabel: "Quote to AI assistant",
|
|
20588
20588
|
selectionMenuTitle: "Add the selected text to the dialog as a quote, sent with your next message",
|
|
20589
20589
|
imageCountLimitPrefix: "Up to ",
|
|
20590
20590
|
imageCountLimitSuffix: " images per message",
|
|
@@ -31384,22 +31384,25 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31384
31384
|
autoQuote: { type: Boolean }
|
|
31385
31385
|
},
|
|
31386
31386
|
setup(e) {
|
|
31387
|
-
let t = e, n = zD(), { inputText: r, send: i, keydown: a, canUndo: o, undo: s, focuses: c, removeFocus: l, focusChipClick: u, icons: d, messages: f, quote: p, clearQuote: m, setQuote: h } = n, { state: g, stop: _, sendMessage: v } = n.chat, { pendingImages: y, addImageFiles: b, removePendingImage: x, imageInputError: S, compressingImages: C } = n, w = () => {
|
|
31387
|
+
let t = e, n = zD(), { inputText: r, send: i, keydown: a, canUndo: o, undo: s, focuses: c, removeFocus: l, focusChipClick: u, icons: d, messages: f, quote: p, clearQuote: m, setQuote: h } = n, { state: g, stop: _, sendMessage: v } = n.chat, { pendingImages: y, addImageFiles: b, removePendingImage: x, imageInputError: S, compressingImages: C } = n, w = (e) => {
|
|
31388
|
+
let t = f.quoteChipTitle;
|
|
31389
|
+
return e.source ? `${e.source}\n\n${e.text}\n\n${t}` : `${e.text}\n\n${t}`;
|
|
31390
|
+
}, T = () => {
|
|
31388
31391
|
if (!t.autoQuote || typeof document > "u") return;
|
|
31389
31392
|
let e = Fu(document);
|
|
31390
31393
|
e && h(e);
|
|
31391
|
-
},
|
|
31394
|
+
}, E = /* @__PURE__ */ W(null), D = /* @__PURE__ */ W(!1), O = () => E.value?.click(), k = (e) => {
|
|
31392
31395
|
let t = e.target.files;
|
|
31393
31396
|
t?.length && b(t), e.target.value = "";
|
|
31394
|
-
},
|
|
31395
|
-
|
|
31397
|
+
}, A = (e) => {
|
|
31398
|
+
D.value = !1;
|
|
31396
31399
|
let n = e.dataTransfer?.files;
|
|
31397
31400
|
if (n?.length) {
|
|
31398
31401
|
b(n);
|
|
31399
31402
|
return;
|
|
31400
31403
|
}
|
|
31401
|
-
t.onDropElement &&
|
|
31402
|
-
},
|
|
31404
|
+
t.onDropElement && te?.isConnected && (t.onDropElement(te), te = null);
|
|
31405
|
+
}, ee = (e) => {
|
|
31403
31406
|
let t = e.clipboardData?.items;
|
|
31404
31407
|
if (!t) return;
|
|
31405
31408
|
let n = [];
|
|
@@ -31408,32 +31411,32 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31408
31411
|
t && n.push(t);
|
|
31409
31412
|
}
|
|
31410
31413
|
n.length && b(n);
|
|
31411
|
-
},
|
|
31414
|
+
}, j = (e) => {
|
|
31412
31415
|
t.gatePending || g.loading || v(e.prompt);
|
|
31413
|
-
},
|
|
31414
|
-
e.target instanceof Element && (
|
|
31415
|
-
|
|
31416
|
+
}, te = null, M = null, ne = (e) => {
|
|
31417
|
+
e.target instanceof Element && (te = e.target, M && clearTimeout(M), M = setTimeout(() => {
|
|
31418
|
+
te = null;
|
|
31416
31419
|
}, 2e3));
|
|
31417
|
-
},
|
|
31418
|
-
|
|
31420
|
+
}, re = () => {
|
|
31421
|
+
te = null;
|
|
31419
31422
|
};
|
|
31420
31423
|
return pa(() => {
|
|
31421
|
-
t.onDropElement && (window.addEventListener("dragstart",
|
|
31424
|
+
t.onDropElement && (window.addEventListener("dragstart", ne, !0), window.addEventListener("dragend", re, !0));
|
|
31422
31425
|
}), ga(() => {
|
|
31423
|
-
window.removeEventListener("dragstart",
|
|
31426
|
+
window.removeEventListener("dragstart", ne, !0), window.removeEventListener("dragend", re, !0), M && clearTimeout(M);
|
|
31424
31427
|
}), (t, n) => (J(), Y("div", aF, [G(o) ? (J(), Y("button", {
|
|
31425
31428
|
key: 0,
|
|
31426
31429
|
class: "undo-foot-btn",
|
|
31427
31430
|
title: G(f).undoTitle,
|
|
31428
31431
|
onClick: n[0] ||= (...e) => G(s) && G(s)(...e)
|
|
31429
31432
|
}, H(G(f).undo), 9, oF)) : Z("", !0), X("div", {
|
|
31430
|
-
class: Je(["chat-input-wrap", { "drag-over":
|
|
31431
|
-
onPointerdownCapture:
|
|
31432
|
-
onDragover: n[5] ||= Fl((e) =>
|
|
31433
|
-
onDragleave: n[6] ||= (e) =>
|
|
31434
|
-
onDrop: Fl(
|
|
31433
|
+
class: Je(["chat-input-wrap", { "drag-over": D.value }]),
|
|
31434
|
+
onPointerdownCapture: T,
|
|
31435
|
+
onDragover: n[5] ||= Fl((e) => D.value = !0, ["prevent"]),
|
|
31436
|
+
onDragleave: n[6] ||= (e) => D.value = !1,
|
|
31437
|
+
onDrop: Fl(A, ["prevent"])
|
|
31435
31438
|
}, [
|
|
31436
|
-
|
|
31439
|
+
D.value ? (J(), Y("div", sF, [n[7] ||= X("svg", {
|
|
31437
31440
|
class: "drop-hint-icon",
|
|
31438
31441
|
viewBox: "0 0 24 24",
|
|
31439
31442
|
fill: "none",
|
|
@@ -31463,7 +31466,7 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31463
31466
|
disabled: e.gatePending || G(g).loading,
|
|
31464
31467
|
"data-test": `quick-action-${n}`,
|
|
31465
31468
|
title: t.prompt,
|
|
31466
|
-
onClick: (e) =>
|
|
31469
|
+
onClick: (e) => j(t)
|
|
31467
31470
|
}, H(t.icon ? `${t.icon} ` : "") + H(t.label), 9, lF))), 128))])) : Z("", !0),
|
|
31468
31471
|
G(c).length || G(y).length || G(p) || G(S) ? (J(), Y("div", uF, [
|
|
31469
31472
|
G(c).length ? (J(), Y("div", dF, [(J(!0), Y(q, null, Ca(G(c), (e) => (J(), Y("span", {
|
|
@@ -31484,10 +31487,10 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31484
31487
|
], 8, fF))), 128))])) : Z("", !0),
|
|
31485
31488
|
G(p) ? (J(), Y("div", gF, [X("span", {
|
|
31486
31489
|
class: "quote-chip",
|
|
31487
|
-
title: G(
|
|
31490
|
+
title: w(G(p))
|
|
31488
31491
|
}, [
|
|
31489
31492
|
n[8] ||= X("span", { class: "quote-chip-icon" }, "❝", -1),
|
|
31490
|
-
X("span", vF, H(G(p).
|
|
31493
|
+
X("span", vF, H(G(p).text), 1),
|
|
31491
31494
|
X("button", {
|
|
31492
31495
|
type: "button",
|
|
31493
31496
|
class: "focus-chip-x",
|
|
@@ -31520,7 +31523,7 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31520
31523
|
rows: e.inputRows,
|
|
31521
31524
|
disabled: e.gatePending,
|
|
31522
31525
|
onKeydown: n[3] ||= (...e) => G(a) && G(a)(...e),
|
|
31523
|
-
onPaste:
|
|
31526
|
+
onPaste: ee
|
|
31524
31527
|
}, null, 40, EF), [[Ml, G(r)]]),
|
|
31525
31528
|
X("div", DF, [
|
|
31526
31529
|
X("span", OF, H(G(f).sendHint), 1),
|
|
@@ -31529,20 +31532,20 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31529
31532
|
title: G(f).attachImageTitle,
|
|
31530
31533
|
disabled: e.gatePending,
|
|
31531
31534
|
"data-test": "attach-btn",
|
|
31532
|
-
onClick:
|
|
31535
|
+
onClick: O
|
|
31533
31536
|
}, [G(d).attachImage ? (J(), xs(xk, {
|
|
31534
31537
|
key: 0,
|
|
31535
31538
|
icon: G(d).attachImage
|
|
31536
31539
|
}, null, 8, ["icon"])) : (J(), Y("svg", AF, [...n[9] ||= [X("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)]]))], 8, kF),
|
|
31537
31540
|
X("input", {
|
|
31538
31541
|
ref_key: "fileInput",
|
|
31539
|
-
ref:
|
|
31542
|
+
ref: E,
|
|
31540
31543
|
type: "file",
|
|
31541
31544
|
accept: "image/*",
|
|
31542
31545
|
multiple: "",
|
|
31543
31546
|
hidden: "",
|
|
31544
31547
|
"data-test": "attach-input",
|
|
31545
|
-
onChange:
|
|
31548
|
+
onChange: k
|
|
31546
31549
|
}, null, 544),
|
|
31547
31550
|
X("button", {
|
|
31548
31551
|
class: Je(["send-btn", { "stop-btn": G(g).loading }]),
|
|
@@ -31567,7 +31570,7 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
31567
31570
|
])
|
|
31568
31571
|
], 34)]));
|
|
31569
31572
|
}
|
|
31570
|
-
}), [["__scopeId", "data-v-
|
|
31573
|
+
}), [["__scopeId", "data-v-1580c76b"]]), FF = {
|
|
31571
31574
|
key: 0,
|
|
31572
31575
|
class: "debug-drawer"
|
|
31573
31576
|
}, IF = { class: "drawer-header" }, LF = { class: "tab-group" }, RF = { class: "header-actions" }, zF = ["title"], BF = ["title"], VF = ["title"], HF = {
|
|
@@ -32566,7 +32569,7 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
32566
32569
|
onClick: _
|
|
32567
32570
|
}, "❝ " + H(G(r).selectionMenuLabel), 41, Gz)], 4), [[Xc, i.value]])]));
|
|
32568
32571
|
}
|
|
32569
|
-
}), [["__scopeId", "data-v-
|
|
32572
|
+
}), [["__scopeId", "data-v-19e6dbb4"]]), qz = { class: "skill-panel" }, Jz = { class: "skill-header" }, Yz = { class: "skill-title" }, Xz = ["title"], Zz = { class: "skill-section" }, Qz = { class: "section-title" }, $z = ["title"], eB = { class: "field" }, tB = { class: "field-label" }, nB = ["disabled", "placeholder"], rB = { class: "field" }, iB = { class: "field-label" }, aB = ["placeholder"], oB = { class: "field field-textarea" }, sB = { class: "field-label" }, cB = ["placeholder"], lB = {
|
|
32570
32573
|
key: 0,
|
|
32571
32574
|
class: "skill-error"
|
|
32572
32575
|
}, uB = { class: "skill-section" }, dB = { class: "section-title" }, fB = {
|
|
@@ -33062,7 +33065,7 @@ var CN = ["innerHTML"], wN = /* @__PURE__ */ Zi({
|
|
|
33062
33065
|
})) : Z("", !0)
|
|
33063
33066
|
], 6)], 64));
|
|
33064
33067
|
}
|
|
33065
|
-
}), [["__scopeId", "data-v-
|
|
33068
|
+
}), [["__scopeId", "data-v-965c3496"]]);
|
|
33066
33069
|
//#endregion
|
|
33067
33070
|
//#region src/core/sdk/mountChatDialog.ts
|
|
33068
33071
|
function TB(e) {
|
|
@@ -78340,7 +78340,7 @@ var R7 = {
|
|
|
78340
78340
|
quoteChipTitle: "将随下一条消息作为引用发送(❝ 划词引用)",
|
|
78341
78341
|
quoteRemove: "移除引用",
|
|
78342
78342
|
screenshotAlt: "截图查看(点击放大)",
|
|
78343
|
-
selectionMenuLabel: "
|
|
78343
|
+
selectionMenuLabel: "引用到 AI 助手",
|
|
78344
78344
|
selectionMenuTitle: "把选中文本作为引用加入对话框,随下一条消息发给 AI",
|
|
78345
78345
|
imageCountLimitPrefix: "单轮最多 ",
|
|
78346
78346
|
imageCountLimitSuffix: " 张图片",
|
|
@@ -78572,7 +78572,7 @@ var R7 = {
|
|
|
78572
78572
|
quoteChipTitle: "Will be quoted with your next message",
|
|
78573
78573
|
quoteRemove: "Remove quote",
|
|
78574
78574
|
screenshotAlt: "Screenshot (click to enlarge)",
|
|
78575
|
-
selectionMenuLabel: "Quote to
|
|
78575
|
+
selectionMenuLabel: "Quote to AI assistant",
|
|
78576
78576
|
selectionMenuTitle: "Add the selected text to the dialog as a quote, sent with your next message",
|
|
78577
78577
|
imageCountLimitPrefix: "Up to ",
|
|
78578
78578
|
imageCountLimitSuffix: " images per message",
|
|
@@ -89452,26 +89452,29 @@ var qUe = {
|
|
|
89452
89452
|
autoQuote: { type: Boolean }
|
|
89453
89453
|
},
|
|
89454
89454
|
setup(e) {
|
|
89455
|
-
let t = e, n = B7(), { inputText: r, send: i, keydown: a, canUndo: o, undo: s, focuses: c, removeFocus: l, focusChipClick: u, icons: d, messages: f, quote: p, clearQuote: m, setQuote: h } = n, { state: g, stop: _, sendMessage: v } = n.chat, { pendingImages: y, addImageFiles: b, removePendingImage: x, imageInputError: S, compressingImages: C } = n, w = () => {
|
|
89455
|
+
let t = e, n = B7(), { inputText: r, send: i, keydown: a, canUndo: o, undo: s, focuses: c, removeFocus: l, focusChipClick: u, icons: d, messages: f, quote: p, clearQuote: m, setQuote: h } = n, { state: g, stop: _, sendMessage: v } = n.chat, { pendingImages: y, addImageFiles: b, removePendingImage: x, imageInputError: S, compressingImages: C } = n, w = (e) => {
|
|
89456
|
+
let t = f.quoteChipTitle;
|
|
89457
|
+
return e.source ? `${e.source}\n\n${e.text}\n\n${t}` : `${e.text}\n\n${t}`;
|
|
89458
|
+
}, T = () => {
|
|
89456
89459
|
if (!t.autoQuote || typeof document > "u") return;
|
|
89457
89460
|
let e = jZ(document);
|
|
89458
89461
|
e && h(e);
|
|
89459
|
-
},
|
|
89462
|
+
}, E = /* @__PURE__ */ Lq(null), D = /* @__PURE__ */ Lq(!1), O = () => {
|
|
89460
89463
|
var e;
|
|
89461
|
-
return (e =
|
|
89462
|
-
},
|
|
89464
|
+
return (e = E.value) == null ? void 0 : e.click();
|
|
89465
|
+
}, k = (e) => {
|
|
89463
89466
|
let t = e.target.files;
|
|
89464
89467
|
t != null && t.length && b(t), e.target.value = "";
|
|
89465
|
-
},
|
|
89468
|
+
}, A = (e) => {
|
|
89466
89469
|
var n;
|
|
89467
|
-
|
|
89470
|
+
D.value = !1;
|
|
89468
89471
|
let r = (n = e.dataTransfer) == null ? void 0 : n.files;
|
|
89469
89472
|
if (r != null && r.length) {
|
|
89470
89473
|
b(r);
|
|
89471
89474
|
return;
|
|
89472
89475
|
}
|
|
89473
|
-
t.onDropElement &&
|
|
89474
|
-
},
|
|
89476
|
+
t.onDropElement && ee != null && ee.isConnected && (t.onDropElement(ee), ee = null);
|
|
89477
|
+
}, j = (e) => {
|
|
89475
89478
|
var t;
|
|
89476
89479
|
let n = (t = e.clipboardData) == null ? void 0 : t.items;
|
|
89477
89480
|
if (!n) return;
|
|
@@ -89481,19 +89484,19 @@ var qUe = {
|
|
|
89481
89484
|
t && r.push(t);
|
|
89482
89485
|
}
|
|
89483
89486
|
r.length && b(r);
|
|
89484
|
-
},
|
|
89487
|
+
}, M = (e) => {
|
|
89485
89488
|
t.gatePending || g.loading || v(e.prompt);
|
|
89486
|
-
},
|
|
89487
|
-
e.target instanceof Element && (
|
|
89488
|
-
|
|
89489
|
+
}, ee = null, te = null, N = (e) => {
|
|
89490
|
+
e.target instanceof Element && (ee = e.target, te && clearTimeout(te), te = setTimeout(() => {
|
|
89491
|
+
ee = null;
|
|
89489
89492
|
}, 2e3));
|
|
89490
|
-
},
|
|
89491
|
-
|
|
89493
|
+
}, P = () => {
|
|
89494
|
+
ee = null;
|
|
89492
89495
|
};
|
|
89493
89496
|
return eY(() => {
|
|
89494
|
-
t.onDropElement && (window.addEventListener("dragstart",
|
|
89497
|
+
t.onDropElement && (window.addEventListener("dragstart", N, !0), window.addEventListener("dragend", P, !0));
|
|
89495
89498
|
}), tY(() => {
|
|
89496
|
-
window.removeEventListener("dragstart",
|
|
89499
|
+
window.removeEventListener("dragstart", N, !0), window.removeEventListener("dragend", P, !0), te && clearTimeout(te);
|
|
89497
89500
|
}), (t, n) => {
|
|
89498
89501
|
var h;
|
|
89499
89502
|
return X(), Z("div", uWe, [Y(o) ? (X(), Z("button", {
|
|
@@ -89502,13 +89505,13 @@ var qUe = {
|
|
|
89502
89505
|
title: Y(f).undoTitle,
|
|
89503
89506
|
onClick: n[0] || (n[0] = (...e) => Y(s) && Y(s)(...e))
|
|
89504
89507
|
}, J(Y(f).undo), 9, dWe)) : $("", !0), Q("div", {
|
|
89505
|
-
class: EK(["chat-input-wrap", { "drag-over":
|
|
89506
|
-
onPointerdownCapture:
|
|
89507
|
-
onDragover: n[5] || (n[5] = hZ((e) =>
|
|
89508
|
-
onDragleave: n[6] || (n[6] = (e) =>
|
|
89509
|
-
onDrop: hZ(
|
|
89508
|
+
class: EK(["chat-input-wrap", { "drag-over": D.value }]),
|
|
89509
|
+
onPointerdownCapture: T,
|
|
89510
|
+
onDragover: n[5] || (n[5] = hZ((e) => D.value = !0, ["prevent"])),
|
|
89511
|
+
onDragleave: n[6] || (n[6] = (e) => D.value = !1),
|
|
89512
|
+
onDrop: hZ(A, ["prevent"])
|
|
89510
89513
|
}, [
|
|
89511
|
-
|
|
89514
|
+
D.value ? (X(), Z("div", fWe, [n[7] || (n[7] = Q("svg", {
|
|
89512
89515
|
class: "drop-hint-icon",
|
|
89513
89516
|
viewBox: "0 0 24 24",
|
|
89514
89517
|
fill: "none",
|
|
@@ -89538,7 +89541,7 @@ var qUe = {
|
|
|
89538
89541
|
disabled: e.gatePending || Y(g).loading,
|
|
89539
89542
|
"data-test": `quick-action-${n}`,
|
|
89540
89543
|
title: t.prompt,
|
|
89541
|
-
onClick: (e) =>
|
|
89544
|
+
onClick: (e) => M(t)
|
|
89542
89545
|
}, J(t.icon ? `${t.icon} ` : "") + J(t.label), 9, mWe))), 128))])) : $("", !0),
|
|
89543
89546
|
Y(c).length || Y(y).length || Y(p) || Y(S) ? (X(), Z("div", hWe, [
|
|
89544
89547
|
Y(c).length ? (X(), Z("div", gWe, [(X(!0), Z(qY, null, rY(Y(c), (e) => (X(), Z("span", {
|
|
@@ -89559,10 +89562,10 @@ var qUe = {
|
|
|
89559
89562
|
], 8, _We))), 128))])) : $("", !0),
|
|
89560
89563
|
Y(p) ? (X(), Z("div", xWe, [Q("span", {
|
|
89561
89564
|
class: "quote-chip",
|
|
89562
|
-
title: Y(
|
|
89565
|
+
title: w(Y(p))
|
|
89563
89566
|
}, [
|
|
89564
89567
|
n[8] || (n[8] = Q("span", { class: "quote-chip-icon" }, "❝", -1)),
|
|
89565
|
-
Q("span", CWe, J(Y(p).
|
|
89568
|
+
Q("span", CWe, J(Y(p).text), 1),
|
|
89566
89569
|
Q("button", {
|
|
89567
89570
|
type: "button",
|
|
89568
89571
|
class: "focus-chip-x",
|
|
@@ -89595,7 +89598,7 @@ var qUe = {
|
|
|
89595
89598
|
rows: e.inputRows,
|
|
89596
89599
|
disabled: e.gatePending,
|
|
89597
89600
|
onKeydown: n[3] || (n[3] = (...e) => Y(a) && Y(a)(...e)),
|
|
89598
|
-
onPaste:
|
|
89601
|
+
onPaste: j
|
|
89599
89602
|
}, null, 40, jWe), [[mZ, Y(r)]]),
|
|
89600
89603
|
Q("div", MWe, [
|
|
89601
89604
|
Q("span", NWe, J(Y(f).sendHint), 1),
|
|
@@ -89604,20 +89607,20 @@ var qUe = {
|
|
|
89604
89607
|
title: Y(f).attachImageTitle,
|
|
89605
89608
|
disabled: e.gatePending,
|
|
89606
89609
|
"data-test": "attach-btn",
|
|
89607
|
-
onClick:
|
|
89610
|
+
onClick: O
|
|
89608
89611
|
}, [Y(d).attachImage ? (X(), nX(g9, {
|
|
89609
89612
|
key: 0,
|
|
89610
89613
|
icon: Y(d).attachImage
|
|
89611
89614
|
}, null, 8, ["icon"])) : (X(), Z("svg", FWe, [...n[9] || (n[9] = [Q("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }, null, -1)])]))], 8, PWe),
|
|
89612
89615
|
Q("input", {
|
|
89613
89616
|
ref_key: "fileInput",
|
|
89614
|
-
ref:
|
|
89617
|
+
ref: E,
|
|
89615
89618
|
type: "file",
|
|
89616
89619
|
accept: "image/*",
|
|
89617
89620
|
multiple: "",
|
|
89618
89621
|
hidden: "",
|
|
89619
89622
|
"data-test": "attach-input",
|
|
89620
|
-
onChange:
|
|
89623
|
+
onChange: k
|
|
89621
89624
|
}, null, 544),
|
|
89622
89625
|
Q("button", {
|
|
89623
89626
|
class: EK(["send-btn", { "stop-btn": Y(g).loading }]),
|
|
@@ -89643,7 +89646,7 @@ var qUe = {
|
|
|
89643
89646
|
], 34)]);
|
|
89644
89647
|
};
|
|
89645
89648
|
}
|
|
89646
|
-
}), [["__scopeId", "data-v-
|
|
89649
|
+
}), [["__scopeId", "data-v-1580c76b"]]);
|
|
89647
89650
|
//#endregion
|
|
89648
89651
|
//#region src/core/components/DebugDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
89649
89652
|
M();
|
|
@@ -90679,7 +90682,7 @@ var BWe = {
|
|
|
90679
90682
|
onClick: _
|
|
90680
90683
|
}, "❝ " + J(Y(r).selectionMenuLabel), 41, YJe)], 4), [[ZX, i.value]])]));
|
|
90681
90684
|
}
|
|
90682
|
-
}), [["__scopeId", "data-v-
|
|
90685
|
+
}), [["__scopeId", "data-v-19e6dbb4"]]), ZJe = { class: "skill-panel" }, QJe = { class: "skill-header" }, $Je = { class: "skill-title" }, eYe = ["title"], tYe = { class: "skill-section" }, nYe = { class: "section-title" }, rYe = ["title"], iYe = { class: "field" }, aYe = { class: "field-label" }, oYe = ["disabled", "placeholder"], sYe = { class: "field" }, cYe = { class: "field-label" }, lYe = ["placeholder"], uYe = { class: "field field-textarea" }, dYe = { class: "field-label" }, fYe = ["placeholder"], pYe = {
|
|
90683
90686
|
key: 0,
|
|
90684
90687
|
class: "skill-error"
|
|
90685
90688
|
}, mYe = { class: "skill-section" }, hYe = { class: "section-title" }, gYe = {
|
|
@@ -91190,7 +91193,7 @@ var CYe = ["aria-valuenow"], wYe = "page-agent-sdk:drawerWidth", $9 = 320, TYe =
|
|
|
91190
91193
|
], 6)], 64);
|
|
91191
91194
|
};
|
|
91192
91195
|
}
|
|
91193
|
-
}), [["__scopeId", "data-v-
|
|
91196
|
+
}), [["__scopeId", "data-v-965c3496"]]);
|
|
91194
91197
|
//#endregion
|
|
91195
91198
|
//#region src/core/sdk/mountChatDialog.ts
|
|
91196
91199
|
M();
|