@nivaro/react 0.3.133 → 0.3.134
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 +13 -5
- package/dist/index.js +861 -860
- package/dist/shared/components/delivery-analytics/DeliveryAnalyticsView.js +1095 -0
- package/dist/shared/components/delivery-analytics/charts.js +157 -0
- package/dist/shared/components/delivery-analytics/drill.js +833 -0
- package/dist/shared/components/delivery-analytics/ui.js +290 -0
- package/dist/shared/components/delivery-analytics/url.js +105 -0
- package/package.json +1 -1
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +0 -292
|
@@ -0,0 +1,1095 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as W } from "@tanstack/react-query";
|
|
3
|
+
import { CalendarRange as ee, CircleCheck as te, AlertTriangle as ae, ChevronDown as le, ChevronRight as re } from "lucide-react";
|
|
4
|
+
import { useMemo as U, useCallback as ne, useState as T } from "react";
|
|
5
|
+
import { useNivaroClient as de, useNavigation as V } from "../../context.js";
|
|
6
|
+
import { get as q } from "../../lib/commands.js";
|
|
7
|
+
import { cn as f } from "../../lib/utils.js";
|
|
8
|
+
import { QueryErrorState as z } from "../QueryErrorState.js";
|
|
9
|
+
import { Popover as se, PopoverTrigger as ie, PopoverContent as oe } from "../ui/popover.js";
|
|
10
|
+
import { Skeleton as k } from "../ui/skeleton.js";
|
|
11
|
+
import { TrendBars as H } from "./charts.js";
|
|
12
|
+
import { DrillSheet as ce } from "./drill.js";
|
|
13
|
+
import { DrillContext as me, Segmented as K, FilterPicker as A, Panel as $, Num as m, Delta as j, OutcomeChip as G, ShareBar as Z } from "./ui.js";
|
|
14
|
+
import { useParamState as he, writeDrill as pe, titleize as _, fmtRange as ue, pct as L, fmtInt as E, mins as M } from "./url.js";
|
|
15
|
+
const B = [
|
|
16
|
+
{ value: "24h", label: "24h" },
|
|
17
|
+
{ value: "7d", label: "7d" },
|
|
18
|
+
{ value: "30d", label: "30d" },
|
|
19
|
+
{ value: "90d", label: "90d" }
|
|
20
|
+
], xe = [
|
|
21
|
+
{ value: "inapp", label: "In-app" },
|
|
22
|
+
{ value: "push", label: "Push" },
|
|
23
|
+
{ value: "email", label: "Email" },
|
|
24
|
+
{ value: "sms", label: "SMS" },
|
|
25
|
+
{ value: "teams", label: "Teams" }
|
|
26
|
+
], F = [
|
|
27
|
+
{ key: "category", label: "Category" },
|
|
28
|
+
{ key: "sender", label: "Sender" },
|
|
29
|
+
{ key: "sender_type", label: "Sender type" },
|
|
30
|
+
{ key: "reason", label: "Why they got it" },
|
|
31
|
+
{ key: "collection", label: "Collection" },
|
|
32
|
+
{ key: "recipient_role", label: "Recipient role" },
|
|
33
|
+
{ key: "lane", label: "Lane" },
|
|
34
|
+
{ key: "kind", label: "Kind" }
|
|
35
|
+
], O = [
|
|
36
|
+
{ key: "delivered", label: "Delivered", tip: "Reached the inbox, the device or the relay" },
|
|
37
|
+
{ key: "deferred", label: "Held", tip: "Held for the daily summary email" },
|
|
38
|
+
{
|
|
39
|
+
key: "skipped",
|
|
40
|
+
label: "Skipped",
|
|
41
|
+
tip: "Left out on purpose: rules off, no device, no address"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "dropped",
|
|
45
|
+
label: "Dropped",
|
|
46
|
+
tip: "Not sent: test mode, a bounced address, an inactive account"
|
|
47
|
+
},
|
|
48
|
+
{ key: "failed", label: "Failed", tip: "Tried and could not deliver" },
|
|
49
|
+
{ key: "not_recorded", label: "Not recorded", tip: "Sent before delivery tracking" }
|
|
50
|
+
], x = "whitespace-nowrap px-3 py-2 text-[11px] font-semibold text-slate-500 dark:text-muted-foreground";
|
|
51
|
+
function be(i) {
|
|
52
|
+
return i === "24h" ? "previous 24 hours" : i === "custom" ? "previous period" : `previous ${i.replace("d", " days")}`;
|
|
53
|
+
}
|
|
54
|
+
function fe({
|
|
55
|
+
className: i,
|
|
56
|
+
compactHeader: t = !1,
|
|
57
|
+
search: a,
|
|
58
|
+
onSearchChange: o
|
|
59
|
+
}) {
|
|
60
|
+
const p = de(), [h, b] = he(a, o), n = U(() => {
|
|
61
|
+
const r = new URLSearchParams(), c = h.get("window") ?? "7d";
|
|
62
|
+
if (r.set("window", c), c === "custom") {
|
|
63
|
+
const u = h.get("from"), v = h.get("to");
|
|
64
|
+
u && r.set("from", u), v && r.set("to", v);
|
|
65
|
+
}
|
|
66
|
+
for (const u of ["category", "channel", "collection", "sender"]) {
|
|
67
|
+
const v = h.get(u);
|
|
68
|
+
v && r.set(u, v);
|
|
69
|
+
}
|
|
70
|
+
return r.set("acted_hours", h.get("acted") ?? "24"), r;
|
|
71
|
+
}, [h]), N = n.toString(), s = W({
|
|
72
|
+
queryKey: ["delivery-analytics", "summary", N],
|
|
73
|
+
queryFn: () => p.request(q(`/delivery-analytics/summary?${N}`)).then((r) => r.data),
|
|
74
|
+
staleTime: 6e4,
|
|
75
|
+
placeholderData: (r) => r
|
|
76
|
+
}), d = s.data, y = h.get("by") ?? "category", g = W({
|
|
77
|
+
queryKey: ["delivery-analytics", "breakdown", N, y, d == null ? void 0 : d.asof],
|
|
78
|
+
enabled: !!d && y !== "category",
|
|
79
|
+
queryFn: () => {
|
|
80
|
+
const r = new URLSearchParams(n);
|
|
81
|
+
return r.set("by", y), d && (r.set("from", d.window.from), r.set("to", d.window.to), r.set("asof", d.asof)), p.request(q(`/delivery-analytics/breakdown?${r.toString()}`)).then((c) => c.data);
|
|
82
|
+
},
|
|
83
|
+
staleTime: 6e4
|
|
84
|
+
}), R = y === "category" ? d == null ? void 0 : d.breakdown : g.data, P = ne(
|
|
85
|
+
(r, c, u) => b((v) => {
|
|
86
|
+
pe(v, r, c), u != null && u.sort && v.set("ds", u.sort);
|
|
87
|
+
}),
|
|
88
|
+
[b]
|
|
89
|
+
), C = (r, c) => b((u) => {
|
|
90
|
+
c ? u.set(r, c) : u.delete(r);
|
|
91
|
+
}), X = U(() => {
|
|
92
|
+
const r = /* @__PURE__ */ new Map();
|
|
93
|
+
if (!d) return r;
|
|
94
|
+
for (const c of d.options.senders) r.set(`sender=${c.value}`, c.label);
|
|
95
|
+
for (const c of d.options.categories) r.set(`category=${c.value}`, c.label);
|
|
96
|
+
for (const c of [
|
|
97
|
+
...d.people.unread,
|
|
98
|
+
...d.people.never_read,
|
|
99
|
+
...d.people.floods
|
|
100
|
+
])
|
|
101
|
+
r.set(`recipient=${c.id}`, c.name);
|
|
102
|
+
for (const c of d.email.templates) r.set(`template=${c.key}`, c.label);
|
|
103
|
+
for (const c of d.email.reasons) r.set(`reason=${c.key}`, c.label);
|
|
104
|
+
for (const c of [d.breakdown, R])
|
|
105
|
+
for (const u of (c == null ? void 0 : c.rows) ?? []) r.set(`${c == null ? void 0 : c.by}=${u.key}`, u.label);
|
|
106
|
+
for (const c of d.channels)
|
|
107
|
+
for (const u of c.statuses) r.set(`ch.${c.channel}=${u.status}`, u.label);
|
|
108
|
+
return r;
|
|
109
|
+
}, [d, R]), D = h.get("window") ?? "7d", Y = Number(h.get("acted") ?? 24);
|
|
110
|
+
return /* @__PURE__ */ l(me.Provider, { value: P, children: [
|
|
111
|
+
/* @__PURE__ */ l("div", { className: f("flex flex-1 min-h-0 flex-col", i), "data-nvr-delivery-analytics": "", children: [
|
|
112
|
+
/* @__PURE__ */ l(
|
|
113
|
+
"header",
|
|
114
|
+
{
|
|
115
|
+
className: f(
|
|
116
|
+
"shrink-0 border-b border-slate-200 bg-white px-4 py-3 sm:px-6 dark:border-border dark:bg-card"
|
|
117
|
+
),
|
|
118
|
+
children: [
|
|
119
|
+
!t && /* @__PURE__ */ e("h1", { className: "text-[17px] font-semibold text-slate-900 dark:text-foreground", children: "Delivery analytics" }),
|
|
120
|
+
/* @__PURE__ */ e("p", { className: "m-0 max-w-[80ch] text-[12px] leading-relaxed text-slate-600 dark:text-muted-foreground", children: "What was sent, where it went, what failed and why, and whether people read and acted on it. Every number opens the notifications or emails behind it." }),
|
|
121
|
+
/* @__PURE__ */ l("div", { className: "mt-2.5 flex flex-wrap items-center gap-2", children: [
|
|
122
|
+
/* @__PURE__ */ e(
|
|
123
|
+
K,
|
|
124
|
+
{
|
|
125
|
+
ariaLabel: "Window",
|
|
126
|
+
value: B.some((r) => r.value === D) ? D : "custom",
|
|
127
|
+
options: [...B],
|
|
128
|
+
onChange: (r) => b((c) => {
|
|
129
|
+
c.set("window", String(r)), c.delete("from"), c.delete("to");
|
|
130
|
+
})
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ e(
|
|
134
|
+
ge,
|
|
135
|
+
{
|
|
136
|
+
active: D === "custom",
|
|
137
|
+
from: h.get("from"),
|
|
138
|
+
to: h.get("to"),
|
|
139
|
+
onApply: (r, c) => b((u) => {
|
|
140
|
+
u.set("window", "custom"), u.set("from", r), u.set("to", c);
|
|
141
|
+
})
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
/* @__PURE__ */ e("span", { className: "hidden h-5 w-px bg-slate-200 sm:block dark:bg-border", "aria-hidden": !0 }),
|
|
145
|
+
/* @__PURE__ */ e(
|
|
146
|
+
A,
|
|
147
|
+
{
|
|
148
|
+
label: "Category",
|
|
149
|
+
allLabel: "All",
|
|
150
|
+
value: h.get("category"),
|
|
151
|
+
options: (d == null ? void 0 : d.options.categories) ?? [],
|
|
152
|
+
onChange: (r) => C("category", r)
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
/* @__PURE__ */ e(
|
|
156
|
+
A,
|
|
157
|
+
{
|
|
158
|
+
label: "Channel",
|
|
159
|
+
allLabel: "All",
|
|
160
|
+
value: h.get("channel"),
|
|
161
|
+
options: xe,
|
|
162
|
+
onChange: (r) => C("channel", r)
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
/* @__PURE__ */ e(
|
|
166
|
+
A,
|
|
167
|
+
{
|
|
168
|
+
label: "Collection",
|
|
169
|
+
allLabel: "All",
|
|
170
|
+
value: h.get("collection"),
|
|
171
|
+
options: ((d == null ? void 0 : d.options.collections) ?? []).map((r) => ({
|
|
172
|
+
...r,
|
|
173
|
+
label: _(r.label)
|
|
174
|
+
})),
|
|
175
|
+
onChange: (r) => C("collection", r)
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
/* @__PURE__ */ e(
|
|
179
|
+
A,
|
|
180
|
+
{
|
|
181
|
+
label: "Sender",
|
|
182
|
+
allLabel: "Anyone",
|
|
183
|
+
value: h.get("sender"),
|
|
184
|
+
options: (d == null ? void 0 : d.options.senders) ?? [],
|
|
185
|
+
onChange: (r) => C("sender", r)
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
/* @__PURE__ */ e("span", { className: "flex-1" }),
|
|
189
|
+
/* @__PURE__ */ e(
|
|
190
|
+
K,
|
|
191
|
+
{
|
|
192
|
+
ariaLabel: "Acted within",
|
|
193
|
+
prefix: "Acted within",
|
|
194
|
+
value: Y,
|
|
195
|
+
options: [4, 24, 72].map((r) => ({
|
|
196
|
+
value: r,
|
|
197
|
+
label: `${r}h`,
|
|
198
|
+
tip: `An action on the record within ${r} hours of the send counts as acted`
|
|
199
|
+
})),
|
|
200
|
+
onChange: (r) => C("acted", r === 24 ? null : String(r))
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
] }),
|
|
204
|
+
d && /* @__PURE__ */ l("p", { className: "mt-2 text-[11.5px] tabular-nums text-slate-500 dark:text-muted-foreground", children: [
|
|
205
|
+
ue(d.window.from, d.window.to),
|
|
206
|
+
s.isFetching && /* @__PURE__ */ e("span", { className: "ml-2", children: "Updating…" })
|
|
207
|
+
] })
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto bg-slate-50 px-4 py-5 sm:px-6 dark:bg-background", children: s.isError && !d ? /* @__PURE__ */ e(
|
|
212
|
+
z,
|
|
213
|
+
{
|
|
214
|
+
error: s.error,
|
|
215
|
+
what: "delivery analytics",
|
|
216
|
+
onRetry: () => void s.refetch()
|
|
217
|
+
}
|
|
218
|
+
) : d ? /* @__PURE__ */ l("div", { className: "space-y-5", children: [
|
|
219
|
+
/* @__PURE__ */ e(Ne, { summary: d }),
|
|
220
|
+
/* @__PURE__ */ e(we, { summary: d }),
|
|
221
|
+
/* @__PURE__ */ l("div", { className: "grid gap-5 lg:grid-cols-2", children: [
|
|
222
|
+
/* @__PURE__ */ e(
|
|
223
|
+
$,
|
|
224
|
+
{
|
|
225
|
+
id: "trend-notifications",
|
|
226
|
+
title: `Notifications per ${d.window.bucket}`,
|
|
227
|
+
hint: "Read and not yet read. Click a bar for its notifications.",
|
|
228
|
+
children: /* @__PURE__ */ e("div", { className: "px-4 py-3", children: /* @__PURE__ */ e(H, { summary: d, kind: "notifications" }) })
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ e(
|
|
232
|
+
$,
|
|
233
|
+
{
|
|
234
|
+
id: "trend-email",
|
|
235
|
+
title: `Email per ${d.window.bucket}`,
|
|
236
|
+
hint: "From the mail log: sent and failed. Click a bar for its emails.",
|
|
237
|
+
children: /* @__PURE__ */ e("div", { className: "px-4 py-3", children: /* @__PURE__ */ e(H, { summary: d, kind: "email" }) })
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
] }),
|
|
241
|
+
/* @__PURE__ */ e(ve, { summary: d }),
|
|
242
|
+
/* @__PURE__ */ l("div", { className: "grid gap-5 xl:grid-cols-2", children: [
|
|
243
|
+
/* @__PURE__ */ e(Ce, { summary: d }),
|
|
244
|
+
/* @__PURE__ */ e(Se, { summary: d })
|
|
245
|
+
] }),
|
|
246
|
+
/* @__PURE__ */ e(
|
|
247
|
+
_e,
|
|
248
|
+
{
|
|
249
|
+
by: y,
|
|
250
|
+
breakdown: R,
|
|
251
|
+
loading: y !== "category" && g.isLoading,
|
|
252
|
+
error: y !== "category" && g.isError ? g.error : null,
|
|
253
|
+
onRetry: () => void g.refetch(),
|
|
254
|
+
onBy: (r) => b((c) => r === "category" ? c.delete("by") : c.set("by", r), {
|
|
255
|
+
replace: !0
|
|
256
|
+
})
|
|
257
|
+
}
|
|
258
|
+
),
|
|
259
|
+
d.mutes && /* @__PURE__ */ e(Re, { summary: d })
|
|
260
|
+
] }) : /* @__PURE__ */ e(ye, {}) })
|
|
261
|
+
] }),
|
|
262
|
+
/* @__PURE__ */ e(ce, { params: h, setParams: b, summary: d, labels: X })
|
|
263
|
+
] });
|
|
264
|
+
}
|
|
265
|
+
function ge({
|
|
266
|
+
active: i,
|
|
267
|
+
from: t,
|
|
268
|
+
to: a,
|
|
269
|
+
onApply: o
|
|
270
|
+
}) {
|
|
271
|
+
const p = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), [h, b] = T(!1), [n, N] = T(t ?? ""), [s, d] = T(a ?? p), y = !!n && !!s && n <= s;
|
|
272
|
+
return /* @__PURE__ */ l(
|
|
273
|
+
se,
|
|
274
|
+
{
|
|
275
|
+
open: h,
|
|
276
|
+
onOpenChange: (g) => {
|
|
277
|
+
b(g), g && (N(t ?? ""), d(a ?? p));
|
|
278
|
+
},
|
|
279
|
+
children: [
|
|
280
|
+
/* @__PURE__ */ e(ie, { asChild: !0, children: /* @__PURE__ */ l(
|
|
281
|
+
"button",
|
|
282
|
+
{
|
|
283
|
+
type: "button",
|
|
284
|
+
"aria-pressed": i,
|
|
285
|
+
className: f(
|
|
286
|
+
"inline-flex h-8 items-center gap-1.5 rounded-md border px-2.5 text-[12px] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50",
|
|
287
|
+
i ? "border-slate-900 bg-slate-900 text-white dark:border-nvr-cyan dark:bg-nvr-cyan dark:text-[#172940]" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-border dark:bg-card dark:text-muted-foreground dark:hover:bg-muted"
|
|
288
|
+
),
|
|
289
|
+
children: [
|
|
290
|
+
/* @__PURE__ */ e(ee, { className: "h-3.5 w-3.5", "aria-hidden": !0 }),
|
|
291
|
+
i && t && a ? `${t} → ${a}` : "Custom"
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
) }),
|
|
295
|
+
/* @__PURE__ */ l(oe, { align: "start", className: "w-[260px] space-y-2.5 p-3", children: [
|
|
296
|
+
/* @__PURE__ */ e("p", { className: "text-[12px] text-slate-600 dark:text-muted-foreground", children: "Whole days in UTC, up to a year." }),
|
|
297
|
+
[
|
|
298
|
+
["From", n, N],
|
|
299
|
+
["To", s, d]
|
|
300
|
+
].map(([g, R, P]) => /* @__PURE__ */ l("label", { className: "block text-[12px] text-slate-600 dark:text-muted-foreground", children: [
|
|
301
|
+
g,
|
|
302
|
+
/* @__PURE__ */ e(
|
|
303
|
+
"input",
|
|
304
|
+
{
|
|
305
|
+
type: "date",
|
|
306
|
+
value: R,
|
|
307
|
+
max: p,
|
|
308
|
+
onChange: (C) => P(C.target.value),
|
|
309
|
+
className: "mt-0.5 block h-8 w-full rounded-md border border-slate-200 bg-white px-2 text-[12.5px] text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:border-border dark:bg-background dark:text-foreground"
|
|
310
|
+
}
|
|
311
|
+
)
|
|
312
|
+
] }, g)),
|
|
313
|
+
/* @__PURE__ */ e(
|
|
314
|
+
"button",
|
|
315
|
+
{
|
|
316
|
+
type: "button",
|
|
317
|
+
disabled: !y,
|
|
318
|
+
onClick: () => {
|
|
319
|
+
o(n, s), b(!1);
|
|
320
|
+
},
|
|
321
|
+
className: "h-8 w-full rounded-md bg-nvr-cyan text-[12.5px] font-semibold text-white disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50",
|
|
322
|
+
children: "Show this window"
|
|
323
|
+
}
|
|
324
|
+
)
|
|
325
|
+
] })
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
function ye() {
|
|
331
|
+
return /* @__PURE__ */ l(
|
|
332
|
+
"div",
|
|
333
|
+
{
|
|
334
|
+
className: "space-y-5",
|
|
335
|
+
role: "status",
|
|
336
|
+
"aria-busy": "true",
|
|
337
|
+
"aria-label": "Loading delivery analytics",
|
|
338
|
+
children: [
|
|
339
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 md:grid-cols-3 xl:grid-cols-6 dark:border-border dark:bg-border", children: Array.from({ length: 6 }, (i, t) => (
|
|
340
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cells
|
|
341
|
+
/* @__PURE__ */ l("div", { className: "space-y-2 bg-white px-4 py-3 dark:bg-card", children: [
|
|
342
|
+
/* @__PURE__ */ e(k, { className: "h-3 w-20" }),
|
|
343
|
+
/* @__PURE__ */ e(k, { className: "h-6 w-16" }),
|
|
344
|
+
/* @__PURE__ */ e(k, { className: "h-3 w-24" })
|
|
345
|
+
] }, t)
|
|
346
|
+
)) }),
|
|
347
|
+
/* @__PURE__ */ l("div", { className: "grid gap-5 lg:grid-cols-2", children: [
|
|
348
|
+
/* @__PURE__ */ e(k, { className: "h-[230px] w-full rounded-lg" }),
|
|
349
|
+
/* @__PURE__ */ e(k, { className: "h-[230px] w-full rounded-lg" })
|
|
350
|
+
] }),
|
|
351
|
+
/* @__PURE__ */ e(k, { className: "h-[220px] w-full rounded-lg" })
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
function Ne({ summary: i }) {
|
|
357
|
+
const t = i.health;
|
|
358
|
+
return t.length === 0 ? /* @__PURE__ */ l(
|
|
359
|
+
"p",
|
|
360
|
+
{
|
|
361
|
+
"data-da-health": "clear",
|
|
362
|
+
className: "flex items-center gap-2 text-[12.5px] text-slate-600 dark:text-muted-foreground",
|
|
363
|
+
children: [
|
|
364
|
+
/* @__PURE__ */ e(te, { className: "h-4 w-4 text-green-700 dark:text-[#9fbf8a]", "aria-hidden": !0 }),
|
|
365
|
+
"Nothing needs a look: no failed sends, floods, never-read people or ignored sources in this window."
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
) : /* @__PURE__ */ e(
|
|
369
|
+
$,
|
|
370
|
+
{
|
|
371
|
+
id: "health",
|
|
372
|
+
title: "Needs a look",
|
|
373
|
+
hint: "Failures first, then noise. Each count opens its rows.",
|
|
374
|
+
children: /* @__PURE__ */ e("ul", { className: "divide-y divide-slate-100 dark:divide-border/60", children: t.map((a) => /* @__PURE__ */ l("li", { "data-da-health": a.id, className: "flex items-start gap-3 px-4 py-2.5", children: [
|
|
375
|
+
/* @__PURE__ */ e(
|
|
376
|
+
ae,
|
|
377
|
+
{
|
|
378
|
+
className: f(
|
|
379
|
+
"mt-0.5 h-4 w-4 shrink-0",
|
|
380
|
+
a.tone === "bad" ? "text-red-600 dark:text-[#e08383]" : "text-amber-600 dark:text-[#d4936a]"
|
|
381
|
+
),
|
|
382
|
+
"aria-label": a.tone === "bad" ? "Failure" : "Warning"
|
|
383
|
+
}
|
|
384
|
+
),
|
|
385
|
+
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
|
|
386
|
+
/* @__PURE__ */ e("p", { className: "text-[12.5px] font-medium text-slate-900 dark:text-foreground", children: a.title }),
|
|
387
|
+
/* @__PURE__ */ e("p", { className: "text-[12px] text-slate-600 dark:text-muted-foreground", children: a.detail })
|
|
388
|
+
] }),
|
|
389
|
+
a.cell && /* @__PURE__ */ e(
|
|
390
|
+
m,
|
|
391
|
+
{
|
|
392
|
+
cell: a.cell,
|
|
393
|
+
label: a.title,
|
|
394
|
+
className: "shrink-0 text-[13px] font-semibold text-slate-900 dark:text-foreground"
|
|
395
|
+
}
|
|
396
|
+
)
|
|
397
|
+
] }, a.id)) })
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
function S({ label: i, children: t, sub: a }) {
|
|
402
|
+
return /* @__PURE__ */ l("div", { className: "min-w-0 bg-white px-4 py-3 dark:bg-card", children: [
|
|
403
|
+
/* @__PURE__ */ e("p", { className: "truncate text-[11.5px] font-medium text-slate-500 dark:text-muted-foreground", children: i }),
|
|
404
|
+
/* @__PURE__ */ e("div", { className: "mt-1 text-[21px] font-semibold leading-tight tracking-[-0.01em] text-slate-900 dark:text-foreground", children: t }),
|
|
405
|
+
a && /* @__PURE__ */ e("div", { className: "mt-1 flex flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: a })
|
|
406
|
+
] });
|
|
407
|
+
}
|
|
408
|
+
function ke({
|
|
409
|
+
label: i,
|
|
410
|
+
part: t,
|
|
411
|
+
whole: a,
|
|
412
|
+
cell: o,
|
|
413
|
+
periodLabel: p
|
|
414
|
+
}) {
|
|
415
|
+
return a === 0 ? null : /* @__PURE__ */ l("span", { children: [
|
|
416
|
+
"·",
|
|
417
|
+
" ",
|
|
418
|
+
/* @__PURE__ */ e(
|
|
419
|
+
m,
|
|
420
|
+
{
|
|
421
|
+
cell: o,
|
|
422
|
+
label: `${i} · previous period`,
|
|
423
|
+
tip: `${E(t)} of ${E(a)} in the ${p}`,
|
|
424
|
+
children: L(t, a)
|
|
425
|
+
}
|
|
426
|
+
),
|
|
427
|
+
" ",
|
|
428
|
+
"before"
|
|
429
|
+
] });
|
|
430
|
+
}
|
|
431
|
+
function we({ summary: i }) {
|
|
432
|
+
const t = i.headline, a = be(i.window.preset), o = i.acted_hours;
|
|
433
|
+
return /* @__PURE__ */ l(
|
|
434
|
+
"section",
|
|
435
|
+
{
|
|
436
|
+
"aria-label": "Headline figures",
|
|
437
|
+
"data-da-headline": "",
|
|
438
|
+
className: "grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 md:grid-cols-3 xl:grid-cols-6 dark:border-border dark:bg-border",
|
|
439
|
+
children: [
|
|
440
|
+
/* @__PURE__ */ e(
|
|
441
|
+
S,
|
|
442
|
+
{
|
|
443
|
+
label: "Notifications sent",
|
|
444
|
+
sub: /* @__PURE__ */ e(
|
|
445
|
+
j,
|
|
446
|
+
{
|
|
447
|
+
cur: t.sent.n,
|
|
448
|
+
prev: t.sent_prev,
|
|
449
|
+
label: "Notifications sent",
|
|
450
|
+
periodLabel: a
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
children: /* @__PURE__ */ e(m, { cell: t.sent, label: "Notifications sent" })
|
|
454
|
+
}
|
|
455
|
+
),
|
|
456
|
+
/* @__PURE__ */ e(
|
|
457
|
+
S,
|
|
458
|
+
{
|
|
459
|
+
label: "Read",
|
|
460
|
+
sub: /* @__PURE__ */ l(w, { children: [
|
|
461
|
+
/* @__PURE__ */ e(m, { cell: t.read, label: "Read notifications" }),
|
|
462
|
+
" of ",
|
|
463
|
+
E(t.sent.n),
|
|
464
|
+
/* @__PURE__ */ e(
|
|
465
|
+
ke,
|
|
466
|
+
{
|
|
467
|
+
label: "Read",
|
|
468
|
+
part: t.read_prev.n,
|
|
469
|
+
whole: t.sent_prev.n,
|
|
470
|
+
cell: t.read_prev,
|
|
471
|
+
periodLabel: a
|
|
472
|
+
}
|
|
473
|
+
)
|
|
474
|
+
] }),
|
|
475
|
+
children: /* @__PURE__ */ e(m, { cell: t.read, label: "Read notifications", children: L(t.read.n, t.sent.n) })
|
|
476
|
+
}
|
|
477
|
+
),
|
|
478
|
+
/* @__PURE__ */ e(
|
|
479
|
+
S,
|
|
480
|
+
{
|
|
481
|
+
label: "Time to read",
|
|
482
|
+
sub: /* @__PURE__ */ l(w, { children: [
|
|
483
|
+
"p90 ",
|
|
484
|
+
M(t.ttr.p90),
|
|
485
|
+
" · over",
|
|
486
|
+
" ",
|
|
487
|
+
/* @__PURE__ */ e(m, { cell: t.timed, label: "Read, with a read time", sort: "ttr" })
|
|
488
|
+
] }),
|
|
489
|
+
children: /* @__PURE__ */ e(
|
|
490
|
+
m,
|
|
491
|
+
{
|
|
492
|
+
cell: t.timed,
|
|
493
|
+
label: "Read, slowest first",
|
|
494
|
+
sort: "ttr",
|
|
495
|
+
tip: "Median — show these, slowest first",
|
|
496
|
+
children: M(t.ttr.p50)
|
|
497
|
+
}
|
|
498
|
+
)
|
|
499
|
+
}
|
|
500
|
+
),
|
|
501
|
+
/* @__PURE__ */ e(
|
|
502
|
+
S,
|
|
503
|
+
{
|
|
504
|
+
label: `Acted within ${o}h`,
|
|
505
|
+
sub: /* @__PURE__ */ l(w, { children: [
|
|
506
|
+
/* @__PURE__ */ e(m, { cell: t.acted, label: `Acted within ${o}h` }),
|
|
507
|
+
" of",
|
|
508
|
+
" ",
|
|
509
|
+
/* @__PURE__ */ e(m, { cell: t.eligible, label: "Record notifications, window closed" }),
|
|
510
|
+
" ·",
|
|
511
|
+
" ",
|
|
512
|
+
/* @__PURE__ */ e(m, { cell: t.read_ignored, label: "Read, no action" }),
|
|
513
|
+
" read, no action"
|
|
514
|
+
] }),
|
|
515
|
+
children: /* @__PURE__ */ e(m, { cell: t.acted, label: `Acted within ${o}h`, children: L(t.acted.n, t.eligible.n) })
|
|
516
|
+
}
|
|
517
|
+
),
|
|
518
|
+
/* @__PURE__ */ e(S, { label: "Still unread", sub: /* @__PURE__ */ l(w, { children: [
|
|
519
|
+
"of ",
|
|
520
|
+
E(t.sent.n),
|
|
521
|
+
" sent in the window"
|
|
522
|
+
] }), children: /* @__PURE__ */ e(m, { cell: t.unread, label: "Still unread" }) }),
|
|
523
|
+
/* @__PURE__ */ e(
|
|
524
|
+
S,
|
|
525
|
+
{
|
|
526
|
+
label: "Emails sent",
|
|
527
|
+
sub: /* @__PURE__ */ l(w, { children: [
|
|
528
|
+
/* @__PURE__ */ e(
|
|
529
|
+
m,
|
|
530
|
+
{
|
|
531
|
+
cell: t.email_failed,
|
|
532
|
+
label: "Emails failed",
|
|
533
|
+
className: t.email_failed.n > 0 ? "font-medium text-red-700 dark:text-[#e08383]" : void 0
|
|
534
|
+
}
|
|
535
|
+
),
|
|
536
|
+
" ",
|
|
537
|
+
"failed ·",
|
|
538
|
+
" ",
|
|
539
|
+
/* @__PURE__ */ e(
|
|
540
|
+
j,
|
|
541
|
+
{
|
|
542
|
+
cur: t.email_failed.n,
|
|
543
|
+
prev: t.email_failed_prev,
|
|
544
|
+
label: "Emails failed",
|
|
545
|
+
goodWhen: "down",
|
|
546
|
+
periodLabel: a
|
|
547
|
+
}
|
|
548
|
+
)
|
|
549
|
+
] }),
|
|
550
|
+
children: /* @__PURE__ */ e(m, { cell: t.email_delivered, label: "Emails sent" })
|
|
551
|
+
}
|
|
552
|
+
)
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
function ve({ summary: i }) {
|
|
558
|
+
const [t, a] = T(null);
|
|
559
|
+
return /* @__PURE__ */ e(
|
|
560
|
+
$,
|
|
561
|
+
{
|
|
562
|
+
id: "channels",
|
|
563
|
+
title: "Channels",
|
|
564
|
+
hint: "What each notification did on each channel. Open a channel for the exact statuses.",
|
|
565
|
+
children: /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ l("table", { className: "w-full min-w-[720px] text-[12.5px] tabular-nums", children: [
|
|
566
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ l("tr", { className: "border-b border-slate-100 text-right dark:border-border/60", children: [
|
|
567
|
+
/* @__PURE__ */ e("th", { className: f(x, "text-left"), children: "Channel" }),
|
|
568
|
+
/* @__PURE__ */ e("th", { className: x, "data-tip": "Every notification the channel was asked to carry", children: "Attempted" }),
|
|
569
|
+
O.map((o) => /* @__PURE__ */ e("th", { className: x, "data-tip": o.tip, children: o.label }, o.key))
|
|
570
|
+
] }) }),
|
|
571
|
+
/* @__PURE__ */ e("tbody", { children: i.channels.map((o) => {
|
|
572
|
+
const p = t === o.channel;
|
|
573
|
+
return /* @__PURE__ */ e(
|
|
574
|
+
$e,
|
|
575
|
+
{
|
|
576
|
+
c: o,
|
|
577
|
+
open: p,
|
|
578
|
+
onToggle: () => a(p ? null : o.channel)
|
|
579
|
+
},
|
|
580
|
+
o.channel
|
|
581
|
+
);
|
|
582
|
+
}) })
|
|
583
|
+
] }) })
|
|
584
|
+
}
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
function $e({
|
|
588
|
+
c: i,
|
|
589
|
+
open: t,
|
|
590
|
+
onToggle: a
|
|
591
|
+
}) {
|
|
592
|
+
return /* @__PURE__ */ l(w, { children: [
|
|
593
|
+
/* @__PURE__ */ l(
|
|
594
|
+
"tr",
|
|
595
|
+
{
|
|
596
|
+
className: "border-b border-slate-100 last:border-0 dark:border-border/60",
|
|
597
|
+
"data-da-channel": i.channel,
|
|
598
|
+
children: [
|
|
599
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: /* @__PURE__ */ l(
|
|
600
|
+
"button",
|
|
601
|
+
{
|
|
602
|
+
type: "button",
|
|
603
|
+
"aria-expanded": t,
|
|
604
|
+
onClick: a,
|
|
605
|
+
className: "inline-flex items-center gap-1 rounded-sm font-medium text-slate-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:text-foreground",
|
|
606
|
+
children: [
|
|
607
|
+
t ? /* @__PURE__ */ e(le, { className: "h-3.5 w-3.5 text-slate-400", "aria-hidden": !0 }) : /* @__PURE__ */ e(re, { className: "h-3.5 w-3.5 text-slate-400", "aria-hidden": !0 }),
|
|
608
|
+
i.label
|
|
609
|
+
]
|
|
610
|
+
}
|
|
611
|
+
) }),
|
|
612
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-2 text-right font-medium text-slate-900 dark:text-foreground", children: /* @__PURE__ */ e(m, { cell: i.attempted, label: `${i.label} · attempted` }) }),
|
|
613
|
+
O.map((o) => {
|
|
614
|
+
const p = i.outcomes[o.key];
|
|
615
|
+
return /* @__PURE__ */ e(
|
|
616
|
+
"td",
|
|
617
|
+
{
|
|
618
|
+
className: f(
|
|
619
|
+
"px-3 py-2 text-right",
|
|
620
|
+
o.key === "failed" && p.n > 0 ? "font-medium text-red-700 dark:text-[#e08383]" : "text-slate-700 dark:text-foreground"
|
|
621
|
+
),
|
|
622
|
+
children: /* @__PURE__ */ e(m, { cell: p, label: `${i.label} · ${o.label.toLowerCase()}` })
|
|
623
|
+
},
|
|
624
|
+
o.key
|
|
625
|
+
);
|
|
626
|
+
})
|
|
627
|
+
]
|
|
628
|
+
}
|
|
629
|
+
),
|
|
630
|
+
t && /* @__PURE__ */ e("tr", { className: "border-b border-slate-100 bg-slate-50/70 dark:border-border/60 dark:bg-muted/20", children: /* @__PURE__ */ e("td", { colSpan: 2 + O.length, className: "px-3 py-2", children: i.statuses.length === 0 ? /* @__PURE__ */ e("p", { className: "pl-5 text-[12px] text-slate-500 dark:text-muted-foreground", children: "Nothing recorded." }) : /* @__PURE__ */ e("ul", { className: "grid gap-x-8 gap-y-1 pl-5 sm:grid-cols-2", children: i.statuses.map((o) => /* @__PURE__ */ l(
|
|
631
|
+
"li",
|
|
632
|
+
{
|
|
633
|
+
className: "flex items-center justify-between gap-3 text-[12px]",
|
|
634
|
+
children: [
|
|
635
|
+
/* @__PURE__ */ l("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
636
|
+
/* @__PURE__ */ e(G, { outcome: o.outcome, children: _(o.outcome) }),
|
|
637
|
+
/* @__PURE__ */ e("span", { className: "truncate text-slate-700 dark:text-foreground", children: o.label })
|
|
638
|
+
] }),
|
|
639
|
+
/* @__PURE__ */ e(m, { cell: o.cell, label: `${i.label} · ${o.label}`, className: "font-medium" })
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
o.status
|
|
643
|
+
)) }) }) })
|
|
644
|
+
] });
|
|
645
|
+
}
|
|
646
|
+
const I = ["skipped", "suppressed", "test", "dropped"];
|
|
647
|
+
function Ce({ summary: i }) {
|
|
648
|
+
const t = i.email, a = V(), o = t.reasons.filter((n) => n.key !== "sent"), p = Math.max(1, ...o.map((n) => n.cell.n)), h = t.relay, b = a.consoleUrl ? a.consoleUrl("/delivery") : "/delivery";
|
|
649
|
+
return /* @__PURE__ */ e(
|
|
650
|
+
$,
|
|
651
|
+
{
|
|
652
|
+
id: "email",
|
|
653
|
+
title: "Email",
|
|
654
|
+
hint: /* @__PURE__ */ l(w, { children: [
|
|
655
|
+
"Every row of the mail log, whatever sent it.",
|
|
656
|
+
" ",
|
|
657
|
+
t.ignored_filters.length > 0 && /* @__PURE__ */ l("span", { className: "text-amber-700 dark:text-[#d4936a]", children: [
|
|
658
|
+
"The ",
|
|
659
|
+
t.ignored_filters.join(" and "),
|
|
660
|
+
" filter",
|
|
661
|
+
t.ignored_filters.length > 1 ? "s do" : " does",
|
|
662
|
+
" not apply to email."
|
|
663
|
+
] })
|
|
664
|
+
] }),
|
|
665
|
+
actions: b ? /* @__PURE__ */ e(
|
|
666
|
+
"a",
|
|
667
|
+
{
|
|
668
|
+
href: b,
|
|
669
|
+
onClick: (n) => {
|
|
670
|
+
n.metaKey || n.ctrlKey || n.button !== 0 || (n.preventDefault(), a.navigate(b));
|
|
671
|
+
},
|
|
672
|
+
className: "text-[12px] font-medium text-sky-700 hover:underline dark:text-nvr-cyan",
|
|
673
|
+
children: "Mail log"
|
|
674
|
+
}
|
|
675
|
+
) : null,
|
|
676
|
+
children: /* @__PURE__ */ l("div", { className: "space-y-4 px-4 py-3", children: [
|
|
677
|
+
/* @__PURE__ */ l("dl", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
678
|
+
t.outcomes.map((n) => /* @__PURE__ */ l("div", { className: "min-w-[72px]", children: [
|
|
679
|
+
/* @__PURE__ */ e("dt", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: n.label }),
|
|
680
|
+
/* @__PURE__ */ e(
|
|
681
|
+
"dd",
|
|
682
|
+
{
|
|
683
|
+
className: f(
|
|
684
|
+
"text-[17px] font-semibold",
|
|
685
|
+
n.key === "failed" && n.cell.n > 0 ? "text-red-700 dark:text-[#e08383]" : "text-slate-900 dark:text-foreground"
|
|
686
|
+
),
|
|
687
|
+
children: /* @__PURE__ */ e(m, { cell: n.cell, label: `Emails · ${n.label.toLowerCase()}` })
|
|
688
|
+
}
|
|
689
|
+
)
|
|
690
|
+
] }, n.key)),
|
|
691
|
+
t.resends && /* @__PURE__ */ l("div", { className: "min-w-[72px]", children: [
|
|
692
|
+
/* @__PURE__ */ e("dt", { className: "text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "Resends" }),
|
|
693
|
+
/* @__PURE__ */ e("dd", { className: "text-[17px] font-semibold text-slate-900 dark:text-foreground", children: /* @__PURE__ */ e(m, { cell: t.resends, label: "Resent emails" }) })
|
|
694
|
+
] })
|
|
695
|
+
] }),
|
|
696
|
+
h && /* @__PURE__ */ l(
|
|
697
|
+
"p",
|
|
698
|
+
{
|
|
699
|
+
className: "text-[12px] text-slate-600 dark:text-muted-foreground",
|
|
700
|
+
"data-da-relay": h.status,
|
|
701
|
+
children: [
|
|
702
|
+
/* @__PURE__ */ e(
|
|
703
|
+
"span",
|
|
704
|
+
{
|
|
705
|
+
className: f(
|
|
706
|
+
"mr-1.5 inline-block h-2 w-2 rounded-full align-middle",
|
|
707
|
+
h.status === "failing" ? "bg-red-500" : h.status === "ok" ? "bg-green-600 dark:bg-[#9fbf8a]" : "bg-slate-300 dark:bg-muted-foreground/50"
|
|
708
|
+
),
|
|
709
|
+
"aria-hidden": !0
|
|
710
|
+
}
|
|
711
|
+
),
|
|
712
|
+
"Relay",
|
|
713
|
+
" ",
|
|
714
|
+
h.status === "failing" ? `failing: ${h.failed} of the newest ${h.attempted} attempts failed the same way.` : h.status === "ok" ? `delivering: ${h.attempted - h.failed} of the newest ${h.attempted} attempts landed.` : `too quiet to judge (${h.attempted} recent attempts).`
|
|
715
|
+
]
|
|
716
|
+
}
|
|
717
|
+
),
|
|
718
|
+
/* @__PURE__ */ l("div", { children: [
|
|
719
|
+
/* @__PURE__ */ e("h4", { className: "mb-1.5 text-[12px] font-semibold text-slate-800 dark:text-foreground", children: "Why emails were not sent" }),
|
|
720
|
+
o.length === 0 ? /* @__PURE__ */ e("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: "Every email in the window went out." }) : /* @__PURE__ */ e("ul", { className: "space-y-1.5", children: o.map((n) => /* @__PURE__ */ l(
|
|
721
|
+
"li",
|
|
722
|
+
{
|
|
723
|
+
className: "grid grid-cols-[minmax(0,1fr)_56px] items-center gap-3 text-[12.5px] sm:grid-cols-[minmax(0,1fr)_minmax(60px,120px)_56px]",
|
|
724
|
+
children: [
|
|
725
|
+
/* @__PURE__ */ l("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
726
|
+
/* @__PURE__ */ e(G, { outcome: n.outcome, children: _(n.outcome === "deferred" ? "held" : n.outcome) }),
|
|
727
|
+
/* @__PURE__ */ e(
|
|
728
|
+
"span",
|
|
729
|
+
{
|
|
730
|
+
className: "truncate text-slate-800 dark:text-foreground",
|
|
731
|
+
"data-tip": n.hint,
|
|
732
|
+
children: n.label
|
|
733
|
+
}
|
|
734
|
+
)
|
|
735
|
+
] }),
|
|
736
|
+
/* @__PURE__ */ e("span", { className: "hidden sm:block", children: /* @__PURE__ */ e(
|
|
737
|
+
Z,
|
|
738
|
+
{
|
|
739
|
+
value: n.cell.n,
|
|
740
|
+
max: p,
|
|
741
|
+
tone: n.outcome === "failed" ? "bad" : "accent"
|
|
742
|
+
}
|
|
743
|
+
) }),
|
|
744
|
+
/* @__PURE__ */ e(
|
|
745
|
+
m,
|
|
746
|
+
{
|
|
747
|
+
cell: n.cell,
|
|
748
|
+
label: `Emails · ${n.label}`,
|
|
749
|
+
className: "text-right font-medium"
|
|
750
|
+
}
|
|
751
|
+
)
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
n.key
|
|
755
|
+
)) })
|
|
756
|
+
] }),
|
|
757
|
+
/* @__PURE__ */ l("div", { className: "overflow-x-auto", children: [
|
|
758
|
+
/* @__PURE__ */ l("table", { className: "w-full min-w-[460px] text-[12.5px] tabular-nums", children: [
|
|
759
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ l("tr", { className: "border-b border-slate-100 text-right dark:border-border/60", children: [
|
|
760
|
+
/* @__PURE__ */ e("th", { className: f(x, "pl-0 text-left"), children: "Template" }),
|
|
761
|
+
/* @__PURE__ */ e("th", { className: x, children: "Total" }),
|
|
762
|
+
/* @__PURE__ */ e("th", { className: x, children: "Sent" }),
|
|
763
|
+
/* @__PURE__ */ e("th", { className: x, "data-tip": "Held for the daily summary", children: "Held" }),
|
|
764
|
+
/* @__PURE__ */ e("th", { className: x, "data-tip": "Skipped, suppressed, test mode or dropped", children: "Not sent" }),
|
|
765
|
+
/* @__PURE__ */ e("th", { className: f(x, "pr-0"), children: "Failed" })
|
|
766
|
+
] }) }),
|
|
767
|
+
/* @__PURE__ */ e("tbody", { children: t.templates.map((n) => {
|
|
768
|
+
const N = ["template", [n.key]], s = {
|
|
769
|
+
n: I.reduce((d, y) => {
|
|
770
|
+
var g;
|
|
771
|
+
return d + (((g = n.outcomes[y]) == null ? void 0 : g.n) ?? 0);
|
|
772
|
+
}, 0),
|
|
773
|
+
s: "m",
|
|
774
|
+
w: [N, ["outcome", I]]
|
|
775
|
+
};
|
|
776
|
+
return /* @__PURE__ */ l(
|
|
777
|
+
"tr",
|
|
778
|
+
{
|
|
779
|
+
className: "border-b border-slate-100 last:border-0 dark:border-border/60",
|
|
780
|
+
children: [
|
|
781
|
+
/* @__PURE__ */ e(
|
|
782
|
+
"td",
|
|
783
|
+
{
|
|
784
|
+
className: "max-w-[200px] truncate py-1.5 pr-3 text-slate-800 dark:text-foreground",
|
|
785
|
+
"data-tip": n.key,
|
|
786
|
+
children: n.label === "(untemplated)" ? "No template" : n.label
|
|
787
|
+
}
|
|
788
|
+
),
|
|
789
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right font-medium", children: /* @__PURE__ */ e(m, { cell: n.total, label: `Emails · ${n.label}` }) }),
|
|
790
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(m, { cell: n.outcomes.delivered, label: `Sent · ${n.label}` }) }),
|
|
791
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(m, { cell: n.outcomes.deferred, label: `Held · ${n.label}` }) }),
|
|
792
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(m, { cell: s, label: `Not sent · ${n.label}` }) }),
|
|
793
|
+
/* @__PURE__ */ e(
|
|
794
|
+
"td",
|
|
795
|
+
{
|
|
796
|
+
className: f(
|
|
797
|
+
"py-1.5 pl-3 text-right",
|
|
798
|
+
n.outcomes.failed.n > 0 && "font-medium text-red-700 dark:text-[#e08383]"
|
|
799
|
+
),
|
|
800
|
+
children: /* @__PURE__ */ e(m, { cell: n.outcomes.failed, label: `Failed · ${n.label}` })
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
n.key
|
|
806
|
+
);
|
|
807
|
+
}) })
|
|
808
|
+
] }),
|
|
809
|
+
t.templates.length === 0 && /* @__PURE__ */ e("p", { className: "py-2 text-[12px] text-slate-500 dark:text-muted-foreground", children: "No email in this window." })
|
|
810
|
+
] })
|
|
811
|
+
] })
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
function J({ id: i, name: t }) {
|
|
816
|
+
const a = V(), o = a.userUrl ? a.userUrl(i) : `/users/${i.toLowerCase()}`;
|
|
817
|
+
return o ? /* @__PURE__ */ e(
|
|
818
|
+
"a",
|
|
819
|
+
{
|
|
820
|
+
href: o,
|
|
821
|
+
onClick: (p) => {
|
|
822
|
+
p.metaKey || p.ctrlKey || p.button !== 0 || (p.preventDefault(), a.navigate(o));
|
|
823
|
+
},
|
|
824
|
+
className: "truncate text-slate-800 hover:underline dark:text-foreground",
|
|
825
|
+
children: t
|
|
826
|
+
}
|
|
827
|
+
) : /* @__PURE__ */ e("span", { className: "truncate", children: t });
|
|
828
|
+
}
|
|
829
|
+
function Q({
|
|
830
|
+
title: i,
|
|
831
|
+
hint: t,
|
|
832
|
+
people: a,
|
|
833
|
+
empty: o,
|
|
834
|
+
value: p
|
|
835
|
+
}) {
|
|
836
|
+
return /* @__PURE__ */ l("div", { children: [
|
|
837
|
+
/* @__PURE__ */ e("h4", { className: "text-[12px] font-semibold text-slate-800 dark:text-foreground", children: i }),
|
|
838
|
+
/* @__PURE__ */ e("p", { className: "mb-1.5 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: t }),
|
|
839
|
+
a.length === 0 ? /* @__PURE__ */ e("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: o }) : /* @__PURE__ */ e("ul", { className: "divide-y divide-slate-100 dark:divide-border/60", children: a.map((h) => /* @__PURE__ */ l("li", { className: "flex items-center justify-between gap-3 py-1.5 text-[12.5px]", children: [
|
|
840
|
+
/* @__PURE__ */ e(J, { id: h.id, name: h.name }),
|
|
841
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 tabular-nums text-slate-500 dark:text-muted-foreground", children: p(h) })
|
|
842
|
+
] }, h.id)) })
|
|
843
|
+
] });
|
|
844
|
+
}
|
|
845
|
+
function Se({ summary: i }) {
|
|
846
|
+
const t = i.people;
|
|
847
|
+
return /* @__PURE__ */ e(
|
|
848
|
+
$,
|
|
849
|
+
{
|
|
850
|
+
id: "people",
|
|
851
|
+
title: "People",
|
|
852
|
+
hint: "Who is falling behind, who never reads, and who is being flooded.",
|
|
853
|
+
children: /* @__PURE__ */ l("div", { className: "space-y-5 px-4 py-3", children: [
|
|
854
|
+
/* @__PURE__ */ e(
|
|
855
|
+
Q,
|
|
856
|
+
{
|
|
857
|
+
title: "Most unread",
|
|
858
|
+
hint: "Notifications from this window still in their inbox.",
|
|
859
|
+
people: t.unread.slice(0, 8),
|
|
860
|
+
empty: "Everyone has read what they got.",
|
|
861
|
+
value: (a) => /* @__PURE__ */ l(w, { children: [
|
|
862
|
+
/* @__PURE__ */ e(
|
|
863
|
+
m,
|
|
864
|
+
{
|
|
865
|
+
cell: a.unread,
|
|
866
|
+
label: `Unread · ${a.name}`,
|
|
867
|
+
className: "font-medium text-slate-900 dark:text-foreground"
|
|
868
|
+
}
|
|
869
|
+
),
|
|
870
|
+
" ",
|
|
871
|
+
"of ",
|
|
872
|
+
/* @__PURE__ */ e(m, { cell: a.sent, label: `Notifications · ${a.name}` })
|
|
873
|
+
] })
|
|
874
|
+
}
|
|
875
|
+
),
|
|
876
|
+
/* @__PURE__ */ e(
|
|
877
|
+
Q,
|
|
878
|
+
{
|
|
879
|
+
title: `Read none of them${t.never_read_count > 0 ? ` (${E(t.never_read_count)})` : ""}`,
|
|
880
|
+
hint: "Got five or more and opened none: their rules may need a look.",
|
|
881
|
+
people: t.never_read.slice(0, 8),
|
|
882
|
+
empty: "Nobody ignores everything.",
|
|
883
|
+
value: (a) => /* @__PURE__ */ e(
|
|
884
|
+
m,
|
|
885
|
+
{
|
|
886
|
+
cell: a.sent,
|
|
887
|
+
label: `Notifications · ${a.name}`,
|
|
888
|
+
className: "font-medium text-slate-900 dark:text-foreground"
|
|
889
|
+
}
|
|
890
|
+
)
|
|
891
|
+
}
|
|
892
|
+
),
|
|
893
|
+
/* @__PURE__ */ l("div", { children: [
|
|
894
|
+
/* @__PURE__ */ e("h4", { className: "text-[12px] font-semibold text-slate-800 dark:text-foreground", children: "Floods" }),
|
|
895
|
+
/* @__PURE__ */ l("p", { className: "mb-1.5 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: [
|
|
896
|
+
"More than ",
|
|
897
|
+
t.flood_per_hour,
|
|
898
|
+
" notifications to one person in one hour."
|
|
899
|
+
] }),
|
|
900
|
+
t.floods.length === 0 ? /* @__PURE__ */ e("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: "No floods." }) : /* @__PURE__ */ e("ul", { className: "divide-y divide-slate-100 dark:divide-border/60", children: t.floods.slice(0, 8).map((a) => /* @__PURE__ */ l(
|
|
901
|
+
"li",
|
|
902
|
+
{
|
|
903
|
+
className: "flex items-center justify-between gap-3 py-1.5 text-[12.5px]",
|
|
904
|
+
children: [
|
|
905
|
+
/* @__PURE__ */ l("span", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
906
|
+
/* @__PURE__ */ e(J, { id: a.id, name: a.name }),
|
|
907
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-[11.5px] tabular-nums text-slate-500 dark:text-muted-foreground", children: (/* @__PURE__ */ new Date(`${a.hour}:00:00.000Z`)).toLocaleString(void 0, {
|
|
908
|
+
month: "short",
|
|
909
|
+
day: "numeric",
|
|
910
|
+
hour: "numeric"
|
|
911
|
+
}) })
|
|
912
|
+
] }),
|
|
913
|
+
/* @__PURE__ */ e(
|
|
914
|
+
m,
|
|
915
|
+
{
|
|
916
|
+
cell: a.cell,
|
|
917
|
+
label: `Flood · ${a.name}`,
|
|
918
|
+
className: "font-medium text-amber-700 dark:text-[#d4936a]"
|
|
919
|
+
}
|
|
920
|
+
)
|
|
921
|
+
]
|
|
922
|
+
},
|
|
923
|
+
`${a.id}:${a.hour}`
|
|
924
|
+
)) })
|
|
925
|
+
] })
|
|
926
|
+
] })
|
|
927
|
+
}
|
|
928
|
+
);
|
|
929
|
+
}
|
|
930
|
+
function _e({
|
|
931
|
+
by: i,
|
|
932
|
+
breakdown: t,
|
|
933
|
+
loading: a,
|
|
934
|
+
error: o,
|
|
935
|
+
onRetry: p,
|
|
936
|
+
onBy: h
|
|
937
|
+
}) {
|
|
938
|
+
const b = F.find((s) => s.key === i) ?? F[0], n = (t == null ? void 0 : t.by) === i ? t.rows : [], N = Math.max(1, ...n.map((s) => s.sent.n));
|
|
939
|
+
return /* @__PURE__ */ l(
|
|
940
|
+
$,
|
|
941
|
+
{
|
|
942
|
+
id: "breakdown",
|
|
943
|
+
title: "Where the volume comes from",
|
|
944
|
+
hint: "Sent, read and acted per group. Low read rates are candidates to quieten or move to a summary.",
|
|
945
|
+
children: [
|
|
946
|
+
/* @__PURE__ */ e(
|
|
947
|
+
"div",
|
|
948
|
+
{
|
|
949
|
+
role: "tablist",
|
|
950
|
+
"aria-label": "Break down by",
|
|
951
|
+
className: "flex gap-1 overflow-x-auto border-b border-slate-100 px-3 pt-2 dark:border-border/60",
|
|
952
|
+
children: F.map((s) => /* @__PURE__ */ e(
|
|
953
|
+
"button",
|
|
954
|
+
{
|
|
955
|
+
type: "button",
|
|
956
|
+
role: "tab",
|
|
957
|
+
"aria-selected": s.key === i,
|
|
958
|
+
onClick: () => h(s.key),
|
|
959
|
+
className: f(
|
|
960
|
+
"-mb-px shrink-0 border-b-2 px-2.5 pb-2 pt-1 text-[12px] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50",
|
|
961
|
+
s.key === i ? "border-nvr-cyan text-slate-900 dark:text-foreground" : "border-transparent text-slate-500 hover:text-slate-800 dark:text-muted-foreground dark:hover:text-foreground"
|
|
962
|
+
),
|
|
963
|
+
children: s.label
|
|
964
|
+
},
|
|
965
|
+
s.key
|
|
966
|
+
))
|
|
967
|
+
}
|
|
968
|
+
),
|
|
969
|
+
o ? /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e(z, { error: o, what: "this breakdown", onRetry: p }) }) : a || !t ? /* @__PURE__ */ l("div", { className: "space-y-2 p-4", "aria-busy": "true", children: [
|
|
970
|
+
/* @__PURE__ */ e(k, { className: "h-6 w-full" }),
|
|
971
|
+
/* @__PURE__ */ e(k, { className: "h-6 w-full" }),
|
|
972
|
+
/* @__PURE__ */ e(k, { className: "h-6 w-4/5" })
|
|
973
|
+
] }) : n.length === 0 ? /* @__PURE__ */ e("p", { className: "px-4 py-6 text-[12.5px] text-slate-500 dark:text-muted-foreground", children: "No notifications in this window." }) : /* @__PURE__ */ l("div", { className: "overflow-x-auto", children: [
|
|
974
|
+
/* @__PURE__ */ l("table", { className: "w-full min-w-[820px] text-[12.5px] tabular-nums", "data-da-breakdown": i, children: [
|
|
975
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ l("tr", { className: "border-b border-slate-100 text-right dark:border-border/60", children: [
|
|
976
|
+
/* @__PURE__ */ e("th", { className: f(x, "pl-4 text-left"), children: b == null ? void 0 : b.label }),
|
|
977
|
+
/* @__PURE__ */ e("th", { className: x, children: "Sent" }),
|
|
978
|
+
/* @__PURE__ */ e("th", { className: x, children: "Read" }),
|
|
979
|
+
/* @__PURE__ */ e("th", { className: x, children: "Read rate" }),
|
|
980
|
+
/* @__PURE__ */ e("th", { className: x, "data-tip": "Median time from send to read", children: "Median read" }),
|
|
981
|
+
/* @__PURE__ */ e("th", { className: x, "data-tip": "90% were read within this", children: "p90 read" }),
|
|
982
|
+
/* @__PURE__ */ e(
|
|
983
|
+
"th",
|
|
984
|
+
{
|
|
985
|
+
className: x,
|
|
986
|
+
"data-tip": "Record notifications acted on within the window, of those whose window closed",
|
|
987
|
+
children: "Acted"
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
/* @__PURE__ */ e("th", { className: x, "data-tip": "Opened, but no transition, comment or task followed", children: "Read, no action" }),
|
|
991
|
+
/* @__PURE__ */ e("th", { className: f(x, "pr-4"), children: "Unread" })
|
|
992
|
+
] }) }),
|
|
993
|
+
/* @__PURE__ */ e("tbody", { children: n.map((s) => {
|
|
994
|
+
const d = s.sent.n ? s.read.n / s.sent.n : 0;
|
|
995
|
+
return /* @__PURE__ */ l(
|
|
996
|
+
"tr",
|
|
997
|
+
{
|
|
998
|
+
className: "border-b border-slate-100 last:border-0 dark:border-border/60",
|
|
999
|
+
children: [
|
|
1000
|
+
/* @__PURE__ */ e("td", { className: "py-1.5 pl-4 pr-3", children: /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
1001
|
+
/* @__PURE__ */ e(
|
|
1002
|
+
"span",
|
|
1003
|
+
{
|
|
1004
|
+
className: "max-w-[260px] truncate text-slate-800 dark:text-foreground",
|
|
1005
|
+
"data-tip": s.label,
|
|
1006
|
+
children: s.label
|
|
1007
|
+
}
|
|
1008
|
+
),
|
|
1009
|
+
/* @__PURE__ */ e("span", { className: "w-[120px]", children: /* @__PURE__ */ e(Z, { value: s.sent.n, max: N }) })
|
|
1010
|
+
] }) }),
|
|
1011
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right font-medium text-slate-900 dark:text-foreground", children: /* @__PURE__ */ e(m, { cell: s.sent, label: `${s.label} · sent` }) }),
|
|
1012
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(m, { cell: s.read, label: `${s.label} · read` }) }),
|
|
1013
|
+
/* @__PURE__ */ e(
|
|
1014
|
+
"td",
|
|
1015
|
+
{
|
|
1016
|
+
className: f(
|
|
1017
|
+
"px-3 py-1.5 text-right",
|
|
1018
|
+
s.sent.n >= 20 && d < 0.3 ? "font-medium text-amber-700 dark:text-[#d4936a]" : "text-slate-700 dark:text-foreground"
|
|
1019
|
+
),
|
|
1020
|
+
children: L(s.read.n, s.sent.n)
|
|
1021
|
+
}
|
|
1022
|
+
),
|
|
1023
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(
|
|
1024
|
+
m,
|
|
1025
|
+
{
|
|
1026
|
+
cell: s.timed,
|
|
1027
|
+
label: `${s.label} · read, slowest first`,
|
|
1028
|
+
sort: "ttr",
|
|
1029
|
+
tip: "Show the reads behind this, slowest first",
|
|
1030
|
+
children: M(s.p50)
|
|
1031
|
+
}
|
|
1032
|
+
) }),
|
|
1033
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right text-slate-500 dark:text-muted-foreground", children: M(s.p90) }),
|
|
1034
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ l("span", { className: "inline-flex items-baseline gap-1", children: [
|
|
1035
|
+
/* @__PURE__ */ e(m, { cell: s.acted, label: `${s.label} · acted`, children: s.eligible.n ? L(s.acted.n, s.eligible.n) : "–" }),
|
|
1036
|
+
s.eligible.n > 0 && /* @__PURE__ */ l("span", { className: "text-[11px] text-slate-400", children: [
|
|
1037
|
+
"of ",
|
|
1038
|
+
/* @__PURE__ */ e(m, { cell: s.eligible, label: `${s.label} · record notifications` })
|
|
1039
|
+
] })
|
|
1040
|
+
] }) }),
|
|
1041
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(m, { cell: s.read_ignored, label: `${s.label} · read, no action` }) }),
|
|
1042
|
+
/* @__PURE__ */ e("td", { className: "py-1.5 pl-3 pr-4 text-right", children: /* @__PURE__ */ e(m, { cell: s.unread, label: `${s.label} · unread` }) })
|
|
1043
|
+
]
|
|
1044
|
+
},
|
|
1045
|
+
s.key
|
|
1046
|
+
);
|
|
1047
|
+
}) })
|
|
1048
|
+
] }),
|
|
1049
|
+
t.more && /* @__PURE__ */ e("p", { className: "px-4 py-2 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: "The 30 busiest are shown. Open any number and break it down further for the rest." })
|
|
1050
|
+
] })
|
|
1051
|
+
]
|
|
1052
|
+
}
|
|
1053
|
+
);
|
|
1054
|
+
}
|
|
1055
|
+
function Re({ summary: i }) {
|
|
1056
|
+
const t = i.mutes;
|
|
1057
|
+
return t ? /* @__PURE__ */ e(
|
|
1058
|
+
$,
|
|
1059
|
+
{
|
|
1060
|
+
id: "mutes",
|
|
1061
|
+
title: "Muted records",
|
|
1062
|
+
hint: /* @__PURE__ */ l(w, { children: [
|
|
1063
|
+
"Records people asked to stop hearing about (all time), against what each collection sent in this window. ",
|
|
1064
|
+
/* @__PURE__ */ e(m, { cell: t.total, label: "All mutes" }),
|
|
1065
|
+
" in total."
|
|
1066
|
+
] }),
|
|
1067
|
+
children: t.by_collection.length === 0 ? /* @__PURE__ */ e("p", { className: "px-4 py-4 text-[12.5px] text-slate-500 dark:text-muted-foreground", children: "Nobody has muted a record." }) : /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ l("table", { className: "w-full min-w-[420px] text-[12.5px] tabular-nums", children: [
|
|
1068
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ l("tr", { className: "border-b border-slate-100 text-right dark:border-border/60", children: [
|
|
1069
|
+
/* @__PURE__ */ e("th", { className: f(x, "pl-4 text-left"), children: "Collection" }),
|
|
1070
|
+
/* @__PURE__ */ e("th", { className: x, children: "Mutes" }),
|
|
1071
|
+
/* @__PURE__ */ e("th", { className: x, children: "Sent in window" }),
|
|
1072
|
+
/* @__PURE__ */ e("th", { className: f(x, "pr-4"), children: "Mutes per 100 sent" })
|
|
1073
|
+
] }) }),
|
|
1074
|
+
/* @__PURE__ */ e("tbody", { children: t.by_collection.map((a) => /* @__PURE__ */ l(
|
|
1075
|
+
"tr",
|
|
1076
|
+
{
|
|
1077
|
+
className: "border-b border-slate-100 last:border-0 dark:border-border/60",
|
|
1078
|
+
children: [
|
|
1079
|
+
/* @__PURE__ */ e("td", { className: "py-1.5 pl-4 pr-3 text-slate-800 dark:text-foreground", children: _(a.key) }),
|
|
1080
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right font-medium", children: /* @__PURE__ */ e(m, { cell: a.mutes, label: `Mutes · ${_(a.key)}` }) }),
|
|
1081
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-1.5 text-right", children: /* @__PURE__ */ e(m, { cell: a.sent, label: `Notifications · ${_(a.key)}` }) }),
|
|
1082
|
+
/* @__PURE__ */ e("td", { className: "py-1.5 pl-3 pr-4 text-right text-slate-600 dark:text-muted-foreground", children: a.sent.n ? (a.mutes.n / a.sent.n * 100).toFixed(1) : "–" })
|
|
1083
|
+
]
|
|
1084
|
+
},
|
|
1085
|
+
a.key
|
|
1086
|
+
)) })
|
|
1087
|
+
] }) })
|
|
1088
|
+
}
|
|
1089
|
+
) : null;
|
|
1090
|
+
}
|
|
1091
|
+
const je = fe;
|
|
1092
|
+
export {
|
|
1093
|
+
fe as DeliveryAnalyticsView,
|
|
1094
|
+
je as NotificationAnalyticsView
|
|
1095
|
+
};
|