@nivaro/react 0.3.136 → 0.3.138
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +95 -4
- package/dist/index.js +748 -743
- package/dist/shared/components/CollectionBrowserView.js +392 -389
- package/dist/shared/components/DelegateCoverLine.js +80 -87
- package/dist/shared/components/ItemEditForm.js +589 -588
- package/dist/shared/components/MyWorkView.js +284 -286
- package/dist/shared/components/NotificationBell.js +251 -205
- package/dist/shared/components/ai/AiAnalyticsView.js +878 -417
- package/dist/shared/components/ai/AiPlanCard.js +164 -122
- package/dist/shared/components/ai/AiPlanUndo.js +291 -0
- package/dist/shared/components/ai/call-log/CallDrawer.js +357 -0
- package/dist/shared/components/ai/call-log/RawJson.js +126 -0
- package/dist/shared/components/ai/call-log/ThreadView.js +223 -0
- package/dist/shared/components/ai/call-log/TranscriptView.js +227 -0
- package/dist/shared/components/ai/call-log/controls.js +364 -0
- package/dist/shared/components/ai/call-log/format.js +46 -0
- package/dist/shared/components/ai/call-log/url.js +105 -0
- package/dist/shared/components/chat/ChatPanel.js +86 -86
- package/dist/shared/components/chat/chat-core.js +422 -346
- package/dist/shared/components/integrations/IntegrationObligationsView.js +98 -98
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +102 -93
- package/dist/shared/components/integrations/console/api.js +11 -1
- package/dist/shared/components/item-edit/HeaderRollupExplainer.js +5 -1
- package/dist/shared/components/item-edit/RecordLiveSync.js +241 -229
- package/dist/shared/components/item-edit/RecordRecapChanges.js +166 -0
- package/dist/shared/components/item-edit/RecordRecapStrip.js +254 -84
- package/dist/shared/components/item-edit/live-related.js +34 -18
- package/dist/shared/components/panels/RevisionsPanel.js +735 -683
- package/dist/shared/components/queue/QueueWorklist.js +323 -316
- package/dist/shared/components/support/SupportRequestDialog.js +198 -181
- package/dist/shared/components/trackers/use-tracker-link.js +74 -65
- package/dist/shared/lib/config-update-refresh.js +34 -0
- package/dist/shared/lib/config-watch.js +17 -17
- package/dist/shared/lib/gap-refresh.js +49 -0
- package/dist/shared/lib/integration-dots.js +8 -8
- package/dist/shared/lib/live-ops.js +26 -23
- package/dist/shared/lib/live-pickers.js +1 -1
- package/dist/shared/lib/live-queries.js +223 -195
- package/dist/shared/lib/live.js +56 -51
- package/dist/shared/lib/obligation-banner.js +11 -10
- package/dist/shared/lib/obligation-filters.js +22 -18
- package/dist/shared/lib/obligation-reason-text.js +18 -8
- package/dist/shared/lib/presence-hooks.js +133 -132
- package/dist/shared/lib/reconnect-resync.js +90 -0
- package/dist/shared/lib/record-room-holds.js +43 -0
- package/dist/shared/lib/socket-realtime.js +116 -105
- package/dist/shared/lib/user-sync.js +1 -6
- package/package.json +1 -1
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { jsx as a, jsxs as n, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { useQueryClient as V, useQuery as G } from "@tanstack/react-query";
|
|
3
|
+
import { Undo2 as H, Loader2 as $ } from "lucide-react";
|
|
4
|
+
import { useState as f } from "react";
|
|
5
|
+
import { useNivaroClient as J } from "../../context.js";
|
|
6
|
+
import { get as W, post as X } from "../../lib/commands.js";
|
|
7
|
+
import { formatNumber as o, formatRelative as Z, cn as b } from "../../lib/utils.js";
|
|
8
|
+
import { ErrorNotice as K } from "../ErrorNotice.js";
|
|
9
|
+
import { Button as _ } from "../ui/button.js";
|
|
10
|
+
const ee = 2e3, te = {
|
|
11
|
+
update: "Put back",
|
|
12
|
+
create: "Remove",
|
|
13
|
+
delete: "Restore"
|
|
14
|
+
};
|
|
15
|
+
function C(r, l, v = `${l}s`) {
|
|
16
|
+
return `${o(r)} ${r === 1 ? l : v}`;
|
|
17
|
+
}
|
|
18
|
+
function Q(r) {
|
|
19
|
+
const l = [`Put back ${C(r.undone, "record")}`];
|
|
20
|
+
return "overwritten" in r && r.overwritten && l.push(`${o(r.overwritten)} overwritten`), r.skipped && l.push(`${o(r.skipped)} left alone (changed or deleted since)`), r.failed && l.push(`${o(r.failed)} failed${r.errors[0] ? `: ${r.errors[0]}` : ""}`), `${l.join(" · ")}.`;
|
|
21
|
+
}
|
|
22
|
+
function me({
|
|
23
|
+
id: r,
|
|
24
|
+
base: l = "/ai/plans",
|
|
25
|
+
embedded: v,
|
|
26
|
+
className: T
|
|
27
|
+
}) {
|
|
28
|
+
var S, z;
|
|
29
|
+
const R = J(), F = V(), [c, h] = f(null), [u, I] = f(!1), [g, U] = f(!1), [N, L] = f(null), [P, q] = f(null), m = G({
|
|
30
|
+
queryKey: ["ai-plans", "undo", r],
|
|
31
|
+
queryFn: () => R.request(W(`${l}/${encodeURIComponent(r)}/undo`)).then((e) => e.data),
|
|
32
|
+
refetchInterval: (e) => {
|
|
33
|
+
var s, i;
|
|
34
|
+
return ((i = (s = e.state.data) == null ? void 0 : s.run) == null ? void 0 : i.status) === "running" ? ee : !1;
|
|
35
|
+
}
|
|
36
|
+
}), t = ((S = m.data) == null ? void 0 : S.run) ?? null, x = (t == null ? void 0 : t.status) === "running", w = ((z = m.data) == null ? void 0 : z.steps) ?? [], y = (e) => w.reduce((s, i) => s + Number((e === "revertible" ? i.revertible : i[e]) ?? 0), 0), k = y("revertible"), p = y("changed"), M = y("gone"), O = (e) => e ? e.revertible + (u ? Number(e.changed ?? 0) : 0) : k + (u ? p : 0), j = O(), D = (e) => {
|
|
37
|
+
U(!0), q(null), L(null), R.request(
|
|
38
|
+
X(`${l}/${encodeURIComponent(r)}/undo`, {
|
|
39
|
+
...e ? { step_id: e } : {},
|
|
40
|
+
...u ? { overwrite: !0 } : {}
|
|
41
|
+
})
|
|
42
|
+
).then((s) => {
|
|
43
|
+
const i = s.data;
|
|
44
|
+
i.running || L(Q(i)), F.invalidateQueries({ queryKey: ["ai-plans"] });
|
|
45
|
+
}).catch((s) => q(s)).finally(() => {
|
|
46
|
+
U(!1), h(null);
|
|
47
|
+
});
|
|
48
|
+
}, Y = t && t.total > 0 ? Math.min(100, Math.round(t.done / t.total * 100)) : 0, A = t && t.status !== "running" && t.finished_at ? Date.now() - new Date(t.finished_at).getTime() < 24 * 36e5 : !1;
|
|
49
|
+
return /* @__PURE__ */ n(
|
|
50
|
+
"section",
|
|
51
|
+
{
|
|
52
|
+
className: b(
|
|
53
|
+
v ? "mt-2 rounded-md border border-slate-200 bg-white dark:border-border dark:bg-card" : "rounded-lg border border-slate-200 bg-white dark:border-border dark:bg-card",
|
|
54
|
+
"animate-in fade-in-0 slide-in-from-top-1 duration-150 motion-reduce:animate-none",
|
|
55
|
+
T
|
|
56
|
+
),
|
|
57
|
+
"data-ai-plan-undo": !0,
|
|
58
|
+
"aria-label": "Undo this plan",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1 border-b border-slate-100 px-3 py-2 dark:border-border sm:px-4 sm:py-2.5", children: [
|
|
61
|
+
/* @__PURE__ */ a(H, { className: "h-4 w-4 shrink-0 text-slate-400", "aria-hidden": !0 }),
|
|
62
|
+
/* @__PURE__ */ a("h2", { className: "text-[13px] font-semibold text-foreground", children: "Undo" }),
|
|
63
|
+
/* @__PURE__ */ a("span", { className: "min-w-0 flex-1 basis-full text-[11.5px] sm:basis-56 text-muted-foreground", children: "Puts each record back as it was before the plan. Records someone changed since are left alone unless you choose to overwrite them." })
|
|
64
|
+
] }),
|
|
65
|
+
m.isLoading && /* @__PURE__ */ n("p", { className: "flex items-center gap-1.5 px-3 py-3 text-[12px] text-muted-foreground sm:px-4", children: [
|
|
66
|
+
/* @__PURE__ */ a($, { className: "h-3 w-3 animate-spin motion-reduce:animate-none" }),
|
|
67
|
+
"Checking every record the plan wrote…"
|
|
68
|
+
] }),
|
|
69
|
+
m.error != null && /* @__PURE__ */ a(
|
|
70
|
+
K,
|
|
71
|
+
{
|
|
72
|
+
error: m.error,
|
|
73
|
+
what: "what can be undone",
|
|
74
|
+
onRetry: () => void m.refetch(),
|
|
75
|
+
className: "m-3"
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
x && t && /* @__PURE__ */ n(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: "border-b border-slate-100 px-3 py-2.5 dark:border-border sm:px-4",
|
|
82
|
+
"data-ai-undo-running": !0,
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-2 text-[12px]", children: [
|
|
85
|
+
/* @__PURE__ */ n("span", { className: "flex items-center gap-1.5 font-medium text-foreground", children: [
|
|
86
|
+
/* @__PURE__ */ a($, { className: "h-3 w-3 animate-spin text-nvr-cyan motion-reduce:animate-none" }),
|
|
87
|
+
"Undoing in the background"
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ n("span", { className: "tabular-nums text-muted-foreground", children: [
|
|
90
|
+
o(t.done),
|
|
91
|
+
" of ",
|
|
92
|
+
o(t.total)
|
|
93
|
+
] })
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ a(ne, { pct: Y, label: "Undo progress" }),
|
|
96
|
+
/* @__PURE__ */ n("p", { className: "mt-1 text-[11px] text-muted-foreground", children: [
|
|
97
|
+
o(t.undone),
|
|
98
|
+
" put back",
|
|
99
|
+
t.skipped ? ` · ${o(t.skipped)} left alone` : "",
|
|
100
|
+
t.failed ? ` · ${o(t.failed)} failed` : "",
|
|
101
|
+
" — you can leave this page; you will get a notification when it ends."
|
|
102
|
+
] })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
(N || A && t) && !x && /* @__PURE__ */ a(
|
|
107
|
+
"p",
|
|
108
|
+
{
|
|
109
|
+
className: b(
|
|
110
|
+
"border-b border-slate-100 px-3 py-2 text-[12px] dark:border-border sm:px-4",
|
|
111
|
+
(t == null ? void 0 : t.status) === "failed" && !N ? "text-rose-700 dark:text-rose-400" : "text-emerald-700 dark:text-emerald-400"
|
|
112
|
+
),
|
|
113
|
+
role: "status",
|
|
114
|
+
children: N ?? ((t == null ? void 0 : t.status) === "failed" ? `The last undo stopped part-way (${t.errors[0] ?? "see the activity log"}). Run it again to finish.` : t ? `Last undo ${Z(t.finished_at ?? t.started_at)}: ${Q(t)}` : "")
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
P != null && /* @__PURE__ */ a(K, { error: P, fallback: "Could not undo", className: "m-3" }),
|
|
118
|
+
m.data && !x && (k > 0 || p > 0) && /* @__PURE__ */ n("div", { className: "space-y-2 border-b border-slate-100 px-3 py-2.5 dark:border-border sm:px-4", children: [
|
|
119
|
+
/* @__PURE__ */ n("p", { className: "text-[12px] text-foreground", children: [
|
|
120
|
+
/* @__PURE__ */ a("span", { className: "font-medium tabular-nums", children: C(k, "record") }),
|
|
121
|
+
" can be put back",
|
|
122
|
+
p > 0 && /* @__PURE__ */ n(E, { children: [
|
|
123
|
+
" · ",
|
|
124
|
+
/* @__PURE__ */ n("span", { className: "font-medium tabular-nums text-amber-700 dark:text-amber-300", children: [
|
|
125
|
+
o(p),
|
|
126
|
+
" changed since"
|
|
127
|
+
] })
|
|
128
|
+
] }),
|
|
129
|
+
M > 0 && /* @__PURE__ */ n("span", { className: "text-muted-foreground", children: [
|
|
130
|
+
" · ",
|
|
131
|
+
o(M),
|
|
132
|
+
" deleted or replaced since (never touched)"
|
|
133
|
+
] })
|
|
134
|
+
] }),
|
|
135
|
+
p > 0 && /* @__PURE__ */ n("fieldset", { className: "inline-flex flex-wrap gap-1 rounded-md bg-muted p-0.5", children: [
|
|
136
|
+
/* @__PURE__ */ a("legend", { className: "sr-only", children: "Records changed since the plan ran" }),
|
|
137
|
+
[
|
|
138
|
+
{ v: !1, label: "Leave changed records alone" },
|
|
139
|
+
{ v: !0, label: `Overwrite those ${o(p)} too` }
|
|
140
|
+
].map((e) => /* @__PURE__ */ n(
|
|
141
|
+
"label",
|
|
142
|
+
{
|
|
143
|
+
className: b(
|
|
144
|
+
"relative cursor-pointer rounded px-2 py-1 text-[11.5px] transition-colors has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-nvr-cyan/60 motion-reduce:transition-none",
|
|
145
|
+
u === e.v ? "bg-white font-medium text-foreground shadow-sm dark:bg-card" : "text-muted-foreground hover:text-foreground"
|
|
146
|
+
),
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ a(
|
|
149
|
+
"input",
|
|
150
|
+
{
|
|
151
|
+
type: "radio",
|
|
152
|
+
name: `ai-undo-overwrite-${r}`,
|
|
153
|
+
className: "sr-only",
|
|
154
|
+
checked: u === e.v,
|
|
155
|
+
onChange: () => {
|
|
156
|
+
I(e.v), h(null);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
e.label
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
String(e.v)
|
|
164
|
+
))
|
|
165
|
+
] }),
|
|
166
|
+
u && p > 0 && /* @__PURE__ */ a("p", { className: "text-[11.5px] text-amber-800 dark:text-amber-300", children: "Overwriting replaces what people changed after the plan ran with the values from before it." }),
|
|
167
|
+
j > 0 && /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
168
|
+
/* @__PURE__ */ n(
|
|
169
|
+
_,
|
|
170
|
+
{
|
|
171
|
+
size: "sm",
|
|
172
|
+
variant: c === "*" ? "default" : "outline",
|
|
173
|
+
className: b(
|
|
174
|
+
"h-7",
|
|
175
|
+
c === "*" && "bg-nvr-cyan text-white hover:bg-nvr-cyan/90"
|
|
176
|
+
),
|
|
177
|
+
disabled: g,
|
|
178
|
+
onClick: () => c === "*" ? D(null) : h("*"),
|
|
179
|
+
"data-ai-undo": "all",
|
|
180
|
+
children: [
|
|
181
|
+
g && c === "*" ? /* @__PURE__ */ a($, { className: "h-3 w-3 animate-spin motion-reduce:animate-none" }) : null,
|
|
182
|
+
c === "*" ? `Yes, undo ${C(j, "record")}` : "Undo everything"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
c === "*" && /* @__PURE__ */ a(
|
|
187
|
+
_,
|
|
188
|
+
{
|
|
189
|
+
size: "sm",
|
|
190
|
+
variant: "ghost",
|
|
191
|
+
className: "h-7",
|
|
192
|
+
disabled: g,
|
|
193
|
+
onClick: () => h(null),
|
|
194
|
+
children: "Keep the changes"
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
] })
|
|
198
|
+
] }),
|
|
199
|
+
/* @__PURE__ */ a("ul", { className: "divide-y divide-slate-100 dark:divide-border", children: w.map((e) => {
|
|
200
|
+
const s = e.records.filter((d) => d.status === "changed" || d.status === "gone"), i = O(e);
|
|
201
|
+
return /* @__PURE__ */ n("li", { className: "px-3 py-2.5 sm:px-4", children: [
|
|
202
|
+
/* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [
|
|
203
|
+
/* @__PURE__ */ n("span", { className: "text-[11px] tabular-nums text-muted-foreground", children: [
|
|
204
|
+
e.n,
|
|
205
|
+
"."
|
|
206
|
+
] }),
|
|
207
|
+
/* @__PURE__ */ a("span", { className: "min-w-[10rem] flex-1 truncate text-[12.5px] text-foreground", children: e.title }),
|
|
208
|
+
e.not_revertible ? /* @__PURE__ */ a("span", { className: "text-[11.5px] text-muted-foreground", children: e.not_revertible }) : /* @__PURE__ */ n(E, { children: [
|
|
209
|
+
/* @__PURE__ */ n("span", { className: "text-[11.5px] tabular-nums text-muted-foreground", children: [
|
|
210
|
+
e.undone_at && e.revertible === 0 && !e.changed ? "Undone" : `${o(e.revertible)} can be put back`,
|
|
211
|
+
e.changed ? ` · ${o(e.changed)} changed since` : "",
|
|
212
|
+
e.gone ? ` · ${o(e.gone)} gone` : ""
|
|
213
|
+
] }),
|
|
214
|
+
i > 0 && !x && w.length > 1 && /* @__PURE__ */ a(
|
|
215
|
+
_,
|
|
216
|
+
{
|
|
217
|
+
size: "sm",
|
|
218
|
+
variant: "ghost",
|
|
219
|
+
className: "h-6 text-[11.5px]",
|
|
220
|
+
disabled: g,
|
|
221
|
+
onClick: () => c === e.step_id ? D(e.step_id) : h(e.step_id),
|
|
222
|
+
children: c === e.step_id ? `Yes, undo ${o(i)}` : "Undo step"
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
] })
|
|
226
|
+
] }),
|
|
227
|
+
s.length > 0 && /* @__PURE__ */ n("ul", { className: "mt-1 space-y-px pl-5", children: [
|
|
228
|
+
s.slice(0, 8).map((d) => {
|
|
229
|
+
var B;
|
|
230
|
+
return /* @__PURE__ */ n(
|
|
231
|
+
"li",
|
|
232
|
+
{
|
|
233
|
+
className: "truncate text-[11px] text-muted-foreground",
|
|
234
|
+
children: [
|
|
235
|
+
/* @__PURE__ */ a("span", { className: "text-foreground/80", children: d.label }),
|
|
236
|
+
" — ",
|
|
237
|
+
d.reason,
|
|
238
|
+
d.status === "changed" && d.op && u ? ` (${((B = te[d.op]) == null ? void 0 : B.toLowerCase()) ?? "undo"} anyway)` : ""
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
`${d.collection}:${d.id}`
|
|
242
|
+
);
|
|
243
|
+
}),
|
|
244
|
+
(e.changed ?? 0) + (e.gone ?? 0) > Math.min(s.length, 8) && /* @__PURE__ */ n("li", { className: "text-[11px] text-muted-foreground", children: [
|
|
245
|
+
"and",
|
|
246
|
+
" ",
|
|
247
|
+
o(
|
|
248
|
+
(e.changed ?? 0) + (e.gone ?? 0) - Math.min(s.length, 8)
|
|
249
|
+
),
|
|
250
|
+
" ",
|
|
251
|
+
"more"
|
|
252
|
+
] })
|
|
253
|
+
] }),
|
|
254
|
+
e.expires_at && !e.not_revertible && /* @__PURE__ */ n("p", { className: "mt-0.5 pl-5 text-[10.5px] text-muted-foreground", children: [
|
|
255
|
+
"Can be undone until",
|
|
256
|
+
" ",
|
|
257
|
+
new Date(e.expires_at).toLocaleDateString(void 0, {
|
|
258
|
+
month: "short",
|
|
259
|
+
day: "numeric"
|
|
260
|
+
})
|
|
261
|
+
] })
|
|
262
|
+
] }, e.step_id);
|
|
263
|
+
}) })
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
function ne({ pct: r, label: l }) {
|
|
269
|
+
return /* @__PURE__ */ a(
|
|
270
|
+
"div",
|
|
271
|
+
{
|
|
272
|
+
role: "progressbar",
|
|
273
|
+
"aria-label": l,
|
|
274
|
+
"aria-valuenow": r,
|
|
275
|
+
"aria-valuemin": 0,
|
|
276
|
+
"aria-valuemax": 100,
|
|
277
|
+
className: "mt-1.5 h-1 w-full overflow-hidden rounded-full bg-slate-200/80 dark:bg-white/10",
|
|
278
|
+
children: /* @__PURE__ */ a(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
className: "h-full rounded-full bg-nvr-cyan transition-[width] duration-500 ease-out motion-reduce:transition-none",
|
|
282
|
+
style: { width: `${Math.max(r, 2)}%` }
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
export {
|
|
289
|
+
me as AiPlanUndo,
|
|
290
|
+
ne as ProgressLine
|
|
291
|
+
};
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as S } from "@tanstack/react-query";
|
|
3
|
+
import { MessagesSquare as y, ThumbsUp as $, ThumbsDown as R, Check as E, Copy as M } from "lucide-react";
|
|
4
|
+
import { useState as q } from "react";
|
|
5
|
+
import { useNivaroClient as j } from "../../../context.js";
|
|
6
|
+
import { get as D } from "../../../lib/commands.js";
|
|
7
|
+
import { describeError as L } from "../../../lib/error-message.js";
|
|
8
|
+
import { cn as A } from "../../../lib/utils.js";
|
|
9
|
+
import { OutcomeChip as F, Segmented as O } from "../../delivery-analytics/ui.js";
|
|
10
|
+
import { ErrorDetails as V } from "../../ErrorNotice.js";
|
|
11
|
+
import { QueryErrorState as B } from "../../QueryErrorState.js";
|
|
12
|
+
import { Sheet as K, SheetContent as Q, SheetTitle as U, SheetDescription as H } from "../../ui/sheet.js";
|
|
13
|
+
import { Skeleton as p } from "../../ui/skeleton.js";
|
|
14
|
+
import { featureLabel as g, resultLabel as C, resultOf as v, whenShort as J, usd as w, secs as x, num as P, tok as h } from "./format.js";
|
|
15
|
+
import { RawJson as _ } from "./RawJson.js";
|
|
16
|
+
import { ThreadView as W } from "./ThreadView.js";
|
|
17
|
+
import { TranscriptView as z } from "./TranscriptView.js";
|
|
18
|
+
const G = {
|
|
19
|
+
error: "failed",
|
|
20
|
+
max_tokens: "dropped",
|
|
21
|
+
stopped: "suppressed",
|
|
22
|
+
end_turn: "delivered",
|
|
23
|
+
tool_use: "deferred"
|
|
24
|
+
};
|
|
25
|
+
function X({ text: s, label: o }) {
|
|
26
|
+
const [i, a] = q(!1);
|
|
27
|
+
return /* @__PURE__ */ e(
|
|
28
|
+
"button",
|
|
29
|
+
{
|
|
30
|
+
type: "button",
|
|
31
|
+
"aria-label": `Copy ${o}`,
|
|
32
|
+
onClick: async () => {
|
|
33
|
+
try {
|
|
34
|
+
await navigator.clipboard.writeText(s), a(!0), setTimeout(() => a(!1), 1500);
|
|
35
|
+
} catch {
|
|
36
|
+
a(!1);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
className: "inline-flex h-5 w-5 items-center justify-center rounded text-slate-400 hover:bg-slate-100 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:hover:bg-muted dark:hover:text-foreground",
|
|
40
|
+
children: i ? /* @__PURE__ */ e(E, { className: "h-3 w-3", "aria-hidden": !0 }) : /* @__PURE__ */ e(M, { className: "h-3 w-3", "aria-hidden": !0 })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function Y({
|
|
45
|
+
d: s,
|
|
46
|
+
onOpenCall: o,
|
|
47
|
+
onOpenThread: i
|
|
48
|
+
}) {
|
|
49
|
+
var l;
|
|
50
|
+
const a = s.call, d = ((l = a.prompt_parts) == null ? void 0 : l.p) ?? [], u = Math.max(1, ...d.map((t) => t[1])), m = [
|
|
51
|
+
["Input", h(a.input_tokens), "Tokens sent, cached ones included"],
|
|
52
|
+
["Cached", h(a.cache_read_tokens), "Read from the prompt cache at a tenth of the price"],
|
|
53
|
+
["Output", h(a.output_tokens)],
|
|
54
|
+
["Cache write", h(a.cache_write_tokens)],
|
|
55
|
+
["Cost", w(a.cost_usd, 4), "At list price"],
|
|
56
|
+
["Time", x(a.latency_ms)]
|
|
57
|
+
];
|
|
58
|
+
return /* @__PURE__ */ r("aside", { className: "flex min-w-0 flex-col gap-4 text-[12px]", "aria-label": "About this call", children: [
|
|
59
|
+
s.conversation && /* @__PURE__ */ r(
|
|
60
|
+
"button",
|
|
61
|
+
{
|
|
62
|
+
type: "button",
|
|
63
|
+
onClick: i,
|
|
64
|
+
"data-ai-open-thread": !0,
|
|
65
|
+
className: "inline-flex h-9 items-center justify-center gap-1.5 rounded-md bg-nvr-cyan px-3 text-[12.5px] font-medium text-white hover:bg-nvr-cyan/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 focus-visible:ring-offset-2",
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ e(y, { className: "h-4 w-4", "aria-hidden": !0 }),
|
|
68
|
+
" Open conversation"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
!s.conversation && a.feature === "chat" && /* @__PURE__ */ r(
|
|
73
|
+
"button",
|
|
74
|
+
{
|
|
75
|
+
type: "button",
|
|
76
|
+
onClick: i,
|
|
77
|
+
"data-ai-open-thread": !0,
|
|
78
|
+
className: "inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-slate-200 bg-white px-3 text-[12.5px] font-medium text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:bg-muted",
|
|
79
|
+
"data-tip": "No saved thread: shows the turns the model was sent with this question",
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ e(y, { className: "h-4 w-4", "aria-hidden": !0 }),
|
|
82
|
+
" Show the chat so far"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 dark:border-border dark:bg-border", children: m.map(([t, n, f]) => /* @__PURE__ */ r("div", { className: "bg-white px-2.5 py-2 dark:bg-card", "data-tip": f, children: [
|
|
87
|
+
/* @__PURE__ */ e("div", { className: "text-[10.5px] text-slate-500 dark:text-muted-foreground", children: t }),
|
|
88
|
+
/* @__PURE__ */ e("div", { className: "mt-0.5 font-semibold tabular-nums text-slate-900 dark:text-foreground", children: n })
|
|
89
|
+
] }, t)) }),
|
|
90
|
+
d.length > 0 && /* @__PURE__ */ r("section", { children: [
|
|
91
|
+
/* @__PURE__ */ e("h4", { className: "mb-1.5 text-[11.5px] font-semibold text-slate-700 dark:text-slate-200", children: "Where the input tokens went" }),
|
|
92
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-1", children: d.map(([t, n]) => /* @__PURE__ */ r(
|
|
93
|
+
"li",
|
|
94
|
+
{
|
|
95
|
+
className: "grid grid-cols-[110px_1fr_auto] items-center gap-2 text-[11px]",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ e("span", { className: "truncate text-slate-600 dark:text-muted-foreground", children: t.replace(/_/g, " ") }),
|
|
98
|
+
/* @__PURE__ */ e(
|
|
99
|
+
"span",
|
|
100
|
+
{
|
|
101
|
+
className: "block h-1.5 overflow-hidden rounded-full bg-slate-100 dark:bg-muted",
|
|
102
|
+
"aria-hidden": !0,
|
|
103
|
+
children: /* @__PURE__ */ e(
|
|
104
|
+
"span",
|
|
105
|
+
{
|
|
106
|
+
className: "block h-full rounded-full bg-nvr-cyan/70",
|
|
107
|
+
style: { width: `${Math.max(2, Math.round(n / u * 100))}%` }
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums text-slate-500", children: h(n) })
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
t
|
|
116
|
+
)) })
|
|
117
|
+
] }),
|
|
118
|
+
/* @__PURE__ */ r("dl", { className: "grid grid-cols-[88px_1fr] gap-x-2 gap-y-1.5", children: [
|
|
119
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-500 dark:text-muted-foreground", children: "Model" }),
|
|
120
|
+
/* @__PURE__ */ r("dd", { className: "min-w-0 break-words font-mono text-[11px]", children: [
|
|
121
|
+
a.model,
|
|
122
|
+
/* @__PURE__ */ r("span", { className: "font-sans text-slate-500", children: [
|
|
123
|
+
" · ",
|
|
124
|
+
a.provider
|
|
125
|
+
] })
|
|
126
|
+
] }),
|
|
127
|
+
a.routing && /* @__PURE__ */ r(b, { children: [
|
|
128
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-500 dark:text-muted-foreground", children: "Routing" }),
|
|
129
|
+
/* @__PURE__ */ e("dd", { children: a.routing.tier === "cheap" ? `Started on the quick model (${a.routing.cheap_model})` : `Moved up to ${a.routing.main_model}${a.routing.reason ? ` — ${a.routing.reason.replace(/_/g, " ")}` : ""}` })
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-500 dark:text-muted-foreground", children: "Feature" }),
|
|
132
|
+
/* @__PURE__ */ r("dd", { children: [
|
|
133
|
+
g(a.feature),
|
|
134
|
+
a.route && /* @__PURE__ */ e("span", { className: "block truncate font-mono text-[10.5px] text-slate-400", children: a.route })
|
|
135
|
+
] }),
|
|
136
|
+
a.request_id && /* @__PURE__ */ r(b, { children: [
|
|
137
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-500 dark:text-muted-foreground", children: "Request id" }),
|
|
138
|
+
/* @__PURE__ */ r("dd", { className: "flex min-w-0 items-center gap-1", children: [
|
|
139
|
+
/* @__PURE__ */ e("span", { className: "truncate font-mono text-[10.5px]", children: a.request_id }),
|
|
140
|
+
/* @__PURE__ */ e(X, { text: a.request_id, label: "request id" })
|
|
141
|
+
] })
|
|
142
|
+
] }),
|
|
143
|
+
/* @__PURE__ */ e("dt", { className: "text-slate-500 dark:text-muted-foreground", children: "Call id" }),
|
|
144
|
+
/* @__PURE__ */ e("dd", { className: "font-mono text-[11px]", children: a.id })
|
|
145
|
+
] }),
|
|
146
|
+
s.question_calls.length > 1 && /* @__PURE__ */ r("section", { children: [
|
|
147
|
+
/* @__PURE__ */ r("h4", { className: "mb-1 text-[11.5px] font-semibold text-slate-700 dark:text-slate-200", children: [
|
|
148
|
+
"This question took ",
|
|
149
|
+
s.question_calls.length,
|
|
150
|
+
" calls"
|
|
151
|
+
] }),
|
|
152
|
+
/* @__PURE__ */ r("p", { className: "mb-1.5 text-[11px] text-slate-500 dark:text-muted-foreground", children: [
|
|
153
|
+
w(s.question_totals.cost_usd),
|
|
154
|
+
" · ",
|
|
155
|
+
h(s.question_totals.tokens),
|
|
156
|
+
" tokens ·",
|
|
157
|
+
" ",
|
|
158
|
+
x(s.question_totals.latency_ms),
|
|
159
|
+
" in the model"
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ e("ol", { className: "divide-y divide-slate-100 rounded-md border border-slate-200 dark:divide-border/60 dark:border-border", children: s.question_calls.map((t, n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ r(
|
|
162
|
+
"button",
|
|
163
|
+
{
|
|
164
|
+
type: "button",
|
|
165
|
+
onClick: () => o(t.id),
|
|
166
|
+
"aria-current": t.id === a.id ? "true" : void 0,
|
|
167
|
+
className: A(
|
|
168
|
+
"grid w-full grid-cols-[18px_1fr_auto] items-center gap-2 px-2 py-1.5 text-left text-[11px] hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nvr-cyan/50 dark:hover:bg-muted/40",
|
|
169
|
+
t.id === a.id && "bg-nvr-cyan/10 font-medium"
|
|
170
|
+
),
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums text-slate-400", children: n + 1 }),
|
|
173
|
+
/* @__PURE__ */ r("span", { className: "min-w-0 truncate", children: [
|
|
174
|
+
C(v(t)),
|
|
175
|
+
t.tools.length ? ` · ${t.tools.join(", ")}` : ""
|
|
176
|
+
] }),
|
|
177
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums text-slate-500", children: x(t.latency_ms) })
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
) }, t.id)) })
|
|
181
|
+
] }),
|
|
182
|
+
s.feedback.length > 0 && /* @__PURE__ */ r("section", { children: [
|
|
183
|
+
/* @__PURE__ */ e("h4", { className: "mb-1 text-[11.5px] font-semibold text-slate-700 dark:text-slate-200", children: "Feedback" }),
|
|
184
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-1", children: s.feedback.map((t, n) => (
|
|
185
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: feedback in order
|
|
186
|
+
/* @__PURE__ */ r("li", { className: "flex items-start gap-1.5 text-[11.5px]", children: [
|
|
187
|
+
t.rating > 0 ? /* @__PURE__ */ e(
|
|
188
|
+
$,
|
|
189
|
+
{
|
|
190
|
+
className: "mt-0.5 h-3 w-3 text-green-700 dark:text-[#b9d3a6]",
|
|
191
|
+
"aria-label": "Thumbs up"
|
|
192
|
+
}
|
|
193
|
+
) : /* @__PURE__ */ e(
|
|
194
|
+
R,
|
|
195
|
+
{
|
|
196
|
+
className: "mt-0.5 h-3 w-3 text-red-700 dark:text-[#eaa3a3]",
|
|
197
|
+
"aria-label": "Thumbs down"
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ r("span", { children: [
|
|
201
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: t.user_name }),
|
|
202
|
+
t.comment ? ` — ${t.comment}` : ""
|
|
203
|
+
] })
|
|
204
|
+
] }, n)
|
|
205
|
+
)) })
|
|
206
|
+
] })
|
|
207
|
+
] });
|
|
208
|
+
}
|
|
209
|
+
function Z({ text: s }) {
|
|
210
|
+
var i;
|
|
211
|
+
const o = L(
|
|
212
|
+
{ message: s ?? "", status: (i = /\b(4\d\d)\b/.exec(s ?? "")) != null && i[1] ? 400 : 502 },
|
|
213
|
+
"The AI provider did not answer this call"
|
|
214
|
+
);
|
|
215
|
+
return /* @__PURE__ */ r(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
role: "status",
|
|
219
|
+
className: "rounded-lg border border-red-200 bg-red-50 px-3 py-2.5 text-[12.5px] text-red-900 dark:border-[#e08383]/30 dark:bg-[#e08383]/10 dark:text-[#eaa3a3]",
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ e("p", { className: "font-semibold", children: /^AI gateway|provider/i.test(o.title) ? "The AI provider refused this call" : o.title }),
|
|
222
|
+
s && /* @__PURE__ */ e("p", { className: "mt-1 break-words font-mono text-[11.5px] text-red-800 dark:text-[#eaa3a3]", children: s }),
|
|
223
|
+
/* @__PURE__ */ e(V, { description: { ...o, technical: void 0 }, className: "mt-1.5" })
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
function I({
|
|
229
|
+
callId: s,
|
|
230
|
+
onOpenCall: o,
|
|
231
|
+
onOpenThread: i
|
|
232
|
+
}) {
|
|
233
|
+
var k;
|
|
234
|
+
const a = j(), [d, u] = q("readable"), m = S({
|
|
235
|
+
queryKey: ["nvr-ai-call-log-detail", s, d === "raw"],
|
|
236
|
+
queryFn: () => a.request(
|
|
237
|
+
D(`/ai/call-log/${s}`, d === "raw" ? { raw: "1" } : {})
|
|
238
|
+
),
|
|
239
|
+
placeholderData: (c) => (c == null ? void 0 : c.data.call.id) === s ? c : void 0
|
|
240
|
+
}), l = (k = m.data) == null ? void 0 : k.data, t = l == null ? void 0 : l.call, n = l == null ? void 0 : l.transcript.steps.find((c) => c.kind === "question"), f = n && n.kind === "question" && n.text ? n.text : t ? `${g(t.feature)} call` : "Loading the call…";
|
|
241
|
+
return /* @__PURE__ */ r("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
242
|
+
/* @__PURE__ */ r("div", { className: "shrink-0 border-b border-slate-200 px-5 pb-3 pt-4 pr-12 dark:border-border", children: [
|
|
243
|
+
/* @__PURE__ */ e(U, { className: "line-clamp-2 text-[16px] font-semibold tracking-[-0.01em] text-slate-900 dark:text-foreground", children: f }),
|
|
244
|
+
/* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-[12px] text-slate-500 dark:text-muted-foreground", children: t ? /* @__PURE__ */ r(b, { children: [
|
|
245
|
+
/* @__PURE__ */ e(F, { outcome: G[v(t)] ?? "neutral", children: C(v(t)) }),
|
|
246
|
+
/* @__PURE__ */ e("span", { children: g(t.feature) }),
|
|
247
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, children: "·" }),
|
|
248
|
+
/* @__PURE__ */ e("span", { children: t.user_name ?? "System" }),
|
|
249
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, children: "·" }),
|
|
250
|
+
/* @__PURE__ */ e("span", { children: J(t.created_at) }),
|
|
251
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, children: "·" }),
|
|
252
|
+
/* @__PURE__ */ r("span", { className: "tabular-nums", children: [
|
|
253
|
+
w(t.cost_usd, 4),
|
|
254
|
+
" · ",
|
|
255
|
+
x(t.latency_ms),
|
|
256
|
+
t.tool_calls ? ` · ${P(t.tool_calls)} tool ${t.tool_calls === 1 ? "call" : "calls"}` : ""
|
|
257
|
+
] })
|
|
258
|
+
] }) : /* @__PURE__ */ e("span", { children: " " }) }) }),
|
|
259
|
+
/* @__PURE__ */ e("div", { className: "mt-3", children: /* @__PURE__ */ e(
|
|
260
|
+
O,
|
|
261
|
+
{
|
|
262
|
+
ariaLabel: "How to show the call",
|
|
263
|
+
value: d,
|
|
264
|
+
onChange: u,
|
|
265
|
+
options: [
|
|
266
|
+
{ value: "readable", label: "Readable" },
|
|
267
|
+
{
|
|
268
|
+
value: "raw",
|
|
269
|
+
label: "View raw",
|
|
270
|
+
tip: "The stored request and response, system prompt and tool list included (secrets masked)"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
) })
|
|
275
|
+
] }),
|
|
276
|
+
/* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-y-auto bg-slate-50 px-4 py-4 dark:bg-background sm:px-5", children: m.isLoading && !l ? /* @__PURE__ */ r("div", { className: "flex flex-col gap-3", children: [
|
|
277
|
+
/* @__PURE__ */ e(p, { className: "h-16 w-full" }),
|
|
278
|
+
/* @__PURE__ */ e(p, { className: "h-28 w-full" }),
|
|
279
|
+
/* @__PURE__ */ e(p, { className: "h-40 w-full" })
|
|
280
|
+
] }) : m.isError ? /* @__PURE__ */ e(B, { error: m.error, what: "this call", onRetry: () => void m.refetch() }) : l && t ? /* @__PURE__ */ r("div", { className: "grid gap-5 lg:grid-cols-[minmax(0,1fr)_280px]", children: [
|
|
281
|
+
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-col gap-3", children: [
|
|
282
|
+
t.status === "error" && /* @__PURE__ */ e(Z, { text: t.error }),
|
|
283
|
+
d === "raw" ? l.raw ? /* @__PURE__ */ r("div", { className: "flex flex-col gap-3 animate-in fade-in-0 duration-150 motion-reduce:animate-none", children: [
|
|
284
|
+
/* @__PURE__ */ e(
|
|
285
|
+
_,
|
|
286
|
+
{
|
|
287
|
+
label: "Request",
|
|
288
|
+
value: l.raw.request.value,
|
|
289
|
+
text: l.raw.request.text,
|
|
290
|
+
cut: l.raw.request.cut,
|
|
291
|
+
foldKeys: ["system", "tools"]
|
|
292
|
+
}
|
|
293
|
+
),
|
|
294
|
+
/* @__PURE__ */ e(
|
|
295
|
+
_,
|
|
296
|
+
{
|
|
297
|
+
label: t.status === "error" ? "Error" : "Response",
|
|
298
|
+
value: l.raw.response.value,
|
|
299
|
+
text: l.raw.response.text,
|
|
300
|
+
cut: l.raw.response.cut
|
|
301
|
+
}
|
|
302
|
+
)
|
|
303
|
+
] }) : /* @__PURE__ */ e(p, { className: "h-60 w-full" }) : /* @__PURE__ */ e(
|
|
304
|
+
z,
|
|
305
|
+
{
|
|
306
|
+
t: l.transcript,
|
|
307
|
+
askedBy: t.user_name,
|
|
308
|
+
onShowRaw: () => u("raw"),
|
|
309
|
+
onNextCall: (() => {
|
|
310
|
+
const c = l.question_calls.findIndex((T) => T.id === t.id), N = c >= 0 ? l.question_calls[c + 1] : void 0;
|
|
311
|
+
return N ? () => o(N.id) : void 0;
|
|
312
|
+
})()
|
|
313
|
+
}
|
|
314
|
+
)
|
|
315
|
+
] }),
|
|
316
|
+
/* @__PURE__ */ e(Y, { d: l, onOpenCall: o, onOpenThread: i })
|
|
317
|
+
] }) : null })
|
|
318
|
+
] });
|
|
319
|
+
}
|
|
320
|
+
function be({
|
|
321
|
+
callId: s,
|
|
322
|
+
threadOpen: o,
|
|
323
|
+
onClose: i,
|
|
324
|
+
onOpenCall: a,
|
|
325
|
+
onThread: d
|
|
326
|
+
}) {
|
|
327
|
+
return /* @__PURE__ */ e(K, { open: s != null, onOpenChange: (u) => !u && i(), children: /* @__PURE__ */ e(
|
|
328
|
+
Q,
|
|
329
|
+
{
|
|
330
|
+
side: "right",
|
|
331
|
+
"aria-describedby": void 0,
|
|
332
|
+
"data-ai-call-drawer": "",
|
|
333
|
+
className: "flex w-[100vw] flex-col gap-0 p-0 data-[state=closed]:duration-200 data-[state=open]:duration-300 motion-reduce:data-[state=open]:animate-none motion-reduce:data-[state=closed]:animate-none sm:max-w-[1040px] sm:w-[96vw]",
|
|
334
|
+
children: s != null && (o ? /* @__PURE__ */ e(
|
|
335
|
+
W,
|
|
336
|
+
{
|
|
337
|
+
callId: s,
|
|
338
|
+
onBack: () => d(!1),
|
|
339
|
+
onOpenCall: (u) => {
|
|
340
|
+
a(u);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
) : /* @__PURE__ */ e(
|
|
344
|
+
I,
|
|
345
|
+
{
|
|
346
|
+
callId: s,
|
|
347
|
+
onOpenCall: a,
|
|
348
|
+
onOpenThread: () => d(!0)
|
|
349
|
+
},
|
|
350
|
+
s
|
|
351
|
+
))
|
|
352
|
+
}
|
|
353
|
+
) });
|
|
354
|
+
}
|
|
355
|
+
export {
|
|
356
|
+
be as CallDrawer
|
|
357
|
+
};
|