@camstack/addon-benchmark 1.2.134 → 1.2.136

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.
Files changed (18) hide show
  1. package/dist/{MotionZonesSettings-d8G5XRsb.mjs → MotionZonesSettings-FJcyPXQm.mjs} +55 -55
  2. package/dist/{PrivacyMaskSettings-BH3EYBwB.mjs → PrivacyMaskSettings-CQS3x7Sb.mjs} +6 -6
  3. package/dist/{SceneMonitorEditor-Ctl3JRhw.mjs → SceneMonitorEditor-BfRNmfzk.mjs} +67 -67
  4. package/dist/_stub.js +6173 -5307
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-B7lb4LpK.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CNwgdp9r.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CVijcfdt.mjs +26 -0
  7. package/dist/addon-benchmark.css +1 -1
  8. package/dist/{responsive-SfZES1TW.mjs → cap-error-COz9tCrH.mjs} +8 -8
  9. package/dist/{grid-2x2-CNNcuc4s.mjs → grid-2x2-CSTAAe4Z.mjs} +1 -1
  10. package/dist/{hostInit-KLir2y5C.mjs → hostInit-BUTS2uRI.mjs} +2 -2
  11. package/dist/{player-overlays-BEftkTKN.mjs → player-overlays-DWmuijTw.mjs} +4 -4
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{scene-monitor-copy-BztCg02X.mjs → scene-monitor-copy-Cb2__Tru.mjs} +1 -1
  14. package/dist/{square-57m8G-UA.mjs → square-KgLQa1_n.mjs} +1 -1
  15. package/dist/{trash-2-ChL7ccAZ.mjs → trash-2-B27MLhxu.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CLCTtFQk.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C4OOrn9J.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CK3TmJRu.mjs +0 -26
@@ -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 { a as o, c as s, n as c, o as l, r as u, t as d } from "./responsive-SfZES1TW.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-BztCg02X.mjs";
4
- import { t as v } from "./trash-2-ChL7ccAZ.mjs";
2
+ import { f as o, l as s, o as c, s as l, t as u, u as d } from "./cap-error-COz9tCrH.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-Cb2__Tru.mjs";
4
+ import { t as v } from "./trash-2-B27MLhxu.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 = s("settings-2", [
7
+ var C = o("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: `${d} leading-relaxed`,
58
+ className: `${c} 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)}`, c = a === 1, l = o === i;
74
+ let i = `${t.stateId}:${String(t.index)}`, l = a === 1, u = 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: `${d} tabular-nums`,
80
+ className: `${c} 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 (c && !l) {
89
+ if (l && !u) {
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" }), l ? "Confirm" : "Delete"]
98
+ children: [/* @__PURE__ */ y(v, { className: "mr-1 inline h-3 w-3" }), u ? "Confirm" : "Delete"]
99
99
  }),
100
- l && /* @__PURE__ */ y("p", {
100
+ u && /* @__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, c] = t(!1);
158
+ let [a, o] = t(() => B(e)), [s, l] = t(!1);
159
159
  i(() => {
160
160
  s || o(B(e));
161
161
  }, [e, s]);
162
- let l = (e) => {
163
- c(!1), r(e);
164
- }, u = (t) => e.check.mode === "similarity" ? {
162
+ let u = (e) => {
163
+ l(!1), r(e);
164
+ }, d = (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: () => c(!0),
192
+ onFocus: () => l(!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 ? l({ label: t }) : c(!1);
199
+ t.length > 0 && t !== e.label ? u({ label: t }) : l(!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) => l({ enabled: e.target.checked })
209
+ onChange: (e) => u({ 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: d,
216
+ className: c,
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") && l({ triggerMode: t });
230
+ (t === "periodic" || t === "on-motion" || t === "both") && u({ 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: d,
249
+ className: c,
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: () => c(!0),
264
+ onFocus: () => l(!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 ? c(!1) : l({ checkIntervalSec: t });
271
+ t === e.checkIntervalSec ? l(!1) : u({ checkIntervalSec: t });
272
272
  }
273
273
  })]
274
274
  }),
275
275
  /* @__PURE__ */ y("p", {
276
- className: d,
276
+ className: c,
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: () => c(!0),
303
+ onFocus: () => l(!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 ? c(!1) : l({ check: u({ threshold: a.threshold }) });
309
+ a.threshold === p ? l(!1) : u({ check: d({ threshold: a.threshold }) });
310
310
  },
311
311
  onBlur: () => {
312
- a.threshold === p ? c(!1) : l({ check: u({ threshold: a.threshold }) });
312
+ a.threshold === p ? l(!1) : u({ check: d({ 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: () => c(!0),
331
+ onFocus: () => l(!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 ? c(!1) : l({ check: u({ hysteresisCount: t }) });
338
+ t === e.check.hysteresisCount ? l(!1) : u({ check: d({ hysteresisCount: t }) });
339
339
  }
340
340
  })]
341
341
  }),
342
342
  /* @__PURE__ */ y("p", {
343
- className: d,
343
+ className: c,
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: () => c(!0),
358
+ onFocus: () => l(!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 ? c(!1) : l({ quietSeconds: t });
365
+ t === e.quietSeconds ? l(!1) : u({ quietSeconds: t });
366
366
  }
367
367
  })]
368
368
  }),
369
369
  /* @__PURE__ */ y("p", {
370
- className: d,
370
+ className: c,
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: () => c(!0),
385
+ onFocus: () => l(!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 ? c(!1) : l({ minObservationSpacingSec: t });
392
+ t === e.minObservationSpacingSec ? l(!1) : u({ minObservationSpacingSec: t });
393
393
  }
394
394
  })]
395
395
  }),
396
396
  /* @__PURE__ */ y("p", {
397
- className: d,
397
+ className: c,
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") && l({ onUncoveredCondition: t });
420
+ (t === "skip" || t === "judge-anyway") && u({ 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: d,
432
+ className: c,
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") && l({ emit: t });
455
+ (t === "latched" || t === "live") && u({ 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: d,
467
+ className: c,
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) => l({ autoRestore: e.target.checked })
476
+ onChange: (e) => u({ 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: d,
483
+ className: c,
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) => l(e.target.checked ? { confirm: {
501
+ onChange: (e) => u(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: () => c(!0),
521
+ onFocus: () => l(!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 ? l({ confirm: {
528
+ t.length > 0 && t !== e.confirm?.prompt ? u({ confirm: {
529
529
  ...U(t),
530
530
  enabled: f
531
- } }) : c(!1);
531
+ } }) : l(!1);
532
532
  }
533
533
  })]
534
534
  }),
535
535
  /* @__PURE__ */ b("p", {
536
- className: d,
536
+ className: c,
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 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);
569
+ let o = l(d().trpcClient, a), p = s(o?.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 (s) try {
575
- let e = await s.sceneMonitor?.listScenes({});
574
+ if (o) try {
575
+ let e = await o.sceneMonitor?.listScenes({});
576
576
  if (!X.current) return;
577
577
  e && T(e);
578
578
  } catch (e) {
579
579
  if (!X.current) return;
580
- c(e) ? D(!0) : M(e instanceof Error ? e.message : String(e));
580
+ u(e) ? D(!0) : M(e instanceof Error ? e.message : String(e));
581
581
  }
582
- }, [s]);
582
+ }, [o]);
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 () => s?.sceneMonitor?.updateScene({
613
+ $(`roi-${String(e)}`, async () => o?.sceneMonitor?.updateScene({
614
614
  monitorId: String(e),
615
615
  patch: { roi: t }
616
616
  }));
617
617
  }
618
- }, [s, $]), ce = e((e) => {
618
+ }, [o, $]), 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 s?.sceneMonitor?.createScene({
622
+ await o?.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
- s,
633
+ o,
634
634
  z,
635
635
  H,
636
636
  $
637
637
  ]);
638
- return s ? /* @__PURE__ */ y("div", {
638
+ return o ? /* @__PURE__ */ y("div", {
639
639
  className: "flex flex-col gap-3",
640
640
  children: E ? /* @__PURE__ */ y("p", {
641
- className: `${d} leading-relaxed`,
641
+ className: `${c} 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: `${d} leading-relaxed`,
645
+ className: `${c} 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: `${d} leading-relaxed`,
719
+ className: `${c} 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: `${d} leading-relaxed`,
741
+ className: `${c} leading-relaxed`,
742
742
  children: f(e, ae)
743
743
  }),
744
744
  /* @__PURE__ */ y("p", {
745
- className: `${d} tabular-nums`,
745
+ className: `${c} 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 () => s.sceneMonitor?.deleteReference({
751
+ onDelete: ({ stateId: t, index: n }) => void $(`refdel-${e.id}-${t}-${String(n)}`, async () => o.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 () => s.sceneMonitor?.captureReference({
767
+ onClick: () => void $(`cap-${e.id}-${t}`, async () => o.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 () => s.sceneMonitor?.resetScene({ monitorId: e.id })),
787
+ onClick: () => void $(`reset-${e.id}`, async () => o.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 () => s.sceneMonitor?.recheckNow({ monitorId: e.id })),
794
+ onClick: () => void $(`check-${e.id}`, async () => o.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 () => s.sceneMonitor?.deleteScene({ monitorId: e.id })),
810
+ onClick: () => void $(`del-${e.id}`, async () => o.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 () => s.sceneMonitor?.updateScene({
818
+ onPatch: (t) => void $(`tune-${e.id}`, async () => o.sceneMonitor?.updateScene({
819
819
  monitorId: e.id,
820
820
  patch: t
821
821
  }))