@carto/ps-react-ui 4.14.0 → 4.15.0
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/chat.js +494 -466
- package/dist/chat.js.map +1 -1
- package/dist/components.js +910 -900
- package/dist/components.js.map +1 -1
- package/dist/markdown-DdqANCiN.js +102 -0
- package/dist/markdown-DdqANCiN.js.map +1 -0
- package/dist/markdown-content-Dk2DSgbf.js +10287 -0
- package/dist/markdown-content-Dk2DSgbf.js.map +1 -0
- package/dist/types/chat/bubbles/chat-agent-message-markdown.d.ts +12 -0
- package/dist/types/chat/bubbles/chat-agent-message.d.ts +9 -0
- package/dist/types/chat/bubbles/index.d.ts +1 -0
- package/dist/types/chat/index.d.ts +2 -1
- package/dist/types/chat/types.d.ts +9 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/lasso-tool/message.d.ts +7 -0
- package/dist/types/components/lasso-tool/types.d.ts +17 -2
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +7 -1
- package/dist/widgets-v2/markdown.js +9 -8
- package/dist/widgets-v2/markdown.js.map +1 -1
- package/dist/widgets-v2.js +23 -22
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +3 -2
- package/src/chat/bubbles/chat-agent-message-markdown.test.tsx +38 -0
- package/src/chat/bubbles/chat-agent-message-markdown.tsx +34 -0
- package/src/chat/bubbles/chat-agent-message.test.tsx +12 -0
- package/src/chat/bubbles/chat-agent-message.tsx +21 -1
- package/src/chat/bubbles/index.ts +1 -0
- package/src/chat/index.ts +2 -0
- package/src/chat/types.ts +10 -0
- package/src/components/index.ts +2 -0
- package/src/components/lasso-tool/layer-filters.test.tsx +13 -0
- package/src/components/lasso-tool/layer-filters.tsx +25 -19
- package/src/components/lasso-tool/message.tsx +36 -0
- package/src/components/lasso-tool/types.ts +20 -1
- package/src/widgets-v2/markdown/markdown-content.test.tsx +10 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +9 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +4 -1
- package/dist/markdown-BD1jcknS.js +0 -8326
- package/dist/markdown-BD1jcknS.js.map +0 -1
package/dist/chat.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useState as te, useRef as
|
|
3
|
-
import { jsx as a, jsxs as
|
|
4
|
-
import { styled as ae, Typography as z, Box as v, Link as
|
|
5
|
-
import { ErrorOutline as
|
|
1
|
+
import { c as O } from "react/compiler-runtime";
|
|
2
|
+
import { useState as te, useRef as oe, useEffect as re, forwardRef as he, lazy as ke, Suspense as _e, useImperativeHandle as Ae } from "react";
|
|
3
|
+
import { jsx as a, jsxs as w, Fragment as ge } from "react/jsx-runtime";
|
|
4
|
+
import { styled as ae, Typography as z, Box as v, Link as Ie, ButtonBase as Le, Fab as $e, IconButton as ne, Button as le, Menu as Ee, MenuItem as Me, InputBase as Re, FormHelperText as Be, FormControl as De, DialogTitle as ze, DialogContent as We, Dialog as Fe, Tooltip as Oe, Collapse as se, CircularProgress as He } from "@mui/material";
|
|
5
|
+
import { ErrorOutline as xe, ArrowUpward as Pe, KeyboardArrowDown as be, Close as ye, StopCircleOutlined as Ve, ArrowUpwardOutlined as je, ThumbUp as Ue, ThumbUpOutlined as Ne, ThumbDown as Ge, ThumbDownOutlined as Xe, ArrowRight as Ce, Error as Ke, CheckCircle as Ye, ChevronRight as qe } from "@mui/icons-material";
|
|
6
6
|
import { keyframes as ce } from "@mui/material/styles";
|
|
7
|
-
import { C as
|
|
8
|
-
import { OpenDiagonallyRight as
|
|
9
|
-
const ie = 768,
|
|
10
|
-
function
|
|
11
|
-
const o =
|
|
7
|
+
import { C as Je } from "./copy-button-DGL1tyli.js";
|
|
8
|
+
import { OpenDiagonallyRight as Qe, McpTool as Ze } from "@carto/meridian-ds/custom-icons";
|
|
9
|
+
const ie = 768, Dt = 300, zt = 100, et = 126;
|
|
10
|
+
function Wt(t, e) {
|
|
11
|
+
const o = O(17);
|
|
12
12
|
let n;
|
|
13
13
|
o[0] !== e ? (n = e === void 0 ? {} : e, o[0] = e, o[1] = n) : n = o[1];
|
|
14
|
-
const
|
|
14
|
+
const l = n, {
|
|
15
15
|
speed: r,
|
|
16
|
-
skipAnimation:
|
|
17
|
-
} =
|
|
18
|
-
let
|
|
19
|
-
o[2] !== t || o[3] !==
|
|
20
|
-
const [f, m] = te(
|
|
16
|
+
skipAnimation: c
|
|
17
|
+
} = l, s = r === void 0 ? 500 : r, i = c === void 0 ? !1 : c;
|
|
18
|
+
let d;
|
|
19
|
+
o[2] !== t || o[3] !== i ? (d = () => i ? t.length : 0, o[2] = t, o[3] = i, o[4] = d) : d = o[4];
|
|
20
|
+
const [f, m] = te(d), h = oe(f);
|
|
21
21
|
let b, p;
|
|
22
|
-
o[5] !== t || o[6] !==
|
|
23
|
-
if (
|
|
22
|
+
o[5] !== t || o[6] !== i || o[7] !== s ? (b = () => {
|
|
23
|
+
if (i || h.current >= t.length)
|
|
24
24
|
return;
|
|
25
25
|
const y = 1e3 / s;
|
|
26
|
-
let C,
|
|
26
|
+
let C, S = null;
|
|
27
27
|
function _(L) {
|
|
28
|
-
|
|
29
|
-
const $ = Math.floor((L -
|
|
28
|
+
S = S ?? L;
|
|
29
|
+
const $ = Math.floor((L - S) / y);
|
|
30
30
|
if ($ > 0) {
|
|
31
|
-
|
|
31
|
+
S = L;
|
|
32
32
|
const A = Math.min(h.current + $, t.length);
|
|
33
33
|
if (h.current = A, m(A), A >= t.length)
|
|
34
34
|
return;
|
|
@@ -36,23 +36,23 @@ function Rt(t, e) {
|
|
|
36
36
|
C = requestAnimationFrame(_);
|
|
37
37
|
}
|
|
38
38
|
return C = requestAnimationFrame(_), () => cancelAnimationFrame(C);
|
|
39
|
-
}, p = [t, s,
|
|
39
|
+
}, p = [t, s, i], o[5] = t, o[6] = i, o[7] = s, o[8] = b, o[9] = p) : (b = o[8], p = o[9]), re(b, p);
|
|
40
40
|
let g;
|
|
41
|
-
o[10] !== f || o[11] !== t || o[12] !==
|
|
42
|
-
const
|
|
41
|
+
o[10] !== f || o[11] !== t || o[12] !== i ? (g = i ? t : t.slice(0, f), o[10] = f, o[11] = t, o[12] = i, o[13] = g) : g = o[13];
|
|
42
|
+
const u = !i && f < t.length;
|
|
43
43
|
let x;
|
|
44
|
-
return o[14] !== g || o[15] !==
|
|
44
|
+
return o[14] !== g || o[15] !== u ? (x = {
|
|
45
45
|
displayedText: g,
|
|
46
|
-
isTyping:
|
|
47
|
-
}, o[14] = g, o[15] =
|
|
46
|
+
isTyping: u
|
|
47
|
+
}, o[14] = g, o[15] = u, o[16] = x) : x = o[16], x;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const ve = ae(z)(() => ({
|
|
50
50
|
whiteSpace: "pre-wrap",
|
|
51
51
|
overflowX: "clip",
|
|
52
52
|
overflowWrap: "break-word",
|
|
53
53
|
maxWidth: "100%"
|
|
54
54
|
}));
|
|
55
|
-
|
|
55
|
+
ve.displayName = "ChatMessageOverflow";
|
|
56
56
|
const ee = {
|
|
57
57
|
agentMessageContainer: (t) => ({
|
|
58
58
|
...t.typography.body2,
|
|
@@ -249,120 +249,147 @@ const ee = {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
const e =
|
|
252
|
+
function Ft(t) {
|
|
253
|
+
const e = O(11), {
|
|
254
254
|
children: o,
|
|
255
255
|
muted: n,
|
|
256
|
-
topContext:
|
|
256
|
+
topContext: l,
|
|
257
257
|
sx: r
|
|
258
|
-
} = t,
|
|
258
|
+
} = t, c = n === void 0 ? !1 : n;
|
|
259
259
|
let s;
|
|
260
|
-
e[0] !==
|
|
261
|
-
const
|
|
262
|
-
let
|
|
263
|
-
e[2] !== r || e[3] !==
|
|
260
|
+
e[0] !== l ? (s = l && /* @__PURE__ */ a(v, { sx: ee.userMessageTop, children: l }), e[0] = l, e[1] = s) : s = e[1];
|
|
261
|
+
const i = c ? ee.muted : void 0;
|
|
262
|
+
let d;
|
|
263
|
+
e[2] !== r || e[3] !== i ? (d = {
|
|
264
264
|
...ee.userMessage,
|
|
265
|
-
...
|
|
265
|
+
...i,
|
|
266
266
|
...r
|
|
267
|
-
}, e[2] = r, e[3] =
|
|
267
|
+
}, e[2] = r, e[3] = i, e[4] = d) : d = e[4];
|
|
268
268
|
let f;
|
|
269
|
-
e[5] !== o || e[6] !==
|
|
269
|
+
e[5] !== o || e[6] !== d ? (f = /* @__PURE__ */ a(ve, { className: "PsChat--user-message-inner", variant: "body2", sx: d, children: o }), e[5] = o, e[6] = d, e[7] = f) : f = e[7];
|
|
270
270
|
let m;
|
|
271
|
-
return e[8] !== s || e[9] !== f ? (m = /* @__PURE__ */
|
|
271
|
+
return e[8] !== s || e[9] !== f ? (m = /* @__PURE__ */ w(v, { className: "PsChat--user-message", sx: ee.userMessageContainer, children: [
|
|
272
272
|
s,
|
|
273
273
|
f
|
|
274
274
|
] }), e[8] = s, e[9] = f, e[10] = m) : m = e[10], m;
|
|
275
275
|
}
|
|
276
|
-
const
|
|
277
|
-
const e =
|
|
276
|
+
const tt = (t) => {
|
|
277
|
+
const e = O(6);
|
|
278
278
|
let o, n;
|
|
279
279
|
e[0] !== t ? ({
|
|
280
280
|
className: o,
|
|
281
281
|
...n
|
|
282
282
|
} = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
|
|
283
|
-
const
|
|
283
|
+
const l = `PsChat--agent-message ${o ?? ""}`;
|
|
284
284
|
let r;
|
|
285
|
-
return e[3] !== n || e[4] !==
|
|
286
|
-
},
|
|
285
|
+
return e[3] !== n || e[4] !== l ? (r = /* @__PURE__ */ a(v, { className: l, ...n }), e[3] = n, e[4] = l, e[5] = r) : r = e[5], r;
|
|
286
|
+
}, nt = ae(tt)(({
|
|
287
287
|
theme: t
|
|
288
|
-
}) => ee.agentMessageContainer(t))
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
}) => ee.agentMessageContainer(t)), we = he(function(e, o) {
|
|
289
|
+
const n = O(7);
|
|
290
|
+
let l, r;
|
|
291
|
+
n[0] !== e ? ({
|
|
292
|
+
children: l,
|
|
293
|
+
...r
|
|
294
|
+
} = e, n[0] = e, n[1] = l, n[2] = r) : (l = n[1], r = n[2]);
|
|
295
|
+
let c;
|
|
296
|
+
return n[3] !== l || n[4] !== r || n[5] !== o ? (c = /* @__PURE__ */ a(nt, { ref: o, ...r, children: l }), n[3] = l, n[4] = r, n[5] = o, n[6] = c) : c = n[6], c;
|
|
297
|
+
});
|
|
298
|
+
we.displayName = "ChatAgentMessage";
|
|
299
|
+
const ot = ke(() => import("./markdown-content-Dk2DSgbf.js").then((t) => ({
|
|
300
|
+
default: t.MarkdownContent
|
|
301
|
+
})));
|
|
302
|
+
function rt(t) {
|
|
303
|
+
const e = O(11);
|
|
304
|
+
let o, n;
|
|
305
|
+
e[0] !== t ? ({
|
|
306
|
+
children: o,
|
|
307
|
+
...n
|
|
308
|
+
} = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
|
|
309
|
+
let l;
|
|
310
|
+
e[3] !== o ? (l = /* @__PURE__ */ a(ot, { content: o, gfm: !0 }), e[3] = o, e[4] = l) : l = e[4];
|
|
311
|
+
let r;
|
|
312
|
+
e[5] !== o || e[6] !== l ? (r = /* @__PURE__ */ a(_e, { fallback: o, children: l }), e[5] = o, e[6] = l, e[7] = r) : r = e[7];
|
|
313
|
+
let c;
|
|
314
|
+
return e[8] !== n || e[9] !== r ? (c = /* @__PURE__ */ a(we, { ...n, children: r }), e[8] = n, e[9] = r, e[10] = c) : c = e[10], c;
|
|
315
|
+
}
|
|
316
|
+
rt.displayName = "ChatAgentMessageMarkdown";
|
|
317
|
+
function Ot(t) {
|
|
318
|
+
const e = O(13), {
|
|
292
319
|
errors: o,
|
|
293
320
|
icon: n,
|
|
294
|
-
actions:
|
|
321
|
+
actions: l,
|
|
295
322
|
sx: r
|
|
296
323
|
} = t;
|
|
297
|
-
let
|
|
298
|
-
e[0] !== r ? (
|
|
324
|
+
let c;
|
|
325
|
+
e[0] !== r ? (c = {
|
|
299
326
|
...ee.errorMessage,
|
|
300
327
|
...r
|
|
301
|
-
}, e[0] = r, e[1] =
|
|
328
|
+
}, e[0] = r, e[1] = c) : c = e[1];
|
|
302
329
|
let s;
|
|
303
|
-
e[2] !== n ? (s = n ?? /* @__PURE__ */ a(
|
|
304
|
-
let
|
|
305
|
-
e[4] !== o ? (
|
|
306
|
-
let
|
|
307
|
-
e[6] !==
|
|
330
|
+
e[2] !== n ? (s = n ?? /* @__PURE__ */ a(xe, { fontSize: "medium", color: "error" }), e[2] = n, e[3] = s) : s = e[3];
|
|
331
|
+
let i;
|
|
332
|
+
e[4] !== o ? (i = o.map(it), e[4] = o, e[5] = i) : i = e[5];
|
|
333
|
+
let d;
|
|
334
|
+
e[6] !== l ? (d = l?.length ? /* @__PURE__ */ a(v, { sx: ee.errorActions, children: (l ?? []).map(lt) }) : null, e[6] = l, e[7] = d) : d = e[7];
|
|
308
335
|
let f;
|
|
309
|
-
return e[8] !==
|
|
336
|
+
return e[8] !== c || e[9] !== s || e[10] !== i || e[11] !== d ? (f = /* @__PURE__ */ w(v, { sx: c, children: [
|
|
310
337
|
s,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
] }), e[8] =
|
|
338
|
+
i,
|
|
339
|
+
d
|
|
340
|
+
] }), e[8] = c, e[9] = s, e[10] = i, e[11] = d, e[12] = f) : f = e[12], f;
|
|
314
341
|
}
|
|
315
|
-
function
|
|
316
|
-
return /* @__PURE__ */
|
|
342
|
+
function lt(t, e) {
|
|
343
|
+
return /* @__PURE__ */ w("span", { children: [
|
|
317
344
|
e > 0 && /* @__PURE__ */ a(z, { component: "span", variant: "body2", sx: ee.errorActionSeparator, children: "·" }),
|
|
318
|
-
/* @__PURE__ */ a(
|
|
345
|
+
/* @__PURE__ */ a(Ie, { component: "button", variant: "body2", onClick: t.onClick, sx: ee.errorAction, children: t.label })
|
|
319
346
|
] }, e);
|
|
320
347
|
}
|
|
321
|
-
function
|
|
348
|
+
function it(t, e) {
|
|
322
349
|
return /* @__PURE__ */ a(z, { variant: "subtitle2", color: "error.relatedDark", children: t }, e);
|
|
323
350
|
}
|
|
324
|
-
function
|
|
325
|
-
const e =
|
|
326
|
-
let o, n,
|
|
351
|
+
function st(t) {
|
|
352
|
+
const e = O(17);
|
|
353
|
+
let o, n, l, r;
|
|
327
354
|
e[0] !== t ? ({
|
|
328
355
|
label: n,
|
|
329
356
|
color: o,
|
|
330
357
|
sx: r,
|
|
331
|
-
...
|
|
332
|
-
} = t, e[0] = t, e[1] = o, e[2] = n, e[3] =
|
|
333
|
-
let
|
|
334
|
-
e[5] !== o ? (
|
|
358
|
+
...l
|
|
359
|
+
} = t, e[0] = t, e[1] = o, e[2] = n, e[3] = l, e[4] = r) : (o = e[1], n = e[2], l = e[3], r = e[4]);
|
|
360
|
+
let c;
|
|
361
|
+
e[5] !== o ? (c = o ? {
|
|
335
362
|
backgroundColor: o
|
|
336
|
-
} : void 0, e[5] = o, e[6] =
|
|
363
|
+
} : void 0, e[5] = o, e[6] = c) : c = e[6];
|
|
337
364
|
let s;
|
|
338
|
-
e[7] !== r || e[8] !==
|
|
365
|
+
e[7] !== r || e[8] !== c ? (s = {
|
|
339
366
|
...ee.suggestionButton,
|
|
340
|
-
...
|
|
367
|
+
...c,
|
|
341
368
|
...r
|
|
342
|
-
}, e[7] = r, e[8] =
|
|
343
|
-
let
|
|
344
|
-
e[10] !== n ? (
|
|
345
|
-
let
|
|
346
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
369
|
+
}, e[7] = r, e[8] = c, e[9] = s) : s = e[9];
|
|
370
|
+
let i;
|
|
371
|
+
e[10] !== n ? (i = /* @__PURE__ */ a(z, { color: "inherit", variant: "body2", children: n }), e[10] = n, e[11] = i) : i = e[11];
|
|
372
|
+
let d;
|
|
373
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Pe, {}), e[12] = d) : d = e[12];
|
|
347
374
|
let f;
|
|
348
|
-
return e[13] !==
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
] }), e[13] =
|
|
375
|
+
return e[13] !== l || e[14] !== s || e[15] !== i ? (f = /* @__PURE__ */ w(Le, { sx: s, ...l, children: [
|
|
376
|
+
i,
|
|
377
|
+
d
|
|
378
|
+
] }), e[13] = l, e[14] = s, e[15] = i, e[16] = f) : f = e[16], f;
|
|
352
379
|
}
|
|
353
|
-
const
|
|
380
|
+
const at = ce`
|
|
354
381
|
0% {
|
|
355
382
|
background-position: 150% 0;
|
|
356
383
|
}
|
|
357
384
|
100% {
|
|
358
385
|
background-position: -50% 0;
|
|
359
386
|
}
|
|
360
|
-
`,
|
|
387
|
+
`, ct = ce`
|
|
361
388
|
0% { transform: scale(0.68); opacity: 0.7; }
|
|
362
389
|
40% { transform: scale(1); opacity: 1; }
|
|
363
390
|
80% { transform: scale(0.6); opacity: 0.65; }
|
|
364
391
|
100% { transform: scale(0.68); opacity: 0.7; }
|
|
365
|
-
`,
|
|
392
|
+
`, dt = ce`
|
|
366
393
|
0% { transform: scale(1); }
|
|
367
394
|
40% { transform: scale(0.75); }
|
|
368
395
|
80% { transform: scale(1.125); }
|
|
@@ -386,7 +413,7 @@ const nt = ce`
|
|
|
386
413
|
backgroundClip: "text",
|
|
387
414
|
WebkitBackgroundClip: "text",
|
|
388
415
|
WebkitTextFillColor: "transparent",
|
|
389
|
-
animation: `${
|
|
416
|
+
animation: `${at} 2s ease-in-out infinite`,
|
|
390
417
|
animationDuration: "2s"
|
|
391
418
|
},
|
|
392
419
|
loader: {
|
|
@@ -404,7 +431,7 @@ const nt = ce`
|
|
|
404
431
|
backgroundColor: ({
|
|
405
432
|
palette: t
|
|
406
433
|
}) => t.action.disabled,
|
|
407
|
-
animation: `${
|
|
434
|
+
animation: `${ct} 1s ease-in-out infinite`
|
|
408
435
|
},
|
|
409
436
|
loaderInnerCircle: {
|
|
410
437
|
position: "absolute",
|
|
@@ -414,7 +441,7 @@ const nt = ce`
|
|
|
414
441
|
backgroundColor: ({
|
|
415
442
|
palette: t
|
|
416
443
|
}) => t.text.primary,
|
|
417
|
-
animation: `${
|
|
444
|
+
animation: `${dt} 1s ease-in-out infinite`
|
|
418
445
|
},
|
|
419
446
|
// --- Tool Trace styles ---
|
|
420
447
|
traceHeader: {
|
|
@@ -659,37 +686,37 @@ const nt = ce`
|
|
|
659
686
|
}
|
|
660
687
|
}
|
|
661
688
|
};
|
|
662
|
-
function
|
|
663
|
-
const e =
|
|
689
|
+
function ut(t) {
|
|
690
|
+
const e = O(6), {
|
|
664
691
|
children: o,
|
|
665
692
|
duration: n,
|
|
666
|
-
sx:
|
|
693
|
+
sx: l
|
|
667
694
|
} = t, r = o === void 0 ? "Thinking..." : o, s = `${(n === void 0 ? 2e3 : n) / 1e3}s`;
|
|
668
|
-
let
|
|
669
|
-
e[0] !== s || e[1] !==
|
|
695
|
+
let i;
|
|
696
|
+
e[0] !== s || e[1] !== l ? (i = {
|
|
670
697
|
...T.thinking,
|
|
671
698
|
animationDuration: s,
|
|
672
|
-
...
|
|
673
|
-
}, e[0] = s, e[1] =
|
|
674
|
-
let
|
|
675
|
-
return e[3] !== r || e[4] !==
|
|
699
|
+
...l
|
|
700
|
+
}, e[0] = s, e[1] = l, e[2] = i) : i = e[2];
|
|
701
|
+
let d;
|
|
702
|
+
return e[3] !== r || e[4] !== i ? (d = /* @__PURE__ */ a(z, { variant: "body2", sx: i, children: r }), e[3] = r, e[4] = i, e[5] = d) : d = e[5], d;
|
|
676
703
|
}
|
|
677
|
-
function
|
|
678
|
-
const e =
|
|
704
|
+
function Ht(t) {
|
|
705
|
+
const e = O(16), {
|
|
679
706
|
size: o,
|
|
680
707
|
labels: n,
|
|
681
|
-
sx:
|
|
708
|
+
sx: l
|
|
682
709
|
} = t, r = o === void 0 ? 24 : o;
|
|
683
|
-
let u;
|
|
684
|
-
e[0] !== n ? (u = n === void 0 ? {} : n, e[0] = n, e[1] = u) : u = e[1];
|
|
685
|
-
const l = u.loading ?? "Loading";
|
|
686
710
|
let c;
|
|
687
|
-
e[
|
|
711
|
+
e[0] !== n ? (c = n === void 0 ? {} : n, e[0] = n, e[1] = c) : c = e[1];
|
|
712
|
+
const i = c.loading ?? "Loading";
|
|
713
|
+
let d;
|
|
714
|
+
e[2] !== r || e[3] !== l ? (d = {
|
|
688
715
|
...T.loader,
|
|
689
716
|
width: r,
|
|
690
717
|
height: r,
|
|
691
|
-
...
|
|
692
|
-
}, e[2] = r, e[3] =
|
|
718
|
+
...l
|
|
719
|
+
}, e[2] = r, e[3] = l, e[4] = d) : d = e[4];
|
|
693
720
|
const f = r * 0.75, m = r * 0.75;
|
|
694
721
|
let h;
|
|
695
722
|
e[5] !== f || e[6] !== m ? (h = /* @__PURE__ */ a(v, { component: "span", sx: {
|
|
@@ -704,13 +731,13 @@ function Mt(t) {
|
|
|
704
731
|
width: b,
|
|
705
732
|
height: p
|
|
706
733
|
} }), e[8] = p, e[9] = b, e[10] = g) : g = e[10];
|
|
707
|
-
let
|
|
708
|
-
return e[11] !== g || e[12] !==
|
|
734
|
+
let u;
|
|
735
|
+
return e[11] !== g || e[12] !== i || e[13] !== d || e[14] !== h ? (u = /* @__PURE__ */ w(v, { role: "status", "aria-busy": !0, "aria-label": i, sx: d, children: [
|
|
709
736
|
h,
|
|
710
737
|
g
|
|
711
|
-
] }), e[11] = g, e[12] =
|
|
738
|
+
] }), e[11] = g, e[12] = i, e[13] = d, e[14] = h, e[15] = u) : u = e[15], u;
|
|
712
739
|
}
|
|
713
|
-
const
|
|
740
|
+
const P = {
|
|
714
741
|
header: {
|
|
715
742
|
display: "flex",
|
|
716
743
|
alignItems: "center",
|
|
@@ -938,16 +965,16 @@ const H = {
|
|
|
938
965
|
starterItemsTwoCol: {
|
|
939
966
|
gridTemplateColumns: "repeat(2, 1fr)"
|
|
940
967
|
}
|
|
941
|
-
},
|
|
942
|
-
const n =
|
|
943
|
-
children:
|
|
968
|
+
}, ft = 32, pt = he(function(e, o) {
|
|
969
|
+
const n = O(34), {
|
|
970
|
+
children: l,
|
|
944
971
|
autoScroll: r,
|
|
945
|
-
labels:
|
|
972
|
+
labels: c,
|
|
946
973
|
sx: s
|
|
947
|
-
} = e,
|
|
948
|
-
let
|
|
949
|
-
n[0] !==
|
|
950
|
-
const f =
|
|
974
|
+
} = e, i = r === void 0 ? !0 : r;
|
|
975
|
+
let d;
|
|
976
|
+
n[0] !== c ? (d = c === void 0 ? {} : c, n[0] = c, n[1] = d) : d = n[1];
|
|
977
|
+
const f = d, m = oe(null), h = oe(null), b = oe(null), [p, g] = te(!0), [u, x] = te(!0);
|
|
951
978
|
let y;
|
|
952
979
|
n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
|
|
953
980
|
m.current?.scrollTo({
|
|
@@ -956,22 +983,22 @@ const H = {
|
|
|
956
983
|
});
|
|
957
984
|
}, n[2] = y) : y = n[2];
|
|
958
985
|
const C = y;
|
|
959
|
-
let
|
|
960
|
-
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
986
|
+
let S;
|
|
987
|
+
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = () => {
|
|
961
988
|
m.current?.scrollTo({
|
|
962
989
|
top: 0,
|
|
963
990
|
behavior: "smooth"
|
|
964
991
|
});
|
|
965
|
-
}, n[3] =
|
|
966
|
-
const _ =
|
|
992
|
+
}, n[3] = S) : S = n[3];
|
|
993
|
+
const _ = S;
|
|
967
994
|
let L, $;
|
|
968
|
-
n[4] !==
|
|
995
|
+
n[4] !== u || n[5] !== p ? (L = () => ({
|
|
969
996
|
scrollToBottom: C,
|
|
970
997
|
scrollToTop: _,
|
|
971
|
-
isAtBottom:
|
|
998
|
+
isAtBottom: u,
|
|
972
999
|
isAtTop: p
|
|
973
|
-
}), $ = [
|
|
974
|
-
let A,
|
|
1000
|
+
}), $ = [u, p], n[4] = u, n[5] = p, n[6] = L, n[7] = $) : (L = n[6], $ = n[7]), Ae(o, L, $);
|
|
1001
|
+
let A, D;
|
|
975
1002
|
n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
976
1003
|
const I = m.current, F = h.current, W = b.current;
|
|
977
1004
|
if (!I || !F || !W)
|
|
@@ -990,10 +1017,10 @@ const H = {
|
|
|
990
1017
|
return X.observe(F), N.observe(W), () => {
|
|
991
1018
|
X.disconnect(), N.disconnect();
|
|
992
1019
|
};
|
|
993
|
-
},
|
|
994
|
-
let
|
|
995
|
-
n[10] !==
|
|
996
|
-
if (!
|
|
1020
|
+
}, D = [], n[8] = A, n[9] = D) : (A = n[8], D = n[9]), re(A, D);
|
|
1021
|
+
let M, H;
|
|
1022
|
+
n[10] !== i ? (M = () => {
|
|
1023
|
+
if (!i)
|
|
997
1024
|
return;
|
|
998
1025
|
const I = m.current;
|
|
999
1026
|
if (!I)
|
|
@@ -1004,7 +1031,7 @@ const H = {
|
|
|
1004
1031
|
const k = I.scrollHeight;
|
|
1005
1032
|
if (k > F) {
|
|
1006
1033
|
const E = k - F;
|
|
1007
|
-
k - I.scrollTop - I.clientHeight <= E +
|
|
1034
|
+
k - I.scrollTop - I.clientHeight <= E + ft && I.scrollTo({
|
|
1008
1035
|
top: k,
|
|
1009
1036
|
behavior: "smooth"
|
|
1010
1037
|
});
|
|
@@ -1020,160 +1047,160 @@ const H = {
|
|
|
1020
1047
|
}), () => {
|
|
1021
1048
|
N.disconnect(), W !== null && cancelAnimationFrame(W);
|
|
1022
1049
|
};
|
|
1023
|
-
},
|
|
1024
|
-
let
|
|
1025
|
-
n[13] !== p ? (
|
|
1050
|
+
}, H = [i], n[10] = i, n[11] = M, n[12] = H) : (M = n[11], H = n[12]), re(M, H);
|
|
1051
|
+
let R;
|
|
1052
|
+
n[13] !== p ? (R = (I) => {
|
|
1026
1053
|
const {
|
|
1027
1054
|
palette: F
|
|
1028
1055
|
} = I;
|
|
1029
1056
|
return p ? "transparent" : F.divider;
|
|
1030
|
-
}, n[13] = p, n[14] =
|
|
1031
|
-
let
|
|
1032
|
-
n[15] !==
|
|
1057
|
+
}, n[13] = p, n[14] = R) : R = n[14];
|
|
1058
|
+
let B;
|
|
1059
|
+
n[15] !== u ? (B = (I) => {
|
|
1033
1060
|
const {
|
|
1034
1061
|
palette: F
|
|
1035
1062
|
} = I;
|
|
1036
|
-
return
|
|
1037
|
-
}, n[15] =
|
|
1063
|
+
return u ? "transparent" : F.divider;
|
|
1064
|
+
}, n[15] = u, n[16] = B) : B = n[16];
|
|
1038
1065
|
let j;
|
|
1039
|
-
n[17] !== s || n[18] !==
|
|
1040
|
-
...
|
|
1041
|
-
borderTopColor:
|
|
1042
|
-
borderBottomColor:
|
|
1066
|
+
n[17] !== s || n[18] !== R || n[19] !== B ? (j = {
|
|
1067
|
+
...P.content,
|
|
1068
|
+
borderTopColor: R,
|
|
1069
|
+
borderBottomColor: B,
|
|
1043
1070
|
...s
|
|
1044
|
-
}, n[17] = s, n[18] =
|
|
1071
|
+
}, n[17] = s, n[18] = R, n[19] = B, n[20] = j) : j = n[20];
|
|
1045
1072
|
let K;
|
|
1046
|
-
n[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(v, { ref: h, sx:
|
|
1073
|
+
n[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(v, { ref: h, sx: P.sentinel, "aria-hidden": !0 }), n[21] = K) : K = n[21];
|
|
1047
1074
|
let G;
|
|
1048
|
-
n[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ a(v, { ref: b, sx:
|
|
1049
|
-
const J = f.jumpToLatest ?? "Jump to latest", Q =
|
|
1075
|
+
n[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ a(v, { ref: b, sx: P.sentinel, "aria-hidden": !0 }), n[22] = G) : G = n[22];
|
|
1076
|
+
const J = f.jumpToLatest ?? "Jump to latest", Q = u ? 0 : 1, Z = u ? "none" : "auto";
|
|
1050
1077
|
let U;
|
|
1051
1078
|
n[23] !== Q || n[24] !== Z ? (U = {
|
|
1052
|
-
...
|
|
1079
|
+
...P.jumpToLatest,
|
|
1053
1080
|
opacity: Q,
|
|
1054
1081
|
pointerEvents: Z
|
|
1055
1082
|
}, n[23] = Q, n[24] = Z, n[25] = U) : U = n[25];
|
|
1056
1083
|
let Y;
|
|
1057
|
-
n[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(
|
|
1084
|
+
n[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(be, {}), n[26] = Y) : Y = n[26];
|
|
1058
1085
|
let q;
|
|
1059
|
-
n[27] !== J || n[28] !== U ? (q = /* @__PURE__ */ a(v, { sx:
|
|
1086
|
+
n[27] !== J || n[28] !== U ? (q = /* @__PURE__ */ a(v, { sx: P.jumpToLatestWrapper, children: /* @__PURE__ */ a($e, { size: "small", onClick: C, "aria-label": J, sx: U, children: Y }) }), n[27] = J, n[28] = U, n[29] = q) : q = n[29];
|
|
1060
1087
|
let V;
|
|
1061
|
-
return n[30] !==
|
|
1088
|
+
return n[30] !== l || n[31] !== j || n[32] !== q ? (V = /* @__PURE__ */ w(v, { ref: m, sx: j, children: [
|
|
1062
1089
|
K,
|
|
1063
|
-
|
|
1090
|
+
l,
|
|
1064
1091
|
G,
|
|
1065
1092
|
q
|
|
1066
|
-
] }), n[30] =
|
|
1093
|
+
] }), n[30] = l, n[31] = j, n[32] = q, n[33] = V) : V = n[33], V;
|
|
1067
1094
|
});
|
|
1068
|
-
|
|
1069
|
-
function
|
|
1070
|
-
const e =
|
|
1095
|
+
pt.displayName = "ChatContent";
|
|
1096
|
+
function Pt(t) {
|
|
1097
|
+
const e = O(14), {
|
|
1071
1098
|
leftSlot: o,
|
|
1072
1099
|
title: n,
|
|
1073
|
-
rightSlot:
|
|
1100
|
+
rightSlot: l,
|
|
1074
1101
|
onClose: r,
|
|
1075
|
-
sx:
|
|
1102
|
+
sx: c
|
|
1076
1103
|
} = t;
|
|
1077
1104
|
let s;
|
|
1078
|
-
e[0] !==
|
|
1079
|
-
...
|
|
1080
|
-
...
|
|
1081
|
-
}, e[0] =
|
|
1082
|
-
let
|
|
1083
|
-
e[2] !== n ? (
|
|
1084
|
-
let
|
|
1085
|
-
e[4] !== r ? (
|
|
1105
|
+
e[0] !== c ? (s = {
|
|
1106
|
+
...P.header,
|
|
1107
|
+
...c
|
|
1108
|
+
}, e[0] = c, e[1] = s) : s = e[1];
|
|
1109
|
+
let i;
|
|
1110
|
+
e[2] !== n ? (i = /* @__PURE__ */ a(z, { variant: "subtitle2", sx: P.headerTitle, children: n }), e[2] = n, e[3] = i) : i = e[3];
|
|
1111
|
+
let d;
|
|
1112
|
+
e[4] !== r ? (d = r && /* @__PURE__ */ a(ne, { size: "medium", onClick: r, "aria-label": "Close", children: /* @__PURE__ */ a(ye, {}) }), e[4] = r, e[5] = d) : d = e[5];
|
|
1086
1113
|
let f;
|
|
1087
|
-
e[6] !==
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
] }), e[6] =
|
|
1114
|
+
e[6] !== l || e[7] !== d ? (f = /* @__PURE__ */ w(v, { sx: P.headerActions, children: [
|
|
1115
|
+
l,
|
|
1116
|
+
d
|
|
1117
|
+
] }), e[6] = l, e[7] = d, e[8] = f) : f = e[8];
|
|
1091
1118
|
let m;
|
|
1092
|
-
return e[9] !== o || e[10] !== s || e[11] !==
|
|
1119
|
+
return e[9] !== o || e[10] !== s || e[11] !== i || e[12] !== f ? (m = /* @__PURE__ */ w(v, { sx: s, children: [
|
|
1093
1120
|
o,
|
|
1094
|
-
|
|
1121
|
+
i,
|
|
1095
1122
|
f
|
|
1096
|
-
] }), e[9] = o, e[10] = s, e[11] =
|
|
1123
|
+
] }), e[9] = o, e[10] = s, e[11] = i, e[12] = f, e[13] = m) : m = e[13], m;
|
|
1097
1124
|
}
|
|
1098
|
-
const
|
|
1099
|
-
function
|
|
1100
|
-
const e =
|
|
1125
|
+
const mt = "Responses are AI-generated. Please verify key information.";
|
|
1126
|
+
function Vt(t) {
|
|
1127
|
+
const e = O(58), {
|
|
1101
1128
|
value: o,
|
|
1102
1129
|
onChange: n,
|
|
1103
|
-
onSend:
|
|
1130
|
+
onSend: l,
|
|
1104
1131
|
onStop: r,
|
|
1105
|
-
isGenerating:
|
|
1132
|
+
isGenerating: c,
|
|
1106
1133
|
disabled: s,
|
|
1107
|
-
placeholder:
|
|
1108
|
-
labels:
|
|
1134
|
+
placeholder: i,
|
|
1135
|
+
labels: d,
|
|
1109
1136
|
caption: f,
|
|
1110
1137
|
models: m,
|
|
1111
1138
|
selectedModel: h,
|
|
1112
1139
|
onModelChange: b,
|
|
1113
1140
|
startToolbarSlot: p,
|
|
1114
1141
|
endToolbarSlot: g,
|
|
1115
|
-
sx:
|
|
1116
|
-
} = t, x =
|
|
1117
|
-
let
|
|
1118
|
-
e[0] !==
|
|
1119
|
-
const _ =
|
|
1120
|
-
let M;
|
|
1121
|
-
e[2] !== y || e[3] !== x || e[4] !== o ? (M = o.trim() && !y && !x, e[2] = y, e[3] = x, e[4] = o, e[5] = M) : M = e[5];
|
|
1122
|
-
const R = M, O = (m?.length ?? 0) > 1, B = _.model ?? "Select model";
|
|
1142
|
+
sx: u
|
|
1143
|
+
} = t, x = c === void 0 ? !1 : c, y = s === void 0 ? !1 : s, C = i === void 0 ? "Type a message..." : i;
|
|
1144
|
+
let S;
|
|
1145
|
+
e[0] !== d ? (S = d === void 0 ? {} : d, e[0] = d, e[1] = S) : S = e[1];
|
|
1146
|
+
const _ = S, L = f === void 0 ? mt : f, [$, A] = te(null);
|
|
1123
1147
|
let D;
|
|
1124
|
-
e[
|
|
1125
|
-
const
|
|
1148
|
+
e[2] !== y || e[3] !== x || e[4] !== o ? (D = o.trim() && !y && !x, e[2] = y, e[3] = x, e[4] = o, e[5] = D) : D = e[5];
|
|
1149
|
+
const M = D, H = (m?.length ?? 0) > 1, R = _.model ?? "Select model";
|
|
1150
|
+
let B;
|
|
1151
|
+
e[6] !== R || e[7] !== m || e[8] !== h ? (B = m?.find((E) => E.value === h)?.label ?? (h && h.length > 0 ? h : R), e[6] = R, e[7] = m, e[8] = h, e[9] = B) : B = e[9];
|
|
1152
|
+
const j = B, K = H || !!p || !!g;
|
|
1126
1153
|
let G;
|
|
1127
|
-
e[10] !==
|
|
1128
|
-
E.key === "Enter" && !E.shiftKey && (E.preventDefault(),
|
|
1129
|
-
}, e[10] =
|
|
1154
|
+
e[10] !== M || e[11] !== l ? (G = (E) => {
|
|
1155
|
+
E.key === "Enter" && !E.shiftKey && (E.preventDefault(), M && l());
|
|
1156
|
+
}, e[10] = M, e[11] = l, e[12] = G) : G = e[12];
|
|
1130
1157
|
const J = G;
|
|
1131
1158
|
let Q;
|
|
1132
|
-
e[13] !==
|
|
1159
|
+
e[13] !== M || e[14] !== y || e[15] !== x || e[16] !== _.send || e[17] !== _.stop || e[18] !== l || e[19] !== r ? (Q = x && r ? /* @__PURE__ */ a(ne, { size: "small", onClick: r, disabled: y, "aria-label": _.stop ?? "Stop", children: /* @__PURE__ */ a(Ve, {}) }) : /* @__PURE__ */ a(ne, { size: "small", variant: "contained", color: "primary", onClick: l, disabled: !M, "aria-label": _.send ?? "Send", children: /* @__PURE__ */ a(je, {}) }), e[13] = M, e[14] = y, e[15] = x, e[16] = _.send, e[17] = _.stop, e[18] = l, e[19] = r, e[20] = Q) : Q = e[20];
|
|
1133
1160
|
const Z = Q;
|
|
1134
1161
|
let U;
|
|
1135
|
-
e[21] !==
|
|
1136
|
-
...
|
|
1137
|
-
...
|
|
1138
|
-
}, e[21] =
|
|
1162
|
+
e[21] !== u ? (U = {
|
|
1163
|
+
...P.footerWrapper,
|
|
1164
|
+
...u
|
|
1165
|
+
}, e[21] = u, e[22] = U) : U = e[22];
|
|
1139
1166
|
let Y;
|
|
1140
1167
|
e[23] !== n ? (Y = (E) => n(E.target.value), e[23] = n, e[24] = Y) : Y = e[24];
|
|
1141
1168
|
const q = y || x;
|
|
1142
1169
|
let V;
|
|
1143
|
-
e[25] !== J || e[26] !== C || e[27] !== Y || e[28] !== q || e[29] !== o ? (V = /* @__PURE__ */ a(
|
|
1170
|
+
e[25] !== J || e[26] !== C || e[27] !== Y || e[28] !== q || e[29] !== o ? (V = /* @__PURE__ */ a(Re, { multiline: !0, minRows: 1, maxRows: 8, value: o, onChange: Y, onKeyDown: J, placeholder: C, disabled: q, sx: P.footerInput }), e[25] = J, e[26] = C, e[27] = Y, e[28] = q, e[29] = o, e[30] = V) : V = e[30];
|
|
1144
1171
|
let I;
|
|
1145
|
-
e[31] !== y || e[32] !== g || e[33] !== K || e[34] !== x || e[35] !== $ || e[36] !==
|
|
1172
|
+
e[31] !== y || e[32] !== g || e[33] !== K || e[34] !== x || e[35] !== $ || e[36] !== R || e[37] !== m || e[38] !== b || e[39] !== j || e[40] !== h || e[41] !== H || e[42] !== p ? (I = K && /* @__PURE__ */ w(v, { sx: P.footerSlots, children: [
|
|
1146
1173
|
p,
|
|
1147
|
-
|
|
1148
|
-
/* @__PURE__ */ a(le, { size: "small", variant: "text", color: "inherit", disabled: y || x, onClick: (E) => A(E.currentTarget), "aria-label":
|
|
1149
|
-
/* @__PURE__ */ a(
|
|
1174
|
+
H && /* @__PURE__ */ w(ge, { children: [
|
|
1175
|
+
/* @__PURE__ */ a(le, { size: "small", variant: "text", color: "inherit", disabled: y || x, onClick: (E) => A(E.currentTarget), "aria-label": R, "aria-haspopup": "menu", "aria-expanded": $ ? "true" : void 0, endIcon: /* @__PURE__ */ a(be, {}), sx: P.modelSelector, children: /* @__PURE__ */ a(z, { variant: "caption", component: "span", color: "inherit", sx: P.modelSelectorLabel, children: j }) }),
|
|
1176
|
+
/* @__PURE__ */ a(Ee, { anchorEl: $, open: !!$, onClose: () => A(null), variant: "menu", elevation: 8, anchorOrigin: {
|
|
1150
1177
|
vertical: "top",
|
|
1151
1178
|
horizontal: "left"
|
|
1152
1179
|
}, transformOrigin: {
|
|
1153
1180
|
vertical: "bottom",
|
|
1154
1181
|
horizontal: "left"
|
|
1155
|
-
}, children: m?.map((E) => /* @__PURE__ */ a(
|
|
1182
|
+
}, children: m?.map((E) => /* @__PURE__ */ a(Me, { selected: E.value === h, onClick: () => {
|
|
1156
1183
|
b?.(E.value), A(null);
|
|
1157
1184
|
}, children: E.label }, E.value)) })
|
|
1158
1185
|
] }),
|
|
1159
1186
|
g
|
|
1160
|
-
] }), e[31] = y, e[32] = g, e[33] = K, e[34] = x, e[35] = $, e[36] =
|
|
1187
|
+
] }), e[31] = y, e[32] = g, e[33] = K, e[34] = x, e[35] = $, e[36] = R, e[37] = m, e[38] = b, e[39] = j, e[40] = h, e[41] = H, e[42] = p, e[43] = I) : I = e[43];
|
|
1161
1188
|
let F;
|
|
1162
|
-
e[44] !== V || e[45] !== I ? (F = /* @__PURE__ */
|
|
1189
|
+
e[44] !== V || e[45] !== I ? (F = /* @__PURE__ */ w(v, { sx: P.footerMain, children: [
|
|
1163
1190
|
V,
|
|
1164
1191
|
I
|
|
1165
1192
|
] }), e[44] = V, e[45] = I, e[46] = F) : F = e[46];
|
|
1166
1193
|
let W;
|
|
1167
|
-
e[47] !== Z ? (W = /* @__PURE__ */ a(v, { sx:
|
|
1194
|
+
e[47] !== Z ? (W = /* @__PURE__ */ a(v, { sx: P.footerSend, children: Z }), e[47] = Z, e[48] = W) : W = e[48];
|
|
1168
1195
|
let X;
|
|
1169
|
-
e[49] !== F || e[50] !== W ? (X = /* @__PURE__ */
|
|
1196
|
+
e[49] !== F || e[50] !== W ? (X = /* @__PURE__ */ w(v, { sx: P.footerBox, children: [
|
|
1170
1197
|
F,
|
|
1171
1198
|
W
|
|
1172
1199
|
] }), e[49] = F, e[50] = W, e[51] = X) : X = e[51];
|
|
1173
1200
|
let N;
|
|
1174
|
-
e[52] !== L ? (N = L ? /* @__PURE__ */ a(
|
|
1201
|
+
e[52] !== L ? (N = L ? /* @__PURE__ */ a(Be, { sx: P.footerCaption, children: L }) : null, e[52] = L, e[53] = N) : N = e[53];
|
|
1175
1202
|
let k;
|
|
1176
|
-
return e[54] !== U || e[55] !== X || e[56] !== N ? (k = /* @__PURE__ */
|
|
1203
|
+
return e[54] !== U || e[55] !== X || e[56] !== N ? (k = /* @__PURE__ */ w(De, { fullWidth: !0, sx: U, children: [
|
|
1177
1204
|
X,
|
|
1178
1205
|
N
|
|
1179
1206
|
] }), e[54] = U, e[55] = X, e[56] = N, e[57] = k) : k = e[57], k;
|
|
@@ -1188,47 +1215,47 @@ const de = [
|
|
|
1188
1215
|
"#F6CF7140"
|
|
1189
1216
|
// pastel yellow
|
|
1190
1217
|
];
|
|
1191
|
-
function
|
|
1192
|
-
const e =
|
|
1218
|
+
function jt(t) {
|
|
1219
|
+
const e = O(40), {
|
|
1193
1220
|
icon: o,
|
|
1194
1221
|
title: n,
|
|
1195
|
-
description:
|
|
1222
|
+
description: l,
|
|
1196
1223
|
items: r,
|
|
1197
|
-
size:
|
|
1224
|
+
size: c,
|
|
1198
1225
|
onSelect: s,
|
|
1199
|
-
sx:
|
|
1200
|
-
} = t,
|
|
1201
|
-
let f, m, h, b, p, g,
|
|
1202
|
-
if (e[0] !==
|
|
1203
|
-
const
|
|
1226
|
+
sx: i
|
|
1227
|
+
} = t, d = c === void 0 ? "small" : c;
|
|
1228
|
+
let f, m, h, b, p, g, u, x;
|
|
1229
|
+
if (e[0] !== l || e[1] !== o || e[2] !== r || e[3] !== s || e[4] !== d || e[5] !== i || e[6] !== n) {
|
|
1230
|
+
const S = r.map(ht);
|
|
1204
1231
|
m = v;
|
|
1205
|
-
const _ =
|
|
1206
|
-
e[15] !==
|
|
1207
|
-
...
|
|
1232
|
+
const _ = d === "small" ? 1 : 2;
|
|
1233
|
+
e[15] !== i || e[16] !== _ ? (p = {
|
|
1234
|
+
...P.starter,
|
|
1208
1235
|
gap: _,
|
|
1209
|
-
...
|
|
1210
|
-
}, e[15] =
|
|
1211
|
-
const L =
|
|
1236
|
+
...i
|
|
1237
|
+
}, e[15] = i, e[16] = _, e[17] = p) : p = e[17], g = o, e[18] !== d || e[19] !== n ? (u = n && /* @__PURE__ */ a(z, { variant: d === "small" ? "h6" : "h5", children: n }), e[18] = d, e[19] = n, e[20] = u) : u = e[20], e[21] !== l || e[22] !== d ? (x = l && /* @__PURE__ */ a(z, { variant: d === "small" ? "body2" : "body1", color: "text.secondary", children: l }), e[21] = l, e[22] = d, e[23] = x) : x = e[23], f = v;
|
|
1238
|
+
const L = d === "small" ? 1 : 2, $ = r.length > 2 ? P.starterItemsTwoCol : void 0;
|
|
1212
1239
|
e[24] !== $ || e[25] !== L ? (h = {
|
|
1213
|
-
...
|
|
1240
|
+
...P.starterItems,
|
|
1214
1241
|
gap: L,
|
|
1215
1242
|
...$
|
|
1216
1243
|
}, e[24] = $, e[25] = L, e[26] = h) : h = e[26];
|
|
1217
1244
|
let A;
|
|
1218
|
-
e[27] !== s ? (A = (
|
|
1245
|
+
e[27] !== s ? (A = (D, M) => /* @__PURE__ */ a(st, { label: D.label, onClick: () => s?.(D.label), color: D.color }, M), e[27] = s, e[28] = A) : A = e[28], b = S.map(A), e[0] = l, e[1] = o, e[2] = r, e[3] = s, e[4] = d, e[5] = i, e[6] = n, e[7] = f, e[8] = m, e[9] = h, e[10] = b, e[11] = p, e[12] = g, e[13] = u, e[14] = x;
|
|
1219
1246
|
} else
|
|
1220
|
-
f = e[7], m = e[8], h = e[9], b = e[10], p = e[11], g = e[12],
|
|
1247
|
+
f = e[7], m = e[8], h = e[9], b = e[10], p = e[11], g = e[12], u = e[13], x = e[14];
|
|
1221
1248
|
let y;
|
|
1222
1249
|
e[29] !== f || e[30] !== h || e[31] !== b ? (y = /* @__PURE__ */ a(f, { sx: h, children: b }), e[29] = f, e[30] = h, e[31] = b, e[32] = y) : y = e[32];
|
|
1223
1250
|
let C;
|
|
1224
|
-
return e[33] !== m || e[34] !== p || e[35] !== g || e[36] !==
|
|
1251
|
+
return e[33] !== m || e[34] !== p || e[35] !== g || e[36] !== u || e[37] !== x || e[38] !== y ? (C = /* @__PURE__ */ w(m, { sx: p, children: [
|
|
1225
1252
|
g,
|
|
1226
|
-
|
|
1253
|
+
u,
|
|
1227
1254
|
x,
|
|
1228
1255
|
y
|
|
1229
|
-
] }), e[33] = m, e[34] = p, e[35] = g, e[36] =
|
|
1256
|
+
] }), e[33] = m, e[34] = p, e[35] = g, e[36] = u, e[37] = x, e[38] = y, e[39] = C) : C = e[39], C;
|
|
1230
1257
|
}
|
|
1231
|
-
function
|
|
1258
|
+
function ht(t, e) {
|
|
1232
1259
|
return typeof t == "string" ? {
|
|
1233
1260
|
label: t,
|
|
1234
1261
|
color: de[e]
|
|
@@ -1237,424 +1264,424 @@ function dt(t, e) {
|
|
|
1237
1264
|
color: t.color ?? de[e]
|
|
1238
1265
|
};
|
|
1239
1266
|
}
|
|
1240
|
-
const
|
|
1267
|
+
const Ut = ae(v)(({
|
|
1241
1268
|
theme: t
|
|
1242
1269
|
}) => ({
|
|
1243
1270
|
display: "flex",
|
|
1244
1271
|
alignItems: "center",
|
|
1245
1272
|
gap: t.spacing(0.5)
|
|
1246
1273
|
}));
|
|
1247
|
-
function
|
|
1248
|
-
const e =
|
|
1274
|
+
function Nt(t) {
|
|
1275
|
+
const e = O(25), {
|
|
1249
1276
|
rating: o,
|
|
1250
1277
|
onRatingChange: n,
|
|
1251
|
-
labels:
|
|
1278
|
+
labels: l
|
|
1252
1279
|
} = t;
|
|
1253
1280
|
let r;
|
|
1254
|
-
e[0] !==
|
|
1255
|
-
const
|
|
1281
|
+
e[0] !== l ? (r = l === void 0 ? {} : l, e[0] = l, e[1] = r) : r = e[1];
|
|
1282
|
+
const c = r;
|
|
1256
1283
|
let s;
|
|
1257
1284
|
e[2] !== n || e[3] !== o ? (s = () => n?.(o === "up" ? null : "up"), e[2] = n, e[3] = o, e[4] = s) : s = e[4];
|
|
1258
|
-
const
|
|
1285
|
+
const i = c.thumbUp ?? "Thumbs up", d = o === "up" ? "primary" : void 0;
|
|
1259
1286
|
let f;
|
|
1260
|
-
e[5] !== o ? (f = o === "up" ? /* @__PURE__ */ a(
|
|
1287
|
+
e[5] !== o ? (f = o === "up" ? /* @__PURE__ */ a(Ue, { fontSize: "small" }) : /* @__PURE__ */ a(Ne, { fontSize: "small" }), e[5] = o, e[6] = f) : f = e[6];
|
|
1261
1288
|
let m;
|
|
1262
|
-
e[7] !== s || e[8] !==
|
|
1289
|
+
e[7] !== s || e[8] !== i || e[9] !== d || e[10] !== f ? (m = /* @__PURE__ */ a(ne, { size: "small", onClick: s, "aria-label": i, color: d, children: f }), e[7] = s, e[8] = i, e[9] = d, e[10] = f, e[11] = m) : m = e[11];
|
|
1263
1290
|
let h;
|
|
1264
1291
|
e[12] !== n || e[13] !== o ? (h = () => n?.(o === "down" ? null : "down"), e[12] = n, e[13] = o, e[14] = h) : h = e[14];
|
|
1265
|
-
const b =
|
|
1292
|
+
const b = c.thumbDown ?? "Thumbs down", p = o === "down" ? "primary" : void 0;
|
|
1266
1293
|
let g;
|
|
1267
|
-
e[15] !== o ? (g = o === "down" ? /* @__PURE__ */ a(
|
|
1268
|
-
let
|
|
1269
|
-
e[17] !== p || e[18] !== g || e[19] !== h || e[20] !== b ? (
|
|
1294
|
+
e[15] !== o ? (g = o === "down" ? /* @__PURE__ */ a(Ge, { fontSize: "small" }) : /* @__PURE__ */ a(Xe, { fontSize: "small" }), e[15] = o, e[16] = g) : g = e[16];
|
|
1295
|
+
let u;
|
|
1296
|
+
e[17] !== p || e[18] !== g || e[19] !== h || e[20] !== b ? (u = /* @__PURE__ */ a(ne, { size: "small", onClick: h, "aria-label": b, color: p, children: g }), e[17] = p, e[18] = g, e[19] = h, e[20] = b, e[21] = u) : u = e[21];
|
|
1270
1297
|
let x;
|
|
1271
|
-
return e[22] !==
|
|
1298
|
+
return e[22] !== u || e[23] !== m ? (x = /* @__PURE__ */ w(ge, { children: [
|
|
1272
1299
|
m,
|
|
1273
|
-
|
|
1274
|
-
] }), e[22] =
|
|
1300
|
+
u
|
|
1301
|
+
] }), e[22] = u, e[23] = m, e[24] = x) : x = e[24], x;
|
|
1275
1302
|
}
|
|
1276
|
-
const
|
|
1277
|
-
function
|
|
1303
|
+
const gt = /^-?\d/;
|
|
1304
|
+
function xt(t) {
|
|
1278
1305
|
const e = [];
|
|
1279
1306
|
let o = 0, n;
|
|
1280
|
-
const
|
|
1281
|
-
let
|
|
1282
|
-
for (; (
|
|
1283
|
-
|
|
1307
|
+
const l = /* @__PURE__ */ new Set(), r = /("(?:[^"\\]|\\.)*")\s*:/g;
|
|
1308
|
+
let c;
|
|
1309
|
+
for (; (c = r.exec(t)) !== null; )
|
|
1310
|
+
l.add(c.index);
|
|
1284
1311
|
const s = (
|
|
1285
1312
|
// eslint-disable-next-line no-useless-escape
|
|
1286
1313
|
/"(?:[^"\\]|\\.)*"|\b(?:true|false)\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|[{}\[\]:,]/g
|
|
1287
1314
|
);
|
|
1288
1315
|
for (; (n = s.exec(t)) !== null; ) {
|
|
1289
1316
|
n.index > o && e.push(t.slice(o, n.index));
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1317
|
+
const i = n[0];
|
|
1318
|
+
i.startsWith('"') ? l.has(n.index) ? e.push({
|
|
1292
1319
|
type: "key",
|
|
1293
|
-
value:
|
|
1320
|
+
value: i
|
|
1294
1321
|
}) : e.push({
|
|
1295
1322
|
type: "string",
|
|
1296
|
-
value:
|
|
1297
|
-
}) :
|
|
1323
|
+
value: i
|
|
1324
|
+
}) : gt.test(i) ? e.push({
|
|
1298
1325
|
type: "number",
|
|
1299
|
-
value:
|
|
1300
|
-
}) :
|
|
1326
|
+
value: i
|
|
1327
|
+
}) : i === "true" || i === "false" ? e.push({
|
|
1301
1328
|
type: "boolean",
|
|
1302
|
-
value:
|
|
1303
|
-
}) :
|
|
1329
|
+
value: i
|
|
1330
|
+
}) : i === "null" ? e.push({
|
|
1304
1331
|
type: "null",
|
|
1305
|
-
value:
|
|
1332
|
+
value: i
|
|
1306
1333
|
}) : e.push({
|
|
1307
1334
|
type: "punctuation",
|
|
1308
|
-
value:
|
|
1309
|
-
}), o = n.index +
|
|
1335
|
+
value: i
|
|
1336
|
+
}), o = n.index + i.length;
|
|
1310
1337
|
}
|
|
1311
1338
|
return o < t.length && e.push(t.slice(o)), e;
|
|
1312
1339
|
}
|
|
1313
|
-
function
|
|
1314
|
-
const e =
|
|
1340
|
+
function bt(t) {
|
|
1341
|
+
const e = O(24), {
|
|
1315
1342
|
open: o,
|
|
1316
1343
|
onClose: n,
|
|
1317
|
-
title:
|
|
1344
|
+
title: l,
|
|
1318
1345
|
content: r
|
|
1319
1346
|
} = t;
|
|
1320
|
-
let u;
|
|
1321
|
-
e[0] !== r ? (u = r.split(`
|
|
1322
|
-
`).map(gt), e[0] = r, e[1] = u) : u = e[1];
|
|
1323
|
-
const s = u;
|
|
1324
|
-
let l;
|
|
1325
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
1326
|
-
sx: T.fullViewPaper
|
|
1327
|
-
}, e[2] = l) : l = e[2];
|
|
1328
1347
|
let c;
|
|
1329
|
-
e[
|
|
1348
|
+
e[0] !== r ? (c = r.split(`
|
|
1349
|
+
`).map(vt), e[0] = r, e[1] = c) : c = e[1];
|
|
1350
|
+
const s = c;
|
|
1351
|
+
let i;
|
|
1352
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
1353
|
+
sx: T.fullViewPaper
|
|
1354
|
+
}, e[2] = i) : i = e[2];
|
|
1355
|
+
let d;
|
|
1356
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1330
1357
|
display: "flex",
|
|
1331
1358
|
alignItems: "center",
|
|
1332
1359
|
gap: 0.5
|
|
1333
|
-
}, e[3] =
|
|
1360
|
+
}, e[3] = d) : d = e[3];
|
|
1334
1361
|
let f;
|
|
1335
|
-
e[4] !== r ? (f = /* @__PURE__ */ a(
|
|
1362
|
+
e[4] !== r ? (f = /* @__PURE__ */ a(Je, { copyText: r, "aria-label": "Copy content" }), e[4] = r, e[5] = f) : f = e[5];
|
|
1336
1363
|
let m;
|
|
1337
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(
|
|
1364
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(ye, {}), e[6] = m) : m = e[6];
|
|
1338
1365
|
let h;
|
|
1339
|
-
e[7] !== n ? (h = /* @__PURE__ */ a(
|
|
1366
|
+
e[7] !== n ? (h = /* @__PURE__ */ a(ne, { onClick: n, "aria-label": "close", children: m }), e[7] = n, e[8] = h) : h = e[8];
|
|
1340
1367
|
let b;
|
|
1341
|
-
e[9] !== f || e[10] !== h ? (b = /* @__PURE__ */
|
|
1368
|
+
e[9] !== f || e[10] !== h ? (b = /* @__PURE__ */ w(v, { sx: d, children: [
|
|
1342
1369
|
f,
|
|
1343
1370
|
h
|
|
1344
1371
|
] }), e[9] = f, e[10] = h, e[11] = b) : b = e[11];
|
|
1345
1372
|
let p;
|
|
1346
|
-
e[12] !== b || e[13] !==
|
|
1347
|
-
|
|
1373
|
+
e[12] !== b || e[13] !== l ? (p = /* @__PURE__ */ w(ze, { sx: T.fullViewTitle, children: [
|
|
1374
|
+
l,
|
|
1348
1375
|
b
|
|
1349
|
-
] }), e[12] = b, e[13] =
|
|
1376
|
+
] }), e[12] = b, e[13] = l, e[14] = p) : p = e[14];
|
|
1350
1377
|
let g;
|
|
1351
|
-
e[15] !== s ? (g = s.map(
|
|
1352
|
-
let
|
|
1353
|
-
e[17] !== g ? (
|
|
1378
|
+
e[15] !== s ? (g = s.map(yt), e[15] = s, e[16] = g) : g = e[16];
|
|
1379
|
+
let u;
|
|
1380
|
+
e[17] !== g ? (u = /* @__PURE__ */ a(We, { sx: T.fullViewDialogContent, children: /* @__PURE__ */ a(v, { component: "pre", sx: T.fullViewPre, children: g }) }), e[17] = g, e[18] = u) : u = e[18];
|
|
1354
1381
|
let x;
|
|
1355
|
-
return e[19] !== n || e[20] !== o || e[21] !==
|
|
1382
|
+
return e[19] !== n || e[20] !== o || e[21] !== u || e[22] !== p ? (x = /* @__PURE__ */ w(Fe, { open: o, onClose: n, sx: T.fullViewDialog, PaperProps: i, fullScreen: !0, children: [
|
|
1356
1383
|
p,
|
|
1357
|
-
|
|
1358
|
-
] }), e[19] = n, e[20] = o, e[21] =
|
|
1384
|
+
u
|
|
1385
|
+
] }), e[19] = n, e[20] = o, e[21] = u, e[22] = p, e[23] = x) : x = e[23], x;
|
|
1359
1386
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return /* @__PURE__ */
|
|
1362
|
-
t.map(
|
|
1387
|
+
function yt(t, e) {
|
|
1388
|
+
return /* @__PURE__ */ w(v, { component: "span", sx: T.fullViewLine, children: [
|
|
1389
|
+
t.map(Ct),
|
|
1363
1390
|
`
|
|
1364
1391
|
`
|
|
1365
1392
|
] }, e);
|
|
1366
1393
|
}
|
|
1367
|
-
function
|
|
1394
|
+
function Ct(t, e) {
|
|
1368
1395
|
return typeof t == "string" ? t : /* @__PURE__ */ a(v, { component: "span", sx: T[`syntaxToken_${t.type}`], children: t.value }, e);
|
|
1369
1396
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1397
|
+
function vt(t) {
|
|
1398
|
+
return xt(t);
|
|
1372
1399
|
}
|
|
1373
1400
|
function ue(t) {
|
|
1374
|
-
const e =
|
|
1401
|
+
const e = O(28), {
|
|
1375
1402
|
content: o,
|
|
1376
1403
|
title: n,
|
|
1377
|
-
isError:
|
|
1404
|
+
isError: l,
|
|
1378
1405
|
labels: r,
|
|
1379
|
-
sx:
|
|
1380
|
-
} = t, s = n === void 0 ? "" : n,
|
|
1381
|
-
let c;
|
|
1382
|
-
e[0] !== r ? (c = r === void 0 ? {} : r, e[0] = r, e[1] = c) : c = e[1];
|
|
1383
|
-
const f = c, m = ne(null), [h, b] = te(!1), [p, g] = te(!1);
|
|
1406
|
+
sx: c
|
|
1407
|
+
} = t, s = n === void 0 ? "" : n, i = l === void 0 ? !1 : l;
|
|
1384
1408
|
let d;
|
|
1385
|
-
e[
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1409
|
+
e[0] !== r ? (d = r === void 0 ? {} : r, e[0] = r, e[1] = d) : d = e[1];
|
|
1410
|
+
const f = d, m = oe(null), [h, b] = te(!1), [p, g] = te(!1);
|
|
1411
|
+
let u;
|
|
1412
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
1413
|
+
const B = m.current;
|
|
1414
|
+
B && b(B.scrollHeight > B.clientHeight);
|
|
1415
|
+
}, e[2] = u) : u = e[2];
|
|
1416
|
+
const x = u;
|
|
1390
1417
|
let y;
|
|
1391
1418
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
|
|
1392
1419
|
x();
|
|
1393
|
-
const
|
|
1394
|
-
if (!
|
|
1420
|
+
const B = m.current;
|
|
1421
|
+
if (!B)
|
|
1395
1422
|
return;
|
|
1396
1423
|
const j = new ResizeObserver(x);
|
|
1397
|
-
return j.observe(
|
|
1424
|
+
return j.observe(B), () => j.disconnect();
|
|
1398
1425
|
}, e[3] = y) : y = e[3];
|
|
1399
1426
|
let C;
|
|
1400
1427
|
e[4] !== o ? (C = [x, o], e[4] = o, e[5] = C) : C = e[5], re(y, C);
|
|
1401
|
-
const
|
|
1428
|
+
const S = f.fullView ?? "Full view";
|
|
1402
1429
|
let _;
|
|
1403
|
-
e[6] !==
|
|
1430
|
+
e[6] !== c ? (_ = {
|
|
1404
1431
|
...T.codeArea,
|
|
1405
|
-
...
|
|
1406
|
-
}, e[6] =
|
|
1432
|
+
...c
|
|
1433
|
+
}, e[6] = c, e[7] = _) : _ = e[7];
|
|
1407
1434
|
let L;
|
|
1408
|
-
e[8] !==
|
|
1435
|
+
e[8] !== i ? (L = i ? T.codeAreaPreError : {}, e[8] = i, e[9] = L) : L = e[9];
|
|
1409
1436
|
let $;
|
|
1410
1437
|
e[10] !== L ? ($ = {
|
|
1411
1438
|
...T.codeAreaPre,
|
|
1412
|
-
maxHeight:
|
|
1439
|
+
maxHeight: et,
|
|
1413
1440
|
...L
|
|
1414
1441
|
}, e[10] = L, e[11] = $) : $ = e[11];
|
|
1415
1442
|
let A;
|
|
1416
1443
|
e[12] !== o || e[13] !== $ ? (A = /* @__PURE__ */ a(v, { component: "pre", ref: m, sx: $, children: o }), e[12] = o, e[13] = $, e[14] = A) : A = e[14];
|
|
1444
|
+
let D;
|
|
1445
|
+
e[15] !== S || e[16] !== h ? (D = h && /* @__PURE__ */ a(Oe, { title: S, children: /* @__PURE__ */ a(ne, { size: "small", onClick: () => g(!0), sx: T.codeAreaFullViewButton, children: /* @__PURE__ */ a(Qe, {}) }) }), e[15] = S, e[16] = h, e[17] = D) : D = e[17];
|
|
1417
1446
|
let M;
|
|
1418
|
-
e[
|
|
1447
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = () => g(!1), e[18] = M) : M = e[18];
|
|
1448
|
+
let H;
|
|
1449
|
+
e[19] !== o || e[20] !== p || e[21] !== s ? (H = /* @__PURE__ */ a(bt, { open: p, onClose: M, title: s, content: o }), e[19] = o, e[20] = p, e[21] = s, e[22] = H) : H = e[22];
|
|
1419
1450
|
let R;
|
|
1420
|
-
e[
|
|
1421
|
-
let O;
|
|
1422
|
-
e[19] !== o || e[20] !== p || e[21] !== s ? (O = /* @__PURE__ */ a(pt, { open: p, onClose: R, title: s, content: o }), e[19] = o, e[20] = p, e[21] = s, e[22] = O) : O = e[22];
|
|
1423
|
-
let B;
|
|
1424
|
-
return e[23] !== A || e[24] !== M || e[25] !== O || e[26] !== _ ? (B = /* @__PURE__ */ S(v, { sx: _, children: [
|
|
1451
|
+
return e[23] !== A || e[24] !== D || e[25] !== H || e[26] !== _ ? (R = /* @__PURE__ */ w(v, { sx: _, children: [
|
|
1425
1452
|
A,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
] }), e[23] = A, e[24] =
|
|
1453
|
+
D,
|
|
1454
|
+
H
|
|
1455
|
+
] }), e[23] = A, e[24] = D, e[25] = H, e[26] = _, e[27] = R) : R = e[27], R;
|
|
1429
1456
|
}
|
|
1430
1457
|
function fe(t) {
|
|
1431
1458
|
const e = t.replace(/_/g, " ");
|
|
1432
1459
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1433
1460
|
}
|
|
1434
|
-
function
|
|
1461
|
+
function Se(t) {
|
|
1435
1462
|
return t.status === "running" ? t.runningLabel ?? fe(t.name) : t.label ?? fe(t.name);
|
|
1436
1463
|
}
|
|
1437
|
-
function
|
|
1438
|
-
const e =
|
|
1464
|
+
function wt(t) {
|
|
1465
|
+
const e = O(9), {
|
|
1439
1466
|
status: o,
|
|
1440
1467
|
labels: n
|
|
1441
1468
|
} = t;
|
|
1442
1469
|
switch (o) {
|
|
1443
1470
|
case "complete": {
|
|
1444
|
-
let
|
|
1445
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1471
|
+
let l;
|
|
1472
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
1446
1473
|
display: "flex",
|
|
1447
1474
|
alignItems: "center",
|
|
1448
1475
|
gap: 0.5
|
|
1449
|
-
}, e[0] =
|
|
1476
|
+
}, e[0] = l) : l = e[0];
|
|
1450
1477
|
let r;
|
|
1451
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(
|
|
1478
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Ye, { sx: {
|
|
1452
1479
|
fontSize: 12
|
|
1453
1480
|
}, color: "success" }), e[1] = r) : r = e[1];
|
|
1454
|
-
const
|
|
1481
|
+
const c = n?.success ?? "Success";
|
|
1455
1482
|
let s;
|
|
1456
|
-
return e[2] !==
|
|
1483
|
+
return e[2] !== c ? (s = /* @__PURE__ */ w(v, { sx: l, children: [
|
|
1457
1484
|
r,
|
|
1458
|
-
/* @__PURE__ */ a(z, { variant: "caption", children:
|
|
1459
|
-
] }), e[2] =
|
|
1485
|
+
/* @__PURE__ */ a(z, { variant: "caption", children: c })
|
|
1486
|
+
] }), e[2] = c, e[3] = s) : s = e[3], s;
|
|
1460
1487
|
}
|
|
1461
1488
|
case "error": {
|
|
1462
|
-
let
|
|
1463
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1489
|
+
let l;
|
|
1490
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
1464
1491
|
display: "flex",
|
|
1465
1492
|
alignItems: "center",
|
|
1466
1493
|
gap: 0.5
|
|
1467
|
-
}, e[4] =
|
|
1494
|
+
}, e[4] = l) : l = e[4];
|
|
1468
1495
|
let r;
|
|
1469
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(
|
|
1496
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Ke, { sx: {
|
|
1470
1497
|
fontSize: 12
|
|
1471
1498
|
}, color: "error" }), e[5] = r) : r = e[5];
|
|
1472
|
-
const
|
|
1499
|
+
const c = n?.error ?? "Error";
|
|
1473
1500
|
let s;
|
|
1474
|
-
return e[6] !==
|
|
1501
|
+
return e[6] !== c ? (s = /* @__PURE__ */ w(v, { sx: l, children: [
|
|
1475
1502
|
r,
|
|
1476
|
-
/* @__PURE__ */ a(z, { variant: "code3", children:
|
|
1477
|
-
] }), e[6] =
|
|
1503
|
+
/* @__PURE__ */ a(z, { variant: "code3", children: c })
|
|
1504
|
+
] }), e[6] = c, e[7] = s) : s = e[7], s;
|
|
1478
1505
|
}
|
|
1479
1506
|
case "running": {
|
|
1480
|
-
let
|
|
1481
|
-
return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1507
|
+
let l;
|
|
1508
|
+
return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ a(He, { size: 14 }), e[8] = l) : l = e[8], l;
|
|
1482
1509
|
}
|
|
1483
1510
|
default:
|
|
1484
1511
|
return null;
|
|
1485
1512
|
}
|
|
1486
1513
|
}
|
|
1487
|
-
function
|
|
1488
|
-
const e =
|
|
1514
|
+
function Te(t) {
|
|
1515
|
+
const e = O(33), {
|
|
1489
1516
|
tool: o,
|
|
1490
1517
|
labels: n
|
|
1491
1518
|
} = t;
|
|
1492
|
-
let
|
|
1493
|
-
e[0] !== n ? (
|
|
1494
|
-
const r =
|
|
1519
|
+
let l;
|
|
1520
|
+
e[0] !== n ? (l = n === void 0 ? {} : n, e[0] = n, e[1] = l) : l = e[1];
|
|
1521
|
+
const r = l, c = o.status === "error", s = r.toolExecuted ?? "Tool executed", i = r.reference ?? "Reference:", d = r.duration ?? "Duration:", f = r.status ?? "Status:", m = r.inputArguments ?? "Input arguments:", h = r.output ?? "Output:";
|
|
1495
1522
|
let b;
|
|
1496
|
-
e[2] !==
|
|
1497
|
-
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceFieldLabel, children:
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
/* @__PURE__ */ a(
|
|
1523
|
+
e[2] !== i || e[3] !== o.reference ? (b = o.reference && /* @__PURE__ */ w(v, { sx: T.traceField, children: [
|
|
1524
|
+
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceFieldLabel, children: i }),
|
|
1525
|
+
/* @__PURE__ */ w(v, { sx: T.traceReference, children: [
|
|
1526
|
+
/* @__PURE__ */ a(Ze, { color: "success" }),
|
|
1500
1527
|
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, children: o.reference })
|
|
1501
1528
|
] })
|
|
1502
|
-
] }), e[2] =
|
|
1529
|
+
] }), e[2] = i, e[3] = o.reference, e[4] = b) : b = e[4];
|
|
1503
1530
|
let p;
|
|
1504
|
-
e[5] !==
|
|
1505
|
-
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceFieldLabel, children:
|
|
1506
|
-
/* @__PURE__ */
|
|
1531
|
+
e[5] !== d || e[6] !== o.duration ? (p = o.duration != null && /* @__PURE__ */ w(v, { sx: T.traceField, children: [
|
|
1532
|
+
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceFieldLabel, children: d }),
|
|
1533
|
+
/* @__PURE__ */ w(z, { variant: "code3", children: [
|
|
1507
1534
|
o.duration,
|
|
1508
1535
|
"s"
|
|
1509
1536
|
] })
|
|
1510
|
-
] }), e[5] =
|
|
1537
|
+
] }), e[5] = d, e[6] = o.duration, e[7] = p) : p = e[7];
|
|
1511
1538
|
let g;
|
|
1512
1539
|
e[8] !== f ? (g = /* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceFieldLabel, children: f }), e[8] = f, e[9] = g) : g = e[9];
|
|
1513
|
-
let
|
|
1514
|
-
e[10] !== r || e[11] !== o.status ? (
|
|
1540
|
+
let u;
|
|
1541
|
+
e[10] !== r || e[11] !== o.status ? (u = /* @__PURE__ */ a(wt, { status: o.status, labels: r }), e[10] = r, e[11] = o.status, e[12] = u) : u = e[12];
|
|
1515
1542
|
let x;
|
|
1516
|
-
e[13] !== g || e[14] !==
|
|
1543
|
+
e[13] !== g || e[14] !== u ? (x = /* @__PURE__ */ w(v, { sx: T.traceField, children: [
|
|
1517
1544
|
g,
|
|
1518
|
-
|
|
1519
|
-
] }), e[13] = g, e[14] =
|
|
1545
|
+
u
|
|
1546
|
+
] }), e[13] = g, e[14] = u, e[15] = x) : x = e[15];
|
|
1520
1547
|
let y;
|
|
1521
|
-
e[16] !== m || e[17] !==
|
|
1548
|
+
e[16] !== m || e[17] !== c || e[18] !== o.inputArguments || e[19] !== o.output || e[20] !== s ? (y = o.inputArguments && /* @__PURE__ */ w(v, { children: [
|
|
1522
1549
|
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceField, children: m }),
|
|
1523
1550
|
/* @__PURE__ */ a(ue, { sx: {
|
|
1524
1551
|
mt: 0.5,
|
|
1525
1552
|
mb: o.output ? 1.5 : 0
|
|
1526
|
-
}, content: o.inputArguments, title: `${s}: ${m}`, isError:
|
|
1527
|
-
] }), e[16] = m, e[17] =
|
|
1553
|
+
}, content: o.inputArguments, title: `${s}: ${m}`, isError: c })
|
|
1554
|
+
] }), e[16] = m, e[17] = c, e[18] = o.inputArguments, e[19] = o.output, e[20] = s, e[21] = y) : y = e[21];
|
|
1528
1555
|
let C;
|
|
1529
|
-
e[22] !==
|
|
1556
|
+
e[22] !== c || e[23] !== h || e[24] !== o.output || e[25] !== s ? (C = o.output && /* @__PURE__ */ w(v, { children: [
|
|
1530
1557
|
/* @__PURE__ */ a(z, { variant: "code3", fontWeight: 600, color: "text.secondary", sx: T.traceField, children: h }),
|
|
1531
1558
|
/* @__PURE__ */ a(ue, { sx: {
|
|
1532
1559
|
mt: 0.5
|
|
1533
|
-
}, content: o.output, title: `${s}: ${h}`, isError:
|
|
1534
|
-
] }), e[22] =
|
|
1535
|
-
let
|
|
1536
|
-
return e[27] !== b || e[28] !== p || e[29] !== x || e[30] !== y || e[31] !== C ? (
|
|
1560
|
+
}, content: o.output, title: `${s}: ${h}`, isError: c })
|
|
1561
|
+
] }), e[22] = c, e[23] = h, e[24] = o.output, e[25] = s, e[26] = C) : C = e[26];
|
|
1562
|
+
let S;
|
|
1563
|
+
return e[27] !== b || e[28] !== p || e[29] !== x || e[30] !== y || e[31] !== C ? (S = /* @__PURE__ */ w(v, { children: [
|
|
1537
1564
|
b,
|
|
1538
1565
|
p,
|
|
1539
1566
|
x,
|
|
1540
1567
|
y,
|
|
1541
1568
|
C
|
|
1542
|
-
] }), e[27] = b, e[28] = p, e[29] = x, e[30] = y, e[31] = C, e[32] =
|
|
1569
|
+
] }), e[27] = b, e[28] = p, e[29] = x, e[30] = y, e[31] = C, e[32] = S) : S = e[32], S;
|
|
1543
1570
|
}
|
|
1544
1571
|
function pe(t) {
|
|
1545
|
-
const e =
|
|
1572
|
+
const e = O(29), {
|
|
1546
1573
|
tool: o,
|
|
1547
1574
|
expanded: n,
|
|
1548
|
-
onExpandedChange:
|
|
1575
|
+
onExpandedChange: l,
|
|
1549
1576
|
labels: r,
|
|
1550
|
-
sx:
|
|
1577
|
+
sx: c
|
|
1551
1578
|
} = t;
|
|
1552
1579
|
let s;
|
|
1553
1580
|
e[0] !== r ? (s = r === void 0 ? {} : r, e[0] = r, e[1] = s) : s = e[1];
|
|
1554
|
-
const
|
|
1555
|
-
if (
|
|
1581
|
+
const i = s, d = o.status === "running", f = i.toolExecuted ?? "Tool executed";
|
|
1582
|
+
if (d) {
|
|
1556
1583
|
let C;
|
|
1557
|
-
e[2] !== o ? (C =
|
|
1558
|
-
let
|
|
1559
|
-
return e[4] !== C ? (
|
|
1584
|
+
e[2] !== o ? (C = Se(o), e[2] = o, e[3] = C) : C = e[3];
|
|
1585
|
+
let S;
|
|
1586
|
+
return e[4] !== C ? (S = /* @__PURE__ */ a(ut, { children: C }), e[4] = C, e[5] = S) : S = e[5], S;
|
|
1560
1587
|
}
|
|
1561
1588
|
let m;
|
|
1562
|
-
e[6] !== n || e[7] !==
|
|
1589
|
+
e[6] !== n || e[7] !== l ? (m = () => l?.(!n), e[6] = n, e[7] = l, e[8] = m) : m = e[8];
|
|
1563
1590
|
let h;
|
|
1564
1591
|
e[9] !== f ? (h = /* @__PURE__ */ a(z, { variant: "caption", fontWeight: 600, color: "text.secondary", children: f }), e[9] = f, e[10] = h) : h = e[10];
|
|
1565
1592
|
const b = n ? "rotate(90deg)" : "rotate(0deg)";
|
|
1566
1593
|
let p;
|
|
1567
|
-
e[11] !== b ? (p = /* @__PURE__ */ a(
|
|
1594
|
+
e[11] !== b ? (p = /* @__PURE__ */ a(Ce, { sx: {
|
|
1568
1595
|
...T.traceChevron,
|
|
1569
1596
|
transform: b
|
|
1570
1597
|
} }), e[11] = b, e[12] = p) : p = e[12];
|
|
1571
1598
|
let g;
|
|
1572
|
-
e[13] !== n || e[14] !== m || e[15] !== h || e[16] !== p ? (g = /* @__PURE__ */
|
|
1599
|
+
e[13] !== n || e[14] !== m || e[15] !== h || e[16] !== p ? (g = /* @__PURE__ */ w(le, { size: "small", variant: "text", onClick: m, "aria-expanded": n, sx: T.traceHeader, children: [
|
|
1573
1600
|
h,
|
|
1574
1601
|
p
|
|
1575
1602
|
] }), e[13] = n, e[14] = m, e[15] = h, e[16] = p, e[17] = g) : g = e[17];
|
|
1576
|
-
let
|
|
1577
|
-
e[18] !==
|
|
1603
|
+
let u;
|
|
1604
|
+
e[18] !== i || e[19] !== o ? (u = /* @__PURE__ */ a(v, { sx: T.traceDetailsWrapper, children: /* @__PURE__ */ a(Te, { tool: o, labels: i }) }), e[18] = i, e[19] = o, e[20] = u) : u = e[20];
|
|
1578
1605
|
let x;
|
|
1579
|
-
e[21] !== n || e[22] !==
|
|
1606
|
+
e[21] !== n || e[22] !== u ? (x = /* @__PURE__ */ a(se, { in: n, unmountOnExit: !0, children: u }), e[21] = n, e[22] = u, e[23] = x) : x = e[23];
|
|
1580
1607
|
let y;
|
|
1581
|
-
return e[24] !==
|
|
1608
|
+
return e[24] !== c || e[25] !== g || e[26] !== x || e[27] !== o.name ? (y = /* @__PURE__ */ w(v, { width: "100%", sx: c, "data-tool": o.name, className: "PsChat--tool-trace", children: [
|
|
1582
1609
|
g,
|
|
1583
1610
|
x
|
|
1584
|
-
] }), e[24] =
|
|
1611
|
+
] }), e[24] = c, e[25] = g, e[26] = x, e[27] = o.name, e[28] = y) : y = e[28], y;
|
|
1585
1612
|
}
|
|
1586
1613
|
function me(t, e) {
|
|
1587
|
-
const o =
|
|
1614
|
+
const o = O(5), [n, l] = te(t);
|
|
1588
1615
|
if (e) {
|
|
1589
1616
|
let r;
|
|
1590
1617
|
return o[0] !== e || o[1] !== t ? (r = [t, e], o[0] = e, o[1] = t, o[2] = r) : r = o[2], r;
|
|
1591
1618
|
} else {
|
|
1592
1619
|
let r;
|
|
1593
|
-
return o[3] !== n ? (r = [n,
|
|
1620
|
+
return o[3] !== n ? (r = [n, l], o[3] = n, o[4] = r) : r = o[4], r;
|
|
1594
1621
|
}
|
|
1595
1622
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const e =
|
|
1623
|
+
function Gt(t) {
|
|
1624
|
+
const e = O(61), {
|
|
1598
1625
|
tools: o,
|
|
1599
1626
|
expanded: n,
|
|
1600
|
-
onExpandedChange:
|
|
1627
|
+
onExpandedChange: l,
|
|
1601
1628
|
expandedTools: r,
|
|
1602
|
-
onToolExpandedChange:
|
|
1629
|
+
onToolExpandedChange: c,
|
|
1603
1630
|
labels: s,
|
|
1604
|
-
sx:
|
|
1605
|
-
} = t,
|
|
1631
|
+
sx: i
|
|
1632
|
+
} = t, d = n === void 0 ? !1 : n;
|
|
1606
1633
|
let f;
|
|
1607
1634
|
e[0] !== r ? (f = r === void 0 ? {} : r, e[0] = r, e[1] = f) : f = e[1];
|
|
1608
1635
|
const m = f;
|
|
1609
1636
|
let h;
|
|
1610
1637
|
e[2] !== s ? (h = s === void 0 ? {} : s, e[2] = s, e[3] = h) : h = e[3];
|
|
1611
|
-
const b = h, [p, g] = me(
|
|
1638
|
+
const b = h, [p, g] = me(d, l), [u, x] = me(m, c);
|
|
1612
1639
|
let y;
|
|
1613
|
-
e[4] !== o ? (y = o.filter(
|
|
1640
|
+
e[4] !== o ? (y = o.filter(kt), e[4] = o, e[5] = y) : y = e[5];
|
|
1614
1641
|
const C = y.length;
|
|
1615
|
-
let
|
|
1616
|
-
if (e[6] !== p || e[7] !==
|
|
1642
|
+
let S, _;
|
|
1643
|
+
if (e[6] !== p || e[7] !== u || e[8] !== b || e[9] !== C || e[10] !== g || e[11] !== x || e[12] !== i || e[13] !== o) {
|
|
1617
1644
|
_ = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
1618
1645
|
e: {
|
|
1619
|
-
const L = o.filter(
|
|
1646
|
+
const L = o.filter(Tt), $ = o.filter(St), A = b.toolsUsed ?? "tools used", D = b.error ?? "Error";
|
|
1620
1647
|
if (o.length === 1) {
|
|
1621
1648
|
let k;
|
|
1622
|
-
e[16] !== p || e[17] !== b || e[18] !== g || e[19] !==
|
|
1649
|
+
e[16] !== p || e[17] !== b || e[18] !== g || e[19] !== i || e[20] !== o[0] ? (k = /* @__PURE__ */ a(pe, { tool: o[0], expanded: p, onExpandedChange: g, labels: b, sx: i }), e[16] = p, e[17] = b, e[18] = g, e[19] = i, e[20] = o[0], e[21] = k) : k = e[21], _ = k;
|
|
1623
1650
|
break e;
|
|
1624
1651
|
}
|
|
1652
|
+
let M;
|
|
1653
|
+
e[22] !== p || e[23] !== g ? (M = () => g(!p), e[22] = p, e[23] = g, e[24] = M) : M = e[24];
|
|
1654
|
+
const H = C > 0 ? 0.5 : 0;
|
|
1625
1655
|
let R;
|
|
1626
|
-
e[
|
|
1627
|
-
const O = C > 0 ? 0.5 : 0;
|
|
1628
|
-
let B;
|
|
1629
|
-
e[25] !== O ? (B = {
|
|
1656
|
+
e[25] !== H ? (R = {
|
|
1630
1657
|
...T.traceHeader,
|
|
1631
|
-
pr:
|
|
1632
|
-
}, e[25] =
|
|
1633
|
-
let
|
|
1634
|
-
e[27] !== o.length || e[28] !== A ? (
|
|
1658
|
+
pr: H
|
|
1659
|
+
}, e[25] = H, e[26] = R) : R = e[26];
|
|
1660
|
+
let B;
|
|
1661
|
+
e[27] !== o.length || e[28] !== A ? (B = /* @__PURE__ */ w(z, { variant: "caption", fontWeight: 600, color: "text.secondary", children: [
|
|
1635
1662
|
o.length,
|
|
1636
1663
|
" ",
|
|
1637
1664
|
A
|
|
1638
|
-
] }), e[27] = o.length, e[28] = A, e[29] =
|
|
1665
|
+
] }), e[27] = o.length, e[28] = A, e[29] = B) : B = e[29];
|
|
1639
1666
|
const j = p ? "rotate(90deg)" : "rotate(0deg)";
|
|
1640
1667
|
let K;
|
|
1641
|
-
e[30] !== j ? (K = /* @__PURE__ */ a(
|
|
1668
|
+
e[30] !== j ? (K = /* @__PURE__ */ a(Ce, { sx: {
|
|
1642
1669
|
...T.traceChevron,
|
|
1643
1670
|
transform: j
|
|
1644
1671
|
} }), e[30] = j, e[31] = K) : K = e[31];
|
|
1645
1672
|
let G;
|
|
1646
|
-
e[32] !== C ? (G = C > 0 && /* @__PURE__ */
|
|
1673
|
+
e[32] !== C ? (G = C > 0 && /* @__PURE__ */ w(z, { variant: "code3", sx: T.errorBadge, children: [
|
|
1647
1674
|
C,
|
|
1648
|
-
/* @__PURE__ */ a(
|
|
1675
|
+
/* @__PURE__ */ a(xe, { sx: {
|
|
1649
1676
|
fontSize: 12
|
|
1650
1677
|
}, color: "error" })
|
|
1651
1678
|
] }), e[32] = C, e[33] = G) : G = e[33];
|
|
1652
1679
|
let J;
|
|
1653
|
-
e[34] !== p || e[35] !==
|
|
1654
|
-
|
|
1680
|
+
e[34] !== p || e[35] !== R || e[36] !== B || e[37] !== K || e[38] !== G || e[39] !== M ? (J = /* @__PURE__ */ w(le, { size: "small", variant: "text", onClick: M, "aria-expanded": p, sx: R, children: [
|
|
1681
|
+
B,
|
|
1655
1682
|
K,
|
|
1656
1683
|
G
|
|
1657
|
-
] }), e[34] = p, e[35] =
|
|
1684
|
+
] }), e[34] = p, e[35] = R, e[36] = B, e[37] = K, e[38] = G, e[39] = M, e[40] = J) : J = e[40];
|
|
1658
1685
|
const Q = se, Z = p, U = !0, Y = v, q = "ul";
|
|
1659
1686
|
let V;
|
|
1660
1687
|
e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = {
|
|
@@ -1663,74 +1690,75 @@ function Pt(t) {
|
|
|
1663
1690
|
listStyle: "none"
|
|
1664
1691
|
}, e[41] = V) : V = e[41];
|
|
1665
1692
|
let I;
|
|
1666
|
-
e[42] !==
|
|
1667
|
-
const E =
|
|
1668
|
-
return /* @__PURE__ */
|
|
1669
|
-
/* @__PURE__ */
|
|
1670
|
-
...
|
|
1693
|
+
e[42] !== D || e[43] !== u || e[44] !== b || e[45] !== x ? (I = (k) => {
|
|
1694
|
+
const E = u[k.id] ?? !1;
|
|
1695
|
+
return /* @__PURE__ */ w(v, { component: "li", sx: T.groupListItem, "aria-expanded": E, children: [
|
|
1696
|
+
/* @__PURE__ */ w(le, { variant: "text", color: "inherit", fullWidth: !0, onClick: () => x({
|
|
1697
|
+
...u,
|
|
1671
1698
|
[k.id]: !E
|
|
1672
1699
|
}), "aria-expanded": E, sx: T.groupHeader, children: [
|
|
1673
|
-
/* @__PURE__ */ a(z, { flexGrow: 1, flexShrink: 0, variant: "caption", color: "text.secondary", children:
|
|
1674
|
-
k.status === "error" && /* @__PURE__ */ a(z, { variant: "code3", color: "error.main", children:
|
|
1675
|
-
/* @__PURE__ */ a(
|
|
1700
|
+
/* @__PURE__ */ a(z, { flexGrow: 1, flexShrink: 0, variant: "caption", color: "text.secondary", children: Se(k) }),
|
|
1701
|
+
k.status === "error" && /* @__PURE__ */ a(z, { variant: "code3", color: "error.main", children: D }),
|
|
1702
|
+
/* @__PURE__ */ a(qe, { sx: {
|
|
1676
1703
|
...T.traceChevron,
|
|
1677
1704
|
transform: E ? "rotate(90deg)" : "rotate(0deg)"
|
|
1678
1705
|
} })
|
|
1679
1706
|
] }),
|
|
1680
|
-
/* @__PURE__ */ a(se, { in: E, unmountOnExit: !0, children: /* @__PURE__ */ a(v, { px: 1.5, py: 1, children: /* @__PURE__ */ a(
|
|
1707
|
+
/* @__PURE__ */ a(se, { in: E, unmountOnExit: !0, children: /* @__PURE__ */ a(v, { px: 1.5, py: 1, children: /* @__PURE__ */ a(Te, { tool: k, labels: b }) }) })
|
|
1681
1708
|
] }, k.id);
|
|
1682
|
-
}, e[42] =
|
|
1709
|
+
}, e[42] = D, e[43] = u, e[44] = b, e[45] = x, e[46] = I) : I = e[46];
|
|
1683
1710
|
const F = $.map(I);
|
|
1684
1711
|
let W;
|
|
1685
1712
|
e[47] !== Y || e[48] !== q || e[49] !== V || e[50] !== F ? (W = /* @__PURE__ */ a(Y, { component: q, sx: V, children: F }), e[47] = Y, e[48] = q, e[49] = V, e[50] = F, e[51] = W) : W = e[51];
|
|
1686
1713
|
let X;
|
|
1687
1714
|
e[52] !== Q || e[53] !== Z || e[54] !== U || e[55] !== W ? (X = /* @__PURE__ */ a(Q, { in: Z, unmountOnExit: U, children: W }), e[52] = Q, e[53] = Z, e[54] = U, e[55] = W, e[56] = X) : X = e[56];
|
|
1688
1715
|
let N;
|
|
1689
|
-
e[57] !==
|
|
1690
|
-
...
|
|
1691
|
-
[k.id]: !
|
|
1692
|
-
}) }, k.id), e[57] =
|
|
1716
|
+
e[57] !== u || e[58] !== b || e[59] !== x ? (N = (k) => /* @__PURE__ */ a(pe, { tool: k, labels: b, expanded: u[k.id], onExpandedChange: () => x({
|
|
1717
|
+
...u,
|
|
1718
|
+
[k.id]: !u[k.id]
|
|
1719
|
+
}) }, k.id), e[57] = u, e[58] = b, e[59] = x, e[60] = N) : N = e[60], S = /* @__PURE__ */ w(v, { width: "100%", sx: i, className: "PsChat--tool-group", children: [
|
|
1693
1720
|
J,
|
|
1694
1721
|
X,
|
|
1695
1722
|
L.map(N)
|
|
1696
1723
|
] });
|
|
1697
1724
|
}
|
|
1698
|
-
e[6] = p, e[7] =
|
|
1725
|
+
e[6] = p, e[7] = u, e[8] = b, e[9] = C, e[10] = g, e[11] = x, e[12] = i, e[13] = o, e[14] = S, e[15] = _;
|
|
1699
1726
|
} else
|
|
1700
|
-
|
|
1701
|
-
return _ !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? _ :
|
|
1727
|
+
S = e[14], _ = e[15];
|
|
1728
|
+
return _ !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? _ : S;
|
|
1702
1729
|
}
|
|
1703
|
-
function
|
|
1730
|
+
function St(t) {
|
|
1704
1731
|
return t.status !== "running";
|
|
1705
1732
|
}
|
|
1706
|
-
function
|
|
1733
|
+
function Tt(t) {
|
|
1707
1734
|
return t.status === "running";
|
|
1708
1735
|
}
|
|
1709
|
-
function
|
|
1736
|
+
function kt(t) {
|
|
1710
1737
|
return t.status === "error";
|
|
1711
1738
|
}
|
|
1712
1739
|
export {
|
|
1713
|
-
|
|
1740
|
+
zt as CHAT_DIVIDER_DELAY,
|
|
1714
1741
|
ie as CHAT_MAX_WIDTH,
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1742
|
+
Dt as CHAT_SCROLL_DELAY,
|
|
1743
|
+
et as CHAT_TOOL_CODE_AREA_MAX_HEIGHT,
|
|
1744
|
+
Ut as ChatActionsContainer,
|
|
1745
|
+
we as ChatAgentMessage,
|
|
1746
|
+
rt as ChatAgentMessageMarkdown,
|
|
1747
|
+
pt as ChatContent,
|
|
1748
|
+
Ot as ChatErrorMessage,
|
|
1749
|
+
Vt as ChatFooter,
|
|
1750
|
+
Pt as ChatHeader,
|
|
1751
|
+
Ht as ChatLoader,
|
|
1752
|
+
ve as ChatMessageOverflow,
|
|
1753
|
+
Nt as ChatRatingAction,
|
|
1754
|
+
jt as ChatStarter,
|
|
1755
|
+
st as ChatSuggestionButton,
|
|
1756
|
+
ut as ChatThinking,
|
|
1729
1757
|
ue as ChatToolCodeArea,
|
|
1730
|
-
|
|
1731
|
-
|
|
1758
|
+
bt as ChatToolFullViewDialog,
|
|
1759
|
+
Gt as ChatToolGroup,
|
|
1732
1760
|
pe as ChatToolTrace,
|
|
1733
|
-
|
|
1734
|
-
|
|
1761
|
+
Ft as ChatUserMessage,
|
|
1762
|
+
Wt as useTypewriter
|
|
1735
1763
|
};
|
|
1736
1764
|
//# sourceMappingURL=chat.js.map
|