@aintela/chat 0.3.4 → 0.3.6
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 +457 -453
- package/dist/components.js.map +1 -1
- package/dist/index.js +179 -178
- package/dist/src/components/v2/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var ki = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Vc = (t, r, i) => r in t ? ki(t, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[r] = i;
|
|
3
3
|
var e = (t, r) => ki(t, "name", { value: r, configurable: !0 });
|
|
4
|
-
var rt = (t, r, i) =>
|
|
4
|
+
var rt = (t, r, i) => Vc(t, typeof r != "symbol" ? r + "" : r, i);
|
|
5
5
|
import { jsx as n, jsxs as A, Fragment as oe } from "react/jsx-runtime";
|
|
6
6
|
import * as na from "react";
|
|
7
|
-
import lt, { createContext as dr, useContext as Lt, useRef as se, useMemo as Ee, useEffect as ce, useCallback as Se, useState as Q, useLayoutEffect as Jr, forwardRef as ur, Component as
|
|
8
|
-
import { useTheme as Tt, Stack as Oe, Typography as $e, Divider as ra, Box as Ce, Chip as xn, alpha as vn, Tooltip as pr, IconButton as Xt, Popover as hs, Dialog as oa, DialogTitle as aa, DialogContent as ia, DialogActions as sa, Button as nr, Tabs as
|
|
9
|
-
import { useStore as
|
|
7
|
+
import lt, { createContext as dr, useContext as Lt, useRef as se, useMemo as Ee, useEffect as ce, useCallback as Se, useState as Q, useLayoutEffect as Jr, forwardRef as ur, Component as Uc, useImperativeHandle as qc, useDeferredValue as Kc, useId as Gc } from "react";
|
|
8
|
+
import { useTheme as Tt, Stack as Oe, Typography as $e, Divider as ra, Box as Ce, Chip as xn, alpha as vn, Tooltip as pr, IconButton as Xt, Popover as hs, Dialog as oa, DialogTitle as aa, DialogContent as ia, DialogActions as sa, Button as nr, Tabs as Jc, Tab as Si, Slider as Yc, Drawer as Qc, LinearProgress as fs, useMediaQuery as gs, Link as Xc, Collapse as ms, Paper as bs, DialogContentText as Zc, Alert as ed, AlertTitle as td, Fade as nd, CircularProgress as rd, ButtonBase as od, Skeleton as Yt, CssBaseline as ad } from "@mui/material";
|
|
9
|
+
import { useStore as id, createStore as sd } from "zustand";
|
|
10
10
|
import { C as Ie } from "./Prompt-DZb7OaPp.js";
|
|
11
|
-
import { k as
|
|
11
|
+
import { k as ld, u as la, M as Ma, I as st, E as ke } from "./serializer-D2W42bdT.js";
|
|
12
12
|
import { enqueueSnackbar as _a } from "notistack";
|
|
13
|
-
import { r as
|
|
14
|
-
import { useTheme as dt, alpha as we, createTheme as
|
|
13
|
+
import { r as cd, H as dd } from "./httpSessionService-DXlT2vxT.js";
|
|
14
|
+
import { useTheme as dt, alpha as we, createTheme as ud } from "@mui/material/styles";
|
|
15
15
|
import { C as za } from "./ClientMessage-DUby3KyC.js";
|
|
16
|
-
import { E as
|
|
17
|
-
import { devtools as
|
|
16
|
+
import { E as pd, L as hd, H as fd, W as gd, a as or, u as md, I as bd, M as yd } from "./httpArtifactService-qcYDyDh_.js";
|
|
17
|
+
import { devtools as xd } from "zustand/middleware";
|
|
18
18
|
import D from "@mui/material/Box";
|
|
19
19
|
import te from "@mui/material/Typography";
|
|
20
20
|
import kt from "@mui/material/Stack";
|
|
21
|
-
import { k as
|
|
21
|
+
import { k as vd, q as wd, d as kd, t as Sd, i as Cd, b as Ci, c as Ei, f as Ed, p as Td, m as Ad, a as Id, s as Md, n as Ti, S as ys, h as _d, e as zd } from "./atMentions-BhAwZTm1.js";
|
|
22
22
|
import We from "@mui/material/IconButton";
|
|
23
23
|
import De from "@mui/material/Tooltip";
|
|
24
24
|
import Ra from "@mui/icons-material/Close";
|
|
@@ -32,61 +32,61 @@ import uo from "@mui/material/CircularProgress";
|
|
|
32
32
|
import Nr from "@mui/material/Popper";
|
|
33
33
|
import vs from "@mui/material/Portal";
|
|
34
34
|
import On from "@mui/material/Paper";
|
|
35
|
-
import { StaticDatePicker as
|
|
35
|
+
import { StaticDatePicker as Rd } from "@mui/x-date-pickers/StaticDatePicker";
|
|
36
36
|
import { LocalizationProvider as ws } from "@mui/x-date-pickers/LocalizationProvider";
|
|
37
37
|
import { AdapterDayjs as ks } from "@mui/x-date-pickers/AdapterDayjs";
|
|
38
38
|
import Ss from "dayjs";
|
|
39
|
-
import
|
|
39
|
+
import Dd from "@mui/icons-material/DataObject";
|
|
40
40
|
import Ii from "@mui/icons-material/CheckCircle";
|
|
41
|
-
import
|
|
42
|
-
import { Close as da, Download as
|
|
41
|
+
import Od from "@mui/icons-material/SmartToyOutlined";
|
|
42
|
+
import { Close as da, Download as Pd, RadioButtonUncheckedOutlined as Mi, AutoStories as _i, DataExploration as Fd, AutoGraph as jd, TrendingDown as Ld, TrendingUp as Bd, Speed as $d, Security as Wd, BugReport as Nd, Help as Hd, Info as Cs, Lightbulb as Vd, EmojiEmotions as Ud, Error as Es, CheckCircle as Ts, Warning as As, Star as qd, Favorite as Kd, ThumbDown as Gd, ThumbUp as Jd, SentimentSatisfiedAlt as zi, Build as Yd, ChevronRight as Is, Timer as Dn, AlarmOn as Qd, FrontHand as Xd, QuestionMark as Zd, ErrorOutline as eu, CancelRounded as Ms, WarningAmberRounded as tu, ModelTraining as nu, TipsAndUpdates as ru, ChevronRightSharp as ou, CloseSharp as _s, LockOpen as Ri, Lock as Di, QuestionAnswerRounded as au, MinimizeSharp as iu, SettingsOverscan as su, AttachFileTwoTone as lu, PictureAsPdf as cu, FileDownloadOutlined as du, MoreHoriz as uu, EditOutlined as pu, DeleteOutline as hu } from "@mui/icons-material";
|
|
43
43
|
import Yr from "@mui/material/Popover";
|
|
44
44
|
import Vt from "@mui/material/Button";
|
|
45
|
-
import { b as
|
|
46
|
-
import
|
|
45
|
+
import { b as fu, a as gu, u as mu } from "./useContainerWidth-B40_i-NW.js";
|
|
46
|
+
import bu from "@mui/material/Modal";
|
|
47
47
|
import zs from "@mui/icons-material/QuestionAnswer";
|
|
48
|
-
import
|
|
48
|
+
import yu from "@mui/material/Collapse";
|
|
49
49
|
import Rs from "react-markdown";
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
50
|
+
import xu from "remark-gfm";
|
|
51
|
+
import vu from "rehype-raw";
|
|
52
|
+
import wu from "@mui/icons-material/OpenInNew";
|
|
53
53
|
import Oi from "@mui/icons-material/TaskAlt";
|
|
54
|
-
import
|
|
55
|
-
import { e as Da, A as
|
|
56
|
-
import
|
|
57
|
-
import { unified as
|
|
58
|
-
import
|
|
59
|
-
import { toMarkdown as
|
|
60
|
-
import { createPortal as
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
54
|
+
import ku from "@mui/icons-material/FormatQuote";
|
|
55
|
+
import { e as Da, A as Su } from "./environmentUtils-VZNTCzEE.js";
|
|
56
|
+
import Cu from "@mui/material/Avatar";
|
|
57
|
+
import { unified as Eu } from "unified";
|
|
58
|
+
import Tu from "remark-parse";
|
|
59
|
+
import { toMarkdown as Au } from "mdast-util-to-markdown";
|
|
60
|
+
import { createPortal as Iu } from "react-dom";
|
|
61
|
+
import Mu from "@mui/icons-material/Code";
|
|
62
|
+
import _u from "@mui/icons-material/Visibility";
|
|
63
|
+
import zu from "@mui/material/Checkbox";
|
|
64
|
+
import Ru from "@mui/material/FormControlLabel";
|
|
65
|
+
import Du from "@mui/material/FormGroup";
|
|
66
66
|
import Ho from "@mui/material/TextField";
|
|
67
|
-
import { DatePicker as
|
|
68
|
-
import { useDebouncedCallback as
|
|
67
|
+
import { DatePicker as Ou } from "@mui/x-date-pickers/DatePicker";
|
|
68
|
+
import { useDebouncedCallback as Pu } from "use-debounce";
|
|
69
69
|
import Ds from "@mui/material/Slide";
|
|
70
70
|
import Oa from "@mui/material/LinearProgress";
|
|
71
|
-
import
|
|
71
|
+
import Fu from "@mui/icons-material/KeyboardArrowDown";
|
|
72
72
|
import Pi from "@mui/material/Chip";
|
|
73
|
-
import { useShallow as
|
|
73
|
+
import { useShallow as ju } from "zustand/react/shallow";
|
|
74
74
|
import Os from "@mui/material/Dialog";
|
|
75
|
-
import
|
|
76
|
-
import { Outlet as
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import { grey as
|
|
75
|
+
import Lu from "@mui/icons-material/HtmlOutlined";
|
|
76
|
+
import { Outlet as Bu, useLocation as Ps, Link as Fs } from "react-router-dom";
|
|
77
|
+
import $u from "@mui/material/DialogTitle";
|
|
78
|
+
import Wu from "@mui/material/DialogContent";
|
|
79
|
+
import Nu from "@mui/material/DialogActions";
|
|
80
|
+
import Hu from "@mui/material/Drawer";
|
|
81
|
+
import Vu from "@mui/icons-material/Timer";
|
|
82
|
+
import Uu from "@mui/icons-material/Storage";
|
|
83
|
+
import qu from "@mui/icons-material/Memory";
|
|
84
|
+
import Ku from "@mui/icons-material/HelpOutline";
|
|
85
|
+
import { grey as Gu } from "@mui/material/colors";
|
|
86
86
|
import Vo from "@mui/material/useMediaQuery";
|
|
87
|
-
import { ThemeProvider as
|
|
88
|
-
import
|
|
89
|
-
const
|
|
87
|
+
import { ThemeProvider as Ju } from "@emotion/react";
|
|
88
|
+
import Yu from "@mui/icons-material/AutoAwesome";
|
|
89
|
+
const Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90
90
|
__proto__: null,
|
|
91
91
|
get APPBAR_HEIGHT() {
|
|
92
92
|
return ka;
|
|
@@ -95,7 +95,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
95
95
|
return ka;
|
|
96
96
|
},
|
|
97
97
|
get ASK_USER_CANCELLED() {
|
|
98
|
-
return
|
|
98
|
+
return Dl;
|
|
99
99
|
},
|
|
100
100
|
get AgentActivity() {
|
|
101
101
|
return co;
|
|
@@ -107,7 +107,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
107
107
|
return fo;
|
|
108
108
|
},
|
|
109
109
|
get AiChatDrawer() {
|
|
110
|
-
return
|
|
110
|
+
return dl;
|
|
111
111
|
},
|
|
112
112
|
get AiChatFloating() {
|
|
113
113
|
return ba;
|
|
@@ -152,19 +152,22 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
152
152
|
return Ch;
|
|
153
153
|
},
|
|
154
154
|
get AskUserSheet() {
|
|
155
|
-
return
|
|
155
|
+
return Ol;
|
|
156
|
+
},
|
|
157
|
+
get AttachmentPreviewModal() {
|
|
158
|
+
return sl;
|
|
156
159
|
},
|
|
157
160
|
get BoxedPart() {
|
|
158
|
-
return
|
|
161
|
+
return Sl;
|
|
159
162
|
},
|
|
160
163
|
get BrainIcon() {
|
|
161
164
|
return ja;
|
|
162
165
|
},
|
|
163
166
|
get ChartIcon() {
|
|
164
|
-
return
|
|
167
|
+
return np;
|
|
165
168
|
},
|
|
166
169
|
get ChatIcon() {
|
|
167
|
-
return
|
|
170
|
+
return tp;
|
|
168
171
|
},
|
|
169
172
|
get ChatPane() {
|
|
170
173
|
return cr;
|
|
@@ -182,7 +185,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
182
185
|
return ir;
|
|
183
186
|
},
|
|
184
187
|
get ChevronRightIcon() {
|
|
185
|
-
return
|
|
188
|
+
return op;
|
|
186
189
|
},
|
|
187
190
|
get CloseIcon() {
|
|
188
191
|
return $a;
|
|
@@ -194,7 +197,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
194
197
|
return Ws;
|
|
195
198
|
},
|
|
196
199
|
get CurrentMessage() {
|
|
197
|
-
return
|
|
200
|
+
return Rl;
|
|
198
201
|
},
|
|
199
202
|
get DEFAULT_PART_RENDERERS() {
|
|
200
203
|
return Ja;
|
|
@@ -227,7 +230,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
227
230
|
return rr;
|
|
228
231
|
},
|
|
229
232
|
get InertEnvironmentProvider() {
|
|
230
|
-
return
|
|
233
|
+
return Tl;
|
|
231
234
|
},
|
|
232
235
|
get JsxErrorBoundary() {
|
|
233
236
|
return so;
|
|
@@ -245,7 +248,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
245
248
|
return Th;
|
|
246
249
|
},
|
|
247
250
|
get LinearProgressBarWithMarkers() {
|
|
248
|
-
return
|
|
251
|
+
return Bl;
|
|
249
252
|
},
|
|
250
253
|
get ListCheckIcon() {
|
|
251
254
|
return el;
|
|
@@ -257,7 +260,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
257
260
|
return qh;
|
|
258
261
|
},
|
|
259
262
|
get LlmResponseRender() {
|
|
260
|
-
return
|
|
263
|
+
return ql;
|
|
261
264
|
},
|
|
262
265
|
get LoadingDots() {
|
|
263
266
|
return no;
|
|
@@ -269,7 +272,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
269
272
|
return tl;
|
|
270
273
|
},
|
|
271
274
|
get MOBILE_NAV_DEFAULT() {
|
|
272
|
-
return
|
|
275
|
+
return Xl;
|
|
273
276
|
},
|
|
274
277
|
get MarkdownExtended() {
|
|
275
278
|
return zt;
|
|
@@ -278,10 +281,10 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
278
281
|
return al;
|
|
279
282
|
},
|
|
280
283
|
get MenuIcon() {
|
|
281
|
-
return
|
|
284
|
+
return ip;
|
|
282
285
|
},
|
|
283
286
|
get Message() {
|
|
284
|
-
return
|
|
287
|
+
return zl;
|
|
285
288
|
},
|
|
286
289
|
get MobileDrawer() {
|
|
287
290
|
return Ca;
|
|
@@ -302,7 +305,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
302
305
|
return Vs;
|
|
303
306
|
},
|
|
304
307
|
get PinIcon() {
|
|
305
|
-
return
|
|
308
|
+
return ap;
|
|
306
309
|
},
|
|
307
310
|
get PlusIcon() {
|
|
308
311
|
return Ls;
|
|
@@ -362,10 +365,10 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
362
365
|
return lo;
|
|
363
366
|
},
|
|
364
367
|
get SuspendedPart() {
|
|
365
|
-
return
|
|
368
|
+
return kl;
|
|
366
369
|
},
|
|
367
370
|
get TableIcon() {
|
|
368
|
-
return
|
|
371
|
+
return rp;
|
|
369
372
|
},
|
|
370
373
|
get TaskList() {
|
|
371
374
|
return Pn;
|
|
@@ -377,10 +380,10 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
377
380
|
return Ys;
|
|
378
381
|
},
|
|
379
382
|
get TextPart() {
|
|
380
|
-
return
|
|
383
|
+
return bl;
|
|
381
384
|
},
|
|
382
385
|
get ThoughtPart() {
|
|
383
|
-
return
|
|
386
|
+
return xl;
|
|
384
387
|
},
|
|
385
388
|
get ToolIcon() {
|
|
386
389
|
return ga;
|
|
@@ -395,7 +398,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
395
398
|
return zh;
|
|
396
399
|
},
|
|
397
400
|
get UiToolDispatcher() {
|
|
398
|
-
return
|
|
401
|
+
return Al;
|
|
399
402
|
},
|
|
400
403
|
get UndoIcon() {
|
|
401
404
|
return qs;
|
|
@@ -410,7 +413,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
410
413
|
return pa;
|
|
411
414
|
},
|
|
412
415
|
get WaitingPart() {
|
|
413
|
-
return
|
|
416
|
+
return wl;
|
|
414
417
|
},
|
|
415
418
|
get ZoomInIcon() {
|
|
416
419
|
return Ks;
|
|
@@ -419,7 +422,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
419
422
|
return Gs;
|
|
420
423
|
},
|
|
421
424
|
get classifyPart() {
|
|
422
|
-
return
|
|
425
|
+
return Il;
|
|
423
426
|
},
|
|
424
427
|
get configureFriendlyMapping() {
|
|
425
428
|
return kp;
|
|
@@ -440,7 +443,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
440
443
|
return wh;
|
|
441
444
|
},
|
|
442
445
|
get engineKeyFor() {
|
|
443
|
-
return
|
|
446
|
+
return Ll;
|
|
444
447
|
},
|
|
445
448
|
get extendDefaultScope() {
|
|
446
449
|
return Gh;
|
|
@@ -449,19 +452,19 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
449
452
|
return Kh;
|
|
450
453
|
},
|
|
451
454
|
get getDefaultJsxScope() {
|
|
452
|
-
return
|
|
455
|
+
return Jl;
|
|
453
456
|
},
|
|
454
457
|
get getFriendlyLabel() {
|
|
455
458
|
return hr;
|
|
456
459
|
},
|
|
457
460
|
get getSharedAiChatEngine() {
|
|
458
|
-
return
|
|
461
|
+
return jl;
|
|
459
462
|
},
|
|
460
463
|
get parseClientOutput() {
|
|
461
464
|
return Ga;
|
|
462
465
|
},
|
|
463
466
|
get parseContentBlocks() {
|
|
464
|
-
return
|
|
467
|
+
return Hl;
|
|
465
468
|
},
|
|
466
469
|
get parseUiArgs() {
|
|
467
470
|
return ho;
|
|
@@ -479,16 +482,16 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
479
482
|
return Va;
|
|
480
483
|
},
|
|
481
484
|
get useContainerRectangle() {
|
|
482
|
-
return
|
|
485
|
+
return mu;
|
|
483
486
|
},
|
|
484
487
|
get useEnvironment() {
|
|
485
|
-
return
|
|
488
|
+
return Cl;
|
|
486
489
|
},
|
|
487
490
|
get useEnvironmentOptional() {
|
|
488
|
-
return
|
|
491
|
+
return El;
|
|
489
492
|
},
|
|
490
493
|
get useLiveTsxMaxCharsForFull() {
|
|
491
|
-
return
|
|
494
|
+
return Ul;
|
|
492
495
|
},
|
|
493
496
|
get useParkedAskUser() {
|
|
494
497
|
return Qa;
|
|
@@ -497,10 +500,10 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
497
500
|
return wf;
|
|
498
501
|
},
|
|
499
502
|
get useTurnOpen() {
|
|
500
|
-
return
|
|
503
|
+
return Fl;
|
|
501
504
|
},
|
|
502
505
|
get useVisualViewport() {
|
|
503
|
-
return
|
|
506
|
+
return ll;
|
|
504
507
|
},
|
|
505
508
|
get v2Card() {
|
|
506
509
|
return gf;
|
|
@@ -528,7 +531,7 @@ const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
528
531
|
}, "useAiChatServices");
|
|
529
532
|
function ge(t) {
|
|
530
533
|
const { sessionStore: r } = ct();
|
|
531
|
-
return
|
|
534
|
+
return id(r, t);
|
|
532
535
|
}
|
|
533
536
|
e(ge, "useAiChatSessionStore");
|
|
534
537
|
const Za = class Za {
|
|
@@ -538,7 +541,7 @@ const Za = class Za {
|
|
|
538
541
|
this.baseUrl = r.replace(/\/$/, ""), this.accessToken = i;
|
|
539
542
|
}
|
|
540
543
|
get headers() {
|
|
541
|
-
return { "Content-Type": "application/json", Authorization: `Bearer ${
|
|
544
|
+
return { "Content-Type": "application/json", Authorization: `Bearer ${cd(this.accessToken)}` };
|
|
542
545
|
}
|
|
543
546
|
/** Quick path (debounce ~300ms). `signal` lets the caller cancel a superseded keystroke. */
|
|
544
547
|
async analyze(r, i, c) {
|
|
@@ -586,8 +589,8 @@ const Za = class Za {
|
|
|
586
589
|
e(Za, "HttpPromptAssistService");
|
|
587
590
|
let Qr = Za;
|
|
588
591
|
function ua(t, r) {
|
|
589
|
-
return
|
|
590
|
-
|
|
592
|
+
return sd()(
|
|
593
|
+
xd(
|
|
591
594
|
(i, c) => ({
|
|
592
595
|
session: null,
|
|
593
596
|
loading: !1,
|
|
@@ -601,7 +604,7 @@ function ua(t, r) {
|
|
|
601
604
|
message: null,
|
|
602
605
|
messages: [],
|
|
603
606
|
_turnCompleteCounter: 0,
|
|
604
|
-
skillLevel:
|
|
607
|
+
skillLevel: ld.LIVE,
|
|
605
608
|
loadingType: null,
|
|
606
609
|
onRenderPrompt: r,
|
|
607
610
|
connectionStatus: Ie.Disconnected,
|
|
@@ -693,7 +696,7 @@ function ua(t, r) {
|
|
|
693
696
|
);
|
|
694
697
|
}
|
|
695
698
|
e(ua, "createAiChatStore");
|
|
696
|
-
const pa = 0.75,
|
|
699
|
+
const pa = 0.75, Xu = 1e3, rr = 300 * 1e3, Hr = 500, Zu = 2e4, ei = class ei {
|
|
697
700
|
constructor(r, i, c, f, s = {}) {
|
|
698
701
|
rt(this, "idleTime", 0);
|
|
699
702
|
rt(this, "internalHearBeat", null);
|
|
@@ -818,8 +821,8 @@ const pa = 0.75, Qu = 1e3, rr = 300 * 1e3, Hr = 500, Xu = 2e4, ei = class ei {
|
|
|
818
821
|
if (this.armed)
|
|
819
822
|
if (this.sessionState.sessionActive && this.sessionState.connectionStatus == Ie.Disconnected) {
|
|
820
823
|
if (i - this.lastConCheck >= this.waitTimeForRetry) {
|
|
821
|
-
const f = this.waitTimeForRetry + this.waitTimeForRetry * this.waitTimeForRetry /
|
|
822
|
-
this.waitTimeForRetry = Math.min(f,
|
|
824
|
+
const f = this.waitTimeForRetry + this.waitTimeForRetry * this.waitTimeForRetry / Xu;
|
|
825
|
+
this.waitTimeForRetry = Math.min(f, Zu), this.lastConCheck = i, this.bindAndOpenLiveSession(this.workingSessionId).catch((s) => console.error("Error bind and open", s));
|
|
823
826
|
}
|
|
824
827
|
} else
|
|
825
828
|
this.waitTimeForRetry = Hr;
|
|
@@ -827,14 +830,14 @@ const pa = 0.75, Qu = 1e3, rr = 300 * 1e3, Hr = 500, Xu = 2e4, ei = class ei {
|
|
|
827
830
|
};
|
|
828
831
|
e(ei, "SessionStateManagerService");
|
|
829
832
|
let Xr = ei;
|
|
830
|
-
function
|
|
833
|
+
function ep() {
|
|
831
834
|
return {
|
|
832
835
|
pushNotification: /* @__PURE__ */ e((t) => {
|
|
833
836
|
_a(t.message, { variant: t.type, preventDuplicate: !0 });
|
|
834
837
|
}, "pushNotification")
|
|
835
838
|
};
|
|
836
839
|
}
|
|
837
|
-
e(
|
|
840
|
+
e(ep, "defaultNotificationPort");
|
|
838
841
|
function Pa(t) {
|
|
839
842
|
const {
|
|
840
843
|
serverBaseUrl: r,
|
|
@@ -851,9 +854,9 @@ function Pa(t) {
|
|
|
851
854
|
}, "resolveUser"), E = /* @__PURE__ */ e(() => {
|
|
852
855
|
var d;
|
|
853
856
|
return (d = T()) == null ? void 0 : d.access_token;
|
|
854
|
-
}, "getToken"), R = t.eventBusService ?? new
|
|
857
|
+
}, "getToken"), R = t.eventBusService ?? new pd(), k = t.storageService ?? new hd(), v = t.notificationPort ?? ep(), C = t.artifactService ?? new fd(r, E), u = t.sessionService ?? new dd(r, E), x = ua(u, s);
|
|
855
858
|
x.getState().setConnectionStatus(Ie.Idle);
|
|
856
|
-
const w = c ? c(r) : new
|
|
859
|
+
const w = c ? c(r) : new gd(r, E), m = new or(
|
|
857
860
|
b,
|
|
858
861
|
R,
|
|
859
862
|
C,
|
|
@@ -1154,16 +1157,16 @@ const js = /* @__PURE__ */ e(({
|
|
|
1154
1157
|
] }), t), "SendIcon"), Fa = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ A(oe, { children: [
|
|
1155
1158
|
/* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "7" }),
|
|
1156
1159
|
/* @__PURE__ */ n("path", { d: "m20 20-3.5-3.5" })
|
|
1157
|
-
] }), t), "SearchIcon"),
|
|
1160
|
+
] }), t), "SearchIcon"), tp = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "M21 12a8 8 0 0 1-8 8H7l-4 3v-7a8 8 0 0 1 18-4Z" }), t), "ChatIcon"), np = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ A(oe, { children: [
|
|
1158
1161
|
/* @__PURE__ */ n("path", { d: "M3 3v18h18" }),
|
|
1159
1162
|
/* @__PURE__ */ n("path", { d: "m7 14 4-4 4 3 5-7" })
|
|
1160
|
-
] }), t), "ChartIcon"),
|
|
1163
|
+
] }), t), "ChartIcon"), rp = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ A(oe, { children: [
|
|
1161
1164
|
/* @__PURE__ */ n("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1162
1165
|
/* @__PURE__ */ n("path", { d: "M3 9h18M3 15h18M9 3v18" })
|
|
1163
1166
|
] }), t), "TableIcon"), Ls = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "M12 5v14M5 12h14" }), t), "PlusIcon"), fa = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ A(oe, { children: [
|
|
1164
1167
|
/* @__PURE__ */ n("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
1165
1168
|
/* @__PURE__ */ n("path", { d: "M9 3v18" })
|
|
1166
|
-
] }), t), "PanelIcon"), ar = /* @__PURE__ */ e((t) => 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" }), t), "SparkleIcon"), Bs = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "M20 6 9 17l-5-5" }), { strokeWidth: 2.5, ...t }), "CheckIcon"), ir = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" }), { strokeWidth: 2, ...t }), "ChevronIcon"),
|
|
1169
|
+
] }), t), "PanelIcon"), ar = /* @__PURE__ */ e((t) => 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" }), t), "SparkleIcon"), Bs = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "M20 6 9 17l-5-5" }), { strokeWidth: 2.5, ...t }), "CheckIcon"), ir = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" }), { strokeWidth: 2, ...t }), "ChevronIcon"), op = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" }), { strokeWidth: 2, ...t }), "ChevronRightIcon"), $s = /* @__PURE__ */ e((t) => 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" }), t), "TrashIcon"), ap = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "M12 17v5M9 3h6l-1 6 4 3H6l4-3-1-6Z" }), t), "PinIcon"), ja = /* @__PURE__ */ e((t) => 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" }), t), "BrainIcon"), La = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ A(oe, { children: [
|
|
1167
1170
|
/* @__PURE__ */ n("rect", { x: "3", y: "3", width: "7", height: "9", rx: "1.2" }),
|
|
1168
1171
|
/* @__PURE__ */ n("rect", { x: "14", y: "3", width: "7", height: "5", rx: "1.2" }),
|
|
1169
1172
|
/* @__PURE__ */ n("rect", { x: "14", y: "12", width: "7", height: "9", rx: "1.2" }),
|
|
@@ -1182,7 +1185,7 @@ const js = /* @__PURE__ */ e(({
|
|
|
1182
1185
|
/* @__PURE__ */ n("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
1183
1186
|
/* @__PURE__ */ n("path", { d: "M3 3v5h5" }),
|
|
1184
1187
|
/* @__PURE__ */ n("path", { d: "M12 7v5l3 2" })
|
|
1185
|
-
] }), t), "HistoryIcon"),
|
|
1188
|
+
] }), t), "HistoryIcon"), ip = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ n("path", { d: "M4 6h16M4 12h16M4 18h16" }), { strokeWidth: 2, ...t }), "MenuIcon"), Hs = /* @__PURE__ */ e((t) => Te(
|
|
1186
1189
|
/* @__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" }) }),
|
|
1187
1190
|
t
|
|
1188
1191
|
), "PaperclipIcon"), Vs = /* @__PURE__ */ e((t) => Te(/* @__PURE__ */ A(oe, { children: [
|
|
@@ -1261,14 +1264,14 @@ const js = /* @__PURE__ */ e(({
|
|
|
1261
1264
|
Highest: "secondary",
|
|
1262
1265
|
High: "info",
|
|
1263
1266
|
Good: "warning"
|
|
1264
|
-
},
|
|
1267
|
+
}, sp = /* @__PURE__ */ e(({ inline: t = !1 }) => {
|
|
1265
1268
|
const r = Tt(), { currentModel: i, setCurrentModel: c } = ct(), [f, s] = Q(null), y = Se((v) => {
|
|
1266
1269
|
s(v.currentTarget);
|
|
1267
1270
|
}, []), b = Se(() => {
|
|
1268
1271
|
s(null);
|
|
1269
1272
|
}, []), T = Se((v) => {
|
|
1270
1273
|
c(v), b();
|
|
1271
|
-
}, [c, b]), E = i ? Ma[i] : void 0, R = (E == null ? void 0 : E.icon) ??
|
|
1274
|
+
}, [c, b]), E = i ? Ma[i] : void 0, R = (E == null ? void 0 : E.icon) ?? Od, k = /* @__PURE__ */ A(Oe, { direction: "row", children: [
|
|
1272
1275
|
/* @__PURE__ */ A(Oe, { spacing: 0.5, sx: t ? { maxWidth: 250, flex: "0 0 250px", minWidth: 0 } : void 0, children: [
|
|
1273
1276
|
/* @__PURE__ */ n($e, { variant: "h6", width: "100%", textAlign: "center", children: "Fast models" }),
|
|
1274
1277
|
/* @__PURE__ */ n(ra, {}),
|
|
@@ -1444,16 +1447,16 @@ const js = /* @__PURE__ */ e(({
|
|
|
1444
1447
|
] });
|
|
1445
1448
|
}, "ModelSelector");
|
|
1446
1449
|
var Vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1447
|
-
function
|
|
1450
|
+
function lp(t) {
|
|
1448
1451
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1449
1452
|
}
|
|
1450
|
-
e(
|
|
1451
|
-
var Kr = { exports: {} },
|
|
1452
|
-
function
|
|
1453
|
+
e(lp, "getDefaultExportFromCjs");
|
|
1454
|
+
var Kr = { exports: {} }, cp = Kr.exports, Bi;
|
|
1455
|
+
function dp() {
|
|
1453
1456
|
return Bi || (Bi = 1, (function(t, r) {
|
|
1454
1457
|
(function(i, c) {
|
|
1455
1458
|
t.exports = c(lt);
|
|
1456
|
-
})(
|
|
1459
|
+
})(cp, (i) => (() => {
|
|
1457
1460
|
var c = { 165(b, T, E) {
|
|
1458
1461
|
const R = E(877), k = {};
|
|
1459
1462
|
for (const u of Object.keys(R)) k[R[u]] = u;
|
|
@@ -2330,7 +2333,7 @@ function cp() {
|
|
|
2330
2333
|
if (typeof o != "function" && o !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2331
2334
|
a.prototype = Object.create(o && o.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), Object.defineProperty(a, "prototype", { writable: !1 }), o && M(a, o);
|
|
2332
2335
|
}
|
|
2333
|
-
e(d, "f"), s.r(y), s.d(y, { default: /* @__PURE__ */ e(() =>
|
|
2336
|
+
e(d, "f"), s.r(y), s.d(y, { default: /* @__PURE__ */ e(() => Nc, "default") });
|
|
2334
2337
|
var I = s(119), p = s.n(I);
|
|
2335
2338
|
function z() {
|
|
2336
2339
|
var a = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
@@ -3103,7 +3106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3103
3106
|
}, Ro.apply(null, arguments);
|
|
3104
3107
|
}
|
|
3105
3108
|
e(Ro, "gn");
|
|
3106
|
-
var
|
|
3109
|
+
var sc = I.useLayoutEffect, ai = /* @__PURE__ */ e(function(a, o) {
|
|
3107
3110
|
typeof a != "function" ? a.current = o : a(o);
|
|
3108
3111
|
}, "En"), ii = { "min-height": "0", "max-height": "none", height: "0", visibility: "hidden", overflow: "hidden", position: "absolute", "z-index": "-1000", top: "0", right: "0", display: "block" }, si = /* @__PURE__ */ e(function(a) {
|
|
3109
3112
|
Object.keys(ii).forEach(function(o) {
|
|
@@ -3113,16 +3116,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3113
3116
|
var l = a.scrollHeight;
|
|
3114
3117
|
return o.sizingStyle.boxSizing === "border-box" ? l + o.borderSize : l - o.paddingSize;
|
|
3115
3118
|
}, "Cn"), ci = /* @__PURE__ */ e(function() {
|
|
3116
|
-
}, "xn"),
|
|
3119
|
+
}, "xn"), lc = ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width", "wordBreak", "wordSpacing", "scrollbarGutter"], cc = !!document.documentElement.currentStyle, dc = /* @__PURE__ */ e(function(a) {
|
|
3117
3120
|
var o = window.getComputedStyle(a);
|
|
3118
3121
|
if (o === null) return null;
|
|
3119
|
-
var l, g = (l = o,
|
|
3122
|
+
var l, g = (l = o, lc.reduce(function(P, F) {
|
|
3120
3123
|
return P[F] = l[F], P;
|
|
3121
3124
|
}, {})), _ = g.boxSizing;
|
|
3122
|
-
return _ === "" ? null : (
|
|
3125
|
+
return _ === "" ? null : (cc && _ === "border-box" && (g.width = parseFloat(g.width) + parseFloat(g.borderRightWidth) + parseFloat(g.borderLeftWidth) + parseFloat(g.paddingRight) + parseFloat(g.paddingLeft) + "px"), { sizingStyle: g, paddingSize: parseFloat(g.paddingBottom) + parseFloat(g.paddingTop), borderSize: parseFloat(g.borderBottomWidth) + parseFloat(g.borderTopWidth) });
|
|
3123
3126
|
}, "An");
|
|
3124
3127
|
function Do(a, o, l) {
|
|
3125
|
-
var g, _, P = (g = l, _ = p().useRef(g),
|
|
3128
|
+
var g, _, P = (g = l, _ = p().useRef(g), sc(function() {
|
|
3126
3129
|
_.current = g;
|
|
3127
3130
|
}), _);
|
|
3128
3131
|
I.useLayoutEffect(function() {
|
|
@@ -3135,21 +3138,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3135
3138
|
}, []);
|
|
3136
3139
|
}
|
|
3137
3140
|
e(Do, "_n");
|
|
3138
|
-
var
|
|
3139
|
-
var l = a.cacheMeasurements, g = a.maxRows, _ = a.minRows, P = a.onChange, F = P === void 0 ? ci : P, O = a.onHeightChange, L = O === void 0 ? ci : O, H = re(a,
|
|
3141
|
+
var uc = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], pc = /* @__PURE__ */ e(function(a, o) {
|
|
3142
|
+
var l = a.cacheMeasurements, g = a.maxRows, _ = a.minRows, P = a.onChange, F = P === void 0 ? ci : P, O = a.onHeightChange, L = O === void 0 ? ci : O, H = re(a, uc), Y = H.value !== void 0, ee = I.useRef(null), pe = (function(he, _e) {
|
|
3140
3143
|
var Ve = p().useRef();
|
|
3141
3144
|
return p().useCallback(function(ze) {
|
|
3142
3145
|
he.current = ze, Ve.current && ai(Ve.current, null), Ve.current = _e, _e && ai(_e, ze);
|
|
3143
3146
|
}, [_e]);
|
|
3144
3147
|
})(ee, o), le = I.useRef(0), Re = I.useRef(), He = /* @__PURE__ */ e(function() {
|
|
3145
|
-
var he = ee.current, _e = l && Re.current ? Re.current :
|
|
3148
|
+
var he = ee.current, _e = l && Re.current ? Re.current : dc(he);
|
|
3146
3149
|
if (_e) {
|
|
3147
3150
|
Re.current = _e;
|
|
3148
3151
|
var Ve = (function(vt, yn, ln, Jt) {
|
|
3149
3152
|
ln === void 0 && (ln = 1), Jt === void 0 && (Jt = 1 / 0), xt || ((xt = document.createElement("textarea")).setAttribute("tabindex", "-1"), xt.setAttribute("aria-hidden", "true"), si(xt)), xt.parentNode === null && document.body.appendChild(xt);
|
|
3150
3153
|
var wt = vt.paddingSize, xi = vt.borderSize, Lo = vt.sizingStyle, vi = Lo.boxSizing;
|
|
3151
|
-
Object.keys(Lo).forEach(function(
|
|
3152
|
-
var wi =
|
|
3154
|
+
Object.keys(Lo).forEach(function(Hc) {
|
|
3155
|
+
var wi = Hc;
|
|
3153
3156
|
xt.style[wi] = Lo[wi];
|
|
3154
3157
|
}), si(xt), xt.value = yn;
|
|
3155
3158
|
var Zn = li(xt, vt);
|
|
@@ -3179,7 +3182,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3179
3182
|
})(He), I.createElement("textarea", Ro({}, H, { onChange: /* @__PURE__ */ e(function(he) {
|
|
3180
3183
|
Y || He(), F(he);
|
|
3181
3184
|
}, "onChange"), ref: pe }));
|
|
3182
|
-
}, "Fn"),
|
|
3185
|
+
}, "Fn"), hc = I.forwardRef(pc);
|
|
3183
3186
|
function di(a, o) {
|
|
3184
3187
|
a = a.trim();
|
|
3185
3188
|
try {
|
|
@@ -3240,52 +3243,52 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3240
3243
|
return l;
|
|
3241
3244
|
}, "Nn");
|
|
3242
3245
|
(Object.getOwnPropertyDescriptor(Oo, "name") || {}).writable || Object.defineProperty(Oo, "name", { value: "default", configurable: !0 });
|
|
3243
|
-
var
|
|
3246
|
+
var fc = ["style"], gc = ["style"], mc = ["style"], bc = ["style"], yc = ["style"], xc = ["style"], vc = ["style"], wc = ["style"], kc = ["style"], Sc = ["style"], Cc = ["style"], Ec = ["style"], Tc = (function(a) {
|
|
3244
3247
|
function o() {
|
|
3245
3248
|
return v(this, o), h(this, o, arguments);
|
|
3246
3249
|
}
|
|
3247
3250
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3248
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3251
|
+
var l = this.props, g = l.style, _ = B(l, fc);
|
|
3249
3252
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 24 24", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("path", { d: "M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7" })));
|
|
3250
3253
|
}, "value") }]);
|
|
3251
|
-
})(p().PureComponent),
|
|
3254
|
+
})(p().PureComponent), Ac = (function(a) {
|
|
3252
3255
|
function o() {
|
|
3253
3256
|
return v(this, o), h(this, o, arguments);
|
|
3254
3257
|
}
|
|
3255
3258
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3256
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3259
|
+
var l = this.props, g = l.style, _ = B(l, gc);
|
|
3257
3260
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 24 24", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("path", { d: "M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z" })));
|
|
3258
3261
|
}, "value") }]);
|
|
3259
|
-
})(p().PureComponent),
|
|
3262
|
+
})(p().PureComponent), Ic = (function(a) {
|
|
3260
3263
|
function o() {
|
|
3261
3264
|
return v(this, o), h(this, o, arguments);
|
|
3262
3265
|
}
|
|
3263
3266
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3264
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3267
|
+
var l = this.props, g = l.style, _ = B(l, mc), P = _t(g).style;
|
|
3265
3268
|
return p().createElement("span", _, p().createElement("svg", { fill: P.color, width: P.height, height: P.width, style: P, viewBox: "0 0 1792 1792" }, p().createElement("path", { d: "M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z" })));
|
|
3266
3269
|
}, "value") }]);
|
|
3267
|
-
})(p().PureComponent),
|
|
3270
|
+
})(p().PureComponent), Mc = (function(a) {
|
|
3268
3271
|
function o() {
|
|
3269
3272
|
return v(this, o), h(this, o, arguments);
|
|
3270
3273
|
}
|
|
3271
3274
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3272
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3275
|
+
var l = this.props, g = l.style, _ = B(l, bc), P = _t(g).style;
|
|
3273
3276
|
return p().createElement("span", _, p().createElement("svg", { fill: P.color, width: P.height, height: P.width, style: P, viewBox: "0 0 1792 1792" }, p().createElement("path", { d: "M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z" })));
|
|
3274
3277
|
}, "value") }]);
|
|
3275
|
-
})(p().PureComponent),
|
|
3278
|
+
})(p().PureComponent), _c = (function(a) {
|
|
3276
3279
|
function o() {
|
|
3277
3280
|
return v(this, o), h(this, o, arguments);
|
|
3278
3281
|
}
|
|
3279
3282
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3280
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3283
|
+
var l = this.props, g = l.style, _ = B(l, yc);
|
|
3281
3284
|
return p().createElement("span", _, p().createElement("svg", { style: k(k({}, _t(g).style), {}, { paddingLeft: "2px", verticalAlign: "top" }), viewBox: "0 0 15 15", fill: "currentColor" }, p().createElement("path", { d: "M0 14l6-6-6-6z" })));
|
|
3282
3285
|
}, "value") }]);
|
|
3283
|
-
})(p().PureComponent),
|
|
3286
|
+
})(p().PureComponent), zc = (function(a) {
|
|
3284
3287
|
function o() {
|
|
3285
3288
|
return v(this, o), h(this, o, arguments);
|
|
3286
3289
|
}
|
|
3287
3290
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3288
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3291
|
+
var l = this.props, g = l.style, _ = B(l, xc);
|
|
3289
3292
|
return p().createElement("span", _, p().createElement("svg", { style: k(k({}, _t(g).style), {}, { paddingLeft: "2px", verticalAlign: "top" }), viewBox: "0 0 15 15", fill: "currentColor" }, p().createElement("path", { d: "M0 5l6 6 6-6z" })));
|
|
3290
3293
|
}, "value") }]);
|
|
3291
3294
|
})(p().PureComponent), ui = (function(a) {
|
|
@@ -3293,7 +3296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3293
3296
|
return v(this, o), h(this, o, arguments);
|
|
3294
3297
|
}
|
|
3295
3298
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3296
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3299
|
+
var l = this.props, g = l.style, _ = B(l, vc);
|
|
3297
3300
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("g", null, p().createElement("path", { d: "m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z" }))));
|
|
3298
3301
|
}, "value") }]);
|
|
3299
3302
|
})(p().PureComponent), Po = (function(a) {
|
|
@@ -3301,15 +3304,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3301
3304
|
return v(this, o), h(this, o, arguments);
|
|
3302
3305
|
}
|
|
3303
3306
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3304
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3307
|
+
var l = this.props, g = l.style, _ = B(l, wc);
|
|
3305
3308
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("g", null, p().createElement("path", { d: "m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z" }))));
|
|
3306
3309
|
}, "value") }]);
|
|
3307
|
-
})(p().PureComponent),
|
|
3310
|
+
})(p().PureComponent), Rc = (function(a) {
|
|
3308
3311
|
function o() {
|
|
3309
3312
|
return v(this, o), h(this, o, arguments);
|
|
3310
3313
|
}
|
|
3311
3314
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3312
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3315
|
+
var l = this.props, g = l.style, _ = B(l, kc);
|
|
3313
3316
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("g", null, p().createElement("path", { d: "m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z" }))));
|
|
3314
3317
|
}, "value") }]);
|
|
3315
3318
|
})(p().PureComponent), pi = (function(a) {
|
|
@@ -3317,15 +3320,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3317
3320
|
return v(this, o), h(this, o, arguments);
|
|
3318
3321
|
}
|
|
3319
3322
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3320
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3323
|
+
var l = this.props, g = l.style, _ = B(l, Sc);
|
|
3321
3324
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("g", null, p().createElement("path", { d: "m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z" }))));
|
|
3322
3325
|
}, "value") }]);
|
|
3323
|
-
})(p().PureComponent),
|
|
3326
|
+
})(p().PureComponent), Dc = (function(a) {
|
|
3324
3327
|
function o() {
|
|
3325
3328
|
return v(this, o), h(this, o, arguments);
|
|
3326
3329
|
}
|
|
3327
3330
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3328
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3331
|
+
var l = this.props, g = l.style, _ = B(l, Cc);
|
|
3329
3332
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("g", null, p().createElement("path", { d: "m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z" }))));
|
|
3330
3333
|
}, "value") }]);
|
|
3331
3334
|
})(p().PureComponent), Fo = (function(a) {
|
|
@@ -3333,7 +3336,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3333
3336
|
return v(this, o), h(this, o, arguments);
|
|
3334
3337
|
}
|
|
3335
3338
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3336
|
-
var l = this.props, g = l.style, _ = B(l,
|
|
3339
|
+
var l = this.props, g = l.style, _ = B(l, Ec);
|
|
3337
3340
|
return p().createElement("span", _, p().createElement("svg", Object.assign({}, _t(g), { viewBox: "0 0 40 40", fill: "currentColor", preserveAspectRatio: "xMidYMid meet" }), p().createElement("g", null, p().createElement("path", { d: "m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z" }))));
|
|
3338
3341
|
}, "value") }]);
|
|
3339
3342
|
})(p().PureComponent);
|
|
@@ -3376,7 +3379,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3376
3379
|
return _ && (O = "none"), p().createElement("span", { className: "copy-to-clipboard-container", title: "Copy to clipboard", style: { verticalAlign: "top", display: P ? "inline-block" : "none" } }, p().createElement("span", { style: k(k({}, F), {}, { display: O }), onClick: this.handleCopy }, this.getClippyIcon()));
|
|
3377
3380
|
}, "value") }]);
|
|
3378
3381
|
})(p().PureComponent);
|
|
3379
|
-
const
|
|
3382
|
+
const Oc = (function(a) {
|
|
3380
3383
|
function o(l) {
|
|
3381
3384
|
var g;
|
|
3382
3385
|
return v(this, o), (g = h(this, o, [l])).handleSelect = function(_) {
|
|
@@ -3384,7 +3387,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3384
3387
|
Y(_, "edit") && L !== !1 ? g.prepopInput(F) : H !== !1 && (ee.shift(), H(k(k({}, F), {}, { namespace: ee })));
|
|
3385
3388
|
}, g.getEditIcon = function() {
|
|
3386
3389
|
var _ = g.props, P = _.variable, F = _.theme;
|
|
3387
|
-
return p().createElement("div", { className: "click-to-edit", style: { verticalAlign: "top", display: g.state.hovered ? "inline-block" : "none" } }, p().createElement(
|
|
3390
|
+
return p().createElement("div", { className: "click-to-edit", style: { verticalAlign: "top", display: g.state.hovered ? "inline-block" : "none" } }, p().createElement(Dc, Object.assign({ className: "click-to-edit-icon" }, J(F, "editVarIcon"), { onClick: /* @__PURE__ */ e(function() {
|
|
3388
3391
|
g.prepopInput(P);
|
|
3389
3392
|
}, "onClick") })));
|
|
3390
3393
|
}, g.prepopInput = function(_) {
|
|
@@ -3437,7 +3440,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3437
3440
|
}
|
|
3438
3441
|
}, g.getEditInput = function() {
|
|
3439
3442
|
var _ = g.props, P = _.keyModifier, F = _.selectOnFocus, O = _.theme, L = g.state.editValue;
|
|
3440
|
-
return p().createElement("div", null, p().createElement(
|
|
3443
|
+
return p().createElement("div", null, p().createElement(hc, Object.assign({ type: "text", ref: /* @__PURE__ */ e(function(H) {
|
|
3441
3444
|
H && H[F ? "select" : "focus"]();
|
|
3442
3445
|
}, "ref"), value: L, className: "variable-editor", onChange: /* @__PURE__ */ e(function(H) {
|
|
3443
3446
|
var Y = H.target.value, ee = di(Y, g.props.bigNumber);
|
|
@@ -3515,7 +3518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3515
3518
|
if (F.displayObjectSize) return p().createElement("span", Object.assign({ className: "object-size" }, J(L, "object-size")), O, " item", O === 1 ? "" : "s");
|
|
3516
3519
|
}, l.getAddAttribute = function(F) {
|
|
3517
3520
|
var O = l.props, L = O.theme, H = O.namespace, Y = O.name, ee = O.src, pe = O.rjvId, le = O.depth;
|
|
3518
|
-
return p().createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: F ? "inline-block" : "none" } }, p().createElement(
|
|
3521
|
+
return p().createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: F ? "inline-block" : "none" } }, p().createElement(Rc, Object.assign({ className: "click-to-add-icon" }, J(L, "addVarIcon"), { onClick: /* @__PURE__ */ e(function() {
|
|
3519
3522
|
var Re = { name: le > 0 ? Y : null, namespace: H.splice(0, H.length - 1), existing_value: ee, variable_removed: !1, key_name: null };
|
|
3520
3523
|
X(ee) === "object" ? W.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: pe, data: Re }) : W.dispatch({ name: "VARIABLE_ADDED", rjvId: pe, data: k(k({}, Re), {}, { new_value: [].concat(N(ee), [null]) }) });
|
|
3521
3524
|
}, "onClick") })));
|
|
@@ -3542,11 +3545,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3542
3545
|
var o = a.theme;
|
|
3543
3546
|
switch (a.iconStyle) {
|
|
3544
3547
|
case "triangle":
|
|
3545
|
-
return p().createElement(
|
|
3548
|
+
return p().createElement(zc, Object.assign({}, J(o, "expanded-icon"), { className: "expanded-icon" }));
|
|
3546
3549
|
case "square":
|
|
3547
|
-
return p().createElement(
|
|
3550
|
+
return p().createElement(Ic, Object.assign({}, J(o, "expanded-icon"), { className: "expanded-icon" }));
|
|
3548
3551
|
default:
|
|
3549
|
-
return p().createElement(
|
|
3552
|
+
return p().createElement(Tc, Object.assign({}, J(o, "expanded-icon"), { className: "expanded-icon" }));
|
|
3550
3553
|
}
|
|
3551
3554
|
}
|
|
3552
3555
|
e(mi, "ba");
|
|
@@ -3554,15 +3557,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3554
3557
|
var o = a.theme;
|
|
3555
3558
|
switch (a.iconStyle) {
|
|
3556
3559
|
case "triangle":
|
|
3557
|
-
return p().createElement(
|
|
3560
|
+
return p().createElement(_c, Object.assign({}, J(o, "collapsed-icon"), { className: "collapsed-icon" }));
|
|
3558
3561
|
case "square":
|
|
3559
|
-
return p().createElement(
|
|
3562
|
+
return p().createElement(Mc, Object.assign({}, J(o, "collapsed-icon"), { className: "collapsed-icon" }));
|
|
3560
3563
|
default:
|
|
3561
|
-
return p().createElement(
|
|
3564
|
+
return p().createElement(Ac, Object.assign({}, J(o, "collapsed-icon"), { className: "collapsed-icon" }));
|
|
3562
3565
|
}
|
|
3563
3566
|
}
|
|
3564
3567
|
e(bi, "da");
|
|
3565
|
-
var
|
|
3568
|
+
var Pc = ["src", "groupArraysAfterLength", "depth", "name", "theme", "jsvRoot", "namespace"], yi = (function(a) {
|
|
3566
3569
|
function o(l) {
|
|
3567
3570
|
var g;
|
|
3568
3571
|
return v(this, o), (g = h(this, o, [l])).toggleCollapsed = function(_) {
|
|
@@ -3580,7 +3583,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3580
3583
|
var g = this.props, _ = g.theme, P = g.iconStyle;
|
|
3581
3584
|
return this.state.expanded[l] ? p().createElement(mi, { theme: _, iconStyle: P }) : p().createElement(bi, { theme: _, iconStyle: P });
|
|
3582
3585
|
}, "value") }, { key: "render", value: /* @__PURE__ */ e(function() {
|
|
3583
|
-
var l = this, g = this.props, _ = g.src, P = g.groupArraysAfterLength, F = (g.depth, g.name), O = g.theme, L = g.jsvRoot, H = g.namespace, Y = B(g,
|
|
3586
|
+
var l = this, g = this.props, _ = g.src, P = g.groupArraysAfterLength, F = (g.depth, g.name), O = g.theme, L = g.jsvRoot, H = g.namespace, Y = B(g, Pc), ee = 0, pe = 5 * this.props.indentWidth;
|
|
3584
3587
|
L || (ee = 5 * this.props.indentWidth);
|
|
3585
3588
|
var le = P, Re = Math.ceil(_.length / le);
|
|
3586
3589
|
return p().createElement("div", Object.assign({ className: "object-key-val" }, J(O, L ? "jsv-root" : "objectKeyVal", { paddingLeft: ee })), p().createElement(gi, Object.assign({}, this.props, { onKeyClick: this.handleKeySelect })), p().createElement("span", null, p().createElement(fi, Object.assign({ size: _.length }, this.props))), N(Array(Re)).map(function(He, he) {
|
|
@@ -3591,7 +3594,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3591
3594
|
}, "onClick"), className: "array-group-brace" }), "[", p().createElement("div", Object.assign({}, J(O, "array-group-meta-data"), { className: "array-group-meta-data" }), p().createElement("span", Object.assign({ className: "object-size" }, J(O, "object-size")), he * le, " - ", he * le + le - 1 > _.length ? _.length - 1 : he * le + le - 1)), "]")));
|
|
3592
3595
|
}));
|
|
3593
3596
|
}, "value") }]);
|
|
3594
|
-
})(p().PureComponent),
|
|
3597
|
+
})(p().PureComponent), Fc = ["depth", "src", "namespace", "name", "type", "parent_type", "theme", "jsvRoot", "iconStyle", "showComma", "isLast"], jo = (function(a) {
|
|
3595
3598
|
function o(l) {
|
|
3596
3599
|
var g;
|
|
3597
3600
|
v(this, o), (g = h(this, o, [l])).handleToggleCollapsed = function() {
|
|
@@ -3614,14 +3617,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3614
3617
|
}, g.renderObjectContents = function(P, F) {
|
|
3615
3618
|
var O, L = g.props, H = L.depth, Y = L.parent_type, ee = L.index_offset, pe = L.groupArraysAfterLength, le = L.namespace, Re = L.showComma, He = g.state.object_type, he = [], _e = Object.keys(P || {});
|
|
3616
3619
|
return g.props.sortKeys && He !== "array" && (_e = _e.sort()), _e.forEach(function(Ve, ze) {
|
|
3617
|
-
O = new
|
|
3620
|
+
O = new jc(Ve, P[Ve], F.bigNumber);
|
|
3618
3621
|
var Et = ze === _e.length - 1;
|
|
3619
3622
|
if (Y === "array_group" && ee && (O.name = parseInt(O.name, 10) + ee), Object.prototype.hasOwnProperty.call(P, Ve) && O.type.toLowerCase() !== "window") if (g.isCircularReference(O)) he.push(p().createElement(Be, Object.assign({ key: O.name, depth: H + 1, name: O.name, src: O.value, namespace: le.concat(O.name), type: "array", parent_type: He, isLast: Et, showComma: Re, singleIndent: 5, indentWidth: g.props.indentWidth }, F)));
|
|
3620
3623
|
else if (O.type === "object") he.push(p().createElement($r, Object.assign({ key: O.name, depth: H + 1, name: O.name, src: O.value, namespace: le.concat(O.name), parent_type: He, isLast: Et, showComma: Re, listOfAncestors: g.listOfAncestors.concat([g.props.src]) }, F)));
|
|
3621
3624
|
else if (O.type === "array") {
|
|
3622
3625
|
var vt = $r;
|
|
3623
3626
|
pe && O.value.length > pe && (vt = yi), he.push(p().createElement(vt, Object.assign({ key: O.name, depth: H + 1, name: O.name, src: O.value, namespace: le.concat(O.name), type: "array", parent_type: He, isLast: Et, showComma: Re, listOfAncestors: g.listOfAncestors.concat([g.props.src]) }, F)));
|
|
3624
|
-
} else he.push(p().createElement(
|
|
3627
|
+
} else he.push(p().createElement(Oc, Object.assign({ key: O.name + "_" + le, variable: O, singleIndent: 5, namespace: le, type: g.props.type, isLast: Et, showComma: Re }, F)));
|
|
3625
3628
|
}), he;
|
|
3626
3629
|
};
|
|
3627
3630
|
var _ = o.getState(l);
|
|
@@ -3635,7 +3638,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3635
3638
|
}, "value") }, { key: "isCircularReference", value: /* @__PURE__ */ e(function(l) {
|
|
3636
3639
|
return this.listOfAncestors.indexOf(l.value) > -1 || l.value === this.props.src;
|
|
3637
3640
|
}, "value") }, { key: "render", value: /* @__PURE__ */ e(function() {
|
|
3638
|
-
var l = this, g = this.props, _ = g.depth, P = g.src, F = (g.namespace, g.name, g.type, g.parent_type), O = g.theme, L = g.jsvRoot, H = g.iconStyle, Y = g.showComma, ee = g.isLast, pe = B(g,
|
|
3641
|
+
var l = this, g = this.props, _ = g.depth, P = g.src, F = (g.namespace, g.name, g.type, g.parent_type), O = g.theme, L = g.jsvRoot, H = g.iconStyle, Y = g.showComma, ee = g.isLast, pe = B(g, Fc), le = this.state, Re = le.object_type, He = le.expanded, he = {};
|
|
3639
3642
|
return L || F === "array_group" ? F === "array_group" && (he.borderLeft = 0, he.display = "inline") : he.paddingLeft = 5 * this.props.indentWidth, p().createElement("div", Object.assign({ className: "object-key-val", onMouseEnter: /* @__PURE__ */ e(function() {
|
|
3640
3643
|
return l.setState(k(k({}, l.state), {}, { hovered: !0 }));
|
|
3641
3644
|
}, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ e(function() {
|
|
@@ -3650,12 +3653,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3650
3653
|
var o = Object.keys(a.src).length, l = (a.collapsed === !1 || a.collapsed !== !0 && a.collapsed > a.depth) && (!a.shouldCollapse || a.shouldCollapse({ name: a.name, src: a.src, type: X(a.src), namespace: a.namespace }) === !1) && o !== 0;
|
|
3651
3654
|
return { expanded: ye.get(a.rjvId, a.namespace, "expanded", l), object_type: a.type === "array" ? "array" : "object", parent_type: a.type === "array" ? "array" : "object", size: o, hovered: !1 };
|
|
3652
3655
|
};
|
|
3653
|
-
var
|
|
3656
|
+
var jc = u(/* @__PURE__ */ e(function a(o, l, g) {
|
|
3654
3657
|
v(this, a), this.name = o, this.value = l, this.type = X(l, g);
|
|
3655
3658
|
}, "e"));
|
|
3656
3659
|
K(jo);
|
|
3657
3660
|
const $r = jo;
|
|
3658
|
-
var
|
|
3661
|
+
var Lc = (function(a) {
|
|
3659
3662
|
function o() {
|
|
3660
3663
|
var l;
|
|
3661
3664
|
v(this, o);
|
|
@@ -3666,7 +3669,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3666
3669
|
}, l;
|
|
3667
3670
|
}
|
|
3668
3671
|
return e(o, "t"), d(o, a), u(o);
|
|
3669
|
-
})(p().PureComponent),
|
|
3672
|
+
})(p().PureComponent), Bc = (function(a) {
|
|
3670
3673
|
function o(l) {
|
|
3671
3674
|
var g;
|
|
3672
3675
|
return v(this, o), (g = h(this, o, [l])).handleCloseModal = function() {
|
|
@@ -3689,7 +3692,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3689
3692
|
W.dispatch({ rjvId: P, name: "RESET" });
|
|
3690
3693
|
}, "onClick") })))));
|
|
3691
3694
|
}, "value") }]);
|
|
3692
|
-
})(p().PureComponent),
|
|
3695
|
+
})(p().PureComponent), $c = (function(a) {
|
|
3693
3696
|
function o() {
|
|
3694
3697
|
var l;
|
|
3695
3698
|
v(this, o);
|
|
@@ -3704,9 +3707,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3704
3707
|
}
|
|
3705
3708
|
return e(o, "t"), d(o, a), u(o, [{ key: "render", value: /* @__PURE__ */ e(function() {
|
|
3706
3709
|
var l = this.props, g = l.active, _ = l.theme, P = l.rjvId;
|
|
3707
|
-
return g ? p().createElement(
|
|
3710
|
+
return g ? p().createElement(Bc, { rjvId: P, theme: _, isValid: this.isValid, submit: this.submit }) : null;
|
|
3708
3711
|
}, "value") }]);
|
|
3709
|
-
})(p().PureComponent),
|
|
3712
|
+
})(p().PureComponent), Wc = (function(a) {
|
|
3710
3713
|
function o() {
|
|
3711
3714
|
return v(this, o), h(this, o, arguments);
|
|
3712
3715
|
}
|
|
@@ -3752,7 +3755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3752
3755
|
for (var g in l) ye.removeListener(g + "-" + this.rjvId, l[g]);
|
|
3753
3756
|
}, "value") }, { key: "render", value: /* @__PURE__ */ e(function() {
|
|
3754
3757
|
var l = this.state, g = l.validationFailure, _ = l.validationMessage, P = l.addKeyRequest, F = l.theme, O = l.src, L = l.name, H = this.props, Y = H.style, ee = H.defaultValue;
|
|
3755
|
-
return p().createElement("div", { className: "react-json-view", style: k(k({}, J(F, "app-container").style), Y) }, p().createElement(
|
|
3758
|
+
return p().createElement("div", { className: "react-json-view", style: k(k({}, J(F, "app-container").style), Y) }, p().createElement(Wc, { message: _, active: g, theme: F, rjvId: this.rjvId }), p().createElement(Lc, Object.assign({}, this.props, { src: O, name: L, theme: F, type: X(O), rjvId: this.rjvId })), p().createElement($c, { active: P, theme: F, rjvId: this.rjvId, defaultValue: ee }));
|
|
3756
3759
|
}, "value") }], [{ key: "getDerivedStateFromProps", value: /* @__PURE__ */ e(function(l, g) {
|
|
3757
3760
|
if (l.src !== g.prevSrc || l.name !== g.prevName || l.theme !== g.prevTheme) {
|
|
3758
3761
|
var _ = { src: l.src, name: l.name, theme: l.theme, validationMessage: l.validationMessage, prevSrc: l.src, prevName: l.name, prevTheme: l.theme };
|
|
@@ -3774,14 +3777,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3774
3777
|
return !1;
|
|
3775
3778
|
})(a.theme) || (console.error("react-json-view error:", "theme prop must be a theme name or valid base-16 theme object.", 'defaulting to "rjv-default" theme'), o.theme = "rjv-default"), X(a.src) !== "object" && X(a.src) !== "array" && (console.error("react-json-view error:", "src property must be a valid json object"), o.name = "ERROR", o.src = { message: "src property must be a valid json object" }), k(k({}, a), o);
|
|
3776
3779
|
}, K(Wr);
|
|
3777
|
-
const
|
|
3780
|
+
const Nc = Wr;
|
|
3778
3781
|
})(), y;
|
|
3779
3782
|
})());
|
|
3780
3783
|
})(Kr)), Kr.exports;
|
|
3781
3784
|
}
|
|
3782
|
-
e(
|
|
3783
|
-
var
|
|
3784
|
-
const $i = /* @__PURE__ */
|
|
3785
|
+
e(dp, "requireMain");
|
|
3786
|
+
var up = dp();
|
|
3787
|
+
const $i = /* @__PURE__ */ lp(up), pp = $i.default || $i;
|
|
3785
3788
|
function Wi(t) {
|
|
3786
3789
|
const { children: r, value: i, index: c, ...f } = t;
|
|
3787
3790
|
return /* @__PURE__ */ n(
|
|
@@ -3804,7 +3807,7 @@ function Ni(t) {
|
|
|
3804
3807
|
};
|
|
3805
3808
|
}
|
|
3806
3809
|
e(Ni, "a11yProps");
|
|
3807
|
-
const
|
|
3810
|
+
const hp = /* @__PURE__ */ e(({ open: t, onClose: r }) => {
|
|
3808
3811
|
const i = ge((w) => w.session), c = ge((w) => w.setSession), [f, s] = Q(0), [y, b] = Q(null), [T, E] = Q(1);
|
|
3809
3812
|
ce(() => {
|
|
3810
3813
|
t && b(null);
|
|
@@ -3887,7 +3890,7 @@ ${d || "No response available"}
|
|
|
3887
3890
|
)
|
|
3888
3891
|
] }),
|
|
3889
3892
|
/* @__PURE__ */ n(Ce, { sx: { borderBottom: 1, borderColor: "rgba(255, 255, 255, 0.1)" }, children: /* @__PURE__ */ A(
|
|
3890
|
-
|
|
3893
|
+
Jc,
|
|
3891
3894
|
{
|
|
3892
3895
|
value: f,
|
|
3893
3896
|
onChange: R,
|
|
@@ -3905,7 +3908,7 @@ ${d || "No response available"}
|
|
|
3905
3908
|
) }),
|
|
3906
3909
|
/* @__PURE__ */ A(ia, { sx: { p: 0, overflow: "hidden" }, children: [
|
|
3907
3910
|
/* @__PURE__ */ n(Wi, { value: f, index: 0, children: /* @__PURE__ */ n(Ce, { sx: { height: "50vh", overflow: "auto" }, children: /* @__PURE__ */ n(
|
|
3908
|
-
|
|
3911
|
+
pp,
|
|
3909
3912
|
{
|
|
3910
3913
|
src: u,
|
|
3911
3914
|
theme: "monokai",
|
|
@@ -3956,7 +3959,7 @@ ${d || "No response available"}
|
|
|
3956
3959
|
children: [
|
|
3957
3960
|
/* @__PURE__ */ n($e, { children: "Indentation:" }),
|
|
3958
3961
|
/* @__PURE__ */ n(
|
|
3959
|
-
|
|
3962
|
+
Yc,
|
|
3960
3963
|
{
|
|
3961
3964
|
value: T,
|
|
3962
3965
|
onChange: x,
|
|
@@ -4000,7 +4003,7 @@ ${d || "No response available"}
|
|
|
4000
4003
|
}
|
|
4001
4004
|
);
|
|
4002
4005
|
}, "SessionDataDialog"), Uo = 12, Zr = /* @__PURE__ */ e(({ onPromptSelected: t }) => {
|
|
4003
|
-
const { storageService: r } = ct(), { promptState: i } =
|
|
4006
|
+
const { storageService: r } = ct(), { promptState: i } = md(r), [c, f] = Q(null), [s, y] = Q([]), b = se(null);
|
|
4004
4007
|
ce(() => {
|
|
4005
4008
|
y(r.getPrompts());
|
|
4006
4009
|
}, [i, r]);
|
|
@@ -4286,7 +4289,7 @@ function Ha({
|
|
|
4286
4289
|
),
|
|
4287
4290
|
!f && t.length === 0 && T && /* @__PURE__ */ n(te, { sx: /* @__PURE__ */ e((k) => ({ px: 1.5, py: 2, fontSize: 13, color: k.palette.text.disabled, textAlign: "center" }), "sx"), children: T }),
|
|
4288
4291
|
t.map((k, v) => /* @__PURE__ */ A(lt.Fragment, { children: [
|
|
4289
|
-
|
|
4292
|
+
vd(t, v) && /* @__PURE__ */ n(
|
|
4290
4293
|
te,
|
|
4291
4294
|
{
|
|
4292
4295
|
"aria-hidden": !0,
|
|
@@ -4321,7 +4324,7 @@ function Ha({
|
|
|
4321
4324
|
}, "onPointerMove"),
|
|
4322
4325
|
onPointerUp: /* @__PURE__ */ e(() => {
|
|
4323
4326
|
const C = R.current;
|
|
4324
|
-
R.current = null, !(!C || C.moved) && (
|
|
4327
|
+
R.current = null, !(!C || C.moved) && (wd(), c(k));
|
|
4325
4328
|
}, "onPointerUp"),
|
|
4326
4329
|
onPointerCancel: /* @__PURE__ */ e(() => {
|
|
4327
4330
|
R.current = null;
|
|
@@ -4408,7 +4411,7 @@ function ol({ kind: t, onAccept: r, compact: i = !1, fontSize: c = 15 }) {
|
|
|
4408
4411
|
);
|
|
4409
4412
|
}
|
|
4410
4413
|
e(ol, "PromptGhostHint");
|
|
4411
|
-
const qo = 8,
|
|
4414
|
+
const qo = 8, fp = 160;
|
|
4412
4415
|
function al({
|
|
4413
4416
|
open: t,
|
|
4414
4417
|
anchorEl: r,
|
|
@@ -4429,7 +4432,7 @@ function al({
|
|
|
4429
4432
|
return;
|
|
4430
4433
|
}
|
|
4431
4434
|
const u = r.getBoundingClientRect(), x = ((M = window.visualViewport) == null ? void 0 : M.height) ?? window.innerHeight, w = (i ? i.getBoundingClientRect().top : u.bottom) + qo, m = x - w - R, h = u.top - qo;
|
|
4432
|
-
if (m <
|
|
4435
|
+
if (m < fp && h > m) {
|
|
4433
4436
|
v({ placement: "above", left: u.left, width: u.width, offset: x - u.top + qo, maxH: h });
|
|
4434
4437
|
return;
|
|
4435
4438
|
}
|
|
@@ -4498,7 +4501,7 @@ const Vi = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], U
|
|
|
4498
4501
|
{ label: "Fino", value: 3 },
|
|
4499
4502
|
{ label: "Médio", value: 6 },
|
|
4500
4503
|
{ label: "Grosso", value: 12 }
|
|
4501
|
-
], Ur = [0.5, 0.75, 1, 1.5, 2, 3, 4, 6, 8], er = 1,
|
|
4504
|
+
], Ur = [0.5, 0.75, 1, 1.5, 2, 3, 4, 6, 8], er = 1, gp = 160, mp = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/webp"]), qi = /* @__PURE__ */ e((t) => {
|
|
4502
4505
|
var c;
|
|
4503
4506
|
const r = document.createElement("canvas");
|
|
4504
4507
|
r.width = t.width, r.height = t.height, (c = r.getContext("2d")) == null || c.drawImage(t, 0, 0), t.width = r.height, t.height = r.width;
|
|
@@ -4517,7 +4520,7 @@ const Vi = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], U
|
|
|
4517
4520
|
for (let i = 1; i < r.points.length; i += 1) t.lineTo(r.points[i].x, r.points[i].y);
|
|
4518
4521
|
t.stroke();
|
|
4519
4522
|
}
|
|
4520
|
-
}, "drawStroke"),
|
|
4523
|
+
}, "drawStroke"), sl = /* @__PURE__ */ e(({
|
|
4521
4524
|
attachment: t,
|
|
4522
4525
|
onClose: r,
|
|
4523
4526
|
onApply: i
|
|
@@ -4526,7 +4529,7 @@ const Vi = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], U
|
|
|
4526
4529
|
w: typeof window > "u" ? 1024 : window.innerWidth,
|
|
4527
4530
|
h: typeof window > "u" ? 768 : window.innerHeight
|
|
4528
4531
|
})), j = se(null), q = se(null), K = C > 0, re = Ee(
|
|
4529
|
-
() => ({ w: p.w * 0.9, h: p.h -
|
|
4532
|
+
() => ({ w: p.w * 0.9, h: p.h - gp }),
|
|
4530
4533
|
[p]
|
|
4531
4534
|
), B = Ee(() => !d.w || !d.h ? 1 : Math.min(1, re.w / d.w, re.h / d.h), [d, re]), G = Ee(
|
|
4532
4535
|
() => ({
|
|
@@ -4662,7 +4665,7 @@ const Vi = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], U
|
|
|
4662
4665
|
}, "handleUndo"), ot = /* @__PURE__ */ e(() => {
|
|
4663
4666
|
const V = c.current;
|
|
4664
4667
|
if (!V || !t) return;
|
|
4665
|
-
const ae =
|
|
4668
|
+
const ae = mp.has(t.mimeType) ? t.mimeType : "image/png";
|
|
4666
4669
|
i(t.id, V.toDataURL(ae, 0.92), ae);
|
|
4667
4670
|
}, "handleApply"), it = /* @__PURE__ */ n(
|
|
4668
4671
|
D,
|
|
@@ -4685,7 +4688,7 @@ const Vi = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], U
|
|
|
4685
4688
|
"&.Mui-disabled": { color: we(ae.palette.common.white, 0.3) }
|
|
4686
4689
|
}), "toolbarButtonSx");
|
|
4687
4690
|
return /* @__PURE__ */ n(
|
|
4688
|
-
|
|
4691
|
+
bu,
|
|
4689
4692
|
{
|
|
4690
4693
|
open: t !== null,
|
|
4691
4694
|
onClose: /* @__PURE__ */ e((V, ae) => {
|
|
@@ -5025,7 +5028,7 @@ function Gi() {
|
|
|
5025
5028
|
};
|
|
5026
5029
|
}
|
|
5027
5030
|
e(Gi, "read");
|
|
5028
|
-
function
|
|
5031
|
+
function ll(t) {
|
|
5029
5032
|
const [r, i] = Q(Gi);
|
|
5030
5033
|
return ce(() => {
|
|
5031
5034
|
if (!t) return;
|
|
@@ -5035,7 +5038,7 @@ function sl(t) {
|
|
|
5035
5038
|
};
|
|
5036
5039
|
}, [t]), r;
|
|
5037
5040
|
}
|
|
5038
|
-
e(
|
|
5041
|
+
e(ll, "useVisualViewport");
|
|
5039
5042
|
const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
5040
5043
|
forceMessage: t,
|
|
5041
5044
|
onHeightChange: r,
|
|
@@ -5111,7 +5114,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5111
5114
|
}, []), Ke = Se(() => {
|
|
5112
5115
|
var S;
|
|
5113
5116
|
(S = ne.current) == null || S.click();
|
|
5114
|
-
}, []), [Z, Ge] = Q(null), [et, tt] = Q([]), [nt, St] = Q(!1), [dn, Pt] = Q(0), [en, ht] = Q(null), [tn, Ut] = Q(null), wn = Va(), fr = Xe === "panel" || Xe === "auto" && wn, gr = me ?? "guided", mr = de === "center" || de === "auto" && wn, nn = (Z == null ? void 0 : Z.trigger) === "#" && !!N, qt =
|
|
5117
|
+
}, []), [Z, Ge] = Q(null), [et, tt] = Q([]), [nt, St] = Q(!1), [dn, Pt] = Q(0), [en, ht] = Q(null), [tn, Ut] = Q(null), wn = Va(), fr = Xe === "panel" || Xe === "auto" && wn, gr = me ?? "guided", mr = de === "center" || de === "auto" && wn, nn = (Z == null ? void 0 : Z.trigger) === "#" && !!N, qt = ll(mr && nn), br = m === "icon" || m === "auto" && (Ne === "dark" || wn), un = fr && (Z == null ? void 0 : Z.trigger) === "@" && (et.length > 0 || nt), Fn = se(!1);
|
|
5115
5118
|
Fn.current = un;
|
|
5116
5119
|
const kn = se(null), [jn, pn] = Q(null), hn = se(0), Ft = se(null), Kt = se({ onSlashQuery: d, onAtQuery: I, onAtPersonQuery: p });
|
|
5117
5120
|
Kt.current = { onSlashQuery: d, onAtQuery: I, onAtPersonQuery: p };
|
|
@@ -5138,7 +5141,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5138
5141
|
locationConfidence: Co,
|
|
5139
5142
|
noteAtOpened: Cr,
|
|
5140
5143
|
noteAtAccepted: Er
|
|
5141
|
-
} =
|
|
5144
|
+
} = fu(
|
|
5142
5145
|
{
|
|
5143
5146
|
getTextarea: /* @__PURE__ */ e(() => Ye.current, "getTextarea"),
|
|
5144
5147
|
setDraft: /* @__PURE__ */ e((S) => Je(S), "setDraft"),
|
|
@@ -5173,7 +5176,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5173
5176
|
ve.trim() === "" && Nn();
|
|
5174
5177
|
}, [ve, Nn]);
|
|
5175
5178
|
const Nt = !!(B || G || U), Eo = Ee(
|
|
5176
|
-
() => Nt ?
|
|
5179
|
+
() => Nt ? kd(Sd(ve), G ? wr : []) : [],
|
|
5177
5180
|
[Nt, ve, G, wr]
|
|
5178
5181
|
), En = se(null), fn = se(null);
|
|
5179
5182
|
ce(() => {
|
|
@@ -5255,7 +5258,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5255
5258
|
tt(yt), Pt(0);
|
|
5256
5259
|
return;
|
|
5257
5260
|
}
|
|
5258
|
-
const ue = await
|
|
5261
|
+
const ue = await Cd(ie, {
|
|
5259
5262
|
onAtQuery: Kt.current.onAtQuery,
|
|
5260
5263
|
onAtPersonQuery: Kt.current.onAtPersonQuery
|
|
5261
5264
|
}, { personConfidence: Ln.current, locationConfidence: Bn.current });
|
|
@@ -5298,7 +5301,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5298
5301
|
}), "getBoundingClientRect")
|
|
5299
5302
|
};
|
|
5300
5303
|
}, [en]), gn = Se((S) => {
|
|
5301
|
-
const W = S.value, ie = S.selectionStart ?? W.length, ue =
|
|
5304
|
+
const W = S.value, ie = S.selectionStart ?? W.length, ue = Ed(W, ie);
|
|
5302
5305
|
if (ue && kn.current === ue.startIdx) {
|
|
5303
5306
|
Ge(null), ht(null);
|
|
5304
5307
|
return;
|
|
@@ -5316,7 +5319,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5316
5319
|
const ue = Ye.current;
|
|
5317
5320
|
if (!ue) return;
|
|
5318
5321
|
ue.focus({ preventScroll: !0 });
|
|
5319
|
-
const ye =
|
|
5322
|
+
const ye = Td(ue, S, W);
|
|
5320
5323
|
return ie && gn(ue), ye;
|
|
5321
5324
|
}, [ve, tn, gn]), ce(() => {
|
|
5322
5325
|
const S = Ye.current;
|
|
@@ -5464,7 +5467,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5464
5467
|
boxShadow: W.shadows[6]
|
|
5465
5468
|
}), "sx"),
|
|
5466
5469
|
children: /* @__PURE__ */ n(ws, { dateAdapter: ks, adapterLocale: "pt-br", children: /* @__PURE__ */ n(
|
|
5467
|
-
|
|
5470
|
+
Rd,
|
|
5468
5471
|
{
|
|
5469
5472
|
value: null,
|
|
5470
5473
|
referenceDate: qn.current ?? Ss(),
|
|
@@ -5523,9 +5526,9 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
5523
5526
|
}, "handleKeyDown"), Mo = /* @__PURE__ */ e((S) => {
|
|
5524
5527
|
const W = S.currentTarget;
|
|
5525
5528
|
if (W.selectionStart == null || W.selectionStart !== W.selectionEnd) return;
|
|
5526
|
-
const ie =
|
|
5529
|
+
const ie = Ad(ve, W.selectionStart);
|
|
5527
5530
|
if (!ie) return;
|
|
5528
|
-
const ue =
|
|
5531
|
+
const ue = Id(ve, ie);
|
|
5529
5532
|
ue.next !== ve && Je(ue.next), Ut({ start: ue.selectionStart, end: ue.selectionEnd, reopenTrigger: ue.reopenTrigger });
|
|
5530
5533
|
}, "handleEditorClick"), _o = !x && on === Ie.Idle, zo = !!x || on === Ie.Connected, J = !x && on !== Ie.Connected, jt = !zo || rn && !Gt || Bt || !h && !ve.trim() && gt.length === 0, Pr = k && (!rn || Gt), Fr = y && E ? "" : f ?? "Pergunte sobre seus dados…", jr = /* @__PURE__ */ e(() => {
|
|
5531
5534
|
v == null || v(!E);
|
|
@@ -6350,7 +6353,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
6350
6353
|
overflowY: "auto",
|
|
6351
6354
|
overflowX: "hidden"
|
|
6352
6355
|
},
|
|
6353
|
-
children: /* @__PURE__ */ n(
|
|
6356
|
+
children: /* @__PURE__ */ n(sp, { inline: !0 })
|
|
6354
6357
|
},
|
|
6355
6358
|
"model-selector"
|
|
6356
6359
|
),
|
|
@@ -6481,7 +6484,7 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
6481
6484
|
}, "onClick"),
|
|
6482
6485
|
sx: /* @__PURE__ */ e((S) => ({ fontSize: 12, color: S.palette.text.primary, py: 1 }), "sx"),
|
|
6483
6486
|
children: [
|
|
6484
|
-
/* @__PURE__ */ n(ca, { sx: /* @__PURE__ */ e((S) => ({ color: S.palette.text.secondary, minWidth: 28 }), "sx"), children: /* @__PURE__ */ n(
|
|
6487
|
+
/* @__PURE__ */ n(ca, { sx: /* @__PURE__ */ e((S) => ({ color: S.palette.text.secondary, minWidth: 28 }), "sx"), children: /* @__PURE__ */ n(Dd, { fontSize: "small" }) }),
|
|
6485
6488
|
/* @__PURE__ */ n(
|
|
6486
6489
|
Rn,
|
|
6487
6490
|
{
|
|
@@ -6498,14 +6501,14 @@ const Ji = 70, Yi = 300, Qi = 16, eo = ur(({
|
|
|
6498
6501
|
}
|
|
6499
6502
|
),
|
|
6500
6503
|
/* @__PURE__ */ n(
|
|
6501
|
-
|
|
6504
|
+
hp,
|
|
6502
6505
|
{
|
|
6503
6506
|
open: At,
|
|
6504
6507
|
onClose: /* @__PURE__ */ e(() => Rt(!1), "onClose")
|
|
6505
6508
|
}
|
|
6506
6509
|
),
|
|
6507
6510
|
/* @__PURE__ */ n(
|
|
6508
|
-
|
|
6511
|
+
sl,
|
|
6509
6512
|
{
|
|
6510
6513
|
attachment: Zt,
|
|
6511
6514
|
onClose: /* @__PURE__ */ e(() => It(null), "onClose"),
|
|
@@ -6530,7 +6533,7 @@ function ma(t) {
|
|
|
6530
6533
|
return "";
|
|
6531
6534
|
}
|
|
6532
6535
|
e(ma, "reactNodeToText");
|
|
6533
|
-
let ft = null,
|
|
6536
|
+
let ft = null, cl = null;
|
|
6534
6537
|
typeof window < "u" && Promise.all([
|
|
6535
6538
|
import("react-syntax-highlighter/dist/esm/prism-light"),
|
|
6536
6539
|
import("react-syntax-highlighter/dist/esm/styles/prism/one-dark"),
|
|
@@ -6547,7 +6550,7 @@ typeof window < "u" && Promise.all([
|
|
|
6547
6550
|
import("react-syntax-highlighter/dist/esm/languages/prism/csharp"),
|
|
6548
6551
|
import("react-syntax-highlighter/dist/esm/languages/prism/yaml")
|
|
6549
6552
|
]).then(([t, r, i, c, f, s, y, b, T, E, R, k, v]) => {
|
|
6550
|
-
ft = t.default,
|
|
6553
|
+
ft = t.default, cl = r.default, ft.registerLanguage("python", f.default), ft.registerLanguage("markdown", i.default), ft.registerLanguage("javascript", s.default), ft.registerLanguage("typescript", y.default), ft.registerLanguage("sql", b.default), ft.registerLanguage("json", T.default), ft.registerLanguage("bash", E.default), ft.registerLanguage("shell", E.default), ft.registerLanguage("html", c.default), ft.registerLanguage("xml", c.default), ft.registerLanguage("css", R.default), ft.registerLanguage("csharp", k.default), ft.registerLanguage("yaml", v.default);
|
|
6551
6554
|
}).catch((t) => console.error("Failed to load syntax highlighter:", t));
|
|
6552
6555
|
const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt(yp), "useMarkdownExtendedDefaults"), vp = /* @__PURE__ */ e(({ iconCode: t }) => /* @__PURE__ */ n("span", { style: {
|
|
6553
6556
|
display: "inline-flex",
|
|
@@ -6557,25 +6560,25 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6557
6560
|
}, children: {
|
|
6558
6561
|
smile: /* @__PURE__ */ n(zi, { fontSize: "small" }),
|
|
6559
6562
|
sad: /* @__PURE__ */ n(zi, { fontSize: "small" }),
|
|
6560
|
-
thumbsup: /* @__PURE__ */ n(
|
|
6561
|
-
thumbsdown: /* @__PURE__ */ n(
|
|
6562
|
-
heart: /* @__PURE__ */ n(
|
|
6563
|
-
star: /* @__PURE__ */ n(
|
|
6563
|
+
thumbsup: /* @__PURE__ */ n(Jd, { fontSize: "small" }),
|
|
6564
|
+
thumbsdown: /* @__PURE__ */ n(Gd, { fontSize: "small" }),
|
|
6565
|
+
heart: /* @__PURE__ */ n(Kd, { fontSize: "small" }),
|
|
6566
|
+
star: /* @__PURE__ */ n(qd, { fontSize: "small" }),
|
|
6564
6567
|
warning: /* @__PURE__ */ n(As, { fontSize: "small" }),
|
|
6565
6568
|
check: /* @__PURE__ */ n(Ts, { fontSize: "small" }),
|
|
6566
6569
|
x: /* @__PURE__ */ n(Es, { fontSize: "small" }),
|
|
6567
|
-
emoji: /* @__PURE__ */ n(
|
|
6568
|
-
lightbulb: /* @__PURE__ */ n(
|
|
6570
|
+
emoji: /* @__PURE__ */ n(Ud, { fontSize: "small", color: "primary" }),
|
|
6571
|
+
lightbulb: /* @__PURE__ */ n(Vd, { fontSize: "small" }),
|
|
6569
6572
|
info: /* @__PURE__ */ n(Cs, { fontSize: "small", color: "info" }),
|
|
6570
|
-
help: /* @__PURE__ */ n(
|
|
6571
|
-
bug: /* @__PURE__ */ n(
|
|
6572
|
-
security: /* @__PURE__ */ n(
|
|
6573
|
-
speed: /* @__PURE__ */ n(
|
|
6574
|
-
trending_up: /* @__PURE__ */ n(
|
|
6575
|
-
trending_down: /* @__PURE__ */ n(
|
|
6576
|
-
autograph: /* @__PURE__ */ n(
|
|
6573
|
+
help: /* @__PURE__ */ n(Hd, { fontSize: "small", color: "info" }),
|
|
6574
|
+
bug: /* @__PURE__ */ n(Nd, { fontSize: "small" }),
|
|
6575
|
+
security: /* @__PURE__ */ n(Wd, { fontSize: "small" }),
|
|
6576
|
+
speed: /* @__PURE__ */ n($d, { fontSize: "small", color: "primary" }),
|
|
6577
|
+
trending_up: /* @__PURE__ */ n(Bd, { fontSize: "small" }),
|
|
6578
|
+
trending_down: /* @__PURE__ */ n(Ld, { fontSize: "small" }),
|
|
6579
|
+
autograph: /* @__PURE__ */ n(jd, { fontSize: "small" }),
|
|
6577
6580
|
dataobject: /* @__PURE__ */ n(_i, { fontSize: "small" }),
|
|
6578
|
-
dataexploration: /* @__PURE__ */ n(
|
|
6581
|
+
dataexploration: /* @__PURE__ */ n(Fd, { fontSize: "small" }),
|
|
6579
6582
|
autostories: /* @__PURE__ */ n(_i, { fontSize: "small" })
|
|
6580
6583
|
}[t.toLowerCase()] || /* @__PURE__ */ A("span", { children: [
|
|
6581
6584
|
":",
|
|
@@ -6623,7 +6626,7 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6623
6626
|
}, "onClick"),
|
|
6624
6627
|
children: /* @__PURE__ */ A("div", { style: { display: "inline", alignItems: "left", verticalAlign: "middle", textWrap: "wrap", color: T.palette.text.primary, textDecorationColor: T.palette.secondary.main }, children: [
|
|
6625
6628
|
w,
|
|
6626
|
-
m != null && m.startsWith("#") ? /* @__PURE__ */ n(
|
|
6629
|
+
m != null && m.startsWith("#") ? /* @__PURE__ */ n(wu, { sx: { position: "relative", top: "3px", fontSize: "16px", marginLeft: "4px", marginTop: "-2px", color: T.palette.secondary.main } }) : /* @__PURE__ */ n(Pd, { sx: { position: "relative", top: "3px", fontSize: "16px", marginLeft: "4px", marginTop: "-2px", color: T.palette.secondary.main } })
|
|
6627
6630
|
] })
|
|
6628
6631
|
}
|
|
6629
6632
|
) }), "a"),
|
|
@@ -6668,7 +6671,7 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6668
6671
|
backgroundColor: T.palette.surface.raised,
|
|
6669
6672
|
fontStyle: "italic"
|
|
6670
6673
|
}, children: /* @__PURE__ */ A(Oe, { direction: "row", gap: 2, sx: { display: "inline-flex", alignItems: "center", flexWrap: "nowrap" }, children: [
|
|
6671
|
-
/* @__PURE__ */ n(
|
|
6674
|
+
/* @__PURE__ */ n(ku, { sx: { position: "relative", top: -20 } }),
|
|
6672
6675
|
w
|
|
6673
6676
|
] }) }), "blockquote")
|
|
6674
6677
|
};
|
|
@@ -6714,7 +6717,7 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6714
6717
|
const x = /* @__PURE__ */ e((w, m) => ft ? /* @__PURE__ */ n(
|
|
6715
6718
|
ft,
|
|
6716
6719
|
{
|
|
6717
|
-
style:
|
|
6720
|
+
style: cl || {},
|
|
6718
6721
|
language: m,
|
|
6719
6722
|
customStyle: {
|
|
6720
6723
|
whiteSpace: "pre-wrap",
|
|
@@ -6733,12 +6736,12 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6733
6736
|
skipHtml: !1,
|
|
6734
6737
|
urlTransform: /* @__PURE__ */ e((w) => w, "urlTransform"),
|
|
6735
6738
|
components: u,
|
|
6736
|
-
remarkPlugins: [
|
|
6737
|
-
rehypePlugins: [
|
|
6739
|
+
remarkPlugins: [xu],
|
|
6740
|
+
rehypePlugins: [vu],
|
|
6738
6741
|
children: E
|
|
6739
6742
|
}
|
|
6740
6743
|
);
|
|
6741
|
-
}, "MarkdownExtended"),
|
|
6744
|
+
}, "MarkdownExtended"), dl = ur((t, r) => {
|
|
6742
6745
|
const {
|
|
6743
6746
|
open: i,
|
|
6744
6747
|
onClose: c,
|
|
@@ -6751,7 +6754,7 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6751
6754
|
R(C), b == null || b(C);
|
|
6752
6755
|
}, [b]), v = E || y || "Chat";
|
|
6753
6756
|
return /* @__PURE__ */ A(
|
|
6754
|
-
|
|
6757
|
+
Qc,
|
|
6755
6758
|
{
|
|
6756
6759
|
anchor: f,
|
|
6757
6760
|
open: i,
|
|
@@ -6790,8 +6793,8 @@ const bp = `${Da()}/open/getImage`, yp = dr({}), xp = /* @__PURE__ */ e(() => Lt
|
|
|
6790
6793
|
}
|
|
6791
6794
|
);
|
|
6792
6795
|
});
|
|
6793
|
-
|
|
6794
|
-
const
|
|
6796
|
+
dl.displayName = "AiChatDrawer";
|
|
6797
|
+
const ul = {
|
|
6795
6798
|
// ── SubAgent ── the library renders these: the run-progress panel and
|
|
6796
6799
|
// SubAgentBoxV2 draw a sub-agent's own transcript, keyed by `subAgentId`
|
|
6797
6800
|
// off the wire.
|
|
@@ -6839,7 +6842,7 @@ const dl = {
|
|
|
6839
6842
|
}
|
|
6840
6843
|
};
|
|
6841
6844
|
function kp(t, r) {
|
|
6842
|
-
|
|
6845
|
+
ul[t] = r;
|
|
6843
6846
|
}
|
|
6844
6847
|
e(kp, "configureFriendlyMapping");
|
|
6845
6848
|
function Sp(t) {
|
|
@@ -6848,7 +6851,7 @@ function Sp(t) {
|
|
|
6848
6851
|
}
|
|
6849
6852
|
e(Sp, "pureToolName");
|
|
6850
6853
|
function hr(t, r, i, c) {
|
|
6851
|
-
const f =
|
|
6854
|
+
const f = ul[Sp(t)];
|
|
6852
6855
|
if (!f) {
|
|
6853
6856
|
const y = t.replace(/_/g, " ");
|
|
6854
6857
|
switch (r) {
|
|
@@ -6884,7 +6887,7 @@ function Cp(t, r, i) {
|
|
|
6884
6887
|
}
|
|
6885
6888
|
}
|
|
6886
6889
|
e(Cp, "tryParseMainAgentTodoList$1");
|
|
6887
|
-
const Ep = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}",
|
|
6890
|
+
const Ep = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", pl = lt.memo(() => {
|
|
6888
6891
|
const t = dt(), r = ge((i) => {
|
|
6889
6892
|
var f;
|
|
6890
6893
|
const c = i.currentMessage ?? ((f = i.messages) == null ? void 0 : f[i.messages.length - 1]) ?? null;
|
|
@@ -6911,7 +6914,7 @@ const Ep = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", ul = lt.
|
|
|
6911
6914
|
flexShrink: 0
|
|
6912
6915
|
}), "sx"),
|
|
6913
6916
|
children: [
|
|
6914
|
-
/* @__PURE__ */ n(
|
|
6917
|
+
/* @__PURE__ */ n(Yd, { sx: { fontSize: 11, color: t.palette.text.secondary, transform: "rotate(90deg)" } }),
|
|
6915
6918
|
/* @__PURE__ */ n(
|
|
6916
6919
|
D,
|
|
6917
6920
|
{
|
|
@@ -6930,7 +6933,7 @@ const Ep = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", ul = lt.
|
|
|
6930
6933
|
}
|
|
6931
6934
|
) });
|
|
6932
6935
|
});
|
|
6933
|
-
|
|
6936
|
+
pl.displayName = "ToolCountChip";
|
|
6934
6937
|
const to = /* @__PURE__ */ e(({ showFlowing: t }) => {
|
|
6935
6938
|
const r = dt(), i = ge((m) => m.turnOpen), c = ge((m) => m.connectionStatus), f = ge((m) => m.lastToolEvent), [s, y] = Q(void 0), b = Ee(
|
|
6936
6939
|
() => Cp(
|
|
@@ -7042,7 +7045,7 @@ const to = /* @__PURE__ */ e(({ showFlowing: t }) => {
|
|
|
7042
7045
|
}
|
|
7043
7046
|
) }),
|
|
7044
7047
|
/* @__PURE__ */ n(D, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ A(Oe, { direction: "row", gap: 1, sx: { display: "inline-flex", flexWrap: "nowrap", alignItems: "center" }, children: [
|
|
7045
|
-
/* @__PURE__ */ n(
|
|
7048
|
+
/* @__PURE__ */ n(pl, {}),
|
|
7046
7049
|
u && /* @__PURE__ */ n(
|
|
7047
7050
|
te,
|
|
7048
7051
|
{
|
|
@@ -7460,7 +7463,7 @@ function Fp({
|
|
|
7460
7463
|
);
|
|
7461
7464
|
}
|
|
7462
7465
|
e(Fp, "GuestAvatar");
|
|
7463
|
-
const jp = 'ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace',
|
|
7466
|
+
const jp = 'ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace', hl = 38;
|
|
7464
7467
|
function Lp(t) {
|
|
7465
7468
|
try {
|
|
7466
7469
|
return t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
@@ -7469,13 +7472,13 @@ function Lp(t) {
|
|
|
7469
7472
|
}
|
|
7470
7473
|
}
|
|
7471
7474
|
e(Lp, "defaultFormatTimestamp");
|
|
7472
|
-
const
|
|
7475
|
+
const fl = /* @__PURE__ */ e(({ isUser: t, message: r, tone: i }) => {
|
|
7473
7476
|
const { showPersona: c, formatTimestamp: f, resolvePersona: s } = ct();
|
|
7474
7477
|
if (!c) return null;
|
|
7475
7478
|
const y = i === "chrome", b = (s == null ? void 0 : s({ isUser: t, message: r })) ?? { label: t ? "Você" : "Agente", initials: t ? "V" : "A" }, T = b.initials ?? (b.label.slice(0, 1).toUpperCase() || "·"), E = (f ?? Lp)(r.created), R = t && b.picture !== "guest";
|
|
7476
7479
|
return /* @__PURE__ */ A(D, { sx: { display: "flex", alignItems: "center", gap: 1, mt: 1.5, mb: 0.5 }, children: [
|
|
7477
7480
|
t ? R ? /* @__PURE__ */ n(
|
|
7478
|
-
|
|
7481
|
+
Cu,
|
|
7479
7482
|
{
|
|
7480
7483
|
src: b.picture || void 0,
|
|
7481
7484
|
sx: {
|
|
@@ -7508,19 +7511,19 @@ const hl = /* @__PURE__ */ e(({ isUser: t, message: r, tone: i }) => {
|
|
|
7508
7511
|
}
|
|
7509
7512
|
)
|
|
7510
7513
|
] });
|
|
7511
|
-
}, "MessagePersona"), Ua = /* @__PURE__ */ e((t) => !!t && (t === "ask_user" || t.endsWith("-ask_user") || t.endsWith("_ask_user")), "isAskUser"), qa = /* @__PURE__ */ e((t) => !!t && (t === "askauth" || t.endsWith("-askauth") || t.endsWith("_askauth")), "isAskAuth"),
|
|
7514
|
+
}, "MessagePersona"), Ua = /* @__PURE__ */ e((t) => !!t && (t === "ask_user" || t.endsWith("-ask_user") || t.endsWith("_ask_user")), "isAskUser"), qa = /* @__PURE__ */ e((t) => !!t && (t === "askauth" || t.endsWith("-askauth") || t.endsWith("_askauth")), "isAskAuth"), gl = /* @__PURE__ */ e((t) => {
|
|
7512
7515
|
if (t)
|
|
7513
7516
|
return Ua(t) ? "ask_user" : qa(t) ? "askauth" : t;
|
|
7514
|
-
}, "askUserDisplayName"), Bp = "AskUserPart",
|
|
7517
|
+
}, "askUserDisplayName"), Bp = "AskUserPart", ml = "AskAuthPart", sr = /* @__PURE__ */ e((t) => !!t && t.cancelUi !== !0 && (t.isAskUser === !0 || Ua(t.name) || qa(t.name)), "isAskUserPart"), $p = /* @__PURE__ */ e((t) => {
|
|
7515
7518
|
if (!(!t || t.cancelUi === !0)) {
|
|
7516
7519
|
if (t.askUserComponent) return t.askUserComponent;
|
|
7517
|
-
if (qa(t.name)) return
|
|
7520
|
+
if (qa(t.name)) return ml;
|
|
7518
7521
|
if (Ua(t.name)) return Bp;
|
|
7519
7522
|
}
|
|
7520
|
-
}, "askUserComponentOf"),
|
|
7521
|
-
const y = st.getPartTextContent(t), b = t.author ===
|
|
7523
|
+
}, "askUserComponentOf"), bl = /* @__PURE__ */ e(({ part: t, message: r, preview: i, onGoing: c, friendlyMode: f, onLinkClicked: s }) => {
|
|
7524
|
+
const y = st.getPartTextContent(t), b = t.author === Su ? { backgroundColor: "var(--background-paper)", padding: "20px 10px", borderRadius: "5px" } : { margin: "5px 0px", display: "unset" };
|
|
7522
7525
|
return /* @__PURE__ */ n("div", { style: b, children: /* @__PURE__ */ n(
|
|
7523
|
-
|
|
7526
|
+
ql,
|
|
7524
7527
|
{
|
|
7525
7528
|
content: y ?? "",
|
|
7526
7529
|
partial: i,
|
|
@@ -7531,12 +7534,12 @@ const hl = /* @__PURE__ */ e(({ isUser: t, message: r, tone: i }) => {
|
|
|
7531
7534
|
friendlyMode: f
|
|
7532
7535
|
}
|
|
7533
7536
|
) });
|
|
7534
|
-
}, "TextPart"),
|
|
7537
|
+
}, "TextPart"), yl = dr(null);
|
|
7535
7538
|
function Wp() {
|
|
7536
|
-
return Lt(
|
|
7539
|
+
return Lt(yl);
|
|
7537
7540
|
}
|
|
7538
7541
|
e(Wp, "useThoughtRun");
|
|
7539
|
-
const
|
|
7542
|
+
const xl = /* @__PURE__ */ e(({
|
|
7540
7543
|
part: t,
|
|
7541
7544
|
message: r,
|
|
7542
7545
|
onGoing: i,
|
|
@@ -7618,7 +7621,7 @@ const yl = /* @__PURE__ */ e(({
|
|
|
7618
7621
|
const C = (T == null ? void 0 : T.ended) ?? /* @__PURE__ */ new Date(), u = ((C.getTime() - (((x = b == null ? void 0 : b.created) == null ? void 0 : x.getTime()) ?? C.getTime())) / 1e3).toFixed(2);
|
|
7619
7622
|
return i ? r ? "Pensando..." : `Pensou por ${u}s` : `Thought ${u}s`;
|
|
7620
7623
|
}, [b, T, r, i]), k = Ee(() => ({ collapsed: f }), [f]);
|
|
7621
|
-
return t.length === 0 ? null : /* @__PURE__ */ n(
|
|
7624
|
+
return t.length === 0 ? null : /* @__PURE__ */ n(yl.Provider, { value: k, children: /* @__PURE__ */ A(Oe, { direction: "column", style: { display: "flex", borderRadius: "5px", marginTop: "10px", color: "var(--text-secondary)", fontSize: "0.75rem" }, children: [
|
|
7622
7625
|
/* @__PURE__ */ n(Xt, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ e(() => s(!f), "onClick"), sx: {
|
|
7623
7626
|
color: "inherit",
|
|
7624
7627
|
padding: "1px",
|
|
@@ -7735,7 +7738,7 @@ const yl = /* @__PURE__ */ e(({
|
|
|
7735
7738
|
]
|
|
7736
7739
|
}
|
|
7737
7740
|
);
|
|
7738
|
-
}, "Stopwatch"),
|
|
7741
|
+
}, "Stopwatch"), vl = /* @__PURE__ */ e(({
|
|
7739
7742
|
title: t,
|
|
7740
7743
|
icon: r,
|
|
7741
7744
|
elapsed: i,
|
|
@@ -7858,7 +7861,7 @@ const yl = /* @__PURE__ */ e(({
|
|
|
7858
7861
|
backgroundColor: u.palette.action.selected
|
|
7859
7862
|
}
|
|
7860
7863
|
},
|
|
7861
|
-
children: /* @__PURE__ */ n(
|
|
7864
|
+
children: /* @__PURE__ */ n(_u, { style: { fontSize: 10 } })
|
|
7862
7865
|
}
|
|
7863
7866
|
)
|
|
7864
7867
|
] }),
|
|
@@ -7899,7 +7902,7 @@ const yl = /* @__PURE__ */ e(({
|
|
|
7899
7902
|
sessionId: c,
|
|
7900
7903
|
preStyle: M,
|
|
7901
7904
|
partial: b,
|
|
7902
|
-
text:
|
|
7905
|
+
text: Md(f ?? ""),
|
|
7903
7906
|
onLinkClicked: y,
|
|
7904
7907
|
onDrawCodeBlock: T
|
|
7905
7908
|
}
|
|
@@ -8225,11 +8228,11 @@ ${y.content}
|
|
|
8225
8228
|
|
|
8226
8229
|
\`\`\``, E = /* @__PURE__ */ e((u, x) => null, "onDrawCodeBlock");
|
|
8227
8230
|
return /* @__PURE__ */ n(
|
|
8228
|
-
|
|
8231
|
+
vl,
|
|
8229
8232
|
{
|
|
8230
8233
|
sessionId: r.sessionId ?? "ND",
|
|
8231
8234
|
title: y.title,
|
|
8232
|
-
icon: /* @__PURE__ */ n(
|
|
8235
|
+
icon: /* @__PURE__ */ n(Mu, { style: qp }),
|
|
8233
8236
|
elapsed: y.elapsed,
|
|
8234
8237
|
content: T,
|
|
8235
8238
|
part: t,
|
|
@@ -8239,7 +8242,7 @@ ${y.content}
|
|
|
8239
8242
|
isLastInlineInGroup: c
|
|
8240
8243
|
}
|
|
8241
8244
|
);
|
|
8242
|
-
}, "FunctionPart"),
|
|
8245
|
+
}, "FunctionPart"), wl = /* @__PURE__ */ e(({ part: t }) => {
|
|
8243
8246
|
var i, c;
|
|
8244
8247
|
const r = Tt();
|
|
8245
8248
|
return (i = t.waitingDetails) != null && i.addTimer ? /* @__PURE__ */ A("div", { style: { display: "flex", flexDirection: "row", flexWrap: "wrap", gap: 2, alignItems: "flex-start", fontStyle: "italic", fontSize: "0.8rem", color: "text.secondary" }, children: [
|
|
@@ -8257,13 +8260,13 @@ ${y.content}
|
|
|
8257
8260
|
style: { marginTop: "2px", marginRight: "4px" }
|
|
8258
8261
|
}
|
|
8259
8262
|
),
|
|
8260
|
-
!t.waitingDetails.isTimerRunning && /* @__PURE__ */ n(
|
|
8263
|
+
!t.waitingDetails.isTimerRunning && /* @__PURE__ */ n(Qd, { sx: { fontSize: "1.2rem", color: "secondary.light", top: "4px" } }),
|
|
8261
8264
|
t.waitingDetails.loadDots && /* @__PURE__ */ n(no, { color: r.palette.text.primary })
|
|
8262
8265
|
] }) : /* @__PURE__ */ n(no, { color: r.palette.text.primary });
|
|
8263
|
-
}, "WaitingPart"),
|
|
8264
|
-
/* @__PURE__ */ n(
|
|
8266
|
+
}, "WaitingPart"), kl = /* @__PURE__ */ e(() => /* @__PURE__ */ A(Oe, { direction: "row", gap: 2, sx: { fontStyle: "italic", fontSize: "0.8rem", color: "text.secondary" }, children: [
|
|
8267
|
+
/* @__PURE__ */ n(Xd, {}),
|
|
8265
8268
|
/* @__PURE__ */ n($e, { children: "Interação suspendida" })
|
|
8266
|
-
] }), "SuspendedPart"), Jp = { fontSize: 10, color: "rgba(255, 255, 255, 0.7)" },
|
|
8269
|
+
] }), "SuspendedPart"), Jp = { fontSize: 10, color: "rgba(255, 255, 255, 0.7)" }, Sl = /* @__PURE__ */ e(({
|
|
8267
8270
|
part: t,
|
|
8268
8271
|
message: r,
|
|
8269
8272
|
preview: i,
|
|
@@ -8277,11 +8280,11 @@ ${((E = t.rawDetails) == null ? void 0 : E.toString()) ?? ""}
|
|
|
8277
8280
|
|
|
8278
8281
|
\`\`\``, T = /* @__PURE__ */ e((R, k) => null, "onDrawCodeBlock");
|
|
8279
8282
|
return /* @__PURE__ */ n(
|
|
8280
|
-
|
|
8283
|
+
vl,
|
|
8281
8284
|
{
|
|
8282
8285
|
sessionId: r.sessionId ?? "ND",
|
|
8283
8286
|
title: s,
|
|
8284
|
-
icon: /* @__PURE__ */ n(
|
|
8287
|
+
icon: /* @__PURE__ */ n(Zd, { style: Jp }),
|
|
8285
8288
|
content: b,
|
|
8286
8289
|
part: t,
|
|
8287
8290
|
preview: i,
|
|
@@ -8308,13 +8311,13 @@ ${((E = t.rawDetails) == null ? void 0 : E.toString()) ?? ""}
|
|
|
8308
8311
|
alignItems: "flex-start"
|
|
8309
8312
|
},
|
|
8310
8313
|
children: [
|
|
8311
|
-
/* @__PURE__ */ n(
|
|
8314
|
+
/* @__PURE__ */ n(eu, { sx: { fontSize: 18, color: "error.main", mt: "1px", flexShrink: 0 } }),
|
|
8312
8315
|
/* @__PURE__ */ A(Ce, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
8313
8316
|
/* @__PURE__ */ n($e, { sx: { fontSize: "0.85rem", fontWeight: 600, color: "error.main" }, children: "A resposta do agente foi interrompida" }),
|
|
8314
8317
|
/* @__PURE__ */ n($e, { sx: { fontSize: "0.8rem", color: "text.secondary", mt: 0.25, wordBreak: "break-word" }, children: c || "O servidor não informou o motivo." }),
|
|
8315
8318
|
f && /* @__PURE__ */ A(oe, { children: [
|
|
8316
8319
|
/* @__PURE__ */ n(
|
|
8317
|
-
|
|
8320
|
+
Xc,
|
|
8318
8321
|
{
|
|
8319
8322
|
component: "button",
|
|
8320
8323
|
type: "button",
|
|
@@ -8522,11 +8525,11 @@ const rh = /* @__PURE__ */ e(({ part: t, embedded: r = !1 }) => {
|
|
|
8522
8525
|
u && /* @__PURE__ */ n(te, { variant: "subtitle2", sx: { mb: 1.25, fontWeight: 600 }, children: u }),
|
|
8523
8526
|
/* @__PURE__ */ n(kt, { spacing: 2, children: x.map(($, me) => /* @__PURE__ */ A(D, { children: [
|
|
8524
8527
|
/* @__PURE__ */ n(te, { variant: "body2", sx: { mb: 0.75, fontWeight: 500 }, children: $.text }),
|
|
8525
|
-
$.kind === "multi" && /* @__PURE__ */ n(
|
|
8526
|
-
|
|
8528
|
+
$.kind === "multi" && /* @__PURE__ */ n(Du, { children: $.options.map((be) => /* @__PURE__ */ n(
|
|
8529
|
+
Ru,
|
|
8527
8530
|
{
|
|
8528
8531
|
control: /* @__PURE__ */ n(
|
|
8529
|
-
|
|
8532
|
+
zu,
|
|
8530
8533
|
{
|
|
8531
8534
|
size: "small",
|
|
8532
8535
|
checked: M(me).includes(be),
|
|
@@ -8564,7 +8567,7 @@ const rh = /* @__PURE__ */ e(({ part: t, embedded: r = !1 }) => {
|
|
|
8564
8567
|
}
|
|
8565
8568
|
),
|
|
8566
8569
|
$.kind === "date" && /* @__PURE__ */ n(ws, { dateAdapter: ks, children: /* @__PURE__ */ n(
|
|
8567
|
-
|
|
8570
|
+
Ou,
|
|
8568
8571
|
{
|
|
8569
8572
|
value: N(me) ? Ss(N(me)) : null,
|
|
8570
8573
|
onChange: /* @__PURE__ */ e((be) => U(me, be && be.isValid() ? be.format(Qp) : ""), "onChange"),
|
|
@@ -8775,7 +8778,7 @@ function sh() {
|
|
|
8775
8778
|
e(sh, "createUiToolRegistry");
|
|
8776
8779
|
const ao = /* @__PURE__ */ e((t) => {
|
|
8777
8780
|
var x, w;
|
|
8778
|
-
const { part: r, message: i, onGoing: c = !1, preview: f = !1, embedded: s } = t, y = Lt(cn), b = r.functionDetails, T = $p(b), E = Tt(), R = y == null ? void 0 : y.askUserInlineContainer, k = (y == null ? void 0 : y.askUserPresentation) === "inline" && (b == null ? void 0 : b.parked) === !0 && (b == null ? void 0 : b.status) !== "Done" && !s, v = s || k && !!R, C = /* @__PURE__ */ e((m) => k && R ? /* @__PURE__ */ n(R, { toolName:
|
|
8781
|
+
const { part: r, message: i, onGoing: c = !1, preview: f = !1, embedded: s } = t, y = Lt(cn), b = r.functionDetails, T = $p(b), E = Tt(), R = y == null ? void 0 : y.askUserInlineContainer, k = (y == null ? void 0 : y.askUserPresentation) === "inline" && (b == null ? void 0 : b.parked) === !0 && (b == null ? void 0 : b.status) !== "Done" && !s, v = s || k && !!R, C = /* @__PURE__ */ e((m) => k && R ? /* @__PURE__ */ n(R, { toolName: gl(b == null ? void 0 : b.name), children: m }) : m, "wrap"), u = (x = y == null ? void 0 : y.uiTools) == null ? void 0 : x.resolveAskUser(T);
|
|
8779
8782
|
if (u) {
|
|
8780
8783
|
const m = u.parse ? u.parse(b == null ? void 0 : b.args) : ho(b == null ? void 0 : b.args), h = {
|
|
8781
8784
|
name: u.name,
|
|
@@ -8805,19 +8808,19 @@ const ao = /* @__PURE__ */ e((t) => {
|
|
|
8805
8808
|
}
|
|
8806
8809
|
return C(/* @__PURE__ */ n(oe, { children: u.question(m ?? {}, h) }));
|
|
8807
8810
|
}
|
|
8808
|
-
return C(T ===
|
|
8811
|
+
return C(T === ml ? /* @__PURE__ */ n(ih, { part: r, embedded: v }) : /* @__PURE__ */ n(rh, { part: r, embedded: v }));
|
|
8809
8812
|
}, "AskUserDispatcher"), lr = lt.createContext(null), lh = /* @__PURE__ */ e(({ value: t, children: r }) => /* @__PURE__ */ n(lr.Provider, { value: t, children: r }), "EnvironmentProvider");
|
|
8810
|
-
function
|
|
8813
|
+
function Cl() {
|
|
8811
8814
|
const t = lt.useContext(lr);
|
|
8812
8815
|
if (!t) throw new Error("useEnvironment must be used within EnvironmentProvider");
|
|
8813
8816
|
return t;
|
|
8814
8817
|
}
|
|
8815
|
-
e(
|
|
8816
|
-
function
|
|
8818
|
+
e(Cl, "useEnvironment");
|
|
8819
|
+
function El() {
|
|
8817
8820
|
return lt.useContext(lr) ?? {};
|
|
8818
8821
|
}
|
|
8819
|
-
e(
|
|
8820
|
-
const
|
|
8822
|
+
e(El, "useEnvironmentOptional");
|
|
8823
|
+
const Tl = /* @__PURE__ */ e(({ children: t }) => {
|
|
8821
8824
|
const r = lt.useContext(lr), i = lt.useMemo(() => {
|
|
8822
8825
|
if (!r) return {};
|
|
8823
8826
|
const c = {};
|
|
@@ -8827,9 +8830,9 @@ const El = /* @__PURE__ */ e(({ children: t }) => {
|
|
|
8827
8830
|
return c;
|
|
8828
8831
|
}, [r]);
|
|
8829
8832
|
return /* @__PURE__ */ n(lr.Provider, { value: i, children: t });
|
|
8830
|
-
}, "InertEnvironmentProvider"),
|
|
8833
|
+
}, "InertEnvironmentProvider"), Al = /* @__PURE__ */ e((t) => {
|
|
8831
8834
|
var C;
|
|
8832
|
-
const { part: r, message: i, onGoing: c, preview: f } = t, s = Lt(cn), y =
|
|
8835
|
+
const { part: r, message: i, onGoing: c, preview: f } = t, s = Lt(cn), y = El(), b = r.functionDetails, T = (C = s == null ? void 0 : s.uiTools) == null ? void 0 : C.resolve(b == null ? void 0 : b.name);
|
|
8833
8836
|
if (!T) return /* @__PURE__ */ n(ro, { ...t });
|
|
8834
8837
|
const E = (b == null ? void 0 : b.id) ?? "", R = Ga(b == null ? void 0 : b.clientOutput);
|
|
8835
8838
|
if (T.kind === "action")
|
|
@@ -8911,18 +8914,18 @@ const El = /* @__PURE__ */ e(({ children: t }) => {
|
|
|
8911
8914
|
});
|
|
8912
8915
|
}, [r]), k ? /* @__PURE__ */ n(Ce, { sx: { my: 0.5 }, children: /* @__PURE__ */ n(xn, { size: "small", variant: "outlined", color: k.ok ? "default" : "error", label: k.label }) }) : null;
|
|
8913
8916
|
}, "UiToolActionRunner"), Ja = {
|
|
8914
|
-
text:
|
|
8915
|
-
thought:
|
|
8917
|
+
text: bl,
|
|
8918
|
+
thought: xl,
|
|
8916
8919
|
function: ro,
|
|
8917
|
-
waiting:
|
|
8918
|
-
suspended:
|
|
8919
|
-
boxed:
|
|
8920
|
+
waiting: wl,
|
|
8921
|
+
suspended: kl,
|
|
8922
|
+
boxed: Sl,
|
|
8920
8923
|
serverError: Yp,
|
|
8921
8924
|
// The built-in dispatcher resolves the host's `uiTools` registry (name →
|
|
8922
8925
|
// renderer/action) and draws the matched component, or falls back to a plain
|
|
8923
8926
|
// tool call when there's no registry / no match. Hosts can still fully
|
|
8924
8927
|
// override the kind via `partRenderers={{ uiTool }}` (MessagePart prefers it).
|
|
8925
|
-
uiTool:
|
|
8928
|
+
uiTool: Al,
|
|
8926
8929
|
// Every ask-user part routes through the dispatcher, which resolves the named component
|
|
8927
8930
|
// (functionDetails.askUserComponent) against the host `uiTools` registry — AskCreateAccount and
|
|
8928
8931
|
// the built-in AskUserPart/AskAuthPart share this one path. AskUserDispatcher widens props (only
|
|
@@ -8932,7 +8935,7 @@ const El = /* @__PURE__ */ e(({ children: t }) => {
|
|
|
8932
8935
|
askUser: ao,
|
|
8933
8936
|
askAuth: ao
|
|
8934
8937
|
};
|
|
8935
|
-
function
|
|
8938
|
+
function Il(t) {
|
|
8936
8939
|
var r, i, c;
|
|
8937
8940
|
switch (t.eventType) {
|
|
8938
8941
|
case ke.ServerError:
|
|
@@ -8963,12 +8966,12 @@ function Al(t) {
|
|
|
8963
8966
|
return null;
|
|
8964
8967
|
}
|
|
8965
8968
|
}
|
|
8966
|
-
e(
|
|
8969
|
+
e(Il, "classifyPart");
|
|
8967
8970
|
const tr = lt.memo((t) => {
|
|
8968
8971
|
var f;
|
|
8969
8972
|
const r = Lt(cn);
|
|
8970
8973
|
if (t.part.visible === !1) return null;
|
|
8971
|
-
const i =
|
|
8974
|
+
const i = Il(t.part);
|
|
8972
8975
|
if (!i) return null;
|
|
8973
8976
|
const c = ((f = r == null ? void 0 : r.partRenderers) == null ? void 0 : f[i]) ?? Ja[i];
|
|
8974
8977
|
return /* @__PURE__ */ n(c, { ...t });
|
|
@@ -9018,8 +9021,8 @@ const tr = lt.memo((t) => {
|
|
|
9018
9021
|
|
|
9019
9022
|
`);
|
|
9020
9023
|
return v = v && h.length > 0, C = C && M.length > 0, /* @__PURE__ */ A(oe, { children: [
|
|
9021
|
-
(d = t.interactionQuestion) != null && d.trim() ? /* @__PURE__ */ n(
|
|
9022
|
-
/* @__PURE__ */ n(D, { sx: { pl: T && ((I = t.interactionQuestion) != null && I.trim()) ? `var(--aia-persona-indent, ${
|
|
9024
|
+
(d = t.interactionQuestion) != null && d.trim() ? /* @__PURE__ */ n(fl, { tone: "light", isUser: !0, message: t }) : null,
|
|
9025
|
+
/* @__PURE__ */ n(D, { sx: { pl: T && ((I = t.interactionQuestion) != null && I.trim()) ? `var(--aia-persona-indent, ${hl}px)` : 0 }, children: E.length > 0 ? E.map((p) => /* @__PURE__ */ n(
|
|
9023
9026
|
tr,
|
|
9024
9027
|
{
|
|
9025
9028
|
part: p,
|
|
@@ -9076,7 +9079,7 @@ const tr = lt.memo((t) => {
|
|
|
9076
9079
|
}
|
|
9077
9080
|
),
|
|
9078
9081
|
/* @__PURE__ */ A(
|
|
9079
|
-
|
|
9082
|
+
yu,
|
|
9080
9083
|
{
|
|
9081
9084
|
in: !0,
|
|
9082
9085
|
orientation: "horizontal",
|
|
@@ -9116,7 +9119,7 @@ const tr = lt.memo((t) => {
|
|
|
9116
9119
|
flex: 1
|
|
9117
9120
|
},
|
|
9118
9121
|
children: /* @__PURE__ */ n(
|
|
9119
|
-
|
|
9122
|
+
tu,
|
|
9120
9123
|
{
|
|
9121
9124
|
sx: {
|
|
9122
9125
|
fontSize: 22,
|
|
@@ -9149,7 +9152,7 @@ const tr = lt.memo((t) => {
|
|
|
9149
9152
|
alignItems: "center"
|
|
9150
9153
|
},
|
|
9151
9154
|
children: /* @__PURE__ */ n(
|
|
9152
|
-
|
|
9155
|
+
nu,
|
|
9153
9156
|
{
|
|
9154
9157
|
sx: {
|
|
9155
9158
|
fontSize: 22,
|
|
@@ -9294,10 +9297,10 @@ function qr(t) {
|
|
|
9294
9297
|
}
|
|
9295
9298
|
e(qr, "stagedSlotIdOf");
|
|
9296
9299
|
function hh(t, r, i) {
|
|
9297
|
-
return
|
|
9300
|
+
return Iu(i, t.container(r), `ui-part-stage-${r}`);
|
|
9298
9301
|
}
|
|
9299
9302
|
e(hh, "renderStagedPart");
|
|
9300
|
-
const
|
|
9303
|
+
const Ml = /* @__PURE__ */ e(({ slotKey: t, priority: r }) => {
|
|
9301
9304
|
const i = Lt(Ya), c = se(null), f = se(null);
|
|
9302
9305
|
return f.current == null && (f.current = Symbol("ui-part-anchor")), Jr(() => {
|
|
9303
9306
|
const s = c.current;
|
|
@@ -9318,7 +9321,7 @@ function fh(t, r, i = !1) {
|
|
|
9318
9321
|
});
|
|
9319
9322
|
}
|
|
9320
9323
|
e(fh, "hideUnfinishedUiParts");
|
|
9321
|
-
const
|
|
9324
|
+
const _l = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c, onLinkClicked: f, appendWaitingPart: s, messagesRef: y, isConnectionOpen: b, friendlyMode: T = !1 }) => {
|
|
9322
9325
|
const { showToolCalls: E, showPersona: R, askUserPresentation: k } = ct(), v = dt(), C = se(null), [u, x] = Q(!1), w = se(null);
|
|
9323
9326
|
w.current == null && (w.current = new ya());
|
|
9324
9327
|
const m = w.current;
|
|
@@ -9338,7 +9341,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9338
9341
|
const B = t.parts[t.parts.length - 1];
|
|
9339
9342
|
B.waitingDetails && (B.waitingDetails.loadDots = !0);
|
|
9340
9343
|
}
|
|
9341
|
-
const p = new
|
|
9344
|
+
const p = new bd(t, new yd());
|
|
9342
9345
|
let z = [];
|
|
9343
9346
|
if (!t.parts)
|
|
9344
9347
|
return null;
|
|
@@ -9360,7 +9363,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9360
9363
|
maxWidth: "100%"
|
|
9361
9364
|
};
|
|
9362
9365
|
}, "getStyleGroup"), re = /* @__PURE__ */ e((B, G) => {
|
|
9363
|
-
const U = qr(B), N = U ? /* @__PURE__ */ n(
|
|
9366
|
+
const U = qr(B), N = U ? /* @__PURE__ */ n(Ml, { slotKey: U, priority: uh }) : /* @__PURE__ */ n(
|
|
9364
9367
|
tr,
|
|
9365
9368
|
{
|
|
9366
9369
|
onGoing: r,
|
|
@@ -9385,7 +9388,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9385
9388
|
);
|
|
9386
9389
|
}, "getMessagePart");
|
|
9387
9390
|
return /* @__PURE__ */ n(Ya.Provider, { value: m, children: /* @__PURE__ */ A(kt, { children: [
|
|
9388
|
-
/* @__PURE__ */ n(
|
|
9391
|
+
/* @__PURE__ */ n(fl, { isUser: !1, message: t, tone: "light" }),
|
|
9389
9392
|
/* @__PURE__ */ A(
|
|
9390
9393
|
"div",
|
|
9391
9394
|
{
|
|
@@ -9398,7 +9401,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9398
9401
|
paddingBottom: 12,
|
|
9399
9402
|
// Indent the body under the persona label (avatar + gap) so text starts after the avatar.
|
|
9400
9403
|
// Hosts can collapse it (phone widths: --aia-persona-indent: 0px) — those are precious pixels.
|
|
9401
|
-
paddingLeft: R ? `var(--aia-persona-indent, ${
|
|
9404
|
+
paddingLeft: R ? `var(--aia-persona-indent, ${hl}px)` : void 0,
|
|
9402
9405
|
color: h ? v.palette.text.disabled : v.palette.text.primary
|
|
9403
9406
|
},
|
|
9404
9407
|
"data-interaction-question": t.interactionQuestion,
|
|
@@ -9454,9 +9457,9 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9454
9457
|
}
|
|
9455
9458
|
)
|
|
9456
9459
|
] }) });
|
|
9457
|
-
}, "MessageAgent"),
|
|
9460
|
+
}, "MessageAgent"), zl = /* @__PURE__ */ e(({ message: t, onLinkClicked: r, appendWaitingPart: i, messagesRef: c, friendlyMode: f }) => /* @__PURE__ */ A(oe, { children: [
|
|
9458
9461
|
/* @__PURE__ */ n(dh, { message: t, onLinkClicked: r }),
|
|
9459
|
-
/* @__PURE__ */ n(
|
|
9462
|
+
/* @__PURE__ */ n(_l, { onGoing: !1, container: "message", isConnectionOpen: !0, message: t, onLinkClicked: r, appendWaitingPart: i, messagesRef: c, preview: !1, friendlyMode: f })
|
|
9460
9463
|
] }), "Message"), gh = /* @__PURE__ */ e(({
|
|
9461
9464
|
messageRefs: t,
|
|
9462
9465
|
showStickyHeader: r
|
|
@@ -9467,7 +9470,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9467
9470
|
}), c = ge((B) => B.loadingType), f = ge((B) => B.loading), s = ge((B) => B.messages), y = ge((B) => B.sendingMessage), b = ge((B) => B.currentMessage), [T, E] = Q(null), R = se(null), k = dt(), v = k.breakpoints.down("sm");
|
|
9468
9471
|
ce(() => {
|
|
9469
9472
|
}, [v]);
|
|
9470
|
-
const { onVisibleQuestionChange: C } = ct(), [u, x] = Q(null), [w] = Q(null), [m, h] = Q(!1), M =
|
|
9473
|
+
const { onVisibleQuestionChange: C } = ct(), [u, x] = Q(null), [w] = Q(null), [m, h] = Q(!1), M = Pu((B) => {
|
|
9471
9474
|
x(B);
|
|
9472
9475
|
}, 10);
|
|
9473
9476
|
ce(() => {
|
|
@@ -9653,7 +9656,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9653
9656
|
}
|
|
9654
9657
|
},
|
|
9655
9658
|
children: /* @__PURE__ */ n(
|
|
9656
|
-
|
|
9659
|
+
ru,
|
|
9657
9660
|
{
|
|
9658
9661
|
sx: {
|
|
9659
9662
|
fontSize: 22,
|
|
@@ -9748,8 +9751,8 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9748
9751
|
b(),
|
|
9749
9752
|
r
|
|
9750
9753
|
] }),
|
|
9751
|
-
/* @__PURE__ */ n(ia, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ n(
|
|
9752
|
-
/* @__PURE__ */ n(
|
|
9754
|
+
/* @__PURE__ */ n(ia, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ n(Zc, { id: "alert-dialog-description", children: /* @__PURE__ */ n(Ce, { sx: { mt: 1 }, children: /* @__PURE__ */ A(ed, { severity: T(), sx: { "& .MuiAlert-message": { width: "100%" } }, children: [
|
|
9755
|
+
/* @__PURE__ */ n(td, { children: r }),
|
|
9753
9756
|
i
|
|
9754
9757
|
] }) }) }) }),
|
|
9755
9758
|
/* @__PURE__ */ A(sa, { sx: { backgroundColor: "background.paper" }, children: [
|
|
@@ -9759,7 +9762,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9759
9762
|
]
|
|
9760
9763
|
}
|
|
9761
9764
|
);
|
|
9762
|
-
}, "AlertDialog"), ni = class ni extends
|
|
9765
|
+
}, "AlertDialog"), ni = class ni extends Uc {
|
|
9763
9766
|
constructor(r) {
|
|
9764
9767
|
super(r), this.state = { hasError: !1 };
|
|
9765
9768
|
}
|
|
@@ -9777,7 +9780,7 @@ const Ml = /* @__PURE__ */ e(({ message: t, onGoing: r, container: i, preview: c
|
|
|
9777
9780
|
};
|
|
9778
9781
|
e(ni, "ErrorBoundary");
|
|
9779
9782
|
let xa = ni;
|
|
9780
|
-
const bh = {},
|
|
9783
|
+
const bh = {}, Rl = /* @__PURE__ */ e(({ onLinkClicked: t, eventBusService: r, messagesRef: i, artifactService: c, friendlyMode: f }) => {
|
|
9781
9784
|
const s = ge((b) => b.turnOpen), y = ge((b) => b.currentMessage);
|
|
9782
9785
|
return y ? /* @__PURE__ */ n(xa, { children: /* @__PURE__ */ n(
|
|
9783
9786
|
D,
|
|
@@ -9814,10 +9817,10 @@ const bh = {}, zl = /* @__PURE__ */ e(({ onLinkClicked: t, eventBusService: r, m
|
|
|
9814
9817
|
textAlign: "left !important"
|
|
9815
9818
|
}
|
|
9816
9819
|
},
|
|
9817
|
-
children: y && /* @__PURE__ */ n(
|
|
9820
|
+
children: y && /* @__PURE__ */ n(_l, { onGoing: !0, container: "currentMessage", isConnectionOpen: s, message: y, onLinkClicked: t, appendWaitingPart: s, messagesRef: i, preview: !0, friendlyMode: f })
|
|
9818
9821
|
}
|
|
9819
9822
|
) }) : null;
|
|
9820
|
-
}, "CurrentMessage"),
|
|
9823
|
+
}, "CurrentMessage"), Dl = "Prompt cancelado";
|
|
9821
9824
|
function Qa() {
|
|
9822
9825
|
var T;
|
|
9823
9826
|
const t = ge((E) => E.turnOpen), r = ge((E) => E.currentMessage), { agentGatewayService: i } = ct(), c = Ee(() => {
|
|
@@ -9841,12 +9844,12 @@ function Qa() {
|
|
|
9841
9844
|
currentMessage: r,
|
|
9842
9845
|
turnOpen: t,
|
|
9843
9846
|
cancel: /* @__PURE__ */ e(() => {
|
|
9844
|
-
b && i.answerHumanTool(b, `{status: "${
|
|
9847
|
+
b && i.answerHumanTool(b, `{status: "${Dl}"}`);
|
|
9845
9848
|
}, "cancel")
|
|
9846
9849
|
};
|
|
9847
9850
|
}
|
|
9848
9851
|
e(Qa, "useParkedAskUser");
|
|
9849
|
-
const
|
|
9852
|
+
const Ol = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do agente" }) => {
|
|
9850
9853
|
var v, C, u;
|
|
9851
9854
|
const i = dt(), [c, f] = Q(!1), { askUserPresentation: s } = ct(), { parked: y, toRender: b, currentMessage: T, turnOpen: E, cancel: R } = Qa(), k = (v = y == null ? void 0 : y.functionDetails) == null ? void 0 : v.id;
|
|
9852
9855
|
return ce(() => {
|
|
@@ -9877,7 +9880,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
9877
9880
|
b && /* @__PURE__ */ A(D, { sx: { flex: "1 1 auto", position: "relative", minHeight: 0, maxHeight: c ? 80 : 400, transition: "max-height 0.5s ease", overflowY: c ? "clip" : "auto", px: 1.5, pt: 1, pb: 1.25 }, children: [
|
|
9878
9881
|
/* @__PURE__ */ n(D, { sx: { position: "absolute", left: "45%", width: 36, height: 4, borderRadius: 2, top: 5, bgcolor: "divider", mb: 1 } }),
|
|
9879
9882
|
/* @__PURE__ */ A(Oe, { sx: { position: "absolute", m: 0, p: 0, right: "1.5%", top: 5 }, gap: 1, direction: "row", children: [
|
|
9880
|
-
/* @__PURE__ */ n(Xt, { onClick: /* @__PURE__ */ e(() => f(!c), "onClick"), type: "button", sx: { p: 0, color: i.palette.border.soft }, children: /* @__PURE__ */ n(
|
|
9883
|
+
/* @__PURE__ */ n(Xt, { onClick: /* @__PURE__ */ e(() => f(!c), "onClick"), type: "button", sx: { p: 0, color: i.palette.border.soft }, children: /* @__PURE__ */ n(ou, { sx: { rotate: c ? "-90deg" : "90deg", fontSize: "20px" } }) }),
|
|
9881
9884
|
/* @__PURE__ */ n(Xt, { onClick: R, type: "button", sx: { p: 0, color: i.palette.border.soft }, children: /* @__PURE__ */ n(_s, { sx: { fontSize: "18px" } }) })
|
|
9882
9885
|
] }),
|
|
9883
9886
|
r && ((u = b == null ? void 0 : b.functionDetails) == null ? void 0 : u.name) && /* @__PURE__ */ A(
|
|
@@ -9899,7 +9902,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
9899
9902
|
children: [
|
|
9900
9903
|
r,
|
|
9901
9904
|
" · ",
|
|
9902
|
-
|
|
9905
|
+
gl(b.functionDetails.name)
|
|
9903
9906
|
]
|
|
9904
9907
|
}
|
|
9905
9908
|
),
|
|
@@ -9936,7 +9939,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
9936
9939
|
Idle: "info"
|
|
9937
9940
|
}, xh = /* @__PURE__ */ e(() => {
|
|
9938
9941
|
const { connectionStatus: t, sessionActive: r, lastActivity: i, loadingError: c } = ge(
|
|
9939
|
-
|
|
9942
|
+
ju((C) => ({ connectionStatus: C.connectionStatus, loadingStatus: C.loading, loadingError: C.loadingError, sessionActive: C.sessionActive, lastActivity: C.lastActivity }))
|
|
9940
9943
|
), [f, s] = Q(0), y = Tt(), b = /* @__PURE__ */ e((C) => {
|
|
9941
9944
|
switch (C) {
|
|
9942
9945
|
case Ie.Connected:
|
|
@@ -9951,7 +9954,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
9951
9954
|
return "";
|
|
9952
9955
|
}
|
|
9953
9956
|
}, "getSmallStatus"), T = /* @__PURE__ */ e(() => !r && t !== "Idle" ? { color: "secondary", status: "Session Inactive" } : { color: yh[t.toString()], status: b(t) }, "getState");
|
|
9954
|
-
|
|
9957
|
+
gu(() => {
|
|
9955
9958
|
s((/* @__PURE__ */ new Date()).getTime() - i);
|
|
9956
9959
|
}, 1500);
|
|
9957
9960
|
const E = T(), R = f / rr > pa, k = rr / pa / 1e3, v = Math.ceil((rr - f) / 1e3);
|
|
@@ -10071,7 +10074,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10071
10074
|
const xe = document.createElement("a");
|
|
10072
10075
|
xe.href = ne, xe.download = ne, xe.style.display = "none", document.body.appendChild(xe), xe.click(), document.body.removeChild(xe);
|
|
10073
10076
|
}, []), Bt = Se(async (ne, xe) => {
|
|
10074
|
-
const { action: Ne, url: mt, question: Wt, parameter: Fe } =
|
|
10077
|
+
const { action: Ne, url: mt, question: Wt, parameter: Fe } = _d(ne, k ?? "", xe);
|
|
10075
10078
|
switch (Ne) {
|
|
10076
10079
|
case "URL":
|
|
10077
10080
|
window.open(mt, "_blank");
|
|
@@ -10242,13 +10245,13 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10242
10245
|
// replay's `useEffect`s clobbered live state every time
|
|
10243
10246
|
// the user opened the session (the "h:1 corruption"
|
|
10244
10247
|
// path).
|
|
10245
|
-
/* @__PURE__ */ n(
|
|
10248
|
+
/* @__PURE__ */ n(Tl, { children: /* @__PURE__ */ n(kt, { direction: "column", spacing: 0, children: u.filter((ne) => ne.turn_complete).map((ne, xe) => /* @__PURE__ */ A(
|
|
10246
10249
|
D,
|
|
10247
10250
|
{
|
|
10248
10251
|
sx: { p: 0.5, width: M ? "100%" : "98%" },
|
|
10249
10252
|
children: [
|
|
10250
10253
|
/* @__PURE__ */ n(
|
|
10251
|
-
|
|
10254
|
+
zl,
|
|
10252
10255
|
{
|
|
10253
10256
|
messagesRef: j,
|
|
10254
10257
|
onLinkClicked: Bt,
|
|
@@ -10263,7 +10266,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10263
10266
|
ne.interactionId
|
|
10264
10267
|
)) }) }),
|
|
10265
10268
|
/* @__PURE__ */ n(
|
|
10266
|
-
|
|
10269
|
+
Rl,
|
|
10267
10270
|
{
|
|
10268
10271
|
artifactService: re,
|
|
10269
10272
|
eventBusService: i,
|
|
@@ -10296,7 +10299,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10296
10299
|
children: R.name
|
|
10297
10300
|
}
|
|
10298
10301
|
),
|
|
10299
|
-
/* @__PURE__ */ n(
|
|
10302
|
+
/* @__PURE__ */ n(nd, { in: B, timeout: 300, children: /* @__PURE__ */ A(
|
|
10300
10303
|
D,
|
|
10301
10304
|
{
|
|
10302
10305
|
sx: {
|
|
@@ -10352,7 +10355,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10352
10355
|
children: [
|
|
10353
10356
|
Le.current === !0 ? /* @__PURE__ */ n(Ri, { sx: { fontSize: 10 } }) : /* @__PURE__ */ n(Di, { sx: { fontSize: 20 } }),
|
|
10354
10357
|
/* @__PURE__ */ n(te, { variant: "body2", sx: { fontWeight: 500 }, children: "New content!" }),
|
|
10355
|
-
/* @__PURE__ */ n(
|
|
10358
|
+
/* @__PURE__ */ n(Fu, { sx: { fontSize: 15 } })
|
|
10356
10359
|
]
|
|
10357
10360
|
}
|
|
10358
10361
|
) }),
|
|
@@ -10440,7 +10443,7 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10440
10443
|
)
|
|
10441
10444
|
}
|
|
10442
10445
|
),
|
|
10443
|
-
E !== "inline" && T && /* @__PURE__ */ n(
|
|
10446
|
+
E !== "inline" && T && /* @__PURE__ */ n(Ol, { promptHeight: ot }),
|
|
10444
10447
|
!b && /* @__PURE__ */ n(
|
|
10445
10448
|
eo,
|
|
10446
10449
|
{
|
|
@@ -10461,10 +10464,10 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10461
10464
|
}
|
|
10462
10465
|
)
|
|
10463
10466
|
] });
|
|
10464
|
-
}, "ChatPane"),
|
|
10467
|
+
}, "ChatPane"), Pl = ur(
|
|
10465
10468
|
({ bordered: t, borderRadius: r, elevation: i, onToolEvent: c, bottomSlot: f, children: s }, y) => {
|
|
10466
10469
|
const { sessionStore: b, eventBusService: T, sendMessage: E } = ct(), R = se(c);
|
|
10467
|
-
R.current = c,
|
|
10470
|
+
R.current = c, qc(y, () => ({
|
|
10468
10471
|
sendMessage: E,
|
|
10469
10472
|
getMessages: /* @__PURE__ */ e(() => b.getState().messages, "getMessages"),
|
|
10470
10473
|
getSession: /* @__PURE__ */ e(() => b.getState().session, "getSession"),
|
|
@@ -10494,11 +10497,11 @@ const Dl = /* @__PURE__ */ e(({ promptHeight: t, eyebrowLabel: r = "pergunta do
|
|
|
10494
10497
|
) : v;
|
|
10495
10498
|
}
|
|
10496
10499
|
);
|
|
10497
|
-
|
|
10500
|
+
Pl.displayName = "AiChatInner";
|
|
10498
10501
|
const fo = ur((t, r) => {
|
|
10499
10502
|
const { bordered: i, borderRadius: c, elevation: f, children: s, bottomSlot: y, ...b } = t;
|
|
10500
10503
|
return /* @__PURE__ */ n(js, { ...b, children: /* @__PURE__ */ n(
|
|
10501
|
-
|
|
10504
|
+
Pl,
|
|
10502
10505
|
{
|
|
10503
10506
|
ref: r,
|
|
10504
10507
|
bordered: i,
|
|
@@ -10511,7 +10514,7 @@ const fo = ur((t, r) => {
|
|
|
10511
10514
|
) });
|
|
10512
10515
|
});
|
|
10513
10516
|
fo.displayName = "AiChat";
|
|
10514
|
-
function
|
|
10517
|
+
function Fl() {
|
|
10515
10518
|
const t = Lt(cn), r = t == null ? void 0 : t.sessionStore, [i, c] = Q(() => (r == null ? void 0 : r.getState().turnOpen) ?? !1);
|
|
10516
10519
|
return ce(() => {
|
|
10517
10520
|
if (!r) {
|
|
@@ -10523,13 +10526,13 @@ function Pl() {
|
|
|
10523
10526
|
});
|
|
10524
10527
|
}, [r]), i;
|
|
10525
10528
|
}
|
|
10526
|
-
e(
|
|
10529
|
+
e(Fl, "useTurnOpen");
|
|
10527
10530
|
const io = /* @__PURE__ */ new Map();
|
|
10528
|
-
function
|
|
10531
|
+
function jl(t, r) {
|
|
10529
10532
|
let i = io.get(t);
|
|
10530
10533
|
return i || (i = r(), io.set(t, i)), i;
|
|
10531
10534
|
}
|
|
10532
|
-
e(
|
|
10535
|
+
e(jl, "getSharedAiChatEngine");
|
|
10533
10536
|
async function wh(t) {
|
|
10534
10537
|
const r = io.get(t);
|
|
10535
10538
|
r && (io.delete(t), await r.dispose());
|
|
@@ -10550,17 +10553,17 @@ function kh(t) {
|
|
|
10550
10553
|
};
|
|
10551
10554
|
}
|
|
10552
10555
|
e(kh, "themeNotificationPort");
|
|
10553
|
-
function
|
|
10556
|
+
function Ll(t, r) {
|
|
10554
10557
|
var c, f;
|
|
10555
10558
|
const i = ((c = t.agentConfig) == null ? void 0 : c.id) ?? ((f = t.agentConfig) == null ? void 0 : f.name);
|
|
10556
10559
|
if (!i)
|
|
10557
10560
|
throw new Error("An engine needs an agent id: the gateway stamps it on every send.");
|
|
10558
10561
|
return r ? `${i}:${r}` : i;
|
|
10559
10562
|
}
|
|
10560
|
-
e(
|
|
10563
|
+
e(Ll, "engineKeyFor");
|
|
10561
10564
|
function Sh(t, r) {
|
|
10562
|
-
const i = dt(), c =
|
|
10563
|
-
() =>
|
|
10565
|
+
const i = dt(), c = Ll(t.agentContext, r == null ? void 0 : r.scope), f = Ee(
|
|
10566
|
+
() => jl(c, () => Pa({
|
|
10564
10567
|
...t,
|
|
10565
10568
|
notificationPort: t.notificationPort ?? kh(i)
|
|
10566
10569
|
})),
|
|
@@ -10605,7 +10608,7 @@ const Ch = /* @__PURE__ */ e(({
|
|
|
10605
10608
|
{
|
|
10606
10609
|
variant: "contained",
|
|
10607
10610
|
color: "primary",
|
|
10608
|
-
startIcon: /* @__PURE__ */ n(
|
|
10611
|
+
startIcon: /* @__PURE__ */ n(au, { sx: { fontSize: 18 } }),
|
|
10609
10612
|
onClick: /* @__PURE__ */ e(() => k(!1), "onClick"),
|
|
10610
10613
|
sx: { boxShadow: "0 6px 20px rgba(0,0,0,0.35)" },
|
|
10611
10614
|
children: c
|
|
@@ -10641,7 +10644,7 @@ const Ch = /* @__PURE__ */ e(({
|
|
|
10641
10644
|
sx: { px: 2, py: 1.25, borderBottom: `1px solid ${f.palette.divider}`, flexShrink: 0 },
|
|
10642
10645
|
children: [
|
|
10643
10646
|
/* @__PURE__ */ n(te, { sx: { fontSize: 13, fontWeight: 600, flex: 1, minWidth: 0 }, children: t }),
|
|
10644
|
-
i && /* @__PURE__ */ n(We, { onClick: /* @__PURE__ */ e(() => k(!0), "onClick"), type: "button", size: "small", sx: { p: 0.25, color: "text.secondary" }, children: /* @__PURE__ */ n(
|
|
10647
|
+
i && /* @__PURE__ */ n(We, { onClick: /* @__PURE__ */ e(() => k(!0), "onClick"), type: "button", size: "small", sx: { p: 0.25, color: "text.secondary" }, children: /* @__PURE__ */ n(iu, { sx: { fontSize: 18 } }) }),
|
|
10645
10648
|
/* @__PURE__ */ n(We, { onClick: E, type: "button", size: "small", sx: { p: 0.25, color: "text.secondary" }, children: /* @__PURE__ */ n(_s, { sx: { fontSize: 18 } }) })
|
|
10646
10649
|
]
|
|
10647
10650
|
}
|
|
@@ -10684,13 +10687,13 @@ const Ch = /* @__PURE__ */ e(({
|
|
|
10684
10687
|
function k(w) {
|
|
10685
10688
|
switch (w) {
|
|
10686
10689
|
case "text/html":
|
|
10687
|
-
return /* @__PURE__ */ n(
|
|
10690
|
+
return /* @__PURE__ */ n(Lu, { fontSize: "large" });
|
|
10688
10691
|
case "text/csv":
|
|
10689
|
-
return /* @__PURE__ */ n(
|
|
10692
|
+
return /* @__PURE__ */ n(du, { fontSize: "large" });
|
|
10690
10693
|
case "application/pdf":
|
|
10691
|
-
return /* @__PURE__ */ n(
|
|
10694
|
+
return /* @__PURE__ */ n(cu, { fontSize: "large" });
|
|
10692
10695
|
default:
|
|
10693
|
-
return /* @__PURE__ */ n(
|
|
10696
|
+
return /* @__PURE__ */ n(lu, { fontSize: "large" });
|
|
10694
10697
|
}
|
|
10695
10698
|
}
|
|
10696
10699
|
e(k, "geticon");
|
|
@@ -10740,7 +10743,7 @@ const Ch = /* @__PURE__ */ e(({
|
|
|
10740
10743
|
position: "relative"
|
|
10741
10744
|
// For overlay positioning
|
|
10742
10745
|
}, children: /* @__PURE__ */ A(Oe, { direction: "row", gap: 2, alignItems: "center", children: [
|
|
10743
|
-
/* @__PURE__ */ n(
|
|
10746
|
+
/* @__PURE__ */ n(rd, { size: 60 }),
|
|
10744
10747
|
/* @__PURE__ */ n($e, { variant: "h4", color: "text.secondary", align: "center", children: "Loading..." })
|
|
10745
10748
|
] }) }) : t != null && t.src ? /* @__PURE__ */ n("div", { className: "iframe-container", children: /* @__PURE__ */ n("iframe", { src: `${t == null ? void 0 : t.src}`, style: { minHeight: "80vh", width: "100%", borderRadius: "var(--radius-md)" } }) }) : /* @__PURE__ */ n("div", { id: `container-table_${(t == null ? void 0 : t.id) ?? "idnull"}_${r}_${y}`, children: /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: { __html: (t == null ? void 0 : t.html) ?? "" } }) });
|
|
10746
10749
|
}
|
|
@@ -10771,7 +10774,7 @@ const Ch = /* @__PURE__ */ e(({
|
|
|
10771
10774
|
// For overlay positioning
|
|
10772
10775
|
}, children: [
|
|
10773
10776
|
s === "browser" && E,
|
|
10774
|
-
y && /* @__PURE__ */ n(
|
|
10777
|
+
y && /* @__PURE__ */ n(od, { onClick: /* @__PURE__ */ e(() => f ? f(w) : console.log("No subscriber"), "onClick"), sx: {
|
|
10775
10778
|
position: "absolute",
|
|
10776
10779
|
right: "0",
|
|
10777
10780
|
top: "0",
|
|
@@ -10794,7 +10797,7 @@ const Ch = /* @__PURE__ */ e(({
|
|
|
10794
10797
|
borderRadius: "unset",
|
|
10795
10798
|
outline: "none"
|
|
10796
10799
|
}
|
|
10797
|
-
}, children: /* @__PURE__ */ n(
|
|
10800
|
+
}, children: /* @__PURE__ */ n(su, {}) }),
|
|
10798
10801
|
s === "browser" && R,
|
|
10799
10802
|
/* @__PURE__ */ n(
|
|
10800
10803
|
"img",
|
|
@@ -10840,7 +10843,7 @@ const Ah = {
|
|
|
10840
10843
|
transform: "translateX(-50%)"
|
|
10841
10844
|
// Center the marker on its position
|
|
10842
10845
|
};
|
|
10843
|
-
function
|
|
10846
|
+
function Bl({ value: t, valueBuffer: r, markers: i, sx: c }) {
|
|
10844
10847
|
const f = Math.min(100, t);
|
|
10845
10848
|
return /* @__PURE__ */ n(Oe, { direction: "row", alignItems: "center", spacing: 0.5, sx: { width: "100%" }, children: /* @__PURE__ */ A(D, { sx: { position: "relative", ...c }, children: [
|
|
10846
10849
|
/* @__PURE__ */ n(Oa, { variant: "determinate", value: f, valueBuffer: r, color: "inherit", sx: { height: 13, borderRadius: 1 } }),
|
|
@@ -10861,7 +10864,7 @@ function Ll({ value: t, valueBuffer: r, markers: i, sx: c }) {
|
|
|
10861
10864
|
) }, "TT" + y))
|
|
10862
10865
|
] }) });
|
|
10863
10866
|
}
|
|
10864
|
-
e(
|
|
10867
|
+
e(Bl, "LinearProgressBarWithMarkers");
|
|
10865
10868
|
const Ih = /* @__PURE__ */ e(({
|
|
10866
10869
|
text: t,
|
|
10867
10870
|
totalTime: r,
|
|
@@ -10871,7 +10874,7 @@ const Ih = /* @__PURE__ */ e(({
|
|
|
10871
10874
|
const [f, s] = Q(""), y = se(!1);
|
|
10872
10875
|
return ce(() => {
|
|
10873
10876
|
s("");
|
|
10874
|
-
const b = [...t], E =
|
|
10877
|
+
const b = [...t], E = zd(b, t.length / 100).map((R) => R.join(""));
|
|
10875
10878
|
setTimeout(() => {
|
|
10876
10879
|
E.length === 0 && s(t);
|
|
10877
10880
|
const R = r / E.length, k = R * 0.4;
|
|
@@ -10895,16 +10898,16 @@ const Ih = /* @__PURE__ */ e(({
|
|
|
10895
10898
|
}, i);
|
|
10896
10899
|
}, [t, r, i]), y.current ? c ? /* @__PURE__ */ n(zt, { sessionId: "", text: t }) : /* @__PURE__ */ n(oe, { children: t }) : c ? /* @__PURE__ */ n(zt, { sessionId: "", text: f }) : /* @__PURE__ */ n(oe, { children: f });
|
|
10897
10900
|
}, "DelayTextComponent");
|
|
10898
|
-
function
|
|
10901
|
+
function $l(t) {
|
|
10899
10902
|
return t.turnOpen || t.phase !== "idle";
|
|
10900
10903
|
}
|
|
10901
|
-
e(
|
|
10902
|
-
function
|
|
10903
|
-
return !!t.disabled ||
|
|
10904
|
+
e($l, "isWaiting");
|
|
10905
|
+
function Wl(t) {
|
|
10906
|
+
return !!t.disabled || $l(t);
|
|
10904
10907
|
}
|
|
10905
|
-
e(
|
|
10908
|
+
e(Wl, "isBlocked");
|
|
10906
10909
|
function Mh(t) {
|
|
10907
|
-
return
|
|
10910
|
+
return Wl(t) ? "ignore" : "run";
|
|
10908
10911
|
}
|
|
10909
10912
|
e(Mh, "decideClick");
|
|
10910
10913
|
const _h = "Aguarde o agente terminar…";
|
|
@@ -10918,7 +10921,7 @@ function zh({
|
|
|
10918
10921
|
sx: y,
|
|
10919
10922
|
...b
|
|
10920
10923
|
}) {
|
|
10921
|
-
const T =
|
|
10924
|
+
const T = Fl(), [E, R] = Q("idle"), k = se(t);
|
|
10922
10925
|
k.current = t;
|
|
10923
10926
|
const v = se(!0);
|
|
10924
10927
|
ce(() => () => {
|
|
@@ -10942,7 +10945,7 @@ function zh({
|
|
|
10942
10945
|
v.current && R("idle");
|
|
10943
10946
|
}, "settle");
|
|
10944
10947
|
M.then(d, d);
|
|
10945
|
-
}, []), u = { turnOpen: T, phase: E, disabled: c }, x =
|
|
10948
|
+
}, []), u = { turnOpen: T, phase: E, disabled: c }, x = $l(u), w = Wl(u);
|
|
10946
10949
|
return (
|
|
10947
10950
|
// Always wrapped, even with an empty title: a disabled MUI button fires no
|
|
10948
10951
|
// mouse events, so the tooltip — the explanation for the block — needs a host
|
|
@@ -10965,7 +10968,7 @@ function zh({
|
|
|
10965
10968
|
);
|
|
10966
10969
|
}
|
|
10967
10970
|
e(zh, "TurnAwareButton");
|
|
10968
|
-
const Rh = /* @__PURE__ */ new Set(["livetsx", "tsx", "jsx"]), Dh = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/i, ns = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/gi,
|
|
10971
|
+
const Rh = /* @__PURE__ */ new Set(["livetsx", "tsx", "jsx"]), Dh = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/i, ns = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/gi, Nl = /<i data-lt-tick><\/i>/g, Oh = 2e3, Ph = 100, Fh = /```(?:liveTsx|tsx|jsx)\s*\n[\s\S]*?\n```/i;
|
|
10969
10972
|
function jh(t, r) {
|
|
10970
10973
|
let i = -1, c;
|
|
10971
10974
|
const f = new RegExp(ns.source, ns.flags);
|
|
@@ -10974,7 +10977,7 @@ function jh(t, r) {
|
|
|
10974
10977
|
if (i === -1) return [0, 0];
|
|
10975
10978
|
const s = t.slice(i);
|
|
10976
10979
|
if (Fh.test(s)) return [0, 0];
|
|
10977
|
-
const y = s.match(
|
|
10980
|
+
const y = s.match(Nl), b = y ? y.length : 0, T = Math.max(1, r / Ph);
|
|
10978
10981
|
return [Math.min(b / T, 1), b];
|
|
10979
10982
|
}
|
|
10980
10983
|
e(jh, "computeProgress");
|
|
@@ -11030,21 +11033,21 @@ function Uh(t) {
|
|
|
11030
11033
|
return r.length === 0 || !r.every((i) => i.type === "text") ? null : r.map((i) => i.value ?? "").join("").trim();
|
|
11031
11034
|
}
|
|
11032
11035
|
e(Uh, "paragraphText");
|
|
11033
|
-
function
|
|
11036
|
+
function Hl(t, r) {
|
|
11034
11037
|
if (!(t != null && t.trim())) return [];
|
|
11035
11038
|
const [i, c] = jh(
|
|
11036
11039
|
t,
|
|
11037
11040
|
(r == null ? void 0 : r.maxCharsForFull) ?? Oh
|
|
11038
11041
|
);
|
|
11039
|
-
t = t.replace(
|
|
11042
|
+
t = t.replace(Nl, ""), t = Hh(t);
|
|
11040
11043
|
let f = null;
|
|
11041
11044
|
const s = Lh(t);
|
|
11042
11045
|
s && (t = s.before, f = s.partialCode);
|
|
11043
|
-
const y =
|
|
11046
|
+
const y = Eu().use(Tu).parse(t), b = [];
|
|
11044
11047
|
let T = [], E = !1;
|
|
11045
11048
|
const R = /* @__PURE__ */ e(() => {
|
|
11046
11049
|
if (T.length === 0) return;
|
|
11047
|
-
const k =
|
|
11050
|
+
const k = Au({ type: "root", children: T });
|
|
11048
11051
|
k.trim() && b.push({ type: "markdown", content: k }), T = [];
|
|
11049
11052
|
}, "flushBuffer");
|
|
11050
11053
|
for (const k of y.children) {
|
|
@@ -11064,19 +11067,19 @@ function Nl(t, r) {
|
|
|
11064
11067
|
}
|
|
11065
11068
|
return R(), E && b.push({ type: "liveTsx", code: "", partial: !0, progress: i, bytes: c * 100 }), f !== null && b.push({ type: "liveTsx", code: f, partial: !0 }), b;
|
|
11066
11069
|
}
|
|
11067
|
-
e(
|
|
11068
|
-
const Xa = 3e3,
|
|
11069
|
-
function
|
|
11070
|
-
return Lt(
|
|
11070
|
+
e(Hl, "parseContentBlocks");
|
|
11071
|
+
const Xa = 3e3, Vl = dr(Xa);
|
|
11072
|
+
function Ul() {
|
|
11073
|
+
return Lt(Vl);
|
|
11071
11074
|
}
|
|
11072
|
-
e(
|
|
11075
|
+
e(Ul, "useLiveTsxMaxCharsForFull");
|
|
11073
11076
|
const qh = /* @__PURE__ */ e(({ maxCharsForFull: t, children: r }) => {
|
|
11074
11077
|
const i = Ee(
|
|
11075
11078
|
() => t ?? Xa,
|
|
11076
11079
|
[t]
|
|
11077
11080
|
);
|
|
11078
|
-
return /* @__PURE__ */ n(
|
|
11079
|
-
}, "LiveTsxConfigProvider"),
|
|
11081
|
+
return /* @__PURE__ */ n(Vl.Provider, { value: i, children: r });
|
|
11082
|
+
}, "LiveTsxConfigProvider"), ql = /* @__PURE__ */ e(({
|
|
11080
11083
|
content: t,
|
|
11081
11084
|
sessionId: r,
|
|
11082
11085
|
scope: i,
|
|
@@ -11087,8 +11090,8 @@ const qh = /* @__PURE__ */ e(({ maxCharsForFull: t, children: r }) => {
|
|
|
11087
11090
|
onGoing: b,
|
|
11088
11091
|
friendlyMode: T
|
|
11089
11092
|
}) => {
|
|
11090
|
-
const E = Lt(cn), R = Lt(Ya), k =
|
|
11091
|
-
() =>
|
|
11093
|
+
const E = Lt(cn), R = Lt(Ya), k = Ul(), v = Kc(t), C = Ee(
|
|
11094
|
+
() => Hl(v, { maxCharsForFull: k }),
|
|
11092
11095
|
[v, k]
|
|
11093
11096
|
);
|
|
11094
11097
|
return C.filter((x) => {
|
|
@@ -11114,7 +11117,7 @@ const qh = /* @__PURE__ */ e(({ maxCharsForFull: t, children: r }) => {
|
|
|
11114
11117
|
},
|
|
11115
11118
|
"@media (prefers-reduced-motion: reduce)": { animation: "none" }
|
|
11116
11119
|
},
|
|
11117
|
-
children: I ? /* @__PURE__ */ n(
|
|
11120
|
+
children: I ? /* @__PURE__ */ n(Ml, { slotKey: x.slotId, priority: ph }) : (
|
|
11118
11121
|
// Legacy direct render: no stage in scope (standalone surface), or a
|
|
11119
11122
|
// part the stage doesn't manage (e.g. filtered out of the positional
|
|
11120
11123
|
// list by the host's showToolCalls rules).
|
|
@@ -11146,13 +11149,13 @@ const qh = /* @__PURE__ */ e(({ maxCharsForFull: t, children: r }) => {
|
|
|
11146
11149
|
);
|
|
11147
11150
|
});
|
|
11148
11151
|
}, "LlmResponseRender"), Yo = Symbol.for("envision:module-registry-extensions");
|
|
11149
|
-
function
|
|
11152
|
+
function Kl() {
|
|
11150
11153
|
const t = globalThis;
|
|
11151
11154
|
return t[Yo] || (t[Yo] = {}), t[Yo];
|
|
11152
11155
|
}
|
|
11153
|
-
e(
|
|
11156
|
+
e(Kl, "getRegistryExtensions");
|
|
11154
11157
|
function Kh(t, r) {
|
|
11155
|
-
const i =
|
|
11158
|
+
const i = Kl();
|
|
11156
11159
|
i[t] = {
|
|
11157
11160
|
...i[t] ?? {},
|
|
11158
11161
|
...r
|
|
@@ -11160,13 +11163,13 @@ function Kh(t, r) {
|
|
|
11160
11163
|
}
|
|
11161
11164
|
e(Kh, "extendModuleRegistry");
|
|
11162
11165
|
const Qo = Symbol.for("envision:default-scope-extensions");
|
|
11163
|
-
function
|
|
11166
|
+
function Gl() {
|
|
11164
11167
|
const t = globalThis;
|
|
11165
11168
|
return t[Qo] || (t[Qo] = {}), t[Qo];
|
|
11166
11169
|
}
|
|
11167
|
-
e(
|
|
11170
|
+
e(Gl, "getScopeExtensions");
|
|
11168
11171
|
function Gh(t) {
|
|
11169
|
-
const r =
|
|
11172
|
+
const r = Gl();
|
|
11170
11173
|
Object.assign(r, t);
|
|
11171
11174
|
}
|
|
11172
11175
|
e(Gh, "extendDefaultScope");
|
|
@@ -11187,16 +11190,16 @@ async function Yh() {
|
|
|
11187
11190
|
"@mui/icons-material": { ...r },
|
|
11188
11191
|
recharts: { ...i },
|
|
11189
11192
|
"@envision/ui-library": {
|
|
11190
|
-
...
|
|
11191
|
-
useEnvironment:
|
|
11193
|
+
...Qu,
|
|
11194
|
+
useEnvironment: Cl
|
|
11192
11195
|
}
|
|
11193
11196
|
};
|
|
11194
|
-
for (const [f, s] of Object.entries(
|
|
11197
|
+
for (const [f, s] of Object.entries(Kl()))
|
|
11195
11198
|
c[f] = { ...c[f] ?? {}, ...s };
|
|
11196
11199
|
return c;
|
|
11197
11200
|
}
|
|
11198
11201
|
e(Yh, "getModuleRegistry");
|
|
11199
|
-
function
|
|
11202
|
+
function Jl() {
|
|
11200
11203
|
return { ...{
|
|
11201
11204
|
React: na,
|
|
11202
11205
|
// JS globals (sandboxed code loses implicit access to these)
|
|
@@ -11230,9 +11233,9 @@ function Gl() {
|
|
|
11230
11233
|
undefined: void 0,
|
|
11231
11234
|
NaN: NaN,
|
|
11232
11235
|
Infinity: 1 / 0
|
|
11233
|
-
}, ...
|
|
11236
|
+
}, ...Gl() };
|
|
11234
11237
|
}
|
|
11235
|
-
e(
|
|
11238
|
+
e(Jl, "getDefaultJsxScope");
|
|
11236
11239
|
function rs(t) {
|
|
11237
11240
|
let r = (t + 1) * 2654435761 >>> 0;
|
|
11238
11241
|
return r ^= r >>> 16, r = Math.imul(r, 2246822519) >>> 0, r ^= r >>> 13, r = Math.imul(r, 3266489917) >>> 0, (r >>> 0) / 4294967295;
|
|
@@ -11334,7 +11337,7 @@ const Zo = 15, Qh = /* @__PURE__ */ e(() => {
|
|
|
11334
11337
|
)
|
|
11335
11338
|
}
|
|
11336
11339
|
);
|
|
11337
|
-
}, "ChartSkeleton"),
|
|
11340
|
+
}, "ChartSkeleton"), Yl = /* @__PURE__ */ e(({
|
|
11338
11341
|
showIcon: t = !1,
|
|
11339
11342
|
showChangeRow: r = !0
|
|
11340
11343
|
}) => /* @__PURE__ */ A(
|
|
@@ -11362,7 +11365,7 @@ const Zo = 15, Qh = /* @__PURE__ */ e(() => {
|
|
|
11362
11365
|
] })
|
|
11363
11366
|
]
|
|
11364
11367
|
}
|
|
11365
|
-
), "MetricSkeleton"),
|
|
11368
|
+
), "MetricSkeleton"), Ql = /* @__PURE__ */ e(({
|
|
11366
11369
|
metrics: t = 4,
|
|
11367
11370
|
showIcon: r = !1,
|
|
11368
11371
|
showChangeRow: i = !0
|
|
@@ -11374,7 +11377,7 @@ const Zo = 15, Qh = /* @__PURE__ */ e(() => {
|
|
|
11374
11377
|
gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))",
|
|
11375
11378
|
gap: 0.75
|
|
11376
11379
|
},
|
|
11377
|
-
children: Array.from({ length: t }, (c, f) => /* @__PURE__ */ n(
|
|
11380
|
+
children: Array.from({ length: t }, (c, f) => /* @__PURE__ */ n(Yl, { showIcon: r, showChangeRow: i }, f))
|
|
11378
11381
|
}
|
|
11379
11382
|
), "MetricGroupSkeleton"), Xh = /* @__PURE__ */ e(({ columns: t = 5, rows: r = 10 }) => {
|
|
11380
11383
|
const i = Tt(), c = Array.from({ length: t }, (E, R) => R), f = Array.from({ length: r }, (E, R) => R), s = i.palette.mode === "dark" ? we(i.palette.grey[700], 0.55) : we(i.palette.grey[300], 0.6), y = we(i.palette.divider, i.palette.mode === "dark" ? 0.9 : 1), b = we(i.palette.divider, 0.6), T = we(
|
|
@@ -11562,7 +11565,7 @@ const Zo = 15, Qh = /* @__PURE__ */ e(() => {
|
|
|
11562
11565
|
] }),
|
|
11563
11566
|
/* @__PURE__ */ A(Oe, { sx: { textAlign: "center" }, children: [
|
|
11564
11567
|
/* @__PURE__ */ A(Oe, { direction: "row", gap: 0.5, sx: { display: "inline-flex", alignItems: "center", flexWrap: "nowrap" }, children: [
|
|
11565
|
-
/* @__PURE__ */ n(
|
|
11568
|
+
/* @__PURE__ */ n(Yu, { sx: { fontSize: 13, color: c } }),
|
|
11566
11569
|
/* @__PURE__ */ n(
|
|
11567
11570
|
$e,
|
|
11568
11571
|
{
|
|
@@ -11647,15 +11650,15 @@ e(of, "compileToComponent");
|
|
|
11647
11650
|
const af = /<(chart|containtable|metricgroup|metric|iframe)\b/i, sf = {
|
|
11648
11651
|
chart: Qh,
|
|
11649
11652
|
containtable: Xh,
|
|
11650
|
-
metricgroup:
|
|
11651
|
-
metric:
|
|
11653
|
+
metricgroup: Ql,
|
|
11654
|
+
metric: Yl,
|
|
11652
11655
|
iframe: Zh
|
|
11653
11656
|
};
|
|
11654
11657
|
function lf(t) {
|
|
11655
11658
|
const r = af.exec(t);
|
|
11656
11659
|
if (!r) return null;
|
|
11657
11660
|
const i = r[1].toLowerCase();
|
|
11658
|
-
return i === "metric" && /metricgroup/i.test(t) ?
|
|
11661
|
+
return i === "metric" && /metricgroup/i.test(t) ? Ql : sf[i] ?? null;
|
|
11659
11662
|
}
|
|
11660
11663
|
e(lf, "detectSkeleton");
|
|
11661
11664
|
const ri = class ri extends lt.Component {
|
|
@@ -11689,7 +11692,7 @@ const cf = /* @__PURE__ */ e(({ code: t, partial: r, scope: i, progress: c = 0,
|
|
|
11689
11692
|
}, []);
|
|
11690
11693
|
const b = Ee(() => {
|
|
11691
11694
|
if (!s) return null;
|
|
11692
|
-
const d =
|
|
11695
|
+
const d = Jl();
|
|
11693
11696
|
return { ...s, ...d, ...i ?? {} };
|
|
11694
11697
|
}, [s, i]), T = Ee(() => {
|
|
11695
11698
|
if (r || !b) return { Component: null, error: null };
|
|
@@ -11743,8 +11746,8 @@ const cf = /* @__PURE__ */ e(({ code: t, partial: r, scope: i, progress: c = 0,
|
|
|
11743
11746
|
return () => window.clearTimeout(z);
|
|
11744
11747
|
}, [C]), t.includes(nf)) return null;
|
|
11745
11748
|
if (v && T.error) return E(T.error, !1);
|
|
11746
|
-
const m = lf(t), h = m ? /* @__PURE__ */ n(m, {}) : /* @__PURE__ */ n(tf, { progress: c, bytes: f }), M = /* @__PURE__ */ A(
|
|
11747
|
-
/* @__PURE__ */ n(
|
|
11749
|
+
const m = lf(t), h = m ? /* @__PURE__ */ n(m, {}) : /* @__PURE__ */ n(tf, { progress: c, bytes: f }), M = /* @__PURE__ */ A(Ju, { theme: R, children: [
|
|
11750
|
+
/* @__PURE__ */ n(ad, {}),
|
|
11748
11751
|
/* @__PURE__ */ n(so, { fallback: E, children: /* @__PURE__ */ n(Ce, { "data-live-jsx-content": "", children: T.Component ? /* @__PURE__ */ n(T.Component, {}) : /* @__PURE__ */ n(zt, { text: `\`\`\`tsx
|
|
11749
11752
|
${t}\`\`\``, sessionId: "" }) }) })
|
|
11750
11753
|
] });
|
|
@@ -12003,7 +12006,7 @@ ${t}\`\`\``, sessionId: "" }) }) })
|
|
|
12003
12006
|
}
|
|
12004
12007
|
}
|
|
12005
12008
|
}
|
|
12006
|
-
}, uf =
|
|
12009
|
+
}, uf = ud(df), pf = [
|
|
12007
12010
|
"#e0a458",
|
|
12008
12011
|
// amber (primary accent)
|
|
12009
12012
|
"#7d9bd1",
|
|
@@ -12067,7 +12070,7 @@ ${t}\`\`\``, sessionId: "" }) }) })
|
|
|
12067
12070
|
fill: f = !0,
|
|
12068
12071
|
strokeWidth: s = 1.5
|
|
12069
12072
|
}) => {
|
|
12070
|
-
const y = dt(), b = r ?? y.palette.primary.main, T =
|
|
12073
|
+
const y = dt(), b = r ?? y.palette.primary.main, T = Gc();
|
|
12071
12074
|
if (!t || t.length === 0) return null;
|
|
12072
12075
|
const E = Math.max(...t), R = Math.min(...t), k = E - R || 1, v = t.length > 1 ? i / (t.length - 1) : i, u = t.map((w, m) => [
|
|
12073
12076
|
m * v,
|
|
@@ -12107,7 +12110,7 @@ ${t}\`\`\``, sessionId: "" }) }) })
|
|
|
12107
12110
|
t,
|
|
12108
12111
|
/* @__PURE__ */ A(D, { sx: { display: "flex", flex: 1, minHeight: 0, overflow: "hidden" }, children: [
|
|
12109
12112
|
r,
|
|
12110
|
-
/* @__PURE__ */ n(D, { sx: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: i ?? /* @__PURE__ */ n(
|
|
12113
|
+
/* @__PURE__ */ n(D, { sx: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: i ?? /* @__PURE__ */ n(Bu, {}) })
|
|
12111
12114
|
] })
|
|
12112
12115
|
]
|
|
12113
12116
|
}
|
|
@@ -12272,7 +12275,7 @@ const ka = 48, Sa = /* @__PURE__ */ e(({
|
|
|
12272
12275
|
}
|
|
12273
12276
|
), "AppBarV2");
|
|
12274
12277
|
Sa.displayName = "AppBarV2";
|
|
12275
|
-
const vf = 300,
|
|
12278
|
+
const vf = 300, Xl = [
|
|
12276
12279
|
{
|
|
12277
12280
|
id: "dashboards",
|
|
12278
12281
|
label: "Dashboards",
|
|
@@ -12288,7 +12291,7 @@ const vf = 300, Ql = [
|
|
|
12288
12291
|
], Ca = /* @__PURE__ */ e(({
|
|
12289
12292
|
open: t,
|
|
12290
12293
|
onClose: r,
|
|
12291
|
-
navItems: i =
|
|
12294
|
+
navItems: i = Xl,
|
|
12292
12295
|
width: c = vf,
|
|
12293
12296
|
logo: f,
|
|
12294
12297
|
productName: s = "Agentic Explorer",
|
|
@@ -12334,7 +12337,7 @@ const vf = 300, Ql = [
|
|
|
12334
12337
|
[i, R, E, r]
|
|
12335
12338
|
);
|
|
12336
12339
|
return /* @__PURE__ */ A(
|
|
12337
|
-
|
|
12340
|
+
Hu,
|
|
12338
12341
|
{
|
|
12339
12342
|
anchor: "left",
|
|
12340
12343
|
open: t,
|
|
@@ -12856,7 +12859,7 @@ const kf = /* @__PURE__ */ e(({
|
|
|
12856
12859
|
p: 0.5,
|
|
12857
12860
|
"&:hover": { color: de.palette.text.primary, backgroundColor: de.palette.surface.hover }
|
|
12858
12861
|
}), "sx"),
|
|
12859
|
-
children: /* @__PURE__ */ n(
|
|
12862
|
+
children: /* @__PURE__ */ n(uu, { fontSize: "small" })
|
|
12860
12863
|
}
|
|
12861
12864
|
)
|
|
12862
12865
|
}
|
|
@@ -12910,7 +12913,7 @@ const kf = /* @__PURE__ */ e(({
|
|
|
12910
12913
|
}, "onClick"),
|
|
12911
12914
|
sx: /* @__PURE__ */ e((N) => ({ fontSize: 12, color: N.palette.text.primary }), "sx"),
|
|
12912
12915
|
children: [
|
|
12913
|
-
/* @__PURE__ */ n(ca, { sx: /* @__PURE__ */ e((N) => ({ color: N.palette.text.secondary, minWidth: 28 }), "sx"), children: /* @__PURE__ */ n(
|
|
12916
|
+
/* @__PURE__ */ n(ca, { sx: /* @__PURE__ */ e((N) => ({ color: N.palette.text.secondary, minWidth: 28 }), "sx"), children: /* @__PURE__ */ n(pu, { fontSize: "small" }) }),
|
|
12914
12917
|
/* @__PURE__ */ n(
|
|
12915
12918
|
Rn,
|
|
12916
12919
|
{
|
|
@@ -12929,7 +12932,7 @@ const kf = /* @__PURE__ */ e(({
|
|
|
12929
12932
|
}, "onClick"),
|
|
12930
12933
|
sx: /* @__PURE__ */ e((N) => ({ fontSize: 12, color: N.palette.secondary.main }), "sx"),
|
|
12931
12934
|
children: [
|
|
12932
|
-
/* @__PURE__ */ n(ca, { sx: /* @__PURE__ */ e((N) => ({ color: N.palette.secondary.main, minWidth: 28 }), "sx"), children: /* @__PURE__ */ n(
|
|
12935
|
+
/* @__PURE__ */ n(ca, { sx: /* @__PURE__ */ e((N) => ({ color: N.palette.secondary.main, minWidth: 28 }), "sx"), children: /* @__PURE__ */ n(hu, { fontSize: "small" }) }),
|
|
12933
12936
|
/* @__PURE__ */ n(
|
|
12934
12937
|
Rn,
|
|
12935
12938
|
{
|
|
@@ -12958,14 +12961,14 @@ const kf = /* @__PURE__ */ e(({
|
|
|
12958
12961
|
}
|
|
12959
12962
|
},
|
|
12960
12963
|
children: [
|
|
12961
|
-
/* @__PURE__ */ n(
|
|
12962
|
-
/* @__PURE__ */ n(
|
|
12964
|
+
/* @__PURE__ */ n($u, { sx: /* @__PURE__ */ e((N) => ({ fontSize: 14, color: N.palette.text.primary }), "sx"), children: "Excluir conversa?" }),
|
|
12965
|
+
/* @__PURE__ */ n(Wu, { children: /* @__PURE__ */ A(te, { sx: /* @__PURE__ */ e((N) => ({ fontSize: 12, color: N.palette.text.secondary }), "sx"), children: [
|
|
12963
12966
|
"Tem certeza que deseja excluir",
|
|
12964
12967
|
" ",
|
|
12965
12968
|
/* @__PURE__ */ n(D, { component: "strong", sx: /* @__PURE__ */ e((N) => ({ color: N.palette.text.primary }), "sx"), children: j == null ? void 0 : j.title }),
|
|
12966
12969
|
"? Esta ação não pode ser desfeita."
|
|
12967
12970
|
] }) }),
|
|
12968
|
-
/* @__PURE__ */ A(
|
|
12971
|
+
/* @__PURE__ */ A(Nu, { children: [
|
|
12969
12972
|
/* @__PURE__ */ n(
|
|
12970
12973
|
Vt,
|
|
12971
12974
|
{
|
|
@@ -14045,7 +14048,7 @@ const $f = /* @__PURE__ */ e(({
|
|
|
14045
14048
|
return d > I ? s.palette.warning.dark : d > I * 0.8 ? s.palette.secondary.light : d > I * 0.6 ? s.palette.secondary.dark : d > I * 0.4 ? s.palette.primary.dark : d > I * 0.2 ? s.palette.text.primary : s.palette.text.secondary;
|
|
14046
14049
|
}, "getPerSecondColor"), m = Se((d) => {
|
|
14047
14050
|
const I = 900 - Math.min(Math.round(1e3 * Math.max(d, 0.2) / 100), 9) * 100 + 100;
|
|
14048
|
-
return
|
|
14051
|
+
return Gu[I];
|
|
14049
14052
|
}, [y]), h = t ? { fontFamily: Aa, fontSize: "0.7rem" } : { fontSize: "0.7rem" }, M = /* @__PURE__ */ e(() => {
|
|
14050
14053
|
if (!r) return null;
|
|
14051
14054
|
const { turnOpen: d, suspended: I, suspending: p, onPause: z, onCancel: j } = r, q = I, K = d || I;
|
|
@@ -14095,7 +14098,7 @@ const $f = /* @__PURE__ */ e(({
|
|
|
14095
14098
|
),
|
|
14096
14099
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
14097
14100
|
!t && /* @__PURE__ */ A(oe, { children: [
|
|
14098
|
-
/* @__PURE__ */ n(
|
|
14101
|
+
/* @__PURE__ */ n(Vu, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
14099
14102
|
/* @__PURE__ */ n(
|
|
14100
14103
|
te,
|
|
14101
14104
|
{
|
|
@@ -14106,7 +14109,7 @@ const $f = /* @__PURE__ */ e(({
|
|
|
14106
14109
|
),
|
|
14107
14110
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } })
|
|
14108
14111
|
] }),
|
|
14109
|
-
/* @__PURE__ */ n(
|
|
14112
|
+
/* @__PURE__ */ n(Uu, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
14110
14113
|
/* @__PURE__ */ n(
|
|
14111
14114
|
te,
|
|
14112
14115
|
{
|
|
@@ -14118,7 +14121,7 @@ const $f = /* @__PURE__ */ e(({
|
|
|
14118
14121
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
14119
14122
|
k && /* @__PURE__ */ A(oe, { children: [
|
|
14120
14123
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
14121
|
-
/* @__PURE__ */ n(
|
|
14124
|
+
/* @__PURE__ */ n(qu, { sx: { fontSize: "0.8rem", color: "text.primary" } }),
|
|
14122
14125
|
/* @__PURE__ */ n(
|
|
14123
14126
|
te,
|
|
14124
14127
|
{
|
|
@@ -14130,7 +14133,7 @@ const $f = /* @__PURE__ */ e(({
|
|
|
14130
14133
|
] }),
|
|
14131
14134
|
C && /* @__PURE__ */ A(oe, { children: [
|
|
14132
14135
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
14133
|
-
/* @__PURE__ */ n(
|
|
14136
|
+
/* @__PURE__ */ n(Ku, { sx: { fontSize: "0.8rem", color: "text.secondary" } }),
|
|
14134
14137
|
/* @__PURE__ */ n(
|
|
14135
14138
|
te,
|
|
14136
14139
|
{
|
|
@@ -14152,7 +14155,7 @@ const $f = /* @__PURE__ */ e(({
|
|
|
14152
14155
|
/* @__PURE__ */ n(Bf, { info: y })
|
|
14153
14156
|
] })
|
|
14154
14157
|
) : /* @__PURE__ */ n(
|
|
14155
|
-
|
|
14158
|
+
Bl,
|
|
14156
14159
|
{
|
|
14157
14160
|
value: y.ratio * 100,
|
|
14158
14161
|
valueBuffer: y.previousRatio * 100,
|
|
@@ -14289,7 +14292,7 @@ const ds = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", Hf = "@key
|
|
|
14289
14292
|
/* @__PURE__ */ n(D, { sx: { px: 1, pb: 1 }, children: r })
|
|
14290
14293
|
]
|
|
14291
14294
|
}
|
|
14292
|
-
), "SectionCard"),
|
|
14295
|
+
), "SectionCard"), Zl = lt.memo(() => {
|
|
14293
14296
|
const t = ge((r) => {
|
|
14294
14297
|
var i;
|
|
14295
14298
|
return ((i = r.statistics) == null ? void 0 : i.elapsed) ?? 0;
|
|
@@ -14299,7 +14302,7 @@ const ds = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", Hf = "@key
|
|
|
14299
14302
|
" decorridos"
|
|
14300
14303
|
] });
|
|
14301
14304
|
});
|
|
14302
|
-
|
|
14305
|
+
Zl.displayName = "ElapsedClock";
|
|
14303
14306
|
const qf = {
|
|
14304
14307
|
tooltip: {
|
|
14305
14308
|
sx: /* @__PURE__ */ e((t) => ({
|
|
@@ -14325,7 +14328,7 @@ function Gf(t) {
|
|
|
14325
14328
|
return typeof i == "string" && /error|exception|fail/i.test(i);
|
|
14326
14329
|
}
|
|
14327
14330
|
e(Gf, "callLooksLikeError");
|
|
14328
|
-
const Jf = 4, ps = 8, ta = 500, Yf = 12,
|
|
14331
|
+
const Jf = 4, ps = 8, ta = 500, Yf = 12, ec = lt.memo(({ bytes: t, compact: r = !1 }) => {
|
|
14329
14332
|
if (t <= 0) return null;
|
|
14330
14333
|
const i = Math.floor(t / ta), c = t % ta / ta, f = Math.min(Yf, i + (c > 0 ? 1 : 0)) || 1, s = r ? "0px" : "2px";
|
|
14331
14334
|
return /* @__PURE__ */ n(
|
|
@@ -14388,8 +14391,8 @@ const Jf = 4, ps = 8, ta = 500, Yf = 12, Zl = lt.memo(({ bytes: t, compact: r =
|
|
|
14388
14391
|
}
|
|
14389
14392
|
);
|
|
14390
14393
|
});
|
|
14391
|
-
|
|
14392
|
-
const
|
|
14394
|
+
ec.displayName = "RailBuckets";
|
|
14395
|
+
const tc = lt.memo(({ start: t }) => {
|
|
14393
14396
|
const [, r] = Q(0);
|
|
14394
14397
|
ce(() => {
|
|
14395
14398
|
const y = setInterval(() => r((b) => (b + 1) % 1024), 1e3);
|
|
@@ -14410,8 +14413,8 @@ const ec = lt.memo(({ start: t }) => {
|
|
|
14410
14413
|
}
|
|
14411
14414
|
);
|
|
14412
14415
|
});
|
|
14413
|
-
|
|
14414
|
-
const
|
|
14416
|
+
tc.displayName = "RailCallTimer";
|
|
14417
|
+
const nc = /* @__PURE__ */ e(({ call: t }) => {
|
|
14415
14418
|
const r = t.functionDetails;
|
|
14416
14419
|
if (!(r != null && r.name)) return null;
|
|
14417
14420
|
const i = Nf(r.name), f = Wf[i].Icon, s = r.status === "Composing" || t.eventType === "partial_function_call", y = r.status === "Executing", b = r.status === "Done", T = Gf(t), E = Kf(t), R = hr(r.name, E, r.args ?? r.text, T), k = (() => {
|
|
@@ -14468,14 +14471,14 @@ const tc = /* @__PURE__ */ e(({ call: t }) => {
|
|
|
14468
14471
|
}
|
|
14469
14472
|
),
|
|
14470
14473
|
/* @__PURE__ */ n(f, { size: 14 }),
|
|
14471
|
-
s && /* @__PURE__ */ n(
|
|
14472
|
-
y && r.start && /* @__PURE__ */ n(
|
|
14474
|
+
s && /* @__PURE__ */ n(ec, { bytes: k, compact: !0 }),
|
|
14475
|
+
y && r.start && /* @__PURE__ */ n(tc, { start: r.start })
|
|
14473
14476
|
]
|
|
14474
14477
|
}
|
|
14475
14478
|
) });
|
|
14476
14479
|
}, "RailToolTile");
|
|
14477
|
-
|
|
14478
|
-
const
|
|
14480
|
+
nc.displayName = "RailToolTile";
|
|
14481
|
+
const rc = lt.memo(() => {
|
|
14479
14482
|
const t = ge((c) => c.currentMessage), r = ge((c) => c.turnOpen), i = Ee(() => !r || !(t != null && t.parts) ? [] : t.parts.filter(
|
|
14480
14483
|
(c) => {
|
|
14481
14484
|
var f, s;
|
|
@@ -14484,11 +14487,11 @@ const nc = lt.memo(() => {
|
|
|
14484
14487
|
), [t, r]);
|
|
14485
14488
|
return i.length === 0 ? null : /* @__PURE__ */ n(oe, { children: i.map((c, f) => {
|
|
14486
14489
|
var s;
|
|
14487
|
-
return /* @__PURE__ */ n(
|
|
14490
|
+
return /* @__PURE__ */ n(nc, { call: c }, ((s = c.functionDetails) == null ? void 0 : s.id) ?? `tile-${f}`);
|
|
14488
14491
|
}) });
|
|
14489
14492
|
});
|
|
14490
|
-
|
|
14491
|
-
const
|
|
14493
|
+
rc.displayName = "ToolCallList";
|
|
14494
|
+
const oc = lt.memo(() => {
|
|
14492
14495
|
const t = ge((i) => {
|
|
14493
14496
|
var c;
|
|
14494
14497
|
return ((c = i.statistics) == null ? void 0 : c.tokensPerSecond) ?? 0;
|
|
@@ -14539,8 +14542,8 @@ const rc = lt.memo(() => {
|
|
|
14539
14542
|
}
|
|
14540
14543
|
) });
|
|
14541
14544
|
});
|
|
14542
|
-
|
|
14543
|
-
const
|
|
14545
|
+
oc.displayName = "RailTokensPerSecond";
|
|
14546
|
+
const ac = /* @__PURE__ */ e(({ todoList: t, completed: r, total: i, pct: c }) => {
|
|
14544
14547
|
const f = dt(), s = 30, y = 2.5, b = (s - y) / 2, T = 2 * Math.PI * b, E = Math.max(0, Math.min(1, c)), R = T * E, k = Math.round(E * 100), v = t ? /* @__PURE__ */ A(D, { sx: { width: 280 }, children: [
|
|
14545
14548
|
/* @__PURE__ */ A(
|
|
14546
14549
|
D,
|
|
@@ -14669,8 +14672,8 @@ const oc = /* @__PURE__ */ e(({ todoList: t, completed: r, total: i, pct: c }) =
|
|
|
14669
14672
|
}
|
|
14670
14673
|
);
|
|
14671
14674
|
}, "RailTaskProgress");
|
|
14672
|
-
|
|
14673
|
-
const
|
|
14675
|
+
ac.displayName = "RailTaskProgress";
|
|
14676
|
+
const ic = lt.memo(() => {
|
|
14674
14677
|
const t = ge((c) => c.subAgents), r = ge((c) => c.removeSubAgent);
|
|
14675
14678
|
if (!t || t.size === 0) return null;
|
|
14676
14679
|
const i = Array.from(t.values());
|
|
@@ -14702,7 +14705,7 @@ const ac = lt.memo(() => {
|
|
|
14702
14705
|
) })
|
|
14703
14706
|
] }, c.id)) });
|
|
14704
14707
|
});
|
|
14705
|
-
|
|
14708
|
+
ic.displayName = "SubAgentList";
|
|
14706
14709
|
function Qf(t, r, i) {
|
|
14707
14710
|
if (!t || t !== "todolistUpdated" || i || !r) return null;
|
|
14708
14711
|
try {
|
|
@@ -14883,7 +14886,7 @@ const Ia = /* @__PURE__ */ e(({
|
|
|
14883
14886
|
}
|
|
14884
14887
|
) }),
|
|
14885
14888
|
B > 0 && /* @__PURE__ */ n(
|
|
14886
|
-
|
|
14889
|
+
ac,
|
|
14887
14890
|
{
|
|
14888
14891
|
todoList: K,
|
|
14889
14892
|
completed: re,
|
|
@@ -14908,10 +14911,10 @@ const Ia = /* @__PURE__ */ e(({
|
|
|
14908
14911
|
scrollbarWidth: "none",
|
|
14909
14912
|
"&::-webkit-scrollbar": { display: "none" }
|
|
14910
14913
|
},
|
|
14911
|
-
children: /* @__PURE__ */ n(
|
|
14914
|
+
children: /* @__PURE__ */ n(rc, {})
|
|
14912
14915
|
}
|
|
14913
14916
|
),
|
|
14914
|
-
/* @__PURE__ */ n(
|
|
14917
|
+
/* @__PURE__ */ n(oc, {})
|
|
14915
14918
|
]
|
|
14916
14919
|
}
|
|
14917
14920
|
) : /* @__PURE__ */ A(
|
|
@@ -14986,7 +14989,7 @@ const Ia = /* @__PURE__ */ e(({
|
|
|
14986
14989
|
}
|
|
14987
14990
|
),
|
|
14988
14991
|
/* @__PURE__ */ A(D, { sx: { display: "flex", justifyContent: "space-between", mt: 0.75 }, children: [
|
|
14989
|
-
/* @__PURE__ */ n(
|
|
14992
|
+
/* @__PURE__ */ n(Zl, {}),
|
|
14990
14993
|
/* @__PURE__ */ n(te, { sx: /* @__PURE__ */ e((U) => ({ fontSize: 10.5, color: U.palette.text.secondary, fontFamily: U.typography.fontFamilyMono }), "sx"), children: "em execução…" })
|
|
14991
14994
|
] })
|
|
14992
14995
|
] })
|
|
@@ -15005,7 +15008,7 @@ const Ia = /* @__PURE__ */ e(({
|
|
|
15005
15008
|
children: "Nenhuma tarefa planejada ainda."
|
|
15006
15009
|
}
|
|
15007
15010
|
) }),
|
|
15008
|
-
/* @__PURE__ */ n(
|
|
15011
|
+
/* @__PURE__ */ n(ic, {}),
|
|
15009
15012
|
/* @__PURE__ */ n(us, { title: "Atividades", children: /* @__PURE__ */ n(
|
|
15010
15013
|
co,
|
|
15011
15014
|
{
|
|
@@ -15061,11 +15064,11 @@ Ia.displayName = "RunProgressPanelV2";
|
|
|
15061
15064
|
export {
|
|
15062
15065
|
ka as APPBAR_HEIGHT,
|
|
15063
15066
|
ka as APPBAR_V2_HEIGHT,
|
|
15064
|
-
|
|
15067
|
+
Dl as ASK_USER_CANCELLED,
|
|
15065
15068
|
co as AgentActivity,
|
|
15066
15069
|
co as AgentActivityV2,
|
|
15067
15070
|
fo as AiChat,
|
|
15068
|
-
|
|
15071
|
+
dl as AiChatDrawer,
|
|
15069
15072
|
ba as AiChatFloating,
|
|
15070
15073
|
ba as AiChatFloatingV2,
|
|
15071
15074
|
Ea as AiChatPane,
|
|
@@ -15080,21 +15083,22 @@ export {
|
|
|
15080
15083
|
va as AppShellV2,
|
|
15081
15084
|
Eh as ArtifactRender,
|
|
15082
15085
|
Ch as AskUserDialog,
|
|
15083
|
-
|
|
15084
|
-
|
|
15086
|
+
Ol as AskUserSheet,
|
|
15087
|
+
sl as AttachmentPreviewModal,
|
|
15088
|
+
Sl as BoxedPart,
|
|
15085
15089
|
ja as BrainIcon,
|
|
15086
|
-
|
|
15087
|
-
|
|
15090
|
+
np as ChartIcon,
|
|
15091
|
+
tp as ChatIcon,
|
|
15088
15092
|
cr as ChatPane,
|
|
15089
15093
|
Ta as ChatsHistory,
|
|
15090
15094
|
Ta as ChatsHistoryV2,
|
|
15091
15095
|
Bs as CheckIcon,
|
|
15092
15096
|
ir as ChevronIcon,
|
|
15093
|
-
|
|
15097
|
+
op as ChevronRightIcon,
|
|
15094
15098
|
$a as CloseIcon,
|
|
15095
15099
|
Qs as CodeIcon,
|
|
15096
15100
|
Ws as ComposerIcon,
|
|
15097
|
-
|
|
15101
|
+
Rl as CurrentMessage,
|
|
15098
15102
|
Ja as DEFAULT_PART_RENDERERS,
|
|
15099
15103
|
La as DashboardIcon,
|
|
15100
15104
|
Ba as DataExplorerIcon,
|
|
@@ -15105,32 +15109,32 @@ export {
|
|
|
15105
15109
|
Xs as GlobeIcon,
|
|
15106
15110
|
Ns as HistoryIcon,
|
|
15107
15111
|
rr as IDLE_TIMEOUT,
|
|
15108
|
-
|
|
15112
|
+
Tl as InertEnvironmentProvider,
|
|
15109
15113
|
so as JsxErrorBoundary,
|
|
15110
15114
|
Xa as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
|
|
15111
15115
|
Zr as LastPrompts,
|
|
15112
15116
|
Zr as LastPromptsV2,
|
|
15113
15117
|
Th as LinearBackgroundProgress,
|
|
15114
|
-
|
|
15118
|
+
Bl as LinearProgressBarWithMarkers,
|
|
15115
15119
|
el as ListCheckIcon,
|
|
15116
15120
|
cf as LiveJsxBlock,
|
|
15117
15121
|
qh as LiveTsxConfigProvider,
|
|
15118
|
-
|
|
15122
|
+
ql as LlmResponseRender,
|
|
15119
15123
|
no as LoadingDots,
|
|
15120
15124
|
nl as LockClosedIcon,
|
|
15121
15125
|
tl as LockOpenIcon,
|
|
15122
|
-
|
|
15126
|
+
Xl as MOBILE_NAV_DEFAULT,
|
|
15123
15127
|
zt as MarkdownExtended,
|
|
15124
15128
|
al as MentionPickerPanel,
|
|
15125
|
-
|
|
15126
|
-
|
|
15129
|
+
ip as MenuIcon,
|
|
15130
|
+
zl as Message,
|
|
15127
15131
|
Ca as MobileDrawer,
|
|
15128
15132
|
Ca as MobileDrawerV2,
|
|
15129
15133
|
fa as PanelIcon,
|
|
15130
15134
|
Hs as PaperclipIcon,
|
|
15131
15135
|
Wa as PauseIcon,
|
|
15132
15136
|
Vs as PenIcon,
|
|
15133
|
-
|
|
15137
|
+
ap as PinIcon,
|
|
15134
15138
|
Ls as PlusIcon,
|
|
15135
15139
|
eo as Prompt,
|
|
15136
15140
|
rl as PromptDateMarkers,
|
|
@@ -15150,53 +15154,53 @@ export {
|
|
|
15150
15154
|
po as Stopwatch,
|
|
15151
15155
|
lo as SubAgentBox,
|
|
15152
15156
|
lo as SubAgentBoxV2,
|
|
15153
|
-
|
|
15154
|
-
|
|
15157
|
+
kl as SuspendedPart,
|
|
15158
|
+
rp as TableIcon,
|
|
15155
15159
|
Pn as TaskList,
|
|
15156
15160
|
Pn as TaskListV2,
|
|
15157
15161
|
Ys as TerminalIcon,
|
|
15158
|
-
|
|
15159
|
-
|
|
15162
|
+
bl as TextPart,
|
|
15163
|
+
xl as ThoughtPart,
|
|
15160
15164
|
ga as ToolIcon,
|
|
15161
15165
|
$s as TrashIcon,
|
|
15162
15166
|
Ha as TriggerDropdown,
|
|
15163
15167
|
zh as TurnAwareButton,
|
|
15164
|
-
|
|
15168
|
+
Al as UiToolDispatcher,
|
|
15165
15169
|
qs as UndoIcon,
|
|
15166
15170
|
Zs as UsersIcon,
|
|
15167
15171
|
pf as V2_CHART_PALETTE,
|
|
15168
15172
|
pa as WARNING_THRESHOLD,
|
|
15169
|
-
|
|
15173
|
+
wl as WaitingPart,
|
|
15170
15174
|
Ks as ZoomInIcon,
|
|
15171
15175
|
Gs as ZoomOutIcon,
|
|
15172
|
-
|
|
15176
|
+
Il as classifyPart,
|
|
15173
15177
|
kp as configureFriendlyMapping,
|
|
15174
15178
|
Pa as createAiChatEngine,
|
|
15175
15179
|
ua as createAiChatSessionStore,
|
|
15176
15180
|
ua as createAiChatStore,
|
|
15177
15181
|
sh as createUiToolRegistry,
|
|
15178
15182
|
wh as disposeSharedAiChatEngine,
|
|
15179
|
-
|
|
15183
|
+
Ll as engineKeyFor,
|
|
15180
15184
|
Gh as extendDefaultScope,
|
|
15181
15185
|
Kh as extendModuleRegistry,
|
|
15182
|
-
|
|
15186
|
+
Jl as getDefaultJsxScope,
|
|
15183
15187
|
hr as getFriendlyLabel,
|
|
15184
|
-
|
|
15188
|
+
jl as getSharedAiChatEngine,
|
|
15185
15189
|
Ga as parseClientOutput,
|
|
15186
|
-
|
|
15190
|
+
Hl as parseContentBlocks,
|
|
15187
15191
|
ho as parseUiArgs,
|
|
15188
15192
|
Sh as useAgentEngine,
|
|
15189
15193
|
ct as useAiChatServices,
|
|
15190
15194
|
ge as useAiChatSessionStore,
|
|
15191
15195
|
Va as useCoarsePointer,
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
+
mu as useContainerRectangle,
|
|
15197
|
+
Cl as useEnvironment,
|
|
15198
|
+
El as useEnvironmentOptional,
|
|
15199
|
+
Ul as useLiveTsxMaxCharsForFull,
|
|
15196
15200
|
Qa as useParkedAskUser,
|
|
15197
15201
|
wf as useResponsiveLayout,
|
|
15198
|
-
|
|
15199
|
-
|
|
15202
|
+
Fl as useTurnOpen,
|
|
15203
|
+
ll as useVisualViewport,
|
|
15200
15204
|
gf as v2Card,
|
|
15201
15205
|
hf as v2Chip,
|
|
15202
15206
|
ff as v2IconBtn,
|