@camstack/addon-benchmark 1.2.139 → 1.2.140
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/{MotionZonesSettings-knb-Okm7.mjs → MotionZonesSettings-j0THd_Ad.mjs} +55 -55
- package/dist/{PrivacyMaskSettings-DDBGGv4M.mjs → PrivacyMaskSettings-CrRAoTVY.mjs} +6 -6
- package/dist/{SceneMonitorEditor-BLM1kdJ8.mjs → SceneMonitorEditor-C6j9Fu47.mjs} +67 -67
- package/dist/_stub.js +4867 -5105
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-C5PRQj2w.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-DeiZdla6.mjs} +2 -2
- package/dist/{grid-2x2-EoHwSr9W.mjs → grid-2x2-BLrTmaY1.mjs} +1 -1
- package/dist/{hostInit-Btmn67Sh.mjs → hostInit-BFhy2HV1.mjs} +1 -1
- package/dist/{player-overlays-BQAhOa9z.mjs → player-overlays-CR2lsh-A.mjs} +4 -4
- package/dist/remoteEntry.js +1 -1
- package/dist/{cap-error-BBSYnLWU.mjs → responsive-Y7J7gtG7.mjs} +7 -7
- package/dist/{scene-monitor-copy-CA7oeljN.mjs → scene-monitor-copy-CQCHYNUK.mjs} +1 -1
- package/dist/{square-UFy8i7Y1.mjs → square-4JrrEHjL.mjs} +1 -1
- package/dist/{trash-2-DEeEfjvr.mjs → trash-2-BEMwnuoe.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-DbSBUHZM.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-DPVPT6jA.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as e, g as t, h as n, p as r, u as i, x as a } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { a as f, d as p, f as ee, i as te, l as m, n as h, o as g, r as ne, s as re, t as ie, u as _ } from "./scene-monitor-copy-
|
|
4
|
-
import { t as v } from "./trash-2-
|
|
2
|
+
import { a as o, c as s, n as c, o as l, r as u, t as d } from "./responsive-Y7J7gtG7.mjs";
|
|
3
|
+
import { a as f, d as p, f as ee, i as te, l as m, n as h, o as g, r as ne, s as re, t as ie, u as _ } from "./scene-monitor-copy-CQCHYNUK.mjs";
|
|
4
|
+
import { t as v } from "./trash-2-BEMwnuoe.mjs";
|
|
5
5
|
import { n as y, r as b, t as x } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
|
|
6
6
|
import { MaskShapeCanvas as S } from "./MaskShapeCanvas-BDvrLf-K.mjs";
|
|
7
|
-
var C =
|
|
7
|
+
var C = s("settings-2", [
|
|
8
8
|
["path", {
|
|
9
9
|
d: "M14 17H5",
|
|
10
10
|
key: "gfn3mx"
|
|
@@ -55,7 +55,7 @@ var O = "rounded border border-danger/50 bg-danger/10 px-1 py-0.5 text-[10px] fo
|
|
|
55
55
|
function k({ monitor: e, disabled: n, onDelete: r }) {
|
|
56
56
|
let i = E(e), a = D(e), [o, s] = t(null);
|
|
57
57
|
return i.length === 0 ? /* @__PURE__ */ y("p", {
|
|
58
|
-
className: `${
|
|
58
|
+
className: `${d} leading-relaxed`,
|
|
59
59
|
children: "No photographs captured yet. Press “Capture daylight” to take the one this scene will judge everything against."
|
|
60
60
|
}) : /* @__PURE__ */ y("div", {
|
|
61
61
|
className: "flex flex-col gap-2",
|
|
@@ -71,13 +71,13 @@ function k({ monitor: e, disabled: n, onDelete: r }) {
|
|
|
71
71
|
}), /* @__PURE__ */ y("ul", {
|
|
72
72
|
className: "flex flex-wrap gap-1.5",
|
|
73
73
|
children: e.tiles.map((t) => {
|
|
74
|
-
let i = `${t.stateId}:${String(t.index)}`,
|
|
74
|
+
let i = `${t.stateId}:${String(t.index)}`, c = a === 1, l = o === i;
|
|
75
75
|
return /* @__PURE__ */ b("li", {
|
|
76
76
|
className: "flex w-24 flex-col gap-1 rounded-md border border-border p-1",
|
|
77
77
|
children: [
|
|
78
78
|
/* @__PURE__ */ y(A, { reference: t.reference }),
|
|
79
79
|
/* @__PURE__ */ y("span", {
|
|
80
|
-
className: `${
|
|
80
|
+
className: `${d} tabular-nums`,
|
|
81
81
|
children: j(t.reference.capturedAt)
|
|
82
82
|
}),
|
|
83
83
|
/* @__PURE__ */ b("button", {
|
|
@@ -86,7 +86,7 @@ function k({ monitor: e, disabled: n, onDelete: r }) {
|
|
|
86
86
|
disabled: n,
|
|
87
87
|
"aria-label": `Delete the ${g(e.condition).toLowerCase()} photograph from ${j(t.reference.capturedAt)}`,
|
|
88
88
|
onClick: () => {
|
|
89
|
-
if (
|
|
89
|
+
if (c && !l) {
|
|
90
90
|
s(i);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
@@ -95,9 +95,9 @@ function k({ monitor: e, disabled: n, onDelete: r }) {
|
|
|
95
95
|
index: t.index
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
|
-
children: [/* @__PURE__ */ y(v, { className: "mr-1 inline h-3 w-3" }),
|
|
98
|
+
children: [/* @__PURE__ */ y(v, { className: "mr-1 inline h-3 w-3" }), l ? "Confirm" : "Delete"]
|
|
99
99
|
}),
|
|
100
|
-
|
|
100
|
+
l && /* @__PURE__ */ y("p", {
|
|
101
101
|
className: "text-[10px] leading-snug text-warning",
|
|
102
102
|
children: "This is the only photograph this scene has. Delete it and the scene no longer knows what normal looks like — it stops judging until you capture again."
|
|
103
103
|
})
|
|
@@ -155,13 +155,13 @@ function B(e) {
|
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
158
|
-
let [a, o] = t(() => B(e)), [s,
|
|
158
|
+
let [a, o] = t(() => B(e)), [s, c] = t(!1);
|
|
159
159
|
i(() => {
|
|
160
160
|
s || o(B(e));
|
|
161
161
|
}, [e, s]);
|
|
162
|
-
let
|
|
163
|
-
|
|
164
|
-
},
|
|
162
|
+
let l = (e) => {
|
|
163
|
+
c(!1), r(e);
|
|
164
|
+
}, u = (t) => e.check.mode === "similarity" ? {
|
|
165
165
|
mode: "similarity",
|
|
166
166
|
threshold: t.threshold ?? e.check.threshold,
|
|
167
167
|
hysteresisCount: t.hysteresisCount ?? e.check.hysteresisCount
|
|
@@ -189,14 +189,14 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
189
189
|
value: a.label,
|
|
190
190
|
disabled: n,
|
|
191
191
|
className: M,
|
|
192
|
-
onFocus: () =>
|
|
192
|
+
onFocus: () => c(!0),
|
|
193
193
|
onChange: (e) => o((t) => ({
|
|
194
194
|
...t,
|
|
195
195
|
label: e.target.value
|
|
196
196
|
})),
|
|
197
197
|
onBlur: () => {
|
|
198
198
|
let t = a.label.trim();
|
|
199
|
-
t.length > 0 && t !== e.label ?
|
|
199
|
+
t.length > 0 && t !== e.label ? l({ label: t }) : c(!1);
|
|
200
200
|
}
|
|
201
201
|
})]
|
|
202
202
|
}),
|
|
@@ -206,14 +206,14 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
206
206
|
type: "checkbox",
|
|
207
207
|
checked: e.enabled,
|
|
208
208
|
disabled: n,
|
|
209
|
-
onChange: (e) =>
|
|
209
|
+
onChange: (e) => l({ enabled: e.target.checked })
|
|
210
210
|
}), /* @__PURE__ */ y("span", {
|
|
211
211
|
className: N,
|
|
212
212
|
children: "Watching"
|
|
213
213
|
})]
|
|
214
214
|
}),
|
|
215
215
|
/* @__PURE__ */ y("p", {
|
|
216
|
-
className:
|
|
216
|
+
className: d,
|
|
217
217
|
children: "Turned off, the scene keeps its region, its references and its flag — it simply stops checking. Nothing is lost by pausing one for a while."
|
|
218
218
|
}),
|
|
219
219
|
/* @__PURE__ */ b("label", {
|
|
@@ -227,7 +227,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
227
227
|
className: M,
|
|
228
228
|
onChange: (e) => {
|
|
229
229
|
let t = e.target.value;
|
|
230
|
-
(t === "periodic" || t === "on-motion" || t === "both") &&
|
|
230
|
+
(t === "periodic" || t === "on-motion" || t === "both") && l({ triggerMode: t });
|
|
231
231
|
},
|
|
232
232
|
children: [
|
|
233
233
|
/* @__PURE__ */ y("option", {
|
|
@@ -246,7 +246,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
246
246
|
})]
|
|
247
247
|
}),
|
|
248
248
|
/* @__PURE__ */ y("p", {
|
|
249
|
-
className:
|
|
249
|
+
className: d,
|
|
250
250
|
children: R[e.triggerMode]
|
|
251
251
|
}),
|
|
252
252
|
/* @__PURE__ */ b("label", {
|
|
@@ -261,19 +261,19 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
261
261
|
value: a.checkIntervalSec,
|
|
262
262
|
disabled: n,
|
|
263
263
|
className: M,
|
|
264
|
-
onFocus: () =>
|
|
264
|
+
onFocus: () => c(!0),
|
|
265
265
|
onChange: (e) => o((t) => ({
|
|
266
266
|
...t,
|
|
267
267
|
checkIntervalSec: Number(e.target.value) || 0
|
|
268
268
|
})),
|
|
269
269
|
onBlur: () => {
|
|
270
270
|
let t = H(a.checkIntervalSec, I, L);
|
|
271
|
-
t === e.checkIntervalSec ?
|
|
271
|
+
t === e.checkIntervalSec ? c(!1) : l({ checkIntervalSec: t });
|
|
272
272
|
}
|
|
273
273
|
})]
|
|
274
274
|
}),
|
|
275
275
|
/* @__PURE__ */ y("p", {
|
|
276
|
-
className:
|
|
276
|
+
className: d,
|
|
277
277
|
children: "60 s suits “is the bin still out”. Every check costs one photograph and one encode, so going below about 30 s buys latency you almost never need and multiplies the cost by the number of scenes you own."
|
|
278
278
|
})
|
|
279
279
|
]
|
|
@@ -300,16 +300,16 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
300
300
|
step: .01,
|
|
301
301
|
value: a.threshold,
|
|
302
302
|
disabled: n,
|
|
303
|
-
onFocus: () =>
|
|
303
|
+
onFocus: () => c(!0),
|
|
304
304
|
onChange: (e) => o((t) => ({
|
|
305
305
|
...t,
|
|
306
306
|
threshold: Number(e.target.value)
|
|
307
307
|
})),
|
|
308
308
|
onMouseUp: () => {
|
|
309
|
-
a.threshold === p ?
|
|
309
|
+
a.threshold === p ? c(!1) : l({ check: u({ threshold: a.threshold }) });
|
|
310
310
|
},
|
|
311
311
|
onBlur: () => {
|
|
312
|
-
a.threshold === p ?
|
|
312
|
+
a.threshold === p ? c(!1) : l({ check: u({ threshold: a.threshold }) });
|
|
313
313
|
}
|
|
314
314
|
})]
|
|
315
315
|
}), /* @__PURE__ */ y("p", {
|
|
@@ -328,19 +328,19 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
328
328
|
value: a.hysteresisCount,
|
|
329
329
|
disabled: n,
|
|
330
330
|
className: M,
|
|
331
|
-
onFocus: () =>
|
|
331
|
+
onFocus: () => c(!0),
|
|
332
332
|
onChange: (e) => o((t) => ({
|
|
333
333
|
...t,
|
|
334
334
|
hysteresisCount: Number(e.target.value) || 1
|
|
335
335
|
})),
|
|
336
336
|
onBlur: () => {
|
|
337
337
|
let t = H(a.hysteresisCount, 1, 10);
|
|
338
|
-
t === e.check.hysteresisCount ?
|
|
338
|
+
t === e.check.hysteresisCount ? c(!1) : l({ check: u({ hysteresisCount: t }) });
|
|
339
339
|
}
|
|
340
340
|
})]
|
|
341
341
|
}),
|
|
342
342
|
/* @__PURE__ */ y("p", {
|
|
343
|
-
className:
|
|
343
|
+
className: d,
|
|
344
344
|
children: "One bad photograph must never be able to flip a scene. 3 agreeing checks at 60 s is about four minutes of latency and is what makes the answer trustworthy — leaving a state costs exactly the same as entering one."
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ b("label", {
|
|
@@ -355,19 +355,19 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
355
355
|
value: a.quietSeconds,
|
|
356
356
|
disabled: n,
|
|
357
357
|
className: M,
|
|
358
|
-
onFocus: () =>
|
|
358
|
+
onFocus: () => c(!0),
|
|
359
359
|
onChange: (e) => o((t) => ({
|
|
360
360
|
...t,
|
|
361
361
|
quietSeconds: Number(e.target.value) || 0
|
|
362
362
|
})),
|
|
363
363
|
onBlur: () => {
|
|
364
364
|
let t = H(a.quietSeconds, 0, 3600);
|
|
365
|
-
t === e.quietSeconds ?
|
|
365
|
+
t === e.quietSeconds ? c(!1) : l({ quietSeconds: t });
|
|
366
366
|
}
|
|
367
367
|
})]
|
|
368
368
|
}),
|
|
369
369
|
/* @__PURE__ */ y("p", {
|
|
370
|
-
className:
|
|
370
|
+
className: d,
|
|
371
371
|
children: "A check taken while something is moving is a photograph of the van parked in front of the bin, so it is discarded rather than merely delayed. 0 disables the gate."
|
|
372
372
|
}),
|
|
373
373
|
/* @__PURE__ */ b("label", {
|
|
@@ -382,19 +382,19 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
382
382
|
value: a.minObservationSpacingSec,
|
|
383
383
|
disabled: n,
|
|
384
384
|
className: M,
|
|
385
|
-
onFocus: () =>
|
|
385
|
+
onFocus: () => c(!0),
|
|
386
386
|
onChange: (e) => o((t) => ({
|
|
387
387
|
...t,
|
|
388
388
|
minObservationSpacingSec: Number(e.target.value) || 0
|
|
389
389
|
})),
|
|
390
390
|
onBlur: () => {
|
|
391
391
|
let t = H(a.minObservationSpacingSec, 0, 3600);
|
|
392
|
-
t === e.minObservationSpacingSec ?
|
|
392
|
+
t === e.minObservationSpacingSec ? c(!1) : l({ minObservationSpacingSec: t });
|
|
393
393
|
}
|
|
394
394
|
})]
|
|
395
395
|
}),
|
|
396
396
|
/* @__PURE__ */ y("p", {
|
|
397
|
-
className:
|
|
397
|
+
className: d,
|
|
398
398
|
children: "Spreads the agreeing checks over real time instead of letting three adjacent polls inside one long occlusion be mistaken for three independent opinions."
|
|
399
399
|
})
|
|
400
400
|
]
|
|
@@ -417,7 +417,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
417
417
|
className: M,
|
|
418
418
|
onChange: (e) => {
|
|
419
419
|
let t = e.target.value;
|
|
420
|
-
(t === "skip" || t === "judge-anyway") &&
|
|
420
|
+
(t === "skip" || t === "judge-anyway") && l({ onUncoveredCondition: t });
|
|
421
421
|
},
|
|
422
422
|
children: [/* @__PURE__ */ y("option", {
|
|
423
423
|
value: "skip",
|
|
@@ -429,7 +429,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
429
429
|
})]
|
|
430
430
|
}),
|
|
431
431
|
/* @__PURE__ */ y("p", {
|
|
432
|
-
className:
|
|
432
|
+
className: d,
|
|
433
433
|
children: z[e.onUncoveredCondition]
|
|
434
434
|
})
|
|
435
435
|
]
|
|
@@ -452,7 +452,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
452
452
|
className: M,
|
|
453
453
|
onChange: (e) => {
|
|
454
454
|
let t = e.target.value;
|
|
455
|
-
(t === "latched" || t === "live") &&
|
|
455
|
+
(t === "latched" || t === "live") && l({ emit: t });
|
|
456
456
|
},
|
|
457
457
|
children: [/* @__PURE__ */ y("option", {
|
|
458
458
|
value: "latched",
|
|
@@ -464,7 +464,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
464
464
|
})]
|
|
465
465
|
}),
|
|
466
466
|
/* @__PURE__ */ y("p", {
|
|
467
|
-
className:
|
|
467
|
+
className: d,
|
|
468
468
|
children: "“Is the bin gone” is a flag: you want to be told once and still see it later. “Is the gate open” is a live state."
|
|
469
469
|
}),
|
|
470
470
|
/* @__PURE__ */ b("label", {
|
|
@@ -473,14 +473,14 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
473
473
|
type: "checkbox",
|
|
474
474
|
checked: e.autoRestore,
|
|
475
475
|
disabled: n,
|
|
476
|
-
onChange: (e) =>
|
|
476
|
+
onChange: (e) => l({ autoRestore: e.target.checked })
|
|
477
477
|
}), /* @__PURE__ */ y("span", {
|
|
478
478
|
className: N,
|
|
479
479
|
children: "Clear the flag by itself when things look normal again"
|
|
480
480
|
})]
|
|
481
481
|
}),
|
|
482
482
|
/* @__PURE__ */ y("p", {
|
|
483
|
-
className:
|
|
483
|
+
className: d,
|
|
484
484
|
children: "Off by default, so an alarm never silently clears itself. The “back to normal” moment is recorded either way, so an automation can still react to it."
|
|
485
485
|
})
|
|
486
486
|
]
|
|
@@ -498,7 +498,7 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
498
498
|
type: "checkbox",
|
|
499
499
|
checked: f,
|
|
500
500
|
disabled: n || a.confirmPrompt.trim().length === 0,
|
|
501
|
-
onChange: (e) =>
|
|
501
|
+
onChange: (e) => l(e.target.checked ? { confirm: {
|
|
502
502
|
...U(a.confirmPrompt.trim()),
|
|
503
503
|
enabled: !0
|
|
504
504
|
} } : { confirm: null })
|
|
@@ -518,22 +518,22 @@ function V({ monitor: e, disabled: n, onPatch: r }) {
|
|
|
518
518
|
placeholder: "e.g. Is the wheelie bin still there?",
|
|
519
519
|
disabled: n,
|
|
520
520
|
className: M,
|
|
521
|
-
onFocus: () =>
|
|
521
|
+
onFocus: () => c(!0),
|
|
522
522
|
onChange: (e) => o((t) => ({
|
|
523
523
|
...t,
|
|
524
524
|
confirmPrompt: e.target.value
|
|
525
525
|
})),
|
|
526
526
|
onBlur: () => {
|
|
527
527
|
let t = a.confirmPrompt.trim();
|
|
528
|
-
t.length > 0 && t !== e.confirm?.prompt ?
|
|
528
|
+
t.length > 0 && t !== e.confirm?.prompt ? l({ confirm: {
|
|
529
529
|
...U(t),
|
|
530
530
|
enabled: f
|
|
531
|
-
} }) :
|
|
531
|
+
} }) : c(!1);
|
|
532
532
|
}
|
|
533
533
|
})]
|
|
534
534
|
}),
|
|
535
535
|
/* @__PURE__ */ b("p", {
|
|
536
|
-
className:
|
|
536
|
+
className: d,
|
|
537
537
|
children: [
|
|
538
538
|
"The model is asked ",
|
|
539
539
|
/* @__PURE__ */ y("strong", { children: "only" }),
|
|
@@ -566,20 +566,20 @@ var W = "rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-m
|
|
|
566
566
|
unknown: "border-border bg-surface text-foreground-subtle"
|
|
567
567
|
}, J = .8, Y = 3;
|
|
568
568
|
function X({ deviceId: a }) {
|
|
569
|
-
let
|
|
569
|
+
let s = u(l().trpcClient, a), p = o(s?.state.sceneMonitor), m = re(a, { width: 640 }), [w, T] = t(null), [E, D] = t(!1), [O, A] = t(null), [j, M] = t(null), [N, P] = t(null), [F, I] = t(null), [L, R] = t(!1), [z, B] = t(null), [H, U] = t(""), X = n(!0);
|
|
570
570
|
i(() => (X.current = !0, () => {
|
|
571
571
|
X.current = !1;
|
|
572
572
|
}), []);
|
|
573
573
|
let Z = e(async () => {
|
|
574
|
-
if (
|
|
575
|
-
let e = await
|
|
574
|
+
if (s) try {
|
|
575
|
+
let e = await s.sceneMonitor?.listScenes({});
|
|
576
576
|
if (!X.current) return;
|
|
577
577
|
e && T(e);
|
|
578
578
|
} catch (e) {
|
|
579
579
|
if (!X.current) return;
|
|
580
|
-
|
|
580
|
+
c(e) ? D(!0) : M(e instanceof Error ? e.message : String(e));
|
|
581
581
|
}
|
|
582
|
-
}, [
|
|
582
|
+
}, [s]);
|
|
583
583
|
i(() => {
|
|
584
584
|
T(null), D(!1), M(null), Z();
|
|
585
585
|
}, [Z]);
|
|
@@ -610,16 +610,16 @@ function X({ deviceId: a }) {
|
|
|
610
610
|
B(t);
|
|
611
611
|
return;
|
|
612
612
|
}
|
|
613
|
-
$(`roi-${String(e)}`, async () =>
|
|
613
|
+
$(`roi-${String(e)}`, async () => s?.sceneMonitor?.updateScene({
|
|
614
614
|
monitorId: String(e),
|
|
615
615
|
patch: { roi: t }
|
|
616
616
|
}));
|
|
617
617
|
}
|
|
618
|
-
}, [
|
|
618
|
+
}, [s, $]), ce = e((e) => {
|
|
619
619
|
e.kind === "rect" && B(e);
|
|
620
620
|
}, []), le = e(async () => {
|
|
621
621
|
z === null || H.trim().length === 0 || (await $("create", async () => {
|
|
622
|
-
await
|
|
622
|
+
await s?.sceneMonitor?.createScene({
|
|
623
623
|
label: H.trim(),
|
|
624
624
|
roi: z,
|
|
625
625
|
check: {
|
|
@@ -630,19 +630,19 @@ function X({ deviceId: a }) {
|
|
|
630
630
|
});
|
|
631
631
|
}), B(null), U(""), R(!1));
|
|
632
632
|
}, [
|
|
633
|
-
|
|
633
|
+
s,
|
|
634
634
|
z,
|
|
635
635
|
H,
|
|
636
636
|
$
|
|
637
637
|
]);
|
|
638
|
-
return
|
|
638
|
+
return s ? /* @__PURE__ */ y("div", {
|
|
639
639
|
className: "flex flex-col gap-3",
|
|
640
640
|
children: E ? /* @__PURE__ */ y("p", {
|
|
641
|
-
className: `${
|
|
641
|
+
className: `${d} leading-relaxed`,
|
|
642
642
|
children: "Scene monitoring is not available for this camera."
|
|
643
643
|
}) : /* @__PURE__ */ b(x, { children: [
|
|
644
644
|
/* @__PURE__ */ y("p", {
|
|
645
|
-
className: `${
|
|
645
|
+
className: `${d} leading-relaxed`,
|
|
646
646
|
children: "A scene watches one region of this camera and tells you when it stops looking like the picture you captured. Draw a box around the thing you care about — a wheelie bin, a gate, a parking space — then capture what “normal” looks like. Daylight is enough to start: the night reference is optional, and without it the scene simply sits the infrared hours out instead of reporting a problem."
|
|
647
647
|
}),
|
|
648
648
|
/* @__PURE__ */ y("div", {
|
|
@@ -716,7 +716,7 @@ function X({ deviceId: a }) {
|
|
|
716
716
|
children: j
|
|
717
717
|
}),
|
|
718
718
|
Q.length === 0 ? /* @__PURE__ */ y("p", {
|
|
719
|
-
className: `${
|
|
719
|
+
className: `${d} leading-relaxed`,
|
|
720
720
|
children: "No scenes on this camera yet."
|
|
721
721
|
}) : /* @__PURE__ */ y("ul", {
|
|
722
722
|
className: "flex flex-col gap-2",
|
|
@@ -738,17 +738,17 @@ function X({ deviceId: a }) {
|
|
|
738
738
|
})]
|
|
739
739
|
}),
|
|
740
740
|
/* @__PURE__ */ y("p", {
|
|
741
|
-
className: `${
|
|
741
|
+
className: `${d} leading-relaxed`,
|
|
742
742
|
children: f(e, ae)
|
|
743
743
|
}),
|
|
744
744
|
/* @__PURE__ */ y("p", {
|
|
745
|
-
className: `${
|
|
745
|
+
className: `${d} tabular-nums`,
|
|
746
746
|
children: ne(e)
|
|
747
747
|
}),
|
|
748
748
|
/* @__PURE__ */ y(k, {
|
|
749
749
|
monitor: e,
|
|
750
750
|
disabled: O !== null,
|
|
751
|
-
onDelete: ({ stateId: t, index: n }) => void $(`refdel-${e.id}-${t}-${String(n)}`, async () =>
|
|
751
|
+
onDelete: ({ stateId: t, index: n }) => void $(`refdel-${e.id}-${t}-${String(n)}`, async () => s.sceneMonitor?.deleteReference({
|
|
752
752
|
monitorId: e.id,
|
|
753
753
|
stateId: t,
|
|
754
754
|
index: n
|
|
@@ -764,7 +764,7 @@ function X({ deviceId: a }) {
|
|
|
764
764
|
className: W,
|
|
765
765
|
disabled: O !== null,
|
|
766
766
|
title: n ? "Optional. Without a night reference the checks in infrared are simply skipped — the scene keeps working in daylight and nothing is reported as broken." : `Take a fresh photo now and store it as the ${g(t).toLowerCase()} reference`,
|
|
767
|
-
onClick: () => void $(`cap-${e.id}-${t}`, async () =>
|
|
767
|
+
onClick: () => void $(`cap-${e.id}-${t}`, async () => s.sceneMonitor?.captureReference({
|
|
768
768
|
monitorId: e.id,
|
|
769
769
|
condition: t
|
|
770
770
|
})),
|
|
@@ -784,14 +784,14 @@ function X({ deviceId: a }) {
|
|
|
784
784
|
className: G,
|
|
785
785
|
disabled: O !== null || e.states.length === 0,
|
|
786
786
|
title: "Clear the flag and re-photograph what normal looks like right now",
|
|
787
|
-
onClick: () => void $(`reset-${e.id}`, async () =>
|
|
787
|
+
onClick: () => void $(`reset-${e.id}`, async () => s.sceneMonitor?.resetScene({ monitorId: e.id })),
|
|
788
788
|
children: [/* @__PURE__ */ y(_, { className: "mr-1 inline h-3 w-3" }), "Reset"]
|
|
789
789
|
}),
|
|
790
790
|
/* @__PURE__ */ y("button", {
|
|
791
791
|
type: "button",
|
|
792
792
|
className: W,
|
|
793
793
|
disabled: O !== null,
|
|
794
|
-
onClick: () => void $(`check-${e.id}`, async () =>
|
|
794
|
+
onClick: () => void $(`check-${e.id}`, async () => s.sceneMonitor?.recheckNow({ monitorId: e.id })),
|
|
795
795
|
children: "Check now"
|
|
796
796
|
}),
|
|
797
797
|
/* @__PURE__ */ b("button", {
|
|
@@ -807,7 +807,7 @@ function X({ deviceId: a }) {
|
|
|
807
807
|
type: "button",
|
|
808
808
|
className: K,
|
|
809
809
|
disabled: O !== null,
|
|
810
|
-
onClick: () => void $(`del-${e.id}`, async () =>
|
|
810
|
+
onClick: () => void $(`del-${e.id}`, async () => s.sceneMonitor?.deleteScene({ monitorId: e.id })),
|
|
811
811
|
children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
|
|
812
812
|
})
|
|
813
813
|
]
|
|
@@ -815,7 +815,7 @@ function X({ deviceId: a }) {
|
|
|
815
815
|
F === e.id && /* @__PURE__ */ y(V, {
|
|
816
816
|
monitor: e,
|
|
817
817
|
disabled: O !== null,
|
|
818
|
-
onPatch: (t) => void $(`tune-${e.id}`, async () =>
|
|
818
|
+
onPatch: (t) => void $(`tune-${e.id}`, async () => s.sceneMonitor?.updateScene({
|
|
819
819
|
monitorId: e.id,
|
|
820
820
|
patch: t
|
|
821
821
|
}))
|