teodor-new-chat-ui 4.3.416 → 4.3.417
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLSpanElement | HTMLParagraphElement | HTMLAnchorElement | HTMLObjectElement | HTMLDataElement | HTMLSourceElement | HTMLLinkElement | HTMLMapElement | HTMLTitleElement | HTMLHeadElement | HTMLBodyElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement |
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLSpanElement | HTMLParagraphElement | HTMLAnchorElement | HTMLObjectElement | HTMLDataElement | HTMLSourceElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLTitleElement | HTMLHeadElement | HTMLBodyElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ var Sg = Object.defineProperty;
|
|
|
2
2
|
var Tg = (e, t, n) => t in e ? Sg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Hl = (e, t, n) => Tg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as h from "react";
|
|
5
|
-
import O, { useMemo as
|
|
5
|
+
import O, { useMemo as Ze, createContext as Nr, useContext as Ar, useState as he, useRef as We, useCallback as xe, useEffect as at, useReducer as Cg, useLayoutEffect as Eg, createElement as Uo, memo as kg, useImperativeHandle as Rg, forwardRef as Ig, isValidElement as pa } from "react";
|
|
6
6
|
import { Slot as Ng, createSlot as Tr, createSlottable as Ag } from "@radix-ui/react-slot";
|
|
7
7
|
import { cva as lo } from "class-variance-authority";
|
|
8
8
|
import { clsx as jg } from "clsx";
|
|
@@ -82,6 +82,14 @@ function Xg(e) {
|
|
|
82
82
|
console.log(` 📌 User Message "${c}": ${d.length} checkpoint(s)`), d.forEach((p, m) => {
|
|
83
83
|
console.log(` [${m}] checkpoint="${p.id}", step=${p.step}, created=${p.createdAt}`);
|
|
84
84
|
});
|
|
85
|
+
console.log("🔍 [CheckpointIndex] AFTER computing checkpoint metadata:"), console.log(` checkpointMetaByCheckpointId size: ${t.size}`), console.log(" checkpointMetaByCheckpointId keys:", Array.from(t.keys()));
|
|
86
|
+
for (const [c, d] of t.entries())
|
|
87
|
+
console.log(` Checkpoint "${c}":`, {
|
|
88
|
+
userMessageId: d.userMessageId,
|
|
89
|
+
step: d.step,
|
|
90
|
+
source: d.source,
|
|
91
|
+
createdAt: d.createdAt
|
|
92
|
+
});
|
|
85
93
|
for (const c of s.values()) {
|
|
86
94
|
if (!c.length) continue;
|
|
87
95
|
c.sort((p, m) => {
|
|
@@ -140,7 +148,7 @@ function SI(e, t) {
|
|
|
140
148
|
return e ? t.getCheckpoint(e) ?? null : null;
|
|
141
149
|
}
|
|
142
150
|
function Zg(e) {
|
|
143
|
-
return
|
|
151
|
+
return Ze(() => Xg(e), [e]);
|
|
144
152
|
}
|
|
145
153
|
function Kr(e) {
|
|
146
154
|
if (!(!e || typeof e != "object" || Array.isArray(e)))
|
|
@@ -599,7 +607,7 @@ function ox() {
|
|
|
599
607
|
if (Ye(I))
|
|
600
608
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(I)), ot(I);
|
|
601
609
|
}
|
|
602
|
-
var
|
|
610
|
+
var Qe = b.ReactCurrentOwner, bt = {
|
|
603
611
|
key: !0,
|
|
604
612
|
ref: !0,
|
|
605
613
|
__self: !0,
|
|
@@ -622,7 +630,7 @@ function ox() {
|
|
|
622
630
|
return I.key !== void 0;
|
|
623
631
|
}
|
|
624
632
|
function st(I, Q) {
|
|
625
|
-
typeof I.ref == "string" &&
|
|
633
|
+
typeof I.ref == "string" && Qe.current;
|
|
626
634
|
}
|
|
627
635
|
function Nt(I, Q) {
|
|
628
636
|
{
|
|
@@ -690,7 +698,7 @@ function ox() {
|
|
|
690
698
|
var Tt = typeof I == "function" ? I.displayName || I.name || "Unknown" : I;
|
|
691
699
|
Ce && Nt(de, Tt), St && sn(de, Tt);
|
|
692
700
|
}
|
|
693
|
-
return Le(I, Ce, St, ie, Re,
|
|
701
|
+
return Le(I, Ce, St, ie, Re, Qe.current, de);
|
|
694
702
|
}
|
|
695
703
|
}
|
|
696
704
|
var Dt = b.ReactCurrentOwner, At = b.ReactDebugCurrentFrame;
|
|
@@ -804,7 +812,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
804
812
|
}
|
|
805
813
|
}
|
|
806
814
|
var $e = {};
|
|
807
|
-
function
|
|
815
|
+
function et(I, Q, ue, Re, ie, me) {
|
|
808
816
|
{
|
|
809
817
|
var de = L(I);
|
|
810
818
|
if (!de) {
|
|
@@ -849,10 +857,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
849
857
|
}
|
|
850
858
|
}
|
|
851
859
|
function Ft(I, Q, ue) {
|
|
852
|
-
return
|
|
860
|
+
return et(I, Q, ue, !0);
|
|
853
861
|
}
|
|
854
862
|
function ua(I, Q, ue) {
|
|
855
|
-
return
|
|
863
|
+
return et(I, Q, ue, !1);
|
|
856
864
|
}
|
|
857
865
|
var da = ua, Ao = Ft;
|
|
858
866
|
zr.Fragment = r, zr.jsx = da, zr.jsxs = Ao;
|
|
@@ -869,7 +877,7 @@ const TI = ({
|
|
|
869
877
|
onHoverStart: s,
|
|
870
878
|
onHoverEnd: a
|
|
871
879
|
}) => {
|
|
872
|
-
const i = e ?? [], l = i.length > 0, c =
|
|
880
|
+
const i = e ?? [], l = i.length > 0, c = Ze(() => l ? [...i].reverse() : [], [i, l]), d = t ?? (i.length ? i[i.length - 1].id : null);
|
|
873
881
|
if (!l)
|
|
874
882
|
return null;
|
|
875
883
|
const m = ["w-32 flex-shrink-0 flex-col border-r border-border/40 pr-2 flex bg-white text-gray-900 dark:bg-slate-900 dark:text-slate-100", o].filter(Boolean).join(" ");
|
|
@@ -2934,7 +2942,7 @@ function Uv(e) {
|
|
|
2934
2942
|
return !!e && typeof e == "object" && e.protocolVersion === "v1" && "data" in e;
|
|
2935
2943
|
}
|
|
2936
2944
|
function Wv(e = {}) {
|
|
2937
|
-
const t =
|
|
2945
|
+
const t = Ze(() => Rn(e.baseUrl), [e.baseUrl]), n = e.streamPath ?? "/runs/stream", [r, o] = he(e.token ?? null), s = We(e.headers ?? {}), a = e.credentials ?? "include", [i, l] = he(!1), [c, d] = he(null), [p, m] = he(""), [f, v] = he(null), [g, x] = he(0), [b, w] = he(!1), y = We(null), C = We(!0), S = We(0), T = We(null), E = We(null), N = We(null), M = We(null), L = xe((R) => {
|
|
2938
2946
|
o(R);
|
|
2939
2947
|
}, []), H = xe(() => {
|
|
2940
2948
|
m(""), v(null), d(null), E.current = null, N.current = null, M.current = null;
|
|
@@ -3021,7 +3029,7 @@ function Wv(e = {}) {
|
|
|
3021
3029
|
}
|
|
3022
3030
|
w(!0);
|
|
3023
3031
|
const ot = Ye.body.getReader(), nt = new TextDecoder();
|
|
3024
|
-
let
|
|
3032
|
+
let Qe = "", bt = [];
|
|
3025
3033
|
S.current = 0, x(0);
|
|
3026
3034
|
let gt = 0, pt = null;
|
|
3027
3035
|
const be = () => {
|
|
@@ -3049,18 +3057,18 @@ function Wv(e = {}) {
|
|
|
3049
3057
|
}), (B = k == null ? void 0 : k.onOpen) == null || B.call(k, { threadId: Dt, created: At }); ; ) {
|
|
3050
3058
|
const { value: yt, done: It } = await ot.read();
|
|
3051
3059
|
if (It) break;
|
|
3052
|
-
|
|
3060
|
+
Qe += nt.decode(yt, { stream: !0 }), Qe.length > sn && (Qe = "", console.warn("Stream buffer reset: exceeded 1MB"));
|
|
3053
3061
|
let ee;
|
|
3054
|
-
for (; (ee =
|
|
3062
|
+
for (; (ee = Qe.indexOf(`
|
|
3055
3063
|
|
|
3056
3064
|
`)) >= 0; ) {
|
|
3057
|
-
const Se =
|
|
3058
|
-
|
|
3065
|
+
const Se = Qe.slice(0, ee);
|
|
3066
|
+
Qe = Qe.slice(ee + 2);
|
|
3059
3067
|
const mt = Se.split(/\r?\n/), Te = [];
|
|
3060
3068
|
for (const $e of mt)
|
|
3061
3069
|
if (!(!$e || $e.startsWith(":")) && $e.startsWith("data:")) {
|
|
3062
|
-
const
|
|
3063
|
-
Te.push(
|
|
3070
|
+
const et = $e.slice(5);
|
|
3071
|
+
Te.push(et.startsWith(" ") ? et.slice(1) : et);
|
|
3064
3072
|
}
|
|
3065
3073
|
const Pe = Te.join(`
|
|
3066
3074
|
`);
|
|
@@ -3092,8 +3100,8 @@ function Wv(e = {}) {
|
|
|
3092
3100
|
else if (Be.type === "state_history") {
|
|
3093
3101
|
M.current = Be;
|
|
3094
3102
|
try {
|
|
3095
|
-
const
|
|
3096
|
-
|
|
3103
|
+
const et = Vn(Be).latest;
|
|
3104
|
+
et && (E.current = et.checkpointId ?? null, N.current = et.checkpointNs ?? null, v(et.checkpointId ?? null));
|
|
3097
3105
|
} catch ($e) {
|
|
3098
3106
|
console.warn("[use-chat] Failed to hydrate state_history payload", $e);
|
|
3099
3107
|
}
|
|
@@ -3104,7 +3112,7 @@ function Wv(e = {}) {
|
|
|
3104
3112
|
console.error("[use-chat] Error in onEvent callback:", $e, "for event:", Be.type);
|
|
3105
3113
|
}
|
|
3106
3114
|
if (Be.type === "message.delta") {
|
|
3107
|
-
const $e = Be.delta.filter((
|
|
3115
|
+
const $e = Be.delta.filter((et) => et.type === "text").map((et) => et.text).join("");
|
|
3108
3116
|
$e && e.autoAppendAssistant !== !1 && (bt.push($e), rt());
|
|
3109
3117
|
} else if (Be.type === "heartbeat") {
|
|
3110
3118
|
console.debug("[use-chat] heartbeat received");
|
|
@@ -3333,7 +3341,7 @@ function qv({
|
|
|
3333
3341
|
}
|
|
3334
3342
|
},
|
|
3335
3343
|
[e, n, M]
|
|
3336
|
-
), U =
|
|
3344
|
+
), U = Ze(
|
|
3337
3345
|
() => ({
|
|
3338
3346
|
createThread: L,
|
|
3339
3347
|
deleteThread: H,
|
|
@@ -3406,7 +3414,7 @@ function Gv({
|
|
|
3406
3414
|
initialThreadId: t,
|
|
3407
3415
|
onError: n,
|
|
3408
3416
|
onThreadChange: r
|
|
3409
|
-
}), w =
|
|
3417
|
+
}), w = Ze(
|
|
3410
3418
|
() => ({
|
|
3411
3419
|
threads: s,
|
|
3412
3420
|
currentThreadId: a,
|
|
@@ -3786,7 +3794,7 @@ function dw(e = []) {
|
|
|
3786
3794
|
at(() => () => {
|
|
3787
3795
|
o.current !== null && typeof window < "u" && window.cancelAnimationFrame(o.current), s.current !== null && clearTimeout(s.current), r.current = [];
|
|
3788
3796
|
}, []);
|
|
3789
|
-
const c =
|
|
3797
|
+
const c = Ze(() => ({
|
|
3790
3798
|
reset: (d) => n({ type: "reset", payload: { messages: d } }),
|
|
3791
3799
|
seed: (d, p) => n({ type: "seed", payload: { messages: d, ...p ?? {} } }),
|
|
3792
3800
|
prepend: (d) => n({ type: "prepend", payload: { messages: d } }),
|
|
@@ -4017,7 +4025,7 @@ function gw({
|
|
|
4017
4025
|
isStreaming: c,
|
|
4018
4026
|
getMessages: d
|
|
4019
4027
|
}) {
|
|
4020
|
-
const [p, m] = he(null), v =
|
|
4028
|
+
const [p, m] = he(null), v = Ze(
|
|
4021
4029
|
() => Vn(p),
|
|
4022
4030
|
[p]
|
|
4023
4031
|
).checkpoints, g = Zg(v), x = g.timeline, [b, w] = he(!1), [y, C] = he(null), [S, T] = he(!1), [E, N] = he(!1), [M, L] = he(!1), [H, V] = he(null), W = We(o), R = We(null), U = We(null), k = We(null), F = We(null), _ = We(!1), A = We(null), q = We(/* @__PURE__ */ new Map());
|
|
@@ -4304,10 +4312,10 @@ function vw({
|
|
|
4304
4312
|
), q = xe(
|
|
4305
4313
|
(K) => _(() => K),
|
|
4306
4314
|
[]
|
|
4307
|
-
), X =
|
|
4315
|
+
), X = Ze(() => {
|
|
4308
4316
|
const K = c.assemblingId ?? null;
|
|
4309
4317
|
return K ? { assemblingMessageId: K } : null;
|
|
4310
|
-
}, [c.assemblingId]), j =
|
|
4318
|
+
}, [c.assemblingId]), j = Ze(
|
|
4311
4319
|
() => ({
|
|
4312
4320
|
threadId: l,
|
|
4313
4321
|
messages: c.messages,
|
|
@@ -4368,7 +4376,7 @@ function vw({
|
|
|
4368
4376
|
m,
|
|
4369
4377
|
f
|
|
4370
4378
|
]
|
|
4371
|
-
), P =
|
|
4379
|
+
), P = Ze(
|
|
4372
4380
|
() => ({
|
|
4373
4381
|
registerClearThread: A,
|
|
4374
4382
|
registerRespondToInterrupt: q
|
|
@@ -4390,7 +4398,7 @@ function ww({
|
|
|
4390
4398
|
onConnectionError: l,
|
|
4391
4399
|
onToolEnd: c
|
|
4392
4400
|
}) {
|
|
4393
|
-
const { api: d, baseUrl: p } = As(), m =
|
|
4401
|
+
const { api: d, baseUrl: p } = As(), m = Ze(() => Rn(p), [p]), { stream: f, stop: v, isStreaming: g, error: x, setToken: b } = Wv({ baseUrl: m }), [w, y] = he(!1);
|
|
4394
4402
|
return at(() => {
|
|
4395
4403
|
y(g);
|
|
4396
4404
|
}, [g]), /* @__PURE__ */ u.jsx(
|
|
@@ -4534,7 +4542,7 @@ function bw({
|
|
|
4534
4542
|
H(ce);
|
|
4535
4543
|
},
|
|
4536
4544
|
[g, f, w, S, H, x]
|
|
4537
|
-
), U =
|
|
4545
|
+
), U = Ze(
|
|
4538
4546
|
() => ({
|
|
4539
4547
|
isStreaming: c,
|
|
4540
4548
|
error: d,
|
|
@@ -11324,8 +11332,8 @@ const XT = /* @__PURE__ */ Je(
|
|
|
11324
11332
|
const He = jp(qe, Fe, Ke);
|
|
11325
11333
|
let Ye, ot;
|
|
11326
11334
|
ge ? Y === 0 && ne === 0 && le > 0 ? (Ye = 0, ot = le - 1) : (Ye = He * gs((Y + ze) / (ke + ze)), ot = He * lu((ne + ze) / (ke + ze)) - 1, ot = Oa(D - 1, Gr(ot, He - 1)), Ye = Oa(ot, Gr(0, Ye))) : (Ye = 0, ot = -1);
|
|
11327
|
-
const nt = uu(Ye, ot, ce), { bottom:
|
|
11328
|
-
return { bottom:
|
|
11335
|
+
const nt = uu(Ye, ot, ce), { bottom: Qe, top: bt } = du(J, ae, $, nt), gt = lu(D / He), pt = gt * ke + (gt - 1) * ze - Qe;
|
|
11336
|
+
return { bottom: Qe, itemHeight: ke, items: nt, itemWidth: Fe, offsetBottom: pt, offsetTop: bt, top: bt };
|
|
11329
11337
|
}
|
|
11330
11338
|
)
|
|
11331
11339
|
),
|
|
@@ -13745,7 +13753,7 @@ function Ro({
|
|
|
13745
13753
|
allowHtml: n = !1,
|
|
13746
13754
|
style: r
|
|
13747
13755
|
}) {
|
|
13748
|
-
const o =
|
|
13756
|
+
const o = Ze(() => {
|
|
13749
13757
|
try {
|
|
13750
13758
|
if (!n) {
|
|
13751
13759
|
const a = e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi, "").replace(/javascript:/gi, "").replace(/on\w+\s*=/gi, "");
|
|
@@ -13755,7 +13763,7 @@ function Ro({
|
|
|
13755
13763
|
} catch (a) {
|
|
13756
13764
|
return console.error("[MarkdownContent] parse error", a), `<pre class="font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words">Error rendering markdown: ${String(a)}</pre>`;
|
|
13757
13765
|
}
|
|
13758
|
-
}, [e, n]), s =
|
|
13766
|
+
}, [e, n]), s = Ze(() => {
|
|
13759
13767
|
const a = {
|
|
13760
13768
|
color: "currentColor",
|
|
13761
13769
|
...r
|
|
@@ -13899,7 +13907,7 @@ function VC({ artifact: e }) {
|
|
|
13899
13907
|
] });
|
|
13900
13908
|
}
|
|
13901
13909
|
function KC({ artifact: e, idx: t = 0 }) {
|
|
13902
|
-
const n =
|
|
13910
|
+
const n = Ze(() => e ? (Array.isArray(e.plots) ? e.plots : []).map((o) => rw(o)).filter((o) => o !== null) : [], [e]);
|
|
13903
13911
|
return (e == null ? void 0 : e.type) === "research_task_info" ? /* @__PURE__ */ u.jsx(
|
|
13904
13912
|
VC,
|
|
13905
13913
|
{
|
|
@@ -14033,7 +14041,7 @@ function dh({ data: e }) {
|
|
|
14033
14041
|
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: GC, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Er(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Er(e) });
|
|
14034
14042
|
}
|
|
14035
14043
|
function YC({ message: e, isStreaming: t = !1 }) {
|
|
14036
|
-
const n = e.name ?? "tool", r =
|
|
14044
|
+
const n = e.name ?? "tool", r = Ze(() => {
|
|
14037
14045
|
const i = e.additionalKwargs ?? {};
|
|
14038
14046
|
return Array.isArray(i.toolProgress) ? [...i.toolProgress] : [];
|
|
14039
14047
|
}, [e]), s = r.some(
|
|
@@ -14381,7 +14389,7 @@ function eE(e) {
|
|
|
14381
14389
|
};
|
|
14382
14390
|
}
|
|
14383
14391
|
function tE(e, t) {
|
|
14384
|
-
return
|
|
14392
|
+
return Ze(() => {
|
|
14385
14393
|
if (t)
|
|
14386
14394
|
return {
|
|
14387
14395
|
contentParts: [],
|
|
@@ -14431,13 +14439,13 @@ const jl = kg(function({
|
|
|
14431
14439
|
attemptIndex: T = 0,
|
|
14432
14440
|
onSelectCheckpoint: E
|
|
14433
14441
|
}) {
|
|
14434
|
-
const [N, M] = he(!1), [L, H] = he("preview"), [V, W] = he(!1), { currentThreadId: R } = mo(), { respondToInterrupt: U } = js(), k = l === "phone" || l === "half-screen", F = t.role, _ = F === "tool", A =
|
|
14442
|
+
const [N, M] = he(!1), [L, H] = he("preview"), [V, W] = he(!1), { currentThreadId: R } = mo(), { respondToInterrupt: U } = js(), k = l === "phone" || l === "half-screen", F = t.role, _ = F === "tool", A = Ze(() => "type" in t && t.type === "default_message" ? t : null, [t]), q = !!A, X = !(r && F !== "user"), {
|
|
14435
14443
|
uploadingFiles: j,
|
|
14436
14444
|
handleFileClick: P,
|
|
14437
14445
|
fileViewerOpen: K,
|
|
14438
14446
|
currentFileInfo: G,
|
|
14439
14447
|
closeFileViewer: oe
|
|
14440
|
-
} = eE({ allowFileOpen: X, currentThreadId: R }), B =
|
|
14448
|
+
} = eE({ allowFileOpen: X, currentThreadId: R }), B = Ze(() => {
|
|
14441
14449
|
switch (F) {
|
|
14442
14450
|
case "user":
|
|
14443
14451
|
return "text-[hsl(var(--chat-bubble-user-text))]";
|
|
@@ -14459,7 +14467,7 @@ const jl = kg(function({
|
|
|
14459
14467
|
toolMeta: ce,
|
|
14460
14468
|
toolRaw: le,
|
|
14461
14469
|
isToolStreaming: ge
|
|
14462
|
-
} = D, Ae = (b == null ? void 0 : b.id) ?? (b == null ? void 0 : b.interrupt_id), Ke = Go(Ae), ze = b == null ? void 0 : b.value, ke =
|
|
14470
|
+
} = D, Ae = (b == null ? void 0 : b.id) ?? (b == null ? void 0 : b.interrupt_id), Ke = Go(Ae), ze = b == null ? void 0 : b.value, ke = Ze(() => A || !m ? null : t.artifact || null, [A, t, m]), Fe = xe(async () => {
|
|
14463
14471
|
const be = _ ? le : J;
|
|
14464
14472
|
async function rt(st) {
|
|
14465
14473
|
if (navigator.clipboard && typeof navigator.clipboard.writeText == "function") {
|
|
@@ -14554,7 +14562,7 @@ const jl = kg(function({
|
|
|
14554
14562
|
"border border-border/60 dark:border-border/40"
|
|
14555
14563
|
);
|
|
14556
14564
|
}
|
|
14557
|
-
}, [k, q, F]),
|
|
14565
|
+
}, [k, q, F]), Qe = xe(async (be) => {
|
|
14558
14566
|
if (w)
|
|
14559
14567
|
return;
|
|
14560
14568
|
const rt = Go(
|
|
@@ -14588,7 +14596,7 @@ const jl = kg(function({
|
|
|
14588
14596
|
} finally {
|
|
14589
14597
|
C == null || C();
|
|
14590
14598
|
}
|
|
14591
|
-
}, [w, C, y, U]), gt =
|
|
14599
|
+
}, [w, C, y, U]), gt = Ze(() => A ? "Assistant" : Qv(t), [A, t]), pt = F === "user" && (S ?? 1) > 1 && typeof E == "function";
|
|
14592
14600
|
return _ && !p && !ke ? null : q && A ? /* @__PURE__ */ u.jsx("div", { className: te(ot(), f.container), children: /* @__PURE__ */ u.jsxs("div", { className: te(nt(), f.content), children: [
|
|
14593
14601
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 mb-2 pb-2 border-b border-current/10", children: [
|
|
14594
14602
|
/* @__PURE__ */ u.jsx(ma, { className: te("h-4 w-4", B) }),
|
|
@@ -14759,7 +14767,7 @@ const jl = kg(function({
|
|
|
14759
14767
|
defaultMessage: A,
|
|
14760
14768
|
handleFileClick: P,
|
|
14761
14769
|
uploadingFiles: j,
|
|
14762
|
-
handleInterruptApprove:
|
|
14770
|
+
handleInterruptApprove: Qe,
|
|
14763
14771
|
handleInterruptReject: bt,
|
|
14764
14772
|
disableInterruptActions: w,
|
|
14765
14773
|
messageRole: F,
|
|
@@ -14889,9 +14897,9 @@ const nE = {
|
|
|
14889
14897
|
checkpointIndex: w,
|
|
14890
14898
|
onSelectCheckpoint: y
|
|
14891
14899
|
}) {
|
|
14892
|
-
const C = fh(t, n), S = "type" in t && t.type === "default_message", E = !!t.__syntheticStreaming, N = w ?? nE, M = !S && "checkpointId" in t ? t.checkpointId ?? null : null, { attemptCount: L, attemptIndex: H } =
|
|
14893
|
-
M,
|
|
14894
|
-
N
|
|
14900
|
+
const C = fh(t, n), S = "type" in t && t.type === "default_message", E = !!t.__syntheticStreaming, N = w ?? nE, M = !S && "checkpointId" in t ? t.checkpointId ?? null : null, { attemptCount: L, attemptIndex: H } = Ze(
|
|
14901
|
+
() => Jg(M, N),
|
|
14902
|
+
[M, N]
|
|
14895
14903
|
);
|
|
14896
14904
|
return /* @__PURE__ */ u.jsx(
|
|
14897
14905
|
"div",
|
|
@@ -14962,9 +14970,9 @@ const hh = O.forwardRef(({
|
|
|
14962
14970
|
onSelectCheckpoint: L,
|
|
14963
14971
|
createSyntheticThinkingMessage: H = !0
|
|
14964
14972
|
}, V) => {
|
|
14965
|
-
const W = We(null), R = We(null), U = We(!1), k = We(!1), [F, _] = he(!0), A =
|
|
14973
|
+
const W = We(null), R = We(null), U = We(!1), k = We(!1), [F, _] = he(!0), A = Ze(() => w ? e.some(($) => "type" in $ && $.type === "default_message" ? !1 : Array.isArray($ == null ? void 0 : $.content) && $.content.some(
|
|
14966
14974
|
(J) => J && J.type === "interrupt" && (J.id ?? J.interrupt_id) === w.id
|
|
14967
|
-
)) : !1, [w, e]), q =
|
|
14975
|
+
)) : !1, [w, e]), q = Ze(() => {
|
|
14968
14976
|
if (!w || A)
|
|
14969
14977
|
return null;
|
|
14970
14978
|
const $ = w.id && String(w.id).trim() ? String(w.id).trim() : "pending-interrupt";
|
|
@@ -14987,7 +14995,7 @@ const hh = O.forwardRef(({
|
|
|
14987
14995
|
}
|
|
14988
14996
|
]
|
|
14989
14997
|
};
|
|
14990
|
-
}, [w, A]), X =
|
|
14998
|
+
}, [w, A]), X = Ze(() => q ? [...e, q] : e, [e, q]), j = Ze(() => !H || !t ? X : !X.some((J) => J.role === "assistant") && X.length > 0 ? [
|
|
14991
14999
|
...X,
|
|
14992
15000
|
{
|
|
14993
15001
|
id: "thinking-assistant",
|
|
@@ -14996,9 +15004,9 @@ const hh = O.forwardRef(({
|
|
|
14996
15004
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
14997
15005
|
__syntheticStreaming: !0
|
|
14998
15006
|
}
|
|
14999
|
-
] : X, [X, t, H]), P =
|
|
15007
|
+
] : X, [X, t, H]), P = Ze(() => T ? j : j.filter(($) => ($ == null ? void 0 : $.role) !== "tool"), [j, T]), K = xe(($) => {
|
|
15000
15008
|
_($), x && x(!$), b && b($);
|
|
15001
|
-
}, [x, b]), G =
|
|
15009
|
+
}, [x, b]), G = Ze(() => {
|
|
15002
15010
|
if (i)
|
|
15003
15011
|
return async () => {
|
|
15004
15012
|
if (!U.current) {
|
|
@@ -15010,7 +15018,7 @@ const hh = O.forwardRef(({
|
|
|
15010
15018
|
}
|
|
15011
15019
|
}
|
|
15012
15020
|
};
|
|
15013
|
-
}, [i]), oe =
|
|
15021
|
+
}, [i]), oe = Ze(() => !v || g ? !1 : F ? "auto" : !1, [F, v, g]), B = Ze(() => {
|
|
15014
15022
|
if (typeof f != "string") return null;
|
|
15015
15023
|
const $ = f.trim();
|
|
15016
15024
|
return $ ? {
|
|
@@ -15165,7 +15173,7 @@ function os({
|
|
|
15165
15173
|
K(!0);
|
|
15166
15174
|
}, []), oe = xe(() => {
|
|
15167
15175
|
K(!1);
|
|
15168
|
-
}, []), B = !!j || P, [D, Y] = he(null), [ne, ae] = he(""), [$, J] = he(null), [ce, le] = he(null), [ge, Ae] = he([]), [Ke, ze] = he(0), [ke, Fe] = he(0), [qe, He] = he(!1), [Ye, ot] = he(null), [nt,
|
|
15176
|
+
}, []), B = !!j || P, [D, Y] = he(null), [ne, ae] = he(""), [$, J] = he(null), [ce, le] = he(null), [ge, Ae] = he([]), [Ke, ze] = he(0), [ke, Fe] = he(0), [qe, He] = he(!1), [Ye, ot] = he(null), [nt, Qe] = he(null), [bt, gt] = he(!1), [pt, be] = he(null), rt = We(!1), [st, Nt] = he(() => bu.value), sn = We(st), Le = We(null), Ge = xe((ie) => {
|
|
15169
15177
|
bu.value = ie, Nt(ie);
|
|
15170
15178
|
}, []), [Dt, At] = he(!1), yt = We(null), It = We(null), ee = We(null), Se = xe(() => {
|
|
15171
15179
|
It.current && (It.current.value = ""), ee.current && (ee.current.value = ""), ze((ie) => ie + 1), Fe((ie) => ie + 1);
|
|
@@ -15247,7 +15255,7 @@ function os({
|
|
|
15247
15255
|
Be(ie, me, de);
|
|
15248
15256
|
},
|
|
15249
15257
|
[Be]
|
|
15250
|
-
),
|
|
15258
|
+
), et = xe((ie) => {
|
|
15251
15259
|
let me = null;
|
|
15252
15260
|
for (let Xe = ie - 1; Xe >= 0; Xe--)
|
|
15253
15261
|
if (y[Xe].role === "user") {
|
|
@@ -15282,7 +15290,7 @@ function os({
|
|
|
15282
15290
|
}, da = async (ie) => {
|
|
15283
15291
|
const me = (ie.target.files || [])[0];
|
|
15284
15292
|
if (me) {
|
|
15285
|
-
ot(null),
|
|
15293
|
+
ot(null), Qe(null), He(!0);
|
|
15286
15294
|
try {
|
|
15287
15295
|
await k(
|
|
15288
15296
|
{ attachments: [me] },
|
|
@@ -15292,7 +15300,7 @@ function os({
|
|
|
15292
15300
|
}
|
|
15293
15301
|
);
|
|
15294
15302
|
const de = `Uploaded ${me.name} - processing through chat stream`;
|
|
15295
|
-
|
|
15303
|
+
Qe(de);
|
|
15296
15304
|
} catch (de) {
|
|
15297
15305
|
const Ce = de instanceof Error ? de.message : "Failed to upload Excel file";
|
|
15298
15306
|
console.error("Excel upload failed", de), ot(Ce), g == null || g(Ce);
|
|
@@ -15362,7 +15370,7 @@ function os({
|
|
|
15362
15370
|
enableMessageEditing: c,
|
|
15363
15371
|
editingMessageId: D,
|
|
15364
15372
|
onEdit: $e,
|
|
15365
|
-
onRegenerate:
|
|
15373
|
+
onRegenerate: et,
|
|
15366
15374
|
onCancelEdit: ht,
|
|
15367
15375
|
emptyMessage: pt ?? void 0,
|
|
15368
15376
|
isNavigatingCheckpoint: Dt,
|
|
@@ -16657,10 +16665,10 @@ function ku({
|
|
|
16657
16665
|
}
|
|
16658
16666
|
},
|
|
16659
16667
|
[Ye, H, J, F]
|
|
16660
|
-
), nt =
|
|
16668
|
+
), nt = Ze(() => {
|
|
16661
16669
|
const ee = b ?? [], Se = le.trim().toLowerCase();
|
|
16662
16670
|
return Se ? y ? ee.filter((mt) => y(mt, Se)) : ee.filter((mt) => `${mt.label} ${mt.secondaryLabel ?? ""}`.toLowerCase().includes(Se)) : ee;
|
|
16663
|
-
}, [b, le, y]),
|
|
16671
|
+
}, [b, le, y]), Qe = ke === "shared", bt = Qe ? S : q, gt = Qe ? M : N, pt = Qe ? "No shared conversations yet" : "No conversations yet", be = (ee) => {
|
|
16664
16672
|
const Se = ee.sharedAt ? ` • ${At(ee.sharedAt)}` : "";
|
|
16665
16673
|
return `Shared by ${ee.sharedByUserId}${Se}`;
|
|
16666
16674
|
}, rt = (ee) => "sharedByUserId" in ee;
|
|
@@ -16819,7 +16827,7 @@ function ku({
|
|
|
16819
16827
|
showDeleteButton: n,
|
|
16820
16828
|
formatDate: At,
|
|
16821
16829
|
getDisplayThreadTitle: It,
|
|
16822
|
-
secondaryLine:
|
|
16830
|
+
secondaryLine: Qe && rt(ee) ? be(ee) : void 0,
|
|
16823
16831
|
itemClassName: s.threadItem,
|
|
16824
16832
|
activeItemClassName: s.activeThread
|
|
16825
16833
|
},
|
|
@@ -19098,7 +19106,7 @@ function cI(e) {
|
|
|
19098
19106
|
}
|
|
19099
19107
|
var uI = (e) => {
|
|
19100
19108
|
var t, n, r, o, s, a, i, l, c, d, p;
|
|
19101
|
-
let { invert: m, toast: f, unstyled: v, interacting: g, setHeights: x, visibleToasts: b, heights: w, index: y, toasts: C, expanded: S, removeToast: T, defaultRichColors: E, closeButton: N, style: M, cancelButtonStyle: L, actionButtonStyle: H, className: V = "", descriptionClassName: W = "", duration: R, position: U, gap: k, loadingIcon: F, expandByDefault: _, classNames: A, icons: q, closeButtonAriaLabel: X = "Close toast", pauseWhenPageIsHidden: j } = e, [P, K] = O.useState(null), [G, oe] = O.useState(null), [B, D] = O.useState(!1), [Y, ne] = O.useState(!1), [ae, $] = O.useState(!1), [J, ce] = O.useState(!1), [le, ge] = O.useState(!1), [Ae, Ke] = O.useState(0), [ze, ke] = O.useState(0), Fe = O.useRef(f.duration || R || Nu), qe = O.useRef(null), He = O.useRef(null), Ye = y === 0, ot = y + 1 <= b, nt = f.type,
|
|
19109
|
+
let { invert: m, toast: f, unstyled: v, interacting: g, setHeights: x, visibleToasts: b, heights: w, index: y, toasts: C, expanded: S, removeToast: T, defaultRichColors: E, closeButton: N, style: M, cancelButtonStyle: L, actionButtonStyle: H, className: V = "", descriptionClassName: W = "", duration: R, position: U, gap: k, loadingIcon: F, expandByDefault: _, classNames: A, icons: q, closeButtonAriaLabel: X = "Close toast", pauseWhenPageIsHidden: j } = e, [P, K] = O.useState(null), [G, oe] = O.useState(null), [B, D] = O.useState(!1), [Y, ne] = O.useState(!1), [ae, $] = O.useState(!1), [J, ce] = O.useState(!1), [le, ge] = O.useState(!1), [Ae, Ke] = O.useState(0), [ze, ke] = O.useState(0), Fe = O.useRef(f.duration || R || Nu), qe = O.useRef(null), He = O.useRef(null), Ye = y === 0, ot = y + 1 <= b, nt = f.type, Qe = f.dismissible !== !1, bt = f.className || "", gt = f.descriptionClassName || "", pt = O.useMemo(() => w.findIndex((Te) => Te.toastId === f.id) || 0, [w, f.id]), be = O.useMemo(() => {
|
|
19102
19110
|
var Te;
|
|
19103
19111
|
return (Te = f.closeButton) != null ? Te : N;
|
|
19104
19112
|
}, [f.closeButton, N]), rt = O.useMemo(() => f.duration || R || Nu, [f.duration, R]), st = O.useRef(0), Nt = O.useRef(0), sn = O.useRef(0), Le = O.useRef(null), [Ge, Dt] = U.split("-"), At = O.useMemo(() => w.reduce((Te, Pe, Ue) => Ue >= pt ? Te : Te + Pe.height, 0), [w, pt]), yt = GR(), It = f.invert || m, ee = nt === "loading";
|
|
@@ -19144,34 +19152,34 @@ var uI = (e) => {
|
|
|
19144
19152
|
var Te, Pe, Ue;
|
|
19145
19153
|
return q != null && q.loading ? O.createElement("div", { className: an(A == null ? void 0 : A.loader, (Te = f == null ? void 0 : f.classNames) == null ? void 0 : Te.loader, "sonner-loader"), "data-visible": nt === "loading" }, q.loading) : F ? O.createElement("div", { className: an(A == null ? void 0 : A.loader, (Pe = f == null ? void 0 : f.classNames) == null ? void 0 : Pe.loader, "sonner-loader"), "data-visible": nt === "loading" }, F) : O.createElement(HR, { className: an(A == null ? void 0 : A.loader, (Ue = f == null ? void 0 : f.classNames) == null ? void 0 : Ue.loader), visible: nt === "loading" });
|
|
19146
19154
|
}
|
|
19147
|
-
return O.createElement("li", { tabIndex: 0, ref: He, className: an(V, bt, A == null ? void 0 : A.toast, (t = f == null ? void 0 : f.classNames) == null ? void 0 : t.toast, A == null ? void 0 : A.default, A == null ? void 0 : A[nt], (n = f == null ? void 0 : f.classNames) == null ? void 0 : n[nt]), "data-sonner-toast": "", "data-rich-colors": (r = f.richColors) != null ? r : E, "data-styled": !(f.jsx || f.unstyled || v), "data-mounted": B, "data-promise": !!f.promise, "data-swiped": le, "data-removed": Y, "data-visible": ot, "data-y-position": Ge, "data-x-position": Dt, "data-index": y, "data-front": Ye, "data-swiping": ae, "data-dismissible":
|
|
19155
|
+
return O.createElement("li", { tabIndex: 0, ref: He, className: an(V, bt, A == null ? void 0 : A.toast, (t = f == null ? void 0 : f.classNames) == null ? void 0 : t.toast, A == null ? void 0 : A.default, A == null ? void 0 : A[nt], (n = f == null ? void 0 : f.classNames) == null ? void 0 : n[nt]), "data-sonner-toast": "", "data-rich-colors": (r = f.richColors) != null ? r : E, "data-styled": !(f.jsx || f.unstyled || v), "data-mounted": B, "data-promise": !!f.promise, "data-swiped": le, "data-removed": Y, "data-visible": ot, "data-y-position": Ge, "data-x-position": Dt, "data-index": y, "data-front": Ye, "data-swiping": ae, "data-dismissible": Qe, "data-type": nt, "data-invert": It, "data-swipe-out": J, "data-swipe-direction": G, "data-expanded": !!(S || _ && B), style: { "--index": y, "--toasts-before": y, "--z-index": C.length - y, "--offset": `${Y ? Ae : Nt.current}px`, "--initial-height": _ ? "auto" : `${ze}px`, ...M, ...f.style }, onDragEnd: () => {
|
|
19148
19156
|
$(!1), K(null), Le.current = null;
|
|
19149
19157
|
}, onPointerDown: (Te) => {
|
|
19150
|
-
ee || !
|
|
19158
|
+
ee || !Qe || (qe.current = /* @__PURE__ */ new Date(), Ke(Nt.current), Te.target.setPointerCapture(Te.pointerId), Te.target.tagName !== "BUTTON" && ($(!0), Le.current = { x: Te.clientX, y: Te.clientY }));
|
|
19151
19159
|
}, onPointerUp: () => {
|
|
19152
19160
|
var Te, Pe, Ue, Et;
|
|
19153
|
-
if (J || !
|
|
19161
|
+
if (J || !Qe) return;
|
|
19154
19162
|
Le.current = null;
|
|
19155
|
-
let Be = Number(((Te = He.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), ht = Number(((Pe = He.current) == null ? void 0 : Pe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), $e = (/* @__PURE__ */ new Date()).getTime() - ((Ue = qe.current) == null ? void 0 : Ue.getTime()),
|
|
19156
|
-
if (Math.abs(
|
|
19163
|
+
let Be = Number(((Te = He.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), ht = Number(((Pe = He.current) == null ? void 0 : Pe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), $e = (/* @__PURE__ */ new Date()).getTime() - ((Ue = qe.current) == null ? void 0 : Ue.getTime()), et = P === "x" ? Be : ht, Ft = Math.abs(et) / $e;
|
|
19164
|
+
if (Math.abs(et) >= iI || Ft > 0.11) {
|
|
19157
19165
|
Ke(Nt.current), (Et = f.onDismiss) == null || Et.call(f, f), oe(P === "x" ? Be > 0 ? "right" : "left" : ht > 0 ? "down" : "up"), Se(), ce(!0), ge(!1);
|
|
19158
19166
|
return;
|
|
19159
19167
|
}
|
|
19160
19168
|
$(!1), K(null);
|
|
19161
19169
|
}, onPointerMove: (Te) => {
|
|
19162
19170
|
var Pe, Ue, Et, Be;
|
|
19163
|
-
if (!Le.current || !
|
|
19164
|
-
let ht = Te.clientY - Le.current.y, $e = Te.clientX - Le.current.x,
|
|
19171
|
+
if (!Le.current || !Qe || ((Pe = window.getSelection()) == null ? void 0 : Pe.toString().length) > 0) return;
|
|
19172
|
+
let ht = Te.clientY - Le.current.y, $e = Te.clientX - Le.current.x, et = (Ue = e.swipeDirections) != null ? Ue : cI(U);
|
|
19165
19173
|
!P && (Math.abs($e) > 1 || Math.abs(ht) > 1) && K(Math.abs($e) > Math.abs(ht) ? "x" : "y");
|
|
19166
19174
|
let Ft = { x: 0, y: 0 };
|
|
19167
|
-
P === "y" ? (
|
|
19168
|
-
} }, be && !f.jsx ? O.createElement("button", { "aria-label": X, "data-disabled": ee, "data-close-button": !0, onClick: ee || !
|
|
19175
|
+
P === "y" ? (et.includes("top") || et.includes("bottom")) && (et.includes("top") && ht < 0 || et.includes("bottom") && ht > 0) && (Ft.y = ht) : P === "x" && (et.includes("left") || et.includes("right")) && (et.includes("left") && $e < 0 || et.includes("right") && $e > 0) && (Ft.x = $e), (Math.abs(Ft.x) > 0 || Math.abs(Ft.y) > 0) && ge(!0), (Et = He.current) == null || Et.style.setProperty("--swipe-amount-x", `${Ft.x}px`), (Be = He.current) == null || Be.style.setProperty("--swipe-amount-y", `${Ft.y}px`);
|
|
19176
|
+
} }, be && !f.jsx ? O.createElement("button", { "aria-label": X, "data-disabled": ee, "data-close-button": !0, onClick: ee || !Qe ? () => {
|
|
19169
19177
|
} : () => {
|
|
19170
19178
|
var Te;
|
|
19171
19179
|
Se(), (Te = f.onDismiss) == null || Te.call(f, f);
|
|
19172
19180
|
}, className: an(A == null ? void 0 : A.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = q == null ? void 0 : q.close) != null ? s : qR) : null, f.jsx || pa(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : O.createElement(O.Fragment, null, nt || f.icon || f.promise ? O.createElement("div", { "data-icon": "", className: an(A == null ? void 0 : A.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || mt() : null, f.type !== "loading" ? f.icon || (q == null ? void 0 : q[nt]) || BR(nt) : null) : null, O.createElement("div", { "data-content": "", className: an(A == null ? void 0 : A.content, (i = f == null ? void 0 : f.classNames) == null ? void 0 : i.content) }, O.createElement("div", { "data-title": "", className: an(A == null ? void 0 : A.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? O.createElement("div", { "data-description": "", className: an(W, gt, A == null ? void 0 : A.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), pa(f.cancel) ? f.cancel : f.cancel && Ho(f.cancel) ? O.createElement("button", { "data-button": !0, "data-cancel": !0, style: f.cancelButtonStyle || L, onClick: (Te) => {
|
|
19173
19181
|
var Pe, Ue;
|
|
19174
|
-
Ho(f.cancel) &&
|
|
19182
|
+
Ho(f.cancel) && Qe && ((Ue = (Pe = f.cancel).onClick) == null || Ue.call(Pe, Te), Se());
|
|
19175
19183
|
}, className: an(A == null ? void 0 : A.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null, pa(f.action) ? f.action : f.action && Ho(f.action) ? O.createElement("button", { "data-button": !0, "data-action": !0, style: f.actionButtonStyle || H, onClick: (Te) => {
|
|
19176
19184
|
var Pe, Ue;
|
|
19177
19185
|
Ho(f.action) && ((Ue = (Pe = f.action).onClick) == null || Ue.call(Pe, Te), !Te.defaultPrevented && Se());
|