@7365admin1/layer-common 4.158.0 → 4.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -4
- package/components/CctvEngine/Alerts.vue +134 -0
- package/components/CctvEngine/CameraPicker.vue +107 -0
- package/components/CctvEngine/Engines.vue +289 -0
- package/components/CctvEngine/Events.vue +175 -0
- package/components/CctvEngine/Faces.vue +174 -0
- package/components/CctvEngine/Live.vue +88 -0
- package/components/CctvEngine/LiveTile.vue +173 -0
- package/components/CctvEngine/Notice.vue +54 -0
- package/components/CctvEngine/Plates.vue +158 -0
- package/components/CctvEngine/Playback.vue +239 -0
- package/components/CctvEngine/Shell.vue +86 -0
- package/components/CctvEngine/WrongWayRules.vue +177 -0
- package/components/CctvEngine/Zones.vue +189 -0
- package/components/CctvEngineSiteSwitch.vue +82 -0
- package/components/SiteSettings.vue +4 -0
- package/composables/useCctvEngine.ts +119 -0
- package/composables/useCctvEngineAccess.ts +49 -0
- package/composables/useCommonPermission.ts +17 -0
- package/composables/usePropertyPermission.ts +2 -0
- package/composables/useSecurityPermission.ts +2 -0
- package/composables/useSiteFeatureSettings.ts +1 -0
- package/constants/permissions.ts +11 -0
- package/package.json +1 -1
- package/plugins/secure-member.client.ts +15 -2
- package/utils/cctv-engine.ts +330 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iSecure365 CCTV Engine - the pure rules behind the CCTV Engine screens.
|
|
3
|
+
*
|
|
4
|
+
* Everything here is plain functions (no Vue, no network) so it can be tested on its own:
|
|
5
|
+
* who may see what (mirrors the server), the event filter -> query string, zone drawing
|
|
6
|
+
* maths, and the plain-words wording for every refusal the API can give.
|
|
7
|
+
* Contract: isecure365-cctv-engine/BACKEND_API_CONTRACT.md.
|
|
8
|
+
*/
|
|
9
|
+
// --------------------------------------------------------------------------- permissions
|
|
10
|
+
|
|
11
|
+
export const CCTV_PERMISSIONS = {
|
|
12
|
+
viewLive: "cctv-engine:view-live",
|
|
13
|
+
viewEvents: "cctv-engine:view-events",
|
|
14
|
+
export: "cctv-engine:export",
|
|
15
|
+
manageFaces: "cctv-engine:manage-faces",
|
|
16
|
+
managePlates: "cctv-engine:manage-plates",
|
|
17
|
+
manageZones: "cctv-engine:manage-zones",
|
|
18
|
+
manageAlerts: "cctv-engine:manage-alerts",
|
|
19
|
+
manageEngine: "cctv-engine:manage-engine",
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export type TCctvPermission = (typeof CCTV_PERMISSIONS)[keyof typeof CCTV_PERMISSIONS];
|
|
23
|
+
|
|
24
|
+
export type TCctvSection =
|
|
25
|
+
| "live"
|
|
26
|
+
| "events"
|
|
27
|
+
| "playback"
|
|
28
|
+
| "zones"
|
|
29
|
+
| "plates"
|
|
30
|
+
| "faces"
|
|
31
|
+
| "alerts"
|
|
32
|
+
| "engines";
|
|
33
|
+
|
|
34
|
+
/** The menu, in the order people use it. `needs` is the permission the server enforces on that screen's routes. */
|
|
35
|
+
export const CCTV_SECTIONS: { key: TCctvSection; title: string; icon: string; needs: TCctvPermission; face?: boolean }[] = [
|
|
36
|
+
{ key: "live", title: "Live", icon: "mdi-video", needs: CCTV_PERMISSIONS.viewLive },
|
|
37
|
+
{ key: "events", title: "Events", icon: "mdi-timeline-clock-outline", needs: CCTV_PERMISSIONS.viewEvents },
|
|
38
|
+
{ key: "playback", title: "Playback & export", icon: "mdi-play-box-outline", needs: CCTV_PERMISSIONS.viewEvents },
|
|
39
|
+
{ key: "zones", title: "Zones & wrong-way", icon: "mdi-vector-polygon", needs: CCTV_PERMISSIONS.manageZones },
|
|
40
|
+
{ key: "plates", title: "Known plates", icon: "mdi-car-info", needs: CCTV_PERMISSIONS.managePlates },
|
|
41
|
+
{ key: "faces", title: "Face library", icon: "mdi-face-recognition", needs: CCTV_PERMISSIONS.manageFaces, face: true },
|
|
42
|
+
{ key: "alerts", title: "Alerts", icon: "mdi-bell-ring-outline", needs: CCTV_PERMISSIONS.manageAlerts },
|
|
43
|
+
{ key: "engines", title: "Engines & health", icon: "mdi-server-network", needs: CCTV_PERMISSIONS.manageEngine },
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Same order the server asks: the site switch first (off = nothing at all), then the client's module list,
|
|
48
|
+
* then the role. `grants` is the estate's role check (`grantsPermission` over the held list: empty or `*` =
|
|
49
|
+
* everything), passed in so this file stays dependency-free.
|
|
50
|
+
*/
|
|
51
|
+
export function cctvEngineAccess(input: {
|
|
52
|
+
grants: (permission: string) => boolean;
|
|
53
|
+
moduleDenied?: boolean;
|
|
54
|
+
siteMetadata?: Record<string, any> | null;
|
|
55
|
+
}) {
|
|
56
|
+
const sw = input.siteMetadata?.cctvEngine;
|
|
57
|
+
const enabled = sw?.enabled === true;
|
|
58
|
+
const faceEnabled = enabled && sw?.faceRecognition === true;
|
|
59
|
+
const can = (perm: TCctvPermission) =>
|
|
60
|
+
enabled && !input.moduleDenied && input.grants(perm);
|
|
61
|
+
const sections = CCTV_SECTIONS.filter((s) => can(s.needs));
|
|
62
|
+
return { enabled, faceEnabled, can, sections, canAny: sections.length > 0 };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// --------------------------------------------------------------------------- events query
|
|
66
|
+
|
|
67
|
+
export type TEventFilters = {
|
|
68
|
+
engine?: string;
|
|
69
|
+
camera?: string;
|
|
70
|
+
label?: string;
|
|
71
|
+
zone?: string;
|
|
72
|
+
face?: string;
|
|
73
|
+
plate?: string;
|
|
74
|
+
kind?: string;
|
|
75
|
+
severity?: string;
|
|
76
|
+
from?: string;
|
|
77
|
+
to?: string;
|
|
78
|
+
page?: number;
|
|
79
|
+
limit?: number;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export const EVENT_KINDS = [
|
|
83
|
+
{ value: "object", title: "Object seen" },
|
|
84
|
+
{ value: "audio", title: "Sound heard" },
|
|
85
|
+
{ value: "wrong-way", title: "Wrong way" },
|
|
86
|
+
{ value: "review", title: "Review item" },
|
|
87
|
+
];
|
|
88
|
+
export const EVENT_SEVERITIES = [
|
|
89
|
+
{ value: "alert", title: "Alert" },
|
|
90
|
+
{ value: "detection", title: "Detection" },
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
/** `YYYY-MM-DDTHH:mm` (from a date field) -> ISO. Anything unreadable is dropped, never sent. */
|
|
94
|
+
export function toIso(value: string | undefined | null): string | undefined {
|
|
95
|
+
if (!value) return undefined;
|
|
96
|
+
const d = new Date(value);
|
|
97
|
+
return Number.isNaN(d.getTime()) ? undefined : d.toISOString();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Filters -> the query the API takes. Blank filters are left out; plates are normalised. `f.page` is 1-based (the pager); the API counts from 0. */
|
|
101
|
+
export function buildEventsQuery(site: string, f: TEventFilters = {}): Record<string, string | number> {
|
|
102
|
+
const q: Record<string, string | number> = { site };
|
|
103
|
+
for (const k of ["engine", "camera", "label", "zone", "face", "kind", "severity"] as const) {
|
|
104
|
+
const v = (f[k] ?? "").toString().trim();
|
|
105
|
+
if (v) q[k] = v;
|
|
106
|
+
}
|
|
107
|
+
const plate = normalisePlate(f.plate);
|
|
108
|
+
if (plate) q.plate = plate;
|
|
109
|
+
const from = toIso(f.from);
|
|
110
|
+
const to = toIso(f.to);
|
|
111
|
+
if (from) q.from = from;
|
|
112
|
+
if (to) q.to = to;
|
|
113
|
+
q.page = Math.max(1, Math.floor(Number(f.page) || 1)) - 1;
|
|
114
|
+
q.limit = Math.min(100, Math.max(1, Math.floor(Number(f.limit) || 20)));
|
|
115
|
+
return q;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Plates are stored uppercase, no spaces or dashes. */
|
|
119
|
+
export function normalisePlate(plate: string | undefined | null): string {
|
|
120
|
+
return (plate ?? "").toString().toUpperCase().replace(/[^A-Z0-9]/g, "");
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// --------------------------------------------------------------------------- zones (0..1 coordinates)
|
|
124
|
+
|
|
125
|
+
export type TPoint = [number, number];
|
|
126
|
+
|
|
127
|
+
const round4 = (n: number) => Math.round(n * 10000) / 10000;
|
|
128
|
+
export const clamp01 = (n: number) => (Number.isFinite(n) ? Math.min(1, Math.max(0, n)) : 0);
|
|
129
|
+
|
|
130
|
+
/** A click at (x, y) inside a picture box -> a point as a fraction of the picture. Outside the box snaps to the edge. */
|
|
131
|
+
export function pointFromClick(
|
|
132
|
+
box: { left: number; top: number; width: number; height: number },
|
|
133
|
+
x: number,
|
|
134
|
+
y: number,
|
|
135
|
+
): TPoint {
|
|
136
|
+
if (!(box.width > 0) || !(box.height > 0)) return [0, 0];
|
|
137
|
+
return [round4(clamp01((x - box.left) / box.width)), round4(clamp01((y - box.top) / box.height))];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Whatever the engine hands back (pairs or {x,y}) -> clean 0..1 pairs. */
|
|
141
|
+
export function normalisePolygon(points: unknown): TPoint[] {
|
|
142
|
+
if (!Array.isArray(points)) return [];
|
|
143
|
+
const out: TPoint[] = [];
|
|
144
|
+
for (const p of points) {
|
|
145
|
+
const x = Array.isArray(p) ? Number(p[0]) : Number((p as any)?.x);
|
|
146
|
+
const y = Array.isArray(p) ? Number(p[1]) : Number((p as any)?.y);
|
|
147
|
+
if (Number.isFinite(x) && Number.isFinite(y)) out.push([round4(clamp01(x)), round4(clamp01(y))]);
|
|
148
|
+
}
|
|
149
|
+
return out;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** A shape needs at least three corners. */
|
|
153
|
+
export const isValidPolygon = (points: readonly TPoint[]) => points.length >= 3;
|
|
154
|
+
|
|
155
|
+
/** SVG `points` attribute, drawn in a 0..1 viewBox. */
|
|
156
|
+
export const polygonToSvgPoints = (points: readonly TPoint[]) => points.map(([x, y]) => `${x},${y}`).join(" ");
|
|
157
|
+
|
|
158
|
+
/** `objects` = the kinds of thing the zone watches for (the engine's own word for it). */
|
|
159
|
+
export type TZone = { name: string; points: TPoint[]; objects?: string[] };
|
|
160
|
+
export type TMask = { kind: "motion" | "object"; points: TPoint[] };
|
|
161
|
+
/** What GET and PUT `/cctv-engines/:id/cameras/:camera/zones` both speak. */
|
|
162
|
+
export type TZonesBody = { zones: TZone[]; motionMasks: TPoint[][]; objectMasks: TPoint[][] };
|
|
163
|
+
|
|
164
|
+
/** The reply of GET zones -> what the screen draws. */
|
|
165
|
+
export function readZonesReply(res: any): { zones: TZone[]; masks: TMask[] } {
|
|
166
|
+
const poly = (m: unknown) => normalisePolygon(m);
|
|
167
|
+
return {
|
|
168
|
+
zones: (res?.zones ?? []).map((z: any) => ({ name: String(z.name), points: poly(z.points), objects: z.objects ?? [] })),
|
|
169
|
+
masks: [
|
|
170
|
+
...(res?.motionMasks ?? []).map((m: unknown) => ({ kind: "motion" as const, points: poly(m) })),
|
|
171
|
+
...(res?.objectMasks ?? []).map((m: unknown) => ({ kind: "object" as const, points: poly(m) })),
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** The PUT body: only complete shapes, clean names, unique zone names. Returns what was dropped so the screen can say so. */
|
|
177
|
+
export function buildZonesBody(zones: TZone[], masks: TMask[]): { body: TZonesBody; dropped: number } {
|
|
178
|
+
const seen = new Set<string>();
|
|
179
|
+
const kept: TZone[] = [];
|
|
180
|
+
let dropped = 0;
|
|
181
|
+
for (const z of zones) {
|
|
182
|
+
const name = z.name.trim().replace(/\s+/g, "_");
|
|
183
|
+
if (!name || seen.has(name) || !isValidPolygon(z.points)) {
|
|
184
|
+
dropped++;
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
seen.add(name);
|
|
188
|
+
kept.push({ ...z, name, points: normalisePolygon(z.points) });
|
|
189
|
+
}
|
|
190
|
+
const keptMasks = masks.filter((m) => isValidPolygon(m.points)).map((m) => ({ ...m, points: normalisePolygon(m.points) }));
|
|
191
|
+
dropped += masks.length - keptMasks.length;
|
|
192
|
+
const pick = (kind: TMask["kind"]) => keptMasks.filter((m) => m.kind === kind).map((m) => m.points);
|
|
193
|
+
return { body: { zones: kept, motionMasks: pick("motion"), objectMasks: pick("object") }, dropped };
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function wrongWayExplain(zoneA?: string, zoneB?: string) {
|
|
197
|
+
const a = zoneA || "zone A";
|
|
198
|
+
const b = zoneB || "zone B";
|
|
199
|
+
return `Vehicles and people must go ${a} then ${b}. Going ${b} then ${a} raises a wrong-way alert.`;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// --------------------------------------------------------------------------- live grid
|
|
203
|
+
|
|
204
|
+
export const GRID_LAYOUTS = [
|
|
205
|
+
{ key: 1, columns: 1, label: "1 camera" },
|
|
206
|
+
{ key: 4, columns: 2, label: "4 cameras" },
|
|
207
|
+
{ key: 9, columns: 3, label: "9 cameras" },
|
|
208
|
+
{ key: 16, columns: 4, label: "16 cameras" },
|
|
209
|
+
] as const;
|
|
210
|
+
|
|
211
|
+
export function gridLayout(tiles: number) {
|
|
212
|
+
return GRID_LAYOUTS.find((l) => l.key === tiles) ?? GRID_LAYOUTS[1];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/** A phone shows at most two columns, however many tiles were asked for (a 4-column grid there is unreadable). */
|
|
216
|
+
export function gridColumns(tiles: number, phone: boolean) {
|
|
217
|
+
const c = gridLayout(tiles).columns;
|
|
218
|
+
return phone ? Math.min(c, tiles === 1 ? 1 : 2) : c;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/** The tiles shown: the picked cameras, topped up in list order, never more than the layout holds. */
|
|
222
|
+
export function pickGridCameras<T extends { name: string }>(all: readonly T[], picked: readonly string[], tiles: number): T[] {
|
|
223
|
+
const chosen = picked.map((n) => all.find((c) => c.name === n)).filter(Boolean) as T[];
|
|
224
|
+
const rest = all.filter((c) => !picked.includes(c.name));
|
|
225
|
+
return [...chosen, ...rest].slice(0, tiles);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** Latest-picture fallback: refresh every 2 s. The tick is part of the address so the browser never reuses a stale frame. */
|
|
229
|
+
export const STILL_REFRESH_MS = 2000;
|
|
230
|
+
|
|
231
|
+
// --------------------------------------------------------------------------- engines / health
|
|
232
|
+
|
|
233
|
+
export type TEngineStatus = "online" | "offline" | "never-connected";
|
|
234
|
+
|
|
235
|
+
export function engineStatusView(status: string | undefined) {
|
|
236
|
+
switch (status) {
|
|
237
|
+
case "online":
|
|
238
|
+
return { title: "Online", color: "success", help: "The engine is connected and sending pictures and events." };
|
|
239
|
+
case "offline":
|
|
240
|
+
return { title: "Offline", color: "error", help: "The engine was connected before but is not now. Check the box at the site has power and internet." };
|
|
241
|
+
default:
|
|
242
|
+
return { title: "Never connected", color: "warning", help: "This engine has not connected yet. Run the install command on the box at the site." };
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function lastSeenText(lastSeenAt: string | undefined | null, now = Date.now()) {
|
|
247
|
+
if (!lastSeenAt) return "Never";
|
|
248
|
+
const t = new Date(lastSeenAt).getTime();
|
|
249
|
+
if (Number.isNaN(t)) return "Unknown";
|
|
250
|
+
const s = Math.max(0, Math.round((now - t) / 1000));
|
|
251
|
+
if (s < 60) return "Just now";
|
|
252
|
+
if (s < 3600) return `${Math.round(s / 60)} min ago`;
|
|
253
|
+
if (s < 86400) return `${Math.round(s / 3600)} h ago`;
|
|
254
|
+
return `${Math.round(s / 86400)} d ago`;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// --------------------------------------------------------------------------- clips
|
|
258
|
+
|
|
259
|
+
export const MAX_CLIP_MINUTES = 30;
|
|
260
|
+
|
|
261
|
+
/** Is [from, to] a clip the API will serve (to after from, at most 30 min)? Returns the plain-words problem or "". */
|
|
262
|
+
export function clipRangeProblem(from: string, to: string): string {
|
|
263
|
+
const a = new Date(from).getTime();
|
|
264
|
+
const b = new Date(to).getTime();
|
|
265
|
+
if (!from || !to || Number.isNaN(a) || Number.isNaN(b)) return "Pick both a start and an end time.";
|
|
266
|
+
if (b <= a) return "The end time must be after the start time.";
|
|
267
|
+
if ((b - a) / 60000 > MAX_CLIP_MINUTES) return `A clip can be at most ${MAX_CLIP_MINUTES} minutes. For longer, create an export.`;
|
|
268
|
+
return "";
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/** Shared scrubbing: slider position (0..1) -> seconds into every clip, clamped to each clip's own length. */
|
|
272
|
+
export function seekSeconds(position: number, spanSeconds: number, clipDuration: number) {
|
|
273
|
+
const want = clamp01(position) * Math.max(0, spanSeconds);
|
|
274
|
+
return Number.isFinite(clipDuration) && clipDuration > 0 ? Math.min(want, clipDuration) : want;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// --------------------------------------------------------------------------- errors in plain words
|
|
278
|
+
|
|
279
|
+
export type TCctvNotice = {
|
|
280
|
+
kind: "disabled" | "offline" | "face-off" | "denied" | "not-found" | "signed-out" | "error";
|
|
281
|
+
title: string;
|
|
282
|
+
body: string;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
/** Every refusal the API can give -> what it means and what to do next. */
|
|
286
|
+
export function cctvNotice(err: any): TCctvNotice {
|
|
287
|
+
const status = Number(err?.statusCode ?? err?.status ?? err?.response?.status ?? 0);
|
|
288
|
+
const code = String(err?.data?.code ?? err?.response?._data?.code ?? "");
|
|
289
|
+
if (code === "CCTV_ENGINE_DISABLED")
|
|
290
|
+
return { kind: "disabled", title: "CCTV Engine is switched off for this site", body: "Ask your Seven365 contact to switch CCTV Engine on for this site, then reload this page." };
|
|
291
|
+
if (code === "FACE_RECOGNITION_DISABLED")
|
|
292
|
+
return { kind: "face-off", title: "Face recognition is switched off for this site", body: "Ask your Seven365 contact to switch it on. Nothing here is lost; the face library comes back as it was." };
|
|
293
|
+
if (code === "ENGINE_OFFLINE" || status === 503)
|
|
294
|
+
return { kind: "offline", title: "The engine at the site is offline", body: "We cannot reach the box at the site right now, so live pictures, clips and settings are unavailable. Check it has power and internet; recorded events already saved still show. Try again in a minute." };
|
|
295
|
+
if (status === 401)
|
|
296
|
+
return { kind: "signed-out", title: "You have been signed out", body: "Sign in again to continue." };
|
|
297
|
+
if (status === 403)
|
|
298
|
+
return { kind: "denied", title: "You do not have permission", body: "Your role does not include this. Ask a site admin to add the CCTV Engine permission to your role." };
|
|
299
|
+
if (code === "NOT_FOUND" || status === 404)
|
|
300
|
+
return { kind: "not-found", title: "Not found", body: "This item no longer exists, or the camera was removed from the engine. Go back and pick another." };
|
|
301
|
+
const msg = String(err?.data?.message ?? "").trim();
|
|
302
|
+
return { kind: "error", title: "Something went wrong", body: `${msg ? msg + " " : ""}Check your connection and try again. If it keeps happening, tell your site admin.` };
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export const isEngineOffline = (err: any) => cctvNotice(err).kind === "offline";
|
|
306
|
+
|
|
307
|
+
// --------------------------------------------------------------------------- health
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* `GET /cctv-engines/:id/health` -> `stats` is `null` until the engine has reported once, then
|
|
311
|
+
* `{ cpuPercent, gpuPercent, detectorMs, storage: { usedMb, totalMb } | null, cameras: [{ name, fps, detectFps, online }] }`
|
|
312
|
+
* with `null` for anything the engine did not report. The screen shows "Not reported", never a made-up zero.
|
|
313
|
+
*/
|
|
314
|
+
export type THealthStats = {
|
|
315
|
+
cpuPercent: number | null;
|
|
316
|
+
gpuPercent: number | null;
|
|
317
|
+
detectorMs: number | null;
|
|
318
|
+
storage: { usedMb: number; totalMb: number } | null;
|
|
319
|
+
cameras: { name: string; fps: number | null; detectFps: number | null; online: boolean | null }[];
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
export function summariseHealth(stats: THealthStats | null | undefined): THealthStats {
|
|
323
|
+
return {
|
|
324
|
+
cpuPercent: stats?.cpuPercent ?? null,
|
|
325
|
+
gpuPercent: stats?.gpuPercent ?? null,
|
|
326
|
+
detectorMs: stats?.detectorMs ?? null,
|
|
327
|
+
storage: stats?.storage ?? null,
|
|
328
|
+
cameras: stats?.cameras ?? [],
|
|
329
|
+
};
|
|
330
|
+
}
|