@aintela/chat 0.4.30 → 0.4.31
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 +590 -590
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +7 -6
- package/dist/index.js +77 -76
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/usePromptAssist.d.ts +8 -0
- package/dist/useContainerWidth-C33sJaCi.js +383 -0
- package/dist/useContainerWidth-C33sJaCi.js.map +1 -0
- package/package.json +1 -1
- package/dist/useContainerWidth-pE_-xmTN.js +0 -342
- package/dist/useContainerWidth-pE_-xmTN.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -43,54 +43,54 @@ import ai from "@mui/material/LinearProgress";
|
|
|
43
43
|
import { Close as Fa, RadioButtonUncheckedOutlined as Gi, AutoStories as Ji, DataExploration as Hd, AutoGraph as Vd, TrendingDown as Ud, TrendingUp as qd, Speed as Kd, Security as Gd, BugReport as Jd, Help as Yd, Info as qs, Lightbulb as Qd, EmojiEmotions as Xd, Error as Ks, CheckCircle as Gs, Warning as Js, Star as Zd, Favorite as eu, ThumbDown as tu, ThumbUp as nu, SentimentSatisfiedAlt as Yi, Build as ru, ChevronRight as Ys, Timer as Gn, AlarmOn as ou, FrontHand as au, QuestionMark as iu, ErrorOutline as su, CancelRounded as Qs, WarningAmberRounded as lu, ModelTraining as cu, TipsAndUpdates as du, ChevronRightSharp as uu, CloseSharp as Xs, LockOpen as Qi, Lock as Xi, QuestionAnswerRounded as pu, MinimizeSharp as hu, SettingsOverscan as fu, AttachFileTwoTone as gu, PictureAsPdf as mu, FileDownloadOutlined as bu, MoreHoriz as yu, EditOutlined as xu, DeleteOutline as vu } from "@mui/icons-material";
|
|
44
44
|
import vo from "@mui/material/Popover";
|
|
45
45
|
import Xt from "@mui/material/Button";
|
|
46
|
-
import { b as wu,
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
46
|
+
import { b as wu, s as ku, a as Su, u as Cu } from "./useContainerWidth-C33sJaCi.js";
|
|
47
|
+
import Eu from "@mui/icons-material/FlightTakeoff";
|
|
48
|
+
import Tu from "@mui/icons-material/PlaceOutlined";
|
|
49
|
+
import Iu from "@mui/icons-material/HotelOutlined";
|
|
50
|
+
import Au from "@mui/icons-material/PersonOutline";
|
|
51
|
+
import Mu from "@mui/icons-material/EventOutlined";
|
|
52
|
+
import zu from "@mui/icons-material/CalendarMonthOutlined";
|
|
53
|
+
import _u from "@mui/material/Modal";
|
|
54
54
|
import Zs from "@mui/icons-material/QuestionAnswer";
|
|
55
|
-
import
|
|
55
|
+
import Ru from "@mui/material/Collapse";
|
|
56
56
|
import el from "react-markdown";
|
|
57
|
-
import
|
|
58
|
-
import
|
|
57
|
+
import Du from "remark-gfm";
|
|
58
|
+
import Ou from "rehype-raw";
|
|
59
59
|
import Zi from "@mui/icons-material/TaskAlt";
|
|
60
|
-
import { e as ii, A as
|
|
61
|
-
import
|
|
62
|
-
import { unified as
|
|
63
|
-
import
|
|
64
|
-
import { toMarkdown as
|
|
65
|
-
import { createPortal as
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
60
|
+
import { e as ii, A as Pu } from "./environmentUtils-VZNTCzEE.js";
|
|
61
|
+
import Fu from "@mui/material/Avatar";
|
|
62
|
+
import { unified as Lu } from "unified";
|
|
63
|
+
import ju from "remark-parse";
|
|
64
|
+
import { toMarkdown as $u } from "mdast-util-to-markdown";
|
|
65
|
+
import { createPortal as Bu } from "react-dom";
|
|
66
|
+
import Wu from "@mui/icons-material/Code";
|
|
67
|
+
import Nu from "@mui/icons-material/Visibility";
|
|
68
|
+
import Hu from "@mui/material/Checkbox";
|
|
69
|
+
import Vu from "@mui/material/FormControlLabel";
|
|
70
|
+
import Uu from "@mui/material/FormGroup";
|
|
71
71
|
import ga from "@mui/material/TextField";
|
|
72
|
-
import { DatePicker as
|
|
73
|
-
import { useDebouncedCallback as
|
|
72
|
+
import { DatePicker as qu } from "@mui/x-date-pickers/DatePicker";
|
|
73
|
+
import { useDebouncedCallback as Ku } from "use-debounce";
|
|
74
74
|
import tl from "@mui/material/Slide";
|
|
75
|
-
import
|
|
75
|
+
import Gu from "@mui/icons-material/KeyboardArrowDown";
|
|
76
76
|
import es from "@mui/material/Chip";
|
|
77
|
-
import { useShallow as
|
|
77
|
+
import { useShallow as Ju } from "zustand/react/shallow";
|
|
78
78
|
import nl from "@mui/material/Dialog";
|
|
79
|
-
import
|
|
80
|
-
import { Outlet as
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import { grey as
|
|
79
|
+
import Yu from "@mui/icons-material/HtmlOutlined";
|
|
80
|
+
import { Outlet as Qu, useLocation as rl, Link as ol } from "react-router-dom";
|
|
81
|
+
import Xu from "@mui/material/DialogTitle";
|
|
82
|
+
import Zu from "@mui/material/DialogContent";
|
|
83
|
+
import ep from "@mui/material/DialogActions";
|
|
84
|
+
import tp from "@mui/material/Drawer";
|
|
85
|
+
import np from "@mui/icons-material/Timer";
|
|
86
|
+
import rp from "@mui/icons-material/Storage";
|
|
87
|
+
import op from "@mui/icons-material/Memory";
|
|
88
|
+
import ap from "@mui/icons-material/HelpOutline";
|
|
89
|
+
import { grey as ip } from "@mui/material/colors";
|
|
90
90
|
import ma from "@mui/material/useMediaQuery";
|
|
91
|
-
import { ThemeProvider as
|
|
92
|
-
import
|
|
93
|
-
const
|
|
91
|
+
import { ThemeProvider as sp } from "@emotion/react";
|
|
92
|
+
import lp from "@mui/icons-material/AutoAwesome";
|
|
93
|
+
const cp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94
94
|
__proto__: null,
|
|
95
95
|
get APPBAR_HEIGHT() {
|
|
96
96
|
return Ga;
|
|
@@ -150,10 +150,10 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
150
150
|
return qa;
|
|
151
151
|
},
|
|
152
152
|
get ArtifactRender() {
|
|
153
|
-
return
|
|
153
|
+
return Yh;
|
|
154
154
|
},
|
|
155
155
|
get AskUserDialog() {
|
|
156
|
-
return
|
|
156
|
+
return Jh;
|
|
157
157
|
},
|
|
158
158
|
get AskUserSheet() {
|
|
159
159
|
return nc;
|
|
@@ -168,10 +168,10 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
168
168
|
return ci;
|
|
169
169
|
},
|
|
170
170
|
get ChartIcon() {
|
|
171
|
-
return
|
|
171
|
+
return fp;
|
|
172
172
|
},
|
|
173
173
|
get ChatIcon() {
|
|
174
|
-
return
|
|
174
|
+
return hp;
|
|
175
175
|
},
|
|
176
176
|
get ChatPane() {
|
|
177
177
|
return Sr;
|
|
@@ -189,7 +189,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
189
189
|
return vr;
|
|
190
190
|
},
|
|
191
191
|
get ChevronRightIcon() {
|
|
192
|
-
return
|
|
192
|
+
return mp;
|
|
193
193
|
},
|
|
194
194
|
get CloseIcon() {
|
|
195
195
|
return pi;
|
|
@@ -213,10 +213,10 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
213
213
|
return ui;
|
|
214
214
|
},
|
|
215
215
|
get DelayTextComponent() {
|
|
216
|
-
return
|
|
216
|
+
return Xh;
|
|
217
217
|
},
|
|
218
218
|
get EnvironmentProvider() {
|
|
219
|
-
return
|
|
219
|
+
return Rh;
|
|
220
220
|
},
|
|
221
221
|
get FileIcon() {
|
|
222
222
|
return bl;
|
|
@@ -249,7 +249,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
249
249
|
return Eo;
|
|
250
250
|
},
|
|
251
251
|
get LinearBackgroundProgress() {
|
|
252
|
-
return
|
|
252
|
+
return Qh;
|
|
253
253
|
},
|
|
254
254
|
get LinearProgressBarWithMarkers() {
|
|
255
255
|
return gi;
|
|
@@ -258,10 +258,10 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
258
258
|
return kl;
|
|
259
259
|
},
|
|
260
260
|
get LiveJsxBlock() {
|
|
261
|
-
return
|
|
261
|
+
return Df;
|
|
262
262
|
},
|
|
263
263
|
get LiveTsxConfigProvider() {
|
|
264
|
-
return
|
|
264
|
+
return bf;
|
|
265
265
|
},
|
|
266
266
|
get LlmResponseRender() {
|
|
267
267
|
return hc;
|
|
@@ -285,7 +285,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
285
285
|
return Il;
|
|
286
286
|
},
|
|
287
287
|
get MenuIcon() {
|
|
288
|
-
return
|
|
288
|
+
return yp;
|
|
289
289
|
},
|
|
290
290
|
get Message() {
|
|
291
291
|
return Zl;
|
|
@@ -309,7 +309,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
309
309
|
return pl;
|
|
310
310
|
},
|
|
311
311
|
get PinIcon() {
|
|
312
|
-
return
|
|
312
|
+
return bp;
|
|
313
313
|
},
|
|
314
314
|
get PlusIcon() {
|
|
315
315
|
return il;
|
|
@@ -360,7 +360,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
360
360
|
return xr;
|
|
361
361
|
},
|
|
362
362
|
get Sparkline() {
|
|
363
|
-
return
|
|
363
|
+
return Lf;
|
|
364
364
|
},
|
|
365
365
|
get StopIcon() {
|
|
366
366
|
return fi;
|
|
@@ -378,7 +378,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
378
378
|
return Vl;
|
|
379
379
|
},
|
|
380
380
|
get TableIcon() {
|
|
381
|
-
return
|
|
381
|
+
return gp;
|
|
382
382
|
},
|
|
383
383
|
get TaskList() {
|
|
384
384
|
return Jn;
|
|
@@ -405,7 +405,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
405
405
|
return To;
|
|
406
406
|
},
|
|
407
407
|
get TurnAwareButton() {
|
|
408
|
-
return
|
|
408
|
+
return tf;
|
|
409
409
|
},
|
|
410
410
|
get UiToolDispatcher() {
|
|
411
411
|
return Jl;
|
|
@@ -417,7 +417,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
417
417
|
return wl;
|
|
418
418
|
},
|
|
419
419
|
get V2_CHART_PALETTE() {
|
|
420
|
-
return
|
|
420
|
+
return Ff;
|
|
421
421
|
},
|
|
422
422
|
get WARNING_THRESHOLD() {
|
|
423
423
|
return ko;
|
|
@@ -435,7 +435,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
435
435
|
return Yl;
|
|
436
436
|
},
|
|
437
437
|
get configureFriendlyMapping() {
|
|
438
|
-
return
|
|
438
|
+
return qp;
|
|
439
439
|
},
|
|
440
440
|
get createAiChatEngine() {
|
|
441
441
|
return si;
|
|
@@ -447,19 +447,19 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
447
447
|
return La;
|
|
448
448
|
},
|
|
449
449
|
get createUiToolRegistry() {
|
|
450
|
-
return
|
|
450
|
+
return _h;
|
|
451
451
|
},
|
|
452
452
|
get disposeSharedAiChatEngine() {
|
|
453
|
-
return
|
|
453
|
+
return qh;
|
|
454
454
|
},
|
|
455
455
|
get engineKeyFor() {
|
|
456
456
|
return ic;
|
|
457
457
|
},
|
|
458
458
|
get extendDefaultScope() {
|
|
459
|
-
return
|
|
459
|
+
return xf;
|
|
460
460
|
},
|
|
461
461
|
get extendModuleRegistry() {
|
|
462
|
-
return
|
|
462
|
+
return yf;
|
|
463
463
|
},
|
|
464
464
|
get getDefaultJsxScope() {
|
|
465
465
|
return mc;
|
|
@@ -483,7 +483,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
483
483
|
return mi;
|
|
484
484
|
},
|
|
485
485
|
get useAgentEngine() {
|
|
486
|
-
return
|
|
486
|
+
return Gh;
|
|
487
487
|
},
|
|
488
488
|
get useAiChatServices() {
|
|
489
489
|
return ut;
|
|
@@ -495,7 +495,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
495
495
|
return bi;
|
|
496
496
|
},
|
|
497
497
|
get useContainerRectangle() {
|
|
498
|
-
return
|
|
498
|
+
return Cu;
|
|
499
499
|
},
|
|
500
500
|
get useEnvironment() {
|
|
501
501
|
return ql;
|
|
@@ -510,7 +510,7 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
510
510
|
return Ci;
|
|
511
511
|
},
|
|
512
512
|
get useResponsiveLayout() {
|
|
513
|
-
return
|
|
513
|
+
return Bf;
|
|
514
514
|
},
|
|
515
515
|
get useTurnOpen() {
|
|
516
516
|
return oc;
|
|
@@ -519,22 +519,22 @@ const lp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
519
519
|
return zl;
|
|
520
520
|
},
|
|
521
521
|
get v2Card() {
|
|
522
|
-
return
|
|
522
|
+
return Op;
|
|
523
523
|
},
|
|
524
524
|
get v2Chip() {
|
|
525
|
-
return
|
|
525
|
+
return Rp;
|
|
526
526
|
},
|
|
527
527
|
get v2IconBtn() {
|
|
528
|
-
return
|
|
528
|
+
return Dp;
|
|
529
529
|
},
|
|
530
530
|
get v2MonoMeta() {
|
|
531
|
-
return
|
|
531
|
+
return Pp;
|
|
532
532
|
},
|
|
533
533
|
get v2SectionLabel() {
|
|
534
|
-
return
|
|
534
|
+
return Fp;
|
|
535
535
|
},
|
|
536
536
|
get v2Theme() {
|
|
537
|
-
return
|
|
537
|
+
return Pf;
|
|
538
538
|
}
|
|
539
539
|
}, Symbol.toStringTag, { value: "Module" })), xn = Cr(void 0), ut = /* @__PURE__ */ t(() => {
|
|
540
540
|
const e = Ut(xn);
|
|
@@ -709,7 +709,7 @@ function La(e, r) {
|
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
711
|
t(La, "createAiChatStore");
|
|
712
|
-
const ko = 0.75,
|
|
712
|
+
const ko = 0.75, dp = 1e3, cn = 300 * 1e3, po = 500, up = 2e4, Ii = class Ii {
|
|
713
713
|
constructor(r, i, s, u, l = {}) {
|
|
714
714
|
tt(this, "idleTime", 0);
|
|
715
715
|
tt(this, "internalHearBeat", null);
|
|
@@ -841,8 +841,8 @@ const ko = 0.75, cp = 1e3, cn = 300 * 1e3, po = 500, dp = 2e4, Ii = class Ii {
|
|
|
841
841
|
if (this.sessionState.sessionActive && this.sessionState.connectionStatus == Ie.Disconnected) {
|
|
842
842
|
const s = i - this.lastConCheck;
|
|
843
843
|
if (s >= this.waitTimeForRetry) {
|
|
844
|
-
const u = this.waitTimeForRetry + this.waitTimeForRetry * this.waitTimeForRetry /
|
|
845
|
-
this.waitTimeForRetry = Math.min(u,
|
|
844
|
+
const u = this.waitTimeForRetry + this.waitTimeForRetry * this.waitTimeForRetry / dp;
|
|
845
|
+
this.waitTimeForRetry = Math.min(u, up), this.lastConCheck = i, console.warn(`[SessionState] Outer retry: redialling session ${this.workingSessionId ?? "(new)"} after ${s}ms idle-of-retry (next wait ${this.waitTimeForRetry}ms, no replay cursor).`), this.bindAndOpenLiveSession(this.workingSessionId).catch((l) => console.error("Error bind and open", l));
|
|
846
846
|
}
|
|
847
847
|
} else
|
|
848
848
|
this.waitTimeForRetry = po;
|
|
@@ -850,14 +850,14 @@ const ko = 0.75, cp = 1e3, cn = 300 * 1e3, po = 500, dp = 2e4, Ii = class Ii {
|
|
|
850
850
|
};
|
|
851
851
|
t(Ii, "SessionStateManagerService");
|
|
852
852
|
let So = Ii;
|
|
853
|
-
function
|
|
853
|
+
function pp() {
|
|
854
854
|
return {
|
|
855
855
|
pushNotification: /* @__PURE__ */ t((e) => {
|
|
856
856
|
ni(e.message, { variant: e.type, preventDuplicate: !0 });
|
|
857
857
|
}, "pushNotification")
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
t(
|
|
860
|
+
t(pp, "defaultNotificationPort");
|
|
861
861
|
function si(e) {
|
|
862
862
|
const {
|
|
863
863
|
serverBaseUrl: r,
|
|
@@ -874,7 +874,7 @@ function si(e) {
|
|
|
874
874
|
}, "resolveUser"), T = /* @__PURE__ */ t(() => {
|
|
875
875
|
var d;
|
|
876
876
|
return (d = E()) == null ? void 0 : d.access_token;
|
|
877
|
-
}, "getToken"), D = e.eventBusService ?? new vd(), k = e.storageService ?? new wd(), w = e.notificationPort ??
|
|
877
|
+
}, "getToken"), D = e.eventBusService ?? new vd(), k = e.storageService ?? new wd(), w = e.notificationPort ?? pp(), I = e.artifactService ?? new kd(r, T), f = e.sessionService ?? new yd(r, T), y = La(f, l);
|
|
878
878
|
y.getState().setConnectionStatus(Ie.Idle);
|
|
879
879
|
const v = s ? s(r) : new Sd(r, T), g = new br(
|
|
880
880
|
b,
|
|
@@ -1056,8 +1056,8 @@ const al = /* @__PURE__ */ t(({
|
|
|
1056
1056
|
} = Qe;
|
|
1057
1057
|
se(() => {
|
|
1058
1058
|
const Se = /* @__PURE__ */ t((Ce, at) => {
|
|
1059
|
-
var vt, it, st,
|
|
1060
|
-
if ((vt = X.current) != null && vt.onSessionCreated && ((it = Ce.session) == null ? void 0 : it.id) !== ((st = at.session) == null ? void 0 : st.id) && Ce.session && ((((
|
|
1059
|
+
var vt, it, st, le, Lt, Ht, St;
|
|
1060
|
+
if ((vt = X.current) != null && vt.onSessionCreated && ((it = Ce.session) == null ? void 0 : it.id) !== ((st = at.session) == null ? void 0 : st.id) && Ce.session && ((((le = Ce.session) == null ? void 0 : le.id) ?? "-") + (((Lt = at.session) == null ? void 0 : Lt.id) ?? "-"), (Ht = X.current) != null && Ht.onSessionCreated && Ce.session && X.current.onSessionCreated(Ce.session)), (St = X.current) != null && St.onConnectionStateChange && (Ce.connectionStatus != at.connectionStatus || Ce.loading != at.loading || Ce.loadingError != at.loadingError || Ce.sessionActive != at.sessionActive)) {
|
|
1061
1061
|
const jt = {
|
|
1062
1062
|
connectionState: Ce.connectionStatus,
|
|
1063
1063
|
loading: Ce.loading,
|
|
@@ -1072,8 +1072,8 @@ const al = /* @__PURE__ */ t(({
|
|
|
1072
1072
|
kt || Qe.setUser(i);
|
|
1073
1073
|
}, [kt, Qe, i, i.access_token]), se(() => {
|
|
1074
1074
|
const Se = /* @__PURE__ */ t(async (vt, it) => {
|
|
1075
|
-
var st,
|
|
1076
|
-
(
|
|
1075
|
+
var st, le;
|
|
1076
|
+
(le = (st = X.current).onTurnComplete) == null || le.call(st, it);
|
|
1077
1077
|
}, "handleTurnComplete"), ze = /* @__PURE__ */ t(async (vt) => {
|
|
1078
1078
|
var it, st;
|
|
1079
1079
|
(st = (it = X.current).onMessage) == null || st.call(it, vt);
|
|
@@ -1181,16 +1181,16 @@ const al = /* @__PURE__ */ t(({
|
|
|
1181
1181
|
] }), e), "SendIcon"), li = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ M(ie, { children: [
|
|
1182
1182
|
/* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "7" }),
|
|
1183
1183
|
/* @__PURE__ */ n("path", { d: "m20 20-3.5-3.5" })
|
|
1184
|
-
] }), e), "SearchIcon"),
|
|
1184
|
+
] }), e), "SearchIcon"), hp = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "M21 12a8 8 0 0 1-8 8H7l-4 3v-7a8 8 0 0 1 18-4Z" }), e), "ChatIcon"), fp = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ M(ie, { children: [
|
|
1185
1185
|
/* @__PURE__ */ n("path", { d: "M3 3v18h18" }),
|
|
1186
1186
|
/* @__PURE__ */ n("path", { d: "m7 14 4-4 4 3 5-7" })
|
|
1187
|
-
] }), e), "ChartIcon"),
|
|
1187
|
+
] }), e), "ChartIcon"), gp = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ M(ie, { children: [
|
|
1188
1188
|
/* @__PURE__ */ n("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1189
1189
|
/* @__PURE__ */ n("path", { d: "M3 9h18M3 15h18M9 3v18" })
|
|
1190
1190
|
] }), e), "TableIcon"), il = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "M12 5v14M5 12h14" }), e), "PlusIcon"), $a = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ M(ie, { children: [
|
|
1191
1191
|
/* @__PURE__ */ n("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1192
1192
|
/* @__PURE__ */ n("path", { d: "M9 3v18" })
|
|
1193
|
-
] }), e), "PanelIcon"), xr = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("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"), sl = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "M20 6 9 17l-5-5" }), { strokeWidth: 2.5, ...e }), "CheckIcon"), vr = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" }), { strokeWidth: 2, ...e }), "ChevronIcon"),
|
|
1193
|
+
] }), e), "PanelIcon"), xr = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("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"), sl = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "M20 6 9 17l-5-5" }), { strokeWidth: 2.5, ...e }), "CheckIcon"), vr = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" }), { strokeWidth: 2, ...e }), "ChevronIcon"), mp = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" }), { strokeWidth: 2, ...e }), "ChevronRightIcon"), ll = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("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"), bp = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "M12 17v5M9 3h6l-1 6 4 3H6l4-3-1-6Z" }), e), "PinIcon"), ci = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("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"), di = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ M(ie, { children: [
|
|
1194
1194
|
/* @__PURE__ */ n("rect", { x: "3", y: "3", width: "7", height: "9", rx: "1.2" }),
|
|
1195
1195
|
/* @__PURE__ */ n("rect", { x: "14", y: "3", width: "7", height: "5", rx: "1.2" }),
|
|
1196
1196
|
/* @__PURE__ */ n("rect", { x: "14", y: "12", width: "7", height: "9", rx: "1.2" }),
|
|
@@ -1209,7 +1209,7 @@ const al = /* @__PURE__ */ t(({
|
|
|
1209
1209
|
/* @__PURE__ */ n("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
1210
1210
|
/* @__PURE__ */ n("path", { d: "M3 3v5h5" }),
|
|
1211
1211
|
/* @__PURE__ */ n("path", { d: "M12 7v5l3 2" })
|
|
1212
|
-
] }), e), "HistoryIcon"),
|
|
1212
|
+
] }), e), "HistoryIcon"), yp = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ n("path", { d: "M4 6h16M4 12h16M4 18h16" }), { strokeWidth: 2, ...e }), "MenuIcon"), ul = /* @__PURE__ */ t((e) => Te(
|
|
1213
1213
|
/* @__PURE__ */ n("g", { transform: "rotate(45 12 12)", children: /* @__PURE__ */ n("path", { d: "M16 8v8a4 4 0 0 1 -8 0V7a2.5 2.5 0 0 1 5 0v8a1.5 1.5 0 0 1 -3 0V8" }) }),
|
|
1214
1214
|
e
|
|
1215
1215
|
), "PaperclipIcon"), pl = /* @__PURE__ */ t((e) => Te(/* @__PURE__ */ M(ie, { children: [
|
|
@@ -1288,7 +1288,7 @@ const al = /* @__PURE__ */ t(({
|
|
|
1288
1288
|
Highest: "secondary",
|
|
1289
1289
|
High: "info",
|
|
1290
1290
|
Good: "warning"
|
|
1291
|
-
},
|
|
1291
|
+
}, xp = /* @__PURE__ */ t(({ inline: e = !1 }) => {
|
|
1292
1292
|
const r = zt(), { currentModel: i, setCurrentModel: s } = ut(), [u, l] = G(null), x = Ee((w) => {
|
|
1293
1293
|
l(w.currentTarget);
|
|
1294
1294
|
}, []), b = Ee(() => {
|
|
@@ -1469,7 +1469,7 @@ const al = /* @__PURE__ */ t(({
|
|
|
1469
1469
|
}
|
|
1470
1470
|
)
|
|
1471
1471
|
] });
|
|
1472
|
-
}, "ModelSelector"),
|
|
1472
|
+
}, "ModelSelector"), vp = {
|
|
1473
1473
|
position: "absolute",
|
|
1474
1474
|
top: "2px",
|
|
1475
1475
|
// Adjust vertical position
|
|
@@ -1493,7 +1493,7 @@ function gi({ value: e, valueBuffer: r, markers: i, sx: s }) {
|
|
|
1493
1493
|
i.map((l, x) => /* @__PURE__ */ n(Yn, { title: l.label, placement: "top", arrow: !0, children: /* @__PURE__ */ n(
|
|
1494
1494
|
R,
|
|
1495
1495
|
{
|
|
1496
|
-
sx: { ...
|
|
1496
|
+
sx: { ...vp, left: `${l.position}%`, backgroundColor: l.color }
|
|
1497
1497
|
},
|
|
1498
1498
|
x
|
|
1499
1499
|
) }, "TT" + x))
|
|
@@ -1552,16 +1552,16 @@ function Co(e) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
t(Co, "formatTokens");
|
|
1554
1554
|
var ho = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1555
|
-
function
|
|
1555
|
+
function wp(e) {
|
|
1556
1556
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1557
1557
|
}
|
|
1558
|
-
t(
|
|
1559
|
-
var bo = { exports: {} },
|
|
1560
|
-
function
|
|
1558
|
+
t(wp, "getDefaultExportFromCjs");
|
|
1559
|
+
var bo = { exports: {} }, kp = bo.exports, as;
|
|
1560
|
+
function Sp() {
|
|
1561
1561
|
return as || (as = 1, (function(e, r) {
|
|
1562
1562
|
(function(i, s) {
|
|
1563
1563
|
e.exports = s(dt);
|
|
1564
|
-
})(
|
|
1564
|
+
})(kp, (i) => (() => {
|
|
1565
1565
|
var s = { 165(b, E, T) {
|
|
1566
1566
|
const D = T(877), k = {};
|
|
1567
1567
|
for (const f of Object.keys(D)) k[D[f]] = f;
|
|
@@ -2681,10 +2681,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2681
2681
|
return J;
|
|
2682
2682
|
}, "Ee");
|
|
2683
2683
|
var st = Math.max;
|
|
2684
|
-
const
|
|
2684
|
+
const le = /* @__PURE__ */ t(function(a, o, c, m) {
|
|
2685
2685
|
for (var _ = -1, P = a.length, L = -1, O = c.length, j = -1, V = o.length, J = st(P - O, 0), ee = Array(J + V), pe = !m; ++_ < J; ) ee[_] = a[_];
|
|
2686
|
-
for (var
|
|
2687
|
-
for (; ++L < O; ) (pe || _ < P) && (ee[
|
|
2686
|
+
for (var de = _; ++j < V; ) ee[de + j] = o[j];
|
|
2687
|
+
for (; ++L < O; ) (pe || _ < P) && (ee[de + c[L]] = a[_++]);
|
|
2688
2688
|
return ee;
|
|
2689
2689
|
}, "je"), Lt = /* @__PURE__ */ t(function(a, o) {
|
|
2690
2690
|
for (var c = a.length, m = 0; c--; ) a[c] === o && ++m;
|
|
@@ -2828,15 +2828,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2828
2828
|
}
|
|
2829
2829
|
return P;
|
|
2830
2830
|
}, "ht"), $r = /* @__PURE__ */ t(function a(o, c, m, _, P, L, O, j, V, J) {
|
|
2831
|
-
var ee = 128 & c, pe = 1 & c,
|
|
2831
|
+
var ee = 128 & c, pe = 1 & c, de = 2 & c, Oe = 24 & c, Ve = 512 & c, he = de ? void 0 : ze(o);
|
|
2832
2832
|
return /* @__PURE__ */ t(function _e() {
|
|
2833
2833
|
for (var Ue = arguments.length, Re = Array(Ue), Rt = Ue; Rt--; ) Re[Rt] = arguments[Rt];
|
|
2834
2834
|
if (Oe) var It = Ln(_e), _n = Lt(Re, It);
|
|
2835
|
-
if (_ && (Re = it(Re, _, P, Oe)), L && (Re =
|
|
2835
|
+
if (_ && (Re = it(Re, _, P, Oe)), L && (Re = le(Re, L, O, Oe)), Ue -= _n, Oe && Ue < J) {
|
|
2836
2836
|
var mn = jn(Re, It);
|
|
2837
2837
|
return jr(o, c, a, _e.placeholder, m, Re, mn, j, V, J - Ue);
|
|
2838
2838
|
}
|
|
2839
|
-
var sn = pe ? m : this, At =
|
|
2839
|
+
var sn = pe ? m : this, At = de ? sn[o] : o;
|
|
2840
2840
|
return Ue = Re.length, j ? Re = qo(Re, j) : Ve && Ue > 1 && Re.reverse(), ee && V < Ue && (Re.length = V), this && this !== He && this instanceof _e && (At = he || ze(At)), At.apply(sn, Re);
|
|
2841
2841
|
}, "v");
|
|
2842
2842
|
}, "e"), Br = /* @__PURE__ */ t(function(a, o, c) {
|
|
@@ -2864,7 +2864,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2864
2864
|
var j = a[3];
|
|
2865
2865
|
a[3] = j ? it(j, O, o[4]) : O, a[4] = j ? jn(a[3], Wr) : o[4];
|
|
2866
2866
|
}
|
|
2867
|
-
return (O = o[5]) && (j = a[5], a[5] = j ?
|
|
2867
|
+
return (O = o[5]) && (j = a[5], a[5] = j ? le(j, O, o[6]) : O, a[6] = j ? jn(a[5], Wr) : o[6]), (O = o[7]) && (a[7] = O), m & or && (a[8] = a[8] == null ? o[8] : Ko(a[8], o[8])), a[9] == null && (a[9] = o[9]), a[0] = o[0], a[1] = _, a;
|
|
2868
2868
|
}, "kt");
|
|
2869
2869
|
var Nr = /\s/;
|
|
2870
2870
|
const Jo = /* @__PURE__ */ t(function(a) {
|
|
@@ -2906,10 +2906,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2906
2906
|
var J = m, ee = _;
|
|
2907
2907
|
m = _ = void 0;
|
|
2908
2908
|
}
|
|
2909
|
-
var pe = j ? void 0 : vn(a),
|
|
2910
|
-
if (pe && Go(
|
|
2909
|
+
var pe = j ? void 0 : vn(a), de = [a, o, c, m, _, J, ee, P, L, O];
|
|
2910
|
+
if (pe && Go(de, pe), a = de[0], o = de[1], c = de[2], m = de[3], _ = de[4], !(O = de[9] = de[9] === void 0 ? j ? 0 : a.length : $n(de[9] - V, 0)) && 24 & o && (o &= -25), o && o != 1) Oe = o == 8 || o == 16 ? Br(a, o, O) : o != 32 && o != 33 || _.length ? $r.apply(void 0, de) : rr(a, o, c, m);
|
|
2911
2911
|
else var Oe = Ce(a, o, c);
|
|
2912
|
-
return Lr((pe ? fe : En)(Oe,
|
|
2912
|
+
return Lr((pe ? fe : En)(Oe, de), a, o);
|
|
2913
2913
|
}, "It");
|
|
2914
2914
|
function Tt(a, o, c) {
|
|
2915
2915
|
var m = ar(a, 8, void 0, void 0, void 0, void 0, void 0, o = c ? void 0 : o);
|
|
@@ -2924,8 +2924,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2924
2924
|
var P;
|
|
2925
2925
|
const L = (function(O) {
|
|
2926
2926
|
const j = O[0], V = O[1], J = O[2];
|
|
2927
|
-
let ee, pe,
|
|
2928
|
-
return ee = 1 * j + 0 * V + 1.13983 * J, pe = 1 * j + -0.39465 * V + -0.5806 * J,
|
|
2927
|
+
let ee, pe, de;
|
|
2928
|
+
return ee = 1 * j + 0 * V + 1.13983 * J, pe = 1 * j + -0.39465 * V + -0.5806 * J, de = 1 * j + 2.02311 * V + 0 * J, ee = Math.min(Math.max(0, ee), 1), pe = Math.min(Math.max(0, pe), 1), de = Math.min(Math.max(0, de), 1), [255 * ee, 255 * pe, 255 * de];
|
|
2929
2929
|
})([(P = c, P < 0.25 ? 1 : P < 0.5 ? 0.9 - P : 1.1 - P), m, _]);
|
|
2930
2930
|
return ye.rgb(L).hex();
|
|
2931
2931
|
}, "Vt"), $t = /* @__PURE__ */ t((a) => (o) => ({ className: [o.className, a.className].filter(Boolean).join(" "), style: { ...o.style || {}, ...a.style || {} } }), "Kt"), Gr = /* @__PURE__ */ t((a, o) => {
|
|
@@ -3076,7 +3076,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3076
3076
|
}, c.updateSrc = function(L, O) {
|
|
3077
3077
|
var j = O.name, V = O.namespace, J = O.new_value, ee = O.variable_removed;
|
|
3078
3078
|
V.shift();
|
|
3079
|
-
var pe,
|
|
3079
|
+
var pe, de = c.get(L, "global", "src"), Oe = c.deepCopy(de, H(V)), Ve = Oe, he = (function(_e, Ue) {
|
|
3080
3080
|
var Re = typeof Symbol < "u" && _e[Symbol.iterator] || _e["@@iterator"];
|
|
3081
3081
|
if (!Re) {
|
|
3082
3082
|
if (Array.isArray(_e) || (Re = U(_e)) || Ue) {
|
|
@@ -3249,7 +3249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3249
3249
|
return h().useCallback(function(Re) {
|
|
3250
3250
|
he.current = Re, Ue.current && no(Ue.current, null), Ue.current = _e, _e && no(_e, Re);
|
|
3251
3251
|
}, [_e]);
|
|
3252
|
-
})(ee, o),
|
|
3252
|
+
})(ee, o), de = A.useRef(0), Oe = A.useRef(), Ve = /* @__PURE__ */ t(function() {
|
|
3253
3253
|
var he = ee.current, _e = c && Oe.current ? Oe.current : so(he);
|
|
3254
3254
|
if (_e) {
|
|
3255
3255
|
Oe.current = _e;
|
|
@@ -3267,7 +3267,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3267
3267
|
var pa = da * sn;
|
|
3268
3268
|
return Bi === "border-box" && (pa = pa + At + $i), [hr = Math.min(pa, hr), da];
|
|
3269
3269
|
})(_e, he.value || he.placeholder || "x", _, m), Re = Ue[0], Rt = Ue[1];
|
|
3270
|
-
|
|
3270
|
+
de.current !== Re && (de.current = Re, he.style.setProperty("height", Re + "px", "important"), j(Re, { rowHeight: Rt }));
|
|
3271
3271
|
}
|
|
3272
3272
|
}, "f");
|
|
3273
3273
|
return A.useLayoutEffect(Ve), (function(he, _e) {
|
|
@@ -3287,7 +3287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3287
3287
|
})(Ve), A.createElement("textarea", pr({}, V, { onChange: /* @__PURE__ */ t(function(he) {
|
|
3288
3288
|
J || Ve(), L(he);
|
|
3289
3289
|
}, "onChange"), ref: pe }));
|
|
3290
|
-
}, "Fn"),
|
|
3290
|
+
}, "Fn"), ce = A.forwardRef(oe);
|
|
3291
3291
|
function Me(a, o) {
|
|
3292
3292
|
a = a.trim();
|
|
3293
3293
|
try {
|
|
@@ -3545,7 +3545,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3545
3545
|
}
|
|
3546
3546
|
}, m.getEditInput = function() {
|
|
3547
3547
|
var _ = m.props, P = _.keyModifier, L = _.selectOnFocus, O = _.theme, j = m.state.editValue;
|
|
3548
|
-
return h().createElement("div", null, h().createElement(
|
|
3548
|
+
return h().createElement("div", null, h().createElement(ce, Object.assign({ type: "text", ref: /* @__PURE__ */ t(function(V) {
|
|
3549
3549
|
V && V[L ? "select" : "focus"]();
|
|
3550
3550
|
}, "ref"), value: j, className: "variable-editor", onChange: /* @__PURE__ */ t(function(V) {
|
|
3551
3551
|
var J = V.target.value, ee = Me(J, m.props.bigNumber);
|
|
@@ -3565,8 +3565,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3565
3565
|
V && V.stopPropagation(), m.submitEdit();
|
|
3566
3566
|
}, "onClick") })), h().createElement("div", null, m.showDetected())));
|
|
3567
3567
|
}, m.submitEdit = function(_) {
|
|
3568
|
-
var P = m.props, L = P.variable, O = P.namespace, j = P.rjvId, V = P.bigNumber, J = m.state, ee = J.editValue, pe = J.parsedInput,
|
|
3569
|
-
_ && pe.type && (
|
|
3568
|
+
var P = m.props, L = P.variable, O = P.namespace, j = P.rjvId, V = P.bigNumber, J = m.state, ee = J.editValue, pe = J.parsedInput, de = ee;
|
|
3569
|
+
_ && pe.type && (de = pe.value, V && pe.type === "bigNumber" && (de = new V(de))), m.setState({ editMode: !1 }), Ct.dispatch({ name: "VARIABLE_UPDATED", rjvId: j, data: { name: L.name, namespace: O, existing_value: L.value, new_value: de, variable_removed: !1 } });
|
|
3570
3570
|
}, m.showDetected = function() {
|
|
3571
3571
|
var _ = m.props.theme, P = m.getDetectedInput();
|
|
3572
3572
|
if (P) return h().createElement("div", null, h().createElement("div", Q(_, "detected-row"), P, h().createElement(sa, { className: "edit-check detected", style: k({ verticalAlign: "top", paddingLeft: "3px" }, Q(_, "check-icon").style), onClick: /* @__PURE__ */ t(function(L) {
|
|
@@ -3605,12 +3605,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3605
3605
|
}, m.state = { editMode: !1, editValue: "", hovered: !1, renameKey: !1, parsedInput: { type: !1, value: null } }, m;
|
|
3606
3606
|
}
|
|
3607
3607
|
return t(o, "t"), d(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3608
|
-
var c = this, m = this.props, _ = m.variable, P = m.singleIndent, L = m.type, O = m.theme, j = m.namespace, V = m.indentWidth, J = m.enableClipboard, ee = m.onEdit, pe = m.onDelete,
|
|
3608
|
+
var c = this, m = this.props, _ = m.variable, P = m.singleIndent, L = m.type, O = m.theme, j = m.namespace, V = m.indentWidth, J = m.enableClipboard, ee = m.onEdit, pe = m.onDelete, de = m.onSelect, Oe = m.displayArrayKey, Ve = m.quotesOnKeys, he = m.showComma, _e = m.isLast, Ue = this.state.editMode, Re = de !== !1 || ee !== !1;
|
|
3609
3609
|
return h().createElement("div", Object.assign({}, Q(O, "objectKeyVal", { paddingLeft: V * P }), { onMouseEnter: /* @__PURE__ */ t(function() {
|
|
3610
3610
|
return c.setState(k(k({}, c.state), {}, { hovered: !0 }));
|
|
3611
3611
|
}, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ t(function() {
|
|
3612
3612
|
return c.setState(k(k({}, c.state), {}, { hovered: !1 }));
|
|
3613
|
-
}, "onMouseLeave"), className: "variable-row", key: _.name }), L === "array" ? Oe ? h().createElement("span", Object.assign({}, Q(O, "array-key"), { key: _.name + "_" + j }), _.name, h().createElement("div", Q(O, "colon"), ":")) : null : h().createElement("span", null, h().createElement("span", Object.assign({}, Q(O, "object-name"), { className: "object-key", key: _.name + "_" + j, onClick: Re ? this.handleSelect : null }), !!Ve && h().createElement("span", { style: { verticalAlign: "top" } }, '"'), h().createElement("span", { style: { display: "inline-block" } }, Fe(_.name)), !!Ve && h().createElement("span", { style: { verticalAlign: "top" } }, '"')), h().createElement("span", Q(O, "colon"), ":")), h().createElement("div", Object.assign({ className: "variable-value", onClick: Re ? this.handleSelect : null }, Q(O, "variableValue", { cursor:
|
|
3613
|
+
}, "onMouseLeave"), className: "variable-row", key: _.name }), L === "array" ? Oe ? h().createElement("span", Object.assign({}, Q(O, "array-key"), { key: _.name + "_" + j }), _.name, h().createElement("div", Q(O, "colon"), ":")) : null : h().createElement("span", null, h().createElement("span", Object.assign({}, Q(O, "object-name"), { className: "object-key", key: _.name + "_" + j, onClick: Re ? this.handleSelect : null }), !!Ve && h().createElement("span", { style: { verticalAlign: "top" } }, '"'), h().createElement("span", { style: { display: "inline-block" } }, Fe(_.name)), !!Ve && h().createElement("span", { style: { verticalAlign: "top" } }, '"')), h().createElement("span", Q(O, "colon"), ":")), h().createElement("div", Object.assign({ className: "variable-value", onClick: Re ? this.handleSelect : null }, Q(O, "variableValue", { cursor: de === !1 ? "default" : "pointer" })), this.getValue(_, Ue)), he && !_e && h().createElement("span", Q(O, "comma"), ","), J ? h().createElement(Di, { rowHovered: this.state.hovered, hidden: Ue, src: _.value, clickCallback: J, theme: O, namespace: [].concat(H(j), [_.name]) }) : null, ee !== !1 && Ue === !1 ? this.getEditIcon() : null, pe !== !1 && Ue === !1 ? this.getRemoveIcon() : null);
|
|
3614
3614
|
}, "value") }]);
|
|
3615
3615
|
})(h().PureComponent);
|
|
3616
3616
|
var Oi = (function(a) {
|
|
@@ -3622,9 +3622,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3622
3622
|
var L = c.props, O = L.size, j = L.theme;
|
|
3623
3623
|
if (L.displayObjectSize) return h().createElement("span", Object.assign({ className: "object-size" }, Q(j, "object-size")), O, " item", O === 1 ? "" : "s");
|
|
3624
3624
|
}, c.getAddAttribute = function(L) {
|
|
3625
|
-
var O = c.props, j = O.theme, V = O.namespace, J = O.name, ee = O.src, pe = O.rjvId,
|
|
3625
|
+
var O = c.props, j = O.theme, V = O.namespace, J = O.name, ee = O.src, pe = O.rjvId, de = O.depth;
|
|
3626
3626
|
return h().createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: L ? "inline-block" : "none" } }, h().createElement(Bc, Object.assign({ className: "click-to-add-icon" }, Q(j, "addVarIcon"), { onClick: /* @__PURE__ */ t(function() {
|
|
3627
|
-
var Oe = { name:
|
|
3627
|
+
var Oe = { name: de > 0 ? J : null, namespace: V.splice(0, V.length - 1), existing_value: ee, variable_removed: !1, key_name: null };
|
|
3628
3628
|
te(ee) === "object" ? Ct.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: pe, data: Oe }) : Ct.dispatch({ name: "VARIABLE_ADDED", rjvId: pe, data: k(k({}, Oe), {}, { new_value: [].concat(H(ee), [null]) }) });
|
|
3629
3629
|
}, "onClick") })));
|
|
3630
3630
|
}, c.getRemoveObject = function(L) {
|
|
@@ -3633,10 +3633,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3633
3633
|
Ct.dispatch({ name: "VARIABLE_REMOVED", rjvId: pe, data: { name: J, namespace: V.splice(0, V.length - 1), existing_value: ee, variable_removed: !0 } });
|
|
3634
3634
|
}, "onClick") })));
|
|
3635
3635
|
}, c.render = function() {
|
|
3636
|
-
var L = c.props, O = L.theme, j = L.onDelete, V = L.onAdd, J = L.enableClipboard, ee = L.src, pe = L.namespace,
|
|
3636
|
+
var L = c.props, O = L.theme, j = L.onDelete, V = L.onAdd, J = L.enableClipboard, ee = L.src, pe = L.namespace, de = L.rowHovered;
|
|
3637
3637
|
return h().createElement("div", Object.assign({}, Q(O, "object-meta-data"), { className: "object-meta-data", onClick: /* @__PURE__ */ t(function(Oe) {
|
|
3638
3638
|
Oe.stopPropagation();
|
|
3639
|
-
}, "onClick") }), c.getObjectSize(), J ? h().createElement(Di, { rowHovered:
|
|
3639
|
+
}, "onClick") }), c.getObjectSize(), J ? h().createElement(Di, { rowHovered: de, clickCallback: J, src: ee, theme: O, namespace: pe }) : null, V !== !1 ? c.getAddAttribute(de) : null, j !== !1 ? c.getRemoveObject(de) : null);
|
|
3640
3640
|
}, c;
|
|
3641
3641
|
}
|
|
3642
3642
|
return t(o, "t"), d(o, a), f(o);
|
|
@@ -3690,13 +3690,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3690
3690
|
}, "value") }, { key: "render", value: /* @__PURE__ */ t(function() {
|
|
3691
3691
|
var c = this, m = this.props, _ = m.src, P = m.groupArraysAfterLength, L = (m.depth, m.name), O = m.theme, j = m.jsvRoot, V = m.namespace, J = $(m, Hc), ee = 0, pe = 5 * this.props.indentWidth;
|
|
3692
3692
|
j || (ee = 5 * this.props.indentWidth);
|
|
3693
|
-
var
|
|
3693
|
+
var de = P, Oe = Math.ceil(_.length / de);
|
|
3694
3694
|
return h().createElement("div", Object.assign({ className: "object-key-val" }, Q(O, j ? "jsv-root" : "objectKeyVal", { paddingLeft: ee })), h().createElement(Pi, Object.assign({}, this.props, { onKeyClick: this.handleKeySelect })), h().createElement("span", null, h().createElement(Oi, Object.assign({ size: _.length }, this.props))), H(Array(Oe)).map(function(Ve, he) {
|
|
3695
3695
|
return h().createElement("div", Object.assign({ key: he, className: "object-key-val array-group" }, Q(O, "objectKeyVal", { marginLeft: 6, paddingLeft: pe })), h().createElement("span", Q(O, "brace-row"), h().createElement("div", Object.assign({ className: "icon-container" }, Q(O, "icon-container"), { onClick: /* @__PURE__ */ t(function(_e) {
|
|
3696
3696
|
c.toggleCollapsed(he);
|
|
3697
|
-
}, "onClick") }), c.getExpandedIcon(he)), c.state.expanded[he] ? h().createElement(lo, Object.assign({ key: L + he, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength:
|
|
3697
|
+
}, "onClick") }), c.getExpandedIcon(he)), c.state.expanded[he] ? h().createElement(lo, Object.assign({ key: L + he, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength: de, index_offset: he * de, src: _.slice(he * de, he * de + de), namespace: V, type: "array", parent_type: "array_group", theme: O, showComma: c.props.showComma, isLast: he === Oe - 1 }, J)) : h().createElement("span", Object.assign({}, Q(O, "brace"), { onClick: /* @__PURE__ */ t(function(_e) {
|
|
3698
3698
|
c.toggleCollapsed(he);
|
|
3699
|
-
}, "onClick"), className: "array-group-brace" }), "[", h().createElement("div", Object.assign({}, Q(O, "array-group-meta-data"), { className: "array-group-meta-data" }), h().createElement("span", Object.assign({ className: "object-size" }, Q(O, "object-size")), he *
|
|
3699
|
+
}, "onClick"), className: "array-group-brace" }), "[", h().createElement("div", Object.assign({}, Q(O, "array-group-meta-data"), { className: "array-group-meta-data" }), h().createElement("span", Object.assign({ className: "object-size" }, Q(O, "object-size")), he * de, " - ", he * de + de - 1 > _.length ? _.length - 1 : he * de + de - 1)), "]")));
|
|
3700
3700
|
}));
|
|
3701
3701
|
}, "value") }]);
|
|
3702
3702
|
})(h().PureComponent), Vc = ["depth", "src", "namespace", "name", "type", "parent_type", "theme", "jsvRoot", "iconStyle", "showComma", "isLast"], la = (function(a) {
|
|
@@ -3720,16 +3720,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3720
3720
|
var L = m.state, O = L.size, j = L.hovered;
|
|
3721
3721
|
return h().createElement(Oi, Object.assign({ rowHovered: j, size: O }, m.props));
|
|
3722
3722
|
}, m.renderObjectContents = function(P, L) {
|
|
3723
|
-
var O, j = m.props, V = j.depth, J = j.parent_type, ee = j.index_offset, pe = j.groupArraysAfterLength,
|
|
3723
|
+
var O, j = m.props, V = j.depth, J = j.parent_type, ee = j.index_offset, pe = j.groupArraysAfterLength, de = j.namespace, Oe = j.showComma, Ve = m.state.object_type, he = [], _e = Object.keys(P || {});
|
|
3724
3724
|
return m.props.sortKeys && Ve !== "array" && (_e = _e.sort()), _e.forEach(function(Ue, Re) {
|
|
3725
3725
|
O = new Uc(Ue, P[Ue], L.bigNumber);
|
|
3726
3726
|
var Rt = Re === _e.length - 1;
|
|
3727
|
-
if (J === "array_group" && ee && (O.name = parseInt(O.name, 10) + ee), Object.prototype.hasOwnProperty.call(P, Ue) && O.type.toLowerCase() !== "window") if (m.isCircularReference(O)) he.push(h().createElement(De, Object.assign({ key: O.name, depth: V + 1, name: O.name, src: O.value, namespace:
|
|
3728
|
-
else if (O.type === "object") he.push(h().createElement(lo, Object.assign({ key: O.name, depth: V + 1, name: O.name, src: O.value, namespace:
|
|
3727
|
+
if (J === "array_group" && ee && (O.name = parseInt(O.name, 10) + ee), Object.prototype.hasOwnProperty.call(P, Ue) && O.type.toLowerCase() !== "window") if (m.isCircularReference(O)) he.push(h().createElement(De, Object.assign({ key: O.name, depth: V + 1, name: O.name, src: O.value, namespace: de.concat(O.name), type: "array", parent_type: Ve, isLast: Rt, showComma: Oe, singleIndent: 5, indentWidth: m.props.indentWidth }, L)));
|
|
3728
|
+
else if (O.type === "object") he.push(h().createElement(lo, Object.assign({ key: O.name, depth: V + 1, name: O.name, src: O.value, namespace: de.concat(O.name), parent_type: Ve, isLast: Rt, showComma: Oe, listOfAncestors: m.listOfAncestors.concat([m.props.src]) }, L)));
|
|
3729
3729
|
else if (O.type === "array") {
|
|
3730
3730
|
var It = lo;
|
|
3731
|
-
pe && O.value.length > pe && (It = ji), he.push(h().createElement(It, Object.assign({ key: O.name, depth: V + 1, name: O.name, src: O.value, namespace:
|
|
3732
|
-
} else he.push(h().createElement(Nc, Object.assign({ key: O.name + "_" +
|
|
3731
|
+
pe && O.value.length > pe && (It = ji), he.push(h().createElement(It, Object.assign({ key: O.name, depth: V + 1, name: O.name, src: O.value, namespace: de.concat(O.name), type: "array", parent_type: Ve, isLast: Rt, showComma: Oe, listOfAncestors: m.listOfAncestors.concat([m.props.src]) }, L)));
|
|
3732
|
+
} else he.push(h().createElement(Nc, Object.assign({ key: O.name + "_" + de, variable: O, singleIndent: 5, namespace: de, type: m.props.type, isLast: Rt, showComma: Oe }, L)));
|
|
3733
3733
|
}), he;
|
|
3734
3734
|
};
|
|
3735
3735
|
var _ = o.getState(c);
|
|
@@ -3743,7 +3743,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3743
3743
|
}, "value") }, { key: "isCircularReference", value: /* @__PURE__ */ t(function(c) {
|
|
3744
3744
|
return this.listOfAncestors.indexOf(c.value) > -1 || c.value === this.props.src;
|
|
3745
3745
|
}, "value") }, { key: "render", value: /* @__PURE__ */ t(function() {
|
|
3746
|
-
var c = this, m = this.props, _ = m.depth, P = m.src, L = (m.namespace, m.name, m.type, m.parent_type), O = m.theme, j = m.jsvRoot, V = m.iconStyle, J = m.showComma, ee = m.isLast, pe = $(m, Vc),
|
|
3746
|
+
var c = this, m = this.props, _ = m.depth, P = m.src, L = (m.namespace, m.name, m.type, m.parent_type), O = m.theme, j = m.jsvRoot, V = m.iconStyle, J = m.showComma, ee = m.isLast, pe = $(m, Vc), de = this.state, Oe = de.object_type, Ve = de.expanded, he = {};
|
|
3747
3747
|
return j || L === "array_group" ? L === "array_group" && (he.borderLeft = 0, he.display = "inline") : he.paddingLeft = 5 * this.props.indentWidth, h().createElement("div", Object.assign({ className: "object-key-val", onMouseEnter: /* @__PURE__ */ t(function() {
|
|
3748
3748
|
return c.setState(k(k({}, c.state), {}, { hovered: !0 }));
|
|
3749
3749
|
}, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ t(function() {
|
|
@@ -3830,13 +3830,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3830
3830
|
return w(this, o), (m = p(this, o, [c])).rjvId = Date.now().toString() + Math.random().toString(36).slice(2), m.getListeners = function() {
|
|
3831
3831
|
return { reset: m.resetState, "variable-update": m.updateSrc, "add-key-request": m.addKeyRequest };
|
|
3832
3832
|
}, m.updateSrc = function() {
|
|
3833
|
-
var _, P = gt.get(m.rjvId, "action", "variable-update"), L = P.name, O = P.namespace, j = P.new_value, V = P.existing_value, J = P.updated_src, ee = P.type, pe = m.props,
|
|
3833
|
+
var _, P = gt.get(m.rjvId, "action", "variable-update"), L = P.name, O = P.namespace, j = P.new_value, V = P.existing_value, J = P.updated_src, ee = P.type, pe = m.props, de = pe.onEdit, Oe = pe.onDelete, Ve = pe.onAdd, he = { existing_src: m.state.src, new_value: j, updated_src: J, name: L, namespace: O, existing_value: V };
|
|
3834
3834
|
switch (ee) {
|
|
3835
3835
|
case "variable-added":
|
|
3836
3836
|
_ = Ve(he);
|
|
3837
3837
|
break;
|
|
3838
3838
|
case "variable-edited":
|
|
3839
|
-
_ =
|
|
3839
|
+
_ = de(he);
|
|
3840
3840
|
break;
|
|
3841
3841
|
case "variable-removed":
|
|
3842
3842
|
_ = Oe(he);
|
|
@@ -3887,9 +3887,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3887
3887
|
})());
|
|
3888
3888
|
})(bo)), bo.exports;
|
|
3889
3889
|
}
|
|
3890
|
-
t(
|
|
3891
|
-
var
|
|
3892
|
-
const is = /* @__PURE__ */
|
|
3890
|
+
t(Sp, "requireMain");
|
|
3891
|
+
var Cp = Sp();
|
|
3892
|
+
const is = /* @__PURE__ */ wp(Cp), Ep = is.default || is;
|
|
3893
3893
|
function ss(e) {
|
|
3894
3894
|
const { children: r, value: i, index: s, ...u } = e;
|
|
3895
3895
|
return /* @__PURE__ */ n(
|
|
@@ -3912,7 +3912,7 @@ function ls(e) {
|
|
|
3912
3912
|
};
|
|
3913
3913
|
}
|
|
3914
3914
|
t(ls, "a11yProps");
|
|
3915
|
-
const
|
|
3915
|
+
const Tp = /* @__PURE__ */ t(({ open: e, onClose: r }) => {
|
|
3916
3916
|
const i = be((v) => v.session), s = be((v) => v.setSession), [u, l] = G(0), [x, b] = G(null), [E, T] = G(1);
|
|
3917
3917
|
se(() => {
|
|
3918
3918
|
e && b(null);
|
|
@@ -4013,7 +4013,7 @@ ${d || "No response available"}
|
|
|
4013
4013
|
) }),
|
|
4014
4014
|
/* @__PURE__ */ M(Ra, { sx: { p: 0, overflow: "hidden" }, children: [
|
|
4015
4015
|
/* @__PURE__ */ n(ss, { value: u, index: 0, children: /* @__PURE__ */ n(ke, { sx: { height: "50vh", overflow: "auto" }, children: /* @__PURE__ */ n(
|
|
4016
|
-
|
|
4016
|
+
Ep,
|
|
4017
4017
|
{
|
|
4018
4018
|
src: f,
|
|
4019
4019
|
theme: "monokai",
|
|
@@ -4342,16 +4342,16 @@ function El({
|
|
|
4342
4342
|
)) });
|
|
4343
4343
|
}
|
|
4344
4344
|
t(El, "PromptDateMarkers");
|
|
4345
|
-
const cs = 10,
|
|
4346
|
-
airport:
|
|
4347
|
-
place:
|
|
4348
|
-
hotel:
|
|
4349
|
-
person:
|
|
4350
|
-
date:
|
|
4351
|
-
calendar:
|
|
4345
|
+
const cs = 10, Ip = {
|
|
4346
|
+
airport: Eu,
|
|
4347
|
+
place: Tu,
|
|
4348
|
+
hotel: Iu,
|
|
4349
|
+
person: Au,
|
|
4350
|
+
date: Mu,
|
|
4351
|
+
calendar: zu
|
|
4352
4352
|
};
|
|
4353
|
-
function
|
|
4354
|
-
const i =
|
|
4353
|
+
function Ap({ kind: e, touch: r }) {
|
|
4354
|
+
const i = Ip[e];
|
|
4355
4355
|
return /* @__PURE__ */ n(
|
|
4356
4356
|
i,
|
|
4357
4357
|
{
|
|
@@ -4366,15 +4366,15 @@ function Ip({ kind: e, touch: r }) {
|
|
|
4366
4366
|
}
|
|
4367
4367
|
);
|
|
4368
4368
|
}
|
|
4369
|
-
t(
|
|
4370
|
-
function
|
|
4369
|
+
t(Ap, "KindIcon");
|
|
4370
|
+
function Mp(e) {
|
|
4371
4371
|
const r = e.trim().split(/\s+/).filter((u) => new RegExp("\\p{L}", "u").test(u));
|
|
4372
4372
|
if (r.length === 0) return "?";
|
|
4373
4373
|
const i = r[0][0], s = r.length > 1 ? r[r.length - 1][0] : "";
|
|
4374
4374
|
return (i + s).toUpperCase();
|
|
4375
4375
|
}
|
|
4376
|
-
t(
|
|
4377
|
-
function
|
|
4376
|
+
t(Mp, "initials");
|
|
4377
|
+
function zp({ label: e, touch: r }) {
|
|
4378
4378
|
const i = r ? 36 : 26;
|
|
4379
4379
|
return /* @__PURE__ */ n(
|
|
4380
4380
|
R,
|
|
@@ -4395,18 +4395,18 @@ function Mp({ label: e, touch: r }) {
|
|
|
4395
4395
|
fontWeight: 600,
|
|
4396
4396
|
letterSpacing: 0.2
|
|
4397
4397
|
}), "sx"),
|
|
4398
|
-
children:
|
|
4398
|
+
children: Mp(e)
|
|
4399
4399
|
}
|
|
4400
4400
|
);
|
|
4401
4401
|
}
|
|
4402
|
-
t(
|
|
4403
|
-
function
|
|
4402
|
+
t(zp, "PersonAvatar");
|
|
4403
|
+
function _p(e, r) {
|
|
4404
4404
|
return e === "person" ? r.person : e === "hotel" ? r.hotel : r.location;
|
|
4405
4405
|
}
|
|
4406
|
-
t(
|
|
4406
|
+
t(_p, "sectionLabel");
|
|
4407
4407
|
function ds(e, r) {
|
|
4408
4408
|
if (e)
|
|
4409
|
-
return e.section ? e.section : e.group ?
|
|
4409
|
+
return e.section ? e.section : e.group ? _p(e.group, r) : void 0;
|
|
4410
4410
|
}
|
|
4411
4411
|
t(ds, "captionOf");
|
|
4412
4412
|
function To({
|
|
@@ -4578,7 +4578,7 @@ function To({
|
|
|
4578
4578
|
"&:active": { backgroundColor: F.palette.surface.hover }
|
|
4579
4579
|
}), "sx"),
|
|
4580
4580
|
children: [
|
|
4581
|
-
S.kind === "person" ? /* @__PURE__ */ n(
|
|
4581
|
+
S.kind === "person" ? /* @__PURE__ */ n(zp, { label: S.label, touch: E }) : S.kind ? /* @__PURE__ */ n(Ap, { kind: S.kind, touch: E }) : null,
|
|
4582
4582
|
/* @__PURE__ */ M(R, { sx: { display: "flex", flexDirection: "column", minWidth: 0, flex: 1 }, children: [
|
|
4583
4583
|
/* @__PURE__ */ M(R, { sx: { display: "flex", alignItems: "baseline", gap: 0.75, minWidth: 0 }, children: [
|
|
4584
4584
|
/* @__PURE__ */ n(
|
|
@@ -4630,7 +4630,7 @@ function To({
|
|
|
4630
4630
|
);
|
|
4631
4631
|
}
|
|
4632
4632
|
t(To, "TriggerDropdown");
|
|
4633
|
-
const
|
|
4633
|
+
const Rp = /* @__PURE__ */ t((e) => ({
|
|
4634
4634
|
backgroundColor: e.palette.surface.raised,
|
|
4635
4635
|
border: `1px solid ${e.palette.border.default}`,
|
|
4636
4636
|
color: e.palette.text.secondary,
|
|
@@ -4646,7 +4646,7 @@ const _p = /* @__PURE__ */ t((e) => ({
|
|
|
4646
4646
|
lineHeight: 1.2,
|
|
4647
4647
|
transition: "background-color .12s, color .12s",
|
|
4648
4648
|
"&:hover": { backgroundColor: e.palette.surface.hover, color: e.palette.text.primary }
|
|
4649
|
-
}), "v2Chip"),
|
|
4649
|
+
}), "v2Chip"), Dp = /* @__PURE__ */ t((e) => ({
|
|
4650
4650
|
background: "transparent",
|
|
4651
4651
|
border: "none",
|
|
4652
4652
|
color: e.palette.text.secondary,
|
|
@@ -4657,15 +4657,15 @@ const _p = /* @__PURE__ */ t((e) => ({
|
|
|
4657
4657
|
alignItems: "center",
|
|
4658
4658
|
justifyContent: "center",
|
|
4659
4659
|
"&:hover": { backgroundColor: e.palette.surface.raised, color: e.palette.text.primary }
|
|
4660
|
-
}), "v2IconBtn"),
|
|
4660
|
+
}), "v2IconBtn"), Op = /* @__PURE__ */ t((e) => ({
|
|
4661
4661
|
backgroundColor: e.palette.background.paper,
|
|
4662
4662
|
border: `1px solid ${e.palette.border.default}`,
|
|
4663
4663
|
borderRadius: `${e.shape.borderRadius}px`
|
|
4664
|
-
}), "v2Card"),
|
|
4664
|
+
}), "v2Card"), Pp = /* @__PURE__ */ t((e) => ({
|
|
4665
4665
|
fontFamily: e.typography.fontFamilyMono,
|
|
4666
4666
|
fontSize: 10.5,
|
|
4667
4667
|
color: e.palette.text.disabled
|
|
4668
|
-
}), "v2MonoMeta"),
|
|
4668
|
+
}), "v2MonoMeta"), Fp = /* @__PURE__ */ t((e) => ({
|
|
4669
4669
|
fontSize: 10,
|
|
4670
4670
|
color: e.palette.text.disabled,
|
|
4671
4671
|
textTransform: "uppercase",
|
|
@@ -4752,7 +4752,7 @@ function Tl({ kind: e, onAccept: r, compact: i = !1, midSentence: s = !1, fontSi
|
|
|
4752
4752
|
);
|
|
4753
4753
|
}
|
|
4754
4754
|
t(Tl, "PromptGhostHint");
|
|
4755
|
-
const ya = 8,
|
|
4755
|
+
const ya = 8, Lp = 160;
|
|
4756
4756
|
function Il({
|
|
4757
4757
|
open: e,
|
|
4758
4758
|
anchorEl: r,
|
|
@@ -4775,7 +4775,7 @@ function Il({
|
|
|
4775
4775
|
return;
|
|
4776
4776
|
}
|
|
4777
4777
|
const v = r.getBoundingClientRect(), g = ((A = window.visualViewport) == null ? void 0 : A.height) ?? window.innerHeight, p = (i ? i.getBoundingClientRect().top : v.bottom) + ya, S = g - p - w, d = v.top - ya;
|
|
4778
|
-
if (S <
|
|
4778
|
+
if (S < Lp && d > S) {
|
|
4779
4779
|
f({ placement: "above", left: v.left, width: v.width, offset: g - v.top + ya, maxH: d });
|
|
4780
4780
|
return;
|
|
4781
4781
|
}
|
|
@@ -4848,7 +4848,7 @@ const us = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], p
|
|
|
4848
4848
|
{ label: "Fino", value: 3 },
|
|
4849
4849
|
{ label: "Médio", value: 6 },
|
|
4850
4850
|
{ label: "Grosso", value: 12 }
|
|
4851
|
-
], fo = [0.5, 0.75, 1, 1.5, 2, 3, 4, 6, 8], fr = 1,
|
|
4851
|
+
], fo = [0.5, 0.75, 1, 1.5, 2, 3, 4, 6, 8], fr = 1, jp = 160, go = "#1f1f1f", $p = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/webp"]), hs = /* @__PURE__ */ t((e) => {
|
|
4852
4852
|
var s;
|
|
4853
4853
|
const r = document.createElement("canvas");
|
|
4854
4854
|
r.width = e.width, r.height = e.height, (s = r.getContext("2d")) == null || s.drawImage(e, 0, 0), e.width = r.height, e.height = r.width;
|
|
@@ -4876,7 +4876,7 @@ const us = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], p
|
|
|
4876
4876
|
w: typeof window > "u" ? 1024 : window.innerWidth,
|
|
4877
4877
|
h: typeof window > "u" ? 768 : window.innerHeight
|
|
4878
4878
|
})), F = ae(null), N = ae(null), K = I > 0, re = ve(
|
|
4879
|
-
() => ({ w: h.w * 0.9, h: h.h -
|
|
4879
|
+
() => ({ w: h.w * 0.9, h: h.h - jp }),
|
|
4880
4880
|
[h]
|
|
4881
4881
|
), $ = ve(() => !d.w || !d.h ? 1 : Math.min(1, re.w / d.w, re.h / d.h), [d, re]), Y = ve(
|
|
4882
4882
|
() => ({
|
|
@@ -5012,7 +5012,7 @@ const us = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], p
|
|
|
5012
5012
|
}, "handleUndo"), et = /* @__PURE__ */ t(() => {
|
|
5013
5013
|
const q = s.current;
|
|
5014
5014
|
if (!q || !e) return;
|
|
5015
|
-
const X =
|
|
5015
|
+
const X = $p.has(e.mimeType) ? e.mimeType : "image/png";
|
|
5016
5016
|
i(e.id, q.toDataURL(X, 0.92), X);
|
|
5017
5017
|
}, "handleApply"), rt = /* @__PURE__ */ n(
|
|
5018
5018
|
R,
|
|
@@ -5035,7 +5035,7 @@ const us = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], p
|
|
|
5035
5035
|
"&.Mui-disabled": { color: me(X.palette.common.white, 0.3) }
|
|
5036
5036
|
}), "toolbarButtonSx");
|
|
5037
5037
|
return /* @__PURE__ */ n(
|
|
5038
|
-
|
|
5038
|
+
_u,
|
|
5039
5039
|
{
|
|
5040
5040
|
open: e !== null,
|
|
5041
5041
|
onClose: /* @__PURE__ */ t((q, X) => {
|
|
@@ -5386,7 +5386,7 @@ function zl(e) {
|
|
|
5386
5386
|
}, [e]), r;
|
|
5387
5387
|
}
|
|
5388
5388
|
t(zl, "useVisualViewport");
|
|
5389
|
-
function
|
|
5389
|
+
function Bp(e) {
|
|
5390
5390
|
const [r, i] = G(void 0), s = ae(e);
|
|
5391
5391
|
return s.current = r ?? e, se(() => {
|
|
5392
5392
|
const u = /* @__PURE__ */ t((l) => {
|
|
@@ -5395,7 +5395,7 @@ function $p(e) {
|
|
|
5395
5395
|
return window.addEventListener("keydown", u, !0), () => window.removeEventListener("keydown", u, !0);
|
|
5396
5396
|
}, []), r;
|
|
5397
5397
|
}
|
|
5398
|
-
t(
|
|
5398
|
+
t(Bp, "useConfigUnlock");
|
|
5399
5399
|
const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
5400
5400
|
forceMessage: e,
|
|
5401
5401
|
onHeightChange: r,
|
|
@@ -5453,36 +5453,36 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5453
5453
|
promptGhostDebugKey: kt,
|
|
5454
5454
|
onRenderPrompt: ht,
|
|
5455
5455
|
eventBusService: Qe
|
|
5456
|
-
} = ut(), Ne = pt(), [Ae, ot] = G(""), [yt, ft] = G(null), qt =
|
|
5457
|
-
const W = Array.from(C).filter((
|
|
5456
|
+
} = ut(), Ne = pt(), [Ae, ot] = G(""), [yt, ft] = G(null), qt = Bp(D) ?? D, [Zt, en] = G(!1), [Ot, Kt] = G(!1), Xe = ae(null), _t = ae(null), [xt, Pt] = G([]), [Nt, Ft] = G(!1), [Z, fe] = G(null), qe = ae(0), Se = ae(null), ze = Ne.palette.mode == "light" ? Ne.palette.text.primary : Ne.palette.primary.main, Ce = Ne.palette.mode, at = Ee(async (C) => {
|
|
5457
|
+
const W = Array.from(C).filter((ce) => ce.type.startsWith("image/"));
|
|
5458
5458
|
if (W.length === 0) return;
|
|
5459
5459
|
const oe = await Promise.all(
|
|
5460
5460
|
W.map(
|
|
5461
|
-
(
|
|
5461
|
+
(ce) => new Promise((Me, $e) => {
|
|
5462
5462
|
const nt = new FileReader();
|
|
5463
5463
|
nt.onload = () => Me({
|
|
5464
5464
|
id: `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`,
|
|
5465
5465
|
dataUrl: String(nt.result ?? ""),
|
|
5466
|
-
mimeType:
|
|
5467
|
-
name:
|
|
5468
|
-
}), nt.onerror = () => $e(nt.error), nt.readAsDataURL(
|
|
5466
|
+
mimeType: ce.type,
|
|
5467
|
+
name: ce.name || "imagem"
|
|
5468
|
+
}), nt.onerror = () => $e(nt.error), nt.readAsDataURL(ce);
|
|
5469
5469
|
})
|
|
5470
5470
|
)
|
|
5471
5471
|
);
|
|
5472
|
-
Pt((
|
|
5472
|
+
Pt((ce) => [...ce, ...oe]);
|
|
5473
5473
|
}, []), vt = Ee((C) => {
|
|
5474
5474
|
Pt((W) => W.filter((oe) => oe.id !== C));
|
|
5475
5475
|
}, []), it = Ee((C, W, oe) => {
|
|
5476
|
-
Pt((
|
|
5476
|
+
Pt((ce) => ce.map((Me) => Me.id === C ? { ...Me, dataUrl: W, mimeType: oe } : Me)), fe(null);
|
|
5477
5477
|
}, []), st = Ee(() => {
|
|
5478
5478
|
var C;
|
|
5479
5479
|
(C = Se.current) == null || C.click();
|
|
5480
|
-
}, []), [
|
|
5480
|
+
}, []), [le, Lt] = G(null), [Ht, St] = G([]), [jt, vn] = G(!1), [Qn, wn] = G(0), [Xn, Et] = G(null), [kn, Sn] = G(null), On = bi(), Ir = B === "panel" || B === "auto" && On, Ar = Ye ?? "guided", Mr = ye === "center" || ye === "auto" && On, un = (le == null ? void 0 : le.trigger) === "#" && !!Fe, Cn = zl(Mr && un), zr = p === "icon" || p === "auto" && (Ce === "dark" || On), Pn = Ir && (le == null ? void 0 : le.trigger) === "@" && (Ht.length > 0 || jt), Zn = ae(!1);
|
|
5481
5481
|
Zn.current = Pn;
|
|
5482
5482
|
const En = ae(null), Fn = ae(null), [er, _r] = G(null), Tn = ae(0), Vt = ae(null), tn = ae({ onSlashQuery: A, onAtQuery: h, onAtPersonQuery: z });
|
|
5483
5483
|
tn.current = { onSlashQuery: A, onAtQuery: h, onAtPersonQuery: z };
|
|
5484
|
-
const tr = ae(0), Rr = ae(0), Dr = ae(!1), Or = ae(0), Pr = ae(0), Wo = De ? re ?? (Ke ? (C, W) => Ke.analyze(C, W) : void 0) : void 0, No = De ? $ ?? (Ke ? (C, W, oe) => Ke.resolveDates(C, W, oe) : void 0) : void 0, nr = ae(
|
|
5485
|
-
nr.current =
|
|
5484
|
+
const tr = ae(0), Rr = ae(0), Dr = ae(!1), Or = ae(0), Pr = ae(0), Wo = De ? re ?? (Ke ? (C, W) => Ke.analyze(C, W) : void 0) : void 0, No = De ? $ ?? (Ke ? (C, W, oe) => Ke.resolveDates(C, W, oe) : void 0) : void 0, nr = ae(le);
|
|
5485
|
+
nr.current = le;
|
|
5486
5486
|
const Fr = ae(() => {
|
|
5487
5487
|
}), {
|
|
5488
5488
|
predictions: nn,
|
|
@@ -5537,9 +5537,9 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5537
5537
|
tr.current = Jo, Rr.current = Yo, Dr.current = Qo, Or.current = Xo, Pr.current = Zo;
|
|
5538
5538
|
const Ur = ae(null);
|
|
5539
5539
|
se(() => {
|
|
5540
|
-
const C = (
|
|
5540
|
+
const C = (le == null ? void 0 : le.trigger) ?? null;
|
|
5541
5541
|
C === "@" && Ur.current !== "@" && Hr(), Ur.current = C;
|
|
5542
|
-
}, [
|
|
5542
|
+
}, [le == null ? void 0 : le.trigger, Hr]);
|
|
5543
5543
|
const [ea, qr] = G([]);
|
|
5544
5544
|
se(() => {
|
|
5545
5545
|
Ae.trim() === "" && Nr();
|
|
@@ -5562,8 +5562,8 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5562
5562
|
};
|
|
5563
5563
|
}, []);
|
|
5564
5564
|
const Tt = Ee((C, W, oe) => {
|
|
5565
|
-
const
|
|
5566
|
-
if (!
|
|
5565
|
+
const ce = ar.current;
|
|
5566
|
+
if (!ce) return null;
|
|
5567
5567
|
const Me = window.getComputedStyle(C), $e = [
|
|
5568
5568
|
"boxSizing",
|
|
5569
5569
|
"width",
|
|
@@ -5586,12 +5586,12 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5586
5586
|
"textIndent"
|
|
5587
5587
|
];
|
|
5588
5588
|
for (const zn of $e)
|
|
5589
|
-
|
|
5590
|
-
|
|
5589
|
+
ce.style[zn] = Me[zn];
|
|
5590
|
+
ce.textContent = W.slice(0, oe);
|
|
5591
5591
|
const nt = document.createElement("span");
|
|
5592
|
-
nt.textContent = "",
|
|
5593
|
-
const fn = C.getBoundingClientRect(), Vn = nt.getBoundingClientRect(), gn =
|
|
5594
|
-
|
|
5592
|
+
nt.textContent = "", ce.appendChild(nt);
|
|
5593
|
+
const fn = C.getBoundingClientRect(), Vn = nt.getBoundingClientRect(), gn = ce.getBoundingClientRect();
|
|
5594
|
+
ce.removeChild(nt);
|
|
5595
5595
|
const lt = parseFloat(Me.lineHeight) || parseFloat(Me.fontSize) * 1.5;
|
|
5596
5596
|
return {
|
|
5597
5597
|
top: fn.top + (Vn.top - gn.top) - C.scrollTop + lt,
|
|
@@ -5602,15 +5602,15 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5602
5602
|
};
|
|
5603
5603
|
}, []);
|
|
5604
5604
|
se(() => {
|
|
5605
|
-
if (!
|
|
5605
|
+
if (!le) {
|
|
5606
5606
|
St([]), vn(!1), Vt.current != null && (window.clearTimeout(Vt.current), Vt.current = null);
|
|
5607
5607
|
return;
|
|
5608
5608
|
}
|
|
5609
|
-
if (
|
|
5609
|
+
if (le.trigger === "#") {
|
|
5610
5610
|
St([]), vn(!1);
|
|
5611
5611
|
return;
|
|
5612
5612
|
}
|
|
5613
|
-
if (!(
|
|
5613
|
+
if (!(le.trigger === "/" ? !!tn.current.onSlashQuery : !!(tn.current.onAtQuery || tn.current.onAtPersonQuery))) {
|
|
5614
5614
|
St([]);
|
|
5615
5615
|
return;
|
|
5616
5616
|
}
|
|
@@ -5618,8 +5618,8 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5618
5618
|
const W = ++Tn.current;
|
|
5619
5619
|
vn(!0);
|
|
5620
5620
|
try {
|
|
5621
|
-
const oe =
|
|
5622
|
-
if (
|
|
5621
|
+
const oe = le.query;
|
|
5622
|
+
if (le.trigger === "/") {
|
|
5623
5623
|
const Me = tn.current.onSlashQuery;
|
|
5624
5624
|
if (!Me) return;
|
|
5625
5625
|
const $e = await Me(oe);
|
|
@@ -5627,7 +5627,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5627
5627
|
St($e), wn(0);
|
|
5628
5628
|
return;
|
|
5629
5629
|
}
|
|
5630
|
-
const
|
|
5630
|
+
const ce = await _d(oe, {
|
|
5631
5631
|
onAtQuery: tn.current.onAtQuery,
|
|
5632
5632
|
onAtPersonQuery: tn.current.onAtPersonQuery
|
|
5633
5633
|
}, {
|
|
@@ -5638,7 +5638,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5638
5638
|
hotelNameConfidence: Pr.current
|
|
5639
5639
|
});
|
|
5640
5640
|
if (W !== Tn.current) return;
|
|
5641
|
-
St(
|
|
5641
|
+
St(ce), wn(0);
|
|
5642
5642
|
} catch (oe) {
|
|
5643
5643
|
if (console.error("[PromptV2] trigger query failed", oe), W !== Tn.current) return;
|
|
5644
5644
|
St([]);
|
|
@@ -5648,19 +5648,19 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5648
5648
|
}, 200), () => {
|
|
5649
5649
|
Vt.current != null && (window.clearTimeout(Vt.current), Vt.current = null);
|
|
5650
5650
|
};
|
|
5651
|
-
}, [
|
|
5651
|
+
}, [le == null ? void 0 : le.trigger, le == null ? void 0 : le.query]);
|
|
5652
5652
|
const An = Ee((C) => Ar !== "guided" || C.reopenTrigger || C.selectionStart !== C.selectionEnd ? C : Vi(C.next, C.selectionEnd) ?? C, [Ar]), Bn = Ee((C) => {
|
|
5653
|
-
if (!
|
|
5653
|
+
if (!le || !Xe.current) return;
|
|
5654
5654
|
const W = C.kind === "date" || C.kind === "calendar";
|
|
5655
|
-
|
|
5656
|
-
const oe = An(Ui(Ae,
|
|
5657
|
-
Fn.current = oe.placeholderLabel ? { label: oe.placeholderLabel, startIdx: Me - 1 } : null, ot(
|
|
5658
|
-
}, [
|
|
5659
|
-
if (!C || !
|
|
5655
|
+
le.trigger === "@" && !W && Vr(C.group);
|
|
5656
|
+
const oe = An(Ui(Ae, le, C.value)), { next: ce, selectionStart: Me, selectionEnd: $e, reopenTrigger: nt } = oe;
|
|
5657
|
+
Fn.current = oe.placeholderLabel ? { label: oe.placeholderLabel, startIdx: Me - 1 } : null, ot(ce), Lt(null), St([]), Et(null), Sn({ start: Me, end: $e, reopenTrigger: nt });
|
|
5658
|
+
}, [le, Ae, Vr, An]), Wn = ae(null), ir = Ee((C) => {
|
|
5659
|
+
if (!C || !le || !Xe.current) return;
|
|
5660
5660
|
Wn.current = C;
|
|
5661
|
-
const W = An(Ui(Ae,
|
|
5662
|
-
Fn.current = W.placeholderLabel ? { label: W.placeholderLabel, startIdx:
|
|
5663
|
-
}, [
|
|
5661
|
+
const W = An(Ui(Ae, le, `#${C.format(Ze)}`)), { next: oe, selectionStart: ce, selectionEnd: Me, reopenTrigger: $e } = W;
|
|
5662
|
+
Fn.current = W.placeholderLabel ? { label: W.placeholderLabel, startIdx: ce - 1 } : null, ot(oe), Lt(null), Et(null), Sn({ start: ce, end: Me, reopenTrigger: $e });
|
|
5663
|
+
}, [le, Ae, Ze, An]), Nn = ve(() => {
|
|
5664
5664
|
if (!Xn) return null;
|
|
5665
5665
|
const { top: C, left: W } = Xn;
|
|
5666
5666
|
return {
|
|
@@ -5677,12 +5677,12 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5677
5677
|
}), "getBoundingClientRect")
|
|
5678
5678
|
};
|
|
5679
5679
|
}, [Xn]), $t = Ee((C) => {
|
|
5680
|
-
const W = C.value, oe = C.selectionStart ?? W.length,
|
|
5681
|
-
if (
|
|
5680
|
+
const W = C.value, oe = C.selectionStart ?? W.length, ce = Rd(W, oe);
|
|
5681
|
+
if (ce && En.current === ce.startIdx) {
|
|
5682
5682
|
Lt(null), Et(null);
|
|
5683
5683
|
return;
|
|
5684
5684
|
}
|
|
5685
|
-
if (En.current = null, Lt(
|
|
5685
|
+
if (En.current = null, Lt(ce), ce) {
|
|
5686
5686
|
const Me = Tt(C, W, oe);
|
|
5687
5687
|
Me && Et(Me);
|
|
5688
5688
|
} else
|
|
@@ -5692,20 +5692,20 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5692
5692
|
if (!kn) return;
|
|
5693
5693
|
const { start: C, end: W, reopenTrigger: oe } = kn;
|
|
5694
5694
|
Sn(null);
|
|
5695
|
-
const
|
|
5696
|
-
if (!
|
|
5697
|
-
|
|
5698
|
-
const Me = Dd(
|
|
5699
|
-
return oe && $t(
|
|
5695
|
+
const ce = Xe.current;
|
|
5696
|
+
if (!ce) return;
|
|
5697
|
+
ce.focus({ preventScroll: !0 });
|
|
5698
|
+
const Me = Dd(ce, C, W);
|
|
5699
|
+
return oe && $t(ce), Me;
|
|
5700
5700
|
}, [Ae, kn, $t]);
|
|
5701
|
-
const Gr =
|
|
5701
|
+
const Gr = le !== null;
|
|
5702
5702
|
se(() => {
|
|
5703
5703
|
if (!Gr) return;
|
|
5704
5704
|
const C = /* @__PURE__ */ t(() => {
|
|
5705
5705
|
const oe = Xe.current;
|
|
5706
5706
|
if (!oe) return;
|
|
5707
|
-
const
|
|
5708
|
-
|
|
5707
|
+
const ce = Tt(oe, oe.value, oe.selectionStart ?? oe.value.length);
|
|
5708
|
+
ce && Et(ce);
|
|
5709
5709
|
}, "remeasure"), W = window.visualViewport;
|
|
5710
5710
|
return W == null || W.addEventListener("resize", C), W == null || W.addEventListener("scroll", C), window.addEventListener("resize", C), () => {
|
|
5711
5711
|
W == null || W.removeEventListener("resize", C), W == null || W.removeEventListener("scroll", C), window.removeEventListener("resize", C);
|
|
@@ -5718,16 +5718,16 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5718
5718
|
}
|
|
5719
5719
|
const W = [];
|
|
5720
5720
|
for (const oe of rr) {
|
|
5721
|
-
const
|
|
5722
|
-
if (
|
|
5723
|
-
const Me = Tt(C, Ae,
|
|
5721
|
+
const ce = Ae.indexOf(oe.text);
|
|
5722
|
+
if (ce < 0) continue;
|
|
5723
|
+
const Me = Tt(C, Ae, ce + oe.text.length);
|
|
5724
5724
|
Me && W.push({ width: Me.width, text: oe.text, display: oe.display, top: Me.top - Me.lineHeight, left: Me.left });
|
|
5725
5725
|
}
|
|
5726
5726
|
qr(W);
|
|
5727
5727
|
}, [Ae, rr, Tt]);
|
|
5728
|
-
const Jr = nn !== null, Mn =
|
|
5729
|
-
() => (
|
|
5730
|
-
[
|
|
5728
|
+
const Jr = nn !== null, Mn = le && ((so = Fn.current) == null ? void 0 : so.startIdx) === le.startIdx ? Fn.current.label : void 0, Jt = ve(
|
|
5729
|
+
() => (le == null ? void 0 : le.trigger) === "@" && Ln.length > 0 ? [...ku(Ln, le.query), ...Ht] : Ht,
|
|
5730
|
+
[le == null ? void 0 : le.trigger, le == null ? void 0 : le.query, Ln, Ht]
|
|
5731
5731
|
), ta = ve(() => Od(nn), [nn]);
|
|
5732
5732
|
se(() => {
|
|
5733
5733
|
if (!Jr) {
|
|
@@ -5764,23 +5764,23 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5764
5764
|
}
|
|
5765
5765
|
const C = Xe.current;
|
|
5766
5766
|
if (C) {
|
|
5767
|
-
const W = C.selectionStart ?? C.value.length, oe = Tt(C, C.value, W),
|
|
5768
|
-
oe && Qr({ ...oe, needsSpace:
|
|
5767
|
+
const W = C.selectionStart ?? C.value.length, oe = Tt(C, C.value, W), ce = C.value.slice(0, W);
|
|
5768
|
+
oe && Qr({ ...oe, needsSpace: ce.length > 0 && !/\s$/.test(ce) });
|
|
5769
5769
|
}
|
|
5770
5770
|
}, [In, Ae, Tt]);
|
|
5771
5771
|
const Q = ve(() => {
|
|
5772
5772
|
if (!pn) return null;
|
|
5773
|
-
const { top: C, left: W, lineHeight: oe } = pn,
|
|
5773
|
+
const { top: C, left: W, lineHeight: oe } = pn, ce = C - oe;
|
|
5774
5774
|
return {
|
|
5775
5775
|
getBoundingClientRect: /* @__PURE__ */ t(() => ({
|
|
5776
|
-
top:
|
|
5776
|
+
top: ce,
|
|
5777
5777
|
left: W,
|
|
5778
5778
|
bottom: C,
|
|
5779
5779
|
right: W,
|
|
5780
5780
|
width: 0,
|
|
5781
5781
|
height: oe,
|
|
5782
5782
|
x: W,
|
|
5783
|
-
y:
|
|
5783
|
+
y: ce,
|
|
5784
5784
|
toJSON: /* @__PURE__ */ t(() => ({}), "toJSON")
|
|
5785
5785
|
}), "getBoundingClientRect")
|
|
5786
5786
|
};
|
|
@@ -5805,13 +5805,13 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5805
5805
|
}, [r]);
|
|
5806
5806
|
const an = /* @__PURE__ */ t(async (C) => {
|
|
5807
5807
|
var $e;
|
|
5808
|
-
const W = (C ?? Ae).trim().replace(/\u00A0/g, " "), oe = C === void 0,
|
|
5809
|
-
if (!W && !S &&
|
|
5808
|
+
const W = (C ?? Ae).trim().replace(/\u00A0/g, " "), oe = C === void 0, ce = oe ? xt : [];
|
|
5809
|
+
if (!W && !S && ce.length === 0 || Zt || rn && !Qt || !v && on === Ie.Idle) return;
|
|
5810
5810
|
Qt && Ct("idle");
|
|
5811
5811
|
const Me = (C ?? Ae).trim();
|
|
5812
5812
|
Me && Ko(Me), ot(""), oe && Pt([]), en(!0);
|
|
5813
5813
|
try {
|
|
5814
|
-
const nt =
|
|
5814
|
+
const nt = ce.length > 0 ? ce.map((lt) => {
|
|
5815
5815
|
const zn = lt.dataUrl.indexOf(","), aa = zn >= 0 ? lt.dataUrl.slice(zn + 1) : lt.dataUrl;
|
|
5816
5816
|
return { mimeType: lt.mimeType, data: aa };
|
|
5817
5817
|
}) : void 0;
|
|
@@ -5833,7 +5833,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5833
5833
|
}
|
|
5834
5834
|
const fn = ($e = ht == null ? void 0 : ht(W)) == null ? void 0 : $e.json, Vn = typeof fn == "string" && fn.length > 0 ? fn : W, gn = await He.sendMessage(new ri(Vn, "text/plain", void 0, void 0, nt));
|
|
5835
5835
|
if ((gn == null ? void 0 : gn.success) === !1) {
|
|
5836
|
-
ot((lt) => lt || (C ?? Ae)), oe && Pt((lt) => lt.length > 0 ? lt :
|
|
5836
|
+
ot((lt) => lt || (C ?? Ae)), oe && Pt((lt) => lt.length > 0 ? lt : ce);
|
|
5837
5837
|
return;
|
|
5838
5838
|
}
|
|
5839
5839
|
Xe.current && (Xe.current.value = "");
|
|
@@ -5853,10 +5853,10 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5853
5853
|
}, [Qe]);
|
|
5854
5854
|
const na = Ee((C) => {
|
|
5855
5855
|
ot(C), requestAnimationFrame(() => {
|
|
5856
|
-
var oe,
|
|
5856
|
+
var oe, ce;
|
|
5857
5857
|
(oe = Xe.current) == null || oe.focus();
|
|
5858
5858
|
const W = C.length;
|
|
5859
|
-
(
|
|
5859
|
+
(ce = Xe.current) == null || ce.setSelectionRange(W, W);
|
|
5860
5860
|
});
|
|
5861
5861
|
}, []), dr = /* @__PURE__ */ t((C) => /* @__PURE__ */ M(
|
|
5862
5862
|
yr,
|
|
@@ -5914,14 +5914,14 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5914
5914
|
},
|
|
5915
5915
|
C != null && C.animate ? Mn ?? "calendar" : void 0
|
|
5916
5916
|
), "renderDatePicker"), ur = Ee(() => {
|
|
5917
|
-
|
|
5918
|
-
}, [
|
|
5917
|
+
le && (En.current = le.startIdx), Lt(null), Et(null);
|
|
5918
|
+
}, [le]), to = /* @__PURE__ */ t((C) => {
|
|
5919
5919
|
if (!Go(C)) {
|
|
5920
|
-
if ((
|
|
5920
|
+
if ((le == null ? void 0 : le.trigger) === "#" && Fe && C.key === "Escape") {
|
|
5921
5921
|
C.preventDefault(), ur();
|
|
5922
5922
|
return;
|
|
5923
5923
|
}
|
|
5924
|
-
if (
|
|
5924
|
+
if (le && Jt.length > 0) {
|
|
5925
5925
|
if (C.key === "ArrowDown") {
|
|
5926
5926
|
C.preventDefault(), wn((W) => (W + 1) % Jt.length);
|
|
5927
5927
|
return;
|
|
@@ -5937,7 +5937,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5937
5937
|
return;
|
|
5938
5938
|
}
|
|
5939
5939
|
if (C.key === "Escape") {
|
|
5940
|
-
C.preventDefault(), En.current =
|
|
5940
|
+
C.preventDefault(), En.current = le.startIdx, Lt(null), Et(null);
|
|
5941
5941
|
return;
|
|
5942
5942
|
}
|
|
5943
5943
|
}
|
|
@@ -5955,8 +5955,8 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
5955
5955
|
if (W.selectionStart == null || W.selectionStart !== W.selectionEnd) return;
|
|
5956
5956
|
const oe = Pd(Ae, W.selectionStart);
|
|
5957
5957
|
if (!oe) return;
|
|
5958
|
-
const
|
|
5959
|
-
|
|
5958
|
+
const ce = Fd(Ae, oe);
|
|
5959
|
+
ce.next !== Ae && ot(ce.next), Sn({ start: ce.selectionStart, end: ce.selectionEnd, reopenTrigger: ce.reopenTrigger });
|
|
5960
5960
|
}, "handleEditorClick"), ra = !v && on === Ie.Idle, no = !!v || on !== Ie.Idle, hn = !v && on === Ie.Connecting, ro = !v && on === Ie.Disconnected, mt = !no || rn && !Qt || Zt || !S && !Ae.trim() && xt.length === 0, oo = k && (!rn || Qt), ao = x && T ? "" : u ?? "Pergunte sobre seus dados…", oa = /* @__PURE__ */ t(() => {
|
|
5961
5961
|
w == null || w(!T);
|
|
5962
5962
|
}, "handleToggleTopSlot"), io = x ? 2 : b ?? 999;
|
|
@@ -6350,8 +6350,8 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
6350
6350
|
disabled: ra,
|
|
6351
6351
|
spellCheck: Gt ? !1 : void 0,
|
|
6352
6352
|
onChange: /* @__PURE__ */ t((C) => {
|
|
6353
|
-
const W = C.target.value, oe = C.target.selectionStart ?? W.length,
|
|
6354
|
-
ot(W), $t(C.target), or(W, oe,
|
|
6353
|
+
const W = C.target.value, oe = C.target.selectionStart ?? W.length, ce = W.length < Ae.length;
|
|
6354
|
+
ot(W), $t(C.target), or(W, oe, ce);
|
|
6355
6355
|
}, "onChange"),
|
|
6356
6356
|
onSelect: /* @__PURE__ */ t((C) => $t(C.currentTarget), "onSelect"),
|
|
6357
6357
|
onClick: pr,
|
|
@@ -6363,8 +6363,8 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
6363
6363
|
$n.current && ($n.current.style.transform = `translateY(${-C.currentTarget.scrollTop}px)`);
|
|
6364
6364
|
} : void 0,
|
|
6365
6365
|
onPaste: /* @__PURE__ */ t((C) => {
|
|
6366
|
-
var
|
|
6367
|
-
const W = (
|
|
6366
|
+
var ce;
|
|
6367
|
+
const W = (ce = C.clipboardData) == null ? void 0 : ce.items;
|
|
6368
6368
|
if (!W) return;
|
|
6369
6369
|
const oe = [];
|
|
6370
6370
|
for (let Me = 0; Me < W.length; Me += 1) {
|
|
@@ -6627,7 +6627,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
6627
6627
|
/* @__PURE__ */ n(
|
|
6628
6628
|
uo,
|
|
6629
6629
|
{
|
|
6630
|
-
open:
|
|
6630
|
+
open: le !== null && le.trigger !== "#" && Nn !== null && !Pn && (Jt.length > 0 || jt),
|
|
6631
6631
|
anchorEl: Nn,
|
|
6632
6632
|
placement: "bottom-start",
|
|
6633
6633
|
modifiers: [
|
|
@@ -6648,7 +6648,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
6648
6648
|
locationLabel: N,
|
|
6649
6649
|
hotelLabel: K,
|
|
6650
6650
|
keyHints: !0,
|
|
6651
|
-
queryEcho:
|
|
6651
|
+
queryEcho: le ? `${le.trigger}${le.query}` : "",
|
|
6652
6652
|
slotLabel: Mn
|
|
6653
6653
|
}
|
|
6654
6654
|
)
|
|
@@ -6777,7 +6777,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
6777
6777
|
overflowY: "auto",
|
|
6778
6778
|
overflowX: "hidden"
|
|
6779
6779
|
},
|
|
6780
|
-
children: /* @__PURE__ */ n(
|
|
6780
|
+
children: /* @__PURE__ */ n(xp, { inline: !0 })
|
|
6781
6781
|
},
|
|
6782
6782
|
"model-selector"
|
|
6783
6783
|
),
|
|
@@ -6925,7 +6925,7 @@ const ms = 70, bs = 300, ys = 16, Io = Er(({
|
|
|
6925
6925
|
}
|
|
6926
6926
|
),
|
|
6927
6927
|
/* @__PURE__ */ n(
|
|
6928
|
-
|
|
6928
|
+
Tp,
|
|
6929
6929
|
{
|
|
6930
6930
|
open: Ot,
|
|
6931
6931
|
onClose: /* @__PURE__ */ t(() => Kt(!1), "onClose")
|
|
@@ -6976,7 +6976,7 @@ typeof window < "u" && Promise.all([
|
|
|
6976
6976
|
]).then(([e, r, i, s, u, l, x, b, E, T, D, k, w]) => {
|
|
6977
6977
|
wt = e.default, _l = r.default, wt.registerLanguage("python", u.default), wt.registerLanguage("markdown", i.default), wt.registerLanguage("javascript", l.default), wt.registerLanguage("typescript", x.default), wt.registerLanguage("sql", b.default), wt.registerLanguage("json", E.default), wt.registerLanguage("bash", T.default), wt.registerLanguage("shell", T.default), wt.registerLanguage("html", s.default), wt.registerLanguage("xml", s.default), wt.registerLanguage("css", D.default), wt.registerLanguage("csharp", k.default), wt.registerLanguage("yaml", w.default);
|
|
6978
6978
|
}).catch((e) => console.error("Failed to load syntax highlighter:", e));
|
|
6979
|
-
const
|
|
6979
|
+
const Wp = `${ii()}/open/getImage`, Np = Cr({}), Hp = /* @__PURE__ */ t(() => Ut(Np), "useMarkdownExtendedDefaults"), Vp = /* @__PURE__ */ t(({ iconCode: e }) => /* @__PURE__ */ n("span", { style: {
|
|
6980
6980
|
display: "inline-flex",
|
|
6981
6981
|
alignItems: "center",
|
|
6982
6982
|
verticalAlign: "middle",
|
|
@@ -7008,15 +7008,15 @@ const Bp = `${ii()}/open/getImage`, Wp = Cr({}), Np = /* @__PURE__ */ t(() => Ut
|
|
|
7008
7008
|
":",
|
|
7009
7009
|
e,
|
|
7010
7010
|
":"
|
|
7011
|
-
] }) }), "InlineIcon"),
|
|
7012
|
-
const b =
|
|
7011
|
+
] }) }), "InlineIcon"), Up = /* @__PURE__ */ t(({ children: e }) => /* @__PURE__ */ n("p", { style: { margin: "0 0 8px 0" }, children: e }), "MarkdownParagraph"), Wt = /* @__PURE__ */ t(({ text: e, sessionId: r, preStyle: i, onLinkClicked: s, partial: u, mode: l = "full", variant: x }) => {
|
|
7012
|
+
const b = Hp();
|
|
7013
7013
|
x ?? b.variant;
|
|
7014
7014
|
const E = zt();
|
|
7015
7015
|
let T = e;
|
|
7016
7016
|
const { eventBusService: D } = ut(), k = {
|
|
7017
|
-
span: /* @__PURE__ */ t(({ children: v, className: g, ...p }) => g === "inline-icon" && p["data-icon"] ? /* @__PURE__ */ n(
|
|
7018
|
-
img: /* @__PURE__ */ t(({ children: v, src: g, ...p }) => /* @__PURE__ */ n("div", { style: { width: "100%", padding: "5px", margin: "16px 2px", borderRadius: "6px", border: "1px solid #333" }, children: /* @__PURE__ */ n("img", { src: `${
|
|
7019
|
-
p:
|
|
7017
|
+
span: /* @__PURE__ */ t(({ children: v, className: g, ...p }) => g === "inline-icon" && p["data-icon"] ? /* @__PURE__ */ n(Vp, { iconCode: p["data-icon"] }) : /* @__PURE__ */ n("span", { className: g, ...p, children: v }), "span"),
|
|
7018
|
+
img: /* @__PURE__ */ t(({ children: v, src: g, ...p }) => /* @__PURE__ */ n("div", { style: { width: "100%", padding: "5px", margin: "16px 2px", borderRadius: "6px", border: "1px solid #333" }, children: /* @__PURE__ */ n("img", { src: `${Wp}/${g}`, ...p, style: { width: "100%" } }) }), "img"),
|
|
7019
|
+
p: Up,
|
|
7020
7020
|
input: /* @__PURE__ */ t(({ checked: v, disabled: g, ...p }) => p.type === "checkbox" ? v ? /* @__PURE__ */ n(
|
|
7021
7021
|
Zi,
|
|
7022
7022
|
{
|
|
@@ -7149,8 +7149,8 @@ const Bp = `${ii()}/open/getImage`, Wp = Cr({}), Np = /* @__PURE__ */ t(() => Ut
|
|
|
7149
7149
|
skipHtml: !1,
|
|
7150
7150
|
urlTransform: /* @__PURE__ */ t((v) => v, "urlTransform"),
|
|
7151
7151
|
components: f,
|
|
7152
|
-
remarkPlugins: [
|
|
7153
|
-
rehypePlugins: [
|
|
7152
|
+
remarkPlugins: [Du],
|
|
7153
|
+
rehypePlugins: [Ou],
|
|
7154
7154
|
children: T
|
|
7155
7155
|
}
|
|
7156
7156
|
);
|
|
@@ -7254,17 +7254,17 @@ const Dl = {
|
|
|
7254
7254
|
response: "Lista de tarefas atualizada"
|
|
7255
7255
|
}
|
|
7256
7256
|
};
|
|
7257
|
-
function
|
|
7257
|
+
function qp(e, r) {
|
|
7258
7258
|
Dl[e] = r;
|
|
7259
7259
|
}
|
|
7260
|
-
t(
|
|
7261
|
-
function
|
|
7260
|
+
t(qp, "configureFriendlyMapping");
|
|
7261
|
+
function Kp(e) {
|
|
7262
7262
|
const r = e.split("-");
|
|
7263
7263
|
return r.length > 1 ? r.slice(1).join("-") : e;
|
|
7264
7264
|
}
|
|
7265
|
-
t(
|
|
7265
|
+
t(Kp, "pureToolName");
|
|
7266
7266
|
function Tr(e, r, i, s) {
|
|
7267
|
-
const u = Dl[
|
|
7267
|
+
const u = Dl[Kp(e)];
|
|
7268
7268
|
if (!u) {
|
|
7269
7269
|
const x = e.replace(/_/g, " ");
|
|
7270
7270
|
switch (r) {
|
|
@@ -7290,7 +7290,7 @@ function Tr(e, r, i, s) {
|
|
|
7290
7290
|
return l;
|
|
7291
7291
|
}
|
|
7292
7292
|
t(Tr, "getFriendlyLabel");
|
|
7293
|
-
function
|
|
7293
|
+
function Gp(e, r, i) {
|
|
7294
7294
|
if (!e || e !== "todolistUpdated" || i || !r) return null;
|
|
7295
7295
|
try {
|
|
7296
7296
|
const s = JSON.parse(r);
|
|
@@ -7299,8 +7299,8 @@ function Kp(e, r, i) {
|
|
|
7299
7299
|
return null;
|
|
7300
7300
|
}
|
|
7301
7301
|
}
|
|
7302
|
-
t(
|
|
7303
|
-
const
|
|
7302
|
+
t(Gp, "tryParseMainAgentTodoList$1");
|
|
7303
|
+
const Jp = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Ol = dt.memo(() => {
|
|
7304
7304
|
const e = pt(), r = be((i) => {
|
|
7305
7305
|
var u;
|
|
7306
7306
|
const s = i.currentMessage ?? ((u = i.messages) == null ? void 0 : u[i.messages.length - 1]) ?? null;
|
|
@@ -7349,7 +7349,7 @@ const Gp = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Ol = dt.
|
|
|
7349
7349
|
Ol.displayName = "ToolCountChip";
|
|
7350
7350
|
const Ao = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
7351
7351
|
const r = pt(), i = be((g) => g.turnOpen), s = be((g) => g.connectionStatus), u = be((g) => g.lastToolEvent), [l, x] = G(void 0), b = ve(
|
|
7352
|
-
() =>
|
|
7352
|
+
() => Gp(
|
|
7353
7353
|
u == null ? void 0 : u.eventName,
|
|
7354
7354
|
u == null ? void 0 : u.eventData,
|
|
7355
7355
|
u == null ? void 0 : u.subAgentId
|
|
@@ -7443,7 +7443,7 @@ const Ao = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7443
7443
|
}), "sx")
|
|
7444
7444
|
}
|
|
7445
7445
|
),
|
|
7446
|
-
/* @__PURE__ */ n("style", { children:
|
|
7446
|
+
/* @__PURE__ */ n("style", { children: Jp }),
|
|
7447
7447
|
/* @__PURE__ */ n(je, { title: y.label, placement: "top", children: /* @__PURE__ */ n(
|
|
7448
7448
|
R,
|
|
7449
7449
|
{
|
|
@@ -7531,13 +7531,13 @@ const Ao = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7531
7531
|
) : null;
|
|
7532
7532
|
}, "RunProgressStripV2");
|
|
7533
7533
|
Ao.displayName = "RunProgressStripV2";
|
|
7534
|
-
const
|
|
7534
|
+
const Yp = 440, Qp = 480, Ha = Er((e, r) => {
|
|
7535
7535
|
const {
|
|
7536
7536
|
position: i,
|
|
7537
7537
|
chatPositionOffSet: s,
|
|
7538
7538
|
fabContent: u,
|
|
7539
|
-
width: l =
|
|
7540
|
-
height: x =
|
|
7539
|
+
width: l = Yp,
|
|
7540
|
+
height: x = Qp,
|
|
7541
7541
|
title: b = "Assistente",
|
|
7542
7542
|
onVisibleQuestionChange: E,
|
|
7543
7543
|
onFloatingOpened: T,
|
|
@@ -7682,7 +7682,7 @@ const Jp = 440, Yp = 480, Ha = Er((e, r) => {
|
|
|
7682
7682
|
] });
|
|
7683
7683
|
});
|
|
7684
7684
|
Ha.displayName = "AiChatFloating";
|
|
7685
|
-
const
|
|
7685
|
+
const Xp = {
|
|
7686
7686
|
luzes: /* @__PURE__ */ M(ie, { children: [
|
|
7687
7687
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "5", r: "2", fill: "currentColor", stroke: "none" }),
|
|
7688
7688
|
/* @__PURE__ */ n("circle", { cx: "6.5", cy: "5", r: "1.1", fill: "currentColor", stroke: "none", opacity: ".35" }),
|
|
@@ -7730,8 +7730,8 @@ const Qp = {
|
|
|
7730
7730
|
] }),
|
|
7731
7731
|
// O "A" da marca usa traço mais grosso (+1) que os demais — ver strokeFor().
|
|
7732
7732
|
marca: /* @__PURE__ */ n("path", { d: "M5.5 19.5 12 4.5 18.5 19.5" })
|
|
7733
|
-
},
|
|
7734
|
-
function
|
|
7733
|
+
}, Zp = /* @__PURE__ */ t((e, r) => e === "marca" ? r + 1 : r, "strokeFor");
|
|
7734
|
+
function eh({
|
|
7735
7735
|
variant: e = "marca",
|
|
7736
7736
|
size: r = 16,
|
|
7737
7737
|
strokeWidth: i = 1.6,
|
|
@@ -7746,22 +7746,22 @@ function Zp({
|
|
|
7746
7746
|
viewBox: "0 0 24 24",
|
|
7747
7747
|
fill: "none",
|
|
7748
7748
|
stroke: "currentColor",
|
|
7749
|
-
strokeWidth:
|
|
7749
|
+
strokeWidth: Zp(e, i),
|
|
7750
7750
|
strokeLinecap: "round",
|
|
7751
7751
|
strokeLinejoin: "round",
|
|
7752
7752
|
style: { color: s, display: "block", flex: "0 0 auto", ...u },
|
|
7753
7753
|
"aria-hidden": "true",
|
|
7754
|
-
children:
|
|
7754
|
+
children: Xp[e]
|
|
7755
7755
|
}
|
|
7756
7756
|
);
|
|
7757
7757
|
}
|
|
7758
|
-
t(
|
|
7759
|
-
const
|
|
7758
|
+
t(eh, "AgentIcon");
|
|
7759
|
+
const th = {
|
|
7760
7760
|
lime: { background: "#C6F23A", color: "#111111" },
|
|
7761
7761
|
ink: { background: "#111111", color: "#C6F23A" },
|
|
7762
7762
|
chrome: { background: "#161613", color: "#C6F23A", border: "1px solid rgba(198,242,58,0.35)" }
|
|
7763
7763
|
};
|
|
7764
|
-
function
|
|
7764
|
+
function nh({
|
|
7765
7765
|
variant: e = "marca",
|
|
7766
7766
|
tone: r = "lime",
|
|
7767
7767
|
size: i = 30,
|
|
@@ -7777,16 +7777,16 @@ function th({
|
|
|
7777
7777
|
display: "grid",
|
|
7778
7778
|
placeItems: "center",
|
|
7779
7779
|
flexShrink: 0,
|
|
7780
|
-
...
|
|
7780
|
+
...th[r],
|
|
7781
7781
|
...s
|
|
7782
7782
|
},
|
|
7783
7783
|
"aria-label": "Agente",
|
|
7784
|
-
children: /* @__PURE__ */ n(
|
|
7784
|
+
children: /* @__PURE__ */ n(eh, { variant: e, size: Math.round(i * 0.57), strokeWidth: 1.9 })
|
|
7785
7785
|
}
|
|
7786
7786
|
);
|
|
7787
7787
|
}
|
|
7788
|
-
t(
|
|
7789
|
-
const
|
|
7788
|
+
t(nh, "AgentAvatar");
|
|
7789
|
+
const rh = {
|
|
7790
7790
|
silhueta: /* @__PURE__ */ M(ie, { children: [
|
|
7791
7791
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "8.2", r: "3.4" }),
|
|
7792
7792
|
/* @__PURE__ */ n("path", { d: "M5 19.5a7 7 0 0 1 14 0" })
|
|
@@ -7820,7 +7820,7 @@ const nh = {
|
|
|
7820
7820
|
/* @__PURE__ */ n("path", { d: "M10.4 15.5h3.2" })
|
|
7821
7821
|
] })
|
|
7822
7822
|
};
|
|
7823
|
-
function
|
|
7823
|
+
function oh({
|
|
7824
7824
|
variant: e = "interrogacao",
|
|
7825
7825
|
size: r = 14,
|
|
7826
7826
|
strokeWidth: i = 1.8,
|
|
@@ -7840,18 +7840,18 @@ function rh({
|
|
|
7840
7840
|
strokeLinejoin: "round",
|
|
7841
7841
|
style: { color: s, display: "block", flex: "0 0 auto", ...u },
|
|
7842
7842
|
"aria-hidden": "true",
|
|
7843
|
-
children:
|
|
7843
|
+
children: rh[e]
|
|
7844
7844
|
}
|
|
7845
7845
|
);
|
|
7846
7846
|
}
|
|
7847
|
-
t(
|
|
7848
|
-
const
|
|
7847
|
+
t(oh, "GuestIcon");
|
|
7848
|
+
const ah = {
|
|
7849
7849
|
ink: { background: "#111111", color: "#C6F23A" },
|
|
7850
7850
|
revertedInk: { background: "#C6F23A", color: "#111111" },
|
|
7851
7851
|
soft: { background: "#3A3935", color: "#FFFFFF" },
|
|
7852
7852
|
empty: { background: "#EBEBE6", color: "#5C5C57", border: "1px dashed rgba(17,17,17,0.3)" }
|
|
7853
7853
|
};
|
|
7854
|
-
function
|
|
7854
|
+
function ih({
|
|
7855
7855
|
variant: e = "interrogacao",
|
|
7856
7856
|
tone: r = "ink",
|
|
7857
7857
|
size: i = 26,
|
|
@@ -7867,31 +7867,31 @@ function ah({
|
|
|
7867
7867
|
display: "grid",
|
|
7868
7868
|
placeItems: "center",
|
|
7869
7869
|
flexShrink: 0,
|
|
7870
|
-
...
|
|
7870
|
+
...ah[r],
|
|
7871
7871
|
...s
|
|
7872
7872
|
},
|
|
7873
7873
|
"aria-label": "Convidado",
|
|
7874
|
-
children: /* @__PURE__ */ n(
|
|
7874
|
+
children: /* @__PURE__ */ n(oh, { variant: e, size: Math.round(i * 0.54) })
|
|
7875
7875
|
}
|
|
7876
7876
|
);
|
|
7877
7877
|
}
|
|
7878
|
-
t(
|
|
7879
|
-
const
|
|
7880
|
-
function
|
|
7878
|
+
t(ih, "GuestAvatar");
|
|
7879
|
+
const sh = 'ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace', Pl = 38;
|
|
7880
|
+
function lh(e) {
|
|
7881
7881
|
try {
|
|
7882
7882
|
return e.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
7883
7883
|
} catch {
|
|
7884
7884
|
return "";
|
|
7885
7885
|
}
|
|
7886
7886
|
}
|
|
7887
|
-
t(
|
|
7887
|
+
t(lh, "defaultFormatTimestamp");
|
|
7888
7888
|
const Fl = /* @__PURE__ */ t(({ isUser: e, message: r, tone: i }) => {
|
|
7889
7889
|
const { showPersona: s, formatTimestamp: u, resolvePersona: l } = ut();
|
|
7890
7890
|
if (!s) return null;
|
|
7891
|
-
const x = i === "chrome", b = (l == null ? void 0 : l({ isUser: e, message: r })) ?? { label: e ? "Você" : "Agente", initials: e ? "V" : "A" }, E = b.initials ?? (b.label.slice(0, 1).toUpperCase() || "·"), T = (u ??
|
|
7891
|
+
const x = i === "chrome", b = (l == null ? void 0 : l({ isUser: e, message: r })) ?? { label: e ? "Você" : "Agente", initials: e ? "V" : "A" }, E = b.initials ?? (b.label.slice(0, 1).toUpperCase() || "·"), T = (u ?? lh)(r.created), D = e && b.picture !== "guest";
|
|
7892
7892
|
return /* @__PURE__ */ M(R, { sx: { display: "flex", alignItems: "center", gap: 1, mt: 1.5, mb: 0.5 }, children: [
|
|
7893
7893
|
e ? D ? /* @__PURE__ */ n(
|
|
7894
|
-
|
|
7894
|
+
Fu,
|
|
7895
7895
|
{
|
|
7896
7896
|
src: b.picture || void 0,
|
|
7897
7897
|
sx: {
|
|
@@ -7905,13 +7905,13 @@ const Fl = /* @__PURE__ */ t(({ isUser: e, message: r, tone: i }) => {
|
|
|
7905
7905
|
},
|
|
7906
7906
|
children: E
|
|
7907
7907
|
}
|
|
7908
|
-
) : /* @__PURE__ */ n(
|
|
7908
|
+
) : /* @__PURE__ */ n(ih, { variant: "interrogacao", size: 32, tone: "revertedInk" }) : /* @__PURE__ */ n(nh, { variant: "marca", tone: "chrome" }),
|
|
7909
7909
|
/* @__PURE__ */ M(
|
|
7910
7910
|
R,
|
|
7911
7911
|
{
|
|
7912
7912
|
component: "span",
|
|
7913
7913
|
sx: {
|
|
7914
|
-
fontFamily:
|
|
7914
|
+
fontFamily: sh,
|
|
7915
7915
|
fontSize: 10,
|
|
7916
7916
|
letterSpacing: "0.1em",
|
|
7917
7917
|
textTransform: "uppercase",
|
|
@@ -7927,14 +7927,14 @@ const Fl = /* @__PURE__ */ t(({ isUser: e, message: r, tone: i }) => {
|
|
|
7927
7927
|
}, "MessagePersona"), yi = /* @__PURE__ */ t((e) => !!e && (e === "ask_user" || e.endsWith("-ask_user") || e.endsWith("_ask_user")), "isAskUser"), xi = /* @__PURE__ */ t((e) => !!e && (e === "askauth" || e.endsWith("-askauth") || e.endsWith("_askauth")), "isAskAuth"), Ll = /* @__PURE__ */ t((e) => {
|
|
7928
7928
|
if (e)
|
|
7929
7929
|
return yi(e) ? "ask_user" : xi(e) ? "askauth" : e;
|
|
7930
|
-
}, "askUserDisplayName"),
|
|
7930
|
+
}, "askUserDisplayName"), ch = "AskUserPart", jl = "AskAuthPart", wr = /* @__PURE__ */ t((e) => !!e && e.cancelUi !== !0 && (e.isAskUser === !0 || yi(e.name) || xi(e.name)), "isAskUserPart"), dh = /* @__PURE__ */ t((e) => {
|
|
7931
7931
|
if (!(!e || e.cancelUi === !0)) {
|
|
7932
7932
|
if (e.askUserComponent) return e.askUserComponent;
|
|
7933
7933
|
if (xi(e.name)) return jl;
|
|
7934
|
-
if (yi(e.name)) return
|
|
7934
|
+
if (yi(e.name)) return ch;
|
|
7935
7935
|
}
|
|
7936
7936
|
}, "askUserComponentOf"), $l = /* @__PURE__ */ t(({ part: e, message: r, preview: i, onGoing: s, friendlyMode: u, onLinkClicked: l }) => {
|
|
7937
|
-
const x = ct.getPartTextContent(e), b = e.author ===
|
|
7937
|
+
const x = ct.getPartTextContent(e), b = e.author === Pu ? { backgroundColor: "var(--background-paper)", padding: "20px 10px", borderRadius: "5px" } : { margin: "5px 0px", display: "unset" };
|
|
7938
7938
|
return /* @__PURE__ */ n("div", { style: b, children: /* @__PURE__ */ n(
|
|
7939
7939
|
hc,
|
|
7940
7940
|
{
|
|
@@ -7948,10 +7948,10 @@ const Fl = /* @__PURE__ */ t(({ isUser: e, message: r, tone: i }) => {
|
|
|
7948
7948
|
}
|
|
7949
7949
|
) });
|
|
7950
7950
|
}, "TextPart"), Bl = Cr(null);
|
|
7951
|
-
function
|
|
7951
|
+
function uh() {
|
|
7952
7952
|
return Ut(Bl);
|
|
7953
7953
|
}
|
|
7954
|
-
t(
|
|
7954
|
+
t(uh, "useThoughtRun");
|
|
7955
7955
|
const Wl = /* @__PURE__ */ t(({
|
|
7956
7956
|
part: e,
|
|
7957
7957
|
message: r,
|
|
@@ -7962,7 +7962,7 @@ const Wl = /* @__PURE__ */ t(({
|
|
|
7962
7962
|
onLinkClicked: x
|
|
7963
7963
|
}) => {
|
|
7964
7964
|
var g;
|
|
7965
|
-
const b =
|
|
7965
|
+
const b = uh(), [E, T] = G(() => !i || !u), D = ae(null);
|
|
7966
7966
|
se(() => {
|
|
7967
7967
|
T(!i || !u);
|
|
7968
7968
|
}, [i, u]), se(() => {
|
|
@@ -8019,7 +8019,7 @@ const Wl = /* @__PURE__ */ t(({
|
|
|
8019
8019
|
}
|
|
8020
8020
|
) })
|
|
8021
8021
|
] });
|
|
8022
|
-
}, "ThoughtPart"),
|
|
8022
|
+
}, "ThoughtPart"), ph = /* @__PURE__ */ t(({ parts: e, isLive: r, friendlyMode: i = !1, children: s }) => {
|
|
8023
8023
|
var w;
|
|
8024
8024
|
const [u, l] = G(() => !r), x = ae(null);
|
|
8025
8025
|
se(() => {
|
|
@@ -8274,7 +8274,7 @@ const Wl = /* @__PURE__ */ t(({
|
|
|
8274
8274
|
backgroundColor: f.palette.action.selected
|
|
8275
8275
|
}
|
|
8276
8276
|
},
|
|
8277
|
-
children: /* @__PURE__ */ n(
|
|
8277
|
+
children: /* @__PURE__ */ n(Nu, { style: { fontSize: 10 } })
|
|
8278
8278
|
}
|
|
8279
8279
|
)
|
|
8280
8280
|
] }),
|
|
@@ -8438,7 +8438,7 @@ const Wl = /* @__PURE__ */ t(({
|
|
|
8438
8438
|
}
|
|
8439
8439
|
` })
|
|
8440
8440
|
] });
|
|
8441
|
-
}, "MessageNonTextDisplay"), xa = 500, xs = 14,
|
|
8441
|
+
}, "MessageNonTextDisplay"), xa = 500, xs = 14, hh = 8, fh = [
|
|
8442
8442
|
[1e9, "Gb"],
|
|
8443
8443
|
[1e6, "Mb"],
|
|
8444
8444
|
[1e3, "Kb"]
|
|
@@ -8447,7 +8447,7 @@ function vs({ streamedBytes: e = 0 }) {
|
|
|
8447
8447
|
const r = Math.floor(e / xa), i = e % xa / xa, s = r + (i > 0 ? 1 : 0), u = Math.max(s, 1), l = zt();
|
|
8448
8448
|
function x(E, T = 2, D = !0) {
|
|
8449
8449
|
const k = Math.abs(E);
|
|
8450
|
-
for (const [w, I] of
|
|
8450
|
+
for (const [w, I] of fh)
|
|
8451
8451
|
if (k >= w)
|
|
8452
8452
|
return (E / w).toFixed(T) + (D ? I : "");
|
|
8453
8453
|
return E.toFixed(0) + "b";
|
|
@@ -8469,7 +8469,7 @@ function vs({ streamedBytes: e = 0 }) {
|
|
|
8469
8469
|
{
|
|
8470
8470
|
sx: {
|
|
8471
8471
|
position: "relative",
|
|
8472
|
-
width: `${
|
|
8472
|
+
width: `${hh}px`,
|
|
8473
8473
|
height: `${xs}px`,
|
|
8474
8474
|
borderRadius: "2px",
|
|
8475
8475
|
border: "1px solid rgba(255, 255, 255, 0.15)",
|
|
@@ -8500,7 +8500,7 @@ function vs({ streamedBytes: e = 0 }) {
|
|
|
8500
8500
|
] });
|
|
8501
8501
|
}
|
|
8502
8502
|
t(vs, "ByteBuckets");
|
|
8503
|
-
const
|
|
8503
|
+
const gh = /* @__PURE__ */ t(({
|
|
8504
8504
|
toolName: e,
|
|
8505
8505
|
state: r,
|
|
8506
8506
|
args: i,
|
|
@@ -8557,8 +8557,8 @@ const fh = /* @__PURE__ */ t(({
|
|
|
8557
8557
|
]
|
|
8558
8558
|
}
|
|
8559
8559
|
);
|
|
8560
|
-
}, "FriendlyPartDisplay"),
|
|
8561
|
-
function
|
|
8560
|
+
}, "FriendlyPartDisplay"), mh = { fontSize: 10, color: "currentColor" };
|
|
8561
|
+
function bh(e) {
|
|
8562
8562
|
var x, b, E, T, D, k, w, I, f, y, v, g;
|
|
8563
8563
|
if (e.eventType === we.PartialFunctionCall)
|
|
8564
8564
|
return {
|
|
@@ -8605,8 +8605,8 @@ function mh(e) {
|
|
|
8605
8605
|
}
|
|
8606
8606
|
return { title: i, content: l, elapsed: u };
|
|
8607
8607
|
}
|
|
8608
|
-
t(
|
|
8609
|
-
const
|
|
8608
|
+
t(bh, "deriveFunctionDisplay");
|
|
8609
|
+
const yh = {
|
|
8610
8610
|
[we.PartialFunctionCall]: "partial",
|
|
8611
8611
|
[we.FunctionCall]: "call",
|
|
8612
8612
|
[we.FunctionResponse]: "response"
|
|
@@ -8619,11 +8619,11 @@ const bh = {
|
|
|
8619
8619
|
onLinkClicked: l
|
|
8620
8620
|
}) => {
|
|
8621
8621
|
var D, k, w, I;
|
|
8622
|
-
const x =
|
|
8622
|
+
const x = bh(e);
|
|
8623
8623
|
if (u) {
|
|
8624
|
-
const f =
|
|
8624
|
+
const f = yh[e.eventType] ?? "partial";
|
|
8625
8625
|
return /* @__PURE__ */ n(
|
|
8626
|
-
|
|
8626
|
+
gh,
|
|
8627
8627
|
{
|
|
8628
8628
|
toolName: ((D = e.functionDetails) == null ? void 0 : D.name) ?? "unknown",
|
|
8629
8629
|
state: f,
|
|
@@ -8645,7 +8645,7 @@ ${x.content}
|
|
|
8645
8645
|
{
|
|
8646
8646
|
sessionId: r.sessionId ?? "ND",
|
|
8647
8647
|
title: x.title,
|
|
8648
|
-
icon: /* @__PURE__ */ n(
|
|
8648
|
+
icon: /* @__PURE__ */ n(Wu, { style: mh }),
|
|
8649
8649
|
elapsed: x.elapsed,
|
|
8650
8650
|
content: E,
|
|
8651
8651
|
part: e,
|
|
@@ -8679,7 +8679,7 @@ ${x.content}
|
|
|
8679
8679
|
}, "WaitingPart"), Vl = /* @__PURE__ */ t(() => /* @__PURE__ */ M(Pe, { direction: "row", gap: 2, sx: { fontStyle: "italic", fontSize: "0.8rem", color: "text.secondary" }, children: [
|
|
8680
8680
|
/* @__PURE__ */ n(au, {}),
|
|
8681
8681
|
/* @__PURE__ */ n(Le, { children: "Interação suspendida" })
|
|
8682
|
-
] }), "SuspendedPart"),
|
|
8682
|
+
] }), "SuspendedPart"), xh = { fontSize: 10, color: "rgba(255, 255, 255, 0.7)" }, Ul = /* @__PURE__ */ t(({
|
|
8683
8683
|
part: e,
|
|
8684
8684
|
message: r,
|
|
8685
8685
|
preview: i,
|
|
@@ -8697,7 +8697,7 @@ ${((T = e.rawDetails) == null ? void 0 : T.toString()) ?? ""}
|
|
|
8697
8697
|
{
|
|
8698
8698
|
sessionId: r.sessionId ?? "ND",
|
|
8699
8699
|
title: l,
|
|
8700
|
-
icon: /* @__PURE__ */ n(iu, { style:
|
|
8700
|
+
icon: /* @__PURE__ */ n(iu, { style: xh }),
|
|
8701
8701
|
content: b,
|
|
8702
8702
|
part: e,
|
|
8703
8703
|
preview: i,
|
|
@@ -8706,7 +8706,7 @@ ${((T = e.rawDetails) == null ? void 0 : T.toString()) ?? ""}
|
|
|
8706
8706
|
isLastInlineInGroup: s
|
|
8707
8707
|
}
|
|
8708
8708
|
);
|
|
8709
|
-
}, "BoxedPart"),
|
|
8709
|
+
}, "BoxedPart"), vh = /* @__PURE__ */ t(({ part: e }) => {
|
|
8710
8710
|
var l, x, b, E;
|
|
8711
8711
|
const [r, i] = G(!1), s = (x = (l = e.errorDetails) == null ? void 0 : l.errorMessage) == null ? void 0 : x.trim(), u = (E = (b = e.errorDetails) == null ? void 0 : b.stackTrace) == null ? void 0 : E.trim();
|
|
8712
8712
|
return /* @__PURE__ */ M(
|
|
@@ -8766,8 +8766,8 @@ ${((T = e.rawDetails) == null ? void 0 : T.toString()) ?? ""}
|
|
|
8766
8766
|
]
|
|
8767
8767
|
}
|
|
8768
8768
|
);
|
|
8769
|
-
}, "ServerErrorPart"), vi = ["single", "multi", "dropdown"], _o = /* @__PURE__ */ t((e) => e && typeof e == "object" ? e : null, "asObj$1"), qn = /* @__PURE__ */ t((e) => typeof e == "string" ? e : "", "asStr"),
|
|
8770
|
-
function
|
|
8769
|
+
}, "ServerErrorPart"), vi = ["single", "multi", "dropdown"], _o = /* @__PURE__ */ t((e) => e && typeof e == "object" ? e : null, "asObj$1"), qn = /* @__PURE__ */ t((e) => typeof e == "string" ? e : "", "asStr"), wh = "YYYY-MM-DD";
|
|
8770
|
+
function kh(e, r) {
|
|
8771
8771
|
if (!e) return r;
|
|
8772
8772
|
const i = /* @__PURE__ */ t((x, b) => x === "0" || x === "9" ? /[0-9]/.test(b) : x === "A" ? /[a-zA-Z]/.test(b) : /[a-zA-Z0-9]/.test(b), "accepts"), s = /* @__PURE__ */ t((x) => x === "0" || x === "9" || x === "A" || x === "S", "isPlaceholder");
|
|
8773
8773
|
let u = "", l = 0;
|
|
@@ -8784,13 +8784,13 @@ function wh(e, r) {
|
|
|
8784
8784
|
}
|
|
8785
8785
|
return u;
|
|
8786
8786
|
}
|
|
8787
|
-
t(
|
|
8788
|
-
function
|
|
8787
|
+
t(kh, "applyMask");
|
|
8788
|
+
function Sh(e, r, i) {
|
|
8789
8789
|
const s = qn(e.type).trim().toLowerCase();
|
|
8790
8790
|
let l = ["single", "multi", "dropdown", "date", "masked", "text"].includes(s) ? s : i ? r : "text";
|
|
8791
8791
|
return vi.includes(l) && !i && (l = "text"), l;
|
|
8792
8792
|
}
|
|
8793
|
-
t(
|
|
8793
|
+
t(Sh, "coerceKind");
|
|
8794
8794
|
function va(e) {
|
|
8795
8795
|
const r = _o(e);
|
|
8796
8796
|
if (!r) return null;
|
|
@@ -8802,13 +8802,13 @@ function va(e) {
|
|
|
8802
8802
|
if (!x) continue;
|
|
8803
8803
|
const b = qn(x.text).trim();
|
|
8804
8804
|
if (!b) continue;
|
|
8805
|
-
const E = qn(x.select).toLowerCase() === "multi" ? "multi" : "single", T = (Array.isArray(x.options) ? x.options : []).filter((I) => typeof I == "string" && I.trim().length > 0).map((I) => I.trim()), D = qn(x.id).trim() || void 0, k =
|
|
8805
|
+
const E = qn(x.select).toLowerCase() === "multi" ? "multi" : "single", T = (Array.isArray(x.options) ? x.options : []).filter((I) => typeof I == "string" && I.trim().length > 0).map((I) => I.trim()), D = qn(x.id).trim() || void 0, k = Sh(x, E, T.length > 0), w = k === "masked" && qn(x.mask).trim() || void 0;
|
|
8806
8806
|
s.push({ id: D, text: b, select: E, options: vi.includes(k) ? T : [], kind: k, mask: w });
|
|
8807
8807
|
}
|
|
8808
8808
|
return s.length === 0 ? null : { title: qn(r.title).trim() || void 0, questions: s };
|
|
8809
8809
|
}
|
|
8810
8810
|
t(va, "coerceQuestionnaire");
|
|
8811
|
-
function
|
|
8811
|
+
function Ch(e) {
|
|
8812
8812
|
if (typeof e == "string" && e.trim())
|
|
8813
8813
|
try {
|
|
8814
8814
|
const s = JSON.parse(e), u = va(s);
|
|
@@ -8830,8 +8830,8 @@ function Sh(e) {
|
|
|
8830
8830
|
questions: [{ id: "q0", text: r.question.trim(), select: "single", options: ["Yes", "No"], kind: "single" }]
|
|
8831
8831
|
} : null);
|
|
8832
8832
|
}
|
|
8833
|
-
t(
|
|
8834
|
-
function
|
|
8833
|
+
t(Ch, "readQuestionnaire");
|
|
8834
|
+
function Eh(e) {
|
|
8835
8835
|
let r = e;
|
|
8836
8836
|
if (r && typeof r == "object") {
|
|
8837
8837
|
const s = ct.tryCollapseCharIndexedObject(r);
|
|
@@ -8849,19 +8849,19 @@ function Ch(e) {
|
|
|
8849
8849
|
const i = _o(r);
|
|
8850
8850
|
return i && Array.isArray(i.answers) ? i.answers : null;
|
|
8851
8851
|
}
|
|
8852
|
-
t(
|
|
8853
|
-
function
|
|
8852
|
+
t(Eh, "parseAnswers");
|
|
8853
|
+
function Th(e) {
|
|
8854
8854
|
if (typeof e != "string") return null;
|
|
8855
8855
|
const r = e.trim();
|
|
8856
8856
|
return !r || r.startsWith("{") || r.startsWith("[") || r.startsWith('"') ? null : r;
|
|
8857
8857
|
}
|
|
8858
|
-
t(
|
|
8859
|
-
const
|
|
8858
|
+
t(Th, "sentinelOf$1");
|
|
8859
|
+
const Ih = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
8860
8860
|
var te, Fe, De, Ze, ue;
|
|
8861
8861
|
const { agentGatewayService: i } = ut(), [s, u] = G(null), [l, x] = G({}), b = pt(), E = (te = e.functionDetails) == null ? void 0 : te.id, T = ve(
|
|
8862
8862
|
() => {
|
|
8863
8863
|
var B;
|
|
8864
|
-
return
|
|
8864
|
+
return Ch((B = e.functionDetails) == null ? void 0 : B.args);
|
|
8865
8865
|
},
|
|
8866
8866
|
[(Fe = e.functionDetails) == null ? void 0 : Fe.args]
|
|
8867
8867
|
);
|
|
@@ -8885,7 +8885,7 @@ const Th = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
8885
8885
|
/* @__PURE__ */ n(Qs, { sx: { display: "inline-flex", mt: 0.5 } }),
|
|
8886
8886
|
/* @__PURE__ */ n(ne, { variant: "body2", sx: { display: "inline-flex", mt: 1, color: "text.secondary" }, children: "Prompt Cancelado" })
|
|
8887
8887
|
] });
|
|
8888
|
-
const ye =
|
|
8888
|
+
const ye = Eh(w), xe = ye ? null : Th(w);
|
|
8889
8889
|
return /* @__PURE__ */ M(R, { sx: g, children: [
|
|
8890
8890
|
f && /* @__PURE__ */ n(ne, { variant: "subtitle2", sx: { mb: 1.25, fontWeight: 600 }, children: f }),
|
|
8891
8891
|
/* @__PURE__ */ n(Mt, { spacing: 1.25, children: y.map((Ye, Ge) => {
|
|
@@ -8938,11 +8938,11 @@ const Th = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
8938
8938
|
f && /* @__PURE__ */ n(ne, { variant: "subtitle2", sx: { mb: 1.25, fontWeight: 600 }, children: f }),
|
|
8939
8939
|
/* @__PURE__ */ n(Mt, { spacing: 2, children: y.map((B, ye) => /* @__PURE__ */ M(R, { children: [
|
|
8940
8940
|
/* @__PURE__ */ n(ne, { variant: "body2", sx: { mb: 0.75, fontWeight: 500 }, children: B.text }),
|
|
8941
|
-
B.kind === "multi" && /* @__PURE__ */ n(
|
|
8942
|
-
|
|
8941
|
+
B.kind === "multi" && /* @__PURE__ */ n(Uu, { children: B.options.map((xe) => /* @__PURE__ */ n(
|
|
8942
|
+
Vu,
|
|
8943
8943
|
{
|
|
8944
8944
|
control: /* @__PURE__ */ n(
|
|
8945
|
-
|
|
8945
|
+
Hu,
|
|
8946
8946
|
{
|
|
8947
8947
|
size: "small",
|
|
8948
8948
|
checked: S(ye).includes(xe),
|
|
@@ -8980,10 +8980,10 @@ const Th = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
8980
8980
|
}
|
|
8981
8981
|
),
|
|
8982
8982
|
B.kind === "date" && /* @__PURE__ */ n(Hs, { dateAdapter: Vs, children: /* @__PURE__ */ n(
|
|
8983
|
-
|
|
8983
|
+
qu,
|
|
8984
8984
|
{
|
|
8985
8985
|
value: H(ye) ? Us(H(ye)) : null,
|
|
8986
|
-
onChange: /* @__PURE__ */ t((xe) => U(ye, xe && xe.isValid() ? xe.format(
|
|
8986
|
+
onChange: /* @__PURE__ */ t((xe) => U(ye, xe && xe.isValid() ? xe.format(wh) : ""), "onChange"),
|
|
8987
8987
|
slotProps: { textField: { size: "small", fullWidth: !0 } }
|
|
8988
8988
|
}
|
|
8989
8989
|
) }),
|
|
@@ -8991,7 +8991,7 @@ const Th = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
8991
8991
|
ga,
|
|
8992
8992
|
{
|
|
8993
8993
|
value: H(ye),
|
|
8994
|
-
onChange: /* @__PURE__ */ t((xe) => U(ye, B.mask ?
|
|
8994
|
+
onChange: /* @__PURE__ */ t((xe) => U(ye, B.mask ? kh(B.mask, xe.target.value) : xe.target.value), "onChange"),
|
|
8995
8995
|
placeholder: B.mask || "Type your answer…",
|
|
8996
8996
|
size: "small",
|
|
8997
8997
|
fullWidth: !0
|
|
@@ -9014,7 +9014,7 @@ const Th = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
9014
9014
|
/* @__PURE__ */ n(Mt, { direction: "row", spacing: 1, alignItems: "center", sx: { mt: 1.5 }, children: F ? /* @__PURE__ */ n(Xt, { "data-ask-cta": !0, size: "small", variant: "contained", color: "primary", onClick: /* @__PURE__ */ t(() => K(), "onClick"), children: "Submit" }) : /* @__PURE__ */ n(ne, { variant: "caption", sx: { color: "text.secondary" }, children: "Pick an option to answer" }) })
|
|
9015
9015
|
] });
|
|
9016
9016
|
}, "AskUserPart"), ws = /* @__PURE__ */ t((e) => e && typeof e == "object" ? e : null, "asObj");
|
|
9017
|
-
function
|
|
9017
|
+
function Ah(e) {
|
|
9018
9018
|
const r = ws(e);
|
|
9019
9019
|
if (r && typeof r.reason == "string" && r.reason.trim()) return r.reason.trim();
|
|
9020
9020
|
if (typeof e == "string" && e.trim())
|
|
@@ -9024,8 +9024,8 @@ function Ih(e) {
|
|
|
9024
9024
|
} catch {
|
|
9025
9025
|
}
|
|
9026
9026
|
}
|
|
9027
|
-
t(
|
|
9028
|
-
function
|
|
9027
|
+
t(Ah, "readReason");
|
|
9028
|
+
function Mh(e) {
|
|
9029
9029
|
let r = e;
|
|
9030
9030
|
if (r && typeof r == "object") {
|
|
9031
9031
|
const s = ct.tryCollapseCharIndexedObject(r);
|
|
@@ -9035,15 +9035,15 @@ function Ah(e) {
|
|
|
9035
9035
|
const i = r.trim().replace(/^\(+|\)+$/g, "").trim();
|
|
9036
9036
|
return i.length ? i : null;
|
|
9037
9037
|
}
|
|
9038
|
-
t(
|
|
9039
|
-
const
|
|
9038
|
+
t(Mh, "sentinelOf");
|
|
9039
|
+
const zh = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
9040
9040
|
var g, p, S;
|
|
9041
9041
|
const { agentGatewayService: i, onRequestAuth: s, renderAuthPrompt: u } = ut(), [l, x] = G("idle"), b = ae(null), E = (g = e.functionDetails) == null ? void 0 : g.id, T = ve(() => {
|
|
9042
9042
|
var d;
|
|
9043
|
-
return
|
|
9043
|
+
return Ah((d = e.functionDetails) == null ? void 0 : d.args);
|
|
9044
9044
|
}, [(p = e.functionDetails) == null ? void 0 : p.args]), D = e.eventType === we.FunctionResponse ? ((S = e.functionDetails) == null ? void 0 : S.response) ?? null : null, k = l === "done" || D != null || !E, w = r ? { maxWidth: "100%", pb: 2 } : { border: "1px solid", borderColor: "divider", borderRadius: 2, px: 2, py: 1.5, my: 0.5, maxWidth: "100%" };
|
|
9045
9045
|
if (k) {
|
|
9046
|
-
const d = l === "done" ? null :
|
|
9046
|
+
const d = l === "done" ? null : Mh(D);
|
|
9047
9047
|
return /* @__PURE__ */ n(R, { sx: w, children: /* @__PURE__ */ n(ne, { variant: "body2", sx: { color: "text.secondary" }, children: d ?? "✓ Conectado" }) });
|
|
9048
9048
|
}
|
|
9049
9049
|
const I = /* @__PURE__ */ t((d) => {
|
|
@@ -9139,7 +9139,7 @@ function $o(e) {
|
|
|
9139
9139
|
return r != null && typeof r == "object" ? r : null;
|
|
9140
9140
|
}
|
|
9141
9141
|
t($o, "parseUiArgs");
|
|
9142
|
-
function
|
|
9142
|
+
function _h() {
|
|
9143
9143
|
const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = {
|
|
9144
9144
|
render(s, u, l) {
|
|
9145
9145
|
const x = wa(s);
|
|
@@ -9188,10 +9188,10 @@ function zh() {
|
|
|
9188
9188
|
};
|
|
9189
9189
|
return i;
|
|
9190
9190
|
}
|
|
9191
|
-
t(
|
|
9191
|
+
t(_h, "createUiToolRegistry");
|
|
9192
9192
|
const Ro = /* @__PURE__ */ t((e) => {
|
|
9193
9193
|
var y, v;
|
|
9194
|
-
const { part: r, message: i, onGoing: s = !1, preview: u = !1, embedded: l } = e, x = Ut(xn), b = r.functionDetails, E =
|
|
9194
|
+
const { part: r, message: i, onGoing: s = !1, preview: u = !1, embedded: l } = e, x = Ut(xn), b = r.functionDetails, E = dh(b), T = zt(), D = x == null ? void 0 : x.askUserInlineContainer, k = (x == null ? void 0 : x.askUserPresentation) === "inline" && (b == null ? void 0 : b.parked) === !0 && (b == null ? void 0 : b.status) !== "Done" && !l, w = l || k && !!D, I = /* @__PURE__ */ t((g) => k && D ? /* @__PURE__ */ n(D, { toolName: Ll(b == null ? void 0 : b.name), children: g }) : g, "wrap"), f = (y = x == null ? void 0 : x.uiTools) == null ? void 0 : y.resolveAskUser(E);
|
|
9195
9195
|
if (f) {
|
|
9196
9196
|
const g = f.parse ? f.parse(b == null ? void 0 : b.args) : $o(b == null ? void 0 : b.args), p = {
|
|
9197
9197
|
name: f.name,
|
|
@@ -9221,8 +9221,8 @@ const Ro = /* @__PURE__ */ t((e) => {
|
|
|
9221
9221
|
}
|
|
9222
9222
|
return I(/* @__PURE__ */ n(ie, { children: f.question(g ?? {}, p) }));
|
|
9223
9223
|
}
|
|
9224
|
-
return I(E === jl ? /* @__PURE__ */ n(
|
|
9225
|
-
}, "AskUserDispatcher"), kr = dt.createContext(null),
|
|
9224
|
+
return I(E === jl ? /* @__PURE__ */ n(zh, { part: r, embedded: w }) : /* @__PURE__ */ n(Ih, { part: r, embedded: w }));
|
|
9225
|
+
}, "AskUserDispatcher"), kr = dt.createContext(null), Rh = /* @__PURE__ */ t(({ value: e, children: r }) => /* @__PURE__ */ n(kr.Provider, { value: e, children: r }), "EnvironmentProvider");
|
|
9226
9226
|
function ql() {
|
|
9227
9227
|
const e = dt.useContext(kr);
|
|
9228
9228
|
if (!e) throw new Error("useEnvironment must be used within EnvironmentProvider");
|
|
@@ -9250,7 +9250,7 @@ const Gl = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9250
9250
|
const T = (b == null ? void 0 : b.id) ?? "", D = wi(b == null ? void 0 : b.clientOutput);
|
|
9251
9251
|
if (E.kind === "action")
|
|
9252
9252
|
return /* @__PURE__ */ n(
|
|
9253
|
-
|
|
9253
|
+
Dh,
|
|
9254
9254
|
{
|
|
9255
9255
|
entry: E,
|
|
9256
9256
|
callId: T,
|
|
@@ -9285,7 +9285,7 @@ const Gl = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9285
9285
|
}, "answer")
|
|
9286
9286
|
};
|
|
9287
9287
|
return /* @__PURE__ */ n(ke, { "data-ui-tool-content": "", children: E.render(k, w) });
|
|
9288
|
-
}, "UiToolDispatcher"),
|
|
9288
|
+
}, "UiToolDispatcher"), Dh = /* @__PURE__ */ t(({
|
|
9289
9289
|
entry: e,
|
|
9290
9290
|
callId: r,
|
|
9291
9291
|
rawArgs: i,
|
|
@@ -9333,7 +9333,7 @@ const Gl = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9333
9333
|
waiting: Hl,
|
|
9334
9334
|
suspended: Vl,
|
|
9335
9335
|
boxed: Ul,
|
|
9336
|
-
serverError:
|
|
9336
|
+
serverError: vh,
|
|
9337
9337
|
// The built-in dispatcher resolves the host's `uiTools` registry (name →
|
|
9338
9338
|
// renderer/action) and draws the matched component, or falls back to a plain
|
|
9339
9339
|
// tool call when there's no registry / no match. Hosts can still fully
|
|
@@ -9391,7 +9391,7 @@ const gr = dt.memo((e) => {
|
|
|
9391
9391
|
}, (e, r) => {
|
|
9392
9392
|
var i, s, u, l, x, b, E, T, D, k, w, I;
|
|
9393
9393
|
return !(e.part.id !== r.part.id || (((i = e.part.textDetails) == null ? void 0 : i.version) ?? 0) < (((s = r.part.textDetails) == null ? void 0 : s.version) ?? 0) || e.part.text !== r.part.text || e.part.eventType !== r.part.eventType || e.part.partial !== r.part.partial || ((u = e.part.functionDetails) == null ? void 0 : u.text) !== ((l = r.part.functionDetails) == null ? void 0 : l.text) || ((x = e.part.functionDetails) == null ? void 0 : x.args) !== ((b = r.part.functionDetails) == null ? void 0 : b.args) || ((E = e.part.functionDetails) == null ? void 0 : E.response) !== ((T = r.part.functionDetails) == null ? void 0 : T.response) || ((D = e.part.waitingDetails) == null ? void 0 : D.status) !== ((k = r.part.waitingDetails) == null ? void 0 : k.status) || ((w = e.part.waitingDetails) == null ? void 0 : w.stopPoint) !== ((I = r.part.waitingDetails) == null ? void 0 : I.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);
|
|
9394
|
-
}),
|
|
9394
|
+
}), Oh = /* @__PURE__ */ t(({ message: e, onLinkClicked: r }) => {
|
|
9395
9395
|
var d, A;
|
|
9396
9396
|
const [i, s] = G(null), [u, l] = G(!1), { onRenderPrompt: x, userMessageRenderer: b, showPersona: E } = ut(), T = e.parts.filter((h) => h.eventType === we.UserAnswer), D = pt(), k = 20;
|
|
9397
9397
|
let w = e.parts.some((h) => {
|
|
@@ -9492,7 +9492,7 @@ const gr = dt.memo((e) => {
|
|
|
9492
9492
|
}
|
|
9493
9493
|
),
|
|
9494
9494
|
/* @__PURE__ */ M(
|
|
9495
|
-
|
|
9495
|
+
Ru,
|
|
9496
9496
|
{
|
|
9497
9497
|
in: !0,
|
|
9498
9498
|
orientation: "horizontal",
|
|
@@ -9659,7 +9659,7 @@ const gr = dt.memo((e) => {
|
|
|
9659
9659
|
}
|
|
9660
9660
|
) })
|
|
9661
9661
|
] });
|
|
9662
|
-
}, "MessageUser"),
|
|
9662
|
+
}, "MessageUser"), Ph = 1, Fh = 2, Ai = class Ai {
|
|
9663
9663
|
constructor() {
|
|
9664
9664
|
tt(this, "containers", /* @__PURE__ */ new Map());
|
|
9665
9665
|
tt(this, "claims", /* @__PURE__ */ new Map());
|
|
@@ -9709,10 +9709,10 @@ function mo(e) {
|
|
|
9709
9709
|
return ct.uiSlotId(e);
|
|
9710
9710
|
}
|
|
9711
9711
|
t(mo, "stagedSlotIdOf");
|
|
9712
|
-
function
|
|
9713
|
-
return
|
|
9712
|
+
function Lh(e, r, i) {
|
|
9713
|
+
return Bu(i, e.container(r), `ui-part-stage-${r}`);
|
|
9714
9714
|
}
|
|
9715
|
-
t(
|
|
9715
|
+
t(Lh, "renderStagedPart");
|
|
9716
9716
|
const Ql = /* @__PURE__ */ t(({ slotKey: e, priority: r }) => {
|
|
9717
9717
|
const i = Ut(Si), s = ae(null), u = ae(null);
|
|
9718
9718
|
return u.current == null && (u.current = Symbol("ui-part-anchor")), xo(() => {
|
|
@@ -9722,7 +9722,7 @@ const Ql = /* @__PURE__ */ t(({ slotKey: e, priority: r }) => {
|
|
|
9722
9722
|
return i.claim(e, x, l, r), () => i.release(e, x);
|
|
9723
9723
|
}, [i, e, r]), /* @__PURE__ */ n("div", { ref: s, "data-ui-part-anchor": e, style: { width: "100%" } });
|
|
9724
9724
|
}, "UiPartAnchor");
|
|
9725
|
-
function
|
|
9725
|
+
function jh(e, r, i = !1) {
|
|
9726
9726
|
if (!r) return e;
|
|
9727
9727
|
const s = /* @__PURE__ */ t((u) => {
|
|
9728
9728
|
var l;
|
|
@@ -9733,7 +9733,7 @@ function Lh(e, r, i = !1) {
|
|
|
9733
9733
|
return !s(u) || ((l = u.functionDetails) == null ? void 0 : l.status) === "Done" ? !0 : i && ((x = u.functionDetails) == null ? void 0 : x.parked) === !0 && wr(u.functionDetails);
|
|
9734
9734
|
});
|
|
9735
9735
|
}
|
|
9736
|
-
t(
|
|
9736
|
+
t(jh, "hideUnfinishedUiParts");
|
|
9737
9737
|
const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s, onLinkClicked: u, appendWaitingPart: l, messagesRef: x, isConnectionOpen: b, friendlyMode: E = !1 }) => {
|
|
9738
9738
|
const { showToolCalls: T, showPersona: D, askUserPresentation: k } = ut(), w = pt(), I = ae(null), [f, y] = G(!1), v = ae(null);
|
|
9739
9739
|
v.current == null && (v.current = new Va());
|
|
@@ -9758,7 +9758,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9758
9758
|
let z = [];
|
|
9759
9759
|
if (!e.parts)
|
|
9760
9760
|
return null;
|
|
9761
|
-
let F =
|
|
9761
|
+
let F = jh(e.parts ?? [], r, k === "inline").filter(($) => {
|
|
9762
9762
|
var Y, U, H;
|
|
9763
9763
|
return $.eventType === we.ToolEvent || $.eventType === we.UserAnswer || $.eventType === we.FunctionClientOutput ? !1 : $.eventType === we.FunctionCall || $.eventType === we.FunctionResponse || $.eventType === we.PartialFunctionCall ? ((Y = $.functionDetails) == null ? void 0 : Y.cancelUi) !== !0 && ((U = $.functionDetails) != null && U.isUi || (H = $.functionDetails) != null && H.isAskUser) ? !0 : T : $.eventType === we.Thought ? r || T : !0;
|
|
9764
9764
|
});
|
|
@@ -9776,7 +9776,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9776
9776
|
maxWidth: "100%"
|
|
9777
9777
|
};
|
|
9778
9778
|
}, "getStyleGroup"), re = /* @__PURE__ */ t(($, Y) => {
|
|
9779
|
-
const U = mo($), H = U ? /* @__PURE__ */ n(Ql, { slotKey: U, priority:
|
|
9779
|
+
const U = mo($), H = U ? /* @__PURE__ */ n(Ql, { slotKey: U, priority: Ph }) : /* @__PURE__ */ n(
|
|
9780
9780
|
gr,
|
|
9781
9781
|
{
|
|
9782
9782
|
onGoing: r,
|
|
@@ -9832,7 +9832,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9832
9832
|
if (!($.parts.length > 0 && U.length > 0)) return !1;
|
|
9833
9833
|
const H = `group-${Y}-${e.interactionId}-${i}`;
|
|
9834
9834
|
return $.isThoughtRun ? /* @__PURE__ */ n(
|
|
9835
|
-
|
|
9835
|
+
ph,
|
|
9836
9836
|
{
|
|
9837
9837
|
parts: $.parts,
|
|
9838
9838
|
isLive: r && ($.lastWithThoughts || $.isLastGroup),
|
|
@@ -9850,7 +9850,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9850
9850
|
);
|
|
9851
9851
|
}),
|
|
9852
9852
|
(l || p) && d && /* @__PURE__ */ n(ie, { children: /* @__PURE__ */ n(gr, { onGoing: r, part: d, message: e, onLinkClicked: u, preview: s, friendlyMode: E }) }),
|
|
9853
|
-
N.map(($) =>
|
|
9853
|
+
N.map(($) => Lh(
|
|
9854
9854
|
g,
|
|
9855
9855
|
mo($),
|
|
9856
9856
|
/* @__PURE__ */ n(
|
|
@@ -9871,9 +9871,9 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9871
9871
|
)
|
|
9872
9872
|
] }) });
|
|
9873
9873
|
}, "MessageAgent"), Zl = /* @__PURE__ */ t(({ message: e, onLinkClicked: r, appendWaitingPart: i, messagesRef: s, friendlyMode: u }) => /* @__PURE__ */ M(ie, { children: [
|
|
9874
|
-
/* @__PURE__ */ n(
|
|
9874
|
+
/* @__PURE__ */ n(Oh, { message: e, onLinkClicked: r }),
|
|
9875
9875
|
/* @__PURE__ */ n(Xl, { onGoing: !1, container: "message", isConnectionOpen: !0, message: e, onLinkClicked: r, appendWaitingPart: i, messagesRef: s, preview: !1, friendlyMode: u })
|
|
9876
|
-
] }), "Message"),
|
|
9876
|
+
] }), "Message"), $h = /* @__PURE__ */ t(({
|
|
9877
9877
|
messageRefs: e,
|
|
9878
9878
|
showStickyHeader: r
|
|
9879
9879
|
}) => {
|
|
@@ -9883,7 +9883,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9883
9883
|
}), s = be(($) => $.loadingType), u = be(($) => $.loading), l = be(($) => $.messages), x = be(($) => $.sendingMessage), b = be(($) => $.currentMessage), [E, T] = G(null), D = ae(null), k = pt(), w = k.breakpoints.down("sm");
|
|
9884
9884
|
se(() => {
|
|
9885
9885
|
}, [w]);
|
|
9886
|
-
const { onVisibleQuestionChange: I } = ut(), [f, y] = G(null), [v] = G(null), [g, p] = G(!1), S =
|
|
9886
|
+
const { onVisibleQuestionChange: I } = ut(), [f, y] = G(null), [v] = G(null), [g, p] = G(!1), S = Ku(($) => {
|
|
9887
9887
|
y($);
|
|
9888
9888
|
}, 10);
|
|
9889
9889
|
se(() => {
|
|
@@ -10120,7 +10120,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10120
10120
|
]
|
|
10121
10121
|
}
|
|
10122
10122
|
) }) : /* @__PURE__ */ n("div", { style: { minHeight: "20px" } });
|
|
10123
|
-
}, "StickyQuestionHeader"),
|
|
10123
|
+
}, "StickyQuestionHeader"), Bh = /* @__PURE__ */ t(({
|
|
10124
10124
|
open: e,
|
|
10125
10125
|
title: r,
|
|
10126
10126
|
message: i,
|
|
@@ -10193,7 +10193,7 @@ const Xl = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10193
10193
|
};
|
|
10194
10194
|
t(Mi, "ErrorBoundary");
|
|
10195
10195
|
let Ua = Mi;
|
|
10196
|
-
const
|
|
10196
|
+
const Wh = {}, ec = /* @__PURE__ */ t(({ onLinkClicked: e, eventBusService: r, messagesRef: i, artifactService: s, friendlyMode: u }) => {
|
|
10197
10197
|
const l = be((b) => b.turnOpen), x = be((b) => b.currentMessage);
|
|
10198
10198
|
return x ? /* @__PURE__ */ n(Ua, { children: /* @__PURE__ */ n(
|
|
10199
10199
|
R,
|
|
@@ -10214,7 +10214,7 @@ const Bh = {}, ec = /* @__PURE__ */ t(({ onLinkClicked: e, eventBusService: r, m
|
|
|
10214
10214
|
// Streaming-content arrival animation, gated by
|
|
10215
10215
|
// REVEAL_ANIMATION_ENABLED at the top of this file. Currently
|
|
10216
10216
|
// off — see that flag's comment for why.
|
|
10217
|
-
...
|
|
10217
|
+
...Wh,
|
|
10218
10218
|
// Streaming-only left-alignment for table cells. GFM
|
|
10219
10219
|
// sets text-align inline (style="text-align: center")
|
|
10220
10220
|
// when the markdown carries `|:---:|`, and `<th>` is
|
|
@@ -10262,7 +10262,7 @@ function Ci() {
|
|
|
10262
10262
|
};
|
|
10263
10263
|
}
|
|
10264
10264
|
t(Ci, "useParkedAskUser");
|
|
10265
|
-
const ks = "O agente enviou esta pergunta, responda para que ele possa continuar",
|
|
10265
|
+
const ks = "O agente enviou esta pergunta, responda para que ele possa continuar", Nh = 450, bn = 80, nc = /* @__PURE__ */ t(({ promptHeight: e, eyebrowLabel: r = "pergunta do agente", initiallyCollapsed: i = !0 }) => {
|
|
10266
10266
|
var z, F, N;
|
|
10267
10267
|
const s = pt(), [u, l] = G(i), [x, b] = G(!1), [E, T] = G(!1), { askUserPresentation: D } = ut(), { parked: k, toRender: w, currentMessage: I, turnOpen: f, cancel: y } = Ci(), v = (z = k == null ? void 0 : k.functionDetails) == null ? void 0 : z.id;
|
|
10268
10268
|
se(() => {
|
|
@@ -10274,7 +10274,7 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10274
10274
|
d(!1);
|
|
10275
10275
|
return;
|
|
10276
10276
|
}
|
|
10277
|
-
const K = setTimeout(() => d(!0),
|
|
10277
|
+
const K = setTimeout(() => d(!0), Nh);
|
|
10278
10278
|
return () => clearTimeout(K);
|
|
10279
10279
|
}, [p, v]);
|
|
10280
10280
|
const A = p && S || x, h = p && S;
|
|
@@ -10436,16 +10436,16 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10436
10436
|
]
|
|
10437
10437
|
}
|
|
10438
10438
|
) });
|
|
10439
|
-
}, "AskUserSheet"),
|
|
10439
|
+
}, "AskUserSheet"), Hh = {
|
|
10440
10440
|
Connecting: "info",
|
|
10441
10441
|
Connected: "success",
|
|
10442
10442
|
Disconnected: "error",
|
|
10443
10443
|
Unknown: "secondary",
|
|
10444
10444
|
Paused: "secondary",
|
|
10445
10445
|
Idle: "info"
|
|
10446
|
-
},
|
|
10446
|
+
}, Vh = /* @__PURE__ */ t(() => {
|
|
10447
10447
|
const { connectionStatus: e, sessionActive: r, lastActivity: i, loadingError: s } = be(
|
|
10448
|
-
|
|
10448
|
+
Ju((I) => ({ connectionStatus: I.connectionStatus, loadingStatus: I.loading, loadingError: I.loadingError, sessionActive: I.sessionActive, lastActivity: I.lastActivity }))
|
|
10449
10449
|
), [u, l] = G(0), x = zt(), b = /* @__PURE__ */ t((I) => {
|
|
10450
10450
|
switch (I) {
|
|
10451
10451
|
case Ie.Connected:
|
|
@@ -10459,8 +10459,8 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10459
10459
|
default:
|
|
10460
10460
|
return "";
|
|
10461
10461
|
}
|
|
10462
|
-
}, "getSmallStatus"), E = /* @__PURE__ */ t(() => !r && e !== "Idle" ? { color: "secondary", status: "Session Inactive" } : { color:
|
|
10463
|
-
|
|
10462
|
+
}, "getSmallStatus"), E = /* @__PURE__ */ t(() => !r && e !== "Idle" ? { color: "secondary", status: "Session Inactive" } : { color: Hh[e.toString()], status: b(e) }, "getState");
|
|
10463
|
+
Su(() => {
|
|
10464
10464
|
l((/* @__PURE__ */ new Date()).getTime() - i);
|
|
10465
10465
|
}, 1500);
|
|
10466
10466
|
const T = E(), D = u / cn > ko, k = cn / ko / 1e3, w = Math.ceil((cn - u) / 1e3);
|
|
@@ -10492,7 +10492,7 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10492
10492
|
] }),
|
|
10493
10493
|
!!s && e != Ie.Connected && /* @__PURE__ */ n(Yn, { title: s, sx: { cursor: "pointer" }, children: /* @__PURE__ */ n(Le, { variant: "caption", noWrap: !0, style: { color: x.palette.error.light, fontStyle: "italic", overflow: "clip", minWidth: 0, maxWidth: "250px" }, children: s }) })
|
|
10494
10494
|
] });
|
|
10495
|
-
}, "ConnectionState"),
|
|
10495
|
+
}, "ConnectionState"), Uh = ii(), Ss = /* @__PURE__ */ t((e) => e.scrollHeight - (e.scrollTop + e.clientHeight) > e.clientHeight * 0.15, "hasLeftTheTail"), Sr = /* @__PURE__ */ t((e) => {
|
|
10496
10496
|
var Ft;
|
|
10497
10497
|
const { eventBusService: i, showStickyHeader: s, currentModel: u, friendlyMode: l, showConnectionState: x, hidePromptInput: b, autoRenderAskUserSheet: E, askUserPresentation: T, onNavigate: D } = ut(), k = u ? ti[u] : void 0, w = be((Z) => {
|
|
10498
10498
|
var fe;
|
|
@@ -10594,7 +10594,7 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10594
10594
|
D ? D(Se) : window.location.assign(Se);
|
|
10595
10595
|
break;
|
|
10596
10596
|
case "Export":
|
|
10597
|
-
Z.indexOf("http") == -1 && (Z =
|
|
10597
|
+
Z.indexOf("http") == -1 && (Z = Uh + Z), Ae(Z);
|
|
10598
10598
|
break;
|
|
10599
10599
|
case "Question":
|
|
10600
10600
|
await Ne(ze);
|
|
@@ -10673,13 +10673,13 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10673
10673
|
}, "handleScroll");
|
|
10674
10674
|
return /* @__PURE__ */ M(R, { sx: Xe(), children: [
|
|
10675
10675
|
e.showStickHeader && /* @__PURE__ */ n(
|
|
10676
|
-
|
|
10676
|
+
$h,
|
|
10677
10677
|
{
|
|
10678
10678
|
messageRefs: N,
|
|
10679
10679
|
showStickyHeader: s
|
|
10680
10680
|
}
|
|
10681
10681
|
),
|
|
10682
|
-
x && /* @__PURE__ */ n("div", { style: { position: "absolute", right: "0px", top: "5px", zIndex: 1e4 }, children: /* @__PURE__ */ n(
|
|
10682
|
+
x && /* @__PURE__ */ n("div", { style: { position: "absolute", right: "0px", top: "5px", zIndex: 1e4 }, children: /* @__PURE__ */ n(Vh, {}) }),
|
|
10683
10683
|
v !== void 0 && f != "Idle" && f != "Connected" && /* @__PURE__ */ n("div", { style: { display: "inline-flex", position: "absolute", backgroundColor: Dn(S.palette.background.default, 0.6), justifyContent: "center", alignItems: "center", height: "100%", width: "100%", right: "0px", top: "0", zIndex: 1e4 }, children: /* @__PURE__ */ n(R, { sx: {
|
|
10684
10684
|
width: "100%",
|
|
10685
10685
|
height: "100%",
|
|
@@ -10879,7 +10879,7 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10879
10879
|
children: [
|
|
10880
10880
|
Ge.current === !0 ? /* @__PURE__ */ n(Qi, { sx: { fontSize: 10 } }) : /* @__PURE__ */ n(Xi, { sx: { fontSize: 20 } }),
|
|
10881
10881
|
/* @__PURE__ */ n(ne, { variant: "body2", sx: { fontWeight: 500 }, children: "New content!" }),
|
|
10882
|
-
/* @__PURE__ */ n(
|
|
10882
|
+
/* @__PURE__ */ n(Gu, { sx: { fontSize: 15 } })
|
|
10883
10883
|
]
|
|
10884
10884
|
}
|
|
10885
10885
|
) }),
|
|
@@ -10976,7 +10976,7 @@ const ks = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10976
10976
|
}
|
|
10977
10977
|
),
|
|
10978
10978
|
/* @__PURE__ */ n(
|
|
10979
|
-
|
|
10979
|
+
Bh,
|
|
10980
10980
|
{
|
|
10981
10981
|
open: q.open,
|
|
10982
10982
|
title: q.title,
|
|
@@ -11057,12 +11057,12 @@ function ac(e, r) {
|
|
|
11057
11057
|
return i || (i = r(), Do.set(e, i)), i;
|
|
11058
11058
|
}
|
|
11059
11059
|
t(ac, "getSharedAiChatEngine");
|
|
11060
|
-
async function
|
|
11060
|
+
async function qh(e) {
|
|
11061
11061
|
const r = Do.get(e);
|
|
11062
11062
|
r && (Do.delete(e), await r.dispose());
|
|
11063
11063
|
}
|
|
11064
|
-
t(
|
|
11065
|
-
function
|
|
11064
|
+
t(qh, "disposeSharedAiChatEngine");
|
|
11065
|
+
function Kh(e) {
|
|
11066
11066
|
return {
|
|
11067
11067
|
pushNotification: /* @__PURE__ */ t((r) => {
|
|
11068
11068
|
ni(r.message, {
|
|
@@ -11076,7 +11076,7 @@ function qh(e) {
|
|
|
11076
11076
|
}, "pushNotification")
|
|
11077
11077
|
};
|
|
11078
11078
|
}
|
|
11079
|
-
t(
|
|
11079
|
+
t(Kh, "themeNotificationPort");
|
|
11080
11080
|
function ic(e, r) {
|
|
11081
11081
|
var s, u;
|
|
11082
11082
|
const i = ((s = e.agentConfig) == null ? void 0 : s.id) ?? ((u = e.agentConfig) == null ? void 0 : u.name);
|
|
@@ -11085,11 +11085,11 @@ function ic(e, r) {
|
|
|
11085
11085
|
return r ? `${i}:${r}` : i;
|
|
11086
11086
|
}
|
|
11087
11087
|
t(ic, "engineKeyFor");
|
|
11088
|
-
function
|
|
11088
|
+
function Gh(e, r) {
|
|
11089
11089
|
const i = pt(), s = ic(e.agentContext, r == null ? void 0 : r.scope), u = ve(
|
|
11090
11090
|
() => ac(s, () => si({
|
|
11091
11091
|
...e,
|
|
11092
|
-
notificationPort: e.notificationPort ??
|
|
11092
|
+
notificationPort: e.notificationPort ?? Kh(i)
|
|
11093
11093
|
})),
|
|
11094
11094
|
// Intentionally keyed only by `key`: the engine lifetime is the key's
|
|
11095
11095
|
// lifetime, not this component's, and config is propagated separately.
|
|
@@ -11116,8 +11116,8 @@ function Kh(e, r) {
|
|
|
11116
11116
|
promptAssistService: x
|
|
11117
11117
|
};
|
|
11118
11118
|
}
|
|
11119
|
-
t(
|
|
11120
|
-
const
|
|
11119
|
+
t(Gh, "useAgentEngine");
|
|
11120
|
+
const Jh = /* @__PURE__ */ t(({
|
|
11121
11121
|
title: e = "The agent needs your answer",
|
|
11122
11122
|
maxWidth: r = "sm",
|
|
11123
11123
|
minimizable: i = !0,
|
|
@@ -11196,7 +11196,7 @@ const Gh = /* @__PURE__ */ t(({
|
|
|
11196
11196
|
]
|
|
11197
11197
|
}
|
|
11198
11198
|
);
|
|
11199
|
-
}, "AskUserDialog"),
|
|
11199
|
+
}, "AskUserDialog"), Yh = /* @__PURE__ */ t(({ artifact: e, mode: r, sessionId: i, preview: s, onExpand: u, renderMode: l = "browser", naked: x = !1, fullImage: b = !1 }) => {
|
|
11200
11200
|
var y;
|
|
11201
11201
|
const E = zt();
|
|
11202
11202
|
let T = !1, D = !1;
|
|
@@ -11211,7 +11211,7 @@ const Gh = /* @__PURE__ */ t(({
|
|
|
11211
11211
|
function k(v) {
|
|
11212
11212
|
switch (v) {
|
|
11213
11213
|
case "text/html":
|
|
11214
|
-
return /* @__PURE__ */ n(
|
|
11214
|
+
return /* @__PURE__ */ n(Yu, { fontSize: "large" });
|
|
11215
11215
|
case "text/csv":
|
|
11216
11216
|
return /* @__PURE__ */ n(bu, { fontSize: "large" });
|
|
11217
11217
|
case "application/pdf":
|
|
@@ -11347,7 +11347,7 @@ const Gh = /* @__PURE__ */ t(({
|
|
|
11347
11347
|
}
|
|
11348
11348
|
return t(f, "getEmbbedImage"), (y = e == null ? void 0 : e.mimeType) != null && y.startsWith("image") ? f(e) : s ? w() : I((e == null ? void 0 : e.html) ?? "", !1);
|
|
11349
11349
|
}, "ArtifactRender");
|
|
11350
|
-
function
|
|
11350
|
+
function Qh({ value: e, children: r, completedColor: i, unCompletedColor: s }) {
|
|
11351
11351
|
const u = Math.min(100, e);
|
|
11352
11352
|
return /* @__PURE__ */ M(R, { sx: { position: "relative", paddingX: 1, paddingY: 0.5, width: "100%", minHeight: "40px" }, children: [
|
|
11353
11353
|
/* @__PURE__ */ M(Pe, { direction: "row", alignItems: "center", spacing: 0, sx: { position: "absolute", top: 0, left: 0, display: "inline-flex", flexWrap: "nowrap", width: "100%", minHeight: "40px" }, children: [
|
|
@@ -11357,8 +11357,8 @@ function Yh({ value: e, children: r, completedColor: i, unCompletedColor: s }) {
|
|
|
11357
11357
|
r
|
|
11358
11358
|
] });
|
|
11359
11359
|
}
|
|
11360
|
-
t(
|
|
11361
|
-
const
|
|
11360
|
+
t(Qh, "LinerBackgroundProgress");
|
|
11361
|
+
const Xh = /* @__PURE__ */ t(({
|
|
11362
11362
|
text: e,
|
|
11363
11363
|
totalTime: r,
|
|
11364
11364
|
initialDelay: i,
|
|
@@ -11399,14 +11399,14 @@ function lc(e) {
|
|
|
11399
11399
|
return !!e.disabled || sc(e);
|
|
11400
11400
|
}
|
|
11401
11401
|
t(lc, "isBlocked");
|
|
11402
|
-
function
|
|
11402
|
+
function Zh(e) {
|
|
11403
11403
|
return lc(e) ? "ignore" : "run";
|
|
11404
11404
|
}
|
|
11405
|
-
t(
|
|
11406
|
-
const
|
|
11407
|
-
function
|
|
11405
|
+
t(Zh, "decideClick");
|
|
11406
|
+
const ef = "Aguarde o agente terminar…";
|
|
11407
|
+
function tf({
|
|
11408
11408
|
onClick: e,
|
|
11409
|
-
waitingTitle: r =
|
|
11409
|
+
waitingTitle: r = ef,
|
|
11410
11410
|
hideSpinner: i = !1,
|
|
11411
11411
|
disabled: s,
|
|
11412
11412
|
children: u,
|
|
@@ -11451,7 +11451,7 @@ function ef({
|
|
|
11451
11451
|
disabled: v,
|
|
11452
11452
|
"aria-busy": y || void 0,
|
|
11453
11453
|
onClick: /* @__PURE__ */ t(() => {
|
|
11454
|
-
|
|
11454
|
+
Zh(f) === "run" && I();
|
|
11455
11455
|
}, "handleClick"),
|
|
11456
11456
|
endIcon: y && !i ? /* @__PURE__ */ n(Lo, { size: 14, thickness: 5, color: "inherit" }) : l,
|
|
11457
11457
|
sx: x,
|
|
@@ -11460,57 +11460,57 @@ function ef({
|
|
|
11460
11460
|
) }) })
|
|
11461
11461
|
);
|
|
11462
11462
|
}
|
|
11463
|
-
t(
|
|
11464
|
-
const
|
|
11465
|
-
function
|
|
11463
|
+
t(tf, "TurnAwareButton");
|
|
11464
|
+
const nf = /* @__PURE__ */ new Set(["livetsx", "tsx", "jsx"]), rf = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/i, Cs = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/gi, cc = /<i data-lt-tick><\/i>/g, of = 2e3, af = 100, sf = /```(?:liveTsx|tsx|jsx)\s*\n[\s\S]*?\n```/i;
|
|
11465
|
+
function lf(e, r) {
|
|
11466
11466
|
let i = -1, s;
|
|
11467
11467
|
const u = new RegExp(Cs.source, Cs.flags);
|
|
11468
11468
|
for (; (s = u.exec(e)) !== null; )
|
|
11469
11469
|
i = s.index + s[0].length;
|
|
11470
11470
|
if (i === -1) return [0, 0];
|
|
11471
11471
|
const l = e.slice(i);
|
|
11472
|
-
if (
|
|
11473
|
-
const x = l.match(cc), b = x ? x.length : 0, E = Math.max(1, r /
|
|
11472
|
+
if (sf.test(l)) return [0, 0];
|
|
11473
|
+
const x = l.match(cc), b = x ? x.length : 0, E = Math.max(1, r / af);
|
|
11474
11474
|
return [Math.min(b / E, 1), b];
|
|
11475
11475
|
}
|
|
11476
|
-
t(
|
|
11477
|
-
function
|
|
11476
|
+
t(lf, "computeProgress");
|
|
11477
|
+
function cf(e) {
|
|
11478
11478
|
const r = /^```(\w+)\s*$/gm;
|
|
11479
11479
|
let i = null, s;
|
|
11480
11480
|
for (; (s = r.exec(e)) !== null; )
|
|
11481
|
-
|
|
11481
|
+
nf.has(s[1].toLowerCase()) && (i = s);
|
|
11482
11482
|
if (!i) return null;
|
|
11483
11483
|
const u = e.slice(i.index + i[0].length);
|
|
11484
11484
|
if (/^```\s*$/m.test(u)) return null;
|
|
11485
11485
|
const x = e.slice(0, i.index), b = u.replace(/^\n/, "");
|
|
11486
11486
|
return { before: x, partialCode: b };
|
|
11487
11487
|
}
|
|
11488
|
-
t(
|
|
11489
|
-
const
|
|
11490
|
-
function
|
|
11488
|
+
t(cf, "extractTrailingUnclosedFence");
|
|
11489
|
+
const df = /^\{\{\s*Component:\s*([\w-]+)\s*\}\}$/, uf = /^ {0,3}\{\{\s*Component:\s*[\w-]+\s*\}\}[ \t]*$/, pf = /^ {0,3}(`{3,}|~{3,})/, hf = /\{\{\s*Component\s*:[^}]*\}\}/g;
|
|
11490
|
+
function ff(e) {
|
|
11491
11491
|
if (!e.includes("{{")) return e;
|
|
11492
11492
|
const r = e.split(`
|
|
11493
11493
|
`), i = [];
|
|
11494
11494
|
let s = !1, u = "";
|
|
11495
11495
|
for (const x of r) {
|
|
11496
|
-
const b = x.match(
|
|
11496
|
+
const b = x.match(pf);
|
|
11497
11497
|
if (b) {
|
|
11498
11498
|
s ? b[1][0] === u && (s = !1) : (s = !0, u = b[1][0]), i.push(x);
|
|
11499
11499
|
continue;
|
|
11500
11500
|
}
|
|
11501
|
-
if (!s &&
|
|
11501
|
+
if (!s && uf.test(x)) {
|
|
11502
11502
|
i.length > 0 && i[i.length - 1].trim() !== "" && i.push(""), i.push(x.trim()), i.push("");
|
|
11503
11503
|
continue;
|
|
11504
11504
|
}
|
|
11505
|
-
const E = s ? x : x.replace(
|
|
11505
|
+
const E = s ? x : x.replace(hf, "");
|
|
11506
11506
|
i.push(E === x ? x : E.trimEnd());
|
|
11507
11507
|
}
|
|
11508
11508
|
let l = i.join(`
|
|
11509
11509
|
`);
|
|
11510
|
-
return s || (l =
|
|
11510
|
+
return s || (l = gf(l)), l;
|
|
11511
11511
|
}
|
|
11512
|
-
t(
|
|
11513
|
-
function
|
|
11512
|
+
t(ff, "promoteSlotTokenLines");
|
|
11513
|
+
function gf(e) {
|
|
11514
11514
|
const r = e.lastIndexOf(`
|
|
11515
11515
|
`), i = e.slice(r + 1), s = i.lastIndexOf("{{");
|
|
11516
11516
|
if (s < 0) return e;
|
|
@@ -11519,38 +11519,38 @@ function ff(e) {
|
|
|
11519
11519
|
const l = "{{Component:";
|
|
11520
11520
|
return (u.length < l.length ? l.startsWith(u) : u.startsWith(l)) ? e.slice(0, r + 1 + s) : e;
|
|
11521
11521
|
}
|
|
11522
|
-
t(
|
|
11523
|
-
function
|
|
11522
|
+
t(gf, "trimTrailingPartialToken");
|
|
11523
|
+
function mf(e) {
|
|
11524
11524
|
if (e.type !== "paragraph") return null;
|
|
11525
11525
|
const r = e.children ?? [];
|
|
11526
11526
|
return r.length === 0 || !r.every((i) => i.type === "text") ? null : r.map((i) => i.value ?? "").join("").trim();
|
|
11527
11527
|
}
|
|
11528
|
-
t(
|
|
11528
|
+
t(mf, "paragraphText");
|
|
11529
11529
|
function dc(e, r) {
|
|
11530
11530
|
if (!(e != null && e.trim())) return [];
|
|
11531
|
-
const [i, s] =
|
|
11531
|
+
const [i, s] = lf(
|
|
11532
11532
|
e,
|
|
11533
|
-
(r == null ? void 0 : r.maxCharsForFull) ??
|
|
11533
|
+
(r == null ? void 0 : r.maxCharsForFull) ?? of
|
|
11534
11534
|
);
|
|
11535
|
-
e = e.replace(cc, ""), e =
|
|
11535
|
+
e = e.replace(cc, ""), e = ff(e);
|
|
11536
11536
|
let u = null;
|
|
11537
|
-
const l =
|
|
11537
|
+
const l = cf(e);
|
|
11538
11538
|
l && (e = l.before, u = l.partialCode);
|
|
11539
|
-
const x =
|
|
11539
|
+
const x = Lu().use(ju).parse(e), b = [];
|
|
11540
11540
|
let E = [], T = !1;
|
|
11541
11541
|
const D = /* @__PURE__ */ t(() => {
|
|
11542
11542
|
if (E.length === 0) return;
|
|
11543
|
-
const k =
|
|
11543
|
+
const k = $u({ type: "root", children: E });
|
|
11544
11544
|
k.trim() && b.push({ type: "markdown", content: k }), E = [];
|
|
11545
11545
|
}, "flushBuffer");
|
|
11546
11546
|
for (const k of x.children) {
|
|
11547
|
-
if (k.type === "html" &&
|
|
11547
|
+
if (k.type === "html" && rf.test(k.value)) {
|
|
11548
11548
|
D(), T = !0;
|
|
11549
11549
|
continue;
|
|
11550
11550
|
}
|
|
11551
|
-
const w =
|
|
11551
|
+
const w = mf(k);
|
|
11552
11552
|
if (w) {
|
|
11553
|
-
const I = w.match(
|
|
11553
|
+
const I = w.match(df);
|
|
11554
11554
|
if (I) {
|
|
11555
11555
|
D(), b.push({ type: "slot", slotId: I[1] });
|
|
11556
11556
|
continue;
|
|
@@ -11566,7 +11566,7 @@ function pc() {
|
|
|
11566
11566
|
return Ut(uc);
|
|
11567
11567
|
}
|
|
11568
11568
|
t(pc, "useLiveTsxMaxCharsForFull");
|
|
11569
|
-
const
|
|
11569
|
+
const bf = /* @__PURE__ */ t(({ maxCharsForFull: e, children: r }) => {
|
|
11570
11570
|
const i = ve(
|
|
11571
11571
|
() => e ?? Ei,
|
|
11572
11572
|
[e]
|
|
@@ -11610,7 +11610,7 @@ const mf = /* @__PURE__ */ t(({ maxCharsForFull: e, children: r }) => {
|
|
|
11610
11610
|
},
|
|
11611
11611
|
"@media (prefers-reduced-motion: reduce)": { animation: "none" }
|
|
11612
11612
|
},
|
|
11613
|
-
children: A ? /* @__PURE__ */ n(Ql, { slotKey: y.slotId, priority:
|
|
11613
|
+
children: A ? /* @__PURE__ */ n(Ql, { slotKey: y.slotId, priority: Fh }) : (
|
|
11614
11614
|
// Legacy direct render: no stage in scope (standalone surface), or a
|
|
11615
11615
|
// part the stage doesn't manage (e.g. filtered out of the positional
|
|
11616
11616
|
// list by the host's showToolCalls rules).
|
|
@@ -11647,43 +11647,43 @@ function fc() {
|
|
|
11647
11647
|
return e[ka] || (e[ka] = {}), e[ka];
|
|
11648
11648
|
}
|
|
11649
11649
|
t(fc, "getRegistryExtensions");
|
|
11650
|
-
function
|
|
11650
|
+
function yf(e, r) {
|
|
11651
11651
|
const i = fc();
|
|
11652
11652
|
i[e] = {
|
|
11653
11653
|
...i[e] ?? {},
|
|
11654
11654
|
...r
|
|
11655
11655
|
};
|
|
11656
11656
|
}
|
|
11657
|
-
t(
|
|
11657
|
+
t(yf, "extendModuleRegistry");
|
|
11658
11658
|
const Sa = Symbol.for("envision:default-scope-extensions");
|
|
11659
11659
|
function gc() {
|
|
11660
11660
|
const e = globalThis;
|
|
11661
11661
|
return e[Sa] || (e[Sa] = {}), e[Sa];
|
|
11662
11662
|
}
|
|
11663
11663
|
t(gc, "getScopeExtensions");
|
|
11664
|
-
function
|
|
11664
|
+
function xf(e) {
|
|
11665
11665
|
const r = gc();
|
|
11666
11666
|
Object.assign(r, e);
|
|
11667
11667
|
}
|
|
11668
|
-
t(
|
|
11668
|
+
t(xf, "extendDefaultScope");
|
|
11669
11669
|
let Ca = null;
|
|
11670
|
-
function
|
|
11670
|
+
function vf() {
|
|
11671
11671
|
return Ca || (Ca = Promise.all([
|
|
11672
11672
|
import("@mui/material"),
|
|
11673
11673
|
import("@mui/icons-material"),
|
|
11674
11674
|
import("recharts")
|
|
11675
11675
|
]).then(([e, r, i]) => ({ MuiMaterial: e, Icons: r, Recharts: i }))), Ca;
|
|
11676
11676
|
}
|
|
11677
|
-
t(
|
|
11678
|
-
async function
|
|
11679
|
-
const { MuiMaterial: e, Icons: r, Recharts: i } = await
|
|
11677
|
+
t(vf, "loadHeavyModules");
|
|
11678
|
+
async function wf() {
|
|
11679
|
+
const { MuiMaterial: e, Icons: r, Recharts: i } = await vf(), s = {
|
|
11680
11680
|
react: { ...Aa, default: Aa },
|
|
11681
11681
|
"@mui/material": { ...e },
|
|
11682
11682
|
"@mui/material/styles": { ...e },
|
|
11683
11683
|
"@mui/icons-material": { ...r },
|
|
11684
11684
|
recharts: { ...i },
|
|
11685
11685
|
"@envision/ui-library": {
|
|
11686
|
-
...
|
|
11686
|
+
...cp,
|
|
11687
11687
|
useEnvironment: ql
|
|
11688
11688
|
}
|
|
11689
11689
|
};
|
|
@@ -11691,7 +11691,7 @@ async function vf() {
|
|
|
11691
11691
|
s[u] = { ...s[u] ?? {}, ...l };
|
|
11692
11692
|
return s;
|
|
11693
11693
|
}
|
|
11694
|
-
t(
|
|
11694
|
+
t(wf, "getModuleRegistry");
|
|
11695
11695
|
function mc() {
|
|
11696
11696
|
return { ...{
|
|
11697
11697
|
React: Aa,
|
|
@@ -11734,7 +11734,7 @@ function Es(e) {
|
|
|
11734
11734
|
return r ^= r >>> 16, r = Math.imul(r, 2246822519) >>> 0, r ^= r >>> 13, r = Math.imul(r, 3266489917) >>> 0, (r >>> 0) / 4294967295;
|
|
11735
11735
|
}
|
|
11736
11736
|
t(Es, "unitFromIndex");
|
|
11737
|
-
const Ea = 15,
|
|
11737
|
+
const Ea = 15, kf = /* @__PURE__ */ t(() => {
|
|
11738
11738
|
const e = zt(), r = e.palette.mode === "dark", i = me(e.palette.text.primary, r ? 0.1 : 0.08), s = me(e.palette.text.primary, r ? 0.22 : 0.18), u = me(e.palette.text.primary, r ? 0.18 : 0.14), l = me(e.palette.text.primary, r ? 0.22 : 0.18), x = me(e.palette.text.primary, r ? 0.13 : 0.1), { bars: b, linePoints: E } = ve(() => {
|
|
11739
11739
|
const T = Array.from({ length: Ea }, (z, F) => 0.18 + Es(F) * 0.78), D = Array.from({ length: Ea }, (z, F) => 0.18 + Es(F + 100) * 0.78), k = 360, w = 160, I = 14, f = 12, v = w - f - 18, g = f + 6, p = v - g, S = (k - I * 2) / Ea, d = S * 0.52, A = T.map((z, F) => {
|
|
11740
11740
|
const N = z * p, K = I + F * S + (S - d) / 2, re = v - N;
|
|
@@ -11872,7 +11872,7 @@ const Ea = 15, wf = /* @__PURE__ */ t(() => {
|
|
|
11872
11872
|
},
|
|
11873
11873
|
children: Array.from({ length: e }, (s, u) => /* @__PURE__ */ n(bc, { showIcon: r, showChangeRow: i }, u))
|
|
11874
11874
|
}
|
|
11875
|
-
), "MetricGroupSkeleton"),
|
|
11875
|
+
), "MetricGroupSkeleton"), Sf = /* @__PURE__ */ t(({ columns: e = 5, rows: r = 10 }) => {
|
|
11876
11876
|
const i = zt(), s = Array.from({ length: e }, (T, D) => D), u = Array.from({ length: r }, (T, D) => D), l = i.palette.mode === "dark" ? me(i.palette.grey[700], 0.55) : me(i.palette.grey[300], 0.6), x = me(i.palette.divider, i.palette.mode === "dark" ? 0.9 : 1), b = me(i.palette.divider, 0.6), E = me(
|
|
11877
11877
|
i.palette.common.white,
|
|
11878
11878
|
i.palette.mode === "dark" ? 0.12 : 0.35
|
|
@@ -11930,7 +11930,7 @@ const Ea = 15, wf = /* @__PURE__ */ t(() => {
|
|
|
11930
11930
|
]
|
|
11931
11931
|
}
|
|
11932
11932
|
) });
|
|
11933
|
-
}, "TableSkeleton"),
|
|
11933
|
+
}, "TableSkeleton"), Cf = /* @__PURE__ */ t(() => /* @__PURE__ */ n(
|
|
11934
11934
|
ln,
|
|
11935
11935
|
{
|
|
11936
11936
|
animation: "wave",
|
|
@@ -11941,11 +11941,11 @@ const Ea = 15, wf = /* @__PURE__ */ t(() => {
|
|
|
11941
11941
|
borderRadius: 2
|
|
11942
11942
|
}
|
|
11943
11943
|
}
|
|
11944
|
-
), "IFrameSkeleton"),
|
|
11944
|
+
), "IFrameSkeleton"), Ef = [
|
|
11945
11945
|
[1e9, "Gb"],
|
|
11946
11946
|
[1e6, "Mb"],
|
|
11947
11947
|
[1e3, "Kb"]
|
|
11948
|
-
],
|
|
11948
|
+
], Tf = /* @__PURE__ */ t(({ progress: e = 0, bytes: r }) => {
|
|
11949
11949
|
const i = zt(), s = i.palette.primary.main, u = i.palette.primary.softBg, l = i.palette.text.secondary, x = 10, b = [
|
|
11950
11950
|
{ x: 0, h: 50, acc: 0 },
|
|
11951
11951
|
{ x: 0, h: 65, acc: 0 },
|
|
@@ -11960,7 +11960,7 @@ const Ea = 15, wf = /* @__PURE__ */ t(() => {
|
|
|
11960
11960
|
w += b[g].h, b[g].acc = w, b[g].x = x + g * E;
|
|
11961
11961
|
function I(g, p = 2, S = !0) {
|
|
11962
11962
|
const d = Math.abs(g);
|
|
11963
|
-
for (const [A, h] of
|
|
11963
|
+
for (const [A, h] of Ef)
|
|
11964
11964
|
if (d >= A)
|
|
11965
11965
|
return (g / A).toFixed(p) + (S ? h : "");
|
|
11966
11966
|
return g.toFixed(0) + "b";
|
|
@@ -12058,7 +12058,7 @@ const Ea = 15, wf = /* @__PURE__ */ t(() => {
|
|
|
12058
12058
|
] }),
|
|
12059
12059
|
/* @__PURE__ */ M(Pe, { sx: { textAlign: "center" }, children: [
|
|
12060
12060
|
/* @__PURE__ */ M(Pe, { direction: "row", gap: 0.5, sx: { display: "inline-flex", alignItems: "center", flexWrap: "nowrap" }, children: [
|
|
12061
|
-
/* @__PURE__ */ n(
|
|
12061
|
+
/* @__PURE__ */ n(lp, { sx: { fontSize: 13, color: s } }),
|
|
12062
12062
|
/* @__PURE__ */ n(
|
|
12063
12063
|
Le,
|
|
12064
12064
|
{
|
|
@@ -12102,8 +12102,8 @@ const Ea = 15, wf = /* @__PURE__ */ t(() => {
|
|
|
12102
12102
|
]
|
|
12103
12103
|
}
|
|
12104
12104
|
);
|
|
12105
|
-
}, "GeneratingVisualization"),
|
|
12106
|
-
function
|
|
12105
|
+
}, "GeneratingVisualization"), If = "<!--liveTsx:invalid-->";
|
|
12106
|
+
function Af(e, r) {
|
|
12107
12107
|
const i = /__scope\[(["'`])([^"'`\]]+)\1\](?:\.([A-Za-z_$][\w$]*))?/g, s = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
12108
12108
|
let l;
|
|
12109
12109
|
for (; (l = i.exec(e)) !== null; ) {
|
|
@@ -12133,27 +12133,27 @@ function If(e, r) {
|
|
|
12133
12133
|
return new Error(x.join(`
|
|
12134
12134
|
`));
|
|
12135
12135
|
}
|
|
12136
|
-
t(
|
|
12137
|
-
function
|
|
12138
|
-
const i =
|
|
12136
|
+
t(Af, "checkScopeBindings");
|
|
12137
|
+
function Mf(e, r) {
|
|
12138
|
+
const i = Af(e, r);
|
|
12139
12139
|
if (i) throw i;
|
|
12140
12140
|
return new Function("__scope", e)(r);
|
|
12141
12141
|
}
|
|
12142
|
-
t(
|
|
12143
|
-
const
|
|
12144
|
-
chart:
|
|
12145
|
-
containtable:
|
|
12142
|
+
t(Mf, "compileToComponent");
|
|
12143
|
+
const zf = /<(chart|containtable|metricgroup|metric|iframe)\b/i, _f = {
|
|
12144
|
+
chart: kf,
|
|
12145
|
+
containtable: Sf,
|
|
12146
12146
|
metricgroup: yc,
|
|
12147
12147
|
metric: bc,
|
|
12148
|
-
iframe:
|
|
12148
|
+
iframe: Cf
|
|
12149
12149
|
};
|
|
12150
|
-
function
|
|
12151
|
-
const r =
|
|
12150
|
+
function Rf(e) {
|
|
12151
|
+
const r = zf.exec(e);
|
|
12152
12152
|
if (!r) return null;
|
|
12153
12153
|
const i = r[1].toLowerCase();
|
|
12154
|
-
return i === "metric" && /metricgroup/i.test(e) ? yc :
|
|
12154
|
+
return i === "metric" && /metricgroup/i.test(e) ? yc : _f[i] ?? null;
|
|
12155
12155
|
}
|
|
12156
|
-
t(
|
|
12156
|
+
t(Rf, "detectSkeleton");
|
|
12157
12157
|
const zi = class zi extends dt.Component {
|
|
12158
12158
|
constructor() {
|
|
12159
12159
|
super(...arguments);
|
|
@@ -12171,11 +12171,11 @@ const zi = class zi extends dt.Component {
|
|
|
12171
12171
|
};
|
|
12172
12172
|
t(zi, "JsxErrorBoundary");
|
|
12173
12173
|
let Oo = zi;
|
|
12174
|
-
const
|
|
12174
|
+
const Df = /* @__PURE__ */ t(({ code: e, partial: r, scope: i, progress: s = 0, bytes: u = 0 }) => {
|
|
12175
12175
|
const [l, x] = G(null);
|
|
12176
12176
|
se(() => {
|
|
12177
12177
|
let d = !1;
|
|
12178
|
-
return
|
|
12178
|
+
return wf().then((A) => {
|
|
12179
12179
|
d || x(A);
|
|
12180
12180
|
}).catch((A) => {
|
|
12181
12181
|
console.error("[LiveJsxBlock] Failed to load module registry:", A);
|
|
@@ -12190,7 +12190,7 @@ const Rf = /* @__PURE__ */ t(({ code: e, partial: r, scope: i, progress: s = 0,
|
|
|
12190
12190
|
}, [l, i]), E = ve(() => {
|
|
12191
12191
|
if (r || !b) return { Component: null, error: null };
|
|
12192
12192
|
try {
|
|
12193
|
-
return { Component:
|
|
12193
|
+
return { Component: Mf(e, b), error: null };
|
|
12194
12194
|
} catch (d) {
|
|
12195
12195
|
return {
|
|
12196
12196
|
Component: null,
|
|
@@ -12237,9 +12237,9 @@ const Rf = /* @__PURE__ */ t(({ code: e, partial: r, scope: i, progress: s = 0,
|
|
|
12237
12237
|
F && (F.style.height = "", F.style.transition = ""), f("final");
|
|
12238
12238
|
}, 1500);
|
|
12239
12239
|
return () => window.clearTimeout(z);
|
|
12240
|
-
}, [I]), e.includes(
|
|
12240
|
+
}, [I]), e.includes(If)) return null;
|
|
12241
12241
|
if (w && E.error) return T(E.error, !1);
|
|
12242
|
-
const g =
|
|
12242
|
+
const g = Rf(e), p = g ? /* @__PURE__ */ n(g, {}) : /* @__PURE__ */ n(Tf, { progress: s, bytes: u }), S = /* @__PURE__ */ M(sp, { theme: D, children: [
|
|
12243
12243
|
/* @__PURE__ */ n(hd, {}),
|
|
12244
12244
|
/* @__PURE__ */ n(Oo, { fallback: T, children: /* @__PURE__ */ n(ke, { "data-live-jsx-content": "", children: E.Component ? /* @__PURE__ */ n(E.Component, {}) : /* @__PURE__ */ n(Wt, { text: `\`\`\`tsx
|
|
12245
12245
|
${e}\`\`\``, sessionId: "" }) }) })
|
|
@@ -12326,7 +12326,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12326
12326
|
radius: 10,
|
|
12327
12327
|
radiusSm: 6,
|
|
12328
12328
|
radiusLg: 12
|
|
12329
|
-
},
|
|
12329
|
+
}, Of = {
|
|
12330
12330
|
palette: {
|
|
12331
12331
|
mode: "dark",
|
|
12332
12332
|
primary: {
|
|
@@ -12499,7 +12499,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12499
12499
|
}
|
|
12500
12500
|
}
|
|
12501
12501
|
}
|
|
12502
|
-
},
|
|
12502
|
+
}, Pf = xd(Of), Ff = [
|
|
12503
12503
|
"#e0a458",
|
|
12504
12504
|
// amber (primary accent)
|
|
12505
12505
|
"#7d9bd1",
|
|
@@ -12510,7 +12510,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12510
12510
|
// green
|
|
12511
12511
|
"#d97a7a"
|
|
12512
12512
|
// coral
|
|
12513
|
-
],
|
|
12513
|
+
], Lf = /* @__PURE__ */ t(({
|
|
12514
12514
|
data: e,
|
|
12515
12515
|
color: r,
|
|
12516
12516
|
width: i = 100,
|
|
@@ -12558,20 +12558,20 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12558
12558
|
e,
|
|
12559
12559
|
/* @__PURE__ */ M(R, { sx: { display: "flex", flex: 1, minHeight: 0, overflow: "hidden" }, children: [
|
|
12560
12560
|
r,
|
|
12561
|
-
/* @__PURE__ */ n(R, { sx: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: i ?? /* @__PURE__ */ n(
|
|
12561
|
+
/* @__PURE__ */ n(R, { sx: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: i ?? /* @__PURE__ */ n(Qu, {}) })
|
|
12562
12562
|
] })
|
|
12563
12563
|
]
|
|
12564
12564
|
}
|
|
12565
12565
|
), "AppShellV2");
|
|
12566
12566
|
qa.displayName = "AppShellV2";
|
|
12567
|
-
const
|
|
12567
|
+
const jf = 48, Ka = /* @__PURE__ */ t(({ views: e, logo: r, footer: i }) => {
|
|
12568
12568
|
const { pathname: s } = rl();
|
|
12569
12569
|
return /* @__PURE__ */ M(
|
|
12570
12570
|
R,
|
|
12571
12571
|
{
|
|
12572
12572
|
component: "nav",
|
|
12573
12573
|
sx: /* @__PURE__ */ t((u) => ({
|
|
12574
|
-
width:
|
|
12574
|
+
width: jf,
|
|
12575
12575
|
flexShrink: 0,
|
|
12576
12576
|
backgroundColor: u.palette.background.paper,
|
|
12577
12577
|
borderRight: `1px solid ${u.palette.divider}`,
|
|
@@ -12723,7 +12723,7 @@ const Ga = 48, Ja = /* @__PURE__ */ t(({
|
|
|
12723
12723
|
}
|
|
12724
12724
|
), "AppBarV2");
|
|
12725
12725
|
Ja.displayName = "AppBarV2";
|
|
12726
|
-
const
|
|
12726
|
+
const $f = 300, xc = [
|
|
12727
12727
|
{
|
|
12728
12728
|
id: "dashboards",
|
|
12729
12729
|
label: "Dashboards",
|
|
@@ -12740,7 +12740,7 @@ const jf = 300, xc = [
|
|
|
12740
12740
|
open: e,
|
|
12741
12741
|
onClose: r,
|
|
12742
12742
|
navItems: i = xc,
|
|
12743
|
-
width: s =
|
|
12743
|
+
width: s = $f,
|
|
12744
12744
|
logo: u,
|
|
12745
12745
|
productName: l = "Agentic Explorer",
|
|
12746
12746
|
userProfile: x,
|
|
@@ -12785,7 +12785,7 @@ const jf = 300, xc = [
|
|
|
12785
12785
|
[i, D, T, r]
|
|
12786
12786
|
);
|
|
12787
12787
|
return /* @__PURE__ */ M(
|
|
12788
|
-
|
|
12788
|
+
tp,
|
|
12789
12789
|
{
|
|
12790
12790
|
anchor: "left",
|
|
12791
12791
|
open: e,
|
|
@@ -12896,11 +12896,11 @@ const jf = 300, xc = [
|
|
|
12896
12896
|
);
|
|
12897
12897
|
}, "MobileDrawerV2");
|
|
12898
12898
|
Ya.displayName = "MobileDrawerV2";
|
|
12899
|
-
function
|
|
12899
|
+
function Bf() {
|
|
12900
12900
|
const e = pt(), r = ma(e.breakpoints.down("sm")), i = ma(e.breakpoints.between("sm", "lg")), s = ma(e.breakpoints.up("lg"));
|
|
12901
12901
|
return { mobile: r, tablet: i, desktop: s };
|
|
12902
12902
|
}
|
|
12903
|
-
t(
|
|
12903
|
+
t(Bf, "useResponsiveLayout");
|
|
12904
12904
|
const Qa = /* @__PURE__ */ t(({
|
|
12905
12905
|
title: e,
|
|
12906
12906
|
subtitle: r,
|
|
@@ -13004,7 +13004,7 @@ const Qa = /* @__PURE__ */ t(({
|
|
|
13004
13004
|
);
|
|
13005
13005
|
}, "AiChatV2Pane");
|
|
13006
13006
|
Qa.displayName = "AiChatV2Pane";
|
|
13007
|
-
const
|
|
13007
|
+
const Wf = /* @__PURE__ */ t(({
|
|
13008
13008
|
text: e,
|
|
13009
13009
|
charsPerSecond: r = 20
|
|
13010
13010
|
}) => {
|
|
@@ -13020,7 +13020,7 @@ const Bf = /* @__PURE__ */ t(({
|
|
|
13020
13020
|
}, l);
|
|
13021
13021
|
return () => window.clearInterval(b);
|
|
13022
13022
|
}, [e, r]), /* @__PURE__ */ n(ie, { children: i });
|
|
13023
|
-
}, "TypewriterText"),
|
|
13023
|
+
}, "TypewriterText"), Nf = "15vw", Xa = /* @__PURE__ */ t(({
|
|
13024
13024
|
groups: e,
|
|
13025
13025
|
newActiveSession: r,
|
|
13026
13026
|
activeId: i,
|
|
@@ -13077,7 +13077,7 @@ const Bf = /* @__PURE__ */ t(({
|
|
|
13077
13077
|
{
|
|
13078
13078
|
component: "aside",
|
|
13079
13079
|
sx: /* @__PURE__ */ t((H) => ({
|
|
13080
|
-
maxWidth:
|
|
13080
|
+
maxWidth: Nf,
|
|
13081
13081
|
flexShrink: 0,
|
|
13082
13082
|
backgroundColor: H.palette.background.paper,
|
|
13083
13083
|
borderRight: `1px solid ${H.palette.divider}`,
|
|
@@ -13264,7 +13264,7 @@ const Bf = /* @__PURE__ */ t(({
|
|
|
13264
13264
|
// left so wrapped titles read cleanly.
|
|
13265
13265
|
textAlign: "left"
|
|
13266
13266
|
}), "sx"),
|
|
13267
|
-
children: te.kind == "typewritter" ? /* @__PURE__ */ n(
|
|
13267
|
+
children: te.kind == "typewritter" ? /* @__PURE__ */ n(Wf, { text: te.title, charsPerSecond: 30 }) : te.title
|
|
13268
13268
|
}
|
|
13269
13269
|
)
|
|
13270
13270
|
] }),
|
|
@@ -13409,14 +13409,14 @@ const Bf = /* @__PURE__ */ t(({
|
|
|
13409
13409
|
}
|
|
13410
13410
|
},
|
|
13411
13411
|
children: [
|
|
13412
|
-
/* @__PURE__ */ n(
|
|
13413
|
-
/* @__PURE__ */ n(
|
|
13412
|
+
/* @__PURE__ */ n(Xu, { sx: /* @__PURE__ */ t((H) => ({ fontSize: 14, color: H.palette.text.primary }), "sx"), children: "Excluir conversa?" }),
|
|
13413
|
+
/* @__PURE__ */ n(Zu, { children: /* @__PURE__ */ M(ne, { sx: /* @__PURE__ */ t((H) => ({ fontSize: 12, color: H.palette.text.secondary }), "sx"), children: [
|
|
13414
13414
|
"Tem certeza que deseja excluir",
|
|
13415
13415
|
" ",
|
|
13416
13416
|
/* @__PURE__ */ n(R, { component: "strong", sx: /* @__PURE__ */ t((H) => ({ color: H.palette.text.primary }), "sx"), children: F == null ? void 0 : F.title }),
|
|
13417
13417
|
"? Esta ação não pode ser desfeita."
|
|
13418
13418
|
] }) }),
|
|
13419
|
-
/* @__PURE__ */ M(
|
|
13419
|
+
/* @__PURE__ */ M(ep, { children: [
|
|
13420
13420
|
/* @__PURE__ */ n(
|
|
13421
13421
|
Xt,
|
|
13422
13422
|
{
|
|
@@ -13447,13 +13447,13 @@ const Bf = /* @__PURE__ */ t(({
|
|
|
13447
13447
|
);
|
|
13448
13448
|
}, "ChatsHistoryV2");
|
|
13449
13449
|
Xa.displayName = "ChatsHistoryV2";
|
|
13450
|
-
const
|
|
13451
|
-
function
|
|
13450
|
+
const Hf = "@keyframes v2tspin{to{transform:rotate(360deg)}}";
|
|
13451
|
+
function Vf(e) {
|
|
13452
13452
|
const r = String(e).toLowerCase();
|
|
13453
13453
|
return r === "completed" ? "completed" : r === "inprogress" || r === "in_progress" ? "in_progress" : r === "failed" ? "failed" : "pending";
|
|
13454
13454
|
}
|
|
13455
|
-
t(
|
|
13456
|
-
function
|
|
13455
|
+
t(Vf, "normalizeStatus");
|
|
13456
|
+
function Uf({ status: e }) {
|
|
13457
13457
|
return e === "completed" ? /* @__PURE__ */ n(
|
|
13458
13458
|
R,
|
|
13459
13459
|
{
|
|
@@ -13518,7 +13518,7 @@ function Vf({ status: e }) {
|
|
|
13518
13518
|
}
|
|
13519
13519
|
);
|
|
13520
13520
|
}
|
|
13521
|
-
t(
|
|
13521
|
+
t(Uf, "TaskDot");
|
|
13522
13522
|
const Jn = /* @__PURE__ */ t(({ todoList: e, dense: r }) => {
|
|
13523
13523
|
const i = ae(null);
|
|
13524
13524
|
if (se(() => {
|
|
@@ -13527,9 +13527,9 @@ const Jn = /* @__PURE__ */ t(({ todoList: e, dense: r }) => {
|
|
|
13527
13527
|
}, [e == null ? void 0 : e.currentWorkingItemKey]), !e || !e.items || e.items.length === 0) return null;
|
|
13528
13528
|
const s = e.currentWorkingItemKey;
|
|
13529
13529
|
return /* @__PURE__ */ M(ie, { children: [
|
|
13530
|
-
/* @__PURE__ */ n("style", { children:
|
|
13530
|
+
/* @__PURE__ */ n("style", { children: Hf }),
|
|
13531
13531
|
/* @__PURE__ */ n(R, { sx: { display: "flex", flexDirection: "column", overflow: "scroll" }, children: e.items.map((u) => {
|
|
13532
|
-
const l =
|
|
13532
|
+
const l = Vf(u.status), x = u.key === s;
|
|
13533
13533
|
return /* @__PURE__ */ M(
|
|
13534
13534
|
R,
|
|
13535
13535
|
{
|
|
@@ -13546,7 +13546,7 @@ const Jn = /* @__PURE__ */ t(({ todoList: e, dense: r }) => {
|
|
|
13546
13546
|
mb: 0.25
|
|
13547
13547
|
}), "sx"),
|
|
13548
13548
|
children: [
|
|
13549
|
-
/* @__PURE__ */ n(
|
|
13549
|
+
/* @__PURE__ */ n(Uf, { status: l }),
|
|
13550
13550
|
/* @__PURE__ */ M(R, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
13551
13551
|
/* @__PURE__ */ n(
|
|
13552
13552
|
ne,
|
|
@@ -13596,12 +13596,12 @@ const Jn = /* @__PURE__ */ t(({ todoList: e, dense: r }) => {
|
|
|
13596
13596
|
] });
|
|
13597
13597
|
}, "TaskListV2");
|
|
13598
13598
|
Jn.displayName = "TaskListV2";
|
|
13599
|
-
const
|
|
13599
|
+
const qf = `
|
|
13600
13600
|
@keyframes v2sascan {
|
|
13601
13601
|
0% { transform: translateX(-100%); }
|
|
13602
13602
|
100% { transform: translateX(100%); }
|
|
13603
13603
|
}`;
|
|
13604
|
-
function
|
|
13604
|
+
function Kf(e) {
|
|
13605
13605
|
if (!e) return null;
|
|
13606
13606
|
try {
|
|
13607
13607
|
return JSON.parse(e);
|
|
@@ -13609,7 +13609,7 @@ function qf(e) {
|
|
|
13609
13609
|
return null;
|
|
13610
13610
|
}
|
|
13611
13611
|
}
|
|
13612
|
-
t(
|
|
13612
|
+
t(Kf, "tryParse");
|
|
13613
13613
|
const Po = /* @__PURE__ */ t(({
|
|
13614
13614
|
subAgent: e,
|
|
13615
13615
|
defaultLevel: r = 1,
|
|
@@ -13618,7 +13618,7 @@ const Po = /* @__PURE__ */ t(({
|
|
|
13618
13618
|
const [s, u] = G(r), [l, x] = G(null), b = be((I) => I.lastToolEvent), E = !e.completed;
|
|
13619
13619
|
se(() => {
|
|
13620
13620
|
if ((b == null ? void 0 : b.eventName) === "todolistUpdated" && b.subAgentId === e.id) {
|
|
13621
|
-
const I =
|
|
13621
|
+
const I = Kf(b.eventData);
|
|
13622
13622
|
I && x(I);
|
|
13623
13623
|
}
|
|
13624
13624
|
}, [b, e.id]);
|
|
@@ -13640,7 +13640,7 @@ const Po = /* @__PURE__ */ t(({
|
|
|
13640
13640
|
transition: "border-color .15s"
|
|
13641
13641
|
}), "sx"),
|
|
13642
13642
|
children: [
|
|
13643
|
-
/* @__PURE__ */ n("style", { children:
|
|
13643
|
+
/* @__PURE__ */ n("style", { children: qf }),
|
|
13644
13644
|
E && /* @__PURE__ */ n(
|
|
13645
13645
|
R,
|
|
13646
13646
|
{
|
|
@@ -13791,10 +13791,10 @@ const Po = /* @__PURE__ */ t(({
|
|
|
13791
13791
|
}, "SubAgentBoxV2");
|
|
13792
13792
|
Po.displayName = "SubAgentBoxV2";
|
|
13793
13793
|
const Ts = "@keyframes v2aaspin{to{transform:rotate(360deg)}}", Is = "@keyframes v2aafade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}", As = "@keyframes v2aapulse{0%,100%{opacity:.4}50%{opacity:1}}";
|
|
13794
|
-
function
|
|
13794
|
+
function Gf(e) {
|
|
13795
13795
|
return e == null || !Number.isFinite(e) || e < 0 ? null : e < 1e3 ? `${Math.round(e)}ms` : `${(e / 1e3).toFixed(e < 1e4 ? 1 : 0)}s`;
|
|
13796
13796
|
}
|
|
13797
|
-
t(
|
|
13797
|
+
t(Gf, "formatDuration");
|
|
13798
13798
|
function yo(e) {
|
|
13799
13799
|
const r = e.trim();
|
|
13800
13800
|
if (!r) return e;
|
|
@@ -13808,14 +13808,14 @@ function yo(e) {
|
|
|
13808
13808
|
}
|
|
13809
13809
|
}
|
|
13810
13810
|
t(yo, "prettyJsonish");
|
|
13811
|
-
const Ta = 500,
|
|
13812
|
-
function
|
|
13811
|
+
const Ta = 500, Jf = 12, Yf = 4, Ms = 8;
|
|
13812
|
+
function Qf(e) {
|
|
13813
13813
|
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}Mb` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}kb` : `${e}b`;
|
|
13814
13814
|
}
|
|
13815
|
-
t(
|
|
13816
|
-
function
|
|
13815
|
+
t(Qf, "compactBytes");
|
|
13816
|
+
function Xf({ bytes: e }) {
|
|
13817
13817
|
if (e <= 0) return null;
|
|
13818
|
-
const r = Math.floor(e / Ta), i = e % Ta / Ta, s = Math.min(
|
|
13818
|
+
const r = Math.floor(e / Ta), i = e % Ta / Ta, s = Math.min(Jf, r + (i > 0 ? 1 : 0)) || 1;
|
|
13819
13819
|
return /* @__PURE__ */ n(
|
|
13820
13820
|
R,
|
|
13821
13821
|
{
|
|
@@ -13833,7 +13833,7 @@ function Qf({ bytes: e }) {
|
|
|
13833
13833
|
{
|
|
13834
13834
|
sx: /* @__PURE__ */ t((T) => ({
|
|
13835
13835
|
position: "relative",
|
|
13836
|
-
width: `${
|
|
13836
|
+
width: `${Yf}px`,
|
|
13837
13837
|
height: `${Ms}px`,
|
|
13838
13838
|
borderRadius: "1px",
|
|
13839
13839
|
border: `1px solid ${T.palette.border.soft}`,
|
|
@@ -13864,8 +13864,8 @@ function Qf({ bytes: e }) {
|
|
|
13864
13864
|
}
|
|
13865
13865
|
);
|
|
13866
13866
|
}
|
|
13867
|
-
t(
|
|
13868
|
-
function
|
|
13867
|
+
t(Xf, "V2ByteBuckets");
|
|
13868
|
+
function Zf({ name: e, status: r }) {
|
|
13869
13869
|
const i = Ba[e] ?? Ba.generic, s = r === "running", u = r === "done";
|
|
13870
13870
|
return /* @__PURE__ */ M(
|
|
13871
13871
|
R,
|
|
@@ -13910,11 +13910,11 @@ function Xf({ name: e, status: r }) {
|
|
|
13910
13910
|
}
|
|
13911
13911
|
);
|
|
13912
13912
|
}
|
|
13913
|
-
t(
|
|
13914
|
-
function
|
|
13913
|
+
t(Zf, "ToolGlyph");
|
|
13914
|
+
function e0({ part: e, isLast: r, compact: i = !0 }) {
|
|
13915
13915
|
const [s, u] = G(!1), l = e.functionDetails;
|
|
13916
13916
|
if (!l) return null;
|
|
13917
|
-
const x = l.start ? new Date(l.start).getTime() : void 0, b = l.end ? new Date(l.end).getTime() : void 0, E = l.status === "Done" ? "done" : l.status === "Executing" || l.status === "Composing" ? "running" : "pending", T = E === "done" && x && b ?
|
|
13917
|
+
const x = l.start ? new Date(l.start).getTime() : void 0, b = l.end ? new Date(l.end).getTime() : void 0, E = l.status === "Done" ? "done" : l.status === "Executing" || l.status === "Composing" ? "running" : "pending", T = E === "done" && x && b ? Gf(b - x) : null, D = E === "running", k = l.status === "Composing", w = ve(() => {
|
|
13918
13918
|
if (l.text) return yo(l.text);
|
|
13919
13919
|
if (l.args == null) return "";
|
|
13920
13920
|
if (typeof l.args == "string") return yo(l.args);
|
|
@@ -13979,7 +13979,7 @@ function Zf({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
13979
13979
|
"&:hover": { backgroundColor: p.palette.surface.raised }
|
|
13980
13980
|
}), "sx"),
|
|
13981
13981
|
children: /* @__PURE__ */ M(R, { sx: { display: "flex", alignItems: "center", gap: 1.25 }, children: [
|
|
13982
|
-
/* @__PURE__ */ n(
|
|
13982
|
+
/* @__PURE__ */ n(Zf, { name: l.name, status: E }),
|
|
13983
13983
|
/* @__PURE__ */ M(R, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
13984
13984
|
/* @__PURE__ */ M(R, { sx: { display: "flex", alignItems: "baseline", gap: 1, flexWrap: "wrap" }, children: [
|
|
13985
13985
|
/* @__PURE__ */ n(
|
|
@@ -13997,8 +13997,8 @@ function Zf({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
13997
13997
|
),
|
|
13998
13998
|
/* @__PURE__ */ n(R, { sx: { flex: 1 } }),
|
|
13999
13999
|
k && g > 0 && /* @__PURE__ */ M(R, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: [
|
|
14000
|
-
/* @__PURE__ */ n(
|
|
14001
|
-
/* @__PURE__ */ n(ne, { sx: /* @__PURE__ */ t((p) => ({ fontSize: 10, color: p.palette.text.disabled, fontFamily: p.typography.fontFamilyMono }), "sx"), children:
|
|
14000
|
+
/* @__PURE__ */ n(Xf, { bytes: g }),
|
|
14001
|
+
/* @__PURE__ */ n(ne, { sx: /* @__PURE__ */ t((p) => ({ fontSize: 10, color: p.palette.text.disabled, fontFamily: p.typography.fontFamilyMono }), "sx"), children: Qf(g) })
|
|
14002
14002
|
] }),
|
|
14003
14003
|
T && /* @__PURE__ */ n(ne, { sx: /* @__PURE__ */ t((p) => ({ fontSize: 10.5, color: p.palette.text.disabled, fontFamily: p.typography.fontFamilyMono }), "sx"), children: T }),
|
|
14004
14004
|
D && !k && /* @__PURE__ */ n(
|
|
@@ -14064,8 +14064,8 @@ function Zf({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14064
14064
|
}
|
|
14065
14065
|
);
|
|
14066
14066
|
}
|
|
14067
|
-
t(
|
|
14068
|
-
function
|
|
14067
|
+
t(e0, "ToolRow");
|
|
14068
|
+
function t0({ part: e, isStreaming: r }) {
|
|
14069
14069
|
var s, u;
|
|
14070
14070
|
const i = (u = (s = e.thoughtDetails) == null ? void 0 : s.text) == null ? void 0 : u.trim();
|
|
14071
14071
|
return i ? /* @__PURE__ */ M(R, { sx: { position: "relative", px: 1.75, py: 0.75 }, children: [
|
|
@@ -14114,19 +14114,19 @@ function e0({ part: e, isStreaming: r }) {
|
|
|
14114
14114
|
)
|
|
14115
14115
|
] }) : null;
|
|
14116
14116
|
}
|
|
14117
|
-
t(
|
|
14117
|
+
t(t0, "ReasoningRow");
|
|
14118
14118
|
function Un(e) {
|
|
14119
14119
|
return (e == null ? void 0 : e.interactionId) ?? null;
|
|
14120
14120
|
}
|
|
14121
14121
|
t(Un, "getInteractionId");
|
|
14122
|
-
function
|
|
14122
|
+
function n0(e) {
|
|
14123
14123
|
if (!e) return "";
|
|
14124
14124
|
const r = e instanceof Date ? e : new Date(e);
|
|
14125
14125
|
return Number.isNaN(r.getTime()) ? "" : r.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit" });
|
|
14126
14126
|
}
|
|
14127
|
-
t(
|
|
14127
|
+
t(n0, "formatHourMinute");
|
|
14128
14128
|
const zs = 200;
|
|
14129
|
-
function
|
|
14129
|
+
function r0({
|
|
14130
14130
|
turns: e,
|
|
14131
14131
|
selectedKey: r,
|
|
14132
14132
|
onSelect: i
|
|
@@ -14273,7 +14273,7 @@ function n0({
|
|
|
14273
14273
|
)
|
|
14274
14274
|
] });
|
|
14275
14275
|
}
|
|
14276
|
-
t(
|
|
14276
|
+
t(r0, "TurnPillStrip");
|
|
14277
14277
|
const Fo = /* @__PURE__ */ t(({
|
|
14278
14278
|
hideReasoning: e,
|
|
14279
14279
|
maxHeight: r = 420,
|
|
@@ -14300,7 +14300,7 @@ const Fo = /* @__PURE__ */ t(({
|
|
|
14300
14300
|
id: h,
|
|
14301
14301
|
interaction: d,
|
|
14302
14302
|
number: A + 1,
|
|
14303
|
-
timeLabel:
|
|
14303
|
+
timeLabel: n0(d.created)
|
|
14304
14304
|
});
|
|
14305
14305
|
}), S.reverse();
|
|
14306
14306
|
}, [b, l]), [D, k] = G(null), w = ae(E);
|
|
@@ -14351,7 +14351,7 @@ const Fo = /* @__PURE__ */ t(({
|
|
|
14351
14351
|
p.scrollHeight - p.scrollTop - p.clientHeight < 120 && g.scrollIntoView({ block: "end", behavior: "smooth" });
|
|
14352
14352
|
}, [I.length, s]);
|
|
14353
14353
|
const y = l && T.length > 0 && !E ? /* @__PURE__ */ n(
|
|
14354
|
-
|
|
14354
|
+
r0,
|
|
14355
14355
|
{
|
|
14356
14356
|
turns: T,
|
|
14357
14357
|
selectedKey: D,
|
|
@@ -14370,20 +14370,20 @@ const Fo = /* @__PURE__ */ t(({
|
|
|
14370
14370
|
y,
|
|
14371
14371
|
/* @__PURE__ */ M(R, { sx: { py: 1, minHeight: "410px", maxHeight: r, overflow: r ? "auto" : "visible" }, children: [
|
|
14372
14372
|
I.map((g, p) => g.eventType === "thought" ? e ? null : /* @__PURE__ */ n(
|
|
14373
|
-
|
|
14373
|
+
t0,
|
|
14374
14374
|
{
|
|
14375
14375
|
part: g,
|
|
14376
14376
|
isStreaming: p === v && E && g.partial
|
|
14377
14377
|
},
|
|
14378
14378
|
g.id
|
|
14379
|
-
) : g.eventType === "function_call" || g.eventType === "partial_function_call" || g.eventType === "function_response" ? /* @__PURE__ */ n(
|
|
14379
|
+
) : g.eventType === "function_call" || g.eventType === "partial_function_call" || g.eventType === "function_response" ? /* @__PURE__ */ n(e0, { part: g, isLast: p === v, compact: u }, g.id) : null),
|
|
14380
14380
|
/* @__PURE__ */ n(R, { ref: f, "aria-hidden": !0, sx: { height: 0 } })
|
|
14381
14381
|
] })
|
|
14382
14382
|
] });
|
|
14383
14383
|
}, "AgentActivityV2");
|
|
14384
14384
|
Fo.displayName = "AgentActivityV2";
|
|
14385
14385
|
const Za = '"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
14386
|
-
function
|
|
14386
|
+
function o0({ info: e }) {
|
|
14387
14387
|
const r = pt(), i = Math.round(e.ratio * 100), s = e.ratio >= e.threshold, u = /* @__PURE__ */ M(R, { sx: { fontFamily: Za, fontSize: 11, lineHeight: 1.5 }, children: [
|
|
14388
14388
|
/* @__PURE__ */ n(R, { sx: { fontFamily: "inherit", fontWeight: 500, mb: 0.25 }, children: "Tamanho do Contexto" }),
|
|
14389
14389
|
/* @__PURE__ */ n(R, { children: `Uso atual: ${i}%` }),
|
|
@@ -14463,8 +14463,8 @@ function r0({ info: e }) {
|
|
|
14463
14463
|
}
|
|
14464
14464
|
) });
|
|
14465
14465
|
}
|
|
14466
|
-
t(
|
|
14467
|
-
const
|
|
14466
|
+
t(o0, "SessionUsageBadge");
|
|
14467
|
+
const a0 = /* @__PURE__ */ t(({
|
|
14468
14468
|
compact: e = !1,
|
|
14469
14469
|
pauseControl: r
|
|
14470
14470
|
}) => {
|
|
@@ -14496,7 +14496,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14496
14496
|
return d > A ? l.palette.warning.dark : d > A * 0.8 ? l.palette.secondary.light : d > A * 0.6 ? l.palette.secondary.dark : d > A * 0.4 ? l.palette.primary.dark : d > A * 0.2 ? l.palette.text.primary : l.palette.text.secondary;
|
|
14497
14497
|
}, "getPerSecondColor"), g = Ee((d) => {
|
|
14498
14498
|
const A = 900 - Math.min(Math.round(1e3 * Math.max(d, 0.2) / 100), 9) * 100 + 100;
|
|
14499
|
-
return
|
|
14499
|
+
return ip[A];
|
|
14500
14500
|
}, [x]), p = e ? { fontFamily: Za, fontSize: "0.7rem" } : { fontSize: "0.7rem" }, S = /* @__PURE__ */ t(() => {
|
|
14501
14501
|
if (!r) return null;
|
|
14502
14502
|
const { turnOpen: d, suspended: A, suspending: h, onPause: z, onCancel: F } = r, N = A, K = d || A;
|
|
@@ -14546,7 +14546,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14546
14546
|
),
|
|
14547
14547
|
/* @__PURE__ */ n(R, { sx: { width: "5px" } }),
|
|
14548
14548
|
!e && /* @__PURE__ */ M(ie, { children: [
|
|
14549
|
-
/* @__PURE__ */ n(
|
|
14549
|
+
/* @__PURE__ */ n(np, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
14550
14550
|
/* @__PURE__ */ n(
|
|
14551
14551
|
ne,
|
|
14552
14552
|
{
|
|
@@ -14557,7 +14557,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14557
14557
|
),
|
|
14558
14558
|
/* @__PURE__ */ n(R, { sx: { width: "5px" } })
|
|
14559
14559
|
] }),
|
|
14560
|
-
/* @__PURE__ */ n(
|
|
14560
|
+
/* @__PURE__ */ n(rp, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
14561
14561
|
/* @__PURE__ */ n(
|
|
14562
14562
|
ne,
|
|
14563
14563
|
{
|
|
@@ -14569,7 +14569,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14569
14569
|
/* @__PURE__ */ n(R, { sx: { width: "5px" } }),
|
|
14570
14570
|
k && /* @__PURE__ */ M(ie, { children: [
|
|
14571
14571
|
/* @__PURE__ */ n(R, { sx: { width: "5px" } }),
|
|
14572
|
-
/* @__PURE__ */ n(
|
|
14572
|
+
/* @__PURE__ */ n(op, { sx: { fontSize: "0.8rem", color: "text.primary" } }),
|
|
14573
14573
|
/* @__PURE__ */ n(
|
|
14574
14574
|
ne,
|
|
14575
14575
|
{
|
|
@@ -14581,7 +14581,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14581
14581
|
] }),
|
|
14582
14582
|
I && /* @__PURE__ */ M(ie, { children: [
|
|
14583
14583
|
/* @__PURE__ */ n(R, { sx: { width: "5px" } }),
|
|
14584
|
-
/* @__PURE__ */ n(
|
|
14584
|
+
/* @__PURE__ */ n(ap, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
14585
14585
|
/* @__PURE__ */ n(
|
|
14586
14586
|
ne,
|
|
14587
14587
|
{
|
|
@@ -14600,7 +14600,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14600
14600
|
// exposes the full numbers via tooltip.
|
|
14601
14601
|
/* @__PURE__ */ M(ie, { children: [
|
|
14602
14602
|
/* @__PURE__ */ n(R, { sx: { flex: 1 } }),
|
|
14603
|
-
/* @__PURE__ */ n(
|
|
14603
|
+
/* @__PURE__ */ n(o0, { info: x })
|
|
14604
14604
|
] })
|
|
14605
14605
|
) : /* @__PURE__ */ n(
|
|
14606
14606
|
gi,
|
|
@@ -14619,7 +14619,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14619
14619
|
] })
|
|
14620
14620
|
}
|
|
14621
14621
|
);
|
|
14622
|
-
}, "StreamStatistics"),
|
|
14622
|
+
}, "StreamStatistics"), i0 = {
|
|
14623
14623
|
sql: { id: "sql", label: "Banco de dados", Icon: ui },
|
|
14624
14624
|
files: { id: "files", label: "Arquivos", Icon: bl },
|
|
14625
14625
|
shell: { id: "shell", label: "Terminal", Icon: yl },
|
|
@@ -14702,7 +14702,7 @@ const o0 = /* @__PURE__ */ t(({
|
|
|
14702
14702
|
script_code_rollback: "scripts",
|
|
14703
14703
|
script_remove: "scripts"
|
|
14704
14704
|
};
|
|
14705
|
-
function
|
|
14705
|
+
function s0(e) {
|
|
14706
14706
|
if (!e) return "other";
|
|
14707
14707
|
const r = _s[e];
|
|
14708
14708
|
if (r) return r;
|
|
@@ -14713,8 +14713,8 @@ function i0(e) {
|
|
|
14713
14713
|
}
|
|
14714
14714
|
return "other";
|
|
14715
14715
|
}
|
|
14716
|
-
t(
|
|
14717
|
-
const Rs = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}",
|
|
14716
|
+
t(s0, "getToolCategory");
|
|
14717
|
+
const Rs = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", l0 = "@keyframes v2rpspin{to{transform:rotate(360deg)}}", c0 = "10%", d0 = 45, Ds = /* @__PURE__ */ t(({ title: e, children: r }) => /* @__PURE__ */ M(
|
|
14718
14718
|
R,
|
|
14719
14719
|
{
|
|
14720
14720
|
sx: /* @__PURE__ */ t((i) => ({
|
|
@@ -14746,12 +14746,12 @@ const Rs = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", s0 = "@key
|
|
|
14746
14746
|
return ((i = r.statistics) == null ? void 0 : i.elapsed) ?? 0;
|
|
14747
14747
|
});
|
|
14748
14748
|
return /* @__PURE__ */ M(ne, { sx: /* @__PURE__ */ t((r) => ({ fontSize: 10.5, color: r.palette.text.secondary, fontFamily: r.typography.fontFamilyMono }), "sx"), children: [
|
|
14749
|
-
|
|
14749
|
+
b0(e * 1e3),
|
|
14750
14750
|
" decorridos"
|
|
14751
14751
|
] });
|
|
14752
14752
|
});
|
|
14753
14753
|
vc.displayName = "ElapsedClock";
|
|
14754
|
-
const
|
|
14754
|
+
const u0 = {
|
|
14755
14755
|
tooltip: {
|
|
14756
14756
|
sx: /* @__PURE__ */ t((e) => ({
|
|
14757
14757
|
backgroundColor: e.palette.surface.raised,
|
|
@@ -14763,22 +14763,22 @@ const d0 = {
|
|
|
14763
14763
|
}), "sx")
|
|
14764
14764
|
}
|
|
14765
14765
|
};
|
|
14766
|
-
function
|
|
14766
|
+
function p0(e) {
|
|
14767
14767
|
var i;
|
|
14768
14768
|
const r = (i = e.functionDetails) == null ? void 0 : i.status;
|
|
14769
14769
|
return r === "Done" ? "response" : r === "Composing" ? "partial" : "call";
|
|
14770
14770
|
}
|
|
14771
|
-
t(
|
|
14772
|
-
function
|
|
14771
|
+
t(p0, "friendlyStateForCall");
|
|
14772
|
+
function h0(e) {
|
|
14773
14773
|
const r = e.functionDetails;
|
|
14774
14774
|
if (!r || r.status !== "Done") return !1;
|
|
14775
14775
|
const i = r.response;
|
|
14776
14776
|
return typeof i == "string" && /error|exception|fail/i.test(i);
|
|
14777
14777
|
}
|
|
14778
|
-
t(
|
|
14779
|
-
const
|
|
14778
|
+
t(h0, "callLooksLikeError");
|
|
14779
|
+
const f0 = 4, Os = 8, Ia = 500, g0 = 12, wc = dt.memo(({ bytes: e, compact: r = !1 }) => {
|
|
14780
14780
|
if (e <= 0) return null;
|
|
14781
|
-
const i = Math.floor(e / Ia), s = e % Ia / Ia, u = Math.min(
|
|
14781
|
+
const i = Math.floor(e / Ia), s = e % Ia / Ia, u = Math.min(g0, i + (s > 0 ? 1 : 0)) || 1, l = r ? "0px" : "2px";
|
|
14782
14782
|
return /* @__PURE__ */ n(
|
|
14783
14783
|
R,
|
|
14784
14784
|
{
|
|
@@ -14806,7 +14806,7 @@ const h0 = 4, Os = 8, Ia = 500, f0 = 12, wc = dt.memo(({ bytes: e, compact: r =
|
|
|
14806
14806
|
{
|
|
14807
14807
|
sx: /* @__PURE__ */ t((k) => ({
|
|
14808
14808
|
position: "relative",
|
|
14809
|
-
width: `${
|
|
14809
|
+
width: `${f0}px`,
|
|
14810
14810
|
height: `${Os}px`,
|
|
14811
14811
|
borderRadius: "1px",
|
|
14812
14812
|
border: `1px solid ${k.palette.border.soft}`,
|
|
@@ -14865,7 +14865,7 @@ kc.displayName = "RailCallTimer";
|
|
|
14865
14865
|
const Sc = /* @__PURE__ */ t(({ call: e }) => {
|
|
14866
14866
|
const r = e.functionDetails;
|
|
14867
14867
|
if (!(r != null && r.name)) return null;
|
|
14868
|
-
const i =
|
|
14868
|
+
const i = s0(r.name), u = i0[i].Icon, l = r.status === "Composing" || e.eventType === "partial_function_call", x = r.status === "Executing", b = r.status === "Done", E = h0(e), T = p0(e), D = Tr(r.name, T, r.args ?? r.text, E), k = (() => {
|
|
14869
14869
|
const w = ct.getPartTextContent(e);
|
|
14870
14870
|
if (typeof w == "string" && w.length > 0) return w.length;
|
|
14871
14871
|
if (typeof r.text == "string" && r.text.length > 0) return r.text.length;
|
|
@@ -15044,7 +15044,7 @@ const Tc = /* @__PURE__ */ t(({ todoList: e, completed: r, total: i, pct: s }) =
|
|
|
15044
15044
|
{
|
|
15045
15045
|
title: w,
|
|
15046
15046
|
placement: "left",
|
|
15047
|
-
slotProps: e ?
|
|
15047
|
+
slotProps: e ? u0 : void 0,
|
|
15048
15048
|
children: /* @__PURE__ */ M(
|
|
15049
15049
|
R,
|
|
15050
15050
|
{
|
|
@@ -15154,7 +15154,7 @@ const Ic = dt.memo(() => {
|
|
|
15154
15154
|
] }, s.id)) });
|
|
15155
15155
|
});
|
|
15156
15156
|
Ic.displayName = "SubAgentList";
|
|
15157
|
-
function
|
|
15157
|
+
function m0(e, r, i) {
|
|
15158
15158
|
if (!e || e !== "todolistUpdated" || i || !r) return null;
|
|
15159
15159
|
try {
|
|
15160
15160
|
return JSON.parse(r);
|
|
@@ -15162,15 +15162,15 @@ function g0(e, r, i) {
|
|
|
15162
15162
|
return null;
|
|
15163
15163
|
}
|
|
15164
15164
|
}
|
|
15165
|
-
t(
|
|
15166
|
-
function
|
|
15165
|
+
t(m0, "tryParseMainAgentTodoList");
|
|
15166
|
+
function b0(e) {
|
|
15167
15167
|
if (e <= 0) return "00:00";
|
|
15168
15168
|
const r = Math.floor(e / 1e3), i = Math.floor(r / 60).toString().padStart(2, "0"), s = (r % 60).toString().padStart(2, "0");
|
|
15169
15169
|
return `${i}:${s}`;
|
|
15170
15170
|
}
|
|
15171
|
-
t(
|
|
15171
|
+
t(b0, "formatElapsed");
|
|
15172
15172
|
const ei = /* @__PURE__ */ t(({
|
|
15173
|
-
width: e =
|
|
15173
|
+
width: e = c0,
|
|
15174
15174
|
title: r,
|
|
15175
15175
|
onPause: i,
|
|
15176
15176
|
onCancel: s,
|
|
@@ -15237,7 +15237,7 @@ const ei = /* @__PURE__ */ t(({
|
|
|
15237
15237
|
S("idle");
|
|
15238
15238
|
}
|
|
15239
15239
|
}, [v, S]), F = i === null ? null : i ?? h, N = s === null ? null : s ?? z, K = ve(
|
|
15240
|
-
() =>
|
|
15240
|
+
() => m0(
|
|
15241
15241
|
f == null ? void 0 : f.eventName,
|
|
15242
15242
|
f == null ? void 0 : f.eventData,
|
|
15243
15243
|
f == null ? void 0 : f.subAgentId
|
|
@@ -15252,7 +15252,7 @@ const ei = /* @__PURE__ */ t(({
|
|
|
15252
15252
|
component: "aside",
|
|
15253
15253
|
onClick: /* @__PURE__ */ t(() => w(!1), "onClick"),
|
|
15254
15254
|
sx: /* @__PURE__ */ t((U) => ({
|
|
15255
|
-
minWidth:
|
|
15255
|
+
minWidth: d0,
|
|
15256
15256
|
display: "inline-flex",
|
|
15257
15257
|
backgroundColor: U.palette.background.default,
|
|
15258
15258
|
borderLeft: `1px solid ${U.palette.divider}`,
|
|
@@ -15268,7 +15268,7 @@ const ei = /* @__PURE__ */ t(({
|
|
|
15268
15268
|
}
|
|
15269
15269
|
}), "sx"),
|
|
15270
15270
|
children: [
|
|
15271
|
-
/* @__PURE__ */ n("style", { children: `${Rs}${
|
|
15271
|
+
/* @__PURE__ */ n("style", { children: `${Rs}${l0}` }),
|
|
15272
15272
|
/* @__PURE__ */ n(je, { title: "Expandir painel", placement: "left", children: /* @__PURE__ */ n(
|
|
15273
15273
|
We,
|
|
15274
15274
|
{
|
|
@@ -15490,7 +15490,7 @@ const ei = /* @__PURE__ */ t(({
|
|
|
15490
15490
|
"& .MuiTypography-caption": { color: U.palette.text.secondary }
|
|
15491
15491
|
}), "sx"),
|
|
15492
15492
|
children: /* @__PURE__ */ n(
|
|
15493
|
-
|
|
15493
|
+
a0,
|
|
15494
15494
|
{
|
|
15495
15495
|
compact: !0,
|
|
15496
15496
|
pauseControl: F || N ? {
|
|
@@ -15529,20 +15529,20 @@ export {
|
|
|
15529
15529
|
Ka as AppRailV2,
|
|
15530
15530
|
qa as AppShell,
|
|
15531
15531
|
qa as AppShellV2,
|
|
15532
|
-
|
|
15533
|
-
|
|
15532
|
+
Yh as ArtifactRender,
|
|
15533
|
+
Jh as AskUserDialog,
|
|
15534
15534
|
nc as AskUserSheet,
|
|
15535
15535
|
Ml as AttachmentPreviewModal,
|
|
15536
15536
|
Ul as BoxedPart,
|
|
15537
15537
|
ci as BrainIcon,
|
|
15538
|
-
|
|
15539
|
-
|
|
15538
|
+
fp as ChartIcon,
|
|
15539
|
+
hp as ChatIcon,
|
|
15540
15540
|
Sr as ChatPane,
|
|
15541
15541
|
Xa as ChatsHistory,
|
|
15542
15542
|
Xa as ChatsHistoryV2,
|
|
15543
15543
|
sl as CheckIcon,
|
|
15544
15544
|
vr as ChevronIcon,
|
|
15545
|
-
|
|
15545
|
+
mp as ChevronRightIcon,
|
|
15546
15546
|
pi as CloseIcon,
|
|
15547
15547
|
xl as CodeIcon,
|
|
15548
15548
|
cl as ComposerIcon,
|
|
@@ -15550,8 +15550,8 @@ export {
|
|
|
15550
15550
|
ki as DEFAULT_PART_RENDERERS,
|
|
15551
15551
|
di as DashboardIcon,
|
|
15552
15552
|
ui as DataExplorerIcon,
|
|
15553
|
-
|
|
15554
|
-
|
|
15553
|
+
Xh as DelayTextComponent,
|
|
15554
|
+
Rh as EnvironmentProvider,
|
|
15555
15555
|
bl as FileIcon,
|
|
15556
15556
|
zo as FunctionPart,
|
|
15557
15557
|
vl as GlobeIcon,
|
|
@@ -15562,11 +15562,11 @@ export {
|
|
|
15562
15562
|
Ei as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
|
|
15563
15563
|
Eo as LastPrompts,
|
|
15564
15564
|
Eo as LastPromptsV2,
|
|
15565
|
-
|
|
15565
|
+
Qh as LinearBackgroundProgress,
|
|
15566
15566
|
gi as LinearProgressBarWithMarkers,
|
|
15567
15567
|
kl as ListCheckIcon,
|
|
15568
|
-
|
|
15569
|
-
|
|
15568
|
+
Df as LiveJsxBlock,
|
|
15569
|
+
bf as LiveTsxConfigProvider,
|
|
15570
15570
|
hc as LlmResponseRender,
|
|
15571
15571
|
Mo as LoadingDots,
|
|
15572
15572
|
Cl as LockClosedIcon,
|
|
@@ -15574,7 +15574,7 @@ export {
|
|
|
15574
15574
|
xc as MOBILE_NAV_DEFAULT,
|
|
15575
15575
|
Wt as MarkdownExtended,
|
|
15576
15576
|
Il as MentionPickerPanel,
|
|
15577
|
-
|
|
15577
|
+
yp as MenuIcon,
|
|
15578
15578
|
Zl as Message,
|
|
15579
15579
|
Ya as MobileDrawer,
|
|
15580
15580
|
Ya as MobileDrawerV2,
|
|
@@ -15582,7 +15582,7 @@ export {
|
|
|
15582
15582
|
ul as PaperclipIcon,
|
|
15583
15583
|
hi as PauseIcon,
|
|
15584
15584
|
pl as PenIcon,
|
|
15585
|
-
|
|
15585
|
+
bp as PinIcon,
|
|
15586
15586
|
il as PlusIcon,
|
|
15587
15587
|
Io as Prompt,
|
|
15588
15588
|
El as PromptDateMarkers,
|
|
@@ -15599,13 +15599,13 @@ export {
|
|
|
15599
15599
|
Wa as SessionUsage,
|
|
15600
15600
|
Wa as SessionUsagePanel,
|
|
15601
15601
|
xr as SparkleIcon,
|
|
15602
|
-
|
|
15602
|
+
Lf as Sparkline,
|
|
15603
15603
|
fi as StopIcon,
|
|
15604
15604
|
jo as Stopwatch,
|
|
15605
15605
|
Po as SubAgentBox,
|
|
15606
15606
|
Po as SubAgentBoxV2,
|
|
15607
15607
|
Vl as SuspendedPart,
|
|
15608
|
-
|
|
15608
|
+
gp as TableIcon,
|
|
15609
15609
|
Jn as TaskList,
|
|
15610
15610
|
Jn as TaskListV2,
|
|
15611
15611
|
yl as TerminalIcon,
|
|
@@ -15614,25 +15614,25 @@ export {
|
|
|
15614
15614
|
Ba as ToolIcon,
|
|
15615
15615
|
ll as TrashIcon,
|
|
15616
15616
|
To as TriggerDropdown,
|
|
15617
|
-
|
|
15617
|
+
tf as TurnAwareButton,
|
|
15618
15618
|
Jl as UiToolDispatcher,
|
|
15619
15619
|
fl as UndoIcon,
|
|
15620
15620
|
wl as UsersIcon,
|
|
15621
|
-
|
|
15621
|
+
Ff as V2_CHART_PALETTE,
|
|
15622
15622
|
ko as WARNING_THRESHOLD,
|
|
15623
15623
|
Hl as WaitingPart,
|
|
15624
15624
|
gl as ZoomInIcon,
|
|
15625
15625
|
ml as ZoomOutIcon,
|
|
15626
15626
|
Yl as classifyPart,
|
|
15627
|
-
|
|
15627
|
+
qp as configureFriendlyMapping,
|
|
15628
15628
|
si as createAiChatEngine,
|
|
15629
15629
|
La as createAiChatSessionStore,
|
|
15630
15630
|
La as createAiChatStore,
|
|
15631
|
-
|
|
15632
|
-
|
|
15631
|
+
_h as createUiToolRegistry,
|
|
15632
|
+
qh as disposeSharedAiChatEngine,
|
|
15633
15633
|
ic as engineKeyFor,
|
|
15634
|
-
|
|
15635
|
-
|
|
15634
|
+
xf as extendDefaultScope,
|
|
15635
|
+
yf as extendModuleRegistry,
|
|
15636
15636
|
mc as getDefaultJsxScope,
|
|
15637
15637
|
Tr as getFriendlyLabel,
|
|
15638
15638
|
ac as getSharedAiChatEngine,
|
|
@@ -15640,23 +15640,23 @@ export {
|
|
|
15640
15640
|
dc as parseContentBlocks,
|
|
15641
15641
|
$o as parseUiArgs,
|
|
15642
15642
|
mi as slotEnterSx,
|
|
15643
|
-
|
|
15643
|
+
Gh as useAgentEngine,
|
|
15644
15644
|
ut as useAiChatServices,
|
|
15645
15645
|
be as useAiChatSessionStore,
|
|
15646
15646
|
bi as useCoarsePointer,
|
|
15647
|
-
|
|
15647
|
+
Cu as useContainerRectangle,
|
|
15648
15648
|
ql as useEnvironment,
|
|
15649
15649
|
Kl as useEnvironmentOptional,
|
|
15650
15650
|
pc as useLiveTsxMaxCharsForFull,
|
|
15651
15651
|
Ci as useParkedAskUser,
|
|
15652
|
-
|
|
15652
|
+
Bf as useResponsiveLayout,
|
|
15653
15653
|
oc as useTurnOpen,
|
|
15654
15654
|
zl as useVisualViewport,
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15655
|
+
Op as v2Card,
|
|
15656
|
+
Rp as v2Chip,
|
|
15657
|
+
Dp as v2IconBtn,
|
|
15658
|
+
Pp as v2MonoMeta,
|
|
15659
|
+
Fp as v2SectionLabel,
|
|
15660
|
+
Pf as v2Theme
|
|
15661
15661
|
};
|
|
15662
15662
|
//# sourceMappingURL=components.js.map
|