@aintela/chat 0.2.43 → 0.2.45
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.js
CHANGED
|
@@ -2,7 +2,7 @@ var si = Object.defineProperty;
|
|
|
2
2
|
var Tc = (e, r, i) => r in e ? si(e, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[r] = i;
|
|
3
3
|
var n = (e, r) => si(e, "name", { value: r, configurable: !0 });
|
|
4
4
|
var Ze = (e, r, i) => Tc(e, typeof r != "symbol" ? r + "" : r, i);
|
|
5
|
-
import { jsx as t, jsxs as
|
|
5
|
+
import { jsx as t, jsxs as T, Fragment as re } from "react/jsx-runtime";
|
|
6
6
|
import * as Fo from "react";
|
|
7
7
|
import mt, { createContext as Nr, useContext as en, useRef as ue, useMemo as Te, useEffect as oe, useCallback as ye, useState as Y, forwardRef as An, useLayoutEffect as jo, Component as Ac, useImperativeHandle as _c, useDeferredValue as Mc, useId as zc } from "react";
|
|
8
8
|
import { Stack as Ee, Typography as Ie, Tooltip as _n, IconButton as qt, Collapse as _r, useTheme as St, Divider as Lo, Box as ce, Chip as hn, alpha as fn, Popover as Ui, useMediaQuery as Mr, CircularProgress as $o, Dialog as Bo, DialogTitle as Wo, DialogContent as No, DialogActions as Ho, Button as Hn, Tabs as Dc, Tab as li, Slider as Rc, Drawer as Oc, Slide as Pc, Paper as ra, keyframes as Fc, DialogContentText as jc, Alert as Lc, AlertTitle as $c, LinearProgress as Ki, Fade as Bc, ButtonBase as Wc, Skeleton as Qt, CssBaseline as Nc } from "@mui/material";
|
|
@@ -232,10 +232,10 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
232
232
|
return Ts;
|
|
233
233
|
},
|
|
234
234
|
get LiveJsxBlock() {
|
|
235
|
-
return
|
|
235
|
+
return Gh;
|
|
236
236
|
},
|
|
237
237
|
get LiveTsxConfigProvider() {
|
|
238
|
-
return
|
|
238
|
+
return Dh;
|
|
239
239
|
},
|
|
240
240
|
get LlmResponseRender() {
|
|
241
241
|
return dl;
|
|
@@ -301,7 +301,7 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
301
301
|
return Un;
|
|
302
302
|
},
|
|
303
303
|
get Sparkline() {
|
|
304
|
-
return
|
|
304
|
+
return r0;
|
|
305
305
|
},
|
|
306
306
|
get StopIcon() {
|
|
307
307
|
return ma;
|
|
@@ -346,7 +346,7 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
346
346
|
return Is;
|
|
347
347
|
},
|
|
348
348
|
get V2_CHART_PALETTE() {
|
|
349
|
-
return
|
|
349
|
+
return Qh;
|
|
350
350
|
},
|
|
351
351
|
get WARNING_THRESHOLD() {
|
|
352
352
|
return Jo;
|
|
@@ -376,10 +376,10 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
376
376
|
return ph;
|
|
377
377
|
},
|
|
378
378
|
get extendDefaultScope() {
|
|
379
|
-
return
|
|
379
|
+
return Oh;
|
|
380
380
|
},
|
|
381
381
|
get extendModuleRegistry() {
|
|
382
|
-
return
|
|
382
|
+
return Rh;
|
|
383
383
|
},
|
|
384
384
|
get getDefaultJsxScope() {
|
|
385
385
|
return hl;
|
|
@@ -427,25 +427,25 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
427
427
|
return Ca;
|
|
428
428
|
},
|
|
429
429
|
get useResponsiveLayout() {
|
|
430
|
-
return
|
|
430
|
+
return i0;
|
|
431
431
|
},
|
|
432
432
|
get v2Card() {
|
|
433
|
-
return
|
|
433
|
+
return e0;
|
|
434
434
|
},
|
|
435
435
|
get v2Chip() {
|
|
436
|
-
return
|
|
436
|
+
return Xh;
|
|
437
437
|
},
|
|
438
438
|
get v2IconBtn() {
|
|
439
|
-
return
|
|
439
|
+
return Zh;
|
|
440
440
|
},
|
|
441
441
|
get v2MonoMeta() {
|
|
442
|
-
return
|
|
442
|
+
return t0;
|
|
443
443
|
},
|
|
444
444
|
get v2SectionLabel() {
|
|
445
|
-
return
|
|
445
|
+
return n0;
|
|
446
446
|
},
|
|
447
447
|
get v2Theme() {
|
|
448
|
-
return
|
|
448
|
+
return Yh;
|
|
449
449
|
}
|
|
450
450
|
}, Symbol.toStringTag, { value: "Module" })), bn = Nr(void 0), Qe = /* @__PURE__ */ n(() => {
|
|
451
451
|
const e = en(bn);
|
|
@@ -561,7 +561,7 @@ function Go(e, r) {
|
|
|
561
561
|
setNewMessage: /* @__PURE__ */ n((f) => {
|
|
562
562
|
let s = d().messages;
|
|
563
563
|
f.turn_complete = !0;
|
|
564
|
-
const y = s.findIndex((
|
|
564
|
+
const y = s.findIndex((I) => I.interactionId == f.interactionId);
|
|
565
565
|
y == -1 ? s = [...s, f] : (s[y] = f, s = [...s]);
|
|
566
566
|
const b = d().session;
|
|
567
567
|
i({
|
|
@@ -591,13 +591,13 @@ function Go(e, r) {
|
|
|
591
591
|
}, "setSession"),
|
|
592
592
|
subAgents: /* @__PURE__ */ new Map(),
|
|
593
593
|
setSubAgentMessage: /* @__PURE__ */ n((f, s, y) => {
|
|
594
|
-
const b = d().subAgents,
|
|
595
|
-
|
|
594
|
+
const b = d().subAgents, I = new Map(b), k = I.get(f);
|
|
595
|
+
I.set(f, {
|
|
596
596
|
id: f,
|
|
597
597
|
name: y ?? (k == null ? void 0 : k.name) ?? f,
|
|
598
598
|
interaction: s,
|
|
599
599
|
completed: (k == null ? void 0 : k.completed) ?? !1
|
|
600
|
-
}), i({ subAgents:
|
|
600
|
+
}), i({ subAgents: I });
|
|
601
601
|
}, "setSubAgentMessage"),
|
|
602
602
|
completeSubAgent: /* @__PURE__ */ n((f) => {
|
|
603
603
|
const s = d().subAgents, y = s.get(f);
|
|
@@ -657,7 +657,7 @@ const Jo = 0.75, Nu = 1e3, qn = 300 * 1e3, kr = 500, Hu = 2e4, Ma = class Ma {
|
|
|
657
657
|
}, 2e3);
|
|
658
658
|
}
|
|
659
659
|
beat() {
|
|
660
|
-
this.paused || (this.idleTime = (/* @__PURE__ */ new Date()).getTime() - this.sessionState.lastActivity, this.idleTime > qn ? (this.sessionState.setIsSessionActive(!1), this.sessionState.connectionStatus == Se.Connected && this.closeLiveConnection(!1).then(() => this.sessionState.setConnectionStatus(Se.Disconnected))) : (this.sessionState.sessionActive || (this.waitTimeForRetry = kr, this.sessionState.setIsSessionActive(!0)), this.processRetryLoop()));
|
|
660
|
+
this.paused || (this.sessionState.turnOpen && this.sessionState.setLastActivity(), this.idleTime = (/* @__PURE__ */ new Date()).getTime() - this.sessionState.lastActivity, this.idleTime > qn ? (this.sessionState.setIsSessionActive(!1), this.sessionState.connectionStatus == Se.Connected && this.closeLiveConnection(!1).then(() => this.sessionState.setConnectionStatus(Se.Disconnected))) : (this.sessionState.sessionActive || (this.waitTimeForRetry = kr, this.sessionState.setIsSessionActive(!0)), this.processRetryLoop()));
|
|
661
661
|
}
|
|
662
662
|
async createSession(r, i) {
|
|
663
663
|
const d = await this.sessionService.createSession(i, (r == null ? void 0 : r.agentConfig.name) ?? "", r == null ? void 0 : r.customer);
|
|
@@ -674,7 +674,7 @@ const Jo = 0.75, Nu = 1e3, qn = 300 * 1e3, kr = 500, Hu = 2e4, Ma = class Ma {
|
|
|
674
674
|
}), d) : null;
|
|
675
675
|
}
|
|
676
676
|
async bindAndOpenLiveSession(r, i) {
|
|
677
|
-
var s, y, b,
|
|
677
|
+
var s, y, b, I;
|
|
678
678
|
this.pause(), this.sessionState.connectionStatus != Se.Disconnected && await this.stop(), this.pendingClosePromise && (await this.pendingClosePromise, this.pendingClosePromise = void 0);
|
|
679
679
|
let d = this.sessionState.session;
|
|
680
680
|
const f = i ? "EXISTING" : "NEW";
|
|
@@ -702,7 +702,7 @@ const Jo = 0.75, Nu = 1e3, qn = 300 * 1e3, kr = 500, Hu = 2e4, Ma = class Ma {
|
|
|
702
702
|
sessionRunMode: "interactive",
|
|
703
703
|
agentType: "Unknown",
|
|
704
704
|
created: /* @__PURE__ */ new Date()
|
|
705
|
-
}, i && i !== k && console.warn(`Session Id: ${i} was not found a new one was created: ${k}`), (b = this.onSessionEstablished) == null || b.call(this, k), this.workingSessionId = d.id, this.sessionState.setSession(d), this.agentGatewayService.setSession(k, "")), i != ((
|
|
705
|
+
}, i && i !== k && console.warn(`Session Id: ${i} was not found a new one was created: ${k}`), (b = this.onSessionEstablished) == null || b.call(this, k), this.workingSessionId = d.id, this.sessionState.setSession(d), this.agentGatewayService.setSession(k, "")), i != ((I = this.sessionState.session) == null ? void 0 : I.id) && this.sessionState.setSession(d), this.sessionState.setLoadingInformation(Se.Connected, !1, void 0, void 0);
|
|
706
706
|
} catch (k) {
|
|
707
707
|
throw console.error("StateManager: Open Error ", i, k), this.sessionState.setLoadingInformation(Se.Disconnected, !1, void 0), k;
|
|
708
708
|
} finally {
|
|
@@ -754,12 +754,12 @@ function la(e) {
|
|
|
754
754
|
onGatewayReady: y
|
|
755
755
|
} = e;
|
|
756
756
|
let b = e.user;
|
|
757
|
-
const
|
|
757
|
+
const I = /* @__PURE__ */ n(() => {
|
|
758
758
|
var E;
|
|
759
759
|
return ((E = e.getUser) == null ? void 0 : E.call(e)) ?? b;
|
|
760
760
|
}, "resolveUser"), k = /* @__PURE__ */ n(() => {
|
|
761
761
|
var E;
|
|
762
|
-
return (E =
|
|
762
|
+
return (E = I()) == null ? void 0 : E.access_token;
|
|
763
763
|
}, "getToken"), D = e.eventBusService ?? new Qc(), S = e.storageService ?? new Xc(), v = e.notificationPort ?? qu(), A = e.artifactService ?? new Zc(r, k), p = e.sessionService ?? new Jc(r, k), w = Go(p, s);
|
|
764
764
|
w.getState().setConnectionStatus(Se.Idle);
|
|
765
765
|
const x = d ? d(r) : new ed(r, k), g = new gn(
|
|
@@ -823,7 +823,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
823
823
|
sessionId: s,
|
|
824
824
|
artifactService: y,
|
|
825
825
|
storageService: b,
|
|
826
|
-
eventBusService:
|
|
826
|
+
eventBusService: I,
|
|
827
827
|
notificationPort: k,
|
|
828
828
|
// A pre-built, possibly SHARED engine to adopt (issue #236). When present
|
|
829
829
|
// the provider does NOT build its own gateway/store/manager and does NOT
|
|
@@ -911,7 +911,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
911
911
|
sessionService: f,
|
|
912
912
|
artifactService: y,
|
|
913
913
|
storageService: b,
|
|
914
|
-
eventBusService:
|
|
914
|
+
eventBusService: I,
|
|
915
915
|
notificationPort: k ?? Ue,
|
|
916
916
|
onGetWebSocketProvider: Fe,
|
|
917
917
|
onSessionEstablished: /* @__PURE__ */ n((De) => {
|
|
@@ -1055,7 +1055,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1055
1055
|
}), [He, ke, Pt, Le, zt, Dt, bt, vt, tt, S, v, x, g, h, M, u, E, c, _, ut, Vt, Z, kt, yt, we, et, B, G, ne, V, U, W, Ye]);
|
|
1056
1056
|
return /* @__PURE__ */ t(bn.Provider, { value: Bt, children: lt });
|
|
1057
1057
|
}, "AiChatProvider"), Vu = /* @__PURE__ */ n(({ onPromptSelected: e, forceExpanded: r = 0, cancelTimeout: i, children: d }) => {
|
|
1058
|
-
const [f, s] = Y([]), [y, b] = Y(!1), { storageService:
|
|
1058
|
+
const [f, s] = Y([]), [y, b] = Y(!1), { storageService: I } = Qe(), { promptState: k } = Ji(I), D = ue(null), S = ue([]), v = at();
|
|
1059
1059
|
oe(() => {
|
|
1060
1060
|
A();
|
|
1061
1061
|
}, [k]), oe(() => {
|
|
@@ -1071,7 +1071,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1071
1071
|
};
|
|
1072
1072
|
}, []);
|
|
1073
1073
|
const A = /* @__PURE__ */ n(() => {
|
|
1074
|
-
const u =
|
|
1074
|
+
const u = I.getPrompts();
|
|
1075
1075
|
s(u);
|
|
1076
1076
|
}, "loadPrompts"), p = /* @__PURE__ */ n((u, E) => {
|
|
1077
1077
|
e(u, E), b(() => !1);
|
|
@@ -1081,7 +1081,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1081
1081
|
if (f.length === 0)
|
|
1082
1082
|
return null;
|
|
1083
1083
|
const x = Gi(Se.Connected, v), g = y ? x : v.palette.divider, h = f.length > 0 ? f[0] : { promptText: "No prompts yet" }, M = Vc.truncateText(h.promptText, 50, f.length);
|
|
1084
|
-
return /* @__PURE__ */
|
|
1084
|
+
return /* @__PURE__ */ T(
|
|
1085
1085
|
R,
|
|
1086
1086
|
{
|
|
1087
1087
|
sx: {
|
|
@@ -1103,7 +1103,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1103
1103
|
bgcolor: "background.default"
|
|
1104
1104
|
},
|
|
1105
1105
|
children: [
|
|
1106
|
-
/* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ T(
|
|
1107
1107
|
R,
|
|
1108
1108
|
{
|
|
1109
1109
|
sx: {
|
|
@@ -1123,7 +1123,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1123
1123
|
},
|
|
1124
1124
|
onClick: w,
|
|
1125
1125
|
children: [
|
|
1126
|
-
/* @__PURE__ */ t(R, { sx: { overflow: "clip", width: "50%", textWrap: "nowrap", borderBottom: "none" }, children: /* @__PURE__ */ t(ot, { direction: "row", spacing: 0, children: /* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ t(R, { sx: { overflow: "clip", width: "50%", textWrap: "nowrap", borderBottom: "none" }, children: /* @__PURE__ */ t(ot, { direction: "row", spacing: 0, children: /* @__PURE__ */ T(
|
|
1127
1127
|
X,
|
|
1128
1128
|
{
|
|
1129
1129
|
variant: "caption",
|
|
@@ -1173,8 +1173,8 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1173
1173
|
children: /* @__PURE__ */ t(
|
|
1174
1174
|
mn,
|
|
1175
1175
|
{
|
|
1176
|
-
primary: /* @__PURE__ */
|
|
1177
|
-
/* @__PURE__ */
|
|
1176
|
+
primary: /* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 1, verticalAlign: "middle" }, children: [
|
|
1177
|
+
/* @__PURE__ */ T(
|
|
1178
1178
|
X,
|
|
1179
1179
|
{
|
|
1180
1180
|
variant: "caption",
|
|
@@ -1239,7 +1239,7 @@ const ms = /* @__PURE__ */ n(({
|
|
|
1239
1239
|
};
|
|
1240
1240
|
function gs({ value: e, valueBuffer: r, markers: i, sx: d }) {
|
|
1241
1241
|
const f = Math.min(100, e);
|
|
1242
|
-
return /* @__PURE__ */ t(Ee, { direction: "row", alignItems: "center", spacing: 0.5, sx: { width: "100%" }, children: /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ t(Ee, { direction: "row", alignItems: "center", spacing: 0.5, sx: { width: "100%" }, children: /* @__PURE__ */ T(R, { sx: { position: "relative", ...d }, children: [
|
|
1243
1243
|
/* @__PURE__ */ t(sa, { variant: "determinate", value: f, valueBuffer: r, color: "inherit", sx: { height: 13, borderRadius: 1 } }),
|
|
1244
1244
|
/* @__PURE__ */ t(R, { sx: { minWidth: "35px", position: "absolute", transform: "translateX(-20%)", top: "-2px", left: `${Math.min(f, 90).toFixed(2)}%` }, children: /* @__PURE__ */ t(
|
|
1245
1245
|
Ie,
|
|
@@ -1273,95 +1273,95 @@ const Re = /* @__PURE__ */ n((e, { size: r = 14, ...i }) => /* @__PURE__ */ t(
|
|
|
1273
1273
|
...i,
|
|
1274
1274
|
children: e
|
|
1275
1275
|
}
|
|
1276
|
-
), "base"), Yo = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1276
|
+
), "base"), Yo = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1277
1277
|
/* @__PURE__ */ t("path", { d: "M22 2 11 13" }),
|
|
1278
1278
|
/* @__PURE__ */ t("path", { d: "M22 2 15 22l-4-9-9-4 20-7Z" })
|
|
1279
|
-
] }), e), "SendIcon"), ca = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1279
|
+
] }), e), "SendIcon"), ca = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1280
1280
|
/* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "7" }),
|
|
1281
1281
|
/* @__PURE__ */ t("path", { d: "m20 20-3.5-3.5" })
|
|
1282
|
-
] }), e), "SearchIcon"), Ku = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M21 12a8 8 0 0 1-8 8H7l-4 3v-7a8 8 0 0 1 18-4Z" }), e), "ChatIcon"), Gu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1282
|
+
] }), e), "SearchIcon"), Ku = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M21 12a8 8 0 0 1-8 8H7l-4 3v-7a8 8 0 0 1 18-4Z" }), e), "ChatIcon"), Gu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1283
1283
|
/* @__PURE__ */ t("path", { d: "M3 3v18h18" }),
|
|
1284
1284
|
/* @__PURE__ */ t("path", { d: "m7 14 4-4 4 3 5-7" })
|
|
1285
|
-
] }), e), "ChartIcon"), Ju = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1285
|
+
] }), e), "ChartIcon"), Ju = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1286
1286
|
/* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1287
1287
|
/* @__PURE__ */ t("path", { d: "M3 9h18M3 15h18M9 3v18" })
|
|
1288
|
-
] }), e), "TableIcon"), bs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M12 5v14M5 12h14" }), e), "PlusIcon"), Qo = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1288
|
+
] }), e), "TableIcon"), bs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M12 5v14M5 12h14" }), e), "PlusIcon"), Qo = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1289
1289
|
/* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1290
1290
|
/* @__PURE__ */ t("path", { d: "M9 3v18" })
|
|
1291
|
-
] }), e), "PanelIcon"), Un = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8" }), e), "SparkleIcon"), ys = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" }), { strokeWidth: 2.5, ...e }), "CheckIcon"), Kn = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "m6 9 6 6 6-6" }), { strokeWidth: 2, ...e }), "ChevronIcon"), Yu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "m9 6 6 6-6 6" }), { strokeWidth: 2, ...e }), "ChevronRightIcon"), xs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" }), e), "TrashIcon"), Qu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M12 17v5M9 3h6l-1 6 4 3H6l4-3-1-6Z" }), e), "PinIcon"), da = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M9 3a3 3 0 0 0-3 3 3 3 0 0 0-3 3v3a3 3 0 0 0 3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3ZM15 3a3 3 0 0 1 3 3 3 3 0 0 1 3 3v3a3 3 0 0 1-3 3 3 3 0 0 1-3 3 3 3 0 0 1-3-3" }), e), "BrainIcon"), ua = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1291
|
+
] }), e), "PanelIcon"), Un = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8" }), e), "SparkleIcon"), ys = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" }), { strokeWidth: 2.5, ...e }), "CheckIcon"), Kn = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "m6 9 6 6 6-6" }), { strokeWidth: 2, ...e }), "ChevronIcon"), Yu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "m9 6 6 6-6 6" }), { strokeWidth: 2, ...e }), "ChevronRightIcon"), xs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" }), e), "TrashIcon"), Qu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M12 17v5M9 3h6l-1 6 4 3H6l4-3-1-6Z" }), e), "PinIcon"), da = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M9 3a3 3 0 0 0-3 3 3 3 0 0 0-3 3v3a3 3 0 0 0 3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3ZM15 3a3 3 0 0 1 3 3 3 3 0 0 1 3 3v3a3 3 0 0 1-3 3 3 3 0 0 1-3 3 3 3 0 0 1-3-3" }), e), "BrainIcon"), ua = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1292
1292
|
/* @__PURE__ */ t("rect", { x: "3", y: "3", width: "7", height: "9", rx: "1.2" }),
|
|
1293
1293
|
/* @__PURE__ */ t("rect", { x: "14", y: "3", width: "7", height: "5", rx: "1.2" }),
|
|
1294
1294
|
/* @__PURE__ */ t("rect", { x: "14", y: "12", width: "7", height: "9", rx: "1.2" }),
|
|
1295
1295
|
/* @__PURE__ */ t("rect", { x: "3", y: "16", width: "7", height: "5", rx: "1.2" })
|
|
1296
|
-
] }), e), "DashboardIcon"), pa = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1296
|
+
] }), e), "DashboardIcon"), pa = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1297
1297
|
/* @__PURE__ */ t("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
|
|
1298
1298
|
/* @__PURE__ */ t("path", { d: "M3 5v6c0 1.66 4 3 9 3s9-1.34 9-3V5" }),
|
|
1299
1299
|
/* @__PURE__ */ t("path", { d: "M3 11v6c0 1.66 4 3 9 3s9-1.34 9-3v-6" })
|
|
1300
|
-
] }), e), "DataExplorerIcon"), vs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1300
|
+
] }), e), "DataExplorerIcon"), vs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1301
1301
|
/* @__PURE__ */ t("path", { d: "M12 3v18M3 12h18" }),
|
|
1302
1302
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9" })
|
|
1303
|
-
] }), e), "ComposerIcon"), ha = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M18 6 6 18M6 6l12 12" }), { strokeWidth: 2, ...e }), "CloseIcon"), fa = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1303
|
+
] }), e), "ComposerIcon"), ha = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M18 6 6 18M6 6l12 12" }), { strokeWidth: 2, ...e }), "CloseIcon"), fa = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1304
1304
|
/* @__PURE__ */ t("rect", { x: "6", y: "4", width: "4", height: "16", rx: "1" }),
|
|
1305
1305
|
/* @__PURE__ */ t("rect", { x: "14", y: "4", width: "4", height: "16", rx: "1" })
|
|
1306
|
-
] }), e), "PauseIcon"), ma = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }), e), "StopIcon"), ws = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1306
|
+
] }), e), "PauseIcon"), ma = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }), e), "StopIcon"), ws = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1307
1307
|
/* @__PURE__ */ t("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
1308
1308
|
/* @__PURE__ */ t("path", { d: "M3 3v5h5" }),
|
|
1309
1309
|
/* @__PURE__ */ t("path", { d: "M12 7v5l3 2" })
|
|
1310
|
-
] }), e), "HistoryIcon"), Xu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M4 6h16M4 12h16M4 18h16" }), { strokeWidth: 2, ...e }), "MenuIcon"), Ss = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1310
|
+
] }), e), "HistoryIcon"), Xu = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "M4 6h16M4 12h16M4 18h16" }), { strokeWidth: 2, ...e }), "MenuIcon"), Ss = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1311
1311
|
/* @__PURE__ */ t("path", { d: "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z" }),
|
|
1312
1312
|
/* @__PURE__ */ t("path", { d: "M14 3v5h5" })
|
|
1313
|
-
] }), e), "FileIcon"), ks = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1313
|
+
] }), e), "FileIcon"), ks = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1314
1314
|
/* @__PURE__ */ t("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
1315
1315
|
/* @__PURE__ */ t("path", { d: "m7 9 3 3-3 3M13 15h4" })
|
|
1316
|
-
] }), e), "TerminalIcon"), Cs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "m8 8-5 4 5 4M16 8l5 4-5 4M14 4l-4 16" }), e), "CodeIcon"), Es = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1316
|
+
] }), e), "TerminalIcon"), Cs = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ t("path", { d: "m8 8-5 4 5 4M16 8l5 4-5 4M14 4l-4 16" }), e), "CodeIcon"), Es = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1317
1317
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1318
1318
|
/* @__PURE__ */ t("path", { d: "M3 12h18" }),
|
|
1319
1319
|
/* @__PURE__ */ t("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
|
|
1320
1320
|
/* @__PURE__ */ t("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
|
|
1321
|
-
] }), e), "GlobeIcon"), Is = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1321
|
+
] }), e), "GlobeIcon"), Is = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1322
1322
|
/* @__PURE__ */ t("circle", { cx: "9", cy: "8", r: "3" }),
|
|
1323
1323
|
/* @__PURE__ */ t("path", { d: "M3 21v-1a5 5 0 0 1 5-5h2a5 5 0 0 1 5 5v1" }),
|
|
1324
1324
|
/* @__PURE__ */ t("circle", { cx: "17", cy: "9", r: "2.5" }),
|
|
1325
1325
|
/* @__PURE__ */ t("path", { d: "M14 14h2.5a4 4 0 0 1 4 4v.5" })
|
|
1326
|
-
] }), e), "UsersIcon"), Ts = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1326
|
+
] }), e), "UsersIcon"), Ts = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1327
1327
|
/* @__PURE__ */ t("path", { d: "M9 6h11M9 12h11M9 18h11" }),
|
|
1328
1328
|
/* @__PURE__ */ t("path", { d: "m3 6 1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17" })
|
|
1329
|
-
] }), e), "ListCheckIcon"), As = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1329
|
+
] }), e), "ListCheckIcon"), As = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1330
1330
|
/* @__PURE__ */ t("rect", { x: "4", y: "11", width: "16", height: "11", rx: "2" }),
|
|
1331
1331
|
/* @__PURE__ */ t("path", { d: "M8 11V7a4 4 0 0 1 7.5-2" })
|
|
1332
|
-
] }), e), "LockOpenIcon"), _s = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1332
|
+
] }), e), "LockOpenIcon"), _s = /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1333
1333
|
/* @__PURE__ */ t("rect", { x: "4", y: "11", width: "16", height: "11", rx: "2" }),
|
|
1334
1334
|
/* @__PURE__ */ t("path", { d: "M8 11V7a4 4 0 0 1 8 0v4" })
|
|
1335
1335
|
] }), e), "LockClosedIcon"), Xo = {
|
|
1336
|
-
list_tables: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1336
|
+
list_tables: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1337
1337
|
/* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1338
1338
|
/* @__PURE__ */ t("path", { d: "M3 9h18M3 15h18" })
|
|
1339
1339
|
] }), e), "list_tables"),
|
|
1340
|
-
describe_schema: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1340
|
+
describe_schema: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1341
1341
|
/* @__PURE__ */ t("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
1342
1342
|
/* @__PURE__ */ t("path", { d: "M14 2v6h6M9 13h6M9 17h6" })
|
|
1343
1343
|
] }), e), "describe_schema"),
|
|
1344
|
-
run_query: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1344
|
+
run_query: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1345
1345
|
/* @__PURE__ */ t("path", { d: "M8 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-3" }),
|
|
1346
1346
|
/* @__PURE__ */ t("path", { d: "m9 11 3 3 5-5" })
|
|
1347
1347
|
] }), e), "run_query"),
|
|
1348
|
-
render_chart: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1348
|
+
render_chart: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1349
1349
|
/* @__PURE__ */ t("path", { d: "M3 3v18h18" }),
|
|
1350
1350
|
/* @__PURE__ */ t("path", { d: "m7 14 4-4 4 3 5-7" })
|
|
1351
1351
|
] }), e), "render_chart"),
|
|
1352
|
-
generic: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */
|
|
1352
|
+
generic: /* @__PURE__ */ n((e) => Re(/* @__PURE__ */ T(re, { children: [
|
|
1353
1353
|
/* @__PURE__ */ t("path", { d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Z" }),
|
|
1354
1354
|
/* @__PURE__ */ t("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" })
|
|
1355
1355
|
] }), e), "generic")
|
|
1356
1356
|
}, Zo = '"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
1357
1357
|
function Zu({ info: e }) {
|
|
1358
|
-
const r = at(), i = Math.round(e.ratio * 100), d = e.ratio >= e.threshold, f = /* @__PURE__ */
|
|
1358
|
+
const r = at(), i = Math.round(e.ratio * 100), d = e.ratio >= e.threshold, f = /* @__PURE__ */ T(R, { sx: { fontFamily: Zo, fontSize: 11, lineHeight: 1.5 }, children: [
|
|
1359
1359
|
/* @__PURE__ */ t(R, { sx: { fontFamily: "inherit", fontWeight: 500, mb: 0.25 }, children: "Tamanho do Contexto" }),
|
|
1360
1360
|
/* @__PURE__ */ t(R, { children: `Uso atual: ${i}%` }),
|
|
1361
1361
|
/* @__PURE__ */ t(R, { children: `${e.size.toLocaleString()} / ${e.maxSize.toLocaleString()} tokens` }),
|
|
1362
1362
|
/* @__PURE__ */ t(R, { children: `Limite: ${Math.round(e.threshold * 100)}%` })
|
|
1363
|
-
] }), s = 26, y = 2, b = (s - y) / 2,
|
|
1364
|
-
return /* @__PURE__ */ t(Ne, { title: f, placement: "top", arrow: !0, children: /* @__PURE__ */
|
|
1363
|
+
] }), s = 26, y = 2, b = (s - y) / 2, I = 2 * Math.PI * b, k = Math.max(0, Math.min(1, e.ratio)), D = I * k, S = "#26262d", v = d ? "#d97a7a" : r.palette.primary.light, A = d ? "#d97a7a" : "#ececef";
|
|
1364
|
+
return /* @__PURE__ */ t(Ne, { title: f, placement: "top", arrow: !0, children: /* @__PURE__ */ T(
|
|
1365
1365
|
R,
|
|
1366
1366
|
{
|
|
1367
1367
|
sx: {
|
|
@@ -1375,7 +1375,7 @@ function Zu({ info: e }) {
|
|
|
1375
1375
|
},
|
|
1376
1376
|
"aria-label": `Tamanho do contexto: ${i}%`,
|
|
1377
1377
|
children: [
|
|
1378
|
-
/* @__PURE__ */
|
|
1378
|
+
/* @__PURE__ */ T(
|
|
1379
1379
|
R,
|
|
1380
1380
|
{
|
|
1381
1381
|
component: "svg",
|
|
@@ -1409,7 +1409,7 @@ function Zu({ info: e }) {
|
|
|
1409
1409
|
stroke: v,
|
|
1410
1410
|
strokeWidth: y,
|
|
1411
1411
|
strokeLinecap: "round",
|
|
1412
|
-
strokeDasharray: `${D} ${
|
|
1412
|
+
strokeDasharray: `${D} ${I}`,
|
|
1413
1413
|
style: { transition: "stroke-dasharray .25s ease" }
|
|
1414
1414
|
}
|
|
1415
1415
|
)
|
|
@@ -1446,10 +1446,10 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1446
1446
|
previousRatio: 0,
|
|
1447
1447
|
threshold: 0.9,
|
|
1448
1448
|
maxSize: 0
|
|
1449
|
-
}, [d, f] = Y(0), s = at(), [y, b] = Y(i),
|
|
1449
|
+
}, [d, f] = Y(0), s = at(), [y, b] = Y(i), I = pe((u) => u.session), k = pe((u) => u.statistics), D = pe((u) => u.connectionStatus);
|
|
1450
1450
|
oe(() => {
|
|
1451
1451
|
b(i);
|
|
1452
|
-
}, [
|
|
1452
|
+
}, [I]), oe(() => {
|
|
1453
1453
|
const u = k == null ? void 0 : k.sessionInformation;
|
|
1454
1454
|
u && b(u);
|
|
1455
1455
|
}, [k]), oe(() => {
|
|
@@ -1504,8 +1504,8 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1504
1504
|
alignContent: "center",
|
|
1505
1505
|
bgcolor: "rgba(255, 255, 255, 0.02)"
|
|
1506
1506
|
},
|
|
1507
|
-
children: /* @__PURE__ */
|
|
1508
|
-
D == Se.Connected && /* @__PURE__ */
|
|
1507
|
+
children: /* @__PURE__ */ T(ot, { direction: "row", alignItems: "center", spacing: 0.5, sx: { width: "100%" }, children: [
|
|
1508
|
+
D == Se.Connected && /* @__PURE__ */ T(re, { children: [
|
|
1509
1509
|
/* @__PURE__ */ t(Tn, { sx: { fontSize: "0.8rem", color: x() } }),
|
|
1510
1510
|
/* @__PURE__ */ t(
|
|
1511
1511
|
X,
|
|
@@ -1516,7 +1516,7 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
1518
1518
|
/* @__PURE__ */ t(R, { sx: { width: "5px" } }),
|
|
1519
|
-
!e && /* @__PURE__ */
|
|
1519
|
+
!e && /* @__PURE__ */ T(re, { children: [
|
|
1520
1520
|
/* @__PURE__ */ t(nu, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
1521
1521
|
/* @__PURE__ */ t(
|
|
1522
1522
|
X,
|
|
@@ -1538,7 +1538,7 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1538
1538
|
}
|
|
1539
1539
|
),
|
|
1540
1540
|
/* @__PURE__ */ t(R, { sx: { width: "5px" } }),
|
|
1541
|
-
S && /* @__PURE__ */
|
|
1541
|
+
S && /* @__PURE__ */ T(re, { children: [
|
|
1542
1542
|
/* @__PURE__ */ t(R, { sx: { width: "5px" } }),
|
|
1543
1543
|
/* @__PURE__ */ t(ou, { sx: { fontSize: "0.8rem", color: "text.primary" } }),
|
|
1544
1544
|
/* @__PURE__ */ t(
|
|
@@ -1550,7 +1550,7 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1550
1550
|
}
|
|
1551
1551
|
)
|
|
1552
1552
|
] }),
|
|
1553
|
-
A && /* @__PURE__ */
|
|
1553
|
+
A && /* @__PURE__ */ T(re, { children: [
|
|
1554
1554
|
/* @__PURE__ */ t(R, { sx: { width: "5px" } }),
|
|
1555
1555
|
/* @__PURE__ */ t(au, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
1556
1556
|
/* @__PURE__ */ t(
|
|
@@ -1569,7 +1569,7 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1569
1569
|
// v2 compact — replace the wide progress bar with
|
|
1570
1570
|
// a small badge that surfaces the integer % and
|
|
1571
1571
|
// exposes the full numbers via tooltip.
|
|
1572
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ T(re, { children: [
|
|
1573
1573
|
/* @__PURE__ */ t(R, { sx: { flex: 1 } }),
|
|
1574
1574
|
/* @__PURE__ */ t(Zu, { info: y })
|
|
1575
1575
|
] })
|
|
@@ -1583,7 +1583,7 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
) : null;
|
|
1585
1585
|
})(),
|
|
1586
|
-
e && r && /* @__PURE__ */
|
|
1586
|
+
e && r && /* @__PURE__ */ T(re, { children: [
|
|
1587
1587
|
!(y && y.size > 0 && Math.round(y.ratio * 100) > 0) && /* @__PURE__ */ t(R, { sx: { flex: 1 } }),
|
|
1588
1588
|
M()
|
|
1589
1589
|
] })
|
|
@@ -1593,8 +1593,8 @@ const Ms = /* @__PURE__ */ n(({
|
|
|
1593
1593
|
}, "StreamStatistics");
|
|
1594
1594
|
function ga({ value: e, children: r, completedColor: i, unCompletedColor: d }) {
|
|
1595
1595
|
const f = Math.min(100, e);
|
|
1596
|
-
return /* @__PURE__ */
|
|
1597
|
-
/* @__PURE__ */
|
|
1596
|
+
return /* @__PURE__ */ T(R, { sx: { position: "relative", paddingX: 1, paddingY: 0.5, width: "100%", minHeight: "40px" }, children: [
|
|
1597
|
+
/* @__PURE__ */ T(Ee, { direction: "row", alignItems: "center", spacing: 0, sx: { position: "absolute", top: 0, left: 0, display: "inline-flex", flexWrap: "nowrap", width: "100%", minHeight: "40px" }, children: [
|
|
1598
1598
|
/* @__PURE__ */ t(R, { sx: { width: `${f}%`, backgroundColor: i, minHeight: "40px", borderTopLeftRadius: "5px", borderBottomLeftRadius: "5px", borderRight: `3px solid ${i}` } }),
|
|
1599
1599
|
/* @__PURE__ */ t(R, { sx: { width: `${100 - f}%`, backgroundColor: d, minHeight: "40px", borderTopRightRadius: "5px", borderBottomRightRadius: "5px" } })
|
|
1600
1600
|
] }),
|
|
@@ -1635,7 +1635,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1635
1635
|
return null;
|
|
1636
1636
|
const f = JSON.parse(i.eventData), s = d.getCurrentInteraction();
|
|
1637
1637
|
d && s && (s.todoList = f);
|
|
1638
|
-
const y = f.items.filter((p) => p.status === "completed").length, b = f.items.length,
|
|
1638
|
+
const y = f.items.filter((p) => p.status === "completed").length, b = f.items.length, I = b > 0 ? y / b * 100 : 0, D = `${y > 0 ? `${y} de ${b} completos` : "Iniciando..."} - ${I.toFixed(0)}%`;
|
|
1639
1639
|
if (b == 0) return null;
|
|
1640
1640
|
const S = f.currentWorkingItemKey ? f.items.find((p) => p.key === f.currentWorkingItemKey) : null, v = S ? `${S.label}${S.detail ? `: ${S.detail}` : ""}` : "";
|
|
1641
1641
|
return /* @__PURE__ */ t(
|
|
@@ -1650,8 +1650,8 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1650
1650
|
p: 0,
|
|
1651
1651
|
position: "relative"
|
|
1652
1652
|
},
|
|
1653
|
-
children: /* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */ t(R, { sx: { "&:hover": { cursor: "pointer" } }, onClick: /* @__PURE__ */ n(() => r(!e), "onClick"), children: /* @__PURE__ */ t(ga, { value:
|
|
1653
|
+
children: /* @__PURE__ */ T(ot, { gap: e ? 1 : 0, sx: { display: "inline-flex", width: "100%" }, children: [
|
|
1654
|
+
/* @__PURE__ */ t(R, { sx: { "&:hover": { cursor: "pointer" } }, onClick: /* @__PURE__ */ n(() => r(!e), "onClick"), children: /* @__PURE__ */ t(ga, { value: I, completedColor: "rgba(120,120,120,0.3)", unCompletedColor: "rgba(120,120,120,0.1)", children: /* @__PURE__ */ T(ot, { direction: "row", sx: { width: "100%", flexWrap: "wrap", display: "inline-flex", mb: e ? 0.5 : 1, alignItems: "center" }, children: [
|
|
1655
1655
|
/* @__PURE__ */ t(R, { sx: { overflow: "clip", minWidth: "18%", maxWidth: "18%", textWrap: "nowrap", pl: 0.5, borderBottom: "none" }, children: /* @__PURE__ */ t(
|
|
1656
1656
|
X,
|
|
1657
1657
|
{
|
|
@@ -1673,14 +1673,14 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1673
1673
|
children: v
|
|
1674
1674
|
}
|
|
1675
1675
|
) }),
|
|
1676
|
-
/* @__PURE__ */ t(R, { sx: { minWidth: "23%", maxWidth: "23%", overflow: "clip", textAlign: "end", justifyContent: "end", flexWrap: "wrap" }, children: /* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ t(R, { sx: { minWidth: "23%", maxWidth: "23%", overflow: "clip", textAlign: "end", justifyContent: "end", flexWrap: "wrap" }, children: /* @__PURE__ */ T(ot, { direction: "row", sx: { width: "100%", display: "inline-flex", overflow: "clip", alignItems: "center", justifyContent: "end", flexWrap: "nowrap" }, gap: 0.5, children: [
|
|
1677
1677
|
/* @__PURE__ */ t(X, { noWrap: !0, variant: "body1", sx: {
|
|
1678
1678
|
color: "text.primary"
|
|
1679
1679
|
}, children: ((A = f.title) == null ? void 0 : A.length) ?? !1 ? f.title : "Tarefas planejadas" }),
|
|
1680
1680
|
/* @__PURE__ */ t(qt, { size: "small", children: e ? /* @__PURE__ */ t(zr, { fontSize: "small", sx: { rotate: "90deg" } }) : /* @__PURE__ */ t(zr, { fontSize: "small", sx: { rotate: "-90deg" } }) })
|
|
1681
1681
|
] }) })
|
|
1682
1682
|
] }) }) }),
|
|
1683
|
-
/* @__PURE__ */ t(_r, { in: e, sx: { maxHeight: "150px", overflow: "auto", display: "inline-flex" }, children: /* @__PURE__ */ t(ot, { gap: 1, sx: { display: "inline-flex" }, children: f.items.map((p) => /* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ t(_r, { in: e, sx: { maxHeight: "150px", overflow: "auto", display: "inline-flex" }, children: /* @__PURE__ */ t(ot, { gap: 1, sx: { display: "inline-flex" }, children: f.items.map((p) => /* @__PURE__ */ T(
|
|
1684
1684
|
R,
|
|
1685
1685
|
{
|
|
1686
1686
|
sx: {
|
|
@@ -1692,7 +1692,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1692
1692
|
},
|
|
1693
1693
|
children: [
|
|
1694
1694
|
/* @__PURE__ */ t(R, { sx: { mt: "1px", flexShrink: 0, color: tp(p.status) }, children: /* @__PURE__ */ t(ep, { status: p.status }) }),
|
|
1695
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ T(R, { children: [
|
|
1696
1696
|
/* @__PURE__ */ t(X, { variant: "caption", sx: { display: "block", fontSize: "0.78rem", lineHeight: 1.3, textDecoration: p.status === "completed" ? "line-through" : "none" }, children: p.label }),
|
|
1697
1697
|
p.detail && /* @__PURE__ */ t(X, { variant: "caption", sx: { display: "block", fontSize: "0.7rem", color: "text.secondary", lineHeight: 1.3 }, children: p.detail })
|
|
1698
1698
|
] })
|
|
@@ -1721,18 +1721,18 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1721
1721
|
s(v.currentTarget);
|
|
1722
1722
|
}, []), b = ye(() => {
|
|
1723
1723
|
s(null);
|
|
1724
|
-
}, []),
|
|
1724
|
+
}, []), I = ye((v) => {
|
|
1725
1725
|
d(v), b();
|
|
1726
|
-
}, [d, b]), k = i ? oa[i] : void 0, D = (k == null ? void 0 : k.icon) ?? su, S = /* @__PURE__ */
|
|
1727
|
-
/* @__PURE__ */
|
|
1726
|
+
}, [d, b]), k = i ? oa[i] : void 0, D = (k == null ? void 0 : k.icon) ?? su, S = /* @__PURE__ */ T(Ee, { direction: "row", children: [
|
|
1727
|
+
/* @__PURE__ */ T(Ee, { spacing: 0.5, sx: e ? { maxWidth: 250, flex: "0 0 250px", minWidth: 0 } : void 0, children: [
|
|
1728
1728
|
/* @__PURE__ */ t(Ie, { variant: "h6", width: "100%", textAlign: "center", children: "Fast models" }),
|
|
1729
1729
|
/* @__PURE__ */ t(Lo, {}),
|
|
1730
1730
|
xi.map(({ id: v, config: A, vendor: p }) => {
|
|
1731
1731
|
const w = v === i, x = A.icon;
|
|
1732
|
-
return A.speed !== "Fast" ? null : /* @__PURE__ */
|
|
1732
|
+
return A.speed !== "Fast" ? null : /* @__PURE__ */ T(
|
|
1733
1733
|
ce,
|
|
1734
1734
|
{
|
|
1735
|
-
onClick: /* @__PURE__ */ n(() =>
|
|
1735
|
+
onClick: /* @__PURE__ */ n(() => I(v), "onClick"),
|
|
1736
1736
|
sx: {
|
|
1737
1737
|
display: "flex",
|
|
1738
1738
|
alignItems: "flex-start",
|
|
@@ -1750,14 +1750,14 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1750
1750
|
},
|
|
1751
1751
|
children: [
|
|
1752
1752
|
/* @__PURE__ */ t(ce, { sx: { pt: 0.3 }, children: /* @__PURE__ */ t(x, { fontSize: "small", sx: { color: w ? "primary.main" : "text.secondary" } }) }),
|
|
1753
|
-
/* @__PURE__ */
|
|
1754
|
-
/* @__PURE__ */
|
|
1753
|
+
/* @__PURE__ */ T(ce, { sx: { flex: 1, minWidth: 0, minHeight: "120px" }, children: [
|
|
1754
|
+
/* @__PURE__ */ T(Ee, { direction: "row", alignItems: "center", spacing: 0.5, children: [
|
|
1755
1755
|
/* @__PURE__ */ t(Ie, { variant: "body2", sx: { fontWeight: 600, fontSize: "0.8rem" }, children: A.name }),
|
|
1756
1756
|
w && /* @__PURE__ */ t(mi, { sx: { fontSize: 14, color: "primary.main" } })
|
|
1757
1757
|
] }),
|
|
1758
1758
|
/* @__PURE__ */ t(Ie, { variant: "caption", sx: { color: "text.secondary", fontSize: "0.68rem", display: "block", mb: 0.5 }, children: v }),
|
|
1759
1759
|
/* @__PURE__ */ t(Ie, { variant: "caption", sx: { color: "text.secondary", fontSize: "0.7rem", lineHeight: 1.3, display: "block", whiteSpace: "pre-line" }, children: A.description }),
|
|
1760
|
-
/* @__PURE__ */
|
|
1760
|
+
/* @__PURE__ */ T(Ee, { direction: "row", spacing: 0.5, sx: { mt: 0.8 }, children: [
|
|
1761
1761
|
/* @__PURE__ */ t(
|
|
1762
1762
|
hn,
|
|
1763
1763
|
{
|
|
@@ -1795,15 +1795,15 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1795
1795
|
);
|
|
1796
1796
|
})
|
|
1797
1797
|
] }),
|
|
1798
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ T(Ee, { spacing: 0.5, sx: e ? { maxWidth: 250, flex: "0 0 250px", minWidth: 0 } : void 0, children: [
|
|
1799
1799
|
/* @__PURE__ */ t(Ie, { variant: "h6", width: "100%", textAlign: "center", children: "High Precision" }),
|
|
1800
1800
|
/* @__PURE__ */ t(Lo, {}),
|
|
1801
1801
|
xi.map(({ id: v, config: A, vendor: p }) => {
|
|
1802
1802
|
const w = v === i, x = A.icon;
|
|
1803
|
-
return A.quality !== "Highest" ? null : /* @__PURE__ */
|
|
1803
|
+
return A.quality !== "Highest" ? null : /* @__PURE__ */ T(
|
|
1804
1804
|
ce,
|
|
1805
1805
|
{
|
|
1806
|
-
onClick: /* @__PURE__ */ n(() =>
|
|
1806
|
+
onClick: /* @__PURE__ */ n(() => I(v), "onClick"),
|
|
1807
1807
|
sx: {
|
|
1808
1808
|
display: "flex",
|
|
1809
1809
|
alignItems: "flex-start",
|
|
@@ -1821,14 +1821,14 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1821
1821
|
},
|
|
1822
1822
|
children: [
|
|
1823
1823
|
/* @__PURE__ */ t(ce, { sx: { pt: 0.3 }, children: /* @__PURE__ */ t(x, { fontSize: "small", sx: { color: w ? "primary.main" : "text.secondary" } }) }),
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */
|
|
1824
|
+
/* @__PURE__ */ T(ce, { sx: { flex: 1, minWidth: 0, minHeight: "120px" }, children: [
|
|
1825
|
+
/* @__PURE__ */ T(Ee, { direction: "row", alignItems: "center", spacing: 0.5, children: [
|
|
1826
1826
|
/* @__PURE__ */ t(Ie, { variant: "body2", sx: { fontWeight: 600, fontSize: "0.8rem" }, children: A.name }),
|
|
1827
1827
|
w && /* @__PURE__ */ t(mi, { sx: { fontSize: 14, color: "primary.main" } })
|
|
1828
1828
|
] }),
|
|
1829
1829
|
/* @__PURE__ */ t(Ie, { variant: "caption", sx: { color: "text.secondary", fontSize: "0.68rem", display: "block", mb: 0.5 }, children: v }),
|
|
1830
1830
|
/* @__PURE__ */ t(Ie, { variant: "caption", sx: { color: "text.secondary", fontSize: "0.7rem", lineHeight: 1.3, display: "block", whiteSpace: "pre-line" }, children: A.description }),
|
|
1831
|
-
/* @__PURE__ */
|
|
1831
|
+
/* @__PURE__ */ T(Ee, { direction: "row", spacing: 0.5, sx: { mt: 0.8 }, children: [
|
|
1832
1832
|
/* @__PURE__ */ t(
|
|
1833
1833
|
hn,
|
|
1834
1834
|
{
|
|
@@ -1867,7 +1867,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1867
1867
|
})
|
|
1868
1868
|
] })
|
|
1869
1869
|
] });
|
|
1870
|
-
return e ? S : /* @__PURE__ */
|
|
1870
|
+
return e ? S : /* @__PURE__ */ T(re, { children: [
|
|
1871
1871
|
/* @__PURE__ */ t(_n, { title: (k == null ? void 0 : k.name) ?? "Select model", placement: "top", children: /* @__PURE__ */ t(
|
|
1872
1872
|
qt,
|
|
1873
1873
|
{
|
|
@@ -1890,7 +1890,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1890
1890
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
1891
1891
|
transformOrigin: { vertical: "bottom", horizontal: "center" },
|
|
1892
1892
|
sx: { mt: -1 },
|
|
1893
|
-
children: /* @__PURE__ */
|
|
1893
|
+
children: /* @__PURE__ */ T(ce, { sx: { p: 2, minWidth: 340, maxWidth: 500, bgcolor: "background.paper" }, children: [
|
|
1894
1894
|
/* @__PURE__ */ t(Ie, { variant: "subtitle2", sx: { mb: 1.5, fontWeight: 700, letterSpacing: 0.5, textTransform: "uppercase", fontSize: "0.7rem", color: "text.secondary" }, children: "Select Model" }),
|
|
1895
1895
|
S
|
|
1896
1896
|
] })
|
|
@@ -1899,7 +1899,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1899
1899
|
] });
|
|
1900
1900
|
}, "ModelSelector"), rp = /* @__PURE__ */ n(() => null, "PromptEditorDialog"), op = /* @__PURE__ */ n(() => null, "ChatSettings"), ap = /* @__PURE__ */ n(({ forceMessage: e, onHeightChange: r }) => {
|
|
1901
1901
|
var tt;
|
|
1902
|
-
const [i, d] = Y(!1), f = St(), s = Mr(f.breakpoints.down("sm")), y = Mr("(max-width: 900px)"), [b,
|
|
1902
|
+
const [i, d] = Y(!1), f = St(), s = Mr(f.breakpoints.down("sm")), y = Mr("(max-width: 900px)"), [b, I] = Y(!1), [k, D] = Y(!1), [S, v] = Y(!1), [A, p] = Y(!1), [w, x] = Y(0), g = ue(null), [h, M] = os(g, (/* @__PURE__ */ new Date()).getTime().toString());
|
|
1903
1903
|
oe(() => {
|
|
1904
1904
|
r && r(M);
|
|
1905
1905
|
}, [M]);
|
|
@@ -1933,13 +1933,13 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
1935
|
let dt = ke ?? ((yt = c.current) == null ? void 0 : yt.value) ?? "";
|
|
1936
|
-
c.current && (c.current.value = ""), S && (v(!1), dt.trim() == "" && (dt = "Continue, por favor")), E(u + 1),
|
|
1936
|
+
c.current && (c.current.value = ""), S && (v(!1), dt.trim() == "" && (dt = "Continue, por favor")), E(u + 1), I(() => !0), Je || ee({
|
|
1937
1937
|
message: "There is no session to send a message",
|
|
1938
1938
|
type: "error"
|
|
1939
1939
|
}), _.sendMessage(new Hr(dt, "text/plain")).catch((ut) => {
|
|
1940
1940
|
console.error("Prompt send", ut);
|
|
1941
1941
|
}).finally(() => {
|
|
1942
|
-
|
|
1942
|
+
I(() => !1), p(!1), x((ut) => ut + 1);
|
|
1943
1943
|
});
|
|
1944
1944
|
}, "handleSend");
|
|
1945
1945
|
oe(() => {
|
|
@@ -1952,7 +1952,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
1952
1952
|
if (!_)
|
|
1953
1953
|
return;
|
|
1954
1954
|
_ instanceof gn && (D(!0), _.suspend().then(() => {
|
|
1955
|
-
v(!0),
|
|
1955
|
+
v(!0), I(!1);
|
|
1956
1956
|
}).catch((ke) => {
|
|
1957
1957
|
ee({
|
|
1958
1958
|
message: "Error suspending",
|
|
@@ -2001,8 +2001,8 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
2001
2001
|
width: "calc(100% + 20px)",
|
|
2002
2002
|
left: "-16px"
|
|
2003
2003
|
};
|
|
2004
|
-
return /* @__PURE__ */
|
|
2005
|
-
/* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ T(R, { ref: g, sx: { mt: 1.5, alignItems: "center", width: "100%", position: "relative" }, children: [
|
|
2005
|
+
/* @__PURE__ */ T(R, { sx: {
|
|
2006
2006
|
borderRadius: "5px",
|
|
2007
2007
|
padding: "1px",
|
|
2008
2008
|
display: "flex",
|
|
@@ -2031,7 +2031,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
2031
2031
|
`
|
|
2032
2032
|
}
|
|
2033
2033
|
}, children: [
|
|
2034
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ T(
|
|
2035
2035
|
Ee,
|
|
2036
2036
|
{
|
|
2037
2037
|
direction: "column",
|
|
@@ -2109,7 +2109,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
2109
2109
|
onBlur: Ot
|
|
2110
2110
|
}
|
|
2111
2111
|
),
|
|
2112
|
-
/* @__PURE__ */
|
|
2112
|
+
/* @__PURE__ */ T(
|
|
2113
2113
|
Ee,
|
|
2114
2114
|
{
|
|
2115
2115
|
direction: "column",
|
|
@@ -2137,7 +2137,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
2137
2137
|
children: gt()
|
|
2138
2138
|
}
|
|
2139
2139
|
) }),
|
|
2140
|
-
/* @__PURE__ */ t(Ne, { title: Le(), placement: "top", children: /* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ t(Ne, { title: Le(), placement: "top", children: /* @__PURE__ */ T(
|
|
2141
2141
|
Ge,
|
|
2142
2142
|
{
|
|
2143
2143
|
size: "small",
|
|
@@ -2149,7 +2149,7 @@ const np = /* @__PURE__ */ n(({}) => {
|
|
|
2149
2149
|
marginTop: "0px !important"
|
|
2150
2150
|
},
|
|
2151
2151
|
children: [
|
|
2152
|
-
Oe && /* @__PURE__ */
|
|
2152
|
+
Oe && /* @__PURE__ */ T(R, { sx: { position: "relative", p: 0, mt: 0 }, children: [
|
|
2153
2153
|
/* @__PURE__ */ t(bd, { sx: { p: 0, mt: 0 } }),
|
|
2154
2154
|
k && /* @__PURE__ */ t(
|
|
2155
2155
|
$o,
|
|
@@ -2207,7 +2207,7 @@ function lp() {
|
|
|
2207
2207
|
(function(i, d) {
|
|
2208
2208
|
e.exports = d(mt);
|
|
2209
2209
|
})(sp, (i) => (() => {
|
|
2210
|
-
var d = { 165(b,
|
|
2210
|
+
var d = { 165(b, I, k) {
|
|
2211
2211
|
const D = k(877), S = {};
|
|
2212
2212
|
for (const p of Object.keys(D)) S[D[p]] = p;
|
|
2213
2213
|
const v = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, hwb: { channels: 3, labels: "hwb" }, cmyk: { channels: 4, labels: "cmyk" }, xyz: { channels: 3, labels: "xyz" }, lab: { channels: 3, labels: "lab" }, lch: { channels: 3, labels: "lch" }, hex: { channels: 1, labels: ["hex"] }, keyword: { channels: 1, labels: ["keyword"] }, ansi16: { channels: 1, labels: ["ansi16"] }, ansi256: { channels: 1, labels: ["ansi256"] }, hcg: { channels: 3, labels: ["h", "c", "g"] }, apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } };
|
|
@@ -2456,7 +2456,7 @@ function lp() {
|
|
|
2456
2456
|
}, v.rgb.gray = function(p) {
|
|
2457
2457
|
return [(p[0] + p[1] + p[2]) / 3 / 255 * 100];
|
|
2458
2458
|
};
|
|
2459
|
-
}, 880(b,
|
|
2459
|
+
}, 880(b, I, k) {
|
|
2460
2460
|
const D = k(165), S = k(985), v = {};
|
|
2461
2461
|
Object.keys(D).forEach((A) => {
|
|
2462
2462
|
v[A] = {}, Object.defineProperty(v[A], "channels", { value: D[A].channels }), Object.defineProperty(v[A], "labels", { value: D[A].labels });
|
|
@@ -2482,7 +2482,7 @@ function lp() {
|
|
|
2482
2482
|
})(x);
|
|
2483
2483
|
});
|
|
2484
2484
|
}), b.exports = v;
|
|
2485
|
-
}, 985(b,
|
|
2485
|
+
}, 985(b, I, k) {
|
|
2486
2486
|
const D = k(165);
|
|
2487
2487
|
function S(p) {
|
|
2488
2488
|
const w = (function() {
|
|
@@ -2522,7 +2522,7 @@ function lp() {
|
|
|
2522
2522
|
};
|
|
2523
2523
|
}, 877(b) {
|
|
2524
2524
|
b.exports = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
|
2525
|
-
}, 138(b,
|
|
2525
|
+
}, 138(b, I, k) {
|
|
2526
2526
|
var D = k(877), S = k(403), v = Object.hasOwnProperty, A = /* @__PURE__ */ Object.create(null);
|
|
2527
2527
|
for (var p in D) v.call(D, p) && (A[D[p]] = p);
|
|
2528
2528
|
var w = b.exports = { to: {}, get: {} };
|
|
@@ -2603,7 +2603,7 @@ function lp() {
|
|
|
2603
2603
|
}, w.to.keyword = function(h) {
|
|
2604
2604
|
return A[h.slice(0, 3)];
|
|
2605
2605
|
};
|
|
2606
|
-
}, 742(b,
|
|
2606
|
+
}, 742(b, I, k) {
|
|
2607
2607
|
const D = k(138), S = k(880), v = ["keyword", "gray", "hex"], A = {};
|
|
2608
2608
|
for (const u of Object.keys(S)) A[[...S[u].labels].sort().join("")] = u;
|
|
2609
2609
|
const p = {};
|
|
@@ -2775,10 +2775,10 @@ function lp() {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
n(M, "d"), b.exports = w;
|
|
2777
2777
|
}, 784(b) {
|
|
2778
|
-
var
|
|
2778
|
+
var I, k = typeof Reflect == "object" ? Reflect : null, D = k && typeof k.apply == "function" ? k.apply : function(_, j, B) {
|
|
2779
2779
|
return Function.prototype.apply.call(_, j, B);
|
|
2780
2780
|
};
|
|
2781
|
-
|
|
2781
|
+
I = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(_) {
|
|
2782
2782
|
return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_));
|
|
2783
2783
|
} : function(_) {
|
|
2784
2784
|
return Object.getOwnPropertyNames(_);
|
|
@@ -2941,13 +2941,13 @@ function lp() {
|
|
|
2941
2941
|
}, v.listenerCount = function(_, j) {
|
|
2942
2942
|
return typeof _.listenerCount == "function" ? _.listenerCount(j) : u.call(_, j);
|
|
2943
2943
|
}, v.prototype.listenerCount = u, v.prototype.eventNames = function() {
|
|
2944
|
-
return this._eventsCount > 0 ?
|
|
2944
|
+
return this._eventsCount > 0 ? I(this._events) : [];
|
|
2945
2945
|
};
|
|
2946
2946
|
}, 94(b) {
|
|
2947
|
-
b.exports = function(
|
|
2948
|
-
return !(!
|
|
2947
|
+
b.exports = function(I) {
|
|
2948
|
+
return !(!I || typeof I == "string") && (I instanceof Array || Array.isArray(I) || I.length >= 0 && (I.splice instanceof Function || Object.getOwnPropertyDescriptor(I, I.length - 1) && I.constructor.name !== "String"));
|
|
2949
2949
|
};
|
|
2950
|
-
}, 403(b,
|
|
2950
|
+
}, 403(b, I, k) {
|
|
2951
2951
|
var D = k(94), S = Array.prototype.concat, v = Array.prototype.slice, A = b.exports = function(p) {
|
|
2952
2952
|
for (var w = [], x = 0, g = p.length; x < g; x++) {
|
|
2953
2953
|
var h = p[x];
|
|
@@ -2964,17 +2964,17 @@ function lp() {
|
|
|
2964
2964
|
b.exports = i;
|
|
2965
2965
|
} }, f = {};
|
|
2966
2966
|
function s(b) {
|
|
2967
|
-
var
|
|
2968
|
-
if (
|
|
2967
|
+
var I = f[b];
|
|
2968
|
+
if (I !== void 0) return I.exports;
|
|
2969
2969
|
var k = f[b] = { exports: {} };
|
|
2970
2970
|
return d[b](k, k.exports, s), k.exports;
|
|
2971
2971
|
}
|
|
2972
2972
|
n(s, "a"), s.n = (b) => {
|
|
2973
|
-
var
|
|
2974
|
-
return s.d(
|
|
2975
|
-
}, s.d = (b,
|
|
2976
|
-
for (var k in
|
|
2977
|
-
}, s.o = (b,
|
|
2973
|
+
var I = b && b.__esModule ? () => b.default : () => b;
|
|
2974
|
+
return s.d(I, { a: I }), I;
|
|
2975
|
+
}, s.d = (b, I) => {
|
|
2976
|
+
for (var k in I) s.o(I, k) && !s.o(b, k) && Object.defineProperty(b, k, { enumerable: !0, get: I[k] });
|
|
2977
|
+
}, s.o = (b, I) => Object.prototype.hasOwnProperty.call(b, I), s.r = (b) => {
|
|
2978
2978
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(b, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(b, "__esModule", { value: !0 });
|
|
2979
2979
|
};
|
|
2980
2980
|
var y = {};
|
|
@@ -2987,7 +2987,7 @@ function lp() {
|
|
|
2987
2987
|
}, b(a);
|
|
2988
2988
|
}
|
|
2989
2989
|
n(b, "e");
|
|
2990
|
-
function
|
|
2990
|
+
function I(a) {
|
|
2991
2991
|
var o = (function(l, m) {
|
|
2992
2992
|
if (b(l) != "object" || !l) return l;
|
|
2993
2993
|
var z = l[Symbol.toPrimitive];
|
|
@@ -3000,9 +3000,9 @@ function lp() {
|
|
|
3000
3000
|
})(a, "string");
|
|
3001
3001
|
return b(o) == "symbol" ? o : o + "";
|
|
3002
3002
|
}
|
|
3003
|
-
n(
|
|
3003
|
+
n(I, "t");
|
|
3004
3004
|
function k(a, o, l) {
|
|
3005
|
-
return (o =
|
|
3005
|
+
return (o = I(o)) in a ? Object.defineProperty(a, o, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : a[o] = l, a;
|
|
3006
3006
|
}
|
|
3007
3007
|
n(k, "n");
|
|
3008
3008
|
function D(a, o) {
|
|
@@ -3035,7 +3035,7 @@ function lp() {
|
|
|
3035
3035
|
function A(a, o) {
|
|
3036
3036
|
for (var l = 0; l < o.length; l++) {
|
|
3037
3037
|
var m = o[l];
|
|
3038
|
-
m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(a,
|
|
3038
|
+
m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(a, I(m.key), m);
|
|
3039
3039
|
}
|
|
3040
3040
|
}
|
|
3041
3041
|
n(A, "c");
|
|
@@ -4558,7 +4558,7 @@ function Ei(e) {
|
|
|
4558
4558
|
}
|
|
4559
4559
|
n(Ei, "a11yProps");
|
|
4560
4560
|
const up = /* @__PURE__ */ n(({ open: e, onClose: r }) => {
|
|
4561
|
-
const i = pe((x) => x.session), d = pe((x) => x.setSession), [f, s] = Y(0), [y, b] = Y(null), [
|
|
4561
|
+
const i = pe((x) => x.session), d = pe((x) => x.setSession), [f, s] = Y(0), [y, b] = Y(null), [I, k] = Y(1);
|
|
4562
4562
|
oe(() => {
|
|
4563
4563
|
e && b(null);
|
|
4564
4564
|
}, [e]);
|
|
@@ -4582,8 +4582,8 @@ ${u || "No response available"}
|
|
|
4582
4582
|
}).join(`
|
|
4583
4583
|
`) : "", "formatInteractionsAsText"), p = y || i;
|
|
4584
4584
|
if (!p)
|
|
4585
|
-
return /* @__PURE__ */
|
|
4586
|
-
/* @__PURE__ */
|
|
4585
|
+
return /* @__PURE__ */ T(Bo, { open: e, onClose: v, maxWidth: "lg", fullWidth: !0, children: [
|
|
4586
|
+
/* @__PURE__ */ T(Wo, { children: [
|
|
4587
4587
|
"Session Data",
|
|
4588
4588
|
/* @__PURE__ */ t(
|
|
4589
4589
|
qt,
|
|
@@ -4606,7 +4606,7 @@ ${u || "No response available"}
|
|
|
4606
4606
|
function w(x, g, h) {
|
|
4607
4607
|
k(g);
|
|
4608
4608
|
}
|
|
4609
|
-
return n(w, "handleSliderChange"), /* @__PURE__ */
|
|
4609
|
+
return n(w, "handleSliderChange"), /* @__PURE__ */ T(
|
|
4610
4610
|
Bo,
|
|
4611
4611
|
{
|
|
4612
4612
|
open: e,
|
|
@@ -4621,7 +4621,7 @@ ${u || "No response available"}
|
|
|
4621
4621
|
}
|
|
4622
4622
|
},
|
|
4623
4623
|
children: [
|
|
4624
|
-
/* @__PURE__ */
|
|
4624
|
+
/* @__PURE__ */ T(Wo, { sx: { color: "#ffffff", borderBottom: "1px solid rgba(255, 255, 255, 0.1)" }, children: [
|
|
4625
4625
|
"Session Data Viewer",
|
|
4626
4626
|
y && /* @__PURE__ */ t(Ie, { component: "span", variant: "caption", sx: { ml: 2, color: "warning.main" }, children: "(locally edited)" }),
|
|
4627
4627
|
/* @__PURE__ */ t(
|
|
@@ -4639,7 +4639,7 @@ ${u || "No response available"}
|
|
|
4639
4639
|
}
|
|
4640
4640
|
)
|
|
4641
4641
|
] }),
|
|
4642
|
-
/* @__PURE__ */ t(ce, { sx: { borderBottom: 1, borderColor: "rgba(255, 255, 255, 0.1)" }, children: /* @__PURE__ */
|
|
4642
|
+
/* @__PURE__ */ t(ce, { sx: { borderBottom: 1, borderColor: "rgba(255, 255, 255, 0.1)" }, children: /* @__PURE__ */ T(
|
|
4643
4643
|
Dc,
|
|
4644
4644
|
{
|
|
4645
4645
|
value: f,
|
|
@@ -4656,14 +4656,14 @@ ${u || "No response available"}
|
|
|
4656
4656
|
]
|
|
4657
4657
|
}
|
|
4658
4658
|
) }),
|
|
4659
|
-
/* @__PURE__ */
|
|
4659
|
+
/* @__PURE__ */ T(No, { sx: { p: 0, overflow: "hidden" }, children: [
|
|
4660
4660
|
/* @__PURE__ */ t(Ci, { value: f, index: 0, children: /* @__PURE__ */ t(ce, { sx: { height: "50vh", overflow: "auto" }, children: /* @__PURE__ */ t(
|
|
4661
4661
|
dp,
|
|
4662
4662
|
{
|
|
4663
4663
|
src: p,
|
|
4664
4664
|
theme: "monokai",
|
|
4665
4665
|
name: "session",
|
|
4666
|
-
collapsed:
|
|
4666
|
+
collapsed: I,
|
|
4667
4667
|
displayDataTypes: !1,
|
|
4668
4668
|
displayObjectSize: !0,
|
|
4669
4669
|
enableClipboard: !0,
|
|
@@ -4694,8 +4694,8 @@ ${u || "No response available"}
|
|
|
4694
4694
|
}
|
|
4695
4695
|
) })
|
|
4696
4696
|
] }),
|
|
4697
|
-
/* @__PURE__ */
|
|
4698
|
-
/* @__PURE__ */ t(ce, { sx: { width: "100%", top: "-5px", position: "relative" }, children: /* @__PURE__ */
|
|
4697
|
+
/* @__PURE__ */ T(Ho, { sx: { borderTop: "1px solid rgba(255, 255, 255, 0.1)", p: 1, pt: 0.5 }, children: [
|
|
4698
|
+
/* @__PURE__ */ t(ce, { sx: { width: "100%", top: "-5px", position: "relative" }, children: /* @__PURE__ */ T(
|
|
4699
4699
|
Ee,
|
|
4700
4700
|
{
|
|
4701
4701
|
direction: "row",
|
|
@@ -4711,7 +4711,7 @@ ${u || "No response available"}
|
|
|
4711
4711
|
/* @__PURE__ */ t(
|
|
4712
4712
|
Rc,
|
|
4713
4713
|
{
|
|
4714
|
-
value:
|
|
4714
|
+
value: I,
|
|
4715
4715
|
onChange: w,
|
|
4716
4716
|
min: 0,
|
|
4717
4717
|
max: 7,
|
|
@@ -4757,7 +4757,7 @@ ${u || "No response available"}
|
|
|
4757
4757
|
oe(() => {
|
|
4758
4758
|
y(r.getPrompts());
|
|
4759
4759
|
}, [i, r]);
|
|
4760
|
-
const
|
|
4760
|
+
const I = ye((p) => {
|
|
4761
4761
|
f(p.currentTarget);
|
|
4762
4762
|
}, []), k = ye(() => f(null), []), D = ye(
|
|
4763
4763
|
(p) => {
|
|
@@ -4769,13 +4769,13 @@ ${u || "No response available"}
|
|
|
4769
4769
|
}, [r]), v = Te(() => s.slice(0, Eo), [s]);
|
|
4770
4770
|
if (s.length === 0) return null;
|
|
4771
4771
|
const A = !!d;
|
|
4772
|
-
return /* @__PURE__ */
|
|
4772
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
4773
4773
|
/* @__PURE__ */ t(Ne, { title: "Histórico de prompts", placement: "top", children: /* @__PURE__ */ t(
|
|
4774
4774
|
Ge,
|
|
4775
4775
|
{
|
|
4776
4776
|
ref: b,
|
|
4777
4777
|
size: "small",
|
|
4778
|
-
onClick:
|
|
4778
|
+
onClick: I,
|
|
4779
4779
|
sx: /* @__PURE__ */ n((p) => ({
|
|
4780
4780
|
color: A ? p.palette.text.primary : p.palette.text.secondary,
|
|
4781
4781
|
p: 0.75,
|
|
@@ -4785,7 +4785,7 @@ ${u || "No response available"}
|
|
|
4785
4785
|
children: /* @__PURE__ */ t(ws, { size: 16 })
|
|
4786
4786
|
}
|
|
4787
4787
|
) }),
|
|
4788
|
-
/* @__PURE__ */
|
|
4788
|
+
/* @__PURE__ */ T(
|
|
4789
4789
|
Rr,
|
|
4790
4790
|
{
|
|
4791
4791
|
open: A,
|
|
@@ -4806,7 +4806,7 @@ ${u || "No response available"}
|
|
|
4806
4806
|
}
|
|
4807
4807
|
},
|
|
4808
4808
|
children: [
|
|
4809
|
-
/* @__PURE__ */
|
|
4809
|
+
/* @__PURE__ */ T(
|
|
4810
4810
|
R,
|
|
4811
4811
|
{
|
|
4812
4812
|
sx: /* @__PURE__ */ n((p) => ({
|
|
@@ -4818,7 +4818,7 @@ ${u || "No response available"}
|
|
|
4818
4818
|
borderBottom: `1px solid ${p.palette.border.soft}`
|
|
4819
4819
|
}), "sx"),
|
|
4820
4820
|
children: [
|
|
4821
|
-
/* @__PURE__ */
|
|
4821
|
+
/* @__PURE__ */ T(
|
|
4822
4822
|
X,
|
|
4823
4823
|
{
|
|
4824
4824
|
sx: /* @__PURE__ */ n((p) => ({
|
|
@@ -4867,7 +4867,7 @@ ${u || "No response available"}
|
|
|
4867
4867
|
},
|
|
4868
4868
|
children: v.map((p, w) => {
|
|
4869
4869
|
const x = s.length - w;
|
|
4870
|
-
return /* @__PURE__ */
|
|
4870
|
+
return /* @__PURE__ */ T(
|
|
4871
4871
|
R,
|
|
4872
4872
|
{
|
|
4873
4873
|
onClick: /* @__PURE__ */ n(() => D(p), "onClick"),
|
|
@@ -4883,7 +4883,7 @@ ${u || "No response available"}
|
|
|
4883
4883
|
"&:hover": { backgroundColor: g.palette.surface.hover }
|
|
4884
4884
|
}), "sx"),
|
|
4885
4885
|
children: [
|
|
4886
|
-
/* @__PURE__ */
|
|
4886
|
+
/* @__PURE__ */ T(
|
|
4887
4887
|
X,
|
|
4888
4888
|
{
|
|
4889
4889
|
sx: /* @__PURE__ */ n((g) => ({
|
|
@@ -4928,7 +4928,7 @@ ${u || "No response available"}
|
|
|
4928
4928
|
})
|
|
4929
4929
|
}
|
|
4930
4930
|
),
|
|
4931
|
-
s.length > Eo && /* @__PURE__ */
|
|
4931
|
+
s.length > Eo && /* @__PURE__ */ T(
|
|
4932
4932
|
R,
|
|
4933
4933
|
{
|
|
4934
4934
|
sx: /* @__PURE__ */ n((p) => ({
|
|
@@ -4967,7 +4967,7 @@ function Ds({
|
|
|
4967
4967
|
onOpen: /* @__PURE__ */ n(() => f(y), "onOpen"),
|
|
4968
4968
|
onClose: /* @__PURE__ */ n(() => f((b) => b === y ? null : b), "onClose"),
|
|
4969
4969
|
slotProps: { tooltip: { sx: { top: 10, backgroundColor: Ke(i.palette.background.paper, 0.8) } } },
|
|
4970
|
-
title: /* @__PURE__ */
|
|
4970
|
+
title: /* @__PURE__ */ T(X, { sx: { fontSize: 12, whiteSpace: "nowrap", color: i.palette.text.secondary }, children: [
|
|
4971
4971
|
s.text,
|
|
4972
4972
|
" → ",
|
|
4973
4973
|
/* @__PURE__ */ t("b", { children: s.display })
|
|
@@ -4996,7 +4996,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
4996
4996
|
inputPrefix: s,
|
|
4997
4997
|
topSlot: y,
|
|
4998
4998
|
borderRadius: b = Ii,
|
|
4999
|
-
topSlotCollapsible:
|
|
4999
|
+
topSlotCollapsible: I = !1,
|
|
5000
5000
|
topSlotExpanded: k = !0,
|
|
5001
5001
|
showConfigOptions: D = !0,
|
|
5002
5002
|
onTopSlotExpandedChange: S,
|
|
@@ -5436,7 +5436,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5436
5436
|
}, "handleKeyDown"), ao = !p && rn === Se.Idle, io = !!p || rn === Se.Connected, un = !p && rn !== Se.Connected, br = !io || nn && !Gt || ct || !x && !we.trim() && Le.length === 0, so = y && k ? "" : f ?? "Pergunte sobre seus dados…", lo = /* @__PURE__ */ n(() => {
|
|
5437
5437
|
S == null || S(!k);
|
|
5438
5438
|
}, "handleToggleTopSlot"), yr = y ? 2 : b ?? 999;
|
|
5439
|
-
return /* @__PURE__ */
|
|
5439
|
+
return /* @__PURE__ */ T(
|
|
5440
5440
|
R,
|
|
5441
5441
|
{
|
|
5442
5442
|
ref: Xe,
|
|
@@ -5458,7 +5458,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5458
5458
|
},
|
|
5459
5459
|
children: [
|
|
5460
5460
|
/* @__PURE__ */ t(Ds, { markers: Xr, forceTooltipText: Jr }),
|
|
5461
|
-
/* @__PURE__ */
|
|
5461
|
+
/* @__PURE__ */ T(
|
|
5462
5462
|
R,
|
|
5463
5463
|
{
|
|
5464
5464
|
onDragEnter: /* @__PURE__ */ n((C) => {
|
|
@@ -5543,9 +5543,9 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5543
5543
|
children: "Solte a imagem para anexar"
|
|
5544
5544
|
}
|
|
5545
5545
|
),
|
|
5546
|
-
y && /* @__PURE__ */
|
|
5546
|
+
y && /* @__PURE__ */ T(R, { sx: { position: "relative" }, children: [
|
|
5547
5547
|
y,
|
|
5548
|
-
|
|
5548
|
+
I && S && /* @__PURE__ */ t(
|
|
5549
5549
|
Ne,
|
|
5550
5550
|
{
|
|
5551
5551
|
title: k ? "Recolher" : "Expandir",
|
|
@@ -5604,7 +5604,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5604
5604
|
py: 1,
|
|
5605
5605
|
borderBottom: `1px solid ${C.palette.border.soft}`
|
|
5606
5606
|
}), "sx"),
|
|
5607
|
-
children: Le.map((C) => /* @__PURE__ */ t(Ne, { title: C.name, placement: "top", children: /* @__PURE__ */
|
|
5607
|
+
children: Le.map((C) => /* @__PURE__ */ t(Ne, { title: C.name, placement: "top", children: /* @__PURE__ */ T(
|
|
5608
5608
|
R,
|
|
5609
5609
|
{
|
|
5610
5610
|
role: "button",
|
|
@@ -5682,7 +5682,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5682
5682
|
) }, C.id))
|
|
5683
5683
|
}
|
|
5684
5684
|
),
|
|
5685
|
-
/* @__PURE__ */
|
|
5685
|
+
/* @__PURE__ */ T(
|
|
5686
5686
|
R,
|
|
5687
5687
|
{
|
|
5688
5688
|
sx: {
|
|
@@ -5715,7 +5715,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5715
5715
|
) }),
|
|
5716
5716
|
d && /* @__PURE__ */ t(ba, { onPromptSelected: ro }),
|
|
5717
5717
|
s,
|
|
5718
|
-
/* @__PURE__ */
|
|
5718
|
+
/* @__PURE__ */ T(R, { sx: { flex: 1, minWidth: 0, display: "flex", position: "relative" }, children: [
|
|
5719
5719
|
Wt && /* @__PURE__ */ t(
|
|
5720
5720
|
R,
|
|
5721
5721
|
{
|
|
@@ -5726,7 +5726,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5726
5726
|
pointerEvents: "none",
|
|
5727
5727
|
overflow: "hidden"
|
|
5728
5728
|
},
|
|
5729
|
-
children: /* @__PURE__ */
|
|
5729
|
+
children: /* @__PURE__ */ T(
|
|
5730
5730
|
R,
|
|
5731
5731
|
{
|
|
5732
5732
|
ref: Rn,
|
|
@@ -5889,7 +5889,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
5889
5889
|
"aria-label": "Pausar resposta",
|
|
5890
5890
|
children: /* @__PURE__ */ t(fa, { size: 14 })
|
|
5891
5891
|
}
|
|
5892
|
-
) }) }) : Gt ? /* @__PURE__ */
|
|
5892
|
+
) }) }) : Gt ? /* @__PURE__ */ T(
|
|
5893
5893
|
R,
|
|
5894
5894
|
{
|
|
5895
5895
|
sx: {
|
|
@@ -6048,8 +6048,8 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6048
6048
|
}
|
|
6049
6049
|
}
|
|
6050
6050
|
) })
|
|
6051
|
-
) : /* @__PURE__ */
|
|
6052
|
-
kt && ge.length === 0 && /* @__PURE__ */
|
|
6051
|
+
) : /* @__PURE__ */ T(re, { children: [
|
|
6052
|
+
kt && ge.length === 0 && /* @__PURE__ */ T(
|
|
6053
6053
|
R,
|
|
6054
6054
|
{
|
|
6055
6055
|
sx: /* @__PURE__ */ n((C) => ({
|
|
@@ -6070,7 +6070,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6070
6070
|
),
|
|
6071
6071
|
ge.map((C, q) => {
|
|
6072
6072
|
const se = sd(ge, q);
|
|
6073
|
-
return /* @__PURE__ */
|
|
6073
|
+
return /* @__PURE__ */ T(mt.Fragment, { children: [
|
|
6074
6074
|
se && /* @__PURE__ */ t(
|
|
6075
6075
|
X,
|
|
6076
6076
|
{
|
|
@@ -6088,7 +6088,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6088
6088
|
children: C.group === "person" ? E : c
|
|
6089
6089
|
}
|
|
6090
6090
|
),
|
|
6091
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ T(
|
|
6092
6092
|
R,
|
|
6093
6093
|
{
|
|
6094
6094
|
role: "option",
|
|
@@ -6125,7 +6125,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6125
6125
|
placement: "right-start",
|
|
6126
6126
|
modifiers: [{ name: "offset", options: { offset: [2, eo ? 6 : 0] } }],
|
|
6127
6127
|
sx: /* @__PURE__ */ n((C) => ({ zIndex: C.zIndex.modal + 1 }), "sx"),
|
|
6128
|
-
children: /* @__PURE__ */
|
|
6128
|
+
children: /* @__PURE__ */ T(
|
|
6129
6129
|
R,
|
|
6130
6130
|
{
|
|
6131
6131
|
onMouseDown: /* @__PURE__ */ n((C) => {
|
|
@@ -6178,7 +6178,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6178
6178
|
{ name: "flip", options: { fallbackPlacements: ["top-start"] } }
|
|
6179
6179
|
],
|
|
6180
6180
|
sx: /* @__PURE__ */ n((C) => ({ zIndex: C.zIndex.modal + 1 }), "sx"),
|
|
6181
|
-
children: /* @__PURE__ */
|
|
6181
|
+
children: /* @__PURE__ */ T(
|
|
6182
6182
|
Vn,
|
|
6183
6183
|
{
|
|
6184
6184
|
onMouseDown: /* @__PURE__ */ n((C) => C.preventDefault(), "onMouseDown"),
|
|
@@ -6192,8 +6192,8 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6192
6192
|
}), "sx"),
|
|
6193
6193
|
children: [
|
|
6194
6194
|
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((C) => ({ px: 1.5, py: 0.5, fontSize: 10.5, color: C.palette.text.disabled }), "sx"), children: ft != null && ft.some((C) => C.kind === "namedLocation") ? tn ? "Localidades recentes:" : "Localidades:" : "Sugestões" }),
|
|
6195
|
-
/* @__PURE__ */
|
|
6196
|
-
ft == null ? void 0 : ft.map((C, q) => /* @__PURE__ */
|
|
6195
|
+
/* @__PURE__ */ T(R, { sx: { height: 288, overflowY: "auto" }, children: [
|
|
6196
|
+
ft == null ? void 0 : ft.map((C, q) => /* @__PURE__ */ T(
|
|
6197
6197
|
Xt,
|
|
6198
6198
|
{
|
|
6199
6199
|
dense: !0,
|
|
@@ -6205,7 +6205,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6205
6205
|
onClick: /* @__PURE__ */ n(() => yn(C), "onClick"),
|
|
6206
6206
|
sx: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0.25, py: C.hint ? 0.75 : 0.5, "&.Mui-disabled": { opacity: 0.5 } },
|
|
6207
6207
|
children: [
|
|
6208
|
-
/* @__PURE__ */
|
|
6208
|
+
/* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "baseline", gap: 0.75, width: "100%" }, children: [
|
|
6209
6209
|
/* @__PURE__ */ t(X, { sx: { fontSize: 13, lineHeight: 1.2 }, children: C.label }),
|
|
6210
6210
|
C.disabled && /* @__PURE__ */ t(X, { component: "span", sx: /* @__PURE__ */ n((se) => ({ fontSize: 11, fontStyle: "italic", color: se.palette.text.secondary, lineHeight: 1.2 }), "sx"), children: "igual à origem" })
|
|
6211
6211
|
] }),
|
|
@@ -6221,7 +6221,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6221
6221
|
)
|
|
6222
6222
|
}
|
|
6223
6223
|
),
|
|
6224
|
-
/* @__PURE__ */
|
|
6224
|
+
/* @__PURE__ */ T(
|
|
6225
6225
|
as,
|
|
6226
6226
|
{
|
|
6227
6227
|
open: !!lt,
|
|
@@ -6291,7 +6291,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6291
6291
|
children: "Preferências"
|
|
6292
6292
|
}
|
|
6293
6293
|
),
|
|
6294
|
-
/* @__PURE__ */
|
|
6294
|
+
/* @__PURE__ */ T(
|
|
6295
6295
|
Xt,
|
|
6296
6296
|
{
|
|
6297
6297
|
onClick: /* @__PURE__ */ n(() => Oe(!He), "onClick"),
|
|
@@ -6318,7 +6318,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6318
6318
|
]
|
|
6319
6319
|
}
|
|
6320
6320
|
),
|
|
6321
|
-
/* @__PURE__ */
|
|
6321
|
+
/* @__PURE__ */ T(
|
|
6322
6322
|
Xt,
|
|
6323
6323
|
{
|
|
6324
6324
|
onClick: /* @__PURE__ */ n(() => me(!$), "onClick"),
|
|
@@ -6364,7 +6364,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6364
6364
|
},
|
|
6365
6365
|
"debug-label"
|
|
6366
6366
|
),
|
|
6367
|
-
/* @__PURE__ */
|
|
6367
|
+
/* @__PURE__ */ T(
|
|
6368
6368
|
Xt,
|
|
6369
6369
|
{
|
|
6370
6370
|
onClick: /* @__PURE__ */ n(() => gr(!$n), "onClick"),
|
|
@@ -6392,7 +6392,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6392
6392
|
},
|
|
6393
6393
|
"connection-toggle"
|
|
6394
6394
|
),
|
|
6395
|
-
/* @__PURE__ */
|
|
6395
|
+
/* @__PURE__ */ T(
|
|
6396
6396
|
Xt,
|
|
6397
6397
|
{
|
|
6398
6398
|
onClick: /* @__PURE__ */ n(() => {
|
|
@@ -6439,7 +6439,7 @@ const Ii = 70, Ti = 300, ya = An(({
|
|
|
6439
6439
|
sx: { backgroundColor: Ke("#000", 0.85) }
|
|
6440
6440
|
}
|
|
6441
6441
|
},
|
|
6442
|
-
children: /* @__PURE__ */
|
|
6442
|
+
children: /* @__PURE__ */ T(
|
|
6443
6443
|
R,
|
|
6444
6444
|
{
|
|
6445
6445
|
onClick: /* @__PURE__ */ n(() => ke(null), "onClick"),
|
|
@@ -6550,8 +6550,8 @@ typeof window < "u" && Promise.all([
|
|
|
6550
6550
|
import("react-syntax-highlighter/dist/esm/languages/prism/css"),
|
|
6551
6551
|
import("react-syntax-highlighter/dist/esm/languages/prism/csharp"),
|
|
6552
6552
|
import("react-syntax-highlighter/dist/esm/languages/prism/yaml")
|
|
6553
|
-
]).then(([e, r, i, d, f, s, y, b,
|
|
6554
|
-
xt = e.default, Rs = r.default, xt.registerLanguage("python", f.default), xt.registerLanguage("markdown", i.default), xt.registerLanguage("javascript", s.default), xt.registerLanguage("typescript", y.default), xt.registerLanguage("sql", b.default), xt.registerLanguage("json",
|
|
6553
|
+
]).then(([e, r, i, d, f, s, y, b, I, k, D, S, v]) => {
|
|
6554
|
+
xt = e.default, Rs = r.default, xt.registerLanguage("python", f.default), xt.registerLanguage("markdown", i.default), xt.registerLanguage("javascript", s.default), xt.registerLanguage("typescript", y.default), xt.registerLanguage("sql", b.default), xt.registerLanguage("json", I.default), xt.registerLanguage("bash", k.default), xt.registerLanguage("shell", k.default), xt.registerLanguage("html", d.default), xt.registerLanguage("xml", d.default), xt.registerLanguage("css", D.default), xt.registerLanguage("csharp", S.default), xt.registerLanguage("yaml", v.default);
|
|
6555
6555
|
}).catch((e) => console.error("Failed to load syntax highlighter:", e));
|
|
6556
6556
|
const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en(hp), "useMarkdownExtendedDefaults"), mp = /* @__PURE__ */ n(({ iconCode: e }) => /* @__PURE__ */ t("span", { style: {
|
|
6557
6557
|
display: "inline-flex",
|
|
@@ -6581,14 +6581,14 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6581
6581
|
dataobject: /* @__PURE__ */ t(ui, { fontSize: "small" }),
|
|
6582
6582
|
dataexploration: /* @__PURE__ */ t(vd, { fontSize: "small" }),
|
|
6583
6583
|
autostories: /* @__PURE__ */ t(ui, { fontSize: "small" })
|
|
6584
|
-
}[e.toLowerCase()] || /* @__PURE__ */
|
|
6584
|
+
}[e.toLowerCase()] || /* @__PURE__ */ T("span", { children: [
|
|
6585
6585
|
":",
|
|
6586
6586
|
e,
|
|
6587
6587
|
":"
|
|
6588
6588
|
] }) }), "InlineIcon"), gp = /* @__PURE__ */ n(({ children: e }) => /* @__PURE__ */ t("p", { style: { margin: "0 0 8px 0" }, children: e }), "MarkdownParagraph"), Lt = /* @__PURE__ */ n(({ text: e, sessionId: r, preStyle: i, onLinkClicked: d, partial: f, mode: s = "full", variant: y }) => {
|
|
6589
6589
|
const b = fp();
|
|
6590
6590
|
y ?? b.variant;
|
|
6591
|
-
const
|
|
6591
|
+
const I = St();
|
|
6592
6592
|
let k = e;
|
|
6593
6593
|
const { eventBusService: D } = Qe(), S = {
|
|
6594
6594
|
span: /* @__PURE__ */ n(({ children: x, className: g, ...h }) => g === "inline-icon" && h["data-icon"] ? /* @__PURE__ */ t(mp, { iconCode: h["data-icon"] }) : /* @__PURE__ */ t("span", { className: g, ...h, children: x }), "span"),
|
|
@@ -6601,7 +6601,7 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6601
6601
|
verticalAlign: "middle",
|
|
6602
6602
|
marginRight: "4px",
|
|
6603
6603
|
fontSize: "inherit",
|
|
6604
|
-
color:
|
|
6604
|
+
color: I.palette.primary.main,
|
|
6605
6605
|
marginTop: "-2px"
|
|
6606
6606
|
}
|
|
6607
6607
|
}
|
|
@@ -6612,7 +6612,7 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6612
6612
|
verticalAlign: "middle",
|
|
6613
6613
|
marginRight: "4px",
|
|
6614
6614
|
fontSize: "inherit",
|
|
6615
|
-
color:
|
|
6615
|
+
color: I.palette.text.secondary,
|
|
6616
6616
|
marginTop: "-2px"
|
|
6617
6617
|
}
|
|
6618
6618
|
}
|
|
@@ -6625,9 +6625,9 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6625
6625
|
onClick: /* @__PURE__ */ n((h) => {
|
|
6626
6626
|
h.preventDefault(), h.stopPropagation(), d && d(g ?? "", ea(x) || null);
|
|
6627
6627
|
}, "onClick"),
|
|
6628
|
-
children: /* @__PURE__ */
|
|
6628
|
+
children: /* @__PURE__ */ T("div", { style: { display: "inline", alignItems: "left", verticalAlign: "middle", textWrap: "wrap", color: I.palette.text.primary, textDecorationColor: I.palette.secondary.main }, children: [
|
|
6629
6629
|
x,
|
|
6630
|
-
g != null && g.startsWith("#") ? /* @__PURE__ */ t(gu, { sx: { position: "relative", top: "3px", fontSize: "16px", marginLeft: "4px", marginTop: "-2px", color:
|
|
6630
|
+
g != null && g.startsWith("#") ? /* @__PURE__ */ t(gu, { sx: { position: "relative", top: "3px", fontSize: "16px", marginLeft: "4px", marginTop: "-2px", color: I.palette.secondary.main } }) : /* @__PURE__ */ t(xd, { sx: { position: "relative", top: "3px", fontSize: "16px", marginLeft: "4px", marginTop: "-2px", color: I.palette.secondary.main } })
|
|
6631
6631
|
] })
|
|
6632
6632
|
}
|
|
6633
6633
|
) }), "a"),
|
|
@@ -6645,12 +6645,12 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6645
6645
|
padding: "0.5em 0.75em",
|
|
6646
6646
|
borderRadius: "4px",
|
|
6647
6647
|
backgroundColor: "rgba(0, 0, 0, 0.3)",
|
|
6648
|
-
color:
|
|
6648
|
+
color: I.palette.text.primary,
|
|
6649
6649
|
fontFamily: "monospace"
|
|
6650
6650
|
}, children: String(g) }) : w(g, M) : /* @__PURE__ */ t("code", { style: {
|
|
6651
|
-
backgroundColor:
|
|
6652
|
-
color:
|
|
6653
|
-
borderColor:
|
|
6651
|
+
backgroundColor: I.palette.background.default,
|
|
6652
|
+
color: I.palette.text.primary,
|
|
6653
|
+
borderColor: I.palette.border.default,
|
|
6654
6654
|
padding: "2px",
|
|
6655
6655
|
borderRadius: "4px",
|
|
6656
6656
|
fontFamily: "monospace",
|
|
@@ -6669,14 +6669,14 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6669
6669
|
padding: "8px 4px 2px 8px",
|
|
6670
6670
|
width: "100%",
|
|
6671
6671
|
borderRadius: "6px",
|
|
6672
|
-
backgroundColor:
|
|
6672
|
+
backgroundColor: I.palette.surface.raised,
|
|
6673
6673
|
fontStyle: "italic"
|
|
6674
|
-
}, children: /* @__PURE__ */
|
|
6674
|
+
}, children: /* @__PURE__ */ T(Ee, { direction: "row", gap: 2, sx: { display: "inline-flex", alignItems: "center", flexWrap: "nowrap" }, children: [
|
|
6675
6675
|
/* @__PURE__ */ t(bu, { sx: { position: "relative", top: -20 } }),
|
|
6676
6676
|
x
|
|
6677
6677
|
] }) }), "blockquote")
|
|
6678
6678
|
};
|
|
6679
|
-
|
|
6679
|
+
I.palette.primary.main, `${I.palette.primary.main}`, I.palette.text.primary, Object.assign(S, {});
|
|
6680
6680
|
const p = s === "compact" ? {
|
|
6681
6681
|
input: /* @__PURE__ */ n(({ checked: x, disabled: g, ...h }) => h.type === "checkbox" ? x ? /* @__PURE__ */ t(
|
|
6682
6682
|
bi,
|
|
@@ -6685,7 +6685,7 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6685
6685
|
verticalAlign: "middle",
|
|
6686
6686
|
marginRight: "4px",
|
|
6687
6687
|
fontSize: "inherit",
|
|
6688
|
-
color:
|
|
6688
|
+
color: I.palette.primary.main,
|
|
6689
6689
|
marginTop: "-2px"
|
|
6690
6690
|
}
|
|
6691
6691
|
}
|
|
@@ -6696,7 +6696,7 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6696
6696
|
verticalAlign: "middle",
|
|
6697
6697
|
marginRight: "4px",
|
|
6698
6698
|
fontSize: "inherit",
|
|
6699
|
-
color:
|
|
6699
|
+
color: I.palette.text.secondary,
|
|
6700
6700
|
marginTop: "-2px"
|
|
6701
6701
|
}
|
|
6702
6702
|
}
|
|
@@ -6750,11 +6750,11 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6750
6750
|
width: s = "40vw",
|
|
6751
6751
|
title: y,
|
|
6752
6752
|
onVisibleQuestionChange: b,
|
|
6753
|
-
...
|
|
6753
|
+
...I
|
|
6754
6754
|
} = e, [k, D] = Y(null), S = ye((A) => {
|
|
6755
6755
|
D(A), b == null || b(A);
|
|
6756
6756
|
}, [b]), v = k || y || "Chat";
|
|
6757
|
-
return /* @__PURE__ */
|
|
6757
|
+
return /* @__PURE__ */ T(
|
|
6758
6758
|
Oc,
|
|
6759
6759
|
{
|
|
6760
6760
|
anchor: f,
|
|
@@ -6772,7 +6772,7 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6772
6772
|
}
|
|
6773
6773
|
},
|
|
6774
6774
|
children: [
|
|
6775
|
-
/* @__PURE__ */
|
|
6775
|
+
/* @__PURE__ */ T(ce, { sx: { px: 2, py: 1, display: "flex", alignItems: "center", flexShrink: 0, borderBottom: 1, borderColor: "divider" }, children: [
|
|
6776
6776
|
/* @__PURE__ */ t(_n, { title: v, enterDelay: 500, children: /* @__PURE__ */ t(
|
|
6777
6777
|
Ie,
|
|
6778
6778
|
{
|
|
@@ -6789,7 +6789,7 @@ const pp = `${aa()}/open/getImage`, hp = Nr({}), fp = /* @__PURE__ */ n(() => en
|
|
|
6789
6789
|
) }),
|
|
6790
6790
|
d && /* @__PURE__ */ t(qt, { size: "small", onClick: d, edge: "end", sx: { ml: 1, flexShrink: 0 }, children: /* @__PURE__ */ t(Dr, { fontSize: "small" }) })
|
|
6791
6791
|
] }),
|
|
6792
|
-
/* @__PURE__ */ t(ce, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ t(Xn, { ref: r, ...
|
|
6792
|
+
/* @__PURE__ */ t(ce, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ t(Xn, { ref: r, ...I, onVisibleQuestionChange: S }) })
|
|
6793
6793
|
]
|
|
6794
6794
|
}
|
|
6795
6795
|
);
|
|
@@ -6807,7 +6807,7 @@ const bp = Fc`
|
|
|
6807
6807
|
height: s = "75vh",
|
|
6808
6808
|
title: y,
|
|
6809
6809
|
borderRadius: b = 3,
|
|
6810
|
-
elevation:
|
|
6810
|
+
elevation: I = 8,
|
|
6811
6811
|
onVisibleQuestionChange: k,
|
|
6812
6812
|
...D
|
|
6813
6813
|
} = e, [S, v] = Y(!1), [A, p] = Y(null), w = ye((B) => {
|
|
@@ -6818,11 +6818,11 @@ const bp = Fc`
|
|
|
6818
6818
|
}
|
|
6819
6819
|
p(G ?? ""), k == null || k(B);
|
|
6820
6820
|
}, [k]), x = A || y || "Chat", g = i.bottom ? i.bottom + (((E = e.chatPositionOffSet) == null ? void 0 : E.bottom) ?? 0) : void 0, h = i.right ? (i.right ?? 0) + (((c = e.chatPositionOffSet) == null ? void 0 : c.right) ?? 0) : void 0, M = i.left ? i.left + (((_ = e.chatPositionOffSet) == null ? void 0 : _.left) ?? 0) : void 0, u = i.top != null ? i.top + 20 + (((j = e.chatPositionOffSet) == null ? void 0 : j.top) ?? 0) : void 0;
|
|
6821
|
-
return /* @__PURE__ */
|
|
6822
|
-
/* @__PURE__ */ t(Pc, { direction: "up", in: S, children: /* @__PURE__ */
|
|
6821
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
6822
|
+
/* @__PURE__ */ t(Pc, { direction: "up", in: S, children: /* @__PURE__ */ T(
|
|
6823
6823
|
ra,
|
|
6824
6824
|
{
|
|
6825
|
-
elevation:
|
|
6825
|
+
elevation: I,
|
|
6826
6826
|
sx: {
|
|
6827
6827
|
position: "fixed",
|
|
6828
6828
|
bottom: u != null ? void 0 : g,
|
|
@@ -6843,7 +6843,7 @@ const bp = Fc`
|
|
|
6843
6843
|
pointerEvents: S ? "auto" : "none"
|
|
6844
6844
|
},
|
|
6845
6845
|
children: [
|
|
6846
|
-
/* @__PURE__ */
|
|
6846
|
+
/* @__PURE__ */ T(ce, { sx: { px: 2, py: 1, display: "flex", alignItems: "center", flexShrink: 0, borderBottom: 1, borderColor: "divider" }, children: [
|
|
6847
6847
|
/* @__PURE__ */ t(_n, { title: x, enterDelay: 500, children: /* @__PURE__ */ t(
|
|
6848
6848
|
Ie,
|
|
6849
6849
|
{
|
|
@@ -6882,7 +6882,7 @@ const bp = Fc`
|
|
|
6882
6882
|
zIndex: 1e4,
|
|
6883
6883
|
animation: `${bp} 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both`
|
|
6884
6884
|
},
|
|
6885
|
-
children: d ? /* @__PURE__ */ t(ce, { onClick: /* @__PURE__ */ n(() => v((B) => !B), "onClick"), sx: { cursor: "pointer" }, children: d }) : /* @__PURE__ */
|
|
6885
|
+
children: d ? /* @__PURE__ */ t(ce, { onClick: /* @__PURE__ */ n(() => v((B) => !B), "onClick"), sx: { cursor: "pointer" }, children: d }) : /* @__PURE__ */ T(
|
|
6886
6886
|
ce,
|
|
6887
6887
|
{
|
|
6888
6888
|
onClick: /* @__PURE__ */ n(() => {
|
|
@@ -6965,9 +6965,9 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
6965
6965
|
onLinkClicked: y
|
|
6966
6966
|
}) => {
|
|
6967
6967
|
var x;
|
|
6968
|
-
const [b,
|
|
6968
|
+
const [b, I] = Y(() => !i || !f), k = ue(null);
|
|
6969
6969
|
if (oe(() => {
|
|
6970
|
-
|
|
6970
|
+
I(!i || !f);
|
|
6971
6971
|
}, [i, f]), oe(() => {
|
|
6972
6972
|
k.current && k.current.scrollTo({
|
|
6973
6973
|
top: k.current.scrollHeight,
|
|
@@ -6975,8 +6975,8 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
6975
6975
|
});
|
|
6976
6976
|
}, [(x = e.textDetails) == null ? void 0 : x.version]), !i) return null;
|
|
6977
6977
|
const D = st.getPartTextContent(e), v = (((e.ended ?? /* @__PURE__ */ new Date()).getTime() - e.created.getTime()) / 1e3).toFixed(2), p = s ? f ? "Pensando..." : `Pensou por ${v}s` : `Thought ${v}s`, w = /* @__PURE__ */ n((g, h) => null, "onDrawCodeBlock");
|
|
6978
|
-
return /* @__PURE__ */
|
|
6979
|
-
/* @__PURE__ */ t(qt, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ n(() =>
|
|
6978
|
+
return /* @__PURE__ */ T(Ee, { direction: "column", style: { display: "flex", borderRadius: "5px", marginTop: "10px", color: "var(--text-secondary)", fontSize: "0.75rem" }, children: [
|
|
6979
|
+
/* @__PURE__ */ t(qt, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ n(() => I(!b), "onClick"), sx: {
|
|
6980
6980
|
color: "inherit",
|
|
6981
6981
|
padding: "1px",
|
|
6982
6982
|
minWidth: "16px",
|
|
@@ -6988,7 +6988,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
6988
6988
|
"&:focus": { outline: "none" },
|
|
6989
6989
|
"&:focus-visible": { outline: "none" },
|
|
6990
6990
|
"&.Mui-focusVisible": { outline: "none", boxShadow: "none" }
|
|
6991
|
-
}, children: /* @__PURE__ */
|
|
6991
|
+
}, children: /* @__PURE__ */ T(Ee, { direction: "row", sx: { display: "flex", cursor: "pointer", alignItems: "center", alignContent: "flex-end", flexWrap: "nowrap" }, gap: 0.5, children: [
|
|
6992
6992
|
/* @__PURE__ */ t("div", { style: { minWidth: "90px" }, children: p }),
|
|
6993
6993
|
/* @__PURE__ */ t(zr, { sx: { fontSize: "1rem", rotate: b ? "0deg" : "90deg", transition: "rotate 180ms ease-out" } })
|
|
6994
6994
|
] }) }),
|
|
@@ -7049,16 +7049,16 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7049
7049
|
))
|
|
7050
7050
|
}
|
|
7051
7051
|
), "LoadingDots"), Ur = /* @__PURE__ */ n(({ id: e, on: r, className: i = "", style: d = {}, showButton: f = !1, startingPoint: s, stopPoint: y }) => {
|
|
7052
|
-
const [b,
|
|
7052
|
+
const [b, I] = Y(0), k = ue(void 0);
|
|
7053
7053
|
oe(() => {
|
|
7054
7054
|
if (r)
|
|
7055
7055
|
k.current && clearInterval(k.current), k.current = setInterval(() => {
|
|
7056
7056
|
const v = (Date.now() - s.getTime()) / 1e3;
|
|
7057
|
-
|
|
7057
|
+
I(v);
|
|
7058
7058
|
}, 100);
|
|
7059
7059
|
else if (k.current && (clearInterval(k.current), k.current = void 0), y) {
|
|
7060
7060
|
const v = (y.getTime() - s.getTime()) / 1e3;
|
|
7061
|
-
|
|
7061
|
+
I(v);
|
|
7062
7062
|
} else
|
|
7063
7063
|
console.error("[STOP WATCH]: Stop point is not set, " + e);
|
|
7064
7064
|
return () => {
|
|
@@ -7066,9 +7066,9 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7066
7066
|
};
|
|
7067
7067
|
}, [r, s, y]);
|
|
7068
7068
|
const D = /* @__PURE__ */ n(() => {
|
|
7069
|
-
|
|
7069
|
+
I(0), k.current && (clearInterval(k.current), k.current = void 0);
|
|
7070
7070
|
}, "reset"), S = /* @__PURE__ */ n((v) => v.toFixed(2), "formatTime");
|
|
7071
|
-
return /* @__PURE__ */
|
|
7071
|
+
return /* @__PURE__ */ T(
|
|
7072
7072
|
"div",
|
|
7073
7073
|
{
|
|
7074
7074
|
className: `stopwatch ${i}`,
|
|
@@ -7077,7 +7077,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7077
7077
|
...d
|
|
7078
7078
|
},
|
|
7079
7079
|
children: [
|
|
7080
|
-
/* @__PURE__ */
|
|
7080
|
+
/* @__PURE__ */ T("span", { className: "stopwatch-time", children: [
|
|
7081
7081
|
S(b),
|
|
7082
7082
|
"s"
|
|
7083
7083
|
] }),
|
|
@@ -7110,7 +7110,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7110
7110
|
part: s,
|
|
7111
7111
|
onLinkClicked: y,
|
|
7112
7112
|
preview: b,
|
|
7113
|
-
onDrawCodeBlock:
|
|
7113
|
+
onDrawCodeBlock: I,
|
|
7114
7114
|
isLastInlineInGroup: k = !1
|
|
7115
7115
|
}) => {
|
|
7116
7116
|
var W, H, ee, be, Fe, Je;
|
|
@@ -7130,8 +7130,8 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7130
7130
|
});
|
|
7131
7131
|
}, [f, j]);
|
|
7132
7132
|
const G = p.palette.text.secondary, ne = p.palette.action.hover, V = p.palette.divider, U = p.palette.mode === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.06)";
|
|
7133
|
-
return /* @__PURE__ */
|
|
7134
|
-
/* @__PURE__ */
|
|
7133
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
7134
|
+
/* @__PURE__ */ T(
|
|
7135
7135
|
ce,
|
|
7136
7136
|
{
|
|
7137
7137
|
ref: v,
|
|
@@ -7171,7 +7171,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7171
7171
|
}
|
|
7172
7172
|
}
|
|
7173
7173
|
),
|
|
7174
|
-
/* @__PURE__ */
|
|
7174
|
+
/* @__PURE__ */ T(ce, { sx: {
|
|
7175
7175
|
display: "flex",
|
|
7176
7176
|
alignItems: "center",
|
|
7177
7177
|
justifyContent: "space-between",
|
|
@@ -7186,7 +7186,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7186
7186
|
paddingRight: 1,
|
|
7187
7187
|
zIndex: 2
|
|
7188
7188
|
}, children: [
|
|
7189
|
-
/* @__PURE__ */
|
|
7189
|
+
/* @__PURE__ */ T("div", { style: { display: "flex", alignItems: "center", flex: 1, overflow: "hidden" }, children: [
|
|
7190
7190
|
r,
|
|
7191
7191
|
/* @__PURE__ */ t("span", { style: {
|
|
7192
7192
|
marginLeft: "4px",
|
|
@@ -7195,9 +7195,9 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7195
7195
|
overflow: "hidden",
|
|
7196
7196
|
textOverflow: "ellipsis"
|
|
7197
7197
|
}, children: e }),
|
|
7198
|
-
i && i > 0 ? /* @__PURE__ */
|
|
7198
|
+
i && i > 0 ? /* @__PURE__ */ T(re, { children: [
|
|
7199
7199
|
/* @__PURE__ */ t(Tn, { sx: { fontSize: "12px", mt: 0.2, ml: 2 } }),
|
|
7200
|
-
/* @__PURE__ */
|
|
7200
|
+
/* @__PURE__ */ T("span", { style: {
|
|
7201
7201
|
marginLeft: "4px",
|
|
7202
7202
|
fontSize: "9px",
|
|
7203
7203
|
whiteSpace: "nowrap",
|
|
@@ -7267,12 +7267,12 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7267
7267
|
partial: b,
|
|
7268
7268
|
text: ld(f ?? ""),
|
|
7269
7269
|
onLinkClicked: y,
|
|
7270
|
-
onDrawCodeBlock:
|
|
7270
|
+
onDrawCodeBlock: I
|
|
7271
7271
|
}
|
|
7272
7272
|
)
|
|
7273
7273
|
}
|
|
7274
7274
|
),
|
|
7275
|
-
/* @__PURE__ */
|
|
7275
|
+
/* @__PURE__ */ T(ce, { sx: {
|
|
7276
7276
|
display: "flex",
|
|
7277
7277
|
alignItems: "center",
|
|
7278
7278
|
justifyContent: "space-between",
|
|
@@ -7289,16 +7289,16 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7289
7289
|
borderTop: `1px solid ${V}`,
|
|
7290
7290
|
zIndex: 2
|
|
7291
7291
|
}, children: [
|
|
7292
|
-
u === "Composing" && /* @__PURE__ */
|
|
7292
|
+
u === "Composing" && /* @__PURE__ */ T(Ee, { direction: "row", gap: 1, sx: { mt: 0.5 }, children: [
|
|
7293
7293
|
/* @__PURE__ */ t(Ie, { sx: { fontSize: "10px" }, children: "Composing" }),
|
|
7294
7294
|
/* @__PURE__ */ t(Fr, { size: 3, color: p.palette.primary.main })
|
|
7295
7295
|
] }),
|
|
7296
|
-
u === "Executing" && /* @__PURE__ */
|
|
7296
|
+
u === "Executing" && /* @__PURE__ */ T(Ee, { direction: "row", gap: 1, sx: { mt: 0.5, fontSize: "10px" }, children: [
|
|
7297
7297
|
/* @__PURE__ */ t(Ie, { sx: { fontSize: "10px" }, children: "Running:" }),
|
|
7298
7298
|
/* @__PURE__ */ t(Tn, { sx: { fontSize: "12px", mt: 0.2 } }),
|
|
7299
7299
|
/* @__PURE__ */ t(Ur, { startingPoint: ((Je = s.functionDetails) == null ? void 0 : Je.start) ?? /* @__PURE__ */ new Date(), on: !0 })
|
|
7300
7300
|
] }),
|
|
7301
|
-
u === "Done" && /* @__PURE__ */
|
|
7301
|
+
u === "Done" && /* @__PURE__ */ T(Ee, { direction: "row", gap: 1, sx: { mt: 0.5, fontSize: "10px" }, children: [
|
|
7302
7302
|
/* @__PURE__ */ t(Ie, { sx: { fontSize: "10px" }, children: "Done!" }),
|
|
7303
7303
|
/* @__PURE__ */ t(Tn, { sx: { fontSize: "12px", mt: 0.2 } }),
|
|
7304
7304
|
/* @__PURE__ */ t(Ie, { sx: { fontSize: "10px" }, children: _ && c ? `${((_ - c) / 1e3).toFixed(2)}s` : "N\\D" })
|
|
@@ -7326,7 +7326,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7326
7326
|
color: G
|
|
7327
7327
|
}
|
|
7328
7328
|
},
|
|
7329
|
-
children: /* @__PURE__ */
|
|
7329
|
+
children: /* @__PURE__ */ T(
|
|
7330
7330
|
ce,
|
|
7331
7331
|
{
|
|
7332
7332
|
id: "preview-container",
|
|
@@ -7356,7 +7356,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7356
7356
|
wordBreak: "break-word"
|
|
7357
7357
|
},
|
|
7358
7358
|
children: [
|
|
7359
|
-
/* @__PURE__ */
|
|
7359
|
+
/* @__PURE__ */ T("div", { style: {
|
|
7360
7360
|
display: "flex",
|
|
7361
7361
|
alignItems: "center",
|
|
7362
7362
|
marginBottom: "8px",
|
|
@@ -7373,7 +7373,7 @@ const Fs = /* @__PURE__ */ n((e) => !!e && (e === "ask_user" || e.endsWith("-ask
|
|
|
7373
7373
|
preStyle: M,
|
|
7374
7374
|
text: f ?? "",
|
|
7375
7375
|
onLinkClicked: y,
|
|
7376
|
-
onDrawCodeBlock:
|
|
7376
|
+
onDrawCodeBlock: I
|
|
7377
7377
|
}
|
|
7378
7378
|
)
|
|
7379
7379
|
]
|
|
@@ -7793,22 +7793,22 @@ n(wp, "configureFriendlyMapping");
|
|
|
7793
7793
|
function Qn(e, r, i, d) {
|
|
7794
7794
|
const f = e.split("-"), s = f.length > 1 ? f.slice(1).join("") : e, y = Ns[s];
|
|
7795
7795
|
if (!y) {
|
|
7796
|
-
const
|
|
7796
|
+
const I = e.replace(/_/g, " ");
|
|
7797
7797
|
switch (r) {
|
|
7798
7798
|
case "partial":
|
|
7799
|
-
return `Preparando ${
|
|
7799
|
+
return `Preparando ${I}`;
|
|
7800
7800
|
case "call":
|
|
7801
|
-
return `Executando ${
|
|
7801
|
+
return `Executando ${I}`;
|
|
7802
7802
|
case "response":
|
|
7803
|
-
return `${
|
|
7803
|
+
return `${I} concluído`;
|
|
7804
7804
|
}
|
|
7805
7805
|
}
|
|
7806
7806
|
if (r === "response" && d && y.responseError)
|
|
7807
7807
|
return y.responseError;
|
|
7808
7808
|
let b = y[r];
|
|
7809
7809
|
if (y.extractDetail) {
|
|
7810
|
-
const
|
|
7811
|
-
|
|
7810
|
+
const I = y.extractDetail(i);
|
|
7811
|
+
I && (b = `${b} ${I}`);
|
|
7812
7812
|
}
|
|
7813
7813
|
return b;
|
|
7814
7814
|
}
|
|
@@ -7820,16 +7820,16 @@ const Io = 500, Di = 14, Sp = 8, kp = [
|
|
|
7820
7820
|
];
|
|
7821
7821
|
function Ri({ streamedBytes: e = 0 }) {
|
|
7822
7822
|
const r = Math.floor(e / Io), i = e % Io / Io, d = r + (i > 0 ? 1 : 0), f = Math.max(d, 1), s = St();
|
|
7823
|
-
function y(
|
|
7824
|
-
const S = Math.abs(
|
|
7823
|
+
function y(I, k = 2, D = !0) {
|
|
7824
|
+
const S = Math.abs(I);
|
|
7825
7825
|
for (const [v, A] of kp)
|
|
7826
7826
|
if (S >= v)
|
|
7827
|
-
return (
|
|
7828
|
-
return
|
|
7827
|
+
return (I / v).toFixed(k) + (D ? A : "");
|
|
7828
|
+
return I.toFixed(0) + "b";
|
|
7829
7829
|
}
|
|
7830
7830
|
n(y, "formatCompact");
|
|
7831
|
-
const b = /* @__PURE__ */ n((
|
|
7832
|
-
return /* @__PURE__ */
|
|
7831
|
+
const b = /* @__PURE__ */ n((I) => y(I), "formatBytes");
|
|
7832
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
7833
7833
|
/* @__PURE__ */ t(ce, { sx: {
|
|
7834
7834
|
display: "inline-flex",
|
|
7835
7835
|
alignItems: "flex-end",
|
|
@@ -7837,7 +7837,7 @@ function Ri({ streamedBytes: e = 0 }) {
|
|
|
7837
7837
|
gap: "3px",
|
|
7838
7838
|
ml: 1,
|
|
7839
7839
|
height: `${Di + 2}px`
|
|
7840
|
-
}, children: Array.from({ length: f }, (
|
|
7840
|
+
}, children: Array.from({ length: f }, (I, k) => {
|
|
7841
7841
|
const D = k < r, S = k === r && i > 0, v = D ? 1 : S ? i : 0, A = S && !D;
|
|
7842
7842
|
return /* @__PURE__ */ t(
|
|
7843
7843
|
ce,
|
|
@@ -7884,8 +7884,8 @@ const Cp = /* @__PURE__ */ n(({
|
|
|
7884
7884
|
endTime: s,
|
|
7885
7885
|
streamedBytes: y
|
|
7886
7886
|
}) => {
|
|
7887
|
-
const b = Qn(e, r, i, d),
|
|
7888
|
-
return /* @__PURE__ */
|
|
7887
|
+
const b = Qn(e, r, i, d), I = f && s ? s.getTime() - f.getTime() : void 0;
|
|
7888
|
+
return /* @__PURE__ */ T(
|
|
7889
7889
|
Ee,
|
|
7890
7890
|
{
|
|
7891
7891
|
direction: "row",
|
|
@@ -7915,17 +7915,17 @@ const Cp = /* @__PURE__ */ n(({
|
|
|
7915
7915
|
}
|
|
7916
7916
|
),
|
|
7917
7917
|
r === "partial" && /* @__PURE__ */ t(Ri, { streamedBytes: y ?? 0 }),
|
|
7918
|
-
r === "call" && f && /* @__PURE__ */
|
|
7918
|
+
r === "call" && f && /* @__PURE__ */ T(re, { children: [
|
|
7919
7919
|
/* @__PURE__ */ t(Ri, { streamedBytes: y ?? 0 }),
|
|
7920
|
-
/* @__PURE__ */
|
|
7920
|
+
/* @__PURE__ */ T(Ee, { direction: "row", alignItems: "center", gap: 0.5, sx: { fontSize: "0.78rem" }, children: [
|
|
7921
7921
|
/* @__PURE__ */ t(Tn, { sx: { fontSize: "0.9rem" } }),
|
|
7922
7922
|
/* @__PURE__ */ t(Ur, { startingPoint: f, on: !0, style: { fontSize: "0.78rem" } })
|
|
7923
7923
|
] })
|
|
7924
7924
|
] }),
|
|
7925
|
-
r === "response" &&
|
|
7925
|
+
r === "response" && I != null && I > 0 && /* @__PURE__ */ T(Ee, { direction: "row", alignItems: "center", gap: 0.5, sx: { fontSize: "0.78rem", color: "text.disabled" }, children: [
|
|
7926
7926
|
/* @__PURE__ */ t(Tn, { sx: { fontSize: "0.9rem" } }),
|
|
7927
|
-
/* @__PURE__ */
|
|
7928
|
-
(
|
|
7927
|
+
/* @__PURE__ */ T(Ie, { component: "span", sx: { fontSize: "inherit" }, children: [
|
|
7928
|
+
(I / 1e3).toFixed(2),
|
|
7929
7929
|
"s"
|
|
7930
7930
|
] })
|
|
7931
7931
|
] })
|
|
@@ -7934,7 +7934,7 @@ const Cp = /* @__PURE__ */ n(({
|
|
|
7934
7934
|
);
|
|
7935
7935
|
}, "FriendlyPartDisplay"), Ep = { fontSize: 10, color: "currentColor" };
|
|
7936
7936
|
function Ip(e) {
|
|
7937
|
-
var y, b,
|
|
7937
|
+
var y, b, I, k, D, S, v, A, p, w, x, g;
|
|
7938
7938
|
if (e.eventType === ve.PartialFunctionCall)
|
|
7939
7939
|
return {
|
|
7940
7940
|
title: ci(((y = e.functionDetails) == null ? void 0 : y.name) ?? "Unknown"),
|
|
@@ -7942,7 +7942,7 @@ function Ip(e) {
|
|
|
7942
7942
|
};
|
|
7943
7943
|
const r = (b = e.functionDetails) == null ? void 0 : b.name;
|
|
7944
7944
|
if (!r) {
|
|
7945
|
-
const h = e.eventType === ve.FunctionCall ? ((
|
|
7945
|
+
const h = e.eventType === ve.FunctionCall ? ((I = e.functionDetails) == null ? void 0 : I.args) ?? {} : ((k = e.functionDetails) == null ? void 0 : k.response) ?? {}, u = (st.isCharArray(h) ? h.join("") : st.tryCollapseCharIndexedObject(h)) ?? h;
|
|
7946
7946
|
return {
|
|
7947
7947
|
title: "Unknown",
|
|
7948
7948
|
content: st.jsonToString(u)
|
|
@@ -8010,7 +8010,7 @@ const Tp = {
|
|
|
8010
8010
|
}
|
|
8011
8011
|
);
|
|
8012
8012
|
}
|
|
8013
|
-
const
|
|
8013
|
+
const I = `\`\`\`${e.eventType === ve.PartialFunctionCall ? "sql" : "json"}
|
|
8014
8014
|
|
|
8015
8015
|
${y.content}
|
|
8016
8016
|
|
|
@@ -8022,7 +8022,7 @@ ${y.content}
|
|
|
8022
8022
|
title: y.title,
|
|
8023
8023
|
icon: /* @__PURE__ */ t(ku, { style: Ep }),
|
|
8024
8024
|
elapsed: y.elapsed,
|
|
8025
|
-
content:
|
|
8025
|
+
content: I,
|
|
8026
8026
|
part: e,
|
|
8027
8027
|
preview: i,
|
|
8028
8028
|
onDrawCodeBlock: k,
|
|
@@ -8033,8 +8033,8 @@ ${y.content}
|
|
|
8033
8033
|
}, "FunctionPart"), Hs = /* @__PURE__ */ n(({ part: e }) => {
|
|
8034
8034
|
var i, d;
|
|
8035
8035
|
const r = St();
|
|
8036
|
-
return (i = e.waitingDetails) != null && i.addTimer ? /* @__PURE__ */
|
|
8037
|
-
/* @__PURE__ */
|
|
8036
|
+
return (i = e.waitingDetails) != null && i.addTimer ? /* @__PURE__ */ T("div", { style: { display: "flex", flexDirection: "row", flexWrap: "wrap", gap: 2, alignItems: "flex-start", fontStyle: "italic", fontSize: "0.8rem", color: "text.secondary" }, children: [
|
|
8037
|
+
/* @__PURE__ */ T(Ie, { children: [
|
|
8038
8038
|
e.waitingDetails.status,
|
|
8039
8039
|
": "
|
|
8040
8040
|
] }),
|
|
@@ -8051,7 +8051,7 @@ ${y.content}
|
|
|
8051
8051
|
!e.waitingDetails.isTimerRunning && /* @__PURE__ */ t(Od, { sx: { fontSize: "1.2rem", color: "secondary.light", top: "4px" } }),
|
|
8052
8052
|
e.waitingDetails.loadDots && /* @__PURE__ */ t(Fr, { color: r.palette.text.primary })
|
|
8053
8053
|
] }) : /* @__PURE__ */ t(Fr, { color: r.palette.text.primary });
|
|
8054
|
-
}, "WaitingPart"), qs = /* @__PURE__ */ n(() => /* @__PURE__ */
|
|
8054
|
+
}, "WaitingPart"), qs = /* @__PURE__ */ n(() => /* @__PURE__ */ T(Ee, { direction: "row", gap: 2, sx: { fontStyle: "italic", fontSize: "0.8rem", color: "text.secondary" }, children: [
|
|
8055
8055
|
/* @__PURE__ */ t(Pd, {}),
|
|
8056
8056
|
/* @__PURE__ */ t(Ie, { children: "Interação suspendida" })
|
|
8057
8057
|
] }), "SuspendedPart"), Ap = { fontSize: 10, color: "rgba(255, 255, 255, 0.7)" }, Vs = /* @__PURE__ */ n(({
|
|
@@ -8066,7 +8066,7 @@ ${y.content}
|
|
|
8066
8066
|
|
|
8067
8067
|
${((k = e.rawDetails) == null ? void 0 : k.toString()) ?? ""}
|
|
8068
8068
|
|
|
8069
|
-
\`\`\``,
|
|
8069
|
+
\`\`\``, I = /* @__PURE__ */ n((D, S) => null, "onDrawCodeBlock");
|
|
8070
8070
|
return /* @__PURE__ */ t(
|
|
8071
8071
|
Ws,
|
|
8072
8072
|
{
|
|
@@ -8076,7 +8076,7 @@ ${((k = e.rawDetails) == null ? void 0 : k.toString()) ?? ""}
|
|
|
8076
8076
|
content: b,
|
|
8077
8077
|
part: e,
|
|
8078
8078
|
preview: i,
|
|
8079
|
-
onDrawCodeBlock:
|
|
8079
|
+
onDrawCodeBlock: I,
|
|
8080
8080
|
onLinkClicked: f,
|
|
8081
8081
|
isLastInlineInGroup: d
|
|
8082
8082
|
}
|
|
@@ -8117,8 +8117,8 @@ function To(e) {
|
|
|
8117
8117
|
if (!y) continue;
|
|
8118
8118
|
const b = In(y.text).trim();
|
|
8119
8119
|
if (!b) continue;
|
|
8120
|
-
const
|
|
8121
|
-
d.push({ id: D, text: b, select:
|
|
8120
|
+
const I = In(y.select).toLowerCase() === "multi" ? "multi" : "single", k = (Array.isArray(y.options) ? y.options : []).filter((A) => typeof A == "string" && A.trim().length > 0).map((A) => A.trim()), D = In(y.id).trim() || void 0, S = zp(y, I, k.length > 0), v = S === "masked" && In(y.mask).trim() || void 0;
|
|
8121
|
+
d.push({ id: D, text: b, select: I, options: xa.includes(S) ? k : [], kind: S, mask: v });
|
|
8122
8122
|
}
|
|
8123
8123
|
return d.length === 0 ? null : { title: In(r.title).trim() || void 0, questions: d };
|
|
8124
8124
|
}
|
|
@@ -8173,7 +8173,7 @@ function Op(e) {
|
|
|
8173
8173
|
n(Op, "sentinelOf$1");
|
|
8174
8174
|
const Pp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
8175
8175
|
var H, ee, be, Fe, Je;
|
|
8176
|
-
const { agentGatewayService: i } = Qe(), [d, f] = Y(null), [s, y] = Y({}), b = at(),
|
|
8176
|
+
const { agentGatewayService: i } = Qe(), [d, f] = Y(null), [s, y] = Y({}), b = at(), I = (H = e.functionDetails) == null ? void 0 : H.id, k = Te(
|
|
8177
8177
|
() => {
|
|
8178
8178
|
var K;
|
|
8179
8179
|
return Dp((K = e.functionDetails) == null ? void 0 : K.args);
|
|
@@ -8188,21 +8188,21 @@ const Pp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8188
8188
|
"→ parsed?",
|
|
8189
8189
|
!!k
|
|
8190
8190
|
);
|
|
8191
|
-
const D = e.eventType === ve.FunctionResponse ? ((Je = e.functionDetails) == null ? void 0 : Je.response) ?? null : null, S = d ?? D, v = S != null || !
|
|
8191
|
+
const D = e.eventType === ve.FunctionResponse ? ((Je = e.functionDetails) == null ? void 0 : Je.response) ?? null : null, S = d ?? D, v = S != null || !I || !k;
|
|
8192
8192
|
if (!k) return null;
|
|
8193
8193
|
const { title: A, questions: p } = k, w = /* @__PURE__ */ n((K) => p[K].id || String(K), "qid"), x = r ? { maxWidth: "100%" } : { border: "1px solid", borderColor: "divider", borderRadius: 2, px: 2, py: 1.5, my: 0.5, maxWidth: "100%" };
|
|
8194
8194
|
if (v) {
|
|
8195
8195
|
if (S.indexOf("Prompt cancelado") != -1)
|
|
8196
|
-
return /* @__PURE__ */
|
|
8196
|
+
return /* @__PURE__ */ T(ot, { sx: { display: "inline-flex", backgroundColor: b.palette.background.paper, px: 2, pb: 0.5, mb: 2, borderRadius: 1, flexWrap: "nowrap", alignItems: "center" }, direction: "row", gap: 1, children: [
|
|
8197
8197
|
/* @__PURE__ */ t(ns, { sx: { display: "inline-flex", mt: 0.5 } }),
|
|
8198
8198
|
/* @__PURE__ */ t(X, { variant: "body2", sx: { display: "inline-flex", mt: 1, color: "text.secondary" }, children: "Prompt Cancelado" })
|
|
8199
8199
|
] });
|
|
8200
8200
|
const $ = Rp(S), me = $ ? null : Op(S);
|
|
8201
|
-
return /* @__PURE__ */
|
|
8201
|
+
return /* @__PURE__ */ T(R, { sx: x, children: [
|
|
8202
8202
|
A && /* @__PURE__ */ t(X, { variant: "subtitle2", sx: { mb: 1.25, fontWeight: 600 }, children: A }),
|
|
8203
8203
|
/* @__PURE__ */ t(ot, { spacing: 1.25, children: p.map((He, Oe) => {
|
|
8204
8204
|
const qe = ($ == null ? void 0 : $.find((ct) => ct.questionId === w(Oe))) ?? null, ze = (qe == null ? void 0 : qe.selected) ?? [], we = ((qe == null ? void 0 : qe.note) ?? "").trim(), et = ze.length ? ze.join(", ") : we || "—", lt = ze.length && we ? we : "", Ve = ze.length > 0 || He.options.length === 0 && !!we;
|
|
8205
|
-
return /* @__PURE__ */
|
|
8205
|
+
return /* @__PURE__ */ T(R, { children: [
|
|
8206
8206
|
/* @__PURE__ */ t(X, { variant: "body2", sx: { fontWeight: 500 }, children: He.text }),
|
|
8207
8207
|
/* @__PURE__ */ t(
|
|
8208
8208
|
X,
|
|
@@ -8212,7 +8212,7 @@ const Pp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8212
8212
|
children: et
|
|
8213
8213
|
}
|
|
8214
8214
|
),
|
|
8215
|
-
lt && /* @__PURE__ */
|
|
8215
|
+
lt && /* @__PURE__ */ T(X, { variant: "caption", sx: { fontStyle: "italic", color: "text.secondary" }, children: [
|
|
8216
8216
|
"“",
|
|
8217
8217
|
lt,
|
|
8218
8218
|
"”"
|
|
@@ -8228,9 +8228,9 @@ const Pp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8228
8228
|
return { questionId: $.id || String(me), selected: He.selected, ...Oe ? { note: Oe } : {} };
|
|
8229
8229
|
})
|
|
8230
8230
|
}), "buildPayload"), B = /* @__PURE__ */ n((K = s) => {
|
|
8231
|
-
if (!
|
|
8231
|
+
if (!I) return;
|
|
8232
8232
|
const $ = j(K);
|
|
8233
|
-
f($), i.answerHumanTool(
|
|
8233
|
+
f($), i.answerHumanTool(I, $);
|
|
8234
8234
|
}, "submit"), G = /* @__PURE__ */ n((K, $) => {
|
|
8235
8235
|
const me = g(K), He = me.selected[0] === $ ? [] : [$], Oe = { ...s, [K]: { ...me, selected: He } };
|
|
8236
8236
|
if (c && He.length > 0) {
|
|
@@ -8246,9 +8246,9 @@ const Pp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8246
8246
|
}, "setNote"), U = /* @__PURE__ */ n((K, $) => {
|
|
8247
8247
|
y({ ...s, [K]: { ...g(K), selected: $ ? [$] : [] } });
|
|
8248
8248
|
}, "setValue"), W = /* @__PURE__ */ n((K) => h(K)[0] ?? "", "valueFor");
|
|
8249
|
-
return /* @__PURE__ */
|
|
8249
|
+
return /* @__PURE__ */ T(R, { sx: x, children: [
|
|
8250
8250
|
A && /* @__PURE__ */ t(X, { variant: "subtitle2", sx: { mb: 1.25, fontWeight: 600 }, children: A }),
|
|
8251
|
-
/* @__PURE__ */ t(ot, { spacing: 2, children: p.map((K, $) => /* @__PURE__ */
|
|
8251
|
+
/* @__PURE__ */ t(ot, { spacing: 2, children: p.map((K, $) => /* @__PURE__ */ T(R, { children: [
|
|
8252
8252
|
/* @__PURE__ */ t(X, { variant: "body2", sx: { mb: 0.75, fontWeight: 500 }, children: K.text }),
|
|
8253
8253
|
K.kind === "multi" && /* @__PURE__ */ t(Tu, { children: K.options.map((me) => /* @__PURE__ */ t(
|
|
8254
8254
|
Iu,
|
|
@@ -8277,7 +8277,7 @@ const Pp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8277
8277
|
},
|
|
8278
8278
|
me
|
|
8279
8279
|
)) }),
|
|
8280
|
-
K.kind === "dropdown" && /* @__PURE__ */
|
|
8280
|
+
K.kind === "dropdown" && /* @__PURE__ */ T(
|
|
8281
8281
|
Ir,
|
|
8282
8282
|
{
|
|
8283
8283
|
select: !0,
|
|
@@ -8350,19 +8350,19 @@ function jp(e) {
|
|
|
8350
8350
|
n(jp, "sentinelOf");
|
|
8351
8351
|
const Lp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
8352
8352
|
var g, h, M;
|
|
8353
|
-
const { agentGatewayService: i, onRequestAuth: d, renderAuthPrompt: f } = Qe(), [s, y] = Y("idle"), b = ue(null),
|
|
8353
|
+
const { agentGatewayService: i, onRequestAuth: d, renderAuthPrompt: f } = Qe(), [s, y] = Y("idle"), b = ue(null), I = (g = e.functionDetails) == null ? void 0 : g.id, k = Te(() => {
|
|
8354
8354
|
var u;
|
|
8355
8355
|
return Fp((u = e.functionDetails) == null ? void 0 : u.args);
|
|
8356
|
-
}, [(h = e.functionDetails) == null ? void 0 : h.args]), D = e.eventType === ve.FunctionResponse ? ((M = e.functionDetails) == null ? void 0 : M.response) ?? null : null, S = s === "done" || D != null || !
|
|
8356
|
+
}, [(h = e.functionDetails) == null ? void 0 : h.args]), D = e.eventType === ve.FunctionResponse ? ((M = e.functionDetails) == null ? void 0 : M.response) ?? null : null, S = s === "done" || D != null || !I, v = r ? { maxWidth: "100%", pb: 2 } : { border: "1px solid", borderColor: "divider", borderRadius: 2, px: 2, py: 1.5, my: 0.5, maxWidth: "100%" };
|
|
8357
8357
|
if (S) {
|
|
8358
8358
|
const u = s === "done" ? null : jp(D);
|
|
8359
8359
|
return /* @__PURE__ */ t(R, { sx: v, children: /* @__PURE__ */ t(X, { variant: "body2", sx: { color: "text.secondary" }, children: u ?? "✓ Conectado" }) });
|
|
8360
8360
|
}
|
|
8361
8361
|
const A = /* @__PURE__ */ n((u) => {
|
|
8362
|
-
if (
|
|
8362
|
+
if (I) {
|
|
8363
8363
|
b.current = u;
|
|
8364
8364
|
try {
|
|
8365
|
-
i.answerHumanTool(
|
|
8365
|
+
i.answerHumanTool(I, u), y("done");
|
|
8366
8366
|
} catch {
|
|
8367
8367
|
y("failed");
|
|
8368
8368
|
}
|
|
@@ -8370,7 +8370,7 @@ const Lp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8370
8370
|
}, "deliverToken"), p = /* @__PURE__ */ n(() => {
|
|
8371
8371
|
b.current && A(b.current);
|
|
8372
8372
|
}, "retryDeliver"), w = /* @__PURE__ */ n(() => y("idle"), "cancel"), x = /* @__PURE__ */ n(async () => {
|
|
8373
|
-
if (!(!
|
|
8373
|
+
if (!(!I || !d)) {
|
|
8374
8374
|
y("pending");
|
|
8375
8375
|
try {
|
|
8376
8376
|
const u = await d();
|
|
@@ -8380,15 +8380,15 @@ const Lp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8380
8380
|
}
|
|
8381
8381
|
}
|
|
8382
8382
|
}, "handleSignIn");
|
|
8383
|
-
return f ? /* @__PURE__ */
|
|
8384
|
-
s === "failed" && /* @__PURE__ */
|
|
8383
|
+
return f ? /* @__PURE__ */ T(R, { sx: v, children: [
|
|
8384
|
+
s === "failed" && /* @__PURE__ */ T(ot, { direction: "row", spacing: 1, alignItems: "center", sx: { mb: 1 }, children: [
|
|
8385
8385
|
/* @__PURE__ */ t(X, { variant: "caption", sx: { color: "error.main" }, children: "Login concluído, mas a resposta não chegou ao agente." }),
|
|
8386
8386
|
/* @__PURE__ */ t(Zt, { size: "small", onClick: p, sx: { textTransform: "none", fontSize: 12 }, children: "tentar novamente" })
|
|
8387
8387
|
] }),
|
|
8388
8388
|
f({ reason: k, onToken: A, onCancel: w })
|
|
8389
|
-
] }) : /* @__PURE__ */
|
|
8389
|
+
] }) : /* @__PURE__ */ T(R, { sx: v, children: [
|
|
8390
8390
|
/* @__PURE__ */ t(X, { variant: "body2", sx: { mb: 1.25 }, children: k || "Faça login para continuar." }),
|
|
8391
|
-
d ? /* @__PURE__ */
|
|
8391
|
+
d ? /* @__PURE__ */ T(ot, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
8392
8392
|
/* @__PURE__ */ t(
|
|
8393
8393
|
Zt,
|
|
8394
8394
|
{
|
|
@@ -8410,7 +8410,7 @@ const Lp = /* @__PURE__ */ n(({ part: e, embedded: r = !1 }) => {
|
|
|
8410
8410
|
children: s === "pending" ? "entrando…" : "entrar"
|
|
8411
8411
|
}
|
|
8412
8412
|
),
|
|
8413
|
-
s === "failed" && /* @__PURE__ */
|
|
8413
|
+
s === "failed" && /* @__PURE__ */ T(ot, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
8414
8414
|
/* @__PURE__ */ t(X, { variant: "caption", sx: { color: "error.main" }, children: b.current ? "Login concluído, mas a resposta não chegou ao agente." : "Não foi possível entrar — tente novamente." }),
|
|
8415
8415
|
b.current && /* @__PURE__ */ t(Zt, { size: "small", onClick: p, sx: { textTransform: "none", fontSize: 12 }, children: "tentar novamente" })
|
|
8416
8416
|
] })
|
|
@@ -8483,10 +8483,10 @@ function $p() {
|
|
|
8483
8483
|
if (!s) return;
|
|
8484
8484
|
const y = Ao(s), b = d.get(y);
|
|
8485
8485
|
if (b) return b;
|
|
8486
|
-
let
|
|
8486
|
+
let I, k = -1;
|
|
8487
8487
|
for (const [D, S] of d)
|
|
8488
|
-
(y.endsWith("-" + D) || y.endsWith("_" + D)) && D.length > k && (
|
|
8489
|
-
return
|
|
8488
|
+
(y.endsWith("-" + D) || y.endsWith("_" + D)) && D.length > k && (I = S, k = D.length);
|
|
8489
|
+
return I;
|
|
8490
8490
|
},
|
|
8491
8491
|
resolveAskUser(s) {
|
|
8492
8492
|
if (s)
|
|
@@ -8503,7 +8503,7 @@ function $p() {
|
|
|
8503
8503
|
n($p, "createUiToolRegistry");
|
|
8504
8504
|
const $r = /* @__PURE__ */ n((e) => {
|
|
8505
8505
|
var S, v;
|
|
8506
|
-
const { part: r, message: i, onGoing: d = !1, preview: f = !1, embedded: s } = e, y = en(bn), b = r.functionDetails,
|
|
8506
|
+
const { part: r, message: i, onGoing: d = !1, preview: f = !1, embedded: s } = e, y = en(bn), b = r.functionDetails, I = xp(b), k = St(), D = (S = y == null ? void 0 : y.uiTools) == null ? void 0 : S.resolveAskUser(I);
|
|
8507
8507
|
if (D) {
|
|
8508
8508
|
const A = D.parse ? D.parse(b == null ? void 0 : b.args) : Kr(b == null ? void 0 : b.args), p = {
|
|
8509
8509
|
name: D.name,
|
|
@@ -8524,7 +8524,7 @@ const $r = /* @__PURE__ */ n((e) => {
|
|
|
8524
8524
|
}, w = (b == null ? void 0 : b.status) === "Done", x = (v = b == null ? void 0 : b.response) == null ? void 0 : v.toString();
|
|
8525
8525
|
if (!s && w) {
|
|
8526
8526
|
if ((x == null ? void 0 : x.indexOf("Prompt cancelado")) != -1)
|
|
8527
|
-
return /* @__PURE__ */
|
|
8527
|
+
return /* @__PURE__ */ T(Ee, { sx: { display: "inline-flex", backgroundColor: k.palette.background.paper, px: 2, pb: 0.5, mb: 2, borderRadius: 1, flexWrap: "nowrap", alignItems: "center" }, direction: "row", gap: 1, children: [
|
|
8528
8528
|
/* @__PURE__ */ t(ns, { sx: { display: "inline-flex", mt: 0.5 } }),
|
|
8529
8529
|
/* @__PURE__ */ t(Ie, { variant: "body2", sx: { display: "inline-flex", mt: 1, color: "text.secondary" }, children: "Prompt Cancelado" })
|
|
8530
8530
|
] });
|
|
@@ -8533,7 +8533,7 @@ const $r = /* @__PURE__ */ n((e) => {
|
|
|
8533
8533
|
}
|
|
8534
8534
|
return /* @__PURE__ */ t(re, { children: D.question(A ?? {}, p) });
|
|
8535
8535
|
}
|
|
8536
|
-
return
|
|
8536
|
+
return I === Ls ? /* @__PURE__ */ t(Lp, { part: r, embedded: s }) : /* @__PURE__ */ t(Pp, { part: r, embedded: s });
|
|
8537
8537
|
}, "AskUserDispatcher"), Gn = mt.createContext(null), Bp = /* @__PURE__ */ n(({ value: e, children: r }) => /* @__PURE__ */ t(Gn.Provider, { value: e, children: r }), "EnvironmentProvider");
|
|
8538
8538
|
function Us() {
|
|
8539
8539
|
const e = mt.useContext(Gn);
|
|
@@ -8557,14 +8557,14 @@ const Gs = /* @__PURE__ */ n(({ children: e }) => {
|
|
|
8557
8557
|
return /* @__PURE__ */ t(Gn.Provider, { value: i, children: e });
|
|
8558
8558
|
}, "InertEnvironmentProvider"), Js = /* @__PURE__ */ n((e) => {
|
|
8559
8559
|
var A;
|
|
8560
|
-
const { part: r, message: i, onGoing: d, preview: f } = e, s = en(bn), y = Ks(), b = r.functionDetails,
|
|
8561
|
-
if (!
|
|
8560
|
+
const { part: r, message: i, onGoing: d, preview: f } = e, s = en(bn), y = Ks(), b = r.functionDetails, I = (A = s == null ? void 0 : s.uiTools) == null ? void 0 : A.resolve(b == null ? void 0 : b.name);
|
|
8561
|
+
if (!I) return /* @__PURE__ */ t(jr, { ...e });
|
|
8562
8562
|
const k = (b == null ? void 0 : b.id) ?? "", D = va(b == null ? void 0 : b.clientOutput);
|
|
8563
|
-
if (
|
|
8563
|
+
if (I.kind === "action")
|
|
8564
8564
|
return /* @__PURE__ */ t(
|
|
8565
8565
|
Wp,
|
|
8566
8566
|
{
|
|
8567
|
-
entry:
|
|
8567
|
+
entry: I,
|
|
8568
8568
|
callId: k,
|
|
8569
8569
|
rawArgs: b == null ? void 0 : b.args,
|
|
8570
8570
|
response: b == null ? void 0 : b.response,
|
|
@@ -8576,11 +8576,11 @@ const Gs = /* @__PURE__ */ n(({ children: e }) => {
|
|
|
8576
8576
|
env: y
|
|
8577
8577
|
}
|
|
8578
8578
|
);
|
|
8579
|
-
if (
|
|
8580
|
-
const S =
|
|
8579
|
+
if (I.kind !== "render") return /* @__PURE__ */ t(jr, { ...e });
|
|
8580
|
+
const S = I.parse ? I.parse(b == null ? void 0 : b.args) : Kr(b == null ? void 0 : b.args);
|
|
8581
8581
|
if (S == null) return null;
|
|
8582
8582
|
const v = {
|
|
8583
|
-
name:
|
|
8583
|
+
name: I.name,
|
|
8584
8584
|
callId: k,
|
|
8585
8585
|
response: b == null ? void 0 : b.response,
|
|
8586
8586
|
clientOutput: D,
|
|
@@ -8596,7 +8596,7 @@ const Gs = /* @__PURE__ */ n(({ children: e }) => {
|
|
|
8596
8596
|
);
|
|
8597
8597
|
}, "answer")
|
|
8598
8598
|
};
|
|
8599
|
-
return /* @__PURE__ */ t(ce, { "data-ui-tool-content": "", children:
|
|
8599
|
+
return /* @__PURE__ */ t(ce, { "data-ui-tool-content": "", children: I.render(S, v) });
|
|
8600
8600
|
}, "UiToolDispatcher"), Wp = /* @__PURE__ */ n(({
|
|
8601
8601
|
entry: e,
|
|
8602
8602
|
callId: r,
|
|
@@ -8606,7 +8606,7 @@ const Gs = /* @__PURE__ */ n(({ children: e }) => {
|
|
|
8606
8606
|
parts: s,
|
|
8607
8607
|
message: y,
|
|
8608
8608
|
onGoing: b,
|
|
8609
|
-
preview:
|
|
8609
|
+
preview: I,
|
|
8610
8610
|
env: k
|
|
8611
8611
|
}) => {
|
|
8612
8612
|
const D = ue(null), [S, v] = Y(null);
|
|
@@ -8626,7 +8626,7 @@ const Gs = /* @__PURE__ */ n(({ children: e }) => {
|
|
|
8626
8626
|
parts: s,
|
|
8627
8627
|
message: y,
|
|
8628
8628
|
onGoing: b,
|
|
8629
|
-
preview:
|
|
8629
|
+
preview: I,
|
|
8630
8630
|
env: k,
|
|
8631
8631
|
answer: /* @__PURE__ */ n(() => {
|
|
8632
8632
|
}, "answer")
|
|
@@ -8699,10 +8699,10 @@ const Nn = mt.memo((e) => {
|
|
|
8699
8699
|
const d = ((f = r == null ? void 0 : r.partRenderers) == null ? void 0 : f[i]) ?? wa[i];
|
|
8700
8700
|
return /* @__PURE__ */ t(d, { ...e });
|
|
8701
8701
|
}, (e, r) => {
|
|
8702
|
-
var i, d, f, s, y, b,
|
|
8703
|
-
return !(e.part.id !== r.part.id || (((i = e.part.textDetails) == null ? void 0 : i.version) ?? 0) < (((d = r.part.textDetails) == null ? void 0 : d.version) ?? 0) || e.part.text !== r.part.text || e.part.eventType !== r.part.eventType || e.part.partial !== r.part.partial || ((f = e.part.functionDetails) == null ? void 0 : f.text) !== ((s = r.part.functionDetails) == null ? void 0 : s.text) || ((y = e.part.functionDetails) == null ? void 0 : y.args) !== ((b = r.part.functionDetails) == null ? void 0 : b.args) || ((
|
|
8702
|
+
var i, d, f, s, y, b, I, k, D, S, v, A;
|
|
8703
|
+
return !(e.part.id !== r.part.id || (((i = e.part.textDetails) == null ? void 0 : i.version) ?? 0) < (((d = r.part.textDetails) == null ? void 0 : d.version) ?? 0) || e.part.text !== r.part.text || e.part.eventType !== r.part.eventType || e.part.partial !== r.part.partial || ((f = e.part.functionDetails) == null ? void 0 : f.text) !== ((s = r.part.functionDetails) == null ? void 0 : s.text) || ((y = e.part.functionDetails) == null ? void 0 : y.args) !== ((b = r.part.functionDetails) == null ? void 0 : b.args) || ((I = e.part.functionDetails) == null ? void 0 : I.response) !== ((k = r.part.functionDetails) == null ? void 0 : k.response) || ((D = e.part.waitingDetails) == null ? void 0 : D.status) !== ((S = r.part.waitingDetails) == null ? void 0 : S.status) || ((v = e.part.waitingDetails) == null ? void 0 : v.stopPoint) !== ((A = r.part.waitingDetails) == null ? void 0 : A.stopPoint) || e.message.turn_complete !== r.message.turn_complete || e.message.asyncFinalResponse !== r.message.asyncFinalResponse || e.isLastInlineInGroup !== r.isLastInlineInGroup || e.preview !== r.preview || e.friendlyMode !== r.friendlyMode);
|
|
8704
8704
|
}), Np = {
|
|
8705
|
-
luzes: /* @__PURE__ */
|
|
8705
|
+
luzes: /* @__PURE__ */ T(re, { children: [
|
|
8706
8706
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "5", r: "2", fill: "currentColor", stroke: "none" }),
|
|
8707
8707
|
/* @__PURE__ */ t("circle", { cx: "6.5", cy: "5", r: "1.1", fill: "currentColor", stroke: "none", opacity: ".35" }),
|
|
8708
8708
|
/* @__PURE__ */ t("circle", { cx: "17.5", cy: "5", r: "1.1", fill: "currentColor", stroke: "none", opacity: ".35" }),
|
|
@@ -8713,14 +8713,14 @@ const Nn = mt.memo((e) => {
|
|
|
8713
8713
|
/* @__PURE__ */ t("circle", { cx: "6.5", cy: "19", r: "1.1", fill: "currentColor", stroke: "none", opacity: ".2" }),
|
|
8714
8714
|
/* @__PURE__ */ t("circle", { cx: "17.5", cy: "19", r: "1.1", fill: "currentColor", stroke: "none", opacity: ".2" })
|
|
8715
8715
|
] }),
|
|
8716
|
-
pista: /* @__PURE__ */
|
|
8716
|
+
pista: /* @__PURE__ */ T(re, { children: [
|
|
8717
8717
|
/* @__PURE__ */ t("path", { d: "M9.5 4.5 5 19.5" }),
|
|
8718
8718
|
/* @__PURE__ */ t("path", { d: "M14.5 4.5 19 19.5" }),
|
|
8719
8719
|
/* @__PURE__ */ t("path", { d: "M12 6v2.4" }),
|
|
8720
8720
|
/* @__PURE__ */ t("path", { d: "M12 11v2.6" }),
|
|
8721
8721
|
/* @__PURE__ */ t("path", { d: "M12 16.4V19" })
|
|
8722
8722
|
] }),
|
|
8723
|
-
marshaller: /* @__PURE__ */
|
|
8723
|
+
marshaller: /* @__PURE__ */ T(re, { children: [
|
|
8724
8724
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "5.4", r: "2.2" }),
|
|
8725
8725
|
/* @__PURE__ */ t("path", { d: "M12 9.5v6" }),
|
|
8726
8726
|
/* @__PURE__ */ t("path", { d: "M12 10.5 6.8 7.6" }),
|
|
@@ -8730,19 +8730,19 @@ const Nn = mt.memo((e) => {
|
|
|
8730
8730
|
/* @__PURE__ */ t("path", { d: "M12 15.5 9 20.5" }),
|
|
8731
8731
|
/* @__PURE__ */ t("path", { d: "M12 15.5l3 5" })
|
|
8732
8732
|
] }),
|
|
8733
|
-
radar: /* @__PURE__ */
|
|
8733
|
+
radar: /* @__PURE__ */ T(re, { children: [
|
|
8734
8734
|
/* @__PURE__ */ t("path", { d: "M12 12 19 6.5" }),
|
|
8735
8735
|
/* @__PURE__ */ t("path", { d: "M21 12a9 9 0 1 1-2.6-6.4", opacity: ".9" }),
|
|
8736
8736
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "1.4", fill: "currentColor", stroke: "none" }),
|
|
8737
8737
|
/* @__PURE__ */ t("circle", { cx: "16.2", cy: "14.8", r: "1.2", fill: "currentColor", stroke: "none", opacity: ".6" }),
|
|
8738
8738
|
/* @__PURE__ */ t("path", { d: "M12 12a4.5 4.5 0 0 1 4.5 4.5", opacity: ".45" })
|
|
8739
8739
|
] }),
|
|
8740
|
-
spark: /* @__PURE__ */
|
|
8740
|
+
spark: /* @__PURE__ */ T(re, { children: [
|
|
8741
8741
|
/* @__PURE__ */ t("path", { d: "M12 3.5c.7 3.9 2.6 5.8 6.5 6.5-3.9.7-5.8 2.6-6.5 6.5-.7-3.9-2.6-5.8-6.5-6.5 3.9-.7 5.8-2.6 6.5-6.5Z" }),
|
|
8742
8742
|
/* @__PURE__ */ t("circle", { cx: "18.5", cy: "18.5", r: "1.2", fill: "currentColor", stroke: "none" }),
|
|
8743
8743
|
/* @__PURE__ */ t("circle", { cx: "5.5", cy: "18.8", r: ".8", fill: "currentColor", stroke: "none", opacity: ".5" })
|
|
8744
8744
|
] }),
|
|
8745
|
-
chevrons: /* @__PURE__ */
|
|
8745
|
+
chevrons: /* @__PURE__ */ T(re, { children: [
|
|
8746
8746
|
/* @__PURE__ */ t("path", { d: "M6 17.5 12 20.5 18 17.5", opacity: ".4" }),
|
|
8747
8747
|
/* @__PURE__ */ t("path", { d: "M6 11.5 12 14.5 18 11.5", opacity: ".7" }),
|
|
8748
8748
|
/* @__PURE__ */ t("path", { d: "M6 5.5 12 8.5 18 5.5" })
|
|
@@ -8806,32 +8806,32 @@ function Up({
|
|
|
8806
8806
|
}
|
|
8807
8807
|
n(Up, "AgentAvatar");
|
|
8808
8808
|
const Kp = {
|
|
8809
|
-
silhueta: /* @__PURE__ */
|
|
8809
|
+
silhueta: /* @__PURE__ */ T(re, { children: [
|
|
8810
8810
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "8.2", r: "3.4" }),
|
|
8811
8811
|
/* @__PURE__ */ t("path", { d: "M5 19.5a7 7 0 0 1 14 0" })
|
|
8812
8812
|
] }),
|
|
8813
|
-
tracejada: /* @__PURE__ */
|
|
8813
|
+
tracejada: /* @__PURE__ */ T(re, { children: [
|
|
8814
8814
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "8.2", r: "3.4", strokeDasharray: "2.4 2.6" }),
|
|
8815
8815
|
/* @__PURE__ */ t("path", { d: "M5 19.5a7 7 0 0 1 14 0", strokeDasharray: "2.4 2.6" })
|
|
8816
8816
|
] }),
|
|
8817
|
-
interrogacao: /* @__PURE__ */
|
|
8817
|
+
interrogacao: /* @__PURE__ */ T(re, { children: [
|
|
8818
8818
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "8.2", r: "3.4" }),
|
|
8819
8819
|
/* @__PURE__ */ t("path", { d: "M5 19.5a7 7 0 0 1 14 0" }),
|
|
8820
8820
|
/* @__PURE__ */ t("path", { d: "M17.6 4.2a1.9 1.9 0 1 1 2.6 1.8c-.7.3-1 .7-1 1.4" }),
|
|
8821
8821
|
/* @__PURE__ */ t("circle", { cx: "19.2", cy: "9.6", r: ".7", fill: "currentColor", stroke: "none" })
|
|
8822
8822
|
] }),
|
|
8823
|
-
cracha: /* @__PURE__ */
|
|
8823
|
+
cracha: /* @__PURE__ */ T(re, { children: [
|
|
8824
8824
|
/* @__PURE__ */ t("rect", { x: "6", y: "6.5", width: "12", height: "14", rx: "2" }),
|
|
8825
8825
|
/* @__PURE__ */ t("path", { d: "M10 6.5V5a2 2 0 0 1 4 0v1.5" }),
|
|
8826
8826
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "11.5", r: "1.8" }),
|
|
8827
8827
|
/* @__PURE__ */ t("path", { d: "M9 17a3.2 3.2 0 0 1 6 0" })
|
|
8828
8828
|
] }),
|
|
8829
|
-
login: /* @__PURE__ */
|
|
8829
|
+
login: /* @__PURE__ */ T(re, { children: [
|
|
8830
8830
|
/* @__PURE__ */ t("path", { d: "M13 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4" }),
|
|
8831
8831
|
/* @__PURE__ */ t("path", { d: "M4 12h9" }),
|
|
8832
8832
|
/* @__PURE__ */ t("path", { d: "M10 8.5 13.5 12 10 15.5" })
|
|
8833
8833
|
] }),
|
|
8834
|
-
mascara: /* @__PURE__ */
|
|
8834
|
+
mascara: /* @__PURE__ */ T(re, { children: [
|
|
8835
8835
|
/* @__PURE__ */ t("path", { d: "M4 11.5 5.6 5.8A1.8 1.8 0 0 1 7.9 4.6l.9.3a8 8 0 0 0 6.4 0l.9-.3a1.8 1.8 0 0 1 2.3 1.2L20 11.5" }),
|
|
8836
8836
|
/* @__PURE__ */ t("path", { d: "M3 11.5h18" }),
|
|
8837
8837
|
/* @__PURE__ */ t("circle", { cx: "7.8", cy: "15.5", r: "2.6" }),
|
|
@@ -8907,8 +8907,8 @@ n(Xp, "defaultFormatTimestamp");
|
|
|
8907
8907
|
const Xs = /* @__PURE__ */ n(({ isUser: e, message: r, tone: i }) => {
|
|
8908
8908
|
const { showPersona: d, formatTimestamp: f, resolvePersona: s } = Qe();
|
|
8909
8909
|
if (!d) return null;
|
|
8910
|
-
const y = i === "chrome", b = (s == null ? void 0 : s({ isUser: e, message: r })) ?? { label: e ? "Você" : "Agente", initials: e ? "V" : "A" },
|
|
8911
|
-
return /* @__PURE__ */
|
|
8910
|
+
const y = i === "chrome", b = (s == null ? void 0 : s({ isUser: e, message: r })) ?? { label: e ? "Você" : "Agente", initials: e ? "V" : "A" }, I = b.initials ?? (b.label.slice(0, 1).toUpperCase() || "·"), k = (f ?? Xp)(r.created), D = e && b.picture !== "guest";
|
|
8911
|
+
return /* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 1, mt: 1.5, mb: 0.5 }, children: [
|
|
8912
8912
|
e ? D ? /* @__PURE__ */ t(
|
|
8913
8913
|
yu,
|
|
8914
8914
|
{
|
|
@@ -8922,10 +8922,10 @@ const Xs = /* @__PURE__ */ n(({ isUser: e, message: r, tone: i }) => {
|
|
|
8922
8922
|
bgcolor: y ? "#3A3935" : "text.primary",
|
|
8923
8923
|
color: y ? "#fff" : "primary.main"
|
|
8924
8924
|
},
|
|
8925
|
-
children:
|
|
8925
|
+
children: I
|
|
8926
8926
|
}
|
|
8927
8927
|
) : /* @__PURE__ */ t(Yp, { variant: "interrogacao", size: 32, tone: "revertedInk" }) : /* @__PURE__ */ t(Up, { variant: "marca", tone: "chrome" }),
|
|
8928
|
-
/* @__PURE__ */
|
|
8928
|
+
/* @__PURE__ */ T(
|
|
8929
8929
|
R,
|
|
8930
8930
|
{
|
|
8931
8931
|
component: "span",
|
|
@@ -9018,7 +9018,7 @@ function nh(e, r) {
|
|
|
9018
9018
|
});
|
|
9019
9019
|
}
|
|
9020
9020
|
n(nh, "hideUnfinishedUiParts");
|
|
9021
|
-
const ka = /* @__PURE__ */ n(({ message: e, showSubAgents: r, onGoing: i, container: d, preview: f, onLinkClicked: s, appendWaitingPart: y, messagesRef: b, isConnectionOpen:
|
|
9021
|
+
const ka = /* @__PURE__ */ n(({ message: e, showSubAgents: r, onGoing: i, container: d, preview: f, onLinkClicked: s, appendWaitingPart: y, messagesRef: b, isConnectionOpen: I, friendlyMode: k = !1 }) => {
|
|
9022
9022
|
[...pe((U) => U.subAgents).values()];
|
|
9023
9023
|
const { showToolCalls: S, showPersona: v } = Qe(), A = at(), p = ue(null), [w, x] = Y(!1), g = ue(null);
|
|
9024
9024
|
g.current == null && (g.current = new ta());
|
|
@@ -9035,7 +9035,7 @@ const ka = /* @__PURE__ */ n(({ message: e, showSubAgents: r, onGoing: i, contai
|
|
|
9035
9035
|
}, [A.breakpoints.values.md]);
|
|
9036
9036
|
const M = e.isSuspended === !0, u = (e.parts ?? []).filter((U) => U.eventType !== ve.UserAnswer).length;
|
|
9037
9037
|
let E = null, c = null;
|
|
9038
|
-
if (M ? E = st.createSuspended() : E = st.createWaiting(
|
|
9038
|
+
if (M ? E = st.createSuspended() : E = st.createWaiting(I && u == 0, !1, "", /* @__PURE__ */ new Date()), y && (!e.parts || e.parts.length == 1) && (c = st.fromText("Planejando próximos passos", "system", "planningPart")), !e.asyncFinalResponse && e.parts.length > 0) {
|
|
9039
9039
|
const U = e.parts[e.parts.length - 1];
|
|
9040
9040
|
U.waitingDetails && (U.waitingDetails.loadDots = !0);
|
|
9041
9041
|
}
|
|
@@ -9086,9 +9086,9 @@ const ka = /* @__PURE__ */ n(({ message: e, showSubAgents: r, onGoing: i, contai
|
|
|
9086
9086
|
} else
|
|
9087
9087
|
return null;
|
|
9088
9088
|
}, "getMessagePart");
|
|
9089
|
-
return /* @__PURE__ */ t(Sa.Provider, { value: h, children: /* @__PURE__ */
|
|
9089
|
+
return /* @__PURE__ */ t(Sa.Provider, { value: h, children: /* @__PURE__ */ T(ot, { children: [
|
|
9090
9090
|
/* @__PURE__ */ t(Xs, { isUser: !1, message: e, tone: "light" }),
|
|
9091
|
-
/* @__PURE__ */
|
|
9091
|
+
/* @__PURE__ */ T(
|
|
9092
9092
|
"div",
|
|
9093
9093
|
{
|
|
9094
9094
|
id: `container-iteraction_${e.interactionId}_${d}`,
|
|
@@ -9172,7 +9172,7 @@ function oh(e) {
|
|
|
9172
9172
|
}
|
|
9173
9173
|
n(oh, "statusColor");
|
|
9174
9174
|
const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) => {
|
|
9175
|
-
const [d, f] = Y(r ? 1 : 0), [s, y] = Y(null), b = St(),
|
|
9175
|
+
const [d, f] = Y(r ? 1 : 0), [s, y] = Y(null), b = St(), I = ue(null), k = !e.completed, D = pe((c) => c.lastToolEvent);
|
|
9176
9176
|
oe(() => {
|
|
9177
9177
|
if ((D == null ? void 0 : D.eventName) === "todolistUpdated" && D.subAgentId === e.id)
|
|
9178
9178
|
try {
|
|
@@ -9182,11 +9182,11 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9182
9182
|
}
|
|
9183
9183
|
(D == null ? void 0 : D.eventName) === "todolistUpdated" && (D == null ? void 0 : D.eventData) !== "" && !k && D.subAgentId === e.id && y(null);
|
|
9184
9184
|
}, [D, e.id]), oe(() => {
|
|
9185
|
-
d > 0 &&
|
|
9185
|
+
d > 0 && I.current && I.current.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
9186
9186
|
}, [d]);
|
|
9187
9187
|
const S = /* @__PURE__ */ n(() => {
|
|
9188
9188
|
f((c) => c == 2 ? 0 : c + 1);
|
|
9189
|
-
}, "cycleLevel"), v = (s == null ? void 0 : s.items.filter((c) => c.status === "completed").length) ?? 0, A = (s == null ? void 0 : s.items.length) ?? 0, p = A > 0 ? v / A * 100 : 0, x = `${v > 0 ? `${v} de ${A} completos` : "Iniciando..."} - ${p.toFixed(2)}%`, g = `${p.toFixed(2)}%`, h = s != null && s.currentWorkingItemKey ? s.items.find((c) => c.key === s.currentWorkingItemKey) : null, M = (s == null ? void 0 : s.items.slice(0, _o)) ?? [], u = ((s == null ? void 0 : s.items.length) ?? 0) > _o, E = /* @__PURE__ */ n((c) => /* @__PURE__ */ t(Ee, { gap: 0.5, sx: { py: 0.5 }, children: c.map((_) => /* @__PURE__ */
|
|
9189
|
+
}, "cycleLevel"), v = (s == null ? void 0 : s.items.filter((c) => c.status === "completed").length) ?? 0, A = (s == null ? void 0 : s.items.length) ?? 0, p = A > 0 ? v / A * 100 : 0, x = `${v > 0 ? `${v} de ${A} completos` : "Iniciando..."} - ${p.toFixed(2)}%`, g = `${p.toFixed(2)}%`, h = s != null && s.currentWorkingItemKey ? s.items.find((c) => c.key === s.currentWorkingItemKey) : null, M = (s == null ? void 0 : s.items.slice(0, _o)) ?? [], u = ((s == null ? void 0 : s.items.length) ?? 0) > _o, E = /* @__PURE__ */ n((c) => /* @__PURE__ */ t(Ee, { gap: 0.5, sx: { py: 0.5 }, children: c.map((_) => /* @__PURE__ */ T(
|
|
9190
9190
|
ce,
|
|
9191
9191
|
{
|
|
9192
9192
|
sx: {
|
|
@@ -9198,7 +9198,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9198
9198
|
},
|
|
9199
9199
|
children: [
|
|
9200
9200
|
/* @__PURE__ */ t(ce, { sx: { mt: "1px", flexShrink: 0, color: oh(_.status) }, children: /* @__PURE__ */ t(rh, { status: _.status }) }),
|
|
9201
|
-
/* @__PURE__ */
|
|
9201
|
+
/* @__PURE__ */ T(ce, { children: [
|
|
9202
9202
|
/* @__PURE__ */ t(
|
|
9203
9203
|
Ie,
|
|
9204
9204
|
{
|
|
@@ -9225,10 +9225,10 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9225
9225
|
},
|
|
9226
9226
|
_.key
|
|
9227
9227
|
)) }), "renderTodoItems");
|
|
9228
|
-
return /* @__PURE__ */
|
|
9228
|
+
return /* @__PURE__ */ T(
|
|
9229
9229
|
ce,
|
|
9230
9230
|
{
|
|
9231
|
-
ref:
|
|
9231
|
+
ref: I,
|
|
9232
9232
|
"data-subagent-id": e.id,
|
|
9233
9233
|
sx: {
|
|
9234
9234
|
border: `1px solid ${k ? b.palette.primary.dark : b.palette.divider}`,
|
|
@@ -9289,13 +9289,13 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9289
9289
|
overflow: "hidden",
|
|
9290
9290
|
minWidth: "100%"
|
|
9291
9291
|
},
|
|
9292
|
-
children: /* @__PURE__ */
|
|
9293
|
-
/* @__PURE__ */
|
|
9292
|
+
children: /* @__PURE__ */ T(Ee, { direction: "row", alignItems: "center", spacing: 1.5, sx: { display: "inline-flex", flexWrap: "nowrap", alignItems: "center", overflow: "hidden", zIndex: 1, width: "100%", flex: 1 }, children: [
|
|
9293
|
+
/* @__PURE__ */ T(Ee, { direction: "row", sx: { alignItems: "center", display: "inline-flex", minWidth: d === 0 ? "22%" : "60%" }, gap: 1, children: [
|
|
9294
9294
|
!r && /* @__PURE__ */ t(jd, { sx: { fontSize: 18, flexShrink: 0, color: k ? b.palette.primary.main : b.palette.success.main } }),
|
|
9295
9295
|
k ? /* @__PURE__ */ t(Ee, { direction: "row", alignItems: "center", spacing: 0.5, children: /* @__PURE__ */ t(Ld, { sx: { fontSize: 16, color: b.palette.primary.main } }) }) : /* @__PURE__ */ t(Yn, { sx: { fontSize: 14, color: b.palette.success.main } }),
|
|
9296
9296
|
/* @__PURE__ */ t(Ie, { variant: "body1", sx: { overflow: "hidden", textAlign: "left", fontWeight: 500, fontSize: "0.85rem", whiteSpace: "nowrap" }, children: e.name ?? e.id })
|
|
9297
9297
|
] }),
|
|
9298
|
-
/* @__PURE__ */ t(ce, { onClick: S, sx: { display: "inline-flex", alignItems: "center", justifyContent: "start", minWidth: d === 0 ? "60%" : r ? "40%" : "25%", minHeight: "25px" }, children: s && A > 0 && /* @__PURE__ */
|
|
9298
|
+
/* @__PURE__ */ t(ce, { onClick: S, sx: { display: "inline-flex", alignItems: "center", justifyContent: "start", minWidth: d === 0 ? "60%" : r ? "40%" : "25%", minHeight: "25px" }, children: s && A > 0 && /* @__PURE__ */ T(
|
|
9299
9299
|
Ee,
|
|
9300
9300
|
{
|
|
9301
9301
|
direction: "row",
|
|
@@ -9336,7 +9336,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9336
9336
|
]
|
|
9337
9337
|
}
|
|
9338
9338
|
) }),
|
|
9339
|
-
!r && /* @__PURE__ */
|
|
9339
|
+
!r && /* @__PURE__ */ T(Ee, { onClick: S, direction: "row", alignItems: "center", justifyContent: "end", spacing: 0, sx: { minWidth: "15%", zIndex: 1, flexShrink: 0 }, children: [
|
|
9340
9340
|
/* @__PURE__ */ t(Ie, { variant: "body2", sx: { color: "text.secondary", width: "60%", textAlign: "end" }, children: d === 0 ? "Tarefas" : d === 1 ? "+ Detalhes" : "Minimizar" }),
|
|
9341
9341
|
d === 0 ? /* @__PURE__ */ t($d, { sx: { fontSize: "18px", p: 0, m: 0 } }) : d === 1 ? /* @__PURE__ */ t(Bd, { sx: { fontSize: "18px", p: 0, m: 0 } }) : /* @__PURE__ */ t(Wd, { sx: { fontSize: "18px", p: 0, m: 0 } })
|
|
9342
9342
|
] })
|
|
@@ -9362,10 +9362,10 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9362
9362
|
children: s ? E(s.items) : /* @__PURE__ */ t(Ie, { variant: "caption", sx: { color: "text.disabled", py: 1, display: "block" }, children: "No tasks yet" })
|
|
9363
9363
|
}
|
|
9364
9364
|
) }),
|
|
9365
|
-
/* @__PURE__ */ t(_r, { in: d === 2, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */
|
|
9366
|
-
s && s.items.length > 0 && /* @__PURE__ */
|
|
9365
|
+
/* @__PURE__ */ t(_r, { in: d === 2, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ T(ce, { sx: { borderTop: `1px solid ${b.palette.divider}` }, children: [
|
|
9366
|
+
s && s.items.length > 0 && /* @__PURE__ */ T(ce, { sx: { px: 2, pb: 0.5, maxHeight: "160px", overflowY: "auto" }, children: [
|
|
9367
9367
|
E(M),
|
|
9368
|
-
u && /* @__PURE__ */
|
|
9368
|
+
u && /* @__PURE__ */ T(Ie, { variant: "caption", sx: { color: "text.disabled", fontSize: "0.7rem", pl: 2.5 }, children: [
|
|
9369
9369
|
"+",
|
|
9370
9370
|
s.items.length - _o,
|
|
9371
9371
|
" more"
|
|
@@ -9404,7 +9404,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9404
9404
|
);
|
|
9405
9405
|
}, "SubAgentBox"), ih = /* @__PURE__ */ n(({ message: e, onLinkClicked: r }) => {
|
|
9406
9406
|
var u, E;
|
|
9407
|
-
const [i, d] = Y(null), [f, s] = Y(!1), { onRenderPrompt: y, userMessageRenderer: b, showPersona:
|
|
9407
|
+
const [i, d] = Y(null), [f, s] = Y(!1), { onRenderPrompt: y, userMessageRenderer: b, showPersona: I } = Qe(), k = e.parts.filter((c) => c.eventType === ve.UserAnswer), D = at(), S = 20;
|
|
9408
9408
|
let v = e.parts.some((c) => {
|
|
9409
9409
|
var _;
|
|
9410
9410
|
return (_ = c.thoughtDetails) == null ? void 0 : _.text;
|
|
@@ -9444,9 +9444,9 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9444
9444
|
---
|
|
9445
9445
|
|
|
9446
9446
|
`);
|
|
9447
|
-
return v = v && h.length > 0, A = A && M.length > 0, /* @__PURE__ */
|
|
9447
|
+
return v = v && h.length > 0, A = A && M.length > 0, /* @__PURE__ */ T(re, { children: [
|
|
9448
9448
|
(u = e.interactionQuestion) != null && u.trim() ? /* @__PURE__ */ t(Xs, { tone: "light", isUser: !0, message: e }) : null,
|
|
9449
|
-
/* @__PURE__ */ t(R, { sx: { pl:
|
|
9449
|
+
/* @__PURE__ */ t(R, { sx: { pl: I && ((E = e.interactionQuestion) != null && E.trim()) ? `${Qs}px` : 0 }, children: k.length > 0 ? k.map((c) => /* @__PURE__ */ t(
|
|
9450
9450
|
Nn,
|
|
9451
9451
|
{
|
|
9452
9452
|
part: c,
|
|
@@ -9457,7 +9457,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9457
9457
|
})
|
|
9458
9458
|
},
|
|
9459
9459
|
`${e.interactionId}-${c.id}`
|
|
9460
|
-
)) : b ? /* @__PURE__ */ t(b, { message: e, question: g ?? "" }) : /* @__PURE__ */
|
|
9460
|
+
)) : b ? /* @__PURE__ */ t(b, { message: e, question: g ?? "" }) : /* @__PURE__ */ T(
|
|
9461
9461
|
R,
|
|
9462
9462
|
{
|
|
9463
9463
|
"data-message-role": "user",
|
|
@@ -9470,7 +9470,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9470
9470
|
marginBottom: 1
|
|
9471
9471
|
},
|
|
9472
9472
|
children: [
|
|
9473
|
-
/* @__PURE__ */
|
|
9473
|
+
/* @__PURE__ */ T(R, { sx: { display: "inline-flex", px: 1, width: "100%", alignItems: "center", flexWrap: "nowrap" }, children: [
|
|
9474
9474
|
/* @__PURE__ */ t(
|
|
9475
9475
|
cs,
|
|
9476
9476
|
{
|
|
@@ -9502,7 +9502,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9502
9502
|
children: /* @__PURE__ */ t(ds, { children: g })
|
|
9503
9503
|
}
|
|
9504
9504
|
),
|
|
9505
|
-
/* @__PURE__ */
|
|
9505
|
+
/* @__PURE__ */ T(
|
|
9506
9506
|
Qi,
|
|
9507
9507
|
{
|
|
9508
9508
|
in: !0,
|
|
@@ -9615,7 +9615,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9615
9615
|
}
|
|
9616
9616
|
}
|
|
9617
9617
|
},
|
|
9618
|
-
children: /* @__PURE__ */
|
|
9618
|
+
children: /* @__PURE__ */ T(Vn, { sx: { p: 2, backgroundColor: "transparent" }, children: [
|
|
9619
9619
|
/* @__PURE__ */ t(X, { variant: "h6", sx: { color: "text.primary", mb: 2, fontWeight: "bold" }, children: "Reasoning" }),
|
|
9620
9620
|
/* @__PURE__ */ t(R, { sx: { color: "text.primary" }, children: /* @__PURE__ */ t(
|
|
9621
9621
|
Lt,
|
|
@@ -9653,7 +9653,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9653
9653
|
}
|
|
9654
9654
|
}
|
|
9655
9655
|
},
|
|
9656
|
-
children: /* @__PURE__ */
|
|
9656
|
+
children: /* @__PURE__ */ T(Vn, { sx: { p: 2, backgroundColor: "transparent" }, children: [
|
|
9657
9657
|
/* @__PURE__ */ t(X, { variant: "h6", sx: { color: "text.primary", mb: 2, fontWeight: "bold" }, children: "Server warnings" }),
|
|
9658
9658
|
/* @__PURE__ */ t(R, { sx: { color: "text.primary", fontStyle: "italic" }, children: /* @__PURE__ */ t(
|
|
9659
9659
|
Lt,
|
|
@@ -9672,7 +9672,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9672
9672
|
] });
|
|
9673
9673
|
}, "MessageUser"), el = /* @__PURE__ */ n(({ message: e, onLinkClicked: r, appendWaitingPart: i, messagesRef: d, friendlyMode: f }) => {
|
|
9674
9674
|
const { showSubAgents: s } = Qe();
|
|
9675
|
-
return /* @__PURE__ */
|
|
9675
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
9676
9676
|
/* @__PURE__ */ t(ih, { message: e, onLinkClicked: r }),
|
|
9677
9677
|
/* @__PURE__ */ t(ka, { showSubAgents: s !== !1, onGoing: !1, container: "message", isConnectionOpen: !0, message: e, onLinkClicked: r, appendWaitingPart: i, messagesRef: d, preview: !1, friendlyMode: f })
|
|
9678
9678
|
] });
|
|
@@ -9683,7 +9683,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9683
9683
|
const i = pe((V) => {
|
|
9684
9684
|
var U;
|
|
9685
9685
|
return (U = V.session) == null ? void 0 : U.id;
|
|
9686
|
-
}), d = pe((V) => V.loadingType), f = pe((V) => V.loading), s = pe((V) => V.messages), y = pe((V) => V.sendingMessage), b = pe((V) => V.currentMessage), [
|
|
9686
|
+
}), d = pe((V) => V.loadingType), f = pe((V) => V.loading), s = pe((V) => V.messages), y = pe((V) => V.sendingMessage), b = pe((V) => V.currentMessage), [I, k] = Y(null), D = ue(null), S = at(), v = S.breakpoints.down("sm");
|
|
9687
9687
|
oe(() => {
|
|
9688
9688
|
}, [v]);
|
|
9689
9689
|
const { onVisibleQuestionChange: A } = Qe(), [p, w] = Y(null), [x] = Y(null), [g, h] = Y(!1), M = _u((V) => {
|
|
@@ -9736,7 +9736,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9736
9736
|
|
|
9737
9737
|
---
|
|
9738
9738
|
|
|
9739
|
-
`), B = !!
|
|
9739
|
+
`), B = !!I, G = /* @__PURE__ */ n((V) => {
|
|
9740
9740
|
k(V.currentTarget);
|
|
9741
9741
|
}, "handleTipsClick"), ne = /* @__PURE__ */ n(() => {
|
|
9742
9742
|
k(null);
|
|
@@ -9753,7 +9753,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9753
9753
|
backdropFilter: "blur(2px)",
|
|
9754
9754
|
transition: "all 0.5s ease",
|
|
9755
9755
|
maxWidth: "calc(100% + 36px)"
|
|
9756
|
-
}, children: /* @__PURE__ */
|
|
9756
|
+
}, children: /* @__PURE__ */ T(
|
|
9757
9757
|
R,
|
|
9758
9758
|
{
|
|
9759
9759
|
sx: {
|
|
@@ -9789,7 +9789,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9789
9789
|
},
|
|
9790
9790
|
onClick: /* @__PURE__ */ n(() => h(!g), "onClick"),
|
|
9791
9791
|
children: [
|
|
9792
|
-
/* @__PURE__ */
|
|
9792
|
+
/* @__PURE__ */ T(R, { sx: {
|
|
9793
9793
|
overflow: "hidden",
|
|
9794
9794
|
p: 1,
|
|
9795
9795
|
marginTop: 1,
|
|
@@ -9888,7 +9888,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9888
9888
|
Ui,
|
|
9889
9889
|
{
|
|
9890
9890
|
open: B,
|
|
9891
|
-
anchorEl:
|
|
9891
|
+
anchorEl: I,
|
|
9892
9892
|
onClose: ne,
|
|
9893
9893
|
anchorOrigin: {
|
|
9894
9894
|
vertical: "bottom",
|
|
@@ -9907,7 +9907,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9907
9907
|
border: "1px solid rgba(255, 255, 255, 0.2)"
|
|
9908
9908
|
}
|
|
9909
9909
|
},
|
|
9910
|
-
children: /* @__PURE__ */
|
|
9910
|
+
children: /* @__PURE__ */ T(ra, { sx: { p: 2, backgroundColor: "transparent" }, children: [
|
|
9911
9911
|
/* @__PURE__ */ t(X, { variant: "h6", sx: { color: "text.primary", mb: 2, fontWeight: "bold" }, children: "AI Thinking Process" }),
|
|
9912
9912
|
/* @__PURE__ */ t(R, { sx: { color: "text.primary" }, children: /* @__PURE__ */ t(
|
|
9913
9913
|
Lt,
|
|
@@ -9942,7 +9942,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9942
9942
|
default:
|
|
9943
9943
|
return /* @__PURE__ */ t(es, { color: "info" });
|
|
9944
9944
|
}
|
|
9945
|
-
}, "getSeverityIcon"),
|
|
9945
|
+
}, "getSeverityIcon"), I = /* @__PURE__ */ n(() => {
|
|
9946
9946
|
switch (d) {
|
|
9947
9947
|
case "error":
|
|
9948
9948
|
return "error";
|
|
@@ -9953,7 +9953,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9953
9953
|
return "info";
|
|
9954
9954
|
}
|
|
9955
9955
|
}, "getSeverityColor");
|
|
9956
|
-
return /* @__PURE__ */
|
|
9956
|
+
return /* @__PURE__ */ T(
|
|
9957
9957
|
Bo,
|
|
9958
9958
|
{
|
|
9959
9959
|
open: e,
|
|
@@ -9963,15 +9963,15 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9963
9963
|
maxWidth: "sm",
|
|
9964
9964
|
fullWidth: !0,
|
|
9965
9965
|
children: [
|
|
9966
|
-
/* @__PURE__ */
|
|
9966
|
+
/* @__PURE__ */ T(Wo, { id: "alert-dialog-title", sx: { display: "flex", alignItems: "center", gap: 1, backgroundColor: "background.paper" }, children: [
|
|
9967
9967
|
b(),
|
|
9968
9968
|
r
|
|
9969
9969
|
] }),
|
|
9970
|
-
/* @__PURE__ */ t(No, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(jc, { id: "alert-dialog-description", children: /* @__PURE__ */ t(ce, { sx: { mt: 1 }, children: /* @__PURE__ */
|
|
9970
|
+
/* @__PURE__ */ t(No, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ t(jc, { id: "alert-dialog-description", children: /* @__PURE__ */ t(ce, { sx: { mt: 1 }, children: /* @__PURE__ */ T(Lc, { severity: I(), sx: { "& .MuiAlert-message": { width: "100%" } }, children: [
|
|
9971
9971
|
/* @__PURE__ */ t($c, { children: r }),
|
|
9972
9972
|
i
|
|
9973
9973
|
] }) }) }) }),
|
|
9974
|
-
/* @__PURE__ */
|
|
9974
|
+
/* @__PURE__ */ T(Ho, { sx: { backgroundColor: "background.paper" }, children: [
|
|
9975
9975
|
y === "retry" && /* @__PURE__ */ t(Hn, { onClick: s, color: "primary", variant: "contained", autoFocus: !0, children: "Try Again" }),
|
|
9976
9976
|
y === "close" && /* @__PURE__ */ t(Hn, { onClick: f, color: "primary", variant: "contained", autoFocus: !0, children: "OK" })
|
|
9977
9977
|
] })
|
|
@@ -10073,7 +10073,7 @@ const tl = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: r, messagesRe
|
|
|
10073
10073
|
) }) : null;
|
|
10074
10074
|
}, "CurrentMessage"), nl = "Prompt cancelado";
|
|
10075
10075
|
function Ca() {
|
|
10076
|
-
var
|
|
10076
|
+
var I;
|
|
10077
10077
|
const e = pe((k) => k.turnOpen), r = pe((k) => k.currentMessage), { agentGatewayService: i } = Qe(), d = Te(() => {
|
|
10078
10078
|
var k;
|
|
10079
10079
|
if (!e || !(r != null && r.parts)) return null;
|
|
@@ -10087,7 +10087,7 @@ function Ca() {
|
|
|
10087
10087
|
oe(() => {
|
|
10088
10088
|
d && s(d);
|
|
10089
10089
|
}, [d]);
|
|
10090
|
-
const y = d ?? f, b = (
|
|
10090
|
+
const y = d ?? f, b = (I = y == null ? void 0 : y.functionDetails) == null ? void 0 : I.id;
|
|
10091
10091
|
return {
|
|
10092
10092
|
parked: d,
|
|
10093
10093
|
toRender: y,
|
|
@@ -10102,10 +10102,10 @@ function Ca() {
|
|
|
10102
10102
|
n(Ca, "useParkedAskUser");
|
|
10103
10103
|
const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
10104
10104
|
var D, S;
|
|
10105
|
-
const r = at(), [i, d] = Y(!1), { parked: f, toRender: s, currentMessage: y, turnOpen: b, cancel:
|
|
10105
|
+
const r = at(), [i, d] = Y(!1), { parked: f, toRender: s, currentMessage: y, turnOpen: b, cancel: I } = Ca(), k = (D = f == null ? void 0 : f.functionDetails) == null ? void 0 : D.id;
|
|
10106
10106
|
return oe(() => {
|
|
10107
10107
|
d(!1);
|
|
10108
|
-
}, [k]), /* @__PURE__ */ t(us, { direction: "up", in: !!f, mountOnEnter: !0, unmountOnExit: !0, appear: !0, children: /* @__PURE__ */
|
|
10108
|
+
}, [k]), /* @__PURE__ */ t(us, { direction: "up", in: !!f, mountOnEnter: !0, unmountOnExit: !0, appear: !0, children: /* @__PURE__ */ T(
|
|
10109
10109
|
R,
|
|
10110
10110
|
{
|
|
10111
10111
|
sx: {
|
|
@@ -10128,11 +10128,11 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10128
10128
|
boxShadow: "0 -8px 24px rgba(0,0,0,0.35)"
|
|
10129
10129
|
},
|
|
10130
10130
|
children: [
|
|
10131
|
-
s && /* @__PURE__ */
|
|
10131
|
+
s && /* @__PURE__ */ T(R, { sx: { flex: "1 1 auto", position: "relative", minHeight: 0, maxHeight: i ? 80 : 400, transition: "max-height 0.5s ease", overflowY: i ? "clip" : "auto", px: 1.5, pt: 1, pb: 1.25 }, children: [
|
|
10132
10132
|
/* @__PURE__ */ t(R, { sx: { position: "absolute", left: "45%", width: 36, height: 4, borderRadius: 2, top: 5, bgcolor: "divider", mb: 1 } }),
|
|
10133
|
-
/* @__PURE__ */
|
|
10133
|
+
/* @__PURE__ */ T(Ee, { sx: { position: "absolute", m: 0, p: 0, right: "1.5%", top: 5 }, gap: 1, direction: "row", children: [
|
|
10134
10134
|
/* @__PURE__ */ t(qt, { onClick: /* @__PURE__ */ n(() => d(!i), "onClick"), type: "button", sx: { p: 0, color: r.palette.border.soft }, children: /* @__PURE__ */ t(Vd, { sx: { rotate: i ? "-90deg" : "90deg", fontSize: "20px" } }) }),
|
|
10135
|
-
/* @__PURE__ */ t(qt, { onClick:
|
|
10135
|
+
/* @__PURE__ */ t(qt, { onClick: I, type: "button", sx: { p: 0, color: r.palette.border.soft }, children: /* @__PURE__ */ t(rs, { sx: { fontSize: "18px" } }) })
|
|
10136
10136
|
] }),
|
|
10137
10137
|
/* @__PURE__ */ t($r, { part: s, message: y ?? void 0, onGoing: b, embedded: !0 })
|
|
10138
10138
|
] }),
|
|
@@ -10181,13 +10181,13 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10181
10181
|
default:
|
|
10182
10182
|
return "";
|
|
10183
10183
|
}
|
|
10184
|
-
}, "getSmallStatus"),
|
|
10184
|
+
}, "getSmallStatus"), I = /* @__PURE__ */ n(() => !r && e !== "Idle" ? { color: "secondary", status: "Session Inactive" } : { color: ch[e.toString()], status: b(e) }, "getState");
|
|
10185
10185
|
cu(() => {
|
|
10186
10186
|
s((/* @__PURE__ */ new Date()).getTime() - i);
|
|
10187
10187
|
}, 1500);
|
|
10188
|
-
const k =
|
|
10189
|
-
return /* @__PURE__ */
|
|
10190
|
-
e != Se.Connected && /* @__PURE__ */
|
|
10188
|
+
const k = I(), D = f / qn > Jo, S = qn / Jo / 1e3, v = Math.ceil((qn - f) / 1e3);
|
|
10189
|
+
return /* @__PURE__ */ T(Ee, { direction: "row", gap: 1, sx: { position: "relative", alignItems: "center", display: "flex", flexShrink: 0 }, children: [
|
|
10190
|
+
e != Se.Connected && /* @__PURE__ */ T(re, { children: [
|
|
10191
10191
|
/* @__PURE__ */ t("div", { style: { backgroundColor: "rgba(0,0,0,0.4)", position: "absolute", width: "100%", height: "100%" } }),
|
|
10192
10192
|
/* @__PURE__ */ t(
|
|
10193
10193
|
yi,
|
|
@@ -10200,7 +10200,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10200
10200
|
}
|
|
10201
10201
|
)
|
|
10202
10202
|
] }),
|
|
10203
|
-
D && v > 0 && /* @__PURE__ */
|
|
10203
|
+
D && v > 0 && /* @__PURE__ */ T(re, { children: [
|
|
10204
10204
|
/* @__PURE__ */ t(Ie, { color: "textPrimary", children: "Idle:" }),
|
|
10205
10205
|
/* @__PURE__ */ t(
|
|
10206
10206
|
yi,
|
|
@@ -10216,7 +10216,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10216
10216
|
] });
|
|
10217
10217
|
}, "ConnectionState"), uh = aa(), Jn = /* @__PURE__ */ n((e) => {
|
|
10218
10218
|
var le;
|
|
10219
|
-
const { eventBusService: i, showStickyHeader: d, currentModel: f, friendlyMode: s, compactPrompt: y, showConnectionState: b, hidePromptInput:
|
|
10219
|
+
const { eventBusService: i, showStickyHeader: d, currentModel: f, friendlyMode: s, compactPrompt: y, showConnectionState: b, hidePromptInput: I, autoRenderAskUserSheet: k } = Qe(), D = f ? oa[f] : void 0, S = pe((Z) => {
|
|
10220
10220
|
var ge;
|
|
10221
10221
|
return (ge = Z.session) == null ? void 0 : ge.id;
|
|
10222
10222
|
}), v = pe((Z) => Z.turnOpen), A = pe((Z) => Z.connectionStatus), p = pe((Z) => Z.messages), w = pe((Z) => Z.loadingType), x = pe((Z) => Z.setLastActivity), g = ue(null), h = St(), M = Mr(h.breakpoints.down("sm")), u = M, E = ue(null), c = ue(null), _ = ue(!1), j = ue(/* @__PURE__ */ new Map()), [B, G] = Y(null), { artifactService: ne } = Qe(), [V, U] = Y(!1), [W, H] = Y(!1), [ee, be] = Y(!1), [Fe, Je] = Y(!1), [K, $] = Y(null), [me, He] = Y(!1), Oe = ue(!1), qe = ue(0), ze = ue(0), [we, et] = Y(0), [lt, Ve] = Y({
|
|
@@ -10365,7 +10365,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10365
10365
|
. Tente novamente.`, "error", "close"), Promise.resolve()), []), $t = ye((Z, ge) => (setTimeout(() => dt(), 200), Promise.resolve()), []), Vt = /* @__PURE__ */ n(async (Z, ge) => {
|
|
10366
10366
|
c.current && Oe.current && dt();
|
|
10367
10367
|
}, "handleNewMessage");
|
|
10368
|
-
return /* @__PURE__ */
|
|
10368
|
+
return /* @__PURE__ */ T(R, { sx: yt(), children: [
|
|
10369
10369
|
e.showStickHeader && /* @__PURE__ */ t(
|
|
10370
10370
|
sh,
|
|
10371
10371
|
{
|
|
@@ -10399,7 +10399,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10399
10399
|
}), "sx")
|
|
10400
10400
|
}
|
|
10401
10401
|
) }) }),
|
|
10402
|
-
/* @__PURE__ */
|
|
10402
|
+
/* @__PURE__ */ T(
|
|
10403
10403
|
R,
|
|
10404
10404
|
{
|
|
10405
10405
|
ref: /* @__PURE__ */ n((Z) => {
|
|
@@ -10459,7 +10459,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10459
10459
|
// replay's `useEffect`s clobbered live state every time
|
|
10460
10460
|
// the user opened the session (the "h:1 corruption"
|
|
10461
10461
|
// path).
|
|
10462
|
-
/* @__PURE__ */ t(Gs, { children: /* @__PURE__ */ t(ot, { direction: "column", spacing: 0, children: p.filter((Z) => Z.turn_complete).map((Z, ge) => /* @__PURE__ */
|
|
10462
|
+
/* @__PURE__ */ t(Gs, { children: /* @__PURE__ */ t(ot, { direction: "column", spacing: 0, children: p.filter((Z) => Z.turn_complete).map((Z, ge) => /* @__PURE__ */ T(
|
|
10463
10463
|
R,
|
|
10464
10464
|
{
|
|
10465
10465
|
sx: { p: 0.5, width: M ? "100%" : "98%" },
|
|
@@ -10513,7 +10513,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10513
10513
|
children: D.name
|
|
10514
10514
|
}
|
|
10515
10515
|
),
|
|
10516
|
-
/* @__PURE__ */ t(Bc, { in: V, timeout: 300, children: /* @__PURE__ */
|
|
10516
|
+
/* @__PURE__ */ t(Bc, { in: V, timeout: 300, children: /* @__PURE__ */ T(
|
|
10517
10517
|
R,
|
|
10518
10518
|
{
|
|
10519
10519
|
sx: {
|
|
@@ -10658,7 +10658,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10658
10658
|
}
|
|
10659
10659
|
),
|
|
10660
10660
|
k && /* @__PURE__ */ t(rl, { promptHeight: we }),
|
|
10661
|
-
!
|
|
10661
|
+
!I && (y ? /* @__PURE__ */ t(
|
|
10662
10662
|
ya,
|
|
10663
10663
|
{
|
|
10664
10664
|
onHeightChange: /* @__PURE__ */ n((Z) => et(() => Z), "onHeightChange"),
|
|
@@ -10686,7 +10686,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10686
10686
|
] });
|
|
10687
10687
|
}, "ChatPane"), ol = An(
|
|
10688
10688
|
({ bordered: e, borderRadius: r, elevation: i, onToolEvent: d, bottomSlot: f, children: s }, y) => {
|
|
10689
|
-
const { sessionStore: b, eventBusService:
|
|
10689
|
+
const { sessionStore: b, eventBusService: I, sendMessage: k } = Qe(), D = ue(d);
|
|
10690
10690
|
D.current = d, _c(y, () => ({
|
|
10691
10691
|
sendMessage: k,
|
|
10692
10692
|
getMessages: /* @__PURE__ */ n(() => b.getState().messages, "getMessages"),
|
|
@@ -10697,11 +10697,11 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10697
10697
|
var x;
|
|
10698
10698
|
(x = D.current) == null || x.call(D, p, w);
|
|
10699
10699
|
}, "handler");
|
|
10700
|
-
return
|
|
10701
|
-
|
|
10700
|
+
return I.gatewayOnToolEvent(A), () => {
|
|
10701
|
+
I.gatewayOffToolEvent(A);
|
|
10702
10702
|
};
|
|
10703
|
-
}, [
|
|
10704
|
-
const S = e || r || i, v = s !== void 0 ? s : f ? /* @__PURE__ */
|
|
10703
|
+
}, [I]);
|
|
10704
|
+
const S = e || r || i, v = s !== void 0 ? s : f ? /* @__PURE__ */ T(ce, { sx: { display: "flex", flexDirection: "column", height: "100%", minHeight: 0 }, children: [
|
|
10705
10705
|
/* @__PURE__ */ t(ce, { sx: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ t(Jn, {}) }),
|
|
10706
10706
|
f
|
|
10707
10707
|
] }) : /* @__PURE__ */ t(Jn, {});
|
|
@@ -10761,7 +10761,7 @@ function hh(e) {
|
|
|
10761
10761
|
}
|
|
10762
10762
|
n(hh, "themeNotificationPort");
|
|
10763
10763
|
function fh(e, r) {
|
|
10764
|
-
var b,
|
|
10764
|
+
var b, I, k, D;
|
|
10765
10765
|
const i = at(), d = (r == null ? void 0 : r.key) ?? "default", f = Te(
|
|
10766
10766
|
() => al(d, () => la({
|
|
10767
10767
|
...e,
|
|
@@ -10778,7 +10778,7 @@ function fh(e, r) {
|
|
|
10778
10778
|
f,
|
|
10779
10779
|
e.agentContext,
|
|
10780
10780
|
(b = e.agentContext.agentConfig) == null ? void 0 : b.id,
|
|
10781
|
-
(
|
|
10781
|
+
(I = e.agentContext.agentConfig) == null ? void 0 : I.name,
|
|
10782
10782
|
(k = e.agentContext.customer) == null ? void 0 : k.dataSetId,
|
|
10783
10783
|
(D = e.agentContext.customer) == null ? void 0 : D.name
|
|
10784
10784
|
]), oe(() => {
|
|
@@ -10809,7 +10809,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10809
10809
|
minimizedLabel: d = "Answer the agent"
|
|
10810
10810
|
}) => {
|
|
10811
10811
|
var A, p;
|
|
10812
|
-
const f = at(), { parked: s, toRender: y, currentMessage: b, turnOpen:
|
|
10812
|
+
const f = at(), { parked: s, toRender: y, currentMessage: b, turnOpen: I, cancel: k } = Ca(), [D, S] = Y(!1), v = (A = s == null ? void 0 : s.functionDetails) == null ? void 0 : A.id;
|
|
10813
10813
|
return oe(() => {
|
|
10814
10814
|
S(!1);
|
|
10815
10815
|
}, [v]), s && D ? /* @__PURE__ */ t(R, { sx: { position: "fixed", right: 24, bottom: 24, zIndex: f.zIndex.modal }, children: /* @__PURE__ */ t(
|
|
@@ -10822,7 +10822,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10822
10822
|
sx: { boxShadow: "0 6px 20px rgba(0,0,0,0.35)" },
|
|
10823
10823
|
children: d
|
|
10824
10824
|
}
|
|
10825
|
-
) }) : /* @__PURE__ */
|
|
10825
|
+
) }) : /* @__PURE__ */ T(
|
|
10826
10826
|
ps,
|
|
10827
10827
|
{
|
|
10828
10828
|
open: !!s,
|
|
@@ -10844,7 +10844,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10844
10844
|
}
|
|
10845
10845
|
},
|
|
10846
10846
|
children: [
|
|
10847
|
-
/* @__PURE__ */
|
|
10847
|
+
/* @__PURE__ */ T(
|
|
10848
10848
|
ot,
|
|
10849
10849
|
{
|
|
10850
10850
|
direction: "row",
|
|
@@ -10858,8 +10858,8 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10858
10858
|
]
|
|
10859
10859
|
}
|
|
10860
10860
|
),
|
|
10861
|
-
y && /* @__PURE__ */ t(R, { sx: { flex: "1 1 auto", minHeight: 0, overflowY: "auto", px: 2, py: 1.75 }, children: /* @__PURE__ */ t($r, { part: y, message: b ?? void 0, onGoing:
|
|
10862
|
-
|
|
10861
|
+
y && /* @__PURE__ */ t(R, { sx: { flex: "1 1 auto", minHeight: 0, overflowY: "auto", px: 2, py: 1.75 }, children: /* @__PURE__ */ t($r, { part: y, message: b ?? void 0, onGoing: I, embedded: !0 }) }),
|
|
10862
|
+
I && /* @__PURE__ */ t(
|
|
10863
10863
|
sa,
|
|
10864
10864
|
{
|
|
10865
10865
|
variant: "indeterminate",
|
|
@@ -10883,7 +10883,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10883
10883
|
);
|
|
10884
10884
|
}, "AskUserDialog"), gh = /* @__PURE__ */ n(({ artifact: e, mode: r, sessionId: i, preview: d, onExpand: f, renderMode: s = "browser", naked: y = !1, fullImage: b = !1 }) => {
|
|
10885
10885
|
var w;
|
|
10886
|
-
const
|
|
10886
|
+
const I = St();
|
|
10887
10887
|
let k = !1, D = !1;
|
|
10888
10888
|
e && s === "browser" && oe(() => {
|
|
10889
10889
|
e.mimeType == "text/html" && setTimeout(() => {
|
|
@@ -10907,7 +10907,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10907
10907
|
}
|
|
10908
10908
|
n(S, "geticon");
|
|
10909
10909
|
function v() {
|
|
10910
|
-
return /* @__PURE__ */
|
|
10910
|
+
return /* @__PURE__ */ T(ce, { sx: {
|
|
10911
10911
|
display: r === "compact" && y === !1 ? "flex" : "block",
|
|
10912
10912
|
textAlign: "center",
|
|
10913
10913
|
alignContent: "center",
|
|
@@ -10920,9 +10920,9 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10920
10920
|
margin: r === "compact" ? "5px auto" : "0px",
|
|
10921
10921
|
padding: "15px 5px",
|
|
10922
10922
|
minWidth: r === "compact" && s == "browser" ? "100%" : "300px",
|
|
10923
|
-
backgroundColor:
|
|
10923
|
+
backgroundColor: I.palette.background.default,
|
|
10924
10924
|
borderRadius: "10px",
|
|
10925
|
-
border: `1px solid ${
|
|
10925
|
+
border: `1px solid ${I.palette.divider}`,
|
|
10926
10926
|
overflow: r === "compact" ? "hidden" : "auto",
|
|
10927
10927
|
position: "relative"
|
|
10928
10928
|
// For overlay positioning
|
|
@@ -10945,13 +10945,13 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10945
10945
|
margin: r === "compact" ? "5px auto" : "0px",
|
|
10946
10946
|
padding: "15px 5px",
|
|
10947
10947
|
minWidth: r === "compact" && s == "browser" ? "100%" : "300px",
|
|
10948
|
-
backgroundColor:
|
|
10948
|
+
backgroundColor: I.palette.background.default,
|
|
10949
10949
|
borderRadius: "10px",
|
|
10950
|
-
border: `1px solid ${
|
|
10950
|
+
border: `1px solid ${I.palette.divider}`,
|
|
10951
10951
|
overflow: r === "compact" ? "hidden" : "auto",
|
|
10952
10952
|
position: "relative"
|
|
10953
10953
|
// For overlay positioning
|
|
10954
|
-
}, children: /* @__PURE__ */
|
|
10954
|
+
}, children: /* @__PURE__ */ T(Ee, { direction: "row", gap: 2, alignItems: "center", children: [
|
|
10955
10955
|
/* @__PURE__ */ t($o, { size: 60 }),
|
|
10956
10956
|
/* @__PURE__ */ t(Ie, { variant: "h4", color: "text.secondary", align: "center", children: "Loading..." })
|
|
10957
10957
|
] }) }) : e != null && e.src ? /* @__PURE__ */ t("div", { className: "iframe-container", children: /* @__PURE__ */ t("iframe", { src: `${e == null ? void 0 : e.src}`, style: { minHeight: "80vh", width: "100%", borderRadius: "var(--radius-md)" } }) }) : /* @__PURE__ */ t("div", { id: `container-table_${(e == null ? void 0 : e.id) ?? "idnull"}_${r}_${y}`, children: /* @__PURE__ */ t("div", { dangerouslySetInnerHTML: { __html: (e == null ? void 0 : e.html) ?? "" } }) });
|
|
@@ -10962,7 +10962,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10962
10962
|
const g = x.description ?? "", h = ((E = x.name) == null ? void 0 : E.indexOf("http")) == -1 ? `${aa()}/open/getImage/${i}/${x.name}` : x.name, M = /* @__PURE__ */ n(() => {
|
|
10963
10963
|
}, "handleImageLoad"), u = /* @__PURE__ */ n(() => {
|
|
10964
10964
|
}, "handleImageError");
|
|
10965
|
-
return /* @__PURE__ */
|
|
10965
|
+
return /* @__PURE__ */ T(ce, { sx: {
|
|
10966
10966
|
display: r === "compact" && y === !1 ? "flex" : "block",
|
|
10967
10967
|
textAlign: "center",
|
|
10968
10968
|
justifyContent: r === "compact" ? "center" : "auto",
|
|
@@ -10974,7 +10974,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10974
10974
|
margin: r === "compact" ? "5px auto" : "0px",
|
|
10975
10975
|
padding: "15px 5px",
|
|
10976
10976
|
minWidth: r === "compact" && s == "browser" ? "100%" : "300px",
|
|
10977
|
-
backgroundColor:
|
|
10977
|
+
backgroundColor: I.palette.background.default,
|
|
10978
10978
|
borderRadius: "10px",
|
|
10979
10979
|
border: y ? s == "browser" ? "1px solid" : "none" : "1px solid",
|
|
10980
10980
|
borderColor: "divider",
|
|
@@ -11072,8 +11072,8 @@ function kh(e, r) {
|
|
|
11072
11072
|
if (i === -1) return [0, 0];
|
|
11073
11073
|
const s = e.slice(i);
|
|
11074
11074
|
if (Sh.test(s)) return [0, 0];
|
|
11075
|
-
const y = s.match(il), b = y ? y.length : 0,
|
|
11076
|
-
return [Math.min(b /
|
|
11075
|
+
const y = s.match(il), b = y ? y.length : 0, I = Math.max(1, r / wh);
|
|
11076
|
+
return [Math.min(b / I, 1), b];
|
|
11077
11077
|
}
|
|
11078
11078
|
n(kh, "computeProgress");
|
|
11079
11079
|
function Ch(e) {
|
|
@@ -11088,57 +11088,69 @@ function Ch(e) {
|
|
|
11088
11088
|
return { before: y, partialCode: b };
|
|
11089
11089
|
}
|
|
11090
11090
|
n(Ch, "extractTrailingUnclosedFence");
|
|
11091
|
-
const Eh = /^\{\{\s*Component:\s*([\w-]+)\s*\}\}$/, Ih = /^ {0,3}\{\{\s*Component:\s*[\w-]+\s*\}\}[ \t]*$/, Th = /^ {0,3}(`{3,}|~{3,})
|
|
11092
|
-
function
|
|
11091
|
+
const Eh = /^\{\{\s*Component:\s*([\w-]+)\s*\}\}$/, Ih = /^ {0,3}\{\{\s*Component:\s*[\w-]+\s*\}\}[ \t]*$/, Th = /^ {0,3}(`{3,}|~{3,})/, Ah = /\{\{\s*Component\s*:[^}]*\}\}/g;
|
|
11092
|
+
function _h(e) {
|
|
11093
11093
|
if (!e.includes("{{")) return e;
|
|
11094
11094
|
const r = e.split(`
|
|
11095
11095
|
`), i = [];
|
|
11096
11096
|
let d = !1, f = "";
|
|
11097
|
-
for (const
|
|
11098
|
-
const
|
|
11099
|
-
if (
|
|
11100
|
-
d ?
|
|
11097
|
+
for (const y of r) {
|
|
11098
|
+
const b = y.match(Th);
|
|
11099
|
+
if (b) {
|
|
11100
|
+
d ? b[1][0] === f && (d = !1) : (d = !0, f = b[1][0]), i.push(y);
|
|
11101
11101
|
continue;
|
|
11102
11102
|
}
|
|
11103
|
-
if (!d && Ih.test(
|
|
11104
|
-
i.length > 0 && i[i.length - 1].trim() !== "" && i.push(""), i.push(
|
|
11103
|
+
if (!d && Ih.test(y)) {
|
|
11104
|
+
i.length > 0 && i[i.length - 1].trim() !== "" && i.push(""), i.push(y.trim()), i.push("");
|
|
11105
11105
|
continue;
|
|
11106
11106
|
}
|
|
11107
|
-
|
|
11107
|
+
const I = d ? y : y.replace(Ah, "");
|
|
11108
|
+
i.push(I === y ? y : I.trimEnd());
|
|
11108
11109
|
}
|
|
11109
|
-
|
|
11110
|
+
let s = i.join(`
|
|
11110
11111
|
`);
|
|
11112
|
+
return d || (s = Mh(s)), s;
|
|
11111
11113
|
}
|
|
11112
|
-
n(
|
|
11113
|
-
function
|
|
11114
|
+
n(_h, "promoteSlotTokenLines");
|
|
11115
|
+
function Mh(e) {
|
|
11116
|
+
const r = e.lastIndexOf(`
|
|
11117
|
+
`), i = e.slice(r + 1), d = i.lastIndexOf("{{");
|
|
11118
|
+
if (d < 0) return e;
|
|
11119
|
+
const f = i.slice(d);
|
|
11120
|
+
if (f.includes("}}")) return e;
|
|
11121
|
+
const s = "{{Component:";
|
|
11122
|
+
return (f.length < s.length ? s.startsWith(f) : f.startsWith(s)) ? e.slice(0, r + 1 + d) : e;
|
|
11123
|
+
}
|
|
11124
|
+
n(Mh, "trimTrailingPartialToken");
|
|
11125
|
+
function zh(e) {
|
|
11114
11126
|
if (e.type !== "paragraph") return null;
|
|
11115
11127
|
const r = e.children ?? [];
|
|
11116
11128
|
return r.length === 0 || !r.every((i) => i.type === "text") ? null : r.map((i) => i.value ?? "").join("").trim();
|
|
11117
11129
|
}
|
|
11118
|
-
n(
|
|
11130
|
+
n(zh, "paragraphText");
|
|
11119
11131
|
function sl(e, r) {
|
|
11120
11132
|
if (!(e != null && e.trim())) return [];
|
|
11121
11133
|
const [i, d] = kh(
|
|
11122
11134
|
e,
|
|
11123
11135
|
(r == null ? void 0 : r.maxCharsForFull) ?? vh
|
|
11124
11136
|
);
|
|
11125
|
-
e = e.replace(il, ""), e =
|
|
11137
|
+
e = e.replace(il, ""), e = _h(e);
|
|
11126
11138
|
let f = null;
|
|
11127
11139
|
const s = Ch(e);
|
|
11128
11140
|
s && (e = s.before, f = s.partialCode);
|
|
11129
11141
|
const y = xu().use(vu).parse(e), b = [];
|
|
11130
|
-
let
|
|
11142
|
+
let I = [], k = !1;
|
|
11131
11143
|
const D = /* @__PURE__ */ n(() => {
|
|
11132
|
-
if (
|
|
11133
|
-
const S = wu({ type: "root", children:
|
|
11134
|
-
S.trim() && b.push({ type: "markdown", content: S }),
|
|
11144
|
+
if (I.length === 0) return;
|
|
11145
|
+
const S = wu({ type: "root", children: I });
|
|
11146
|
+
S.trim() && b.push({ type: "markdown", content: S }), I = [];
|
|
11135
11147
|
}, "flushBuffer");
|
|
11136
11148
|
for (const S of y.children) {
|
|
11137
11149
|
if (S.type === "html" && xh.test(S.value)) {
|
|
11138
11150
|
D(), k = !0;
|
|
11139
11151
|
continue;
|
|
11140
11152
|
}
|
|
11141
|
-
const v =
|
|
11153
|
+
const v = zh(S);
|
|
11142
11154
|
if (v) {
|
|
11143
11155
|
const A = v.match(Eh);
|
|
11144
11156
|
if (A) {
|
|
@@ -11146,7 +11158,7 @@ function sl(e, r) {
|
|
|
11146
11158
|
continue;
|
|
11147
11159
|
}
|
|
11148
11160
|
}
|
|
11149
|
-
|
|
11161
|
+
I.push(S);
|
|
11150
11162
|
}
|
|
11151
11163
|
return D(), k && b.push({ type: "liveTsx", code: "", partial: !0, progress: i, bytes: d * 100 }), f !== null && b.push({ type: "liveTsx", code: f, partial: !0 }), b;
|
|
11152
11164
|
}
|
|
@@ -11156,7 +11168,7 @@ function cl() {
|
|
|
11156
11168
|
return en(ll);
|
|
11157
11169
|
}
|
|
11158
11170
|
n(cl, "useLiveTsxMaxCharsForFull");
|
|
11159
|
-
const
|
|
11171
|
+
const Dh = /* @__PURE__ */ n(({ maxCharsForFull: e, children: r }) => {
|
|
11160
11172
|
const i = Te(
|
|
11161
11173
|
() => e ?? Ea,
|
|
11162
11174
|
[e]
|
|
@@ -11171,7 +11183,7 @@ const Mh = /* @__PURE__ */ n(({ maxCharsForFull: e, children: r }) => {
|
|
|
11171
11183
|
onLinkClicked: s,
|
|
11172
11184
|
message: y,
|
|
11173
11185
|
onGoing: b,
|
|
11174
|
-
friendlyMode:
|
|
11186
|
+
friendlyMode: I
|
|
11175
11187
|
}) => {
|
|
11176
11188
|
const k = en(bn), D = en(Sa), S = cl(), v = Mc(e), A = Te(
|
|
11177
11189
|
() => sl(v, { maxCharsForFull: S }),
|
|
@@ -11191,7 +11203,7 @@ const Mh = /* @__PURE__ */ n(({ maxCharsForFull: e, children: r }) => {
|
|
|
11191
11203
|
return /* @__PURE__ */ t(
|
|
11192
11204
|
ce,
|
|
11193
11205
|
{
|
|
11194
|
-
sx: {
|
|
11206
|
+
sx: E ? void 0 : {
|
|
11195
11207
|
transformOrigin: "center top",
|
|
11196
11208
|
animation: "uiSlotGrowIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both",
|
|
11197
11209
|
"@keyframes uiSlotGrowIn": {
|
|
@@ -11212,7 +11224,7 @@ const Mh = /* @__PURE__ */ n(({ maxCharsForFull: e, children: r }) => {
|
|
|
11212
11224
|
onGoing: b ?? !1,
|
|
11213
11225
|
preview: d,
|
|
11214
11226
|
onLinkClicked: s,
|
|
11215
|
-
friendlyMode:
|
|
11227
|
+
friendlyMode: I
|
|
11216
11228
|
}
|
|
11217
11229
|
)
|
|
11218
11230
|
)
|
|
@@ -11237,36 +11249,36 @@ function ul() {
|
|
|
11237
11249
|
return e[Mo] || (e[Mo] = {}), e[Mo];
|
|
11238
11250
|
}
|
|
11239
11251
|
n(ul, "getRegistryExtensions");
|
|
11240
|
-
function
|
|
11252
|
+
function Rh(e, r) {
|
|
11241
11253
|
const i = ul();
|
|
11242
11254
|
i[e] = {
|
|
11243
11255
|
...i[e] ?? {},
|
|
11244
11256
|
...r
|
|
11245
11257
|
};
|
|
11246
11258
|
}
|
|
11247
|
-
n(
|
|
11259
|
+
n(Rh, "extendModuleRegistry");
|
|
11248
11260
|
const zo = Symbol.for("envision:default-scope-extensions");
|
|
11249
11261
|
function pl() {
|
|
11250
11262
|
const e = globalThis;
|
|
11251
11263
|
return e[zo] || (e[zo] = {}), e[zo];
|
|
11252
11264
|
}
|
|
11253
11265
|
n(pl, "getScopeExtensions");
|
|
11254
|
-
function
|
|
11266
|
+
function Oh(e) {
|
|
11255
11267
|
const r = pl();
|
|
11256
11268
|
Object.assign(r, e);
|
|
11257
11269
|
}
|
|
11258
|
-
n(
|
|
11270
|
+
n(Oh, "extendDefaultScope");
|
|
11259
11271
|
let Do = null;
|
|
11260
|
-
function
|
|
11272
|
+
function Ph() {
|
|
11261
11273
|
return Do || (Do = Promise.all([
|
|
11262
11274
|
import("@mui/material"),
|
|
11263
11275
|
import("@mui/icons-material"),
|
|
11264
11276
|
import("recharts")
|
|
11265
11277
|
]).then(([e, r, i]) => ({ MuiMaterial: e, Icons: r, Recharts: i }))), Do;
|
|
11266
11278
|
}
|
|
11267
|
-
n(
|
|
11268
|
-
async function
|
|
11269
|
-
const { MuiMaterial: e, Icons: r, Recharts: i } = await
|
|
11279
|
+
n(Ph, "loadHeavyModules");
|
|
11280
|
+
async function Fh() {
|
|
11281
|
+
const { MuiMaterial: e, Icons: r, Recharts: i } = await Ph(), d = {
|
|
11270
11282
|
react: { ...Fo, default: Fo },
|
|
11271
11283
|
"@mui/material": { ...e },
|
|
11272
11284
|
"@mui/material/styles": { ...e },
|
|
@@ -11281,7 +11293,7 @@ async function Oh() {
|
|
|
11281
11293
|
d[f] = { ...d[f] ?? {}, ...s };
|
|
11282
11294
|
return d;
|
|
11283
11295
|
}
|
|
11284
|
-
n(
|
|
11296
|
+
n(Fh, "getModuleRegistry");
|
|
11285
11297
|
function hl() {
|
|
11286
11298
|
return { ...{
|
|
11287
11299
|
React: Fo,
|
|
@@ -11324,8 +11336,8 @@ function Fi(e) {
|
|
|
11324
11336
|
return r ^= r >>> 16, r = Math.imul(r, 2246822519) >>> 0, r ^= r >>> 13, r = Math.imul(r, 3266489917) >>> 0, (r >>> 0) / 4294967295;
|
|
11325
11337
|
}
|
|
11326
11338
|
n(Fi, "unitFromIndex");
|
|
11327
|
-
const Ro = 15,
|
|
11328
|
-
const e = St(), r = e.palette.mode === "dark", i = Ke(e.palette.text.primary, r ? 0.1 : 0.08), d = Ke(e.palette.text.primary, r ? 0.22 : 0.18), f = Ke(e.palette.text.primary, r ? 0.18 : 0.14), s = Ke(e.palette.text.primary, r ? 0.22 : 0.18), y = Ke(e.palette.text.primary, r ? 0.13 : 0.1), { bars: b, linePoints:
|
|
11339
|
+
const Ro = 15, jh = /* @__PURE__ */ n(() => {
|
|
11340
|
+
const e = St(), r = e.palette.mode === "dark", i = Ke(e.palette.text.primary, r ? 0.1 : 0.08), d = Ke(e.palette.text.primary, r ? 0.22 : 0.18), f = Ke(e.palette.text.primary, r ? 0.18 : 0.14), s = Ke(e.palette.text.primary, r ? 0.22 : 0.18), y = Ke(e.palette.text.primary, r ? 0.13 : 0.1), { bars: b, linePoints: I } = Te(() => {
|
|
11329
11341
|
const k = Array.from({ length: Ro }, (_, j) => 0.18 + Fi(j) * 0.78), D = Array.from({ length: Ro }, (_, j) => 0.18 + Fi(j + 100) * 0.78), S = 360, v = 160, A = 14, p = 12, x = v - p - 18, g = p + 6, h = x - g, M = (S - A * 2) / Ro, u = M * 0.52, E = k.map((_, j) => {
|
|
11330
11342
|
const B = _ * h, G = A + j * M + (M - u) / 2, ne = x - B;
|
|
11331
11343
|
return { x: G, y: ne, w: u, h: B };
|
|
@@ -11345,7 +11357,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11345
11357
|
borderRadius: 2,
|
|
11346
11358
|
overflow: "hidden"
|
|
11347
11359
|
},
|
|
11348
|
-
children: /* @__PURE__ */
|
|
11360
|
+
children: /* @__PURE__ */ T(
|
|
11349
11361
|
"svg",
|
|
11350
11362
|
{
|
|
11351
11363
|
viewBox: "0 0 360 160",
|
|
@@ -11359,7 +11371,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11359
11371
|
boxSizing: "border-box"
|
|
11360
11372
|
},
|
|
11361
11373
|
children: [
|
|
11362
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
11374
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ T("linearGradient", { id: "barWave", x1: "0%", y1: "0%", x2: "100%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [
|
|
11363
11375
|
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: i }),
|
|
11364
11376
|
/* @__PURE__ */ t("stop", { offset: "40%", stopColor: i }),
|
|
11365
11377
|
/* @__PURE__ */ t("stop", { offset: "50%", stopColor: d }),
|
|
@@ -11412,7 +11424,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11412
11424
|
strokeLinejoin: "round",
|
|
11413
11425
|
strokeLinecap: "round",
|
|
11414
11426
|
strokeDasharray: "4 5",
|
|
11415
|
-
points:
|
|
11427
|
+
points: I
|
|
11416
11428
|
}
|
|
11417
11429
|
)
|
|
11418
11430
|
]
|
|
@@ -11423,7 +11435,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11423
11435
|
}, "ChartSkeleton"), fl = /* @__PURE__ */ n(({
|
|
11424
11436
|
showIcon: e = !1,
|
|
11425
11437
|
showChangeRow: r = !0
|
|
11426
|
-
}) => /* @__PURE__ */
|
|
11438
|
+
}) => /* @__PURE__ */ T(
|
|
11427
11439
|
ce,
|
|
11428
11440
|
{
|
|
11429
11441
|
sx: {
|
|
@@ -11437,11 +11449,11 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11437
11449
|
},
|
|
11438
11450
|
children: [
|
|
11439
11451
|
e && /* @__PURE__ */ t(Qt, { animation: "wave", variant: "circular", width: 48, height: 48, sx: { flexShrink: 0 } }),
|
|
11440
|
-
/* @__PURE__ */
|
|
11452
|
+
/* @__PURE__ */ T(ce, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
11441
11453
|
/* @__PURE__ */ t(Qt, { animation: "wave", variant: "rounded", width: 120, height: 26 }),
|
|
11442
11454
|
/* @__PURE__ */ t(Qt, { animation: "wave", variant: "text", width: "92%", sx: { mt: 0.5 } }),
|
|
11443
11455
|
/* @__PURE__ */ t(Qt, { animation: "wave", variant: "text", width: "64%", sx: { mt: 0.25 } }),
|
|
11444
|
-
r && /* @__PURE__ */
|
|
11456
|
+
r && /* @__PURE__ */ T(Ee, { direction: "row", spacing: 1, sx: { alignItems: "center", mt: 0.5 }, children: [
|
|
11445
11457
|
/* @__PURE__ */ t(Qt, { animation: "wave", variant: "rounded", width: 76, height: 22 }),
|
|
11446
11458
|
/* @__PURE__ */ t(Qt, { animation: "wave", variant: "text", width: 96 })
|
|
11447
11459
|
] })
|
|
@@ -11462,12 +11474,12 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11462
11474
|
},
|
|
11463
11475
|
children: Array.from({ length: e }, (d, f) => /* @__PURE__ */ t(fl, { showIcon: r, showChangeRow: i }, f))
|
|
11464
11476
|
}
|
|
11465
|
-
), "MetricGroupSkeleton"),
|
|
11466
|
-
const i = St(), d = Array.from({ length: e }, (k, D) => D), f = Array.from({ length: r }, (k, D) => D), s = i.palette.mode === "dark" ? Ke(i.palette.grey[700], 0.55) : Ke(i.palette.grey[300], 0.6), y = Ke(i.palette.divider, i.palette.mode === "dark" ? 0.9 : 1), b = Ke(i.palette.divider, 0.6),
|
|
11477
|
+
), "MetricGroupSkeleton"), Lh = /* @__PURE__ */ n(({ columns: e = 5, rows: r = 10 }) => {
|
|
11478
|
+
const i = St(), d = Array.from({ length: e }, (k, D) => D), f = Array.from({ length: r }, (k, D) => D), s = i.palette.mode === "dark" ? Ke(i.palette.grey[700], 0.55) : Ke(i.palette.grey[300], 0.6), y = Ke(i.palette.divider, i.palette.mode === "dark" ? 0.9 : 1), b = Ke(i.palette.divider, 0.6), I = Ke(
|
|
11467
11479
|
i.palette.common.white,
|
|
11468
11480
|
i.palette.mode === "dark" ? 0.12 : 0.35
|
|
11469
11481
|
);
|
|
11470
|
-
return /* @__PURE__ */ t(ce, { sx: { borderRadius: 2, overflow: "hidden", bgcolor: "action.hover" }, children: /* @__PURE__ */
|
|
11482
|
+
return /* @__PURE__ */ t(ce, { sx: { borderRadius: 2, overflow: "hidden", bgcolor: "action.hover" }, children: /* @__PURE__ */ T(
|
|
11471
11483
|
"table",
|
|
11472
11484
|
{
|
|
11473
11485
|
style: {
|
|
@@ -11491,7 +11503,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11491
11503
|
animation: "wave",
|
|
11492
11504
|
variant: "rounded",
|
|
11493
11505
|
height: 18,
|
|
11494
|
-
sx: { bgcolor:
|
|
11506
|
+
sx: { bgcolor: I }
|
|
11495
11507
|
}
|
|
11496
11508
|
)
|
|
11497
11509
|
},
|
|
@@ -11520,7 +11532,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11520
11532
|
]
|
|
11521
11533
|
}
|
|
11522
11534
|
) });
|
|
11523
|
-
}, "TableSkeleton"),
|
|
11535
|
+
}, "TableSkeleton"), $h = /* @__PURE__ */ n(() => /* @__PURE__ */ t(
|
|
11524
11536
|
Qt,
|
|
11525
11537
|
{
|
|
11526
11538
|
animation: "wave",
|
|
@@ -11531,11 +11543,11 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11531
11543
|
borderRadius: 2
|
|
11532
11544
|
}
|
|
11533
11545
|
}
|
|
11534
|
-
), "IFrameSkeleton"),
|
|
11546
|
+
), "IFrameSkeleton"), Bh = [
|
|
11535
11547
|
[1e9, "Gb"],
|
|
11536
11548
|
[1e6, "Mb"],
|
|
11537
11549
|
[1e3, "Kb"]
|
|
11538
|
-
],
|
|
11550
|
+
], Wh = /* @__PURE__ */ n(({ progress: e = 0, bytes: r }) => {
|
|
11539
11551
|
const i = St(), d = i.palette.primary.main, f = i.palette.primary.softBg, s = i.palette.text.secondary, y = 10, b = [
|
|
11540
11552
|
{ x: 0, h: 50, acc: 0 },
|
|
11541
11553
|
{ x: 0, h: 65, acc: 0 },
|
|
@@ -11544,20 +11556,20 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11544
11556
|
{ x: 0, h: 58, acc: 0 },
|
|
11545
11557
|
{ x: 0, h: 70, acc: 0 },
|
|
11546
11558
|
{ x: 0, h: 65, acc: 0 }
|
|
11547
|
-
],
|
|
11559
|
+
], I = 220 / b.length * 0.9, k = 220 / b.length * 0.8, D = 78, S = 2;
|
|
11548
11560
|
let v = 0;
|
|
11549
11561
|
for (let g = 0; g < b.length; g++)
|
|
11550
|
-
v += b[g].h, b[g].acc = v, b[g].x = y + g *
|
|
11562
|
+
v += b[g].h, b[g].acc = v, b[g].x = y + g * I;
|
|
11551
11563
|
function A(g, h = 2, M = !0) {
|
|
11552
11564
|
const u = Math.abs(g);
|
|
11553
|
-
for (const [E, c] of
|
|
11565
|
+
for (const [E, c] of Bh)
|
|
11554
11566
|
if (u >= E)
|
|
11555
11567
|
return (g / E).toFixed(h) + (M ? c : "");
|
|
11556
11568
|
return g.toFixed(0) + "b";
|
|
11557
11569
|
}
|
|
11558
11570
|
n(A, "formatCompact");
|
|
11559
11571
|
const p = b.reduce((g, h) => g + h.h, 0), w = e * p, x = /* @__PURE__ */ n((g) => b[g].h - Math.max(b[g].acc - w, 0), "barFill");
|
|
11560
|
-
return /* @__PURE__ */
|
|
11572
|
+
return /* @__PURE__ */ T(
|
|
11561
11573
|
ce,
|
|
11562
11574
|
{
|
|
11563
11575
|
sx: {
|
|
@@ -11577,7 +11589,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11577
11589
|
my: 1
|
|
11578
11590
|
},
|
|
11579
11591
|
children: [
|
|
11580
|
-
/* @__PURE__ */
|
|
11592
|
+
/* @__PURE__ */ T("svg", { width: 220, height: 88, viewBox: "0 0 220 88", style: { display: "block" }, children: [
|
|
11581
11593
|
/* @__PURE__ */ t(
|
|
11582
11594
|
"line",
|
|
11583
11595
|
{
|
|
@@ -11623,7 +11635,7 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11623
11635
|
h
|
|
11624
11636
|
);
|
|
11625
11637
|
}),
|
|
11626
|
-
/* @__PURE__ */
|
|
11638
|
+
/* @__PURE__ */ T("circle", { r: 2.5, fill: d, children: [
|
|
11627
11639
|
/* @__PURE__ */ t(
|
|
11628
11640
|
"animate",
|
|
11629
11641
|
{
|
|
@@ -11646,8 +11658,8 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11646
11658
|
)
|
|
11647
11659
|
] })
|
|
11648
11660
|
] }),
|
|
11649
|
-
/* @__PURE__ */
|
|
11650
|
-
/* @__PURE__ */
|
|
11661
|
+
/* @__PURE__ */ T(Ee, { sx: { textAlign: "center" }, children: [
|
|
11662
|
+
/* @__PURE__ */ T(Ee, { direction: "row", gap: 0.5, sx: { display: "inline-flex", alignItems: "center", flexWrap: "nowrap" }, children: [
|
|
11651
11663
|
/* @__PURE__ */ t(Bu, { sx: { fontSize: 13, color: d } }),
|
|
11652
11664
|
/* @__PURE__ */ t(
|
|
11653
11665
|
Ie,
|
|
@@ -11692,19 +11704,19 @@ const Ro = 15, Ph = /* @__PURE__ */ n(() => {
|
|
|
11692
11704
|
]
|
|
11693
11705
|
}
|
|
11694
11706
|
);
|
|
11695
|
-
}, "GeneratingVisualization"),
|
|
11696
|
-
function
|
|
11707
|
+
}, "GeneratingVisualization"), Nh = "<!--liveTsx:invalid-->";
|
|
11708
|
+
function Hh(e, r) {
|
|
11697
11709
|
const i = /__scope\[(["'`])([^"'`\]]+)\1\](?:\.([A-Za-z_$][\w$]*))?/g, d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map();
|
|
11698
11710
|
let s;
|
|
11699
11711
|
for (; (s = i.exec(e)) !== null; ) {
|
|
11700
|
-
const b = s[2],
|
|
11712
|
+
const b = s[2], I = s[3];
|
|
11701
11713
|
if (!(b in r)) {
|
|
11702
11714
|
d.add(b);
|
|
11703
11715
|
continue;
|
|
11704
11716
|
}
|
|
11705
|
-
if (
|
|
11717
|
+
if (I) {
|
|
11706
11718
|
const k = r[b];
|
|
11707
|
-
(k == null || !(
|
|
11719
|
+
(k == null || !(I in k)) && (f.has(b) || f.set(b, /* @__PURE__ */ new Set()), f.get(b).add(I));
|
|
11708
11720
|
}
|
|
11709
11721
|
}
|
|
11710
11722
|
if (d.size === 0 && f.size === 0) return null;
|
|
@@ -11716,34 +11728,34 @@ function Wh(e, r) {
|
|
|
11716
11728
|
}
|
|
11717
11729
|
if (f.size > 0) {
|
|
11718
11730
|
y.push(""), y.push("Missing named exports:");
|
|
11719
|
-
for (const [b,
|
|
11720
|
-
y.push(` • "${b}" → ${Array.from(
|
|
11731
|
+
for (const [b, I] of f)
|
|
11732
|
+
y.push(` • "${b}" → ${Array.from(I).map((k) => `'${k}'`).join(", ")}`);
|
|
11721
11733
|
y.push(' Add these via extendModuleRegistry("' + Array.from(f.keys())[0] + '", { Chart, Metric, … }).');
|
|
11722
11734
|
}
|
|
11723
11735
|
return new Error(y.join(`
|
|
11724
11736
|
`));
|
|
11725
11737
|
}
|
|
11726
|
-
n(
|
|
11727
|
-
function
|
|
11728
|
-
const i =
|
|
11738
|
+
n(Hh, "checkScopeBindings");
|
|
11739
|
+
function qh(e, r) {
|
|
11740
|
+
const i = Hh(e, r);
|
|
11729
11741
|
if (i) throw i;
|
|
11730
11742
|
return new Function("__scope", e)(r);
|
|
11731
11743
|
}
|
|
11732
|
-
n(
|
|
11733
|
-
const
|
|
11734
|
-
chart:
|
|
11735
|
-
containtable:
|
|
11744
|
+
n(qh, "compileToComponent");
|
|
11745
|
+
const Vh = /<(chart|containtable|metricgroup|metric|iframe)\b/i, Uh = {
|
|
11746
|
+
chart: jh,
|
|
11747
|
+
containtable: Lh,
|
|
11736
11748
|
metricgroup: ml,
|
|
11737
11749
|
metric: fl,
|
|
11738
|
-
iframe:
|
|
11750
|
+
iframe: $h
|
|
11739
11751
|
};
|
|
11740
|
-
function
|
|
11741
|
-
const r =
|
|
11752
|
+
function Kh(e) {
|
|
11753
|
+
const r = Vh.exec(e);
|
|
11742
11754
|
if (!r) return null;
|
|
11743
11755
|
const i = r[1].toLowerCase();
|
|
11744
|
-
return i === "metric" && /metricgroup/i.test(e) ? ml :
|
|
11756
|
+
return i === "metric" && /metricgroup/i.test(e) ? ml : Uh[i] ?? null;
|
|
11745
11757
|
}
|
|
11746
|
-
n(
|
|
11758
|
+
n(Kh, "detectSkeleton");
|
|
11747
11759
|
const Ra = class Ra extends mt.Component {
|
|
11748
11760
|
constructor() {
|
|
11749
11761
|
super(...arguments);
|
|
@@ -11761,11 +11773,11 @@ const Ra = class Ra extends mt.Component {
|
|
|
11761
11773
|
};
|
|
11762
11774
|
n(Ra, "JsxErrorBoundary");
|
|
11763
11775
|
let Wr = Ra;
|
|
11764
|
-
const
|
|
11776
|
+
const Gh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0, bytes: f = 0 }) => {
|
|
11765
11777
|
const [s, y] = Y(null);
|
|
11766
11778
|
oe(() => {
|
|
11767
11779
|
let u = !1;
|
|
11768
|
-
return
|
|
11780
|
+
return Fh().then((E) => {
|
|
11769
11781
|
u || y(E);
|
|
11770
11782
|
}).catch((E) => {
|
|
11771
11783
|
console.error("[LiveJsxBlock] Failed to load module registry:", E);
|
|
@@ -11777,24 +11789,24 @@ const Uh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0,
|
|
|
11777
11789
|
if (!s) return null;
|
|
11778
11790
|
const u = hl();
|
|
11779
11791
|
return { ...s, ...u, ...i ?? {} };
|
|
11780
|
-
}, [s, i]),
|
|
11792
|
+
}, [s, i]), I = Te(() => {
|
|
11781
11793
|
if (r || !b) return { Component: null, error: null };
|
|
11782
11794
|
try {
|
|
11783
|
-
return { Component:
|
|
11795
|
+
return { Component: qh(e, b), error: null };
|
|
11784
11796
|
} catch (u) {
|
|
11785
11797
|
return {
|
|
11786
11798
|
Component: null,
|
|
11787
11799
|
error: u instanceof Error ? u : new Error(String(u))
|
|
11788
11800
|
};
|
|
11789
11801
|
}
|
|
11790
|
-
}, [e, r, b]), k = /* @__PURE__ */ n((u, E) => /* @__PURE__ */
|
|
11802
|
+
}, [e, r, b]), k = /* @__PURE__ */ n((u, E) => /* @__PURE__ */ T("div", { style: {
|
|
11791
11803
|
border: `1px solid ${E ? "lightgrey" : "#f44336"}`,
|
|
11792
11804
|
borderRadius: 6,
|
|
11793
11805
|
padding: "12px 16px",
|
|
11794
11806
|
margin: "8px 0",
|
|
11795
11807
|
backgroundColor: E ? "#222" : "rgba(244,67,54,0.06)"
|
|
11796
11808
|
}, children: [
|
|
11797
|
-
/* @__PURE__ */
|
|
11809
|
+
/* @__PURE__ */ T("div", { style: {
|
|
11798
11810
|
color: E ? "grey" : "#f44336",
|
|
11799
11811
|
fontSize: "0.85em",
|
|
11800
11812
|
fontWeight: 500,
|
|
@@ -11807,7 +11819,7 @@ const Uh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0,
|
|
|
11807
11819
|
u.message
|
|
11808
11820
|
] }),
|
|
11809
11821
|
/* @__PURE__ */ t("pre", { style: { fontSize: "0.8em", overflow: "auto", margin: 0, opacity: 0.7, whiteSpace: "pre-wrap" }, children: /* @__PURE__ */ t("code", { children: e }) })
|
|
11810
|
-
] }), "errorFallback"), D = St(), S = r || !b, v = !S && !!
|
|
11822
|
+
] }), "errorFallback"), D = St(), S = r || !b, v = !S && !!I.error, [A, p] = Y(() => S ? "partial" : "final"), w = ue(null), x = ue(null);
|
|
11811
11823
|
if (jo(() => {
|
|
11812
11824
|
if (A === "partial" && !S && !v) {
|
|
11813
11825
|
const u = w.current, E = (u == null ? void 0 : u.offsetHeight) ?? 0;
|
|
@@ -11827,14 +11839,14 @@ const Uh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0,
|
|
|
11827
11839
|
j && (j.style.height = "", j.style.transition = ""), p("final");
|
|
11828
11840
|
}, 1500);
|
|
11829
11841
|
return () => window.clearTimeout(_);
|
|
11830
|
-
}, [A]), e.includes(
|
|
11831
|
-
if (v &&
|
|
11832
|
-
const g =
|
|
11842
|
+
}, [A]), e.includes(Nh)) return null;
|
|
11843
|
+
if (v && I.error) return k(I.error, !1);
|
|
11844
|
+
const g = Kh(e), h = g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t(Wh, { progress: d, bytes: f }), M = /* @__PURE__ */ T($u, { theme: D, children: [
|
|
11833
11845
|
/* @__PURE__ */ t(Nc, {}),
|
|
11834
|
-
/* @__PURE__ */ t(Wr, { fallback: k, children: /* @__PURE__ */ t(ce, { "data-live-jsx-content": "", children:
|
|
11846
|
+
/* @__PURE__ */ t(Wr, { fallback: k, children: /* @__PURE__ */ t(ce, { "data-live-jsx-content": "", children: I.Component ? /* @__PURE__ */ t(I.Component, {}) : /* @__PURE__ */ t(Lt, { text: `\`\`\`tsx
|
|
11835
11847
|
${e}\`\`\``, sessionId: "" }) }) })
|
|
11836
11848
|
] });
|
|
11837
|
-
return /* @__PURE__ */
|
|
11849
|
+
return /* @__PURE__ */ T(
|
|
11838
11850
|
ce,
|
|
11839
11851
|
{
|
|
11840
11852
|
ref: w,
|
|
@@ -11916,7 +11928,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
11916
11928
|
radius: 10,
|
|
11917
11929
|
radiusSm: 6,
|
|
11918
11930
|
radiusLg: 12
|
|
11919
|
-
},
|
|
11931
|
+
}, Jh = {
|
|
11920
11932
|
palette: {
|
|
11921
11933
|
mode: "dark",
|
|
11922
11934
|
primary: {
|
|
@@ -12089,7 +12101,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12089
12101
|
}
|
|
12090
12102
|
}
|
|
12091
12103
|
}
|
|
12092
|
-
},
|
|
12104
|
+
}, Yh = Yc(Jh), Qh = [
|
|
12093
12105
|
"#e0a458",
|
|
12094
12106
|
// amber (primary accent)
|
|
12095
12107
|
"#7d9bd1",
|
|
@@ -12100,7 +12112,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12100
12112
|
// green
|
|
12101
12113
|
"#d97a7a"
|
|
12102
12114
|
// coral
|
|
12103
|
-
],
|
|
12115
|
+
], Xh = /* @__PURE__ */ n((e) => ({
|
|
12104
12116
|
backgroundColor: e.palette.surface.raised,
|
|
12105
12117
|
border: `1px solid ${e.palette.border.default}`,
|
|
12106
12118
|
color: e.palette.text.secondary,
|
|
@@ -12116,7 +12128,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12116
12128
|
lineHeight: 1.2,
|
|
12117
12129
|
transition: "background-color .12s, color .12s",
|
|
12118
12130
|
"&:hover": { backgroundColor: e.palette.surface.hover, color: e.palette.text.primary }
|
|
12119
|
-
}), "v2Chip"),
|
|
12131
|
+
}), "v2Chip"), Zh = /* @__PURE__ */ n((e) => ({
|
|
12120
12132
|
background: "transparent",
|
|
12121
12133
|
border: "none",
|
|
12122
12134
|
color: e.palette.text.secondary,
|
|
@@ -12127,15 +12139,15 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12127
12139
|
alignItems: "center",
|
|
12128
12140
|
justifyContent: "center",
|
|
12129
12141
|
"&:hover": { backgroundColor: e.palette.surface.raised, color: e.palette.text.primary }
|
|
12130
|
-
}), "v2IconBtn"),
|
|
12142
|
+
}), "v2IconBtn"), e0 = /* @__PURE__ */ n((e) => ({
|
|
12131
12143
|
backgroundColor: e.palette.background.paper,
|
|
12132
12144
|
border: `1px solid ${e.palette.border.default}`,
|
|
12133
12145
|
borderRadius: `${e.shape.borderRadius}px`
|
|
12134
|
-
}), "v2Card"),
|
|
12146
|
+
}), "v2Card"), t0 = /* @__PURE__ */ n((e) => ({
|
|
12135
12147
|
fontFamily: e.typography.fontFamilyMono,
|
|
12136
12148
|
fontSize: 10.5,
|
|
12137
12149
|
color: e.palette.text.disabled
|
|
12138
|
-
}), "v2MonoMeta"),
|
|
12150
|
+
}), "v2MonoMeta"), n0 = /* @__PURE__ */ n((e) => ({
|
|
12139
12151
|
fontSize: 10,
|
|
12140
12152
|
color: e.palette.text.disabled,
|
|
12141
12153
|
textTransform: "uppercase",
|
|
@@ -12145,7 +12157,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12145
12157
|
display: "flex",
|
|
12146
12158
|
alignItems: "center",
|
|
12147
12159
|
gap: 0.5
|
|
12148
|
-
}), "v2SectionLabel"),
|
|
12160
|
+
}), "v2SectionLabel"), r0 = /* @__PURE__ */ n(({
|
|
12149
12161
|
data: e,
|
|
12150
12162
|
color: r,
|
|
12151
12163
|
width: i = 100,
|
|
@@ -12153,19 +12165,19 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12153
12165
|
fill: f = !0,
|
|
12154
12166
|
strokeWidth: s = 1.5
|
|
12155
12167
|
}) => {
|
|
12156
|
-
const y = at(), b = r ?? y.palette.primary.main,
|
|
12168
|
+
const y = at(), b = r ?? y.palette.primary.main, I = zc();
|
|
12157
12169
|
if (!e || e.length === 0) return null;
|
|
12158
12170
|
const k = Math.max(...e), D = Math.min(...e), S = k - D || 1, v = e.length > 1 ? i / (e.length - 1) : i, p = e.map((x, g) => [
|
|
12159
12171
|
g * v,
|
|
12160
12172
|
d - (x - D) / S * (d - 4) - 2
|
|
12161
12173
|
]).map((x, g) => (g === 0 ? "M" : "L") + x[0].toFixed(1) + "," + x[1].toFixed(1)).join(" "), w = `${p} L${i},${d} L0,${d} Z`;
|
|
12162
|
-
return /* @__PURE__ */
|
|
12163
|
-
f && /* @__PURE__ */
|
|
12164
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
12174
|
+
return /* @__PURE__ */ T("svg", { width: i, height: d, style: { display: "block" }, "aria-hidden": !0, children: [
|
|
12175
|
+
f && /* @__PURE__ */ T(re, { children: [
|
|
12176
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ T("linearGradient", { id: I, x1: "0", x2: "0", y1: "0", y2: "1", children: [
|
|
12165
12177
|
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: b, stopOpacity: 0.25 }),
|
|
12166
12178
|
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: b, stopOpacity: 0 })
|
|
12167
12179
|
] }) }),
|
|
12168
|
-
/* @__PURE__ */ t("path", { d: w, fill: `url(#${
|
|
12180
|
+
/* @__PURE__ */ t("path", { d: w, fill: `url(#${I})` })
|
|
12169
12181
|
] }),
|
|
12170
12182
|
/* @__PURE__ */ t(
|
|
12171
12183
|
"path",
|
|
@@ -12179,7 +12191,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12179
12191
|
}
|
|
12180
12192
|
)
|
|
12181
12193
|
] });
|
|
12182
|
-
}, "Sparkline"), gl = /* @__PURE__ */ n(({ appBar: e, rail: r, children: i }) => /* @__PURE__ */
|
|
12194
|
+
}, "Sparkline"), gl = /* @__PURE__ */ n(({ appBar: e, rail: r, children: i }) => /* @__PURE__ */ T(
|
|
12183
12195
|
R,
|
|
12184
12196
|
{
|
|
12185
12197
|
sx: {
|
|
@@ -12191,7 +12203,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12191
12203
|
},
|
|
12192
12204
|
children: [
|
|
12193
12205
|
e,
|
|
12194
|
-
/* @__PURE__ */
|
|
12206
|
+
/* @__PURE__ */ T(R, { sx: { display: "flex", flex: 1, minHeight: 0, overflow: "hidden" }, children: [
|
|
12195
12207
|
r,
|
|
12196
12208
|
/* @__PURE__ */ t(R, { sx: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: i ?? /* @__PURE__ */ t(Ou, {}) })
|
|
12197
12209
|
] })
|
|
@@ -12199,14 +12211,14 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12199
12211
|
}
|
|
12200
12212
|
), "AppShellV2");
|
|
12201
12213
|
gl.displayName = "AppShellV2";
|
|
12202
|
-
const
|
|
12214
|
+
const o0 = 48, bl = /* @__PURE__ */ n(({ views: e, logo: r, footer: i }) => {
|
|
12203
12215
|
const { pathname: d } = hs();
|
|
12204
|
-
return /* @__PURE__ */
|
|
12216
|
+
return /* @__PURE__ */ T(
|
|
12205
12217
|
R,
|
|
12206
12218
|
{
|
|
12207
12219
|
component: "nav",
|
|
12208
12220
|
sx: /* @__PURE__ */ n((f) => ({
|
|
12209
|
-
width:
|
|
12221
|
+
width: o0,
|
|
12210
12222
|
flexShrink: 0,
|
|
12211
12223
|
backgroundColor: f.palette.background.paper,
|
|
12212
12224
|
borderRight: `1px solid ${f.palette.divider}`,
|
|
@@ -12270,9 +12282,9 @@ const yl = 48, xl = /* @__PURE__ */ n(({
|
|
|
12270
12282
|
searchPlaceholder: s = "Buscar dashboards, métricas…",
|
|
12271
12283
|
hideSearch: y = !1,
|
|
12272
12284
|
searchSlot: b,
|
|
12273
|
-
hamburger:
|
|
12285
|
+
hamburger: I,
|
|
12274
12286
|
compact: k = !1
|
|
12275
|
-
}) => /* @__PURE__ */
|
|
12287
|
+
}) => /* @__PURE__ */ T(
|
|
12276
12288
|
R,
|
|
12277
12289
|
{
|
|
12278
12290
|
component: "header",
|
|
@@ -12288,7 +12300,7 @@ const yl = 48, xl = /* @__PURE__ */ n(({
|
|
|
12288
12300
|
zIndex: 1
|
|
12289
12301
|
}), "sx"),
|
|
12290
12302
|
children: [
|
|
12291
|
-
|
|
12303
|
+
I && /* @__PURE__ */ t(R, { sx: { display: "flex", alignItems: "center", flexShrink: 0 }, children: I }),
|
|
12292
12304
|
e && /* @__PURE__ */ t(R, { sx: { display: "flex", alignItems: "center", flexShrink: 0 }, children: e }),
|
|
12293
12305
|
r && /* @__PURE__ */ t(
|
|
12294
12306
|
X,
|
|
@@ -12303,12 +12315,12 @@ const yl = 48, xl = /* @__PURE__ */ n(({
|
|
|
12303
12315
|
children: r
|
|
12304
12316
|
}
|
|
12305
12317
|
),
|
|
12306
|
-
i && /* @__PURE__ */
|
|
12318
|
+
i && /* @__PURE__ */ T(re, { children: [
|
|
12307
12319
|
/* @__PURE__ */ t(R, { sx: /* @__PURE__ */ n((S) => ({ width: "1px", height: 18, backgroundColor: S.palette.divider }), "sx") }),
|
|
12308
12320
|
/* @__PURE__ */ t(R, { sx: /* @__PURE__ */ n((S) => ({ display: "flex", alignItems: "center", gap: 0.75, fontSize: 12, color: S.palette.text.secondary, minWidth: 0, overflow: "hidden" }), "sx"), children: i })
|
|
12309
12321
|
] }),
|
|
12310
12322
|
/* @__PURE__ */ t(R, { sx: { flex: 1 } }),
|
|
12311
|
-
!(y || k) && (b ?? /* @__PURE__ */
|
|
12323
|
+
!(y || k) && (b ?? /* @__PURE__ */ T(
|
|
12312
12324
|
R,
|
|
12313
12325
|
{
|
|
12314
12326
|
role: "button",
|
|
@@ -12358,7 +12370,7 @@ const yl = 48, xl = /* @__PURE__ */ n(({
|
|
|
12358
12370
|
}
|
|
12359
12371
|
), "AppBarV2");
|
|
12360
12372
|
xl.displayName = "AppBarV2";
|
|
12361
|
-
const
|
|
12373
|
+
const a0 = 300, vl = [
|
|
12362
12374
|
{
|
|
12363
12375
|
id: "dashboards",
|
|
12364
12376
|
label: "Dashboards",
|
|
@@ -12375,18 +12387,18 @@ const r0 = 300, vl = [
|
|
|
12375
12387
|
open: e,
|
|
12376
12388
|
onClose: r,
|
|
12377
12389
|
navItems: i = vl,
|
|
12378
|
-
width: d =
|
|
12390
|
+
width: d = a0,
|
|
12379
12391
|
logo: f,
|
|
12380
12392
|
productName: s = "Agentic Explorer",
|
|
12381
12393
|
userProfile: y,
|
|
12382
12394
|
sessionsList: b,
|
|
12383
|
-
dashboardsList:
|
|
12395
|
+
dashboardsList: I,
|
|
12384
12396
|
closeOnNavigate: k = !0
|
|
12385
12397
|
}) => {
|
|
12386
|
-
const { pathname: D } = hs(), S = D.startsWith("/data-explorer") ? b : D.startsWith("/board") ?
|
|
12398
|
+
const { pathname: D } = hs(), S = D.startsWith("/data-explorer") ? b : D.startsWith("/board") ? I : null, v = Te(
|
|
12387
12399
|
() => i.map((A) => {
|
|
12388
12400
|
const p = A.isActive ? A.isActive(D) : D === A.to || D.startsWith(A.to + "/");
|
|
12389
|
-
return /* @__PURE__ */
|
|
12401
|
+
return /* @__PURE__ */ T(
|
|
12390
12402
|
R,
|
|
12391
12403
|
{
|
|
12392
12404
|
component: fs,
|
|
@@ -12419,7 +12431,7 @@ const r0 = 300, vl = [
|
|
|
12419
12431
|
}),
|
|
12420
12432
|
[i, D, k, r]
|
|
12421
12433
|
);
|
|
12422
|
-
return /* @__PURE__ */
|
|
12434
|
+
return /* @__PURE__ */ T(
|
|
12423
12435
|
Lu,
|
|
12424
12436
|
{
|
|
12425
12437
|
anchor: "left",
|
|
@@ -12440,7 +12452,7 @@ const r0 = 300, vl = [
|
|
|
12440
12452
|
}
|
|
12441
12453
|
},
|
|
12442
12454
|
children: [
|
|
12443
|
-
(f || s) && /* @__PURE__ */
|
|
12455
|
+
(f || s) && /* @__PURE__ */ T(
|
|
12444
12456
|
R,
|
|
12445
12457
|
{
|
|
12446
12458
|
sx: /* @__PURE__ */ n((A) => ({
|
|
@@ -12531,12 +12543,12 @@ const r0 = 300, vl = [
|
|
|
12531
12543
|
);
|
|
12532
12544
|
}, "MobileDrawerV2");
|
|
12533
12545
|
wl.displayName = "MobileDrawerV2";
|
|
12534
|
-
function
|
|
12546
|
+
function i0() {
|
|
12535
12547
|
const e = at(), r = Co(e.breakpoints.down("sm")), i = Co(e.breakpoints.between("sm", "lg")), d = Co(e.breakpoints.up("lg"));
|
|
12536
12548
|
return { mobile: r, tablet: i, desktop: d };
|
|
12537
12549
|
}
|
|
12538
|
-
n(
|
|
12539
|
-
function
|
|
12550
|
+
n(i0, "useResponsiveLayout");
|
|
12551
|
+
function s0(e, r, i) {
|
|
12540
12552
|
if (!e || e !== "todolistUpdated" || i || !r) return null;
|
|
12541
12553
|
try {
|
|
12542
12554
|
const d = JSON.parse(r);
|
|
@@ -12545,8 +12557,8 @@ function a0(e, r, i) {
|
|
|
12545
12557
|
return null;
|
|
12546
12558
|
}
|
|
12547
12559
|
}
|
|
12548
|
-
n(
|
|
12549
|
-
const
|
|
12560
|
+
n(s0, "tryParseMainAgentTodoList$1");
|
|
12561
|
+
const l0 = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Sl = mt.memo(() => {
|
|
12550
12562
|
const e = at(), r = pe((i) => {
|
|
12551
12563
|
var f;
|
|
12552
12564
|
const d = i.currentMessage ?? ((f = i.messages) == null ? void 0 : f[i.messages.length - 1]) ?? null;
|
|
@@ -12557,7 +12569,7 @@ const i0 = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Sl = mt.
|
|
|
12557
12569
|
}
|
|
12558
12570
|
).length : 0;
|
|
12559
12571
|
});
|
|
12560
|
-
return r <= 0 ? null : /* @__PURE__ */ t(Ne, { title: `${r} ferramentas`, placement: "top", children: /* @__PURE__ */
|
|
12572
|
+
return r <= 0 ? null : /* @__PURE__ */ t(Ne, { title: `${r} ferramentas`, placement: "top", children: /* @__PURE__ */ T(
|
|
12561
12573
|
R,
|
|
12562
12574
|
{
|
|
12563
12575
|
sx: /* @__PURE__ */ n((i) => ({
|
|
@@ -12595,7 +12607,7 @@ const i0 = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Sl = mt.
|
|
|
12595
12607
|
Sl.displayName = "ToolCountChip";
|
|
12596
12608
|
const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
12597
12609
|
const r = at(), i = pe((g) => g.turnOpen), d = pe((g) => g.connectionStatus), f = pe((g) => g.lastToolEvent), [s, y] = Y(void 0), b = Te(
|
|
12598
|
-
() =>
|
|
12610
|
+
() => s0(
|
|
12599
12611
|
f == null ? void 0 : f.eventName,
|
|
12600
12612
|
f == null ? void 0 : f.eventData,
|
|
12601
12613
|
f == null ? void 0 : f.subAgentId
|
|
@@ -12605,8 +12617,8 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12605
12617
|
oe(() => {
|
|
12606
12618
|
b && y(b);
|
|
12607
12619
|
}, [f]);
|
|
12608
|
-
const
|
|
12609
|
-
const g =
|
|
12620
|
+
const I = pe((g) => g.currentMessage), k = pe((g) => g.messages), D = Te(() => {
|
|
12621
|
+
const g = I ?? (k == null ? void 0 : k[k.length - 1]) ?? null;
|
|
12610
12622
|
if (!(g != null && g.parts)) return null;
|
|
12611
12623
|
for (let h = g.parts.length - 1; h >= 0; h--) {
|
|
12612
12624
|
const M = g.parts[h];
|
|
@@ -12618,7 +12630,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12618
12630
|
return { label: j };
|
|
12619
12631
|
}
|
|
12620
12632
|
return null;
|
|
12621
|
-
}, [
|
|
12633
|
+
}, [I, k]), S = (s == null ? void 0 : s.items.length) ?? 0, v = (s == null ? void 0 : s.items.filter(
|
|
12622
12634
|
(g) => String(g.status).toLowerCase() === "completed"
|
|
12623
12635
|
).length) ?? 0, A = Te(() => {
|
|
12624
12636
|
if (s != null && s.currentWorkingItemKey) {
|
|
@@ -12649,7 +12661,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12649
12661
|
return { color: r.palette.text.disabled, label: "Sessão inativa", pulse: !1 };
|
|
12650
12662
|
}
|
|
12651
12663
|
}, [d, i, r]);
|
|
12652
|
-
return i || S > 0 || p !== null || d === Se.Connecting || d === Se.Disconnected ? /* @__PURE__ */
|
|
12664
|
+
return i || S > 0 || p !== null || d === Se.Connecting || d === Se.Disconnected ? /* @__PURE__ */ T(
|
|
12653
12665
|
R,
|
|
12654
12666
|
{
|
|
12655
12667
|
sx: /* @__PURE__ */ n((g) => ({
|
|
@@ -12688,7 +12700,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12688
12700
|
}), "sx")
|
|
12689
12701
|
}
|
|
12690
12702
|
),
|
|
12691
|
-
/* @__PURE__ */ t("style", { children:
|
|
12703
|
+
/* @__PURE__ */ t("style", { children: l0 }),
|
|
12692
12704
|
/* @__PURE__ */ t(Ne, { title: w.label, placement: "top", children: /* @__PURE__ */ t(
|
|
12693
12705
|
R,
|
|
12694
12706
|
{
|
|
@@ -12702,7 +12714,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12702
12714
|
}
|
|
12703
12715
|
}
|
|
12704
12716
|
) }),
|
|
12705
|
-
/* @__PURE__ */ t(R, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */
|
|
12717
|
+
/* @__PURE__ */ t(R, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ T(Ee, { direction: "row", gap: 1, sx: { display: "inline-flex", flexWrap: "nowrap", alignItems: "center" }, children: [
|
|
12706
12718
|
/* @__PURE__ */ t(Sl, {}),
|
|
12707
12719
|
p && /* @__PURE__ */ t(
|
|
12708
12720
|
X,
|
|
@@ -12721,7 +12733,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12721
12733
|
}
|
|
12722
12734
|
)
|
|
12723
12735
|
] }) }),
|
|
12724
|
-
/* @__PURE__ */ t(R, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */
|
|
12736
|
+
/* @__PURE__ */ t(R, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ T(Ee, { direction: "row", gap: 1, sx: { display: "inline-flex", width: "100%", flexWrap: "nowrap", alignItems: "center" }, children: [
|
|
12725
12737
|
A ? /* @__PURE__ */ t(
|
|
12726
12738
|
X,
|
|
12727
12739
|
{
|
|
@@ -12739,7 +12751,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12739
12751
|
children: A
|
|
12740
12752
|
}
|
|
12741
12753
|
) : /* @__PURE__ */ t(R, { sx: { width: "100%" } }),
|
|
12742
|
-
S > 0 && /* @__PURE__ */ t(Ne, { title: `Tarefas: ${v}/${S}`, placement: "top", children: /* @__PURE__ */
|
|
12754
|
+
S > 0 && /* @__PURE__ */ t(Ne, { title: `Tarefas: ${v}/${S}`, placement: "top", children: /* @__PURE__ */ T(
|
|
12743
12755
|
R,
|
|
12744
12756
|
{
|
|
12745
12757
|
sx: /* @__PURE__ */ n((g) => ({
|
|
@@ -12758,12 +12770,12 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12758
12770
|
}), "sx"),
|
|
12759
12771
|
children: [
|
|
12760
12772
|
/* @__PURE__ */ t(R, { component: "span", children: v }),
|
|
12761
|
-
/* @__PURE__ */
|
|
12773
|
+
/* @__PURE__ */ T(R, { component: "span", sx: /* @__PURE__ */ n((g) => ({ color: g.palette.text.disabled }), "sx"), children: [
|
|
12762
12774
|
"/",
|
|
12763
12775
|
S
|
|
12764
12776
|
] }),
|
|
12765
12777
|
/* @__PURE__ */ t(R, { sx: { ml: 0.1 }, children: "=" }),
|
|
12766
|
-
/* @__PURE__ */
|
|
12778
|
+
/* @__PURE__ */ T(R, { sx: { ml: 0.1 }, children: [
|
|
12767
12779
|
(v / S * 100).toFixed(1),
|
|
12768
12780
|
"%"
|
|
12769
12781
|
] })
|
|
@@ -12776,15 +12788,15 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12776
12788
|
) : null;
|
|
12777
12789
|
}, "RunProgressStripV2");
|
|
12778
12790
|
Ia.displayName = "RunProgressStripV2";
|
|
12779
|
-
const
|
|
12791
|
+
const c0 = 440, d0 = 480, kl = An((e, r) => {
|
|
12780
12792
|
const {
|
|
12781
12793
|
position: i,
|
|
12782
12794
|
chatPositionOffSet: d,
|
|
12783
12795
|
fabContent: f,
|
|
12784
|
-
width: s =
|
|
12785
|
-
height: y =
|
|
12796
|
+
width: s = c0,
|
|
12797
|
+
height: y = d0,
|
|
12786
12798
|
title: b = "Assistente",
|
|
12787
|
-
onVisibleQuestionChange:
|
|
12799
|
+
onVisibleQuestionChange: I,
|
|
12788
12800
|
onFloatingOpened: k,
|
|
12789
12801
|
...D
|
|
12790
12802
|
} = e, S = { bottom: 20, right: 20, ...i }, [v, A] = Y(!1), [p, w] = Y(null), x = ye(
|
|
@@ -12794,14 +12806,14 @@ const s0 = 440, l0 = 480, kl = An((e, r) => {
|
|
|
12794
12806
|
const { promptAsString: B } = e.onRenderPrompt(_);
|
|
12795
12807
|
j = B ?? null;
|
|
12796
12808
|
}
|
|
12797
|
-
w(j ?? ""),
|
|
12809
|
+
w(j ?? ""), I == null || I(_);
|
|
12798
12810
|
},
|
|
12799
|
-
[
|
|
12811
|
+
[I, e.onRenderPrompt]
|
|
12800
12812
|
), g = (p == null ? void 0 : p.trim()) || b, h = S.bottom != null ? S.bottom + ((d == null ? void 0 : d.bottom) ?? 0) : void 0, M = S.right != null ? S.right + ((d == null ? void 0 : d.right) ?? 0) : void 0, u = S.left != null ? S.left + ((d == null ? void 0 : d.left) ?? 0) : void 0, E = S.top != null ? S.top + ((d == null ? void 0 : d.top) ?? 0) : void 0, c = /* @__PURE__ */ n(() => {
|
|
12801
12813
|
A(!0), k == null || k();
|
|
12802
12814
|
}, "handleOpen");
|
|
12803
|
-
return /* @__PURE__ */
|
|
12804
|
-
/* @__PURE__ */ t(us, { direction: "up", in: v, unmountOnExit: !1, children: /* @__PURE__ */
|
|
12815
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
12816
|
+
/* @__PURE__ */ t(us, { direction: "up", in: v, unmountOnExit: !1, children: /* @__PURE__ */ T(
|
|
12805
12817
|
Vn,
|
|
12806
12818
|
{
|
|
12807
12819
|
elevation: 0,
|
|
@@ -12825,7 +12837,7 @@ const s0 = 440, l0 = 480, kl = An((e, r) => {
|
|
|
12825
12837
|
pointerEvents: v ? "auto" : "none"
|
|
12826
12838
|
}), "sx"),
|
|
12827
12839
|
children: [
|
|
12828
|
-
/* @__PURE__ */
|
|
12840
|
+
/* @__PURE__ */ T(
|
|
12829
12841
|
R,
|
|
12830
12842
|
{
|
|
12831
12843
|
sx: /* @__PURE__ */ n((_) => ({
|
|
@@ -12935,10 +12947,10 @@ const Cl = /* @__PURE__ */ n(({
|
|
|
12935
12947
|
bottomSlot: f
|
|
12936
12948
|
}) => {
|
|
12937
12949
|
const s = pe((b) => {
|
|
12938
|
-
var
|
|
12939
|
-
return (
|
|
12950
|
+
var I;
|
|
12951
|
+
return (I = b.session) == null ? void 0 : I.overview;
|
|
12940
12952
|
});
|
|
12941
|
-
return /* @__PURE__ */
|
|
12953
|
+
return /* @__PURE__ */ T(
|
|
12942
12954
|
R,
|
|
12943
12955
|
{
|
|
12944
12956
|
sx: /* @__PURE__ */ n((b) => ({
|
|
@@ -12951,7 +12963,7 @@ const Cl = /* @__PURE__ */ n(({
|
|
|
12951
12963
|
backgroundColor: b.palette.background.default
|
|
12952
12964
|
}), "sx"),
|
|
12953
12965
|
children: [
|
|
12954
|
-
!d && /* @__PURE__ */
|
|
12966
|
+
!d && /* @__PURE__ */ T(
|
|
12955
12967
|
R,
|
|
12956
12968
|
{
|
|
12957
12969
|
sx: /* @__PURE__ */ n((b) => ({
|
|
@@ -13008,7 +13020,7 @@ const Cl = /* @__PURE__ */ n(({
|
|
|
13008
13020
|
display: "flex",
|
|
13009
13021
|
flexDirection: "column"
|
|
13010
13022
|
},
|
|
13011
|
-
children: f ? /* @__PURE__ */
|
|
13023
|
+
children: f ? /* @__PURE__ */ T(
|
|
13012
13024
|
R,
|
|
13013
13025
|
{
|
|
13014
13026
|
sx: {
|
|
@@ -13030,7 +13042,7 @@ const Cl = /* @__PURE__ */ n(({
|
|
|
13030
13042
|
);
|
|
13031
13043
|
}, "AiChatV2Pane");
|
|
13032
13044
|
Cl.displayName = "AiChatV2Pane";
|
|
13033
|
-
const
|
|
13045
|
+
const u0 = /* @__PURE__ */ n(({
|
|
13034
13046
|
text: e,
|
|
13035
13047
|
charsPerSecond: r = 20
|
|
13036
13048
|
}) => {
|
|
@@ -13046,7 +13058,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13046
13058
|
}, s);
|
|
13047
13059
|
return () => window.clearInterval(b);
|
|
13048
13060
|
}, [e, r]), /* @__PURE__ */ t(re, { children: i });
|
|
13049
|
-
}, "TypewriterText"),
|
|
13061
|
+
}, "TypewriterText"), p0 = "15vw", El = /* @__PURE__ */ n(({
|
|
13050
13062
|
groups: e,
|
|
13051
13063
|
newActiveSession: r,
|
|
13052
13064
|
activeId: i,
|
|
@@ -13055,7 +13067,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13055
13067
|
onRename: s,
|
|
13056
13068
|
onDelete: y,
|
|
13057
13069
|
footer: b,
|
|
13058
|
-
header:
|
|
13070
|
+
header: I,
|
|
13059
13071
|
searchPlaceholder: k,
|
|
13060
13072
|
totalCount: D
|
|
13061
13073
|
}) => {
|
|
@@ -13098,12 +13110,12 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13098
13110
|
const be = S.toLowerCase();
|
|
13099
13111
|
return e.map((Je) => ({ ...Je, items: Je.items.filter((K) => K.title.toLowerCase().includes(be)) })).filter((Je) => Je.items.length > 0);
|
|
13100
13112
|
}, [e, S, r]);
|
|
13101
|
-
return /* @__PURE__ */
|
|
13113
|
+
return /* @__PURE__ */ T(
|
|
13102
13114
|
R,
|
|
13103
13115
|
{
|
|
13104
13116
|
component: "aside",
|
|
13105
13117
|
sx: /* @__PURE__ */ n((H) => ({
|
|
13106
|
-
maxWidth:
|
|
13118
|
+
maxWidth: p0,
|
|
13107
13119
|
flexShrink: 0,
|
|
13108
13120
|
backgroundColor: H.palette.background.paper,
|
|
13109
13121
|
borderRight: `1px solid ${H.palette.divider}`,
|
|
@@ -13112,12 +13124,12 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13112
13124
|
minHeight: 0
|
|
13113
13125
|
}), "sx"),
|
|
13114
13126
|
children: [
|
|
13115
|
-
/* @__PURE__ */
|
|
13116
|
-
|
|
13117
|
-
/* @__PURE__ */ t(R, { sx: { flex: 1 }, children:
|
|
13127
|
+
/* @__PURE__ */ T(R, { sx: { px: 1.5, pt: 1.5, pb: 1 }, children: [
|
|
13128
|
+
I && /* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 1, mb: 1.25 }, children: [
|
|
13129
|
+
/* @__PURE__ */ t(R, { sx: { flex: 1 }, children: I }),
|
|
13118
13130
|
f && /* @__PURE__ */ t(Ne, { title: "Nova conversa", children: /* @__PURE__ */ t(Ge, { size: "small", onClick: f, sx: /* @__PURE__ */ n((H) => ({ color: H.palette.text.secondary, p: 0.5 }), "sx"), children: /* @__PURE__ */ t(bs, {}) }) })
|
|
13119
13131
|
] }),
|
|
13120
|
-
/* @__PURE__ */
|
|
13132
|
+
/* @__PURE__ */ T(
|
|
13121
13133
|
R,
|
|
13122
13134
|
{
|
|
13123
13135
|
sx: /* @__PURE__ */ n((H) => ({
|
|
@@ -13155,8 +13167,8 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13155
13167
|
}
|
|
13156
13168
|
)
|
|
13157
13169
|
] }),
|
|
13158
|
-
/* @__PURE__ */
|
|
13159
|
-
W.map((H) => /* @__PURE__ */
|
|
13170
|
+
/* @__PURE__ */ T(R, { sx: { flex: 1, overflow: "auto", px: 1, pb: 1.5 }, children: [
|
|
13171
|
+
W.map((H) => /* @__PURE__ */ T(R, { sx: { mt: 1.25 }, children: [
|
|
13160
13172
|
/* @__PURE__ */ t(
|
|
13161
13173
|
X,
|
|
13162
13174
|
{
|
|
@@ -13173,7 +13185,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13173
13185
|
),
|
|
13174
13186
|
H.items.map((ee) => {
|
|
13175
13187
|
const be = ee.id === i, Fe = g === ee.id, Je = (s || y) && !Fe;
|
|
13176
|
-
return /* @__PURE__ */
|
|
13188
|
+
return /* @__PURE__ */ T(
|
|
13177
13189
|
R,
|
|
13178
13190
|
{
|
|
13179
13191
|
sx: /* @__PURE__ */ n((K) => ({
|
|
@@ -13191,7 +13203,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13191
13203
|
}
|
|
13192
13204
|
}), "sx"),
|
|
13193
13205
|
children: [
|
|
13194
|
-
/* @__PURE__ */
|
|
13206
|
+
/* @__PURE__ */ T(
|
|
13195
13207
|
R,
|
|
13196
13208
|
{
|
|
13197
13209
|
role: Fe ? void 0 : "button",
|
|
@@ -13249,7 +13261,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13249
13261
|
boxSizing: "border-box"
|
|
13250
13262
|
}), "sx")
|
|
13251
13263
|
}
|
|
13252
|
-
) : /* @__PURE__ */
|
|
13264
|
+
) : /* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 0.625 }, children: [
|
|
13253
13265
|
ee.kind === "composer" && /* @__PURE__ */ t(Ne, { title: "Sessão do composer", placement: "top", children: /* @__PURE__ */ t(
|
|
13254
13266
|
R,
|
|
13255
13267
|
{
|
|
@@ -13290,7 +13302,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13290
13302
|
// left so wrapped titles read cleanly.
|
|
13291
13303
|
textAlign: "left"
|
|
13292
13304
|
}), "sx"),
|
|
13293
|
-
children: ee.kind == "typewritter" ? /* @__PURE__ */ t(
|
|
13305
|
+
children: ee.kind == "typewritter" ? /* @__PURE__ */ t(u0, { text: ee.title, charsPerSecond: 30 }) : ee.title
|
|
13294
13306
|
}
|
|
13295
13307
|
)
|
|
13296
13308
|
] }),
|
|
@@ -13360,7 +13372,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13360
13372
|
children: b
|
|
13361
13373
|
}
|
|
13362
13374
|
),
|
|
13363
|
-
/* @__PURE__ */
|
|
13375
|
+
/* @__PURE__ */ T(
|
|
13364
13376
|
as,
|
|
13365
13377
|
{
|
|
13366
13378
|
open: !!p,
|
|
@@ -13379,7 +13391,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13379
13391
|
}
|
|
13380
13392
|
},
|
|
13381
13393
|
children: [
|
|
13382
|
-
s && /* @__PURE__ */
|
|
13394
|
+
s && /* @__PURE__ */ T(
|
|
13383
13395
|
Xt,
|
|
13384
13396
|
{
|
|
13385
13397
|
onClick: /* @__PURE__ */ n(() => {
|
|
@@ -13398,7 +13410,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13398
13410
|
]
|
|
13399
13411
|
}
|
|
13400
13412
|
),
|
|
13401
|
-
y && /* @__PURE__ */
|
|
13413
|
+
y && /* @__PURE__ */ T(
|
|
13402
13414
|
Xt,
|
|
13403
13415
|
{
|
|
13404
13416
|
onClick: /* @__PURE__ */ n(() => {
|
|
@@ -13420,7 +13432,7 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13420
13432
|
]
|
|
13421
13433
|
}
|
|
13422
13434
|
),
|
|
13423
|
-
/* @__PURE__ */
|
|
13435
|
+
/* @__PURE__ */ T(
|
|
13424
13436
|
ps,
|
|
13425
13437
|
{
|
|
13426
13438
|
open: !!j,
|
|
@@ -13436,13 +13448,13 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13436
13448
|
},
|
|
13437
13449
|
children: [
|
|
13438
13450
|
/* @__PURE__ */ t(Pu, { sx: /* @__PURE__ */ n((H) => ({ fontSize: 14, color: H.palette.text.primary }), "sx"), children: "Excluir conversa?" }),
|
|
13439
|
-
/* @__PURE__ */ t(Fu, { children: /* @__PURE__ */
|
|
13451
|
+
/* @__PURE__ */ t(Fu, { children: /* @__PURE__ */ T(X, { sx: /* @__PURE__ */ n((H) => ({ fontSize: 12, color: H.palette.text.secondary }), "sx"), children: [
|
|
13440
13452
|
"Tem certeza que deseja excluir",
|
|
13441
13453
|
" ",
|
|
13442
13454
|
/* @__PURE__ */ t(R, { component: "strong", sx: /* @__PURE__ */ n((H) => ({ color: H.palette.text.primary }), "sx"), children: j == null ? void 0 : j.title }),
|
|
13443
13455
|
"? Esta ação não pode ser desfeita."
|
|
13444
13456
|
] }) }),
|
|
13445
|
-
/* @__PURE__ */
|
|
13457
|
+
/* @__PURE__ */ T(ju, { children: [
|
|
13446
13458
|
/* @__PURE__ */ t(
|
|
13447
13459
|
Zt,
|
|
13448
13460
|
{
|
|
@@ -13473,13 +13485,13 @@ const c0 = /* @__PURE__ */ n(({
|
|
|
13473
13485
|
);
|
|
13474
13486
|
}, "ChatsHistoryV2");
|
|
13475
13487
|
El.displayName = "ChatsHistoryV2";
|
|
13476
|
-
const
|
|
13477
|
-
function
|
|
13488
|
+
const h0 = "@keyframes v2tspin{to{transform:rotate(360deg)}}";
|
|
13489
|
+
function f0(e) {
|
|
13478
13490
|
const r = String(e).toLowerCase();
|
|
13479
13491
|
return r === "completed" ? "completed" : r === "inprogress" || r === "in_progress" ? "in_progress" : r === "failed" ? "failed" : "pending";
|
|
13480
13492
|
}
|
|
13481
|
-
n(
|
|
13482
|
-
function
|
|
13493
|
+
n(f0, "normalizeStatus");
|
|
13494
|
+
function m0({ status: e }) {
|
|
13483
13495
|
return e === "completed" ? /* @__PURE__ */ t(
|
|
13484
13496
|
R,
|
|
13485
13497
|
{
|
|
@@ -13544,7 +13556,7 @@ function h0({ status: e }) {
|
|
|
13544
13556
|
}
|
|
13545
13557
|
);
|
|
13546
13558
|
}
|
|
13547
|
-
n(
|
|
13559
|
+
n(m0, "TaskDot");
|
|
13548
13560
|
const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
13549
13561
|
const i = ue(null);
|
|
13550
13562
|
if (oe(() => {
|
|
@@ -13552,11 +13564,11 @@ const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
|
13552
13564
|
f && f.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
13553
13565
|
}, [e == null ? void 0 : e.currentWorkingItemKey]), !e || !e.items || e.items.length === 0) return null;
|
|
13554
13566
|
const d = e.currentWorkingItemKey;
|
|
13555
|
-
return /* @__PURE__ */
|
|
13556
|
-
/* @__PURE__ */ t("style", { children:
|
|
13567
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
13568
|
+
/* @__PURE__ */ t("style", { children: h0 }),
|
|
13557
13569
|
/* @__PURE__ */ t(R, { sx: { display: "flex", flexDirection: "column", overflow: "scroll" }, children: e.items.map((f) => {
|
|
13558
|
-
const s =
|
|
13559
|
-
return /* @__PURE__ */
|
|
13570
|
+
const s = f0(f.status), y = f.key === d;
|
|
13571
|
+
return /* @__PURE__ */ T(
|
|
13560
13572
|
R,
|
|
13561
13573
|
{
|
|
13562
13574
|
ref: y ? i : void 0,
|
|
@@ -13572,8 +13584,8 @@ const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
|
13572
13584
|
mb: 0.25
|
|
13573
13585
|
}), "sx"),
|
|
13574
13586
|
children: [
|
|
13575
|
-
/* @__PURE__ */ t(
|
|
13576
|
-
/* @__PURE__ */
|
|
13587
|
+
/* @__PURE__ */ t(m0, { status: s }),
|
|
13588
|
+
/* @__PURE__ */ T(R, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
13577
13589
|
/* @__PURE__ */ t(
|
|
13578
13590
|
X,
|
|
13579
13591
|
{
|
|
@@ -13622,12 +13634,12 @@ const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
|
13622
13634
|
] });
|
|
13623
13635
|
}, "TaskListV2");
|
|
13624
13636
|
Zn.displayName = "TaskListV2";
|
|
13625
|
-
const
|
|
13637
|
+
const g0 = `
|
|
13626
13638
|
@keyframes v2sascan {
|
|
13627
13639
|
0% { transform: translateX(-100%); }
|
|
13628
13640
|
100% { transform: translateX(100%); }
|
|
13629
13641
|
}`;
|
|
13630
|
-
function
|
|
13642
|
+
function b0(e) {
|
|
13631
13643
|
if (!e) return null;
|
|
13632
13644
|
try {
|
|
13633
13645
|
return JSON.parse(e);
|
|
@@ -13635,16 +13647,16 @@ function m0(e) {
|
|
|
13635
13647
|
return null;
|
|
13636
13648
|
}
|
|
13637
13649
|
}
|
|
13638
|
-
n(
|
|
13650
|
+
n(b0, "tryParse");
|
|
13639
13651
|
const Ta = /* @__PURE__ */ n(({
|
|
13640
13652
|
subAgent: e,
|
|
13641
13653
|
defaultLevel: r = 1,
|
|
13642
13654
|
hideMessageLevel: i = !0
|
|
13643
13655
|
}) => {
|
|
13644
|
-
const [d, f] = Y(r), [s, y] = Y(null), b = pe((A) => A.lastToolEvent),
|
|
13656
|
+
const [d, f] = Y(r), [s, y] = Y(null), b = pe((A) => A.lastToolEvent), I = !e.completed;
|
|
13645
13657
|
oe(() => {
|
|
13646
13658
|
if ((b == null ? void 0 : b.eventName) === "todolistUpdated" && b.subAgentId === e.id) {
|
|
13647
|
-
const A =
|
|
13659
|
+
const A = b0(b.eventData);
|
|
13648
13660
|
A && y(A);
|
|
13649
13661
|
}
|
|
13650
13662
|
}, [b, e.id]);
|
|
@@ -13654,20 +13666,20 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13654
13666
|
}, [s]), D = ye(() => {
|
|
13655
13667
|
f((A) => A >= (i ? 1 : 2) ? 0 : A + 1);
|
|
13656
13668
|
}, [i]), S = d >= 1 && ((s == null ? void 0 : s.items.length) ?? 0) > 0, v = d >= 2 && !i;
|
|
13657
|
-
return /* @__PURE__ */
|
|
13669
|
+
return /* @__PURE__ */ T(
|
|
13658
13670
|
R,
|
|
13659
13671
|
{
|
|
13660
13672
|
sx: /* @__PURE__ */ n((A) => ({
|
|
13661
13673
|
position: "relative",
|
|
13662
13674
|
backgroundColor: A.palette.background.default,
|
|
13663
|
-
border: `1px solid ${
|
|
13675
|
+
border: `1px solid ${I ? A.palette.primary.dark : A.palette.border.soft}`,
|
|
13664
13676
|
borderRadius: `${A.shape.borderRadius}px`,
|
|
13665
13677
|
overflow: "hidden",
|
|
13666
13678
|
transition: "border-color .15s"
|
|
13667
13679
|
}), "sx"),
|
|
13668
13680
|
children: [
|
|
13669
|
-
/* @__PURE__ */ t("style", { children:
|
|
13670
|
-
|
|
13681
|
+
/* @__PURE__ */ t("style", { children: g0 }),
|
|
13682
|
+
I && /* @__PURE__ */ t(
|
|
13671
13683
|
R,
|
|
13672
13684
|
{
|
|
13673
13685
|
"aria-hidden": !0,
|
|
@@ -13692,7 +13704,7 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13692
13704
|
)
|
|
13693
13705
|
}
|
|
13694
13706
|
),
|
|
13695
|
-
/* @__PURE__ */
|
|
13707
|
+
/* @__PURE__ */ T(
|
|
13696
13708
|
R,
|
|
13697
13709
|
{
|
|
13698
13710
|
role: "button",
|
|
@@ -13718,12 +13730,12 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13718
13730
|
width: 18,
|
|
13719
13731
|
height: 18,
|
|
13720
13732
|
flexShrink: 0,
|
|
13721
|
-
color:
|
|
13733
|
+
color: I ? A.palette.primary.main : A.palette.success.main,
|
|
13722
13734
|
display: "inline-flex",
|
|
13723
13735
|
alignItems: "center",
|
|
13724
13736
|
justifyContent: "center"
|
|
13725
13737
|
}), "sx"),
|
|
13726
|
-
children:
|
|
13738
|
+
children: I ? /* @__PURE__ */ t(da, { size: 14 }) : /* @__PURE__ */ t(Yn, { sx: { fontSize: 16 } })
|
|
13727
13739
|
}
|
|
13728
13740
|
),
|
|
13729
13741
|
/* @__PURE__ */ t(
|
|
@@ -13732,7 +13744,7 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13732
13744
|
sx: /* @__PURE__ */ n((A) => ({
|
|
13733
13745
|
fontSize: 12,
|
|
13734
13746
|
fontWeight: 500,
|
|
13735
|
-
color:
|
|
13747
|
+
color: I ? A.palette.text.primary : A.palette.text.secondary,
|
|
13736
13748
|
overflow: "hidden",
|
|
13737
13749
|
textOverflow: "ellipsis",
|
|
13738
13750
|
whiteSpace: "nowrap",
|
|
@@ -13742,7 +13754,7 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13742
13754
|
children: e.name ?? e.id
|
|
13743
13755
|
}
|
|
13744
13756
|
),
|
|
13745
|
-
k.total > 0 && /* @__PURE__ */
|
|
13757
|
+
k.total > 0 && /* @__PURE__ */ T(
|
|
13746
13758
|
X,
|
|
13747
13759
|
{
|
|
13748
13760
|
sx: /* @__PURE__ */ n((A) => ({
|
|
@@ -13817,10 +13829,10 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13817
13829
|
}, "SubAgentBoxV2");
|
|
13818
13830
|
Ta.displayName = "SubAgentBoxV2";
|
|
13819
13831
|
const ji = "@keyframes v2aaspin{to{transform:rotate(360deg)}}", Li = "@keyframes v2aafade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}", $i = "@keyframes v2aapulse{0%,100%{opacity:.4}50%{opacity:1}}";
|
|
13820
|
-
function
|
|
13832
|
+
function y0(e) {
|
|
13821
13833
|
return e == null || !Number.isFinite(e) || e < 0 ? null : e < 1e3 ? `${Math.round(e)}ms` : `${(e / 1e3).toFixed(e < 1e4 ? 1 : 0)}s`;
|
|
13822
13834
|
}
|
|
13823
|
-
n(
|
|
13835
|
+
n(y0, "formatDuration");
|
|
13824
13836
|
function Ar(e) {
|
|
13825
13837
|
const r = e.trim();
|
|
13826
13838
|
if (!r) return e;
|
|
@@ -13834,14 +13846,14 @@ function Ar(e) {
|
|
|
13834
13846
|
}
|
|
13835
13847
|
}
|
|
13836
13848
|
n(Ar, "prettyJsonish");
|
|
13837
|
-
const Oo = 500,
|
|
13838
|
-
function
|
|
13849
|
+
const Oo = 500, x0 = 12, v0 = 4, Bi = 8;
|
|
13850
|
+
function w0(e) {
|
|
13839
13851
|
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}Mb` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}kb` : `${e}b`;
|
|
13840
13852
|
}
|
|
13841
|
-
n(
|
|
13842
|
-
function
|
|
13853
|
+
n(w0, "compactBytes");
|
|
13854
|
+
function S0({ bytes: e }) {
|
|
13843
13855
|
if (e <= 0) return null;
|
|
13844
|
-
const r = Math.floor(e / Oo), i = e % Oo / Oo, d = Math.min(
|
|
13856
|
+
const r = Math.floor(e / Oo), i = e % Oo / Oo, d = Math.min(x0, r + (i > 0 ? 1 : 0)) || 1;
|
|
13845
13857
|
return /* @__PURE__ */ t(
|
|
13846
13858
|
R,
|
|
13847
13859
|
{
|
|
@@ -13853,13 +13865,13 @@ function v0({ bytes: e }) {
|
|
|
13853
13865
|
},
|
|
13854
13866
|
"aria-hidden": !0,
|
|
13855
13867
|
children: Array.from({ length: d }, (f, s) => {
|
|
13856
|
-
const y = s < r, b = !y && s === r && i > 0,
|
|
13868
|
+
const y = s < r, b = !y && s === r && i > 0, I = y ? 1 : b ? i : 0;
|
|
13857
13869
|
return /* @__PURE__ */ t(
|
|
13858
13870
|
R,
|
|
13859
13871
|
{
|
|
13860
13872
|
sx: /* @__PURE__ */ n((k) => ({
|
|
13861
13873
|
position: "relative",
|
|
13862
|
-
width: `${
|
|
13874
|
+
width: `${v0}px`,
|
|
13863
13875
|
height: `${Bi}px`,
|
|
13864
13876
|
borderRadius: "1px",
|
|
13865
13877
|
border: `1px solid ${k.palette.border.soft}`,
|
|
@@ -13875,7 +13887,7 @@ function v0({ bytes: e }) {
|
|
|
13875
13887
|
left: 0,
|
|
13876
13888
|
right: 0,
|
|
13877
13889
|
bottom: 0,
|
|
13878
|
-
height: `${
|
|
13890
|
+
height: `${I * 100}%`,
|
|
13879
13891
|
backgroundColor: k.palette.primary.main,
|
|
13880
13892
|
opacity: y ? 0.85 : 0.7,
|
|
13881
13893
|
transition: "height .15s ease-out",
|
|
@@ -13890,10 +13902,10 @@ function v0({ bytes: e }) {
|
|
|
13890
13902
|
}
|
|
13891
13903
|
);
|
|
13892
13904
|
}
|
|
13893
|
-
n(
|
|
13894
|
-
function
|
|
13905
|
+
n(S0, "V2ByteBuckets");
|
|
13906
|
+
function k0({ name: e, status: r }) {
|
|
13895
13907
|
const i = Xo[e] ?? Xo.generic, d = r === "running", f = r === "done";
|
|
13896
|
-
return /* @__PURE__ */
|
|
13908
|
+
return /* @__PURE__ */ T(
|
|
13897
13909
|
R,
|
|
13898
13910
|
{
|
|
13899
13911
|
sx: {
|
|
@@ -13936,11 +13948,11 @@ function w0({ name: e, status: r }) {
|
|
|
13936
13948
|
}
|
|
13937
13949
|
);
|
|
13938
13950
|
}
|
|
13939
|
-
n(
|
|
13940
|
-
function
|
|
13951
|
+
n(k0, "ToolGlyph");
|
|
13952
|
+
function C0({ part: e, isLast: r, compact: i = !0 }) {
|
|
13941
13953
|
const [d, f] = Y(!1), s = e.functionDetails;
|
|
13942
13954
|
if (!s) return null;
|
|
13943
|
-
const y = s.start ? new Date(s.start).getTime() : void 0, b = s.end ? new Date(s.end).getTime() : void 0,
|
|
13955
|
+
const y = s.start ? new Date(s.start).getTime() : void 0, b = s.end ? new Date(s.end).getTime() : void 0, I = s.status === "Done" ? "done" : s.status === "Executing" || s.status === "Composing" ? "running" : "pending", k = I === "done" && y && b ? y0(b - y) : null, D = I === "running", S = s.status === "Composing", v = Te(() => {
|
|
13944
13956
|
if (s.text) return Ar(s.text);
|
|
13945
13957
|
if (s.args == null) return "";
|
|
13946
13958
|
if (typeof s.args == "string") return Ar(s.args);
|
|
@@ -13963,7 +13975,7 @@ function S0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
13963
13975
|
const h = st.getPartTextContent(e);
|
|
13964
13976
|
return typeof h == "string" && h.length > 0 ? h.length : v.length;
|
|
13965
13977
|
}, [e, v]);
|
|
13966
|
-
return /* @__PURE__ */
|
|
13978
|
+
return /* @__PURE__ */ T(
|
|
13967
13979
|
R,
|
|
13968
13980
|
{
|
|
13969
13981
|
className: "v2aa-step",
|
|
@@ -14004,10 +14016,10 @@ function S0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14004
14016
|
// spinner only — no left-border, no background fill.
|
|
14005
14017
|
"&:hover": { backgroundColor: h.palette.surface.raised }
|
|
14006
14018
|
}), "sx"),
|
|
14007
|
-
children: /* @__PURE__ */
|
|
14008
|
-
/* @__PURE__ */ t(
|
|
14009
|
-
/* @__PURE__ */
|
|
14010
|
-
/* @__PURE__ */
|
|
14019
|
+
children: /* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 1.25 }, children: [
|
|
14020
|
+
/* @__PURE__ */ t(k0, { name: s.name, status: I }),
|
|
14021
|
+
/* @__PURE__ */ T(R, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
14022
|
+
/* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "baseline", gap: 1, flexWrap: "wrap" }, children: [
|
|
14011
14023
|
/* @__PURE__ */ t(
|
|
14012
14024
|
X,
|
|
14013
14025
|
{
|
|
@@ -14015,16 +14027,16 @@ function S0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14015
14027
|
fontSize: 12.5,
|
|
14016
14028
|
fontWeight: D ? 500 : 400,
|
|
14017
14029
|
fontStyle: S ? "italic" : "normal",
|
|
14018
|
-
color:
|
|
14030
|
+
color: I === "pending" ? h.palette.text.disabled : D ? h.palette.text.primary : h.palette.text.secondary,
|
|
14019
14031
|
textAlign: "left"
|
|
14020
14032
|
}), "sx"),
|
|
14021
14033
|
children: x
|
|
14022
14034
|
}
|
|
14023
14035
|
),
|
|
14024
14036
|
/* @__PURE__ */ t(R, { sx: { flex: 1 } }),
|
|
14025
|
-
S && g > 0 && /* @__PURE__ */
|
|
14026
|
-
/* @__PURE__ */ t(
|
|
14027
|
-
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children:
|
|
14037
|
+
S && g > 0 && /* @__PURE__ */ T(R, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: [
|
|
14038
|
+
/* @__PURE__ */ t(S0, { bytes: g }),
|
|
14039
|
+
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children: w0(g) })
|
|
14028
14040
|
] }),
|
|
14029
14041
|
k && /* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10.5, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children: k }),
|
|
14030
14042
|
D && !S && /* @__PURE__ */ t(
|
|
@@ -14039,7 +14051,7 @@ function S0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14039
14051
|
children: "executando…"
|
|
14040
14052
|
}
|
|
14041
14053
|
),
|
|
14042
|
-
|
|
14054
|
+
I === "pending" && /* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10.5, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children: "aguardando" })
|
|
14043
14055
|
] }),
|
|
14044
14056
|
(!i || d) && v && /* @__PURE__ */ t(
|
|
14045
14057
|
X,
|
|
@@ -14090,11 +14102,11 @@ function S0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14090
14102
|
}
|
|
14091
14103
|
);
|
|
14092
14104
|
}
|
|
14093
|
-
n(
|
|
14094
|
-
function
|
|
14105
|
+
n(C0, "ToolRow");
|
|
14106
|
+
function E0({ part: e, isStreaming: r }) {
|
|
14095
14107
|
var d, f;
|
|
14096
14108
|
const i = (f = (d = e.thoughtDetails) == null ? void 0 : d.text) == null ? void 0 : f.trim();
|
|
14097
|
-
return i ? /* @__PURE__ */
|
|
14109
|
+
return i ? /* @__PURE__ */ T(R, { sx: { position: "relative", px: 1.75, py: 0.75 }, children: [
|
|
14098
14110
|
/* @__PURE__ */ t(
|
|
14099
14111
|
R,
|
|
14100
14112
|
{
|
|
@@ -14110,7 +14122,7 @@ function k0({ part: e, isStreaming: r }) {
|
|
|
14110
14122
|
}), "sx")
|
|
14111
14123
|
}
|
|
14112
14124
|
),
|
|
14113
|
-
/* @__PURE__ */
|
|
14125
|
+
/* @__PURE__ */ T(
|
|
14114
14126
|
X,
|
|
14115
14127
|
{
|
|
14116
14128
|
sx: /* @__PURE__ */ n((s) => ({
|
|
@@ -14140,40 +14152,40 @@ function k0({ part: e, isStreaming: r }) {
|
|
|
14140
14152
|
)
|
|
14141
14153
|
] }) : null;
|
|
14142
14154
|
}
|
|
14143
|
-
n(
|
|
14155
|
+
n(E0, "ReasoningRow");
|
|
14144
14156
|
function En(e) {
|
|
14145
14157
|
return (e == null ? void 0 : e.interactionId) ?? null;
|
|
14146
14158
|
}
|
|
14147
14159
|
n(En, "getInteractionId");
|
|
14148
|
-
function
|
|
14160
|
+
function I0(e) {
|
|
14149
14161
|
if (!e) return "";
|
|
14150
14162
|
const r = e instanceof Date ? e : new Date(e);
|
|
14151
14163
|
return Number.isNaN(r.getTime()) ? "" : r.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit" });
|
|
14152
14164
|
}
|
|
14153
|
-
n(
|
|
14165
|
+
n(I0, "formatHourMinute");
|
|
14154
14166
|
const Wi = 200;
|
|
14155
|
-
function
|
|
14167
|
+
function T0({
|
|
14156
14168
|
turns: e,
|
|
14157
14169
|
selectedKey: r,
|
|
14158
14170
|
onSelect: i
|
|
14159
14171
|
}) {
|
|
14160
|
-
const d = ue(null), [f, s] = Y(!1), [y, b] = Y(!1),
|
|
14172
|
+
const d = ue(null), [f, s] = Y(!1), [y, b] = Y(!1), I = ye(() => {
|
|
14161
14173
|
const S = d.current;
|
|
14162
14174
|
if (!S) return;
|
|
14163
14175
|
const v = S.scrollWidth - S.clientWidth;
|
|
14164
14176
|
s(S.scrollLeft > 4), b(S.scrollLeft < v - 4);
|
|
14165
14177
|
}, []);
|
|
14166
14178
|
oe(() => {
|
|
14167
|
-
|
|
14179
|
+
I();
|
|
14168
14180
|
const S = d.current;
|
|
14169
14181
|
if (!S) return;
|
|
14170
|
-
const v = /* @__PURE__ */ n(() =>
|
|
14182
|
+
const v = /* @__PURE__ */ n(() => I(), "handler");
|
|
14171
14183
|
S.addEventListener("scroll", v, { passive: !0 });
|
|
14172
|
-
const A = new ResizeObserver(
|
|
14184
|
+
const A = new ResizeObserver(I);
|
|
14173
14185
|
return A.observe(S), () => {
|
|
14174
14186
|
S.removeEventListener("scroll", v), A.disconnect();
|
|
14175
14187
|
};
|
|
14176
|
-
}, [
|
|
14188
|
+
}, [I, e.length]);
|
|
14177
14189
|
const k = /* @__PURE__ */ n((S) => {
|
|
14178
14190
|
var v;
|
|
14179
14191
|
(v = d.current) == null || v.scrollBy({ left: S, behavior: "smooth" });
|
|
@@ -14213,7 +14225,7 @@ function E0({
|
|
|
14213
14225
|
},
|
|
14214
14226
|
S
|
|
14215
14227
|
), "renderPill");
|
|
14216
|
-
return /* @__PURE__ */
|
|
14228
|
+
return /* @__PURE__ */ T(R, { sx: { position: "relative", display: "flex", alignItems: "center", mb: 0.75 }, children: [
|
|
14217
14229
|
f && /* @__PURE__ */ t(
|
|
14218
14230
|
Ge,
|
|
14219
14231
|
{
|
|
@@ -14231,7 +14243,7 @@ function E0({
|
|
|
14231
14243
|
children: /* @__PURE__ */ t(Kn, { size: 14 })
|
|
14232
14244
|
}
|
|
14233
14245
|
),
|
|
14234
|
-
/* @__PURE__ */
|
|
14246
|
+
/* @__PURE__ */ T(
|
|
14235
14247
|
R,
|
|
14236
14248
|
{
|
|
14237
14249
|
ref: d,
|
|
@@ -14254,8 +14266,8 @@ function E0({
|
|
|
14254
14266
|
),
|
|
14255
14267
|
e.map((S) => (S.id, D(
|
|
14256
14268
|
S.id,
|
|
14257
|
-
/* @__PURE__ */
|
|
14258
|
-
/* @__PURE__ */
|
|
14269
|
+
/* @__PURE__ */ T(re, { children: [
|
|
14270
|
+
/* @__PURE__ */ T(X, { component: "span", sx: /* @__PURE__ */ n((v) => ({ fontSize: "inherit", fontWeight: "inherit", fontFamily: v.typography.fontFamily }), "sx"), children: [
|
|
14259
14271
|
"Turn ",
|
|
14260
14272
|
S.number
|
|
14261
14273
|
] }),
|
|
@@ -14299,7 +14311,7 @@ function E0({
|
|
|
14299
14311
|
)
|
|
14300
14312
|
] });
|
|
14301
14313
|
}
|
|
14302
|
-
n(
|
|
14314
|
+
n(T0, "TurnPillStrip");
|
|
14303
14315
|
const Aa = /* @__PURE__ */ n(({
|
|
14304
14316
|
hideReasoning: e,
|
|
14305
14317
|
maxHeight: r = 420,
|
|
@@ -14308,7 +14320,7 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14308
14320
|
compact: f = !0,
|
|
14309
14321
|
showTurnHistory: s = !1
|
|
14310
14322
|
}) => {
|
|
14311
|
-
const y = pe((g) => g.currentMessage), b = pe((g) => g.messages),
|
|
14323
|
+
const y = pe((g) => g.currentMessage), b = pe((g) => g.messages), I = pe((g) => g.turnOpen), k = Te(() => {
|
|
14312
14324
|
if (!s || !b || b.length === 0) return [];
|
|
14313
14325
|
const g = /* @__PURE__ */ new Set(["thought", "function_call", "function_response", "partial_function_call"]), h = [...b].sort((u, E) => {
|
|
14314
14326
|
const c = u.created ? new Date(u.created).getTime() : 0, _ = E.created ? new Date(E.created).getTime() : 0;
|
|
@@ -14326,14 +14338,14 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14326
14338
|
id: c,
|
|
14327
14339
|
interaction: u,
|
|
14328
14340
|
number: E + 1,
|
|
14329
|
-
timeLabel:
|
|
14341
|
+
timeLabel: I0(u.created)
|
|
14330
14342
|
});
|
|
14331
14343
|
}), M.reverse();
|
|
14332
|
-
}, [b, s]), [D, S] = Y(null), v = ue(
|
|
14344
|
+
}, [b, s]), [D, S] = Y(null), v = ue(I);
|
|
14333
14345
|
oe(() => {
|
|
14334
14346
|
const g = v.current;
|
|
14335
|
-
v.current =
|
|
14336
|
-
}, [
|
|
14347
|
+
v.current = I, I && !g && S(null);
|
|
14348
|
+
}, [I]);
|
|
14337
14349
|
const A = Te(() => {
|
|
14338
14350
|
const g = /* @__PURE__ */ new Set(["thought", "function_call", "function_response", "partial_function_call"]), h = /* @__PURE__ */ n((u) => u != null && u.parts ? u.parts.filter(
|
|
14339
14351
|
(E) => {
|
|
@@ -14356,9 +14368,9 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14356
14368
|
} else if (D) {
|
|
14357
14369
|
const E = En(y) === D ? y : (b ?? []).find((c) => En(c) === D) ?? null;
|
|
14358
14370
|
M = h(E);
|
|
14359
|
-
} else
|
|
14371
|
+
} else I && y && (M = h(y));
|
|
14360
14372
|
return d === "newest-first" ? [...M].reverse() : M;
|
|
14361
|
-
}, [D, y, b,
|
|
14373
|
+
}, [D, y, b, I, d]), p = ue(null);
|
|
14362
14374
|
oe(() => {
|
|
14363
14375
|
if (d !== "chronological") return;
|
|
14364
14376
|
const g = p.current;
|
|
@@ -14376,8 +14388,8 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14376
14388
|
}
|
|
14377
14389
|
h.scrollHeight - h.scrollTop - h.clientHeight < 120 && g.scrollIntoView({ block: "end", behavior: "smooth" });
|
|
14378
14390
|
}, [A.length, d]);
|
|
14379
|
-
const w = s && k.length > 0 && !
|
|
14380
|
-
|
|
14391
|
+
const w = s && k.length > 0 && !I ? /* @__PURE__ */ t(
|
|
14392
|
+
T0,
|
|
14381
14393
|
{
|
|
14382
14394
|
turns: k,
|
|
14383
14395
|
selectedKey: D,
|
|
@@ -14385,30 +14397,30 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14385
14397
|
}
|
|
14386
14398
|
) : null;
|
|
14387
14399
|
if (A.length === 0)
|
|
14388
|
-
return /* @__PURE__ */
|
|
14400
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
14389
14401
|
/* @__PURE__ */ t("style", { children: `${ji}${Li}${$i}` }),
|
|
14390
14402
|
w,
|
|
14391
14403
|
i ?? null
|
|
14392
14404
|
] });
|
|
14393
14405
|
const x = d === "newest-first" ? 0 : A.length - 1;
|
|
14394
|
-
return /* @__PURE__ */
|
|
14406
|
+
return /* @__PURE__ */ T(re, { children: [
|
|
14395
14407
|
/* @__PURE__ */ t("style", { children: `${ji}${Li}${$i}` }),
|
|
14396
14408
|
w,
|
|
14397
|
-
/* @__PURE__ */
|
|
14409
|
+
/* @__PURE__ */ T(R, { sx: { py: 1, minHeight: "410px", maxHeight: r, overflow: r ? "auto" : "visible" }, children: [
|
|
14398
14410
|
A.map((g, h) => g.eventType === "thought" ? e ? null : /* @__PURE__ */ t(
|
|
14399
|
-
|
|
14411
|
+
E0,
|
|
14400
14412
|
{
|
|
14401
14413
|
part: g,
|
|
14402
|
-
isStreaming: h === x &&
|
|
14414
|
+
isStreaming: h === x && I && g.partial
|
|
14403
14415
|
},
|
|
14404
14416
|
g.id
|
|
14405
|
-
) : g.eventType === "function_call" || g.eventType === "partial_function_call" || g.eventType === "function_response" ? /* @__PURE__ */ t(
|
|
14417
|
+
) : g.eventType === "function_call" || g.eventType === "partial_function_call" || g.eventType === "function_response" ? /* @__PURE__ */ t(C0, { part: g, isLast: h === x, compact: f }, g.id) : null),
|
|
14406
14418
|
/* @__PURE__ */ t(R, { ref: p, "aria-hidden": !0, sx: { height: 0 } })
|
|
14407
14419
|
] })
|
|
14408
14420
|
] });
|
|
14409
14421
|
}, "AgentActivityV2");
|
|
14410
14422
|
Aa.displayName = "AgentActivityV2";
|
|
14411
|
-
const
|
|
14423
|
+
const A0 = {
|
|
14412
14424
|
sql: { id: "sql", label: "Banco de dados", Icon: pa },
|
|
14413
14425
|
files: { id: "files", label: "Arquivos", Icon: Ss },
|
|
14414
14426
|
shell: { id: "shell", label: "Terminal", Icon: ks },
|
|
@@ -14491,7 +14503,7 @@ const I0 = {
|
|
|
14491
14503
|
script_code_rollback: "scripts",
|
|
14492
14504
|
script_remove: "scripts"
|
|
14493
14505
|
};
|
|
14494
|
-
function
|
|
14506
|
+
function _0(e) {
|
|
14495
14507
|
if (!e) return "other";
|
|
14496
14508
|
const r = Ni[e];
|
|
14497
14509
|
if (r) return r;
|
|
@@ -14502,8 +14514,8 @@ function T0(e) {
|
|
|
14502
14514
|
}
|
|
14503
14515
|
return "other";
|
|
14504
14516
|
}
|
|
14505
|
-
n(
|
|
14506
|
-
const Hi = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}",
|
|
14517
|
+
n(_0, "getToolCategory");
|
|
14518
|
+
const Hi = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", M0 = "@keyframes v2rpspin{to{transform:rotate(360deg)}}", z0 = "10%", D0 = 45, qi = /* @__PURE__ */ n(({ title: e, children: r }) => /* @__PURE__ */ T(
|
|
14507
14519
|
R,
|
|
14508
14520
|
{
|
|
14509
14521
|
sx: /* @__PURE__ */ n((i) => ({
|
|
@@ -14534,13 +14546,13 @@ const Hi = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", A0 = "@key
|
|
|
14534
14546
|
var i;
|
|
14535
14547
|
return ((i = r.statistics) == null ? void 0 : i.elapsed) ?? 0;
|
|
14536
14548
|
});
|
|
14537
|
-
return /* @__PURE__ */
|
|
14538
|
-
|
|
14549
|
+
return /* @__PURE__ */ T(X, { sx: /* @__PURE__ */ n((r) => ({ fontSize: 10.5, color: r.palette.text.secondary, fontFamily: r.typography.fontFamilyMono }), "sx"), children: [
|
|
14550
|
+
$0(e * 1e3),
|
|
14539
14551
|
" decorridos"
|
|
14540
14552
|
] });
|
|
14541
14553
|
});
|
|
14542
14554
|
Il.displayName = "ElapsedClock";
|
|
14543
|
-
const
|
|
14555
|
+
const R0 = {
|
|
14544
14556
|
tooltip: {
|
|
14545
14557
|
sx: /* @__PURE__ */ n((e) => ({
|
|
14546
14558
|
backgroundColor: e.palette.surface.raised,
|
|
@@ -14552,22 +14564,22 @@ const z0 = {
|
|
|
14552
14564
|
}), "sx")
|
|
14553
14565
|
}
|
|
14554
14566
|
};
|
|
14555
|
-
function
|
|
14567
|
+
function O0(e) {
|
|
14556
14568
|
var i;
|
|
14557
14569
|
const r = (i = e.functionDetails) == null ? void 0 : i.status;
|
|
14558
14570
|
return r === "Done" ? "response" : r === "Composing" ? "partial" : "call";
|
|
14559
14571
|
}
|
|
14560
|
-
n(
|
|
14561
|
-
function
|
|
14572
|
+
n(O0, "friendlyStateForCall");
|
|
14573
|
+
function P0(e) {
|
|
14562
14574
|
const r = e.functionDetails;
|
|
14563
14575
|
if (!r || r.status !== "Done") return !1;
|
|
14564
14576
|
const i = r.response;
|
|
14565
14577
|
return typeof i == "string" && /error|exception|fail/i.test(i);
|
|
14566
14578
|
}
|
|
14567
|
-
n(
|
|
14568
|
-
const
|
|
14579
|
+
n(P0, "callLooksLikeError");
|
|
14580
|
+
const F0 = 4, Vi = 8, Po = 500, j0 = 12, Tl = mt.memo(({ bytes: e, compact: r = !1 }) => {
|
|
14569
14581
|
if (e <= 0) return null;
|
|
14570
|
-
const i = Math.floor(e / Po), d = e % Po / Po, f = Math.min(
|
|
14582
|
+
const i = Math.floor(e / Po), d = e % Po / Po, f = Math.min(j0, i + (d > 0 ? 1 : 0)) || 1, s = r ? "0px" : "2px";
|
|
14571
14583
|
return /* @__PURE__ */ t(
|
|
14572
14584
|
R,
|
|
14573
14585
|
{
|
|
@@ -14589,13 +14601,13 @@ const O0 = 4, Vi = 8, Po = 500, P0 = 12, Tl = mt.memo(({ bytes: e, compact: r =
|
|
|
14589
14601
|
flexShrink: 0
|
|
14590
14602
|
},
|
|
14591
14603
|
children: Array.from({ length: f }, (y, b) => {
|
|
14592
|
-
const
|
|
14604
|
+
const I = b < i, k = !I && b === i && d > 0, D = I ? 1 : k ? d : 0;
|
|
14593
14605
|
return /* @__PURE__ */ t(
|
|
14594
14606
|
R,
|
|
14595
14607
|
{
|
|
14596
14608
|
sx: /* @__PURE__ */ n((S) => ({
|
|
14597
14609
|
position: "relative",
|
|
14598
|
-
width: `${
|
|
14610
|
+
width: `${F0}px`,
|
|
14599
14611
|
height: `${Vi}px`,
|
|
14600
14612
|
borderRadius: "1px",
|
|
14601
14613
|
border: `1px solid ${S.palette.border.soft}`,
|
|
@@ -14613,7 +14625,7 @@ const O0 = 4, Vi = 8, Po = 500, P0 = 12, Tl = mt.memo(({ bytes: e, compact: r =
|
|
|
14613
14625
|
bottom: 0,
|
|
14614
14626
|
height: `${D * 100}%`,
|
|
14615
14627
|
backgroundColor: S.palette.primary.main,
|
|
14616
|
-
opacity:
|
|
14628
|
+
opacity: I ? 0.85 : 0.7,
|
|
14617
14629
|
transition: "height .15s ease-out",
|
|
14618
14630
|
animation: k ? "v2rppulse 0.9s ease-in-out infinite" : "none"
|
|
14619
14631
|
}), "sx")
|
|
@@ -14654,7 +14666,7 @@ Al.displayName = "RailCallTimer";
|
|
|
14654
14666
|
const _l = /* @__PURE__ */ n(({ call: e }) => {
|
|
14655
14667
|
const r = e.functionDetails;
|
|
14656
14668
|
if (!(r != null && r.name)) return null;
|
|
14657
|
-
const i =
|
|
14669
|
+
const i = _0(r.name), f = A0[i].Icon, s = r.status === "Composing" || e.eventType === "partial_function_call", y = r.status === "Executing", b = r.status === "Done", I = P0(e), k = O0(e), D = Qn(r.name, k, r.args ?? r.text, I), S = (() => {
|
|
14658
14670
|
const v = st.getPartTextContent(e);
|
|
14659
14671
|
if (typeof v == "string" && v.length > 0) return v.length;
|
|
14660
14672
|
if (typeof r.text == "string" && r.text.length > 0) return r.text.length;
|
|
@@ -14667,11 +14679,11 @@ const _l = /* @__PURE__ */ n(({ call: e }) => {
|
|
|
14667
14679
|
}
|
|
14668
14680
|
return 0;
|
|
14669
14681
|
})();
|
|
14670
|
-
return /* @__PURE__ */ t(Ne, { title: D, placement: "left", children: /* @__PURE__ */
|
|
14682
|
+
return /* @__PURE__ */ t(Ne, { title: D, placement: "left", children: /* @__PURE__ */ T(
|
|
14671
14683
|
R,
|
|
14672
14684
|
{
|
|
14673
14685
|
sx: /* @__PURE__ */ n((v) => {
|
|
14674
|
-
const A =
|
|
14686
|
+
const A = I ? v.palette.secondary.main : y ? v.palette.primary.main : b ? v.palette.success.main : v.palette.text.disabled, p = y || s || I;
|
|
14675
14687
|
return {
|
|
14676
14688
|
width: 30,
|
|
14677
14689
|
maxHeight: "50px",
|
|
@@ -14697,7 +14709,7 @@ const _l = /* @__PURE__ */ n(({ call: e }) => {
|
|
|
14697
14709
|
R,
|
|
14698
14710
|
{
|
|
14699
14711
|
sx: /* @__PURE__ */ n((v) => ({
|
|
14700
|
-
color:
|
|
14712
|
+
color: I ? v.palette.secondary.main : b ? v.palette.success.main : y ? v.palette.primary.main : v.palette.text.disabled,
|
|
14701
14713
|
display: "flex",
|
|
14702
14714
|
position: "relative",
|
|
14703
14715
|
top: "3px",
|
|
@@ -14733,7 +14745,7 @@ const zl = mt.memo(() => {
|
|
|
14733
14745
|
var d;
|
|
14734
14746
|
return ((d = i.statistics) == null ? void 0 : d.tokensPerSecond) ?? 0;
|
|
14735
14747
|
}), r = e > 0 ? e.toFixed(e >= 10 ? 1 : 2) : "—";
|
|
14736
|
-
return /* @__PURE__ */ t(Ne, { title: `${e.toFixed(2)} tokens/s`, placement: "left", children: /* @__PURE__ */
|
|
14748
|
+
return /* @__PURE__ */ t(Ne, { title: `${e.toFixed(2)} tokens/s`, placement: "left", children: /* @__PURE__ */ T(
|
|
14737
14749
|
R,
|
|
14738
14750
|
{
|
|
14739
14751
|
sx: /* @__PURE__ */ n((i) => ({
|
|
@@ -14781,8 +14793,8 @@ const zl = mt.memo(() => {
|
|
|
14781
14793
|
});
|
|
14782
14794
|
zl.displayName = "RailTokensPerSecond";
|
|
14783
14795
|
const Dl = /* @__PURE__ */ n(({ todoList: e, completed: r, total: i, pct: d }) => {
|
|
14784
|
-
const f = at(), s = 30, y = 2.5, b = (s - y) / 2,
|
|
14785
|
-
/* @__PURE__ */
|
|
14796
|
+
const f = at(), s = 30, y = 2.5, b = (s - y) / 2, I = 2 * Math.PI * b, k = Math.max(0, Math.min(1, d)), D = I * k, S = Math.round(k * 100), v = e ? /* @__PURE__ */ T(R, { sx: { width: 280 }, children: [
|
|
14797
|
+
/* @__PURE__ */ T(
|
|
14786
14798
|
R,
|
|
14787
14799
|
{
|
|
14788
14800
|
sx: /* @__PURE__ */ n((A) => ({
|
|
@@ -14808,7 +14820,7 @@ const Dl = /* @__PURE__ */ n(({ todoList: e, completed: r, total: i, pct: d }) =
|
|
|
14808
14820
|
children: "Tarefas do agente"
|
|
14809
14821
|
}
|
|
14810
14822
|
),
|
|
14811
|
-
/* @__PURE__ */
|
|
14823
|
+
/* @__PURE__ */ T(
|
|
14812
14824
|
R,
|
|
14813
14825
|
{
|
|
14814
14826
|
sx: /* @__PURE__ */ n((A) => ({
|
|
@@ -14833,8 +14845,8 @@ const Dl = /* @__PURE__ */ n(({ todoList: e, completed: r, total: i, pct: d }) =
|
|
|
14833
14845
|
{
|
|
14834
14846
|
title: v,
|
|
14835
14847
|
placement: "left",
|
|
14836
|
-
slotProps: e ?
|
|
14837
|
-
children: /* @__PURE__ */
|
|
14848
|
+
slotProps: e ? R0 : void 0,
|
|
14849
|
+
children: /* @__PURE__ */ T(
|
|
14838
14850
|
R,
|
|
14839
14851
|
{
|
|
14840
14852
|
sx: {
|
|
@@ -14848,7 +14860,7 @@ const Dl = /* @__PURE__ */ n(({ todoList: e, completed: r, total: i, pct: d }) =
|
|
|
14848
14860
|
},
|
|
14849
14861
|
"aria-label": `Tarefas: ${S}%`,
|
|
14850
14862
|
children: [
|
|
14851
|
-
/* @__PURE__ */
|
|
14863
|
+
/* @__PURE__ */ T(
|
|
14852
14864
|
R,
|
|
14853
14865
|
{
|
|
14854
14866
|
component: "svg",
|
|
@@ -14882,7 +14894,7 @@ const Dl = /* @__PURE__ */ n(({ todoList: e, completed: r, total: i, pct: d }) =
|
|
|
14882
14894
|
stroke: f.palette.primary.main,
|
|
14883
14895
|
strokeWidth: y,
|
|
14884
14896
|
strokeLinecap: "round",
|
|
14885
|
-
strokeDasharray: `${D} ${
|
|
14897
|
+
strokeDasharray: `${D} ${I}`,
|
|
14886
14898
|
style: { transition: "stroke-dasharray .25s ease" }
|
|
14887
14899
|
}
|
|
14888
14900
|
)
|
|
@@ -14914,7 +14926,7 @@ const Rl = mt.memo(() => {
|
|
|
14914
14926
|
const e = pe((d) => d.subAgents), r = pe((d) => d.removeSubAgent);
|
|
14915
14927
|
if (!e || e.size === 0) return null;
|
|
14916
14928
|
const i = Array.from(e.values());
|
|
14917
|
-
return /* @__PURE__ */ t(R, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: i.map((d) => /* @__PURE__ */
|
|
14929
|
+
return /* @__PURE__ */ t(R, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: i.map((d) => /* @__PURE__ */ T(R, { sx: { position: "relative" }, children: [
|
|
14918
14930
|
/* @__PURE__ */ t(Ta, { subAgent: d, defaultLevel: 1, hideMessageLevel: !0 }),
|
|
14919
14931
|
d.completed && /* @__PURE__ */ t(Ne, { title: "Dispensar sub-agente", children: /* @__PURE__ */ t(
|
|
14920
14932
|
Ge,
|
|
@@ -14943,7 +14955,7 @@ const Rl = mt.memo(() => {
|
|
|
14943
14955
|
] }, d.id)) });
|
|
14944
14956
|
});
|
|
14945
14957
|
Rl.displayName = "SubAgentList";
|
|
14946
|
-
function
|
|
14958
|
+
function L0(e, r, i) {
|
|
14947
14959
|
if (!e || e !== "todolistUpdated" || i || !r) return null;
|
|
14948
14960
|
try {
|
|
14949
14961
|
return JSON.parse(r);
|
|
@@ -14951,15 +14963,15 @@ function F0(e, r, i) {
|
|
|
14951
14963
|
return null;
|
|
14952
14964
|
}
|
|
14953
14965
|
}
|
|
14954
|
-
n(
|
|
14955
|
-
function
|
|
14966
|
+
n(L0, "tryParseMainAgentTodoList");
|
|
14967
|
+
function $0(e) {
|
|
14956
14968
|
if (e <= 0) return "00:00";
|
|
14957
14969
|
const r = Math.floor(e / 1e3), i = Math.floor(r / 60).toString().padStart(2, "0"), d = (r % 60).toString().padStart(2, "0");
|
|
14958
14970
|
return `${i}:${d}`;
|
|
14959
14971
|
}
|
|
14960
|
-
n(
|
|
14972
|
+
n($0, "formatElapsed");
|
|
14961
14973
|
const Ol = /* @__PURE__ */ n(({
|
|
14962
|
-
width: e =
|
|
14974
|
+
width: e = z0,
|
|
14963
14975
|
title: r,
|
|
14964
14976
|
onPause: i,
|
|
14965
14977
|
onCancel: d,
|
|
@@ -14968,7 +14980,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
14968
14980
|
onCollapsedChange: y,
|
|
14969
14981
|
defaultCollapsed: b = !1
|
|
14970
14982
|
}) => {
|
|
14971
|
-
const
|
|
14983
|
+
const I = at(), [k, D] = Y(b), S = s ?? k, v = /* @__PURE__ */ n((W) => {
|
|
14972
14984
|
s === void 0 && D(W), y == null || y(W);
|
|
14973
14985
|
}, "setCollapsed"), A = pe((W) => W.turnOpen), p = pe((W) => W.lastToolEvent), w = pe((W) => W.connectionStatus), { agentGatewayService: x } = Qe();
|
|
14974
14986
|
oe(() => {
|
|
@@ -14978,7 +14990,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
14978
14990
|
switch (w) {
|
|
14979
14991
|
case Se.Connected:
|
|
14980
14992
|
return {
|
|
14981
|
-
color:
|
|
14993
|
+
color: I.palette.success.main,
|
|
14982
14994
|
label: A ? "Conexão Ativa · Executando" : "Conexão Ativa",
|
|
14983
14995
|
// Pulse always-on while the connection is up, even
|
|
14984
14996
|
// when no turn is in flight — the dot reads as a
|
|
@@ -14990,14 +15002,14 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
14990
15002
|
pulse: !0
|
|
14991
15003
|
};
|
|
14992
15004
|
case Se.Connecting:
|
|
14993
|
-
return { color:
|
|
15005
|
+
return { color: I.palette.primary.main, label: "Conectando…", pulse: !0 };
|
|
14994
15006
|
case Se.Disconnected:
|
|
14995
|
-
return { color:
|
|
15007
|
+
return { color: I.palette.secondary.main, label: "Desconectado", pulse: !1 };
|
|
14996
15008
|
case Se.Idle:
|
|
14997
15009
|
default:
|
|
14998
|
-
return { color:
|
|
15010
|
+
return { color: I.palette.text.disabled, label: "Sessão Inativa", pulse: !1 };
|
|
14999
15011
|
}
|
|
15000
|
-
}, [w, A,
|
|
15012
|
+
}, [w, A, I]), h = pe((W) => W.suspendState), M = pe((W) => W.setSuspendState), u = h === "suspending", E = h === "suspended", c = ye(async () => {
|
|
15001
15013
|
if (x instanceof gn) {
|
|
15002
15014
|
if (E) {
|
|
15003
15015
|
M("idle");
|
|
@@ -15026,7 +15038,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15026
15038
|
M("idle");
|
|
15027
15039
|
}
|
|
15028
15040
|
}, [x, M]), j = i === null ? null : i ?? c, B = d === null ? null : d ?? _, G = Te(
|
|
15029
|
-
() =>
|
|
15041
|
+
() => L0(
|
|
15030
15042
|
p == null ? void 0 : p.eventName,
|
|
15031
15043
|
p == null ? void 0 : p.eventData,
|
|
15032
15044
|
p == null ? void 0 : p.subAgentId
|
|
@@ -15035,13 +15047,13 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15035
15047
|
), ne = (G == null ? void 0 : G.items.filter(
|
|
15036
15048
|
(W) => String(W.status).toLowerCase() === "completed"
|
|
15037
15049
|
).length) ?? 0, V = (G == null ? void 0 : G.items.length) ?? 0, U = (G == null ? void 0 : G.percentComplete) != null && Number.isFinite(G.percentComplete) ? Math.max(0, Math.min(1, G.percentComplete)) : V > 0 ? ne / V : 0;
|
|
15038
|
-
return S ? /* @__PURE__ */
|
|
15050
|
+
return S ? /* @__PURE__ */ T(
|
|
15039
15051
|
R,
|
|
15040
15052
|
{
|
|
15041
15053
|
component: "aside",
|
|
15042
15054
|
onClick: /* @__PURE__ */ n(() => v(!1), "onClick"),
|
|
15043
15055
|
sx: /* @__PURE__ */ n((W) => ({
|
|
15044
|
-
minWidth:
|
|
15056
|
+
minWidth: D0,
|
|
15045
15057
|
display: "inline-flex",
|
|
15046
15058
|
backgroundColor: W.palette.background.default,
|
|
15047
15059
|
borderLeft: `1px solid ${W.palette.divider}`,
|
|
@@ -15057,7 +15069,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15057
15069
|
}
|
|
15058
15070
|
}), "sx"),
|
|
15059
15071
|
children: [
|
|
15060
|
-
/* @__PURE__ */ t("style", { children: `${Hi}${
|
|
15072
|
+
/* @__PURE__ */ t("style", { children: `${Hi}${M0}` }),
|
|
15061
15073
|
/* @__PURE__ */ t(Ne, { title: "Expandir painel", placement: "left", children: /* @__PURE__ */ t(
|
|
15062
15074
|
Ge,
|
|
15063
15075
|
{
|
|
@@ -15079,7 +15091,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15079
15091
|
children: /* @__PURE__ */ t(Qo, { size: 14 })
|
|
15080
15092
|
}
|
|
15081
15093
|
) }),
|
|
15082
|
-
/* @__PURE__ */ t(Ne, { title: g.label, placement: "left", children: /* @__PURE__ */
|
|
15094
|
+
/* @__PURE__ */ t(Ne, { title: g.label, placement: "left", children: /* @__PURE__ */ T(
|
|
15083
15095
|
R,
|
|
15084
15096
|
{
|
|
15085
15097
|
sx: {
|
|
@@ -15154,7 +15166,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15154
15166
|
/* @__PURE__ */ t(zl, {})
|
|
15155
15167
|
]
|
|
15156
15168
|
}
|
|
15157
|
-
) : /* @__PURE__ */
|
|
15169
|
+
) : /* @__PURE__ */ T(
|
|
15158
15170
|
R,
|
|
15159
15171
|
{
|
|
15160
15172
|
component: "aside",
|
|
@@ -15171,8 +15183,8 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15171
15183
|
}), "sx"),
|
|
15172
15184
|
children: [
|
|
15173
15185
|
/* @__PURE__ */ t("style", { children: Hi }),
|
|
15174
|
-
/* @__PURE__ */
|
|
15175
|
-
/* @__PURE__ */
|
|
15186
|
+
/* @__PURE__ */ T(R, { sx: /* @__PURE__ */ n((W) => ({ p: 1.75, borderBottom: `1px solid ${W.palette.divider}` }), "sx"), children: [
|
|
15187
|
+
/* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
15176
15188
|
/* @__PURE__ */ t(
|
|
15177
15189
|
R,
|
|
15178
15190
|
{
|
|
@@ -15186,7 +15198,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15186
15198
|
}
|
|
15187
15199
|
),
|
|
15188
15200
|
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((W) => ({ fontSize: 12.5, fontWeight: 500, color: W.palette.text.primary, flex: 1 }), "sx"), children: g.label }),
|
|
15189
|
-
A && V > 0 && /* @__PURE__ */
|
|
15201
|
+
A && V > 0 && /* @__PURE__ */ T(X, { sx: /* @__PURE__ */ n((W) => ({ fontSize: 10, color: W.palette.text.disabled, fontFamily: W.typography.fontFamilyMono }), "sx"), children: [
|
|
15190
15202
|
ne,
|
|
15191
15203
|
"/",
|
|
15192
15204
|
V
|
|
@@ -15201,7 +15213,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15201
15213
|
}
|
|
15202
15214
|
) })
|
|
15203
15215
|
] }),
|
|
15204
|
-
A && /* @__PURE__ */
|
|
15216
|
+
A && /* @__PURE__ */ T(re, { children: [
|
|
15205
15217
|
/* @__PURE__ */ t(
|
|
15206
15218
|
R,
|
|
15207
15219
|
{
|
|
@@ -15225,13 +15237,13 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15225
15237
|
)
|
|
15226
15238
|
}
|
|
15227
15239
|
),
|
|
15228
|
-
/* @__PURE__ */
|
|
15240
|
+
/* @__PURE__ */ T(R, { sx: { display: "flex", justifyContent: "space-between", mt: 0.75 }, children: [
|
|
15229
15241
|
/* @__PURE__ */ t(Il, {}),
|
|
15230
15242
|
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((W) => ({ fontSize: 10.5, color: W.palette.text.secondary, fontFamily: W.typography.fontFamilyMono }), "sx"), children: "em execução…" })
|
|
15231
15243
|
] })
|
|
15232
15244
|
] })
|
|
15233
15245
|
] }),
|
|
15234
|
-
/* @__PURE__ */
|
|
15246
|
+
/* @__PURE__ */ T(R, { sx: { flex: 1, minHeight: 0, overflow: "auto", p: 1.25, display: "flex", flexDirection: "column", gap: 1.25 }, children: [
|
|
15235
15247
|
/* @__PURE__ */ t(qi, { title: "Tarefas do agente", children: G ? /* @__PURE__ */ t(Zn, { todoList: G, dense: !0 }) : /* @__PURE__ */ t(
|
|
15236
15248
|
X,
|
|
15237
15249
|
{
|
|
@@ -15345,8 +15357,8 @@ export {
|
|
|
15345
15357
|
ga as LinearBackgroundProgress,
|
|
15346
15358
|
gs as LinearProgressBarWithMarkers,
|
|
15347
15359
|
Ts as ListCheckIcon,
|
|
15348
|
-
|
|
15349
|
-
|
|
15360
|
+
Gh as LiveJsxBlock,
|
|
15361
|
+
Dh as LiveTsxConfigProvider,
|
|
15350
15362
|
dl as LlmResponseRender,
|
|
15351
15363
|
Fr as LoadingDots,
|
|
15352
15364
|
_s as LockClosedIcon,
|
|
@@ -15368,7 +15380,7 @@ export {
|
|
|
15368
15380
|
Yo as SendIcon,
|
|
15369
15381
|
Pr as SessionStateManagerService,
|
|
15370
15382
|
Un as SparkleIcon,
|
|
15371
|
-
|
|
15383
|
+
r0 as Sparkline,
|
|
15372
15384
|
ma as StopIcon,
|
|
15373
15385
|
Ur as Stopwatch,
|
|
15374
15386
|
ah as SubAgentBox,
|
|
@@ -15383,7 +15395,7 @@ export {
|
|
|
15383
15395
|
xs as TrashIcon,
|
|
15384
15396
|
Js as UiToolDispatcher,
|
|
15385
15397
|
Is as UsersIcon,
|
|
15386
|
-
|
|
15398
|
+
Qh as V2_CHART_PALETTE,
|
|
15387
15399
|
Jo as WARNING_THRESHOLD,
|
|
15388
15400
|
Hs as WaitingPart,
|
|
15389
15401
|
Ys as classifyPart,
|
|
@@ -15393,8 +15405,8 @@ export {
|
|
|
15393
15405
|
Go as createAiChatStore,
|
|
15394
15406
|
$p as createUiToolRegistry,
|
|
15395
15407
|
ph as disposeSharedAiChatEngine,
|
|
15396
|
-
|
|
15397
|
-
|
|
15408
|
+
Oh as extendDefaultScope,
|
|
15409
|
+
Rh as extendModuleRegistry,
|
|
15398
15410
|
hl as getDefaultJsxScope,
|
|
15399
15411
|
Qn as getFriendlyLabel,
|
|
15400
15412
|
al as getSharedAiChatEngine,
|
|
@@ -15410,12 +15422,12 @@ export {
|
|
|
15410
15422
|
fh as useLiveSession,
|
|
15411
15423
|
cl as useLiveTsxMaxCharsForFull,
|
|
15412
15424
|
Ca as useParkedAskUser,
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15425
|
+
i0 as useResponsiveLayout,
|
|
15426
|
+
e0 as v2Card,
|
|
15427
|
+
Xh as v2Chip,
|
|
15428
|
+
Zh as v2IconBtn,
|
|
15429
|
+
t0 as v2MonoMeta,
|
|
15430
|
+
n0 as v2SectionLabel,
|
|
15431
|
+
Yh as v2Theme
|
|
15420
15432
|
};
|
|
15421
15433
|
//# sourceMappingURL=components.js.map
|