@asgard-js/react 0.3.7 → 0.3.8
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/dist/components/chatbot/chatbot-body/chatbot-body.d.ts.map +1 -1
- package/dist/components/templates/tool-call-group/tool-call-group.d.ts +1 -1
- package/dist/components/templates/tool-call-group/tool-call-group.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +432 -411
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as x, jsxs as R, Fragment as ja } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as Se from "react";
|
|
3
3
|
import Na, { useRef as nt, useEffect as Fe, useState as ge, useMemo as ke, useCallback as re, useSyncExternalStore as Wv, createContext as yd, useContext as _d, useImperativeHandle as DI, memo as ct, useLayoutEffect as RI, Fragment as SC, forwardRef as OI } from "react";
|
|
4
4
|
import { AsgardServiceClient as LI, EventType as Rl, Conversation as gh, Channel as $1, MessageTemplateType as Cr, deriveTasks as II, deriveSubagents as PI, isTaskTool as zI, isAgentTool as BI, isSubagentChildTool as UI, ToolCallConsentResult as $c } from "@asgard-js/core";
|
|
5
5
|
function $C(e) {
|
|
@@ -345,7 +345,7 @@ function GI(e) {
|
|
|
345
345
|
);
|
|
346
346
|
}
|
|
347
347
|
const VI = [], YI = [];
|
|
348
|
-
function
|
|
348
|
+
function hwe(e) {
|
|
349
349
|
const t = re(
|
|
350
350
|
(r) => {
|
|
351
351
|
if (!e) return () => {
|
|
@@ -357,7 +357,7 @@ function dwe(e) {
|
|
|
357
357
|
), n = re(() => e?.getTasks() ?? VI, [e]);
|
|
358
358
|
return Wv(t, n, n);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function pwe(e) {
|
|
361
361
|
const t = re(
|
|
362
362
|
(r) => {
|
|
363
363
|
if (!e) return () => {
|
|
@@ -369,7 +369,7 @@ function hwe(e) {
|
|
|
369
369
|
), n = re(() => e?.getSubagents() ?? YI, [e]);
|
|
370
370
|
return Wv(t, n, n);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function gwe(e) {
|
|
373
373
|
const t = re(
|
|
374
374
|
(r) => {
|
|
375
375
|
if (!e) return () => {
|
|
@@ -381,7 +381,7 @@ function pwe(e) {
|
|
|
381
381
|
), n = re(() => e?.getChannelTitle() ?? null, [e]);
|
|
382
382
|
return Wv(t, n, n);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function mwe(e, t) {
|
|
385
385
|
const [n, r] = ge(e);
|
|
386
386
|
return Fe(() => {
|
|
387
387
|
const i = window.setTimeout(() => {
|
|
@@ -436,7 +436,7 @@ function TC(e, t) {
|
|
|
436
436
|
const n = nt(void 0), r = nt(void 0);
|
|
437
437
|
return (!r.current || !w_(r.current, t)) && (r.current = t, n.current = e()), n.current;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function ywe(e, t = 50) {
|
|
440
440
|
const [n, r] = ge(!0);
|
|
441
441
|
return Fe(() => {
|
|
442
442
|
const i = e.current;
|
|
@@ -1181,7 +1181,7 @@ function ae() {
|
|
|
1181
1181
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = UT(e)) && (r && (r += " "), r += t);
|
|
1182
1182
|
return r;
|
|
1183
1183
|
}
|
|
1184
|
-
const nP = (e) => /* @__PURE__ */
|
|
1184
|
+
const nP = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("g", { clipPath: "url(#clip0_3084_29383)" }, /* @__PURE__ */ Se.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "#333333" }), /* @__PURE__ */ Se.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5788 6.33398C19.8925 6.33398 22.5788 9.02028 22.5788 12.334C22.5788 14.2211 21.7075 15.9048 20.3453 17.0047C23.6487 18.3735 26.0607 21.6974 26.4106 25.6673H24.4569C24.0206 21.6274 20.9742 18.4911 17.2591 18.3397L16.9776 18.334H16.5788H15.8437C12.0019 18.334 8.81164 21.5258 8.36437 25.6673H6.41064C6.76857 21.607 9.28344 18.2225 12.7029 16.9143C11.4036 15.8137 10.5788 14.1701 10.5788 12.334C10.5788 9.02028 13.265 6.33398 16.5788 6.33398ZM16.5788 16.334C18.7879 16.334 20.5788 14.5431 20.5788 12.334C20.5788 10.1248 18.7879 8.33398 16.5788 8.33398C14.3696 8.33398 12.5788 10.1248 12.5788 12.334C12.5788 14.5431 14.3696 16.334 16.5788 16.334Z", fill: "#8C8C8C" })), /* @__PURE__ */ Se.createElement("defs", null, /* @__PURE__ */ Se.createElement("clipPath", { id: "clip0_3084_29383" }, /* @__PURE__ */ Se.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "white" }))));
|
|
1185
1185
|
function Vv(e) {
|
|
1186
1186
|
const { avatar: t } = e;
|
|
1187
1187
|
return t ? /* @__PURE__ */ x(
|
|
@@ -1197,7 +1197,7 @@ function Vv(e) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
) : /* @__PURE__ */ x(nP, {});
|
|
1199
1199
|
}
|
|
1200
|
-
const rP = (e) => /* @__PURE__ */
|
|
1200
|
+
const rP = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ Se.createElement("circle", { cx: 12, cy: 12, r: 3 })), iP = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ Se.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), oP = "_api_key_input_7488d_1", sP = "_api_key_input__header_7488d_18", aP = "_api_key_input__title_7488d_31", lP = "_api_key_input__form_7488d_38", uP = "_api_key_input__label_7488d_45", cP = "_api_key_input__input_wrapper_7488d_52", fP = "_api_key_input__input_7488d_52", dP = "_api_key_input__toggle_button_7488d_93", hP = "_api_key_input__toggle_icon_7488d_118", pP = "_api_key_input__error_message_7488d_123", gP = "_api_key_input__submit_button_7488d_129", Wn = {
|
|
1201
1201
|
api_key_input: oP,
|
|
1202
1202
|
api_key_input__header: sP,
|
|
1203
1203
|
api_key_input__title: aP,
|
|
@@ -1297,7 +1297,7 @@ const mP = "_chatbot_header_luxt4_1", yP = "_chatbot_header__content_luxt4_4", _
|
|
|
1297
1297
|
chatbot_header__content: yP,
|
|
1298
1298
|
chatbot_header__title: _P,
|
|
1299
1299
|
chatbot_header__extra: bP
|
|
1300
|
-
}, vP = (e) => /* @__PURE__ */
|
|
1300
|
+
}, vP = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.49453 2.3352C6.44049 -0.226723 10.9105 -0.106316 13.7142 2.69633C16.6428 5.62613 16.6428 10.3739 13.7144 13.3035C10.7846 16.2322 6.03581 16.2322 3.1073 13.3036C2.30873 12.505 1.71132 11.5536 1.34188 10.5109L1.78892 10.3525L1.34171 10.5106L1.22791 10.162C1.01752 9.46018 0.910643 8.73159 0.910643 7.9997H2.4542L2.46382 8.33865C2.49584 8.9024 2.60763 9.46037 2.79674 9.99539L2.7968 9.99536L2.90116 10.2683C3.19714 10.9887 3.63414 11.6475 4.19876 12.2121C6.52451 14.5379 10.2961 14.5379 12.6229 12.212C14.9486 9.88539 14.9486 6.11464 12.6227 3.78781C10.3306 1.49653 6.63579 1.46263 4.30292 3.68622L6.68087 3.68698V5.22954H3.49394H1.95141V3.68698V0.5H3.49394L3.49453 2.3352Z", fill: "currentColor" })), jT = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 15, height: 14, viewBox: "0 0 15 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3496 0L7.41062 5.938L1.47162 0L0.411621 1.06L6.34962 6.999L0.411621 12.938L1.47162 13.999L7.41062 8.059L13.3496 13.999L14.4096 12.938L8.47162 6.999L14.4096 1.06L13.3496 0Z", fill: "currentColor" }));
|
|
1301
1301
|
function DC(e) {
|
|
1302
1302
|
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } = _t(), {
|
|
1303
1303
|
data: { annotations: a }
|
|
@@ -1547,7 +1547,7 @@ function Zn(e) {
|
|
|
1547
1547
|
const nz = "_bot_avatar_1ch7m_1", bh = {
|
|
1548
1548
|
bot_avatar: nz,
|
|
1549
1549
|
"bot_avatar--invisible": "_bot_avatar--invisible_1ch7m_8"
|
|
1550
|
-
}, rz = (e) => /* @__PURE__ */
|
|
1550
|
+
}, rz = (e) => /* @__PURE__ */ Se.createElement("svg", { viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M0.40625 12C0.40625 5.37258 5.77883 0 12.4062 0C19.0337 0 24.4062 5.37258 24.4062 12C24.4062 18.6274 19.0337 24 12.4062 24C5.77883 24 0.40625 18.6274 0.40625 12Z", fill: "#585858" }), /* @__PURE__ */ Se.createElement("path", { d: "M6.40625 18.75V15C6.40625 14.5875 6.55313 14.2344 6.84688 13.9406C7.14063 13.6469 7.49375 13.5 7.90625 13.5H16.9062C17.3188 13.5 17.6719 13.6469 17.9656 13.9406C18.2594 14.2344 18.4062 14.5875 18.4062 15V18.75H6.40625ZM10.1562 12.75C9.11875 12.75 8.23438 12.3844 7.50312 11.6531C6.77187 10.9219 6.40625 10.0375 6.40625 9C6.40625 7.9625 6.77187 7.07812 7.50312 6.34687C8.23438 5.61562 9.11875 5.25 10.1562 5.25H14.6562C15.6938 5.25 16.5781 5.61562 17.3094 6.34687C18.0406 7.07812 18.4062 7.9625 18.4062 9C18.4062 10.0375 18.0406 10.9219 17.3094 11.6531C16.5781 12.3844 15.6938 12.75 14.6562 12.75H10.1562ZM7.90625 17.25H16.9062V15H7.90625V17.25ZM10.1562 11.25H14.6562C15.2812 11.25 15.8125 11.0312 16.25 10.5938C16.6875 10.1562 16.9062 9.625 16.9062 9C16.9062 8.375 16.6875 7.84375 16.25 7.40625C15.8125 6.96875 15.2812 6.75 14.6562 6.75H10.1562C9.53125 6.75 9 6.96875 8.5625 7.40625C8.125 7.84375 7.90625 8.375 7.90625 9C7.90625 9.625 8.125 10.1562 8.5625 10.5938C9 11.0312 9.53125 11.25 10.1562 11.25ZM10.1562 9.75C10.3688 9.75 10.5469 9.67812 10.6906 9.53438C10.8344 9.39062 10.9062 9.2125 10.9062 9C10.9062 8.7875 10.8344 8.60938 10.6906 8.46562C10.5469 8.32187 10.3688 8.25 10.1562 8.25C9.94375 8.25 9.76562 8.32187 9.62187 8.46562C9.47812 8.60938 9.40625 8.7875 9.40625 9C9.40625 9.2125 9.47812 9.39062 9.62187 9.53438C9.76562 9.67812 9.94375 9.75 10.1562 9.75ZM14.6562 9.75C14.8687 9.75 15.0469 9.67812 15.1906 9.53438C15.3344 9.39062 15.4062 9.2125 15.4062 9C15.4062 8.7875 15.3344 8.60938 15.1906 8.46562C15.0469 8.32187 14.8687 8.25 14.6562 8.25C14.4438 8.25 14.2656 8.32187 14.1219 8.46562C13.9781 8.60938 13.9062 8.7875 13.9062 9C13.9062 9.2125 13.9781 9.39062 14.1219 9.53438C14.2656 9.67812 14.4438 9.75 14.6562 9.75Z", fill: "white" })), ui = ct((e) => {
|
|
1551
1551
|
const { avatar: t, invisible: n } = e;
|
|
1552
1552
|
return n ? /* @__PURE__ */ x("div", { className: ae("asgard-avatar", bh.bot_avatar, bh["bot_avatar--invisible"]) }) : t ? /* @__PURE__ */ x("img", { src: t, alt: "Bot Avatar", className: ae("asgard-avatar", bh.bot_avatar) }) : /* @__PURE__ */ x("div", { className: ae("asgard-avatar", bh.bot_avatar), children: /* @__PURE__ */ x(rz, {}) });
|
|
1553
1553
|
}), iz = "_card_root_1kvwl_1", oz = "_card_content_1kvwl_11", sz = "_card_title_1kvwl_19", az = "_card_description_1kvwl_25", lz = "_card_actions_1kvwl_40", Ac = {
|
|
@@ -26402,7 +26402,7 @@ const IO = {
|
|
|
26402
26402
|
}, Fr = W(IO), Yk = {
|
|
26403
26403
|
...Vk,
|
|
26404
26404
|
...IO
|
|
26405
|
-
}, aue = W(Yk), { order:
|
|
26405
|
+
}, aue = W(Yk), { order: xwe, detail: wwe, tooltip: kwe, ...lue } = Yk, { row: Ewe, column: Cwe, facet: Swe, ...uue } = lue;
|
|
26406
26406
|
function cue(e) {
|
|
26407
26407
|
return se(uue, e);
|
|
26408
26408
|
}
|
|
@@ -26507,22 +26507,22 @@ function due(e) {
|
|
|
26507
26507
|
}
|
|
26508
26508
|
}
|
|
26509
26509
|
const hue = W(Vk), {
|
|
26510
|
-
x:
|
|
26511
|
-
y:
|
|
26510
|
+
x: $we,
|
|
26511
|
+
y: Awe,
|
|
26512
26512
|
// x2 and y2 share the same scale as x and y
|
|
26513
|
-
x2:
|
|
26514
|
-
y2:
|
|
26513
|
+
x2: Mwe,
|
|
26514
|
+
y2: Twe,
|
|
26515
26515
|
//
|
|
26516
|
-
xOffset:
|
|
26517
|
-
yOffset:
|
|
26518
|
-
latitude:
|
|
26519
|
-
longitude:
|
|
26520
|
-
latitude2:
|
|
26521
|
-
longitude2:
|
|
26522
|
-
theta:
|
|
26523
|
-
theta2:
|
|
26524
|
-
radius:
|
|
26525
|
-
radius2:
|
|
26516
|
+
xOffset: Nwe,
|
|
26517
|
+
yOffset: Fwe,
|
|
26518
|
+
latitude: Dwe,
|
|
26519
|
+
longitude: Rwe,
|
|
26520
|
+
latitude2: Owe,
|
|
26521
|
+
longitude2: Lwe,
|
|
26522
|
+
theta: Iwe,
|
|
26523
|
+
theta2: Pwe,
|
|
26524
|
+
radius: zwe,
|
|
26525
|
+
radius2: Bwe,
|
|
26526
26526
|
// The rest of unit channels then have scale
|
|
26527
26527
|
...Kk
|
|
26528
26528
|
} = Vk, pue = W(Kk), Zk = {
|
|
@@ -26553,15 +26553,15 @@ const {
|
|
|
26553
26553
|
// x2 and y2 share the same scale as x and y
|
|
26554
26554
|
// text and tooltip have format instead of scale,
|
|
26555
26555
|
// href has neither format, nor scale
|
|
26556
|
-
text:
|
|
26557
|
-
tooltip:
|
|
26558
|
-
href:
|
|
26559
|
-
url:
|
|
26560
|
-
description:
|
|
26556
|
+
text: Uwe,
|
|
26557
|
+
tooltip: jwe,
|
|
26558
|
+
href: qwe,
|
|
26559
|
+
url: Wwe,
|
|
26560
|
+
description: Hwe,
|
|
26561
26561
|
// detail and order have no scale
|
|
26562
|
-
detail:
|
|
26563
|
-
key:
|
|
26564
|
-
order:
|
|
26562
|
+
detail: Gwe,
|
|
26563
|
+
key: Vwe,
|
|
26564
|
+
order: Ywe,
|
|
26565
26565
|
...jO
|
|
26566
26566
|
} = Kk, yue = W(jO);
|
|
26567
26567
|
function _ue(e) {
|
|
@@ -26613,7 +26613,7 @@ const WO = {
|
|
|
26613
26613
|
trail: "always",
|
|
26614
26614
|
text: "always",
|
|
26615
26615
|
tick: "always"
|
|
26616
|
-
}, { geoshape:
|
|
26616
|
+
}, { geoshape: Xwe, ...xue } = WO;
|
|
26617
26617
|
function wue(e) {
|
|
26618
26618
|
switch (e) {
|
|
26619
26619
|
case tr:
|
|
@@ -27862,7 +27862,7 @@ const vfe = {
|
|
|
27862
27862
|
padding: 1,
|
|
27863
27863
|
paddingInner: 1,
|
|
27864
27864
|
paddingOuter: 1
|
|
27865
|
-
}, { type:
|
|
27865
|
+
}, { type: Kwe, domain: Zwe, range: Jwe, rangeMax: Qwe, rangeMin: eke, scheme: tke, ...xfe } = vfe, wfe = W(xfe);
|
|
27866
27866
|
function hv(e, t) {
|
|
27867
27867
|
switch (t) {
|
|
27868
27868
|
case "type":
|
|
@@ -41851,27 +41851,28 @@ function __e({ message: e }) {
|
|
|
41851
41851
|
t && /* @__PURE__ */ x("div", { className: Er.image_modal, onClick: () => n(null), children: /* @__PURE__ */ x("img", { src: t, alt: "展開的圖片", className: Er.modal_image }) })
|
|
41852
41852
|
] });
|
|
41853
41853
|
}
|
|
41854
|
-
const b_e = "
|
|
41854
|
+
const b_e = "_tool_call_group_pw1vl_1", v_e = "_tool_call_group__header_pw1vl_11", x_e = "_tool_call_group__chevron_pw1vl_28", w_e = "_tool_call_group__title_pw1vl_40", k_e = "_tool_call_group__content_pw1vl_46", E_e = "_tool_call_item_pw1vl_53", C_e = "_tool_call_item__header_pw1vl_58", S_e = "_tool_call_item__left_pw1vl_67", $_e = "_tool_call_item__chevron_pw1vl_73", A_e = "_tool_call_item__variant_icon_pw1vl_85", M_e = "_tool_call_item__label_pw1vl_92", T_e = "_tool_call_item__status_pw1vl_97", N_e = "_tool_call_item__diff_pw1vl_106", F_e = "_tool_call_item__status_icon_pw1vl_121", D_e = "_tool_call_item__status_icon_spin_pw1vl_138", R_e = "_tool_call_item__content_pw1vl_152", O_e = "_json_viewer_pw1vl_159", L_e = "_json_viewer__header_pw1vl_168", I_e = "_json_viewer__title_pw1vl_177", P_e = "_json_viewer__actions_pw1vl_183", z_e = "_json_viewer__action_btn_pw1vl_189", B_e = "_json_viewer__content_pw1vl_211", U_e = "_json_viewer__code_pw1vl_217", j_e = "_json_modal__backdrop_pw1vl_251", q_e = "_json_modal_pw1vl_251", W_e = "_json_modal__header_pw1vl_278", H_e = "_json_modal__title_pw1vl_287", G_e = "_json_modal__actions_pw1vl_293", V_e = "_json_modal__action_btn_pw1vl_299", Y_e = "_json_modal__content_pw1vl_321", Ce = {
|
|
41855
41855
|
tool_call_group: b_e,
|
|
41856
41856
|
tool_call_group__header: v_e,
|
|
41857
41857
|
tool_call_group__chevron: x_e,
|
|
41858
|
-
"tool_call_group__chevron--expanded": "_tool_call_group__chevron--
|
|
41858
|
+
"tool_call_group__chevron--expanded": "_tool_call_group__chevron--expanded_pw1vl_36",
|
|
41859
41859
|
tool_call_group__title: w_e,
|
|
41860
41860
|
tool_call_group__content: k_e,
|
|
41861
41861
|
tool_call_item: E_e,
|
|
41862
41862
|
tool_call_item__header: C_e,
|
|
41863
41863
|
tool_call_item__left: S_e,
|
|
41864
41864
|
tool_call_item__chevron: $_e,
|
|
41865
|
-
"tool_call_item__chevron--expanded": "_tool_call_item__chevron--
|
|
41865
|
+
"tool_call_item__chevron--expanded": "_tool_call_item__chevron--expanded_pw1vl_81",
|
|
41866
41866
|
tool_call_item__variant_icon: A_e,
|
|
41867
41867
|
tool_call_item__label: M_e,
|
|
41868
41868
|
tool_call_item__status: T_e,
|
|
41869
41869
|
tool_call_item__diff: N_e,
|
|
41870
|
-
"tool_call_item__diff--added": "_tool_call_item__diff--
|
|
41871
|
-
"tool_call_item__diff--removed": "_tool_call_item__diff--
|
|
41870
|
+
"tool_call_item__diff--added": "_tool_call_item__diff--added_pw1vl_112",
|
|
41871
|
+
"tool_call_item__diff--removed": "_tool_call_item__diff--removed_pw1vl_116",
|
|
41872
41872
|
tool_call_item__status_icon: F_e,
|
|
41873
|
-
"tool_call_item__status_icon--error": "_tool_call_item__status_icon--
|
|
41874
|
-
"tool_call_item__status_icon--running": "_tool_call_item__status_icon--
|
|
41873
|
+
"tool_call_item__status_icon--error": "_tool_call_item__status_icon--error_pw1vl_126",
|
|
41874
|
+
"tool_call_item__status_icon--running": "_tool_call_item__status_icon--running_pw1vl_130",
|
|
41875
|
+
"tool_call_item__status_icon--cancelled": "_tool_call_item__status_icon--cancelled_pw1vl_134",
|
|
41875
41876
|
tool_call_item__status_icon_spin: D_e,
|
|
41876
41877
|
tool_call_item__content: R_e,
|
|
41877
41878
|
json_viewer: O_e,
|
|
@@ -41881,12 +41882,12 @@ const b_e = "_tool_call_group_11bpv_1", v_e = "_tool_call_group__header_11bpv_11
|
|
|
41881
41882
|
json_viewer__action_btn: z_e,
|
|
41882
41883
|
json_viewer__content: B_e,
|
|
41883
41884
|
json_viewer__code: U_e,
|
|
41884
|
-
"json_token--key": "_json_token--
|
|
41885
|
-
"json_token--string": "_json_token--
|
|
41886
|
-
"json_token--number": "_json_token--
|
|
41887
|
-
"json_token--boolean": "_json_token--
|
|
41888
|
-
"json_token--null": "_json_token--
|
|
41889
|
-
"json_token--punctuation": "_json_token--
|
|
41885
|
+
"json_token--key": "_json_token--key_pw1vl_227",
|
|
41886
|
+
"json_token--string": "_json_token--string_pw1vl_231",
|
|
41887
|
+
"json_token--number": "_json_token--number_pw1vl_235",
|
|
41888
|
+
"json_token--boolean": "_json_token--boolean_pw1vl_239",
|
|
41889
|
+
"json_token--null": "_json_token--null_pw1vl_243",
|
|
41890
|
+
"json_token--punctuation": "_json_token--punctuation_pw1vl_247",
|
|
41890
41891
|
json_modal__backdrop: j_e,
|
|
41891
41892
|
json_modal: q_e,
|
|
41892
41893
|
json_modal__header: W_e,
|
|
@@ -42008,13 +42009,31 @@ function Z_e({ className: e }) {
|
|
|
42008
42009
|
}
|
|
42009
42010
|
);
|
|
42010
42011
|
}
|
|
42012
|
+
function J_e({ className: e }) {
|
|
42013
|
+
return /* @__PURE__ */ R(
|
|
42014
|
+
"svg",
|
|
42015
|
+
{
|
|
42016
|
+
className: e,
|
|
42017
|
+
viewBox: "0 0 24 24",
|
|
42018
|
+
fill: "none",
|
|
42019
|
+
stroke: "currentColor",
|
|
42020
|
+
strokeWidth: "2",
|
|
42021
|
+
strokeLinecap: "round",
|
|
42022
|
+
strokeLinejoin: "round",
|
|
42023
|
+
children: [
|
|
42024
|
+
/* @__PURE__ */ x("circle", { cx: "12", cy: "12", r: "10" }),
|
|
42025
|
+
/* @__PURE__ */ x("line", { x1: "9", x2: "15", y1: "15", y2: "9" })
|
|
42026
|
+
]
|
|
42027
|
+
}
|
|
42028
|
+
);
|
|
42029
|
+
}
|
|
42011
42030
|
function pI({ className: e }) {
|
|
42012
42031
|
return /* @__PURE__ */ R("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
42013
42032
|
/* @__PURE__ */ x("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
42014
42033
|
/* @__PURE__ */ x("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
|
|
42015
42034
|
] });
|
|
42016
42035
|
}
|
|
42017
|
-
function
|
|
42036
|
+
function Q_e({ className: e }) {
|
|
42018
42037
|
return /* @__PURE__ */ x("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ x("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
|
|
42019
42038
|
}
|
|
42020
42039
|
function gI({ className: e }) {
|
|
@@ -42028,13 +42047,13 @@ const ea = {
|
|
|
42028
42047
|
strokeLinecap: "round",
|
|
42029
42048
|
strokeLinejoin: "round"
|
|
42030
42049
|
};
|
|
42031
|
-
function
|
|
42050
|
+
function ebe({ className: e }) {
|
|
42032
42051
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42033
42052
|
/* @__PURE__ */ x("polyline", { points: "4 17 10 11 4 5" }),
|
|
42034
42053
|
/* @__PURE__ */ x("line", { x1: "12", x2: "20", y1: "19", y2: "19" })
|
|
42035
42054
|
] });
|
|
42036
42055
|
}
|
|
42037
|
-
function
|
|
42056
|
+
function tbe({ className: e }) {
|
|
42038
42057
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42039
42058
|
/* @__PURE__ */ x("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
42040
42059
|
/* @__PURE__ */ x("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
@@ -42043,7 +42062,7 @@ function ebe({ className: e }) {
|
|
|
42043
42062
|
/* @__PURE__ */ x("path", { d: "M16 17H8" })
|
|
42044
42063
|
] });
|
|
42045
42064
|
}
|
|
42046
|
-
function
|
|
42065
|
+
function nbe({ className: e }) {
|
|
42047
42066
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42048
42067
|
/* @__PURE__ */ x("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
42049
42068
|
/* @__PURE__ */ x("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
@@ -42051,14 +42070,14 @@ function tbe({ className: e }) {
|
|
|
42051
42070
|
/* @__PURE__ */ x("path", { d: "M12 18v-6" })
|
|
42052
42071
|
] });
|
|
42053
42072
|
}
|
|
42054
|
-
function
|
|
42073
|
+
function rbe({ className: e }) {
|
|
42055
42074
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42056
42075
|
/* @__PURE__ */ x("path", { d: "M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5" }),
|
|
42057
42076
|
/* @__PURE__ */ x("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
42058
42077
|
/* @__PURE__ */ x("path", { d: "M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" })
|
|
42059
42078
|
] });
|
|
42060
42079
|
}
|
|
42061
|
-
function
|
|
42080
|
+
function ibe({ className: e }) {
|
|
42062
42081
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42063
42082
|
/* @__PURE__ */ x("path", { d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" }),
|
|
42064
42083
|
/* @__PURE__ */ x("path", { d: "M20 3v4" }),
|
|
@@ -42067,37 +42086,37 @@ function rbe({ className: e }) {
|
|
|
42067
42086
|
/* @__PURE__ */ x("path", { d: "M5 18H3" })
|
|
42068
42087
|
] });
|
|
42069
42088
|
}
|
|
42070
|
-
function
|
|
42089
|
+
function obe({ className: e }) {
|
|
42071
42090
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42072
42091
|
/* @__PURE__ */ x("circle", { cx: "12", cy: "12", r: "10" }),
|
|
42073
42092
|
/* @__PURE__ */ x("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
|
|
42074
42093
|
/* @__PURE__ */ x("path", { d: "M2 12h20" })
|
|
42075
42094
|
] });
|
|
42076
42095
|
}
|
|
42077
|
-
function
|
|
42096
|
+
function sbe({ className: e }) {
|
|
42078
42097
|
return /* @__PURE__ */ R("svg", { className: e, ...ea, children: [
|
|
42079
42098
|
/* @__PURE__ */ x("circle", { cx: "11", cy: "11", r: "8" }),
|
|
42080
42099
|
/* @__PURE__ */ x("path", { d: "m21 21-4.3-4.3" })
|
|
42081
42100
|
] });
|
|
42082
42101
|
}
|
|
42083
|
-
function
|
|
42102
|
+
function abe({ className: e }) {
|
|
42084
42103
|
return /* @__PURE__ */ x("svg", { className: e, ...ea, children: /* @__PURE__ */ x("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" }) });
|
|
42085
42104
|
}
|
|
42086
|
-
const
|
|
42087
|
-
bash:
|
|
42088
|
-
read:
|
|
42089
|
-
write:
|
|
42090
|
-
edit:
|
|
42091
|
-
skill:
|
|
42092
|
-
webfetch:
|
|
42093
|
-
websearch:
|
|
42094
|
-
generic:
|
|
42105
|
+
const lbe = {
|
|
42106
|
+
bash: ebe,
|
|
42107
|
+
read: tbe,
|
|
42108
|
+
write: nbe,
|
|
42109
|
+
edit: rbe,
|
|
42110
|
+
skill: ibe,
|
|
42111
|
+
webfetch: obe,
|
|
42112
|
+
websearch: sbe,
|
|
42113
|
+
generic: abe
|
|
42095
42114
|
};
|
|
42096
|
-
function
|
|
42097
|
-
const n =
|
|
42115
|
+
function ube({ variant: e, className: t }) {
|
|
42116
|
+
const n = lbe[e];
|
|
42098
42117
|
return /* @__PURE__ */ x(n, { className: t });
|
|
42099
42118
|
}
|
|
42100
|
-
function
|
|
42119
|
+
function cbe(e) {
|
|
42101
42120
|
const t = [], n = /("(?:\\.|[^"\\])*")\s*:|("(?:\\.|[^"\\])*")|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|(\btrue\b|\bfalse\b)|(\bnull\b)|([{}[\],:])/g;
|
|
42102
42121
|
let r = 0, i;
|
|
42103
42122
|
for (; (i = n.exec(e)) !== null; ) {
|
|
@@ -42109,27 +42128,27 @@ function ube(e) {
|
|
|
42109
42128
|
}
|
|
42110
42129
|
return r < e.length && t.push({ type: "punctuation", value: e.slice(r) }), t;
|
|
42111
42130
|
}
|
|
42112
|
-
function
|
|
42131
|
+
function fbe(e) {
|
|
42113
42132
|
switch (e) {
|
|
42114
42133
|
case "key":
|
|
42115
|
-
return
|
|
42134
|
+
return Ce["json_token--key"];
|
|
42116
42135
|
case "string":
|
|
42117
|
-
return
|
|
42136
|
+
return Ce["json_token--string"];
|
|
42118
42137
|
case "number":
|
|
42119
|
-
return
|
|
42138
|
+
return Ce["json_token--number"];
|
|
42120
42139
|
case "boolean":
|
|
42121
|
-
return
|
|
42140
|
+
return Ce["json_token--boolean"];
|
|
42122
42141
|
case "null":
|
|
42123
|
-
return
|
|
42142
|
+
return Ce["json_token--null"];
|
|
42124
42143
|
default:
|
|
42125
|
-
return
|
|
42144
|
+
return Ce["json_token--punctuation"];
|
|
42126
42145
|
}
|
|
42127
42146
|
}
|
|
42128
42147
|
function mI({ json: e }) {
|
|
42129
|
-
const t =
|
|
42130
|
-
return /* @__PURE__ */ x("pre", { className:
|
|
42148
|
+
const t = cbe(e);
|
|
42149
|
+
return /* @__PURE__ */ x("pre", { className: Ce.json_viewer__code, children: t.map((n, r) => /* @__PURE__ */ x("span", { className: fbe(n.type), children: n.value }, r)) });
|
|
42131
42150
|
}
|
|
42132
|
-
function
|
|
42151
|
+
function dbe({ isOpen: e, onClose: t, title: n, data: r }) {
|
|
42133
42152
|
const i = JSON.stringify(r, null, 2), o = re(() => {
|
|
42134
42153
|
navigator.clipboard.writeText(i);
|
|
42135
42154
|
}, [i]), s = re(
|
|
@@ -42148,15 +42167,15 @@ function fbe({ isOpen: e, onClose: t, title: n, data: r }) {
|
|
|
42148
42167
|
};
|
|
42149
42168
|
}, [e, t]), Fe(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
42150
42169
|
document.body.style.overflow = "";
|
|
42151
|
-
}), [e]), e ? /* @__PURE__ */ x("div", { className:
|
|
42152
|
-
/* @__PURE__ */ R("div", { className:
|
|
42153
|
-
/* @__PURE__ */ x("span", { className:
|
|
42154
|
-
/* @__PURE__ */ R("div", { className:
|
|
42155
|
-
/* @__PURE__ */ x("button", { className:
|
|
42156
|
-
/* @__PURE__ */ x("button", { className:
|
|
42170
|
+
}), [e]), e ? /* @__PURE__ */ x("div", { className: Ce.json_modal__backdrop, onClick: s, children: /* @__PURE__ */ R("div", { className: Ce.json_modal, children: [
|
|
42171
|
+
/* @__PURE__ */ R("div", { className: Ce.json_modal__header, children: [
|
|
42172
|
+
/* @__PURE__ */ x("span", { className: Ce.json_modal__title, children: n }),
|
|
42173
|
+
/* @__PURE__ */ R("div", { className: Ce.json_modal__actions, children: [
|
|
42174
|
+
/* @__PURE__ */ x("button", { className: Ce.json_modal__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ x(pI, {}) }),
|
|
42175
|
+
/* @__PURE__ */ x("button", { className: Ce.json_modal__action_btn, onClick: t, title: "Close", children: /* @__PURE__ */ x(gI, {}) })
|
|
42157
42176
|
] })
|
|
42158
42177
|
] }),
|
|
42159
|
-
/* @__PURE__ */ x("div", { className:
|
|
42178
|
+
/* @__PURE__ */ x("div", { className: Ce.json_modal__content, children: /* @__PURE__ */ x(mI, { json: i }) })
|
|
42160
42179
|
] }) }) : null;
|
|
42161
42180
|
}
|
|
42162
42181
|
function Uv({ title: e, data: t }) {
|
|
@@ -42168,79 +42187,81 @@ function Uv({ title: e, data: t }) {
|
|
|
42168
42187
|
r(!1);
|
|
42169
42188
|
}, []);
|
|
42170
42189
|
return /* @__PURE__ */ R(ja, { children: [
|
|
42171
|
-
/* @__PURE__ */ R("div", { className:
|
|
42172
|
-
/* @__PURE__ */ R("div", { className:
|
|
42173
|
-
/* @__PURE__ */ x("span", { className:
|
|
42174
|
-
/* @__PURE__ */ R("div", { className:
|
|
42175
|
-
/* @__PURE__ */ x("button", { className:
|
|
42176
|
-
/* @__PURE__ */ x("button", { className:
|
|
42190
|
+
/* @__PURE__ */ R("div", { className: Ce.json_viewer, children: [
|
|
42191
|
+
/* @__PURE__ */ R("div", { className: Ce.json_viewer__header, children: [
|
|
42192
|
+
/* @__PURE__ */ x("span", { className: Ce.json_viewer__title, children: e }),
|
|
42193
|
+
/* @__PURE__ */ R("div", { className: Ce.json_viewer__actions, children: [
|
|
42194
|
+
/* @__PURE__ */ x("button", { className: Ce.json_viewer__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ x(pI, {}) }),
|
|
42195
|
+
/* @__PURE__ */ x("button", { className: Ce.json_viewer__action_btn, onClick: s, title: "Expand", children: /* @__PURE__ */ x(Q_e, {}) })
|
|
42177
42196
|
] })
|
|
42178
42197
|
] }),
|
|
42179
|
-
/* @__PURE__ */ x("div", { className:
|
|
42198
|
+
/* @__PURE__ */ x("div", { className: Ce.json_viewer__content, children: /* @__PURE__ */ x(mI, { json: i }) })
|
|
42180
42199
|
] }),
|
|
42181
|
-
/* @__PURE__ */ x(
|
|
42200
|
+
/* @__PURE__ */ x(dbe, { isOpen: n, onClose: a, title: e, data: t })
|
|
42182
42201
|
] });
|
|
42183
42202
|
}
|
|
42184
|
-
function
|
|
42185
|
-
const t =
|
|
42203
|
+
function hbe({ status: e }) {
|
|
42204
|
+
const t = Ce.tool_call_item__status_icon;
|
|
42186
42205
|
switch (e) {
|
|
42187
42206
|
case "completed":
|
|
42188
42207
|
return null;
|
|
42189
42208
|
case "error":
|
|
42190
|
-
return /* @__PURE__ */ x(Z_e, { className: ae(t,
|
|
42209
|
+
return /* @__PURE__ */ x(Z_e, { className: ae(t, Ce["tool_call_item__status_icon--error"]) });
|
|
42210
|
+
case "cancelled":
|
|
42211
|
+
return /* @__PURE__ */ x(J_e, { className: ae(t, Ce["tool_call_item__status_icon--cancelled"]) });
|
|
42191
42212
|
default:
|
|
42192
42213
|
return /* @__PURE__ */ x(
|
|
42193
42214
|
K_e,
|
|
42194
42215
|
{
|
|
42195
42216
|
className: ae(
|
|
42196
42217
|
t,
|
|
42197
|
-
|
|
42198
|
-
|
|
42218
|
+
Ce["tool_call_item__status_icon--running"],
|
|
42219
|
+
Ce.tool_call_item__status_icon_spin
|
|
42199
42220
|
)
|
|
42200
42221
|
}
|
|
42201
42222
|
);
|
|
42202
42223
|
}
|
|
42203
42224
|
}
|
|
42204
|
-
function
|
|
42225
|
+
function pbe({ item: e, locale: t }) {
|
|
42205
42226
|
const [n, r] = ge(!1), i = e.initial || e.result, o = re(() => {
|
|
42206
42227
|
i && r((s) => !s);
|
|
42207
42228
|
}, [i]);
|
|
42208
|
-
return /* @__PURE__ */ R("div", { className:
|
|
42209
|
-
/* @__PURE__ */ R("div", { className:
|
|
42210
|
-
/* @__PURE__ */ R("div", { className:
|
|
42229
|
+
return /* @__PURE__ */ R("div", { className: Ce.tool_call_item, children: [
|
|
42230
|
+
/* @__PURE__ */ R("div", { className: Ce.tool_call_item__header, onClick: o, children: [
|
|
42231
|
+
/* @__PURE__ */ R("div", { className: Ce.tool_call_item__left, children: [
|
|
42211
42232
|
i && /* @__PURE__ */ x(
|
|
42212
42233
|
hI,
|
|
42213
42234
|
{
|
|
42214
42235
|
className: ae(
|
|
42215
|
-
|
|
42216
|
-
n &&
|
|
42236
|
+
Ce.tool_call_item__chevron,
|
|
42237
|
+
n && Ce["tool_call_item__chevron--expanded"]
|
|
42217
42238
|
)
|
|
42218
42239
|
}
|
|
42219
42240
|
),
|
|
42220
|
-
/* @__PURE__ */ x(
|
|
42221
|
-
/* @__PURE__ */ x("span", { className:
|
|
42241
|
+
/* @__PURE__ */ x(ube, { variant: e.variant, className: Ce.tool_call_item__variant_icon }),
|
|
42242
|
+
/* @__PURE__ */ x("span", { className: Ce.tool_call_item__label, children: e.label })
|
|
42222
42243
|
] }),
|
|
42223
|
-
/* @__PURE__ */ R("div", { className:
|
|
42224
|
-
e.diff && /* @__PURE__ */ R("span", { className:
|
|
42225
|
-
/* @__PURE__ */ R("span", { className:
|
|
42244
|
+
/* @__PURE__ */ R("div", { className: Ce.tool_call_item__status, children: [
|
|
42245
|
+
e.diff && /* @__PURE__ */ R("span", { className: Ce.tool_call_item__diff, children: [
|
|
42246
|
+
/* @__PURE__ */ R("span", { className: Ce["tool_call_item__diff--added"], children: [
|
|
42226
42247
|
"+",
|
|
42227
42248
|
e.diff.added
|
|
42228
42249
|
] }),
|
|
42229
|
-
e.diff.removed > 0 && /* @__PURE__ */ R("span", { className:
|
|
42250
|
+
e.diff.removed > 0 && /* @__PURE__ */ R("span", { className: Ce["tool_call_item__diff--removed"], children: [
|
|
42230
42251
|
"-",
|
|
42231
42252
|
e.diff.removed
|
|
42232
42253
|
] })
|
|
42233
42254
|
] }),
|
|
42234
|
-
/* @__PURE__ */ x(
|
|
42255
|
+
/* @__PURE__ */ x(hbe, { status: e.status })
|
|
42235
42256
|
] })
|
|
42236
42257
|
] }),
|
|
42237
|
-
n && i && /* @__PURE__ */ R("div", { className:
|
|
42258
|
+
n && i && /* @__PURE__ */ R("div", { className: Ce.tool_call_item__content, children: [
|
|
42238
42259
|
e.initial && /* @__PURE__ */ x(Uv, { title: Ot(t, "expand.initial"), data: e.initial }),
|
|
42239
42260
|
e.result && /* @__PURE__ */ x(Uv, { title: Ot(t, "expand.result"), data: e.result })
|
|
42240
42261
|
] })
|
|
42241
42262
|
] });
|
|
42242
42263
|
}
|
|
42243
|
-
function
|
|
42264
|
+
function gbe({
|
|
42244
42265
|
title: e = "Answer preparation steps",
|
|
42245
42266
|
items: t,
|
|
42246
42267
|
defaultExpanded: n,
|
|
@@ -42251,33 +42272,33 @@ function pbe({
|
|
|
42251
42272
|
const [s, a] = ge(n ?? null), l = t.some((f) => f.status === "pending"), u = s ?? (l || !r), c = re(() => {
|
|
42252
42273
|
a(() => !u);
|
|
42253
42274
|
}, [u]);
|
|
42254
|
-
return /* @__PURE__ */ R("div", { className: ae(
|
|
42275
|
+
return /* @__PURE__ */ R("div", { className: ae(Ce.tool_call_group, i), children: [
|
|
42255
42276
|
/* @__PURE__ */ R(
|
|
42256
42277
|
"button",
|
|
42257
42278
|
{
|
|
42258
42279
|
type: "button",
|
|
42259
|
-
className:
|
|
42280
|
+
className: Ce.tool_call_group__header,
|
|
42260
42281
|
onClick: c,
|
|
42261
42282
|
"aria-expanded": u,
|
|
42262
42283
|
children: [
|
|
42263
42284
|
/* @__PURE__ */ x(
|
|
42264
42285
|
hI,
|
|
42265
42286
|
{
|
|
42266
|
-
className: ae(
|
|
42287
|
+
className: ae(Ce.tool_call_group__chevron, u && Ce["tool_call_group__chevron--expanded"])
|
|
42267
42288
|
}
|
|
42268
42289
|
),
|
|
42269
|
-
/* @__PURE__ */ x("span", { className:
|
|
42290
|
+
/* @__PURE__ */ x("span", { className: Ce.tool_call_group__title, children: e })
|
|
42270
42291
|
]
|
|
42271
42292
|
}
|
|
42272
42293
|
),
|
|
42273
|
-
u && /* @__PURE__ */ x("div", { className:
|
|
42294
|
+
u && /* @__PURE__ */ x("div", { className: Ce.tool_call_group__content, children: t.map((f) => /* @__PURE__ */ x(pbe, { item: f, locale: o }, f.id)) })
|
|
42274
42295
|
] });
|
|
42275
42296
|
}
|
|
42276
|
-
function
|
|
42297
|
+
function mbe(e) {
|
|
42277
42298
|
const { time: t, ...n } = e;
|
|
42278
|
-
return /* @__PURE__ */ x(an, { className: "asgard-tool-call-group-template", type: "bot", direction: "vertical", children: /* @__PURE__ */ x(Zn, { children: /* @__PURE__ */ x(
|
|
42299
|
+
return /* @__PURE__ */ x(an, { className: "asgard-tool-call-group-template", type: "bot", direction: "vertical", children: /* @__PURE__ */ x(Zn, { children: /* @__PURE__ */ x(gbe, { ...n }) }) });
|
|
42279
42300
|
}
|
|
42280
|
-
const
|
|
42301
|
+
const ybe = /* @__PURE__ */ new Set(["Bash", "Read", "Write", "Edit", "Skill", "WebFetch", "WebSearch"]), _be = {
|
|
42281
42302
|
Bash: "bash",
|
|
42282
42303
|
Read: "read",
|
|
42283
42304
|
Write: "write",
|
|
@@ -42287,12 +42308,12 @@ const mbe = /* @__PURE__ */ new Set(["Bash", "Read", "Write", "Edit", "Skill", "
|
|
|
42287
42308
|
WebSearch: "websearch"
|
|
42288
42309
|
};
|
|
42289
42310
|
function md(e) {
|
|
42290
|
-
return e.toolsetName === "" &&
|
|
42311
|
+
return e.toolsetName === "" && ybe.has(e.toolName);
|
|
42291
42312
|
}
|
|
42292
|
-
function
|
|
42293
|
-
return md(e) ?
|
|
42313
|
+
function bbe(e) {
|
|
42314
|
+
return md(e) ? _be[e.toolName] : "generic";
|
|
42294
42315
|
}
|
|
42295
|
-
const Kr = (e) => typeof e == "string" ? e : "", __ = (e) => e.split("/").filter(Boolean).pop() ?? e,
|
|
42316
|
+
const Kr = (e) => typeof e == "string" ? e : "", __ = (e) => e.split("/").filter(Boolean).pop() ?? e, vbe = (e) => {
|
|
42296
42317
|
try {
|
|
42297
42318
|
return new URL(e).host;
|
|
42298
42319
|
} catch {
|
|
@@ -42315,21 +42336,21 @@ function jv(e, t) {
|
|
|
42315
42336
|
case "Skill":
|
|
42316
42337
|
return Ot(t, "tool.skill", { skill: Kr(n.skill) });
|
|
42317
42338
|
case "WebFetch":
|
|
42318
|
-
return Ot(t, "tool.webfetch", { host:
|
|
42339
|
+
return Ot(t, "tool.webfetch", { host: vbe(Kr(n.url)) });
|
|
42319
42340
|
case "WebSearch":
|
|
42320
42341
|
return Ot(t, "tool.websearch", { query: Kr(n.query) });
|
|
42321
42342
|
}
|
|
42322
42343
|
}
|
|
42323
42344
|
return e.toolName;
|
|
42324
42345
|
}
|
|
42325
|
-
function
|
|
42346
|
+
function xbe(e, t) {
|
|
42326
42347
|
const n = e.length, r = e.filter((s) => md(s) && s.toolName === "Skill").length, i = e.filter(
|
|
42327
42348
|
(s) => md(s) && (s.toolName === "Read" || s.toolName === "Write" || s.toolName === "Edit")
|
|
42328
42349
|
).length;
|
|
42329
42350
|
let o = Ot(t, "summary.steps", { n });
|
|
42330
42351
|
return r > 0 && (o += Ot(t, "summary.skills", { s: r })), i > 0 && (o += Ot(t, "summary.files", { f: i })), o;
|
|
42331
42352
|
}
|
|
42332
|
-
function
|
|
42353
|
+
function wbe(e, t) {
|
|
42333
42354
|
const n = e.split(`
|
|
42334
42355
|
`), r = t.split(`
|
|
42335
42356
|
`), i = n.length, o = r.length, s = Array.from({ length: i + 1 }, () => new Array(o + 1).fill(0));
|
|
@@ -42339,7 +42360,7 @@ function xbe(e, t) {
|
|
|
42339
42360
|
const a = s[0][0];
|
|
42340
42361
|
return { added: o - a, removed: i - a };
|
|
42341
42362
|
}
|
|
42342
|
-
function
|
|
42363
|
+
function kbe(e) {
|
|
42343
42364
|
if (!md(e)) return null;
|
|
42344
42365
|
const t = e.parameter ?? {};
|
|
42345
42366
|
if (e.toolName === "Write") {
|
|
@@ -42347,23 +42368,23 @@ function wbe(e) {
|
|
|
42347
42368
|
return { added: n ? n.split(`
|
|
42348
42369
|
`).length : 0, removed: 0 };
|
|
42349
42370
|
}
|
|
42350
|
-
return e.toolName === "Edit" ?
|
|
42371
|
+
return e.toolName === "Edit" ? wbe(Kr(t.old_string), Kr(t.new_string)) : null;
|
|
42351
42372
|
}
|
|
42352
|
-
const
|
|
42353
|
-
thinking_block:
|
|
42354
|
-
thinking_block__header:
|
|
42355
|
-
thinking_block__chevron:
|
|
42373
|
+
const Ebe = "_thinking_block_4p096_1", Cbe = "_thinking_block__header_4p096_9", Sbe = "_thinking_block__chevron_4p096_30", $be = "_thinking_block__brain_4p096_42", Abe = "_thinking_block__body_4p096_58", Mbe = "_thinking_block__streaming_4p096_64", Tbe = "_thinking_block__reasoning_4p096_84", Nbe = "_thinking_block__more_4p096_90", Sr = {
|
|
42374
|
+
thinking_block: Ebe,
|
|
42375
|
+
thinking_block__header: Cbe,
|
|
42376
|
+
thinking_block__chevron: Sbe,
|
|
42356
42377
|
"thinking_block__chevron--expanded": "_thinking_block__chevron--expanded_4p096_38",
|
|
42357
|
-
thinking_block__brain:
|
|
42378
|
+
thinking_block__brain: $be,
|
|
42358
42379
|
"thinking_block__brain--streaming": "_thinking_block__brain--streaming_4p096_49",
|
|
42359
42380
|
"thinking_block__label--streaming": "_thinking_block__label--streaming_4p096_54",
|
|
42360
|
-
thinking_block__body:
|
|
42361
|
-
thinking_block__streaming:
|
|
42381
|
+
thinking_block__body: Abe,
|
|
42382
|
+
thinking_block__streaming: Mbe,
|
|
42362
42383
|
"thinking_block__streaming--masked": "_thinking_block__streaming--masked_4p096_78",
|
|
42363
|
-
thinking_block__reasoning:
|
|
42364
|
-
thinking_block__more:
|
|
42365
|
-
}, $T = 160,
|
|
42366
|
-
function
|
|
42384
|
+
thinking_block__reasoning: Tbe,
|
|
42385
|
+
thinking_block__more: Nbe
|
|
42386
|
+
}, $T = 160, Fbe = "Thought for a moment", Dbe = "Thinking…";
|
|
42387
|
+
function Rbe({ className: e }) {
|
|
42367
42388
|
return /* @__PURE__ */ R(
|
|
42368
42389
|
"svg",
|
|
42369
42390
|
{
|
|
@@ -42388,7 +42409,7 @@ function Dbe({ className: e }) {
|
|
|
42388
42409
|
}
|
|
42389
42410
|
);
|
|
42390
42411
|
}
|
|
42391
|
-
function
|
|
42412
|
+
function Obe({ className: e }) {
|
|
42392
42413
|
return /* @__PURE__ */ x(
|
|
42393
42414
|
"svg",
|
|
42394
42415
|
{
|
|
@@ -42403,7 +42424,7 @@ function Rbe({ className: e }) {
|
|
|
42403
42424
|
}
|
|
42404
42425
|
);
|
|
42405
42426
|
}
|
|
42406
|
-
function
|
|
42427
|
+
function Lbe({ text: e }) {
|
|
42407
42428
|
const t = nt(null), [n, r] = ge(!1);
|
|
42408
42429
|
return Fe(() => {
|
|
42409
42430
|
if (!t.current) return;
|
|
@@ -42424,7 +42445,7 @@ function Obe({ text: e }) {
|
|
|
42424
42445
|
}
|
|
42425
42446
|
);
|
|
42426
42447
|
}
|
|
42427
|
-
function
|
|
42448
|
+
function Ibe({ message: e }) {
|
|
42428
42449
|
const t = e.isThinking, [n, r] = ge(!1), [i, o] = ge(!1), s = t || n, a = e.text.length > $T, l = !a || i ? e.text : `${e.text.slice(0, $T).trimEnd()}…`;
|
|
42429
42450
|
return /* @__PURE__ */ R("div", { className: Sr.thinking_block, children: [
|
|
42430
42451
|
/* @__PURE__ */ R(
|
|
@@ -42436,22 +42457,22 @@ function Lbe({ message: e }) {
|
|
|
42436
42457
|
disabled: t,
|
|
42437
42458
|
children: [
|
|
42438
42459
|
!t && /* @__PURE__ */ x(
|
|
42439
|
-
|
|
42460
|
+
Obe,
|
|
42440
42461
|
{
|
|
42441
42462
|
className: ae(Sr.thinking_block__chevron, s && Sr["thinking_block__chevron--expanded"])
|
|
42442
42463
|
}
|
|
42443
42464
|
),
|
|
42444
42465
|
/* @__PURE__ */ x(
|
|
42445
|
-
|
|
42466
|
+
Rbe,
|
|
42446
42467
|
{
|
|
42447
42468
|
className: ae(Sr.thinking_block__brain, t && Sr["thinking_block__brain--streaming"])
|
|
42448
42469
|
}
|
|
42449
42470
|
),
|
|
42450
|
-
/* @__PURE__ */ x("span", { className: ae(t && Sr["thinking_block__label--streaming"]), children: t ?
|
|
42471
|
+
/* @__PURE__ */ x("span", { className: ae(t && Sr["thinking_block__label--streaming"]), children: t ? Dbe : Fbe })
|
|
42451
42472
|
]
|
|
42452
42473
|
}
|
|
42453
42474
|
),
|
|
42454
|
-
s && /* @__PURE__ */ x("div", { className: Sr.thinking_block__body, children: t ? /* @__PURE__ */ x(
|
|
42475
|
+
s && /* @__PURE__ */ x("div", { className: Sr.thinking_block__body, children: t ? /* @__PURE__ */ x(Lbe, { text: e.text }) : /* @__PURE__ */ R("div", { className: Sr.thinking_block__reasoning, children: [
|
|
42455
42476
|
/* @__PURE__ */ x(zf, { children: l }),
|
|
42456
42477
|
a && /* @__PURE__ */ x(
|
|
42457
42478
|
"button",
|
|
@@ -42465,41 +42486,41 @@ function Lbe({ message: e }) {
|
|
|
42465
42486
|
] }) })
|
|
42466
42487
|
] });
|
|
42467
42488
|
}
|
|
42468
|
-
const
|
|
42469
|
-
container:
|
|
42470
|
-
tabs:
|
|
42471
|
-
tab:
|
|
42489
|
+
const Pbe = "_container_12tvo_1", zbe = "_tabs_12tvo_13", Bbe = "_tab_12tvo_13", Ube = "_header_12tvo_42", jbe = "_title_12tvo_50", qbe = "_download_button_12tvo_55", Wbe = "_download_12tvo_55", Hbe = "_download_backdrop_12tvo_79", Gbe = "_download_menu_12tvo_85", Vbe = "_download_menu_item_12tvo_100", Ybe = "_table_wrapper_12tvo_114", Xbe = "_table_12tvo_114", Kbe = "_table_header_12tvo_125", Zbe = "_table_header_cell_12tvo_129", Jbe = "_header_cell_content_12tvo_137", Qbe = "_header_label_12tvo_143", eve = "_header_key_12tvo_148", tve = "_table_row_12tvo_154", nve = "_table_cell_12tvo_161", rve = "_pagination_12tvo_166", ive = "_pagination_button_12tvo_174", ove = "_pagination_page_12tvo_195", sve = "_pagination_ellipsis_12tvo_218", ave = "_empty_state_12tvo_224", lve = "_sql_view_12tvo_231", uve = "_sql_block_12tvo_239", cve = "_sql_explanation_12tvo_243", fve = "_time_12tvo_251", dve = "_snackbar_12tvo_255", hve = "_snackbar_text_12tvo_280", pve = "_snackbar_action_12tvo_286", gve = "_snackbar_close_12tvo_300", Ie = {
|
|
42490
|
+
container: Pbe,
|
|
42491
|
+
tabs: zbe,
|
|
42492
|
+
tab: Bbe,
|
|
42472
42493
|
"tab--active": "_tab--active_12tvo_37",
|
|
42473
|
-
header:
|
|
42474
|
-
title:
|
|
42475
|
-
download_button:
|
|
42476
|
-
download:
|
|
42477
|
-
download_backdrop:
|
|
42478
|
-
download_menu:
|
|
42479
|
-
download_menu_item:
|
|
42480
|
-
table_wrapper:
|
|
42481
|
-
table:
|
|
42482
|
-
table_header:
|
|
42483
|
-
table_header_cell:
|
|
42484
|
-
header_cell_content:
|
|
42485
|
-
header_label:
|
|
42486
|
-
header_key:
|
|
42487
|
-
table_row:
|
|
42488
|
-
table_cell:
|
|
42489
|
-
pagination:
|
|
42490
|
-
pagination_button:
|
|
42491
|
-
pagination_page:
|
|
42494
|
+
header: Ube,
|
|
42495
|
+
title: jbe,
|
|
42496
|
+
download_button: qbe,
|
|
42497
|
+
download: Wbe,
|
|
42498
|
+
download_backdrop: Hbe,
|
|
42499
|
+
download_menu: Gbe,
|
|
42500
|
+
download_menu_item: Vbe,
|
|
42501
|
+
table_wrapper: Ybe,
|
|
42502
|
+
table: Xbe,
|
|
42503
|
+
table_header: Kbe,
|
|
42504
|
+
table_header_cell: Zbe,
|
|
42505
|
+
header_cell_content: Jbe,
|
|
42506
|
+
header_label: Qbe,
|
|
42507
|
+
header_key: eve,
|
|
42508
|
+
table_row: tve,
|
|
42509
|
+
table_cell: nve,
|
|
42510
|
+
pagination: rve,
|
|
42511
|
+
pagination_button: ive,
|
|
42512
|
+
pagination_page: ove,
|
|
42492
42513
|
"pagination_page--active": "_pagination_page--active_12tvo_213",
|
|
42493
|
-
pagination_ellipsis:
|
|
42494
|
-
empty_state:
|
|
42495
|
-
sql_view:
|
|
42496
|
-
sql_block:
|
|
42497
|
-
sql_explanation:
|
|
42498
|
-
time:
|
|
42499
|
-
snackbar:
|
|
42500
|
-
snackbar_text:
|
|
42501
|
-
snackbar_action:
|
|
42502
|
-
snackbar_close:
|
|
42514
|
+
pagination_ellipsis: sve,
|
|
42515
|
+
empty_state: ave,
|
|
42516
|
+
sql_view: lve,
|
|
42517
|
+
sql_block: uve,
|
|
42518
|
+
sql_explanation: cve,
|
|
42519
|
+
time: fve,
|
|
42520
|
+
snackbar: dve,
|
|
42521
|
+
snackbar_text: hve,
|
|
42522
|
+
snackbar_action: pve,
|
|
42523
|
+
snackbar_close: gve
|
|
42503
42524
|
};
|
|
42504
42525
|
function yI(e, t) {
|
|
42505
42526
|
if (e == null) return "";
|
|
@@ -42525,7 +42546,7 @@ function AT(e) {
|
|
|
42525
42546
|
return e.includes(",") || e.includes('"') || e.includes(`
|
|
42526
42547
|
`) ? `"${e.replace(/"/g, '""')}"` : e;
|
|
42527
42548
|
}
|
|
42528
|
-
function
|
|
42549
|
+
function mve(e, t, n) {
|
|
42529
42550
|
const r = e.map((o) => AT(o.header)).join(","), i = t.map((o) => e.map((s, a) => {
|
|
42530
42551
|
const l = vC(o, s, a, n), u = yI(l, s.format);
|
|
42531
42552
|
return AT(u);
|
|
@@ -42533,7 +42554,7 @@ function gve(e, t, n) {
|
|
|
42533
42554
|
return [r, ...i].join(`
|
|
42534
42555
|
`);
|
|
42535
42556
|
}
|
|
42536
|
-
function
|
|
42557
|
+
function yve(e, t, n) {
|
|
42537
42558
|
return t.map((r) => {
|
|
42538
42559
|
const i = {};
|
|
42539
42560
|
return e.forEach((o, s) => {
|
|
@@ -42543,7 +42564,7 @@ function mve(e, t, n) {
|
|
|
42543
42564
|
}).join(`
|
|
42544
42565
|
`);
|
|
42545
42566
|
}
|
|
42546
|
-
function
|
|
42567
|
+
function _ve(e, t) {
|
|
42547
42568
|
if (t <= 7)
|
|
42548
42569
|
return Array.from({ length: t }, (o, s) => s + 1);
|
|
42549
42570
|
const n = [1], r = Math.max(2, e - 1), i = Math.min(t - 1, e + 1);
|
|
@@ -42552,14 +42573,14 @@ function yve(e, t) {
|
|
|
42552
42573
|
n.push(o);
|
|
42553
42574
|
return i < t - 1 && n.push("ellipsis"), n.push(t), n;
|
|
42554
42575
|
}
|
|
42555
|
-
function
|
|
42576
|
+
function bve() {
|
|
42556
42577
|
return /* @__PURE__ */ R("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
42557
42578
|
/* @__PURE__ */ x("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
42558
42579
|
/* @__PURE__ */ x("polyline", { points: "7 10 12 15 17 10" }),
|
|
42559
42580
|
/* @__PURE__ */ x("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
42560
42581
|
] });
|
|
42561
42582
|
}
|
|
42562
|
-
function
|
|
42583
|
+
function vve(e) {
|
|
42563
42584
|
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l, sql: u, sqlExplanation: c } = r, f = !!(u || c), { template: d, botMessage: h } = _t(), [p, g] = ge("table"), [m, y] = ge(!1), [_, b] = ge(1), [v, w] = ge({
|
|
42564
42585
|
visible: !1,
|
|
42565
42586
|
fileName: "",
|
|
@@ -42580,7 +42601,7 @@ function bve(e) {
|
|
|
42580
42601
|
b((S) => Math.min(k, S + 1));
|
|
42581
42602
|
}, F = re(
|
|
42582
42603
|
(S) => {
|
|
42583
|
-
const N = S === "jsonl" ?
|
|
42604
|
+
const N = S === "jsonl" ? yve(o, s, l) : `\uFEFF${mve(o, s, l)}`, O = S === "jsonl" ? "application/x-ndjson;charset=utf-8;" : "text/csv;charset=utf-8;", P = new Blob([N], { type: O }), L = URL.createObjectURL(P), j = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), X = `${(i || "table").replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, "_")}_${j}.${S}`, ie = document.createElement("a");
|
|
42584
42605
|
ie.href = L, ie.download = X, document.body.appendChild(ie), ie.click(), document.body.removeChild(ie), y(!1), w({ visible: !0, fileName: X, blobUrl: L });
|
|
42585
42606
|
},
|
|
42586
42607
|
[o, s, l, i]
|
|
@@ -42639,7 +42660,7 @@ function bve(e) {
|
|
|
42639
42660
|
"aria-haspopup": "menu",
|
|
42640
42661
|
"aria-expanded": m,
|
|
42641
42662
|
title: "Download",
|
|
42642
|
-
children: /* @__PURE__ */ x(
|
|
42663
|
+
children: /* @__PURE__ */ x(bve, {})
|
|
42643
42664
|
}
|
|
42644
42665
|
),
|
|
42645
42666
|
m && /* @__PURE__ */ R(ja, { children: [
|
|
@@ -42694,7 +42715,7 @@ ${u}
|
|
|
42694
42715
|
children: "<"
|
|
42695
42716
|
}
|
|
42696
42717
|
),
|
|
42697
|
-
|
|
42718
|
+
_ve(_, k).map(
|
|
42698
42719
|
(S, N) => S === "ellipsis" ? /* @__PURE__ */ x("span", { className: Ie.pagination_ellipsis, children: "…" }, `ellipsis-${N}`) : /* @__PURE__ */ x(
|
|
42699
42720
|
"button",
|
|
42700
42721
|
{
|
|
@@ -42732,16 +42753,16 @@ ${u}
|
|
|
42732
42753
|
}
|
|
42733
42754
|
);
|
|
42734
42755
|
}
|
|
42735
|
-
const xC = (e) => /* @__PURE__ */
|
|
42736
|
-
root:
|
|
42737
|
-
chip:
|
|
42738
|
-
icon_box:
|
|
42739
|
-
body:
|
|
42740
|
-
title:
|
|
42741
|
-
text:
|
|
42742
|
-
download_button:
|
|
42756
|
+
const xC = (e) => /* @__PURE__ */ Se.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), /* @__PURE__ */ Se.createElement("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }), /* @__PURE__ */ Se.createElement("path", { d: "M10 9H8" }), /* @__PURE__ */ Se.createElement("path", { d: "M16 13H8" }), /* @__PURE__ */ Se.createElement("path", { d: "M16 17H8" })), qv = (e) => /* @__PURE__ */ Se.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), /* @__PURE__ */ Se.createElement("polyline", { points: "7 10 12 15 17 10" }), /* @__PURE__ */ Se.createElement("line", { x1: 12, x2: 12, y1: 15, y2: 3 })), xve = "_root_1vqc7_1", wve = "_chip_1vqc7_9", kve = "_icon_box_1vqc7_30", Eve = "_body_1vqc7_46", Cve = "_title_1vqc7_54", Sve = "_text_1vqc7_64", $ve = "_download_button_1vqc7_73", xa = {
|
|
42757
|
+
root: xve,
|
|
42758
|
+
chip: wve,
|
|
42759
|
+
icon_box: kve,
|
|
42760
|
+
body: Eve,
|
|
42761
|
+
title: Cve,
|
|
42762
|
+
text: Sve,
|
|
42763
|
+
download_button: $ve
|
|
42743
42764
|
};
|
|
42744
|
-
function
|
|
42765
|
+
function Ave(e) {
|
|
42745
42766
|
const { title: t, text: n, defaultAction: r, downloadAction: i, raw: o, customStyle: s } = e, { sendMessage: a, client: l, customChannelId: u } = Bt(), { onTemplateBtnClick: c, defaultLinkTarget: f } = zs(), d = re(
|
|
42746
42767
|
(b) => {
|
|
42747
42768
|
switch (b.type) {
|
|
@@ -42807,7 +42828,7 @@ function $ve(e) {
|
|
|
42807
42828
|
}
|
|
42808
42829
|
);
|
|
42809
42830
|
}
|
|
42810
|
-
function
|
|
42831
|
+
function Mve(e) {
|
|
42811
42832
|
const { message: t } = e, { avatar: n } = Bt(), { template: r } = _t(), i = t.message.template;
|
|
42812
42833
|
return /* @__PURE__ */ R(an, { className: "asgard-attachment-template", type: "bot", direction: "horizontal", children: [
|
|
42813
42834
|
/* @__PURE__ */ x(ui, { avatar: n }),
|
|
@@ -42819,7 +42840,7 @@ function Ave(e) {
|
|
|
42819
42840
|
references: i?.references,
|
|
42820
42841
|
message: t,
|
|
42821
42842
|
children: /* @__PURE__ */ x("div", { className: xa.root, children: i?.attachments?.map((o, s) => /* @__PURE__ */ x(
|
|
42822
|
-
|
|
42843
|
+
Ave,
|
|
42823
42844
|
{
|
|
42824
42845
|
title: o.title,
|
|
42825
42846
|
text: o.text,
|
|
@@ -42840,7 +42861,7 @@ function Ave(e) {
|
|
|
42840
42861
|
)
|
|
42841
42862
|
] });
|
|
42842
42863
|
}
|
|
42843
|
-
function
|
|
42864
|
+
function Tve(e) {
|
|
42844
42865
|
const { message: t } = e, { renderMessageContent: n } = zs(), { avatar: r } = Bt(), i = ke(() => function({ children: a }) {
|
|
42845
42866
|
return t.type === "bot" ? /* @__PURE__ */ R(an, { type: "bot", direction: "horizontal", children: [
|
|
42846
42867
|
/* @__PURE__ */ x(ui, { avatar: r }),
|
|
@@ -42854,7 +42875,7 @@ function Mve(e) {
|
|
|
42854
42875
|
if (t.type === "tool-call")
|
|
42855
42876
|
return null;
|
|
42856
42877
|
if (t.type === "thinking")
|
|
42857
|
-
return /* @__PURE__ */ x(
|
|
42878
|
+
return /* @__PURE__ */ x(Ibe, { message: t });
|
|
42858
42879
|
if (t.type === "subagent")
|
|
42859
42880
|
return null;
|
|
42860
42881
|
if (t.isTyping)
|
|
@@ -42879,44 +42900,44 @@ function Mve(e) {
|
|
|
42879
42900
|
case Cr.LOCATION:
|
|
42880
42901
|
return /* @__PURE__ */ x(s_e, { message: t });
|
|
42881
42902
|
case Cr.TABLE:
|
|
42882
|
-
return /* @__PURE__ */ x(
|
|
42903
|
+
return /* @__PURE__ */ x(vve, { message: t });
|
|
42883
42904
|
case Cr.ATTACHMENT:
|
|
42884
|
-
return /* @__PURE__ */ x(
|
|
42905
|
+
return /* @__PURE__ */ x(Mve, { message: t });
|
|
42885
42906
|
default:
|
|
42886
42907
|
return t.message.text ? /* @__PURE__ */ x(A1, { message: t }) : /* @__PURE__ */ x("div", {});
|
|
42887
42908
|
}
|
|
42888
42909
|
}, [t]);
|
|
42889
42910
|
return n ? n({ message: t, renderDefaultContent: o, MessageContainer: i }) : o();
|
|
42890
42911
|
}
|
|
42891
|
-
const
|
|
42892
|
-
subagent_list:
|
|
42893
|
-
header:
|
|
42894
|
-
header__icon:
|
|
42912
|
+
const Nve = "_subagent_list_14euv_1", Fve = "_header_14euv_9", Dve = "_header__icon_14euv_26", Rve = "_header__title_14euv_37", Ove = "_header__count_14euv_41", Lve = "_header__chevron_14euv_49", Ive = "_list_14euv_55", Pve = "_row_14euv_61", zve = "_row__button_14euv_65", Bve = "_glyph_14euv_78", Uve = "_tool_glyph_14euv_85", jve = "_glyph__spin_14euv_108", qve = "_row__body_14euv_125", Wve = "_row__label_14euv_130", Hve = "_row__type_14euv_138", Gve = "_row__desc_active_14euv_142", Vve = "_row__current_14euv_146", Yve = "_row__meta_14euv_156", Xve = "_row__chevron_14euv_167", Kve = "_tools_14euv_173", Zve = "_tool_14euv_85", Jve = "_tool__label_14euv_189", Oe = {
|
|
42913
|
+
subagent_list: Nve,
|
|
42914
|
+
header: Fve,
|
|
42915
|
+
header__icon: Dve,
|
|
42895
42916
|
"header__icon--idle": "_header__icon--idle_14euv_33",
|
|
42896
|
-
header__title:
|
|
42897
|
-
header__count:
|
|
42898
|
-
header__chevron:
|
|
42899
|
-
list:
|
|
42900
|
-
row:
|
|
42901
|
-
row__button:
|
|
42902
|
-
glyph:
|
|
42903
|
-
tool_glyph:
|
|
42917
|
+
header__title: Rve,
|
|
42918
|
+
header__count: Ove,
|
|
42919
|
+
header__chevron: Lve,
|
|
42920
|
+
list: Ive,
|
|
42921
|
+
row: Pve,
|
|
42922
|
+
row__button: zve,
|
|
42923
|
+
glyph: Bve,
|
|
42924
|
+
tool_glyph: Uve,
|
|
42904
42925
|
"glyph--running": "_glyph--running_14euv_91",
|
|
42905
42926
|
"glyph--completed": "_glyph--completed_14euv_95",
|
|
42906
42927
|
"glyph--failed": "_glyph--failed_14euv_99",
|
|
42907
42928
|
"glyph--cancelled": "_glyph--cancelled_14euv_103",
|
|
42908
|
-
glyph__spin:
|
|
42909
|
-
row__body:
|
|
42910
|
-
row__label:
|
|
42929
|
+
glyph__spin: jve,
|
|
42930
|
+
row__body: qve,
|
|
42931
|
+
row__label: Wve,
|
|
42911
42932
|
"row__label--running": "_row__label--running_14euv_134",
|
|
42912
|
-
row__type:
|
|
42913
|
-
row__desc_active:
|
|
42914
|
-
row__current:
|
|
42915
|
-
row__meta:
|
|
42916
|
-
row__chevron:
|
|
42917
|
-
tools:
|
|
42918
|
-
tool:
|
|
42919
|
-
tool__label:
|
|
42933
|
+
row__type: Hve,
|
|
42934
|
+
row__desc_active: Gve,
|
|
42935
|
+
row__current: Vve,
|
|
42936
|
+
row__meta: Yve,
|
|
42937
|
+
row__chevron: Xve,
|
|
42938
|
+
tools: Kve,
|
|
42939
|
+
tool: Zve,
|
|
42940
|
+
tool__label: Jve
|
|
42920
42941
|
}, Fl = {
|
|
42921
42942
|
viewBox: "0 0 24 24",
|
|
42922
42943
|
fill: "none",
|
|
@@ -42941,13 +42962,13 @@ function vI({ className: e, label: t }) {
|
|
|
42941
42962
|
/* @__PURE__ */ x("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
|
|
42942
42963
|
] });
|
|
42943
42964
|
}
|
|
42944
|
-
function
|
|
42965
|
+
function Qve({ className: e, label: t }) {
|
|
42945
42966
|
return /* @__PURE__ */ R("svg", { className: e, ...Fl, role: t ? "img" : void 0, "aria-label": t, children: [
|
|
42946
42967
|
/* @__PURE__ */ x("circle", { cx: "12", cy: "12", r: "10" }),
|
|
42947
42968
|
/* @__PURE__ */ x("line", { x1: "9", x2: "15", y1: "15", y2: "9" })
|
|
42948
42969
|
] });
|
|
42949
42970
|
}
|
|
42950
|
-
function
|
|
42971
|
+
function exe({ className: e }) {
|
|
42951
42972
|
return /* @__PURE__ */ R("svg", { className: e, ...Fl, children: [
|
|
42952
42973
|
/* @__PURE__ */ x("path", { d: "M12 8V4H8" }),
|
|
42953
42974
|
/* @__PURE__ */ x("rect", { x: "4", y: "8", width: "16", height: "12", rx: "2" }),
|
|
@@ -42963,19 +42984,19 @@ function xI({ className: e }) {
|
|
|
42963
42984
|
function wI({ className: e }) {
|
|
42964
42985
|
return /* @__PURE__ */ x("svg", { className: e, ...Fl, children: /* @__PURE__ */ x("path", { d: "m9 18 6-6-6-6" }) });
|
|
42965
42986
|
}
|
|
42966
|
-
function
|
|
42967
|
-
return e === "running" ? /* @__PURE__ */ x(_I, { className: ae(Oe.glyph, Oe.glyph__spin, Oe["glyph--running"]), label: t }) : e === "failed" ? /* @__PURE__ */ x(vI, { className: ae(Oe.glyph, Oe["glyph--failed"]), label: t }) : e === "cancelled" ? /* @__PURE__ */ x(
|
|
42987
|
+
function txe({ status: e, label: t }) {
|
|
42988
|
+
return e === "running" ? /* @__PURE__ */ x(_I, { className: ae(Oe.glyph, Oe.glyph__spin, Oe["glyph--running"]), label: t }) : e === "failed" ? /* @__PURE__ */ x(vI, { className: ae(Oe.glyph, Oe["glyph--failed"]), label: t }) : e === "cancelled" ? /* @__PURE__ */ x(Qve, { className: ae(Oe.glyph, Oe["glyph--cancelled"]), label: t }) : /* @__PURE__ */ x(bI, { className: ae(Oe.glyph, Oe["glyph--completed"]), label: t });
|
|
42968
42989
|
}
|
|
42969
|
-
function
|
|
42990
|
+
function nxe({ status: e }) {
|
|
42970
42991
|
return e === "running" ? /* @__PURE__ */ x(_I, { className: ae(Oe.tool_glyph, Oe.glyph__spin, Oe["glyph--running"]) }) : e === "error" ? /* @__PURE__ */ x(vI, { className: ae(Oe.tool_glyph, Oe["glyph--failed"]) }) : /* @__PURE__ */ x(bI, { className: ae(Oe.tool_glyph, Oe["glyph--completed"]) });
|
|
42971
42992
|
}
|
|
42972
|
-
function
|
|
42993
|
+
function rxe(e) {
|
|
42973
42994
|
for (let t = e.length - 1; t >= 0; t--)
|
|
42974
42995
|
if (e[t].status === "running") return e[t];
|
|
42975
42996
|
return e[e.length - 1];
|
|
42976
42997
|
}
|
|
42977
|
-
function
|
|
42978
|
-
const [n, r] = ge(!1), i = e.status === "running", o = e.tools.length > 0, s = i && o ?
|
|
42998
|
+
function ixe({ sa: e, locale: t }) {
|
|
42999
|
+
const [n, r] = ge(!1), i = e.status === "running", o = e.tools.length > 0, s = i && o ? rxe(e.tools) : void 0;
|
|
42979
43000
|
return /* @__PURE__ */ R("li", { className: Oe.row, children: [
|
|
42980
43001
|
/* @__PURE__ */ R(
|
|
42981
43002
|
"button",
|
|
@@ -42987,7 +43008,7 @@ function rxe({ sa: e, locale: t }) {
|
|
|
42987
43008
|
},
|
|
42988
43009
|
"aria-expanded": o ? n : void 0,
|
|
42989
43010
|
children: [
|
|
42990
|
-
/* @__PURE__ */ x(
|
|
43011
|
+
/* @__PURE__ */ x(txe, { status: e.status, label: Ot(t, `subagent.${e.status}`) }),
|
|
42991
43012
|
/* @__PURE__ */ R("span", { className: Oe.row__body, children: [
|
|
42992
43013
|
/* @__PURE__ */ R("span", { className: ae(Oe.row__label, i && Oe["row__label--running"]), children: [
|
|
42993
43014
|
e.subagentType && /* @__PURE__ */ R("span", { className: Oe.row__type, children: [
|
|
@@ -43009,18 +43030,18 @@ function rxe({ sa: e, locale: t }) {
|
|
|
43009
43030
|
}
|
|
43010
43031
|
),
|
|
43011
43032
|
n && o && /* @__PURE__ */ x("ul", { className: Oe.tools, children: e.tools.map((a, l) => /* @__PURE__ */ R("li", { className: Oe.tool, children: [
|
|
43012
|
-
/* @__PURE__ */ x(
|
|
43033
|
+
/* @__PURE__ */ x(nxe, { status: a.status }),
|
|
43013
43034
|
/* @__PURE__ */ x("span", { className: Oe.tool__label, children: jv(a, t) })
|
|
43014
43035
|
] }, l)) })
|
|
43015
43036
|
] });
|
|
43016
43037
|
}
|
|
43017
|
-
function
|
|
43038
|
+
function oxe({ subagents: e, locale: t = "en-US" }) {
|
|
43018
43039
|
const [n, r] = ge(null);
|
|
43019
43040
|
if (e.length === 0) return null;
|
|
43020
43041
|
const i = e.some((a) => a.status === "running"), o = n ?? i, s = e.filter((a) => a.status !== "running").length;
|
|
43021
43042
|
return /* @__PURE__ */ R("section", { className: ae("asgard-subagent-list", Oe.subagent_list), "aria-label": Ot(t, "subagent.title"), children: [
|
|
43022
43043
|
/* @__PURE__ */ R("button", { type: "button", className: Oe.header, onClick: () => r(() => !o), "aria-expanded": o, children: [
|
|
43023
|
-
/* @__PURE__ */ x(
|
|
43044
|
+
/* @__PURE__ */ x(exe, { className: ae(Oe.header__icon, !i && Oe["header__icon--idle"]) }),
|
|
43024
43045
|
/* @__PURE__ */ x("span", { className: Oe.header__title, children: Ot(t, "subagent.title") }),
|
|
43025
43046
|
/* @__PURE__ */ R("span", { className: Oe.header__count, children: [
|
|
43026
43047
|
/* @__PURE__ */ R("span", { children: [
|
|
@@ -43031,31 +43052,31 @@ function ixe({ subagents: e, locale: t = "en-US" }) {
|
|
|
43031
43052
|
o ? /* @__PURE__ */ x(xI, { className: Oe.header__chevron }) : /* @__PURE__ */ x(wI, { className: Oe.header__chevron })
|
|
43032
43053
|
] })
|
|
43033
43054
|
] }),
|
|
43034
|
-
o && /* @__PURE__ */ x("ul", { className: Oe.list, children: e.map((a) => /* @__PURE__ */ x(
|
|
43055
|
+
o && /* @__PURE__ */ x("ul", { className: Oe.list, children: e.map((a) => /* @__PURE__ */ x(ixe, { sa: a, locale: t }, a.parentToolUseId)) })
|
|
43035
43056
|
] });
|
|
43036
43057
|
}
|
|
43037
|
-
const
|
|
43038
|
-
task_list:
|
|
43039
|
-
header:
|
|
43040
|
-
header__icon:
|
|
43058
|
+
const sxe = "_task_list_1jybr_1", axe = "_header_1jybr_9", lxe = "_header__icon_1jybr_26", uxe = "_header__title_1jybr_37", cxe = "_header__count_1jybr_41", fxe = "_header__chevron_1jybr_49", dxe = "_list_1jybr_55", hxe = "_row_1jybr_61", pxe = "_row__button_1jybr_65", gxe = "_glyph_1jybr_78", mxe = "_glyph__spin_1jybr_98", yxe = "_row__label_1jybr_115", _xe = "_row__chevron_1jybr_134", bxe = "_row__description_1jybr_142", at = {
|
|
43059
|
+
task_list: sxe,
|
|
43060
|
+
header: axe,
|
|
43061
|
+
header__icon: lxe,
|
|
43041
43062
|
"header__icon--done": "_header__icon--done_1jybr_33",
|
|
43042
|
-
header__title:
|
|
43043
|
-
header__count:
|
|
43044
|
-
header__chevron:
|
|
43045
|
-
list:
|
|
43046
|
-
row:
|
|
43047
|
-
row__button:
|
|
43048
|
-
glyph:
|
|
43063
|
+
header__title: uxe,
|
|
43064
|
+
header__count: cxe,
|
|
43065
|
+
header__chevron: fxe,
|
|
43066
|
+
list: dxe,
|
|
43067
|
+
row: hxe,
|
|
43068
|
+
row__button: pxe,
|
|
43069
|
+
glyph: gxe,
|
|
43049
43070
|
"glyph--in_progress": "_glyph--in_progress_1jybr_85",
|
|
43050
43071
|
"glyph--completed": "_glyph--completed_1jybr_89",
|
|
43051
43072
|
"glyph--pending": "_glyph--pending_1jybr_93",
|
|
43052
|
-
glyph__spin:
|
|
43053
|
-
row__label:
|
|
43073
|
+
glyph__spin: mxe,
|
|
43074
|
+
row__label: yxe,
|
|
43054
43075
|
"row__label--active": "_row__label--active_1jybr_120",
|
|
43055
43076
|
"row__label--done": "_row__label--done_1jybr_125",
|
|
43056
43077
|
"row__label--pending": "_row__label--pending_1jybr_129",
|
|
43057
|
-
row__chevron:
|
|
43058
|
-
row__description:
|
|
43078
|
+
row__chevron: _xe,
|
|
43079
|
+
row__description: bxe
|
|
43059
43080
|
}, Cc = {
|
|
43060
43081
|
viewBox: "0 0 24 24",
|
|
43061
43082
|
fill: "none",
|
|
@@ -43064,19 +43085,19 @@ const oxe = "_task_list_1jybr_1", sxe = "_header_1jybr_9", axe = "_header__icon_
|
|
|
43064
43085
|
strokeLinecap: "round",
|
|
43065
43086
|
strokeLinejoin: "round"
|
|
43066
43087
|
};
|
|
43067
|
-
function
|
|
43088
|
+
function vxe({ className: e, label: t }) {
|
|
43068
43089
|
return /* @__PURE__ */ x("svg", { className: e, ...Cc, role: "img", "aria-label": t, children: /* @__PURE__ */ x("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
|
|
43069
43090
|
}
|
|
43070
|
-
function
|
|
43091
|
+
function xxe({ className: e, label: t }) {
|
|
43071
43092
|
return /* @__PURE__ */ R("svg", { className: e, ...Cc, role: "img", "aria-label": t, children: [
|
|
43072
43093
|
/* @__PURE__ */ x("circle", { cx: "12", cy: "12", r: "10" }),
|
|
43073
43094
|
/* @__PURE__ */ x("path", { d: "m9 12 2 2 4-4" })
|
|
43074
43095
|
] });
|
|
43075
43096
|
}
|
|
43076
|
-
function
|
|
43097
|
+
function wxe({ className: e, label: t }) {
|
|
43077
43098
|
return /* @__PURE__ */ x("svg", { className: e, ...Cc, role: "img", "aria-label": t, children: /* @__PURE__ */ x("circle", { cx: "12", cy: "12", r: "10" }) });
|
|
43078
43099
|
}
|
|
43079
|
-
function
|
|
43100
|
+
function kxe({ className: e }) {
|
|
43080
43101
|
return /* @__PURE__ */ R("svg", { className: e, ...Cc, children: [
|
|
43081
43102
|
/* @__PURE__ */ x("rect", { x: "3", y: "5", width: "6", height: "6", rx: "1" }),
|
|
43082
43103
|
/* @__PURE__ */ x("path", { d: "m3 17 2 2 4-4" }),
|
|
@@ -43091,16 +43112,16 @@ function kI({ className: e }) {
|
|
|
43091
43112
|
function EI({ className: e }) {
|
|
43092
43113
|
return /* @__PURE__ */ x("svg", { className: e, ...Cc, children: /* @__PURE__ */ x("path", { d: "m9 18 6-6-6-6" }) });
|
|
43093
43114
|
}
|
|
43094
|
-
function
|
|
43115
|
+
function Exe({ status: e, label: t }) {
|
|
43095
43116
|
return e === "in_progress" ? /* @__PURE__ */ x(
|
|
43096
|
-
|
|
43117
|
+
vxe,
|
|
43097
43118
|
{
|
|
43098
43119
|
className: ae(at.glyph, at.glyph__spin, at["glyph--in_progress"]),
|
|
43099
43120
|
label: t
|
|
43100
43121
|
}
|
|
43101
|
-
) : e === "completed" ? /* @__PURE__ */ x(
|
|
43122
|
+
) : e === "completed" ? /* @__PURE__ */ x(xxe, { className: ae(at.glyph, at["glyph--completed"]), label: t }) : /* @__PURE__ */ x(wxe, { className: ae(at.glyph, at["glyph--pending"]), label: t });
|
|
43102
43123
|
}
|
|
43103
|
-
function
|
|
43124
|
+
function Cxe({ task: e, locale: t }) {
|
|
43104
43125
|
const [n, r] = ge(!1), i = e.status === "in_progress", o = e.status === "completed", s = i && e.activeForm || e.subject, a = !!e.description;
|
|
43105
43126
|
return /* @__PURE__ */ R("li", { className: at.row, children: [
|
|
43106
43127
|
/* @__PURE__ */ R(
|
|
@@ -43113,7 +43134,7 @@ function Exe({ task: e, locale: t }) {
|
|
|
43113
43134
|
},
|
|
43114
43135
|
"aria-expanded": a ? n : void 0,
|
|
43115
43136
|
children: [
|
|
43116
|
-
/* @__PURE__ */ x(
|
|
43137
|
+
/* @__PURE__ */ x(Exe, { status: e.status, label: Ot(t, `task.${e.status}`) }),
|
|
43117
43138
|
/* @__PURE__ */ x(
|
|
43118
43139
|
"span",
|
|
43119
43140
|
{
|
|
@@ -43133,13 +43154,13 @@ function Exe({ task: e, locale: t }) {
|
|
|
43133
43154
|
n && a && /* @__PURE__ */ x("p", { className: at.row__description, children: e.description })
|
|
43134
43155
|
] });
|
|
43135
43156
|
}
|
|
43136
|
-
function
|
|
43157
|
+
function Sxe({ tasks: e, locale: t = "en-US" }) {
|
|
43137
43158
|
const [n, r] = ge(!0);
|
|
43138
43159
|
if (e.length === 0) return null;
|
|
43139
43160
|
const i = e.filter((s) => s.status === "completed").length, o = i === e.length;
|
|
43140
43161
|
return /* @__PURE__ */ R("section", { className: ae("asgard-task-list", at.task_list), "aria-label": Ot(t, "task.title"), children: [
|
|
43141
43162
|
/* @__PURE__ */ R("button", { type: "button", className: at.header, onClick: () => r((s) => !s), "aria-expanded": n, children: [
|
|
43142
|
-
/* @__PURE__ */ x(
|
|
43163
|
+
/* @__PURE__ */ x(kxe, { className: ae(at.header__icon, o && at["header__icon--done"]) }),
|
|
43143
43164
|
/* @__PURE__ */ x("span", { className: at.header__title, children: Ot(t, "task.title") }),
|
|
43144
43165
|
/* @__PURE__ */ R("span", { className: at.header__count, children: [
|
|
43145
43166
|
/* @__PURE__ */ R("span", { children: [
|
|
@@ -43150,25 +43171,25 @@ function Cxe({ tasks: e, locale: t = "en-US" }) {
|
|
|
43150
43171
|
n ? /* @__PURE__ */ x(kI, { className: at.header__chevron }) : /* @__PURE__ */ x(EI, { className: at.header__chevron })
|
|
43151
43172
|
] })
|
|
43152
43173
|
] }),
|
|
43153
|
-
n && /* @__PURE__ */ x("ul", { className: at.list, children: e.map((s) => /* @__PURE__ */ x(
|
|
43174
|
+
n && /* @__PURE__ */ x("ul", { className: at.list, children: e.map((s) => /* @__PURE__ */ x(Cxe, { task: s, locale: t }, s.id)) })
|
|
43154
43175
|
] });
|
|
43155
43176
|
}
|
|
43156
|
-
function
|
|
43177
|
+
function $xe(e) {
|
|
43157
43178
|
const t = [];
|
|
43158
43179
|
let n = [];
|
|
43159
43180
|
for (const r of e)
|
|
43160
43181
|
r.type !== "subagent" && (r.type === "tool-call" && (zI(r) || BI(r) || UI(r.parentToolUseId)) || (r.type === "tool-call" ? n.push(r) : (n.length > 0 && (t.push({ type: "tool-call-group", toolCalls: n }), n = []), t.push({ type: "message", message: r }))));
|
|
43161
43182
|
return n.length > 0 && t.push({ type: "tool-call-group", toolCalls: n }), t;
|
|
43162
43183
|
}
|
|
43163
|
-
function
|
|
43184
|
+
function Axe(e, t) {
|
|
43164
43185
|
let n = "pending";
|
|
43165
|
-
return e.isComplete && (n = e.isError || e.result?.error ? "error" : "completed"), {
|
|
43186
|
+
return e.isCancelled ? n = "cancelled" : e.isComplete && (n = e.isError || e.result?.error ? "error" : "completed"), {
|
|
43166
43187
|
id: e.messageId,
|
|
43167
43188
|
// F-004 — priority reason → synthesize (native) → toolName; F-005 — synthesis localized by `locale`.
|
|
43168
43189
|
label: jv(e, t),
|
|
43169
|
-
variant:
|
|
43190
|
+
variant: bbe(e),
|
|
43170
43191
|
// F-007 — right-side `+/-` line diff for Write / Edit.
|
|
43171
|
-
diff:
|
|
43192
|
+
diff: kbe(e),
|
|
43172
43193
|
status: n,
|
|
43173
43194
|
initial: {
|
|
43174
43195
|
toolsetName: e.toolsetName,
|
|
@@ -43178,8 +43199,8 @@ function $xe(e, t) {
|
|
|
43178
43199
|
result: e.result
|
|
43179
43200
|
};
|
|
43180
43201
|
}
|
|
43181
|
-
const
|
|
43182
|
-
function
|
|
43202
|
+
const Mxe = 50;
|
|
43203
|
+
function Txe() {
|
|
43183
43204
|
const { chatbot: e } = _t(), { renderToolCallGroup: t, locale: n = "en-US" } = zs(), {
|
|
43184
43205
|
messages: r,
|
|
43185
43206
|
conversation: i,
|
|
@@ -43200,7 +43221,7 @@ function Mxe() {
|
|
|
43200
43221
|
function v() {
|
|
43201
43222
|
if (!b) return;
|
|
43202
43223
|
const { scrollTop: w, scrollHeight: E, clientHeight: k } = b, C = E - w - k;
|
|
43203
|
-
l(C <=
|
|
43224
|
+
l(C <= Mxe);
|
|
43204
43225
|
}
|
|
43205
43226
|
return b.addEventListener("scroll", v, { passive: !0 }), () => {
|
|
43206
43227
|
b.removeEventListener("scroll", v);
|
|
@@ -43221,7 +43242,7 @@ function Mxe() {
|
|
|
43221
43242
|
maxWidth: e?.contentMaxWidth ?? "1200px"
|
|
43222
43243
|
}),
|
|
43223
43244
|
[e]
|
|
43224
|
-
), _ =
|
|
43245
|
+
), _ = $xe(Array.from(r?.values() ?? []));
|
|
43225
43246
|
return /* @__PURE__ */ x("div", { className: _h.chatbot_body_wrapper, children: /* @__PURE__ */ R(
|
|
43226
43247
|
"div",
|
|
43227
43248
|
{
|
|
@@ -43233,8 +43254,8 @@ function Mxe() {
|
|
|
43233
43254
|
/* @__PURE__ */ R("div", { ref: d, className: _h.chatbot_body__content, style: y, children: [
|
|
43234
43255
|
_.map((b, v) => {
|
|
43235
43256
|
if (b.type === "tool-call-group") {
|
|
43236
|
-
const w = b.toolCalls.map((T) =>
|
|
43237
|
-
|
|
43257
|
+
const w = b.toolCalls.map((T) => Axe(T, n)), E = b.toolCalls[0], k = `tool-call-group-${E?.messageId || v}`, C = xbe(b.toolCalls, n), $ = v < _.length - 1, A = (T) => /* @__PURE__ */ x(
|
|
43258
|
+
mbe,
|
|
43238
43259
|
{
|
|
43239
43260
|
items: w,
|
|
43240
43261
|
time: E?.time,
|
|
@@ -43254,7 +43275,7 @@ function Mxe() {
|
|
|
43254
43275
|
return /* @__PURE__ */ x(SC, { children: A() }, k);
|
|
43255
43276
|
}
|
|
43256
43277
|
return /* @__PURE__ */ x(
|
|
43257
|
-
|
|
43278
|
+
Tve,
|
|
43258
43279
|
{
|
|
43259
43280
|
message: b.message
|
|
43260
43281
|
},
|
|
@@ -43262,8 +43283,8 @@ function Mxe() {
|
|
|
43262
43283
|
);
|
|
43263
43284
|
}),
|
|
43264
43285
|
(m.length > 0 || g.length > 0) && /* @__PURE__ */ R("div", { className: _h.chatbot_body__docked, children: [
|
|
43265
|
-
/* @__PURE__ */ x(
|
|
43266
|
-
/* @__PURE__ */ x(
|
|
43286
|
+
/* @__PURE__ */ x(oxe, { subagents: m, locale: n }),
|
|
43287
|
+
/* @__PURE__ */ x(Sxe, { tasks: g, locale: n })
|
|
43267
43288
|
] })
|
|
43268
43289
|
] }),
|
|
43269
43290
|
/* @__PURE__ */ x("div", { ref: o })
|
|
@@ -43271,42 +43292,42 @@ function Mxe() {
|
|
|
43271
43292
|
}
|
|
43272
43293
|
) });
|
|
43273
43294
|
}
|
|
43274
|
-
const
|
|
43275
|
-
chatbot_footer:
|
|
43276
|
-
chatbot_footer__content:
|
|
43277
|
-
chatbot_textarea:
|
|
43295
|
+
const Nxe = "_chatbot_footer_g6bq1_1", Fxe = "_chatbot_footer__content_g6bq1_1", Dxe = "_chatbot_textarea_g6bq1_19", Rxe = "_chatbot_submit_button_g6bq1_43", Oxe = "_chatbot_submit_button__disabled_g6bq1_68", Lxe = "_attachment_buttons_g6bq1_73", Ixe = "_send_zone_g6bq1_79", Pxe = "_attachment_menu_container_g6bq1_85", zxe = "_attachment_menu_g6bq1_85", Bxe = "_attachment_menu_item_g6bq1_103", Uxe = "_attachment_button_g6bq1_73", jxe = "_file_input_hidden_g6bq1_157", qxe = "_file_preview_container_g6bq1_161", Wxe = "_file_preview_grid_g6bq1_170", Hxe = "_file_preview_item_g6bq1_176", Gxe = "_file_preview_image_area_g6bq1_187", Vxe = "_file_preview_image_g6bq1_187", Yxe = "_file_remove_button_g6bq1_208", Xxe = "_file_upload_overlay_g6bq1_227", Kxe = "_file_upload_spinner_g6bq1_244", Zxe = "_file_preview_item__error_g6bq1_253", Jxe = "_file_error_overlay_g6bq1_257", Qxe = "_file_error_icon_g6bq1_266", e2e = "_image_modal_g6bq1_272", t2e = "_image_modal_content_g6bq1_284", n2e = "_image_modal_image_g6bq1_291", r2e = "_image_modal_close_button_g6bq1_300", i2e = "_document_preview_grid_g6bq1_327", o2e = "_document_preview_item_g6bq1_338", s2e = "_document_preview_icon_wrapper_g6bq1_353", a2e = "_document_preview_icon_g6bq1_353", l2e = "_document_preview_name_g6bq1_366", be = {
|
|
43296
|
+
chatbot_footer: Nxe,
|
|
43297
|
+
chatbot_footer__content: Fxe,
|
|
43298
|
+
chatbot_textarea: Dxe,
|
|
43278
43299
|
"chatbot_textarea--focused": "_chatbot_textarea--focused_g6bq1_39",
|
|
43279
|
-
chatbot_submit_button:
|
|
43280
|
-
chatbot_submit_button__disabled:
|
|
43281
|
-
attachment_buttons:
|
|
43282
|
-
send_zone:
|
|
43283
|
-
attachment_menu_container:
|
|
43284
|
-
attachment_menu:
|
|
43285
|
-
attachment_menu_item:
|
|
43286
|
-
attachment_button:
|
|
43287
|
-
file_input_hidden:
|
|
43288
|
-
file_preview_container:
|
|
43289
|
-
file_preview_grid:
|
|
43290
|
-
file_preview_item:
|
|
43291
|
-
file_preview_image_area:
|
|
43292
|
-
file_preview_image:
|
|
43293
|
-
file_remove_button:
|
|
43294
|
-
file_upload_overlay:
|
|
43295
|
-
file_upload_spinner:
|
|
43296
|
-
file_preview_item__error:
|
|
43297
|
-
file_error_overlay:
|
|
43298
|
-
file_error_icon:
|
|
43299
|
-
image_modal:
|
|
43300
|
-
image_modal_content:
|
|
43301
|
-
image_modal_image:
|
|
43302
|
-
image_modal_close_button:
|
|
43303
|
-
document_preview_grid:
|
|
43304
|
-
document_preview_item:
|
|
43305
|
-
document_preview_icon_wrapper:
|
|
43306
|
-
document_preview_icon:
|
|
43307
|
-
document_preview_name:
|
|
43308
|
-
},
|
|
43309
|
-
function
|
|
43300
|
+
chatbot_submit_button: Rxe,
|
|
43301
|
+
chatbot_submit_button__disabled: Oxe,
|
|
43302
|
+
attachment_buttons: Lxe,
|
|
43303
|
+
send_zone: Ixe,
|
|
43304
|
+
attachment_menu_container: Pxe,
|
|
43305
|
+
attachment_menu: zxe,
|
|
43306
|
+
attachment_menu_item: Bxe,
|
|
43307
|
+
attachment_button: Uxe,
|
|
43308
|
+
file_input_hidden: jxe,
|
|
43309
|
+
file_preview_container: qxe,
|
|
43310
|
+
file_preview_grid: Wxe,
|
|
43311
|
+
file_preview_item: Hxe,
|
|
43312
|
+
file_preview_image_area: Gxe,
|
|
43313
|
+
file_preview_image: Vxe,
|
|
43314
|
+
file_remove_button: Yxe,
|
|
43315
|
+
file_upload_overlay: Xxe,
|
|
43316
|
+
file_upload_spinner: Kxe,
|
|
43317
|
+
file_preview_item__error: Zxe,
|
|
43318
|
+
file_error_overlay: Jxe,
|
|
43319
|
+
file_error_icon: Qxe,
|
|
43320
|
+
image_modal: e2e,
|
|
43321
|
+
image_modal_content: t2e,
|
|
43322
|
+
image_modal_image: n2e,
|
|
43323
|
+
image_modal_close_button: r2e,
|
|
43324
|
+
document_preview_grid: i2e,
|
|
43325
|
+
document_preview_item: o2e,
|
|
43326
|
+
document_preview_icon_wrapper: s2e,
|
|
43327
|
+
document_preview_icon: a2e,
|
|
43328
|
+
document_preview_name: l2e
|
|
43329
|
+
}, u2e = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), CI = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("circle", { cx: 20, cy: 20, r: 18, fill: "#D04444" }), /* @__PURE__ */ Se.createElement("rect", { x: 12, y: 12, width: 16, height: 16, fill: "#FFFFFF", rx: 2, ry: 2 })), MT = (e) => /* @__PURE__ */ Se.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }), /* @__PURE__ */ Se.createElement("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }), /* @__PURE__ */ Se.createElement("circle", { cx: 12, cy: 8, r: 2 }), /* @__PURE__ */ Se.createElement("rect", { width: 16, height: 16, x: 6, y: 2, rx: 2 })), c2e = (e) => /* @__PURE__ */ Se.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M5 12h14" }), /* @__PURE__ */ Se.createElement("path", { d: "M12 5v14" })), f2e = (e) => /* @__PURE__ */ Se.createElement("svg", { width: 11, height: 16, viewBox: "0 0 11 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Se.createElement("path", { d: "M5.40658 9.90397C4.82435 9.90397 4.33158 9.7023 3.92824 9.29897C3.52491 8.89564 3.32324 8.40286 3.32324 7.82064V2.82064C3.32324 2.23842 3.52491 1.74564 3.92824 1.3423C4.33158 0.938971 4.82435 0.737305 5.40658 0.737305C5.9888 0.737305 6.48158 0.938971 6.88491 1.3423C7.28824 1.74564 7.48991 2.23842 7.48991 2.82064V7.82064C7.48991 8.40286 7.28824 8.89564 6.88491 9.29897C6.48158 9.7023 5.9888 9.90397 5.40658 9.90397ZM4.86491 15.1123V12.8654C3.56213 12.7208 2.47949 12.1724 1.61699 11.2202C0.754492 10.2679 0.323242 9.13467 0.323242 7.82064H1.40658C1.40658 8.92731 1.79706 9.87064 2.57803 10.6506C3.35887 11.4306 4.30331 11.8206 5.41137 11.8206C6.51928 11.8206 7.46213 11.4306 8.23991 10.6506C9.01769 9.87064 9.40658 8.92731 9.40658 7.82064H10.4899C10.4899 9.13467 10.0587 10.2679 9.19616 11.2202C8.33366 12.1724 7.25102 12.7208 5.94824 12.8654V15.1123H4.86491ZM5.40658 8.82064C5.68991 8.82064 5.92741 8.7248 6.11908 8.53314C6.31074 8.34147 6.40658 8.10397 6.40658 7.82064V2.82064C6.40658 2.5373 6.31074 2.2998 6.11908 2.10814C5.92741 1.91647 5.68991 1.82064 5.40658 1.82064C5.12324 1.82064 4.88574 1.91647 4.69408 2.10814C4.50241 2.2998 4.40658 2.5373 4.40658 2.82064V7.82064C4.40658 8.10397 4.50241 8.34147 4.69408 8.53314C4.88574 8.7248 5.12324 8.82064 5.40658 8.82064Z", fill: "currentColor" }));
|
|
43330
|
+
function d2e(e) {
|
|
43310
43331
|
const { setValue: t, className: n, style: r, disabled: i = !1 } = e, [o, s] = ge(!1), a = nt(null);
|
|
43311
43332
|
Fe(() => {
|
|
43312
43333
|
const p = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
@@ -43365,11 +43386,11 @@ function f2e(e) {
|
|
|
43365
43386
|
onMouseUp: f,
|
|
43366
43387
|
onTouchStart: d,
|
|
43367
43388
|
onTouchEnd: h,
|
|
43368
|
-
children: o ? /* @__PURE__ */ x(CI, {}) : /* @__PURE__ */ x(
|
|
43389
|
+
children: o ? /* @__PURE__ */ x(CI, {}) : /* @__PURE__ */ x(f2e, {})
|
|
43369
43390
|
}
|
|
43370
43391
|
);
|
|
43371
43392
|
}
|
|
43372
|
-
const
|
|
43393
|
+
const h2e = ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp"], SI = [
|
|
43373
43394
|
// Office documents
|
|
43374
43395
|
"application/pdf",
|
|
43375
43396
|
"application/vnd.ms-excel",
|
|
@@ -43422,12 +43443,12 @@ const d2e = ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp"],
|
|
|
43422
43443
|
".json"
|
|
43423
43444
|
], $I = 20 * 1024 * 1024;
|
|
43424
43445
|
function AI(e) {
|
|
43425
|
-
return !e || e.length === 0 ?
|
|
43446
|
+
return !e || e.length === 0 ? h2e : e;
|
|
43426
43447
|
}
|
|
43427
43448
|
function kC(e) {
|
|
43428
43449
|
return !e || e.length === 0 ? null : e;
|
|
43429
43450
|
}
|
|
43430
|
-
function
|
|
43451
|
+
function p2e(e, t) {
|
|
43431
43452
|
const n = AI(t);
|
|
43432
43453
|
return n.includes(e.type) ? e.size > $I ? {
|
|
43433
43454
|
isValid: !1,
|
|
@@ -43437,18 +43458,18 @@ function h2e(e, t) {
|
|
|
43437
43458
|
error: `不支援的檔案格式。請選擇 ${n.map((i) => i.split("/")[1].toUpperCase()).join("、")} 圖片。`
|
|
43438
43459
|
};
|
|
43439
43460
|
}
|
|
43440
|
-
function
|
|
43461
|
+
function g2e(e, t) {
|
|
43441
43462
|
const n = [], r = [];
|
|
43442
43463
|
return Array.from(e).forEach((o) => {
|
|
43443
|
-
const s =
|
|
43464
|
+
const s = p2e(o, t);
|
|
43444
43465
|
s.isValid ? n.push(o) : r.push(`${o.name}: ${s.error}`);
|
|
43445
43466
|
}), { validFiles: n, errors: r };
|
|
43446
43467
|
}
|
|
43447
|
-
function
|
|
43468
|
+
function m2e(e) {
|
|
43448
43469
|
const t = e.lastIndexOf(".");
|
|
43449
43470
|
return t === -1 ? "" : e.slice(t).toLowerCase();
|
|
43450
43471
|
}
|
|
43451
|
-
function
|
|
43472
|
+
function y2e(e, t) {
|
|
43452
43473
|
const n = kC(t);
|
|
43453
43474
|
if (n) {
|
|
43454
43475
|
if (!n.includes(e.type))
|
|
@@ -43457,7 +43478,7 @@ function m2e(e, t) {
|
|
|
43457
43478
|
error: "不支援的檔案格式。"
|
|
43458
43479
|
};
|
|
43459
43480
|
} else {
|
|
43460
|
-
const r =
|
|
43481
|
+
const r = m2e(e.name), i = SI.includes(e.type), o = wC.includes(r);
|
|
43461
43482
|
if (!i && !o)
|
|
43462
43483
|
return {
|
|
43463
43484
|
isValid: !1,
|
|
@@ -43472,12 +43493,12 @@ function m2e(e, t) {
|
|
|
43472
43493
|
function MI(e, t) {
|
|
43473
43494
|
const n = [], r = [];
|
|
43474
43495
|
return Array.from(e).forEach((o) => {
|
|
43475
|
-
const s =
|
|
43496
|
+
const s = y2e(o, t);
|
|
43476
43497
|
s.isValid ? n.push(o) : r.push(`${o.name}: ${s.error}`);
|
|
43477
43498
|
}), { validFiles: n, errors: r };
|
|
43478
43499
|
}
|
|
43479
43500
|
const ap = 10;
|
|
43480
|
-
function
|
|
43501
|
+
function _2e(e) {
|
|
43481
43502
|
const { currentCount: t, onDocumentsChange: n, allowedDocumentMimeTypes: r, className: i, style: o } = e, s = kC(r), a = nt(null), l = re(() => {
|
|
43482
43503
|
if (t >= ap) {
|
|
43483
43504
|
alert(`最多只能上傳 ${ap} 個檔案`);
|
|
@@ -43515,12 +43536,12 @@ function y2e(e) {
|
|
|
43515
43536
|
/* @__PURE__ */ x("button", { className: i, style: o, onClick: l, title: "上傳文件", children: /* @__PURE__ */ x(xC, {}) })
|
|
43516
43537
|
] });
|
|
43517
43538
|
}
|
|
43518
|
-
const
|
|
43519
|
-
running_indicator:
|
|
43520
|
-
running_indicator__seam:
|
|
43521
|
-
running_indicator__segment:
|
|
43539
|
+
const b2e = "_running_indicator_6e7vq_1", v2e = "_running_indicator__seam_6e7vq_9", x2e = "_running_indicator__segment_6e7vq_15", b_ = {
|
|
43540
|
+
running_indicator: b2e,
|
|
43541
|
+
running_indicator__seam: v2e,
|
|
43542
|
+
running_indicator__segment: x2e
|
|
43522
43543
|
};
|
|
43523
|
-
function
|
|
43544
|
+
function w2e({ running: e }) {
|
|
43524
43545
|
return /* @__PURE__ */ R(
|
|
43525
43546
|
"div",
|
|
43526
43547
|
{
|
|
@@ -43535,7 +43556,7 @@ function x2e({ running: e }) {
|
|
|
43535
43556
|
);
|
|
43536
43557
|
}
|
|
43537
43558
|
const lp = 10, TT = 10;
|
|
43538
|
-
function
|
|
43559
|
+
function k2e({ footerEndActions: e } = {}) {
|
|
43539
43560
|
const {
|
|
43540
43561
|
sendMessage: t,
|
|
43541
43562
|
isConnecting: n,
|
|
@@ -43676,7 +43697,7 @@ function w2e({ footerEndActions: e } = {}) {
|
|
|
43676
43697
|
[o, s]
|
|
43677
43698
|
), Ko = re(
|
|
43678
43699
|
(Y) => {
|
|
43679
|
-
const { validFiles: ve, errors: De } =
|
|
43700
|
+
const { validFiles: ve, errors: De } = g2e(Y, c);
|
|
43680
43701
|
if (De.length > 0 && alert(`檔案驗證錯誤:
|
|
43681
43702
|
` + De.join(`
|
|
43682
43703
|
`)), ve.length > 0) {
|
|
@@ -43813,7 +43834,7 @@ function w2e({ footerEndActions: e } = {}) {
|
|
|
43813
43834
|
Y && j.current.style.setProperty("--asg-textarea-focus-color", String(Y));
|
|
43814
43835
|
}
|
|
43815
43836
|
}, [b.footer?.textArea, b.primaryComponent?.mainColor, _.userMessage?.backgroundColor]), /* @__PURE__ */ R("div", { ref: ie, className: ae("asgard-chatbot-footer", be.chatbot_footer), style: oe, children: [
|
|
43816
|
-
/* @__PURE__ */ x(
|
|
43837
|
+
/* @__PURE__ */ x(w2e, { running: n }),
|
|
43817
43838
|
v && F.length > 0 && /* @__PURE__ */ x(
|
|
43818
43839
|
"div",
|
|
43819
43840
|
{
|
|
@@ -43966,7 +43987,7 @@ function w2e({ footerEndActions: e } = {}) {
|
|
|
43966
43987
|
style: b.footer?.attachmentButton?.style,
|
|
43967
43988
|
onClick: () => L(!P),
|
|
43968
43989
|
title: "更多選項",
|
|
43969
|
-
children: /* @__PURE__ */ x(
|
|
43990
|
+
children: /* @__PURE__ */ x(c2e, {})
|
|
43970
43991
|
}
|
|
43971
43992
|
),
|
|
43972
43993
|
P && /* @__PURE__ */ R(
|
|
@@ -44048,7 +44069,7 @@ function w2e({ footerEndActions: e } = {}) {
|
|
|
44048
44069
|
}
|
|
44049
44070
|
),
|
|
44050
44071
|
E && /* @__PURE__ */ x(
|
|
44051
|
-
|
|
44072
|
+
_2e,
|
|
44052
44073
|
{
|
|
44053
44074
|
currentCount: N.length,
|
|
44054
44075
|
onDocumentsChange: (Y) => Zo(Y),
|
|
@@ -44094,10 +44115,10 @@ function w2e({ footerEndActions: e } = {}) {
|
|
|
44094
44115
|
style: b.footer?.submitButton?.style,
|
|
44095
44116
|
disabled: qt,
|
|
44096
44117
|
onClick: co,
|
|
44097
|
-
children: /* @__PURE__ */ x(
|
|
44118
|
+
children: /* @__PURE__ */ x(u2e, {})
|
|
44098
44119
|
}
|
|
44099
44120
|
) : /* @__PURE__ */ x(
|
|
44100
|
-
|
|
44121
|
+
d2e,
|
|
44101
44122
|
{
|
|
44102
44123
|
setValue: $,
|
|
44103
44124
|
disabled: n || tt,
|
|
@@ -44144,12 +44165,12 @@ function w2e({ footerEndActions: e } = {}) {
|
|
|
44144
44165
|
)
|
|
44145
44166
|
] });
|
|
44146
44167
|
}
|
|
44147
|
-
const
|
|
44148
|
-
chatbot_root:
|
|
44149
|
-
full_screen:
|
|
44150
|
-
chatbot_container:
|
|
44168
|
+
const E2e = "_chatbot_root_htsl5_2", C2e = "_full_screen_htsl5_128", S2e = "_chatbot_container_htsl5_133", ym = {
|
|
44169
|
+
chatbot_root: E2e,
|
|
44170
|
+
full_screen: C2e,
|
|
44171
|
+
chatbot_container: S2e
|
|
44151
44172
|
};
|
|
44152
|
-
function
|
|
44173
|
+
function $2e(e) {
|
|
44153
44174
|
const { children: t, onDragEnter: n, onDragOver: r, onDragLeave: i, onDrop: o } = e, s = nt(null), a = nt(null), l = _t();
|
|
44154
44175
|
KI(s), Fe(() => {
|
|
44155
44176
|
const c = a.current;
|
|
@@ -44218,7 +44239,7 @@ function NT(e) {
|
|
|
44218
44239
|
m.removeEventListener("wheel", _), m.removeEventListener("touchstart", b), m.removeEventListener("touchmove", v);
|
|
44219
44240
|
};
|
|
44220
44241
|
}, []), /* @__PURE__ */ x("div", { className: ae(ym.chatbot_root, r), style: Object.assign({}, f, i), children: t ? /* @__PURE__ */ x(
|
|
44221
|
-
|
|
44242
|
+
$2e,
|
|
44222
44243
|
{
|
|
44223
44244
|
onDragEnter: o,
|
|
44224
44245
|
onDragOver: s,
|
|
@@ -44240,10 +44261,10 @@ function NT(e) {
|
|
|
44240
44261
|
}
|
|
44241
44262
|
) });
|
|
44242
44263
|
}
|
|
44243
|
-
const
|
|
44244
|
-
container:
|
|
44245
|
-
avatar:
|
|
44246
|
-
message:
|
|
44264
|
+
const A2e = "_container_32b6s_1", M2e = "_avatar_32b6s_22", T2e = "_message_32b6s_35", v_ = {
|
|
44265
|
+
container: A2e,
|
|
44266
|
+
avatar: M2e,
|
|
44267
|
+
message: T2e
|
|
44247
44268
|
};
|
|
44248
44269
|
function FT({ message: e, avatar: t }) {
|
|
44249
44270
|
return /* @__PURE__ */ R("div", { className: v_.container, children: [
|
|
@@ -44251,13 +44272,13 @@ function FT({ message: e, avatar: t }) {
|
|
|
44251
44272
|
/* @__PURE__ */ x("div", { className: v_.message, children: e })
|
|
44252
44273
|
] });
|
|
44253
44274
|
}
|
|
44254
|
-
const
|
|
44255
|
-
overlay:
|
|
44256
|
-
overlay__content:
|
|
44257
|
-
overlay__icon:
|
|
44258
|
-
overlay__text:
|
|
44275
|
+
const N2e = "_overlay_1r6z5_1", F2e = "_overlay__content_1r6z5_12", D2e = "_overlay__icon_1r6z5_23", R2e = "_overlay__text_1r6z5_27", up = {
|
|
44276
|
+
overlay: N2e,
|
|
44277
|
+
overlay__content: F2e,
|
|
44278
|
+
overlay__icon: D2e,
|
|
44279
|
+
overlay__text: R2e
|
|
44259
44280
|
};
|
|
44260
|
-
function
|
|
44281
|
+
function O2e() {
|
|
44261
44282
|
const { isDraggingOver: e } = Gv();
|
|
44262
44283
|
return e ? /* @__PURE__ */ x("div", { className: up.overlay, children: /* @__PURE__ */ R("div", { className: up.overlay__content, children: [
|
|
44263
44284
|
/* @__PURE__ */ R(
|
|
@@ -44283,31 +44304,31 @@ function R2e() {
|
|
|
44283
44304
|
/* @__PURE__ */ x("span", { className: up.overlay__text, children: "Drop files here" })
|
|
44284
44305
|
] }) }) : null;
|
|
44285
44306
|
}
|
|
44286
|
-
const
|
|
44287
|
-
backdrop:
|
|
44288
|
-
modal:
|
|
44289
|
-
header:
|
|
44290
|
-
title:
|
|
44291
|
-
title_tool:
|
|
44292
|
-
close_btn:
|
|
44293
|
-
content:
|
|
44294
|
-
meta_row:
|
|
44295
|
-
input_section:
|
|
44296
|
-
input_toggle:
|
|
44297
|
-
input_toggle_expanded:
|
|
44298
|
-
input_viewer:
|
|
44299
|
-
deny_reason:
|
|
44300
|
-
actions:
|
|
44301
|
-
action_btn:
|
|
44302
|
-
action_primary:
|
|
44303
|
-
action_secondary:
|
|
44304
|
-
action_danger:
|
|
44305
|
-
pending_indicator:
|
|
44307
|
+
const L2e = "_backdrop_1dyy6_1", I2e = "_modal_1dyy6_12", P2e = "_header_1dyy6_24", z2e = "_title_1dyy6_33", B2e = "_title_tool_1dyy6_41", U2e = "_close_btn_1dyy6_45", j2e = "_content_1dyy6_68", q2e = "_meta_row_1dyy6_76", W2e = "_input_section_1dyy6_89", H2e = "_input_toggle_1dyy6_95", G2e = "_input_toggle_expanded_1dyy6_118", V2e = "_input_viewer_1dyy6_122", Y2e = "_deny_reason_1dyy6_129", X2e = "_actions_1dyy6_161", K2e = "_action_btn_1dyy6_168", Z2e = "_action_primary_1dyy6_186", J2e = "_action_secondary_1dyy6_194", Q2e = "_action_danger_1dyy6_203", ewe = "_pending_indicator_1dyy6_212", Ct = {
|
|
44308
|
+
backdrop: L2e,
|
|
44309
|
+
modal: I2e,
|
|
44310
|
+
header: P2e,
|
|
44311
|
+
title: z2e,
|
|
44312
|
+
title_tool: B2e,
|
|
44313
|
+
close_btn: U2e,
|
|
44314
|
+
content: j2e,
|
|
44315
|
+
meta_row: q2e,
|
|
44316
|
+
input_section: W2e,
|
|
44317
|
+
input_toggle: H2e,
|
|
44318
|
+
input_toggle_expanded: G2e,
|
|
44319
|
+
input_viewer: V2e,
|
|
44320
|
+
deny_reason: Y2e,
|
|
44321
|
+
actions: X2e,
|
|
44322
|
+
action_btn: K2e,
|
|
44323
|
+
action_primary: Z2e,
|
|
44324
|
+
action_secondary: J2e,
|
|
44325
|
+
action_danger: Q2e,
|
|
44326
|
+
pending_indicator: ewe
|
|
44306
44327
|
};
|
|
44307
|
-
function
|
|
44328
|
+
function twe({ className: e }) {
|
|
44308
44329
|
return /* @__PURE__ */ x("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ x("path", { d: "M9 18l6-6-6-6" }) });
|
|
44309
44330
|
}
|
|
44310
|
-
function
|
|
44331
|
+
function nwe(e) {
|
|
44311
44332
|
const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = ge(!1), [l, u] = ge(!1), [c, f] = ge(""), d = _t(), { chatbot: h } = d, p = h?.primaryComponent?.mainColor ?? h?.mainColor ?? d.userMessage?.backgroundColor, g = h?.primaryComponent?.secondaryColor ?? h?.secondaryColor, m = h?.inactiveColor, y = h?.backgroundColor, _ = h?.borderColor, b = ke(
|
|
44312
44333
|
() => ({
|
|
44313
44334
|
...p && {
|
|
@@ -44376,7 +44397,7 @@ function twe(e) {
|
|
|
44376
44397
|
className: ae(Ct.input_toggle, s && Ct.input_toggle_expanded),
|
|
44377
44398
|
onClick: () => a((C) => !C),
|
|
44378
44399
|
children: [
|
|
44379
|
-
/* @__PURE__ */ x(
|
|
44400
|
+
/* @__PURE__ */ x(twe, {}),
|
|
44380
44401
|
/* @__PURE__ */ x("span", { children: "輸入內容" })
|
|
44381
44402
|
]
|
|
44382
44403
|
}
|
|
@@ -44412,7 +44433,7 @@ function twe(e) {
|
|
|
44412
44433
|
function x_(e, t) {
|
|
44413
44434
|
return `${e}/${t}`;
|
|
44414
44435
|
}
|
|
44415
|
-
function
|
|
44436
|
+
function rwe() {
|
|
44416
44437
|
const { pendingConsent: e, replyToolCallConsents: t, client: n } = Bt(), [r, i] = ge(null), o = nt(/* @__PURE__ */ new Set()), s = nt(null);
|
|
44417
44438
|
Fe(() => {
|
|
44418
44439
|
e && i((d) => d?.processId === e.processId ? d : (o.current = /* @__PURE__ */ new Set(), {
|
|
@@ -44509,7 +44530,7 @@ function nwe() {
|
|
|
44509
44530
|
if (!u || u.alreadyAllowed || o.current.has(x_(u.toolsetName, u.toolName))) return null;
|
|
44510
44531
|
const c = e?.pendingCalls.length ?? r.remaining.length + r.answers.length, f = r.answers.length + 1;
|
|
44511
44532
|
return /* @__PURE__ */ x(
|
|
44512
|
-
|
|
44533
|
+
nwe,
|
|
44513
44534
|
{
|
|
44514
44535
|
pendingCall: u,
|
|
44515
44536
|
totalCount: c,
|
|
@@ -44518,13 +44539,13 @@ function nwe() {
|
|
|
44518
44539
|
}
|
|
44519
44540
|
);
|
|
44520
44541
|
}
|
|
44521
|
-
const
|
|
44522
|
-
chatbot__auth_state_container:
|
|
44523
|
-
chatbot__error_state:
|
|
44524
|
-
chatbot__error_state__content:
|
|
44525
|
-
chatbot__error_state__icon:
|
|
44526
|
-
chatbot__thread_area:
|
|
44527
|
-
},
|
|
44542
|
+
const iwe = "_chatbot__auth_state_container_1j82p_1", owe = "_chatbot__error_state_1j82p_9", swe = "_chatbot__error_state__content_1j82p_13", awe = "_chatbot__error_state__icon_1j82p_17", lwe = "_chatbot__thread_area_1j82p_22", Vr = {
|
|
44543
|
+
chatbot__auth_state_container: iwe,
|
|
44544
|
+
chatbot__error_state: owe,
|
|
44545
|
+
chatbot__error_state__content: swe,
|
|
44546
|
+
chatbot__error_state__icon: awe,
|
|
44547
|
+
chatbot__thread_area: lwe
|
|
44548
|
+
}, nke = OI(function(t, n) {
|
|
44528
44549
|
const {
|
|
44529
44550
|
title: r,
|
|
44530
44551
|
customActions: i,
|
|
@@ -44656,11 +44677,11 @@ const rwe = "_chatbot__auth_state_container_1j82p_1", iwe = "_chatbot__error_sta
|
|
|
44656
44677
|
children: [
|
|
44657
44678
|
/* @__PURE__ */ R("div", { className: Vr.chatbot__thread_area, children: [
|
|
44658
44679
|
/* @__PURE__ */ x(SP, {}),
|
|
44659
|
-
/* @__PURE__ */ x(
|
|
44680
|
+
/* @__PURE__ */ x(Txe, {})
|
|
44660
44681
|
] }),
|
|
44661
44682
|
Wt?.(),
|
|
44662
|
-
_e ? _e() : /* @__PURE__ */ x(
|
|
44663
|
-
/* @__PURE__ */ x(
|
|
44683
|
+
_e ? _e() : /* @__PURE__ */ x(k2e, { footerEndActions: oe }),
|
|
44684
|
+
/* @__PURE__ */ x(rwe, {})
|
|
44664
44685
|
]
|
|
44665
44686
|
}
|
|
44666
44687
|
);
|
|
@@ -44699,7 +44720,7 @@ const rwe = "_chatbot__auth_state_container_1j82p_1", iwe = "_chatbot__error_sta
|
|
|
44699
44720
|
autoResetChannel: bt,
|
|
44700
44721
|
keepConnectionOnUnmount: Tt,
|
|
44701
44722
|
children: /* @__PURE__ */ R(tP, { children: [
|
|
44702
|
-
/* @__PURE__ */ x(
|
|
44723
|
+
/* @__PURE__ */ x(uwe, { fileDropRef: co }),
|
|
44703
44724
|
/* @__PURE__ */ R(
|
|
44704
44725
|
NT,
|
|
44705
44726
|
{
|
|
@@ -44722,7 +44743,7 @@ const rwe = "_chatbot__auth_state_container_1j82p_1", iwe = "_chatbot__error_sta
|
|
|
44722
44743
|
}
|
|
44723
44744
|
),
|
|
44724
44745
|
hh(),
|
|
44725
|
-
/* @__PURE__ */ x(
|
|
44746
|
+
/* @__PURE__ */ x(O2e, {})
|
|
44726
44747
|
]
|
|
44727
44748
|
}
|
|
44728
44749
|
)
|
|
@@ -44744,7 +44765,7 @@ const rwe = "_chatbot__auth_state_container_1j82p_1", iwe = "_chatbot__error_sta
|
|
|
44744
44765
|
hh()
|
|
44745
44766
|
] }) });
|
|
44746
44767
|
});
|
|
44747
|
-
function
|
|
44768
|
+
function uwe({
|
|
44748
44769
|
fileDropRef: e
|
|
44749
44770
|
}) {
|
|
44750
44771
|
const { setDroppedFiles: t, setIsDraggingOver: n } = Gv();
|
|
@@ -44761,54 +44782,54 @@ export {
|
|
|
44761
44782
|
eP as AsgardTemplateContextProvider,
|
|
44762
44783
|
IT as AsgardThemeContext,
|
|
44763
44784
|
NC as AsgardThemeContextProvider,
|
|
44764
|
-
|
|
44785
|
+
Mve as AttachmentTemplate,
|
|
44765
44786
|
Jye as AudioTemplate,
|
|
44766
44787
|
tB as BotTypingBox,
|
|
44767
44788
|
cz as ButtonTemplate,
|
|
44768
44789
|
iB as CarouselTemplate,
|
|
44769
44790
|
Rye as ChartTemplate,
|
|
44770
|
-
|
|
44791
|
+
nke as Chatbot,
|
|
44771
44792
|
gI as CloseIcon,
|
|
44772
44793
|
tP as FileDropContextProvider,
|
|
44773
44794
|
BC as HintTemplate,
|
|
44774
44795
|
zye as ImageTemplate,
|
|
44775
|
-
|
|
44796
|
+
dbe as JsonModal,
|
|
44776
44797
|
Uv as JsonViewer,
|
|
44777
44798
|
s_e as LocationTemplate,
|
|
44778
44799
|
tz as MessageActions,
|
|
44779
44800
|
LP as QuickReplies,
|
|
44780
44801
|
JP as References,
|
|
44781
44802
|
mI as SyntaxHighlightedJson,
|
|
44782
|
-
|
|
44803
|
+
vve as TableTemplate,
|
|
44783
44804
|
an as TemplateBox,
|
|
44784
44805
|
Zn as TemplateBoxContent,
|
|
44785
44806
|
A1 as TextTemplate,
|
|
44786
|
-
|
|
44787
|
-
|
|
44788
|
-
|
|
44789
|
-
|
|
44790
|
-
|
|
44807
|
+
Ibe as ThinkingBlock,
|
|
44808
|
+
rwe as ToolCallConsentGate,
|
|
44809
|
+
nwe as ToolCallConsentModal,
|
|
44810
|
+
gbe as ToolCallGroup,
|
|
44811
|
+
mbe as ToolCallGroupTemplate,
|
|
44791
44812
|
__e as UserImageTemplate,
|
|
44792
44813
|
Xye as VideoTemplate,
|
|
44793
44814
|
LT as defaultAsgardThemeContextValue,
|
|
44794
|
-
|
|
44795
|
-
|
|
44815
|
+
bbe as getToolCallVariant,
|
|
44816
|
+
xbe as groupSummary,
|
|
44796
44817
|
jv as synthesizeToolCallLabel,
|
|
44797
44818
|
Ot as t,
|
|
44798
|
-
|
|
44819
|
+
kbe as toolDiff,
|
|
44799
44820
|
Hv as useAsgardAppInitializationContext,
|
|
44800
44821
|
Bt as useAsgardContext,
|
|
44801
44822
|
HI as useAsgardServiceClient,
|
|
44802
44823
|
zs as useAsgardTemplateContext,
|
|
44803
44824
|
_t as useAsgardThemeContext,
|
|
44804
44825
|
GI as useChannel,
|
|
44805
|
-
|
|
44806
|
-
|
|
44826
|
+
gwe as useChannelTitle,
|
|
44827
|
+
mwe as useDebounce,
|
|
44807
44828
|
TC as useDeepCompareMemo,
|
|
44808
44829
|
Gv as useFileDropContext,
|
|
44809
|
-
|
|
44830
|
+
ywe as useIsAtBottom,
|
|
44810
44831
|
XI as useResizeObserver,
|
|
44811
|
-
|
|
44812
|
-
|
|
44832
|
+
pwe as useSubagents,
|
|
44833
|
+
hwe as useTaskList,
|
|
44813
44834
|
KI as useVisualViewport
|
|
44814
44835
|
};
|