@camstack/addon-benchmark 1.2.194 → 1.2.196

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 (21) hide show
  1. package/dist/{MotionZonesSettings-DgxFIEOT.mjs → MotionZonesSettings-YVl_5ifN.mjs} +19 -19
  2. package/dist/{PrivacyMaskSettings-C6LOtk8a.mjs → PrivacyMaskSettings-IsSFUgZT.mjs} +6 -6
  3. package/dist/{SceneMonitorEditor-af5EWFF8.mjs → SceneMonitorEditor-C6CN_Dd5.mjs} +304 -304
  4. package/dist/_stub.js +5852 -8046
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-BxlQX0Er.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-Dh7yN6kA.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BjHHTPgv.mjs +26 -0
  7. package/dist/addon-benchmark.css +1 -1
  8. package/dist/{hostInit-C2lWuMo-.mjs → hostInit-CSIVvOiW.mjs} +2 -2
  9. package/dist/index.js +47 -1797
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +43 -1800
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/{player-overlays-Bd3_pIO9.mjs → player-overlays-CYe1ImiF.mjs} +5 -5
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-VI5WFdFh.mjs → responsive-8b-T948b.mjs} +3 -3
  16. package/dist/{scene-monitor-copy-D57V9t_V.mjs → scene-monitor-copy-BMIeJLtU.mjs} +1 -1
  17. package/dist/{square-EOouUJm_.mjs → square-m9Cdamuf.mjs} +1 -1
  18. package/dist/{trash-2-pWdn99SC.mjs → trash-2-CWiiPcjD.mjs} +1 -1
  19. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C8X7xy7Z.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-1YmYXS3x.mjs} +1 -1
  20. package/package.json +3 -3
  21. package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-xRXRRMbm.mjs +0 -26
@@ -1,9 +1,9 @@
1
1
  import { b as e, c as t, g as n, h as r, m as i, u as a } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-BLRSn-wJ.mjs";
2
- import { a as o, n as s, r as c, s as l, t as u } from "./responsive-VI5WFdFh.mjs";
3
- import { n as d, t as f } from "./player-overlays-Bd3_pIO9.mjs";
2
+ import { d as o, f as s, g as c, l, m as u } from "./responsive-8b-T948b.mjs";
3
+ import { n as d, t as f } from "./player-overlays-CYe1ImiF.mjs";
4
4
  import { n as p, r as m, t as ee } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs";
5
5
  import { MaskShapeCanvas as h } from "./MaskShapeCanvas-7LKD4bOR.mjs";
6
- var g = l("grid-2x2", [
6
+ var g = c("grid-2x2", [
7
7
  ["path", {
8
8
  d: "M12 3v18",
9
9
  key: "108xh3"
@@ -62,17 +62,17 @@ function E(e, t, n, r) {
62
62
  return o;
63
63
  }
64
64
  function D({ deviceId: e }) {
65
- let l = c(o().trpcClient, e), [w, D] = n(null), [O, k] = n(!1), [A, j] = n(null), [M, N] = n(null), [P, F] = n(y), [I, L] = n(!1), [R, z] = n(!1), B = r(!1);
65
+ let c = s(u().trpcClient, e), [w, D] = n(null), [O, k] = n(!1), [A, j] = n(null), [M, N] = n(null), [P, F] = n(y), [I, L] = n(!1), [R, z] = n(!1), B = r(!1);
66
66
  a(() => {
67
- if (!l) return;
67
+ if (!c) return;
68
68
  let e = !1;
69
69
  return B.current = !1, D(null), k(!1), j(null), N(null), F(y), z(!1), (async () => {
70
70
  try {
71
- let t = await l.motionZones?.getOptions({});
71
+ let t = await c.motionZones?.getOptions({});
72
72
  if (e) return;
73
73
  if (!t) throw Error("device proxy not ready");
74
74
  if (D(t), B.current) return;
75
- let n = await l.motionZones?.getStatus({});
75
+ let n = await c.motionZones?.getStatus({});
76
76
  if (e) return;
77
77
  if (!n) throw Error("device proxy not ready");
78
78
  B.current = !0;
@@ -80,12 +80,12 @@ function D({ deviceId: e }) {
80
80
  N(i), j(T(i, t.grid.width, t.grid.height, y));
81
81
  } catch (t) {
82
82
  if (e) return;
83
- s(t) ? k(!0) : console.error("Motion Zones load failed", t);
83
+ o(t) ? k(!0) : console.error("Motion Zones load failed", t);
84
84
  }
85
85
  })(), () => {
86
86
  e = !0;
87
87
  };
88
- }, [l]);
88
+ }, [c]);
89
89
  let V = w ? w.grid.width : 0, H = w ? w.grid.height : 0, U = C(V, P), W = C(H, P), G = i(() => A && w ? E(A, V, H, P) : null, [
90
90
  A,
91
91
  w,
@@ -131,7 +131,7 @@ function D({ deviceId: e }) {
131
131
  ]), $ = t((e, t) => {
132
132
  t.kind === "grid" && j(t.cells);
133
133
  }, []), oe = t(async () => {
134
- if (!(!l || !A || !w)) {
134
+ if (!(!c || !A || !w)) {
135
135
  L(!0);
136
136
  try {
137
137
  let e = E(A, w.grid.width, w.grid.height, P), t = {
@@ -140,12 +140,12 @@ function D({ deviceId: e }) {
140
140
  gridHeight: w.grid.height,
141
141
  cells: e
142
142
  };
143
- await l.motionZones?.setZone({ patch: { regions: [{
143
+ await c.motionZones?.setZone({ patch: { regions: [{
144
144
  id: v,
145
145
  enabled: !0,
146
146
  shape: t
147
147
  }] } });
148
- let n = await l.motionZones?.getStatus({});
148
+ let n = await c.motionZones?.getStatus({});
149
149
  if (n) {
150
150
  let e = n.regions.find((e) => e.shape.kind === "grid"), t = S(e ? e.shape.cells : [], w.grid.width, w.grid.height);
151
151
  N(t), j(T(t, w.grid.width, w.grid.height, P));
@@ -157,7 +157,7 @@ function D({ deviceId: e }) {
157
157
  }
158
158
  }
159
159
  }, [
160
- l,
160
+ c,
161
161
  A,
162
162
  w,
163
163
  P
@@ -188,16 +188,16 @@ function D({ deviceId: e }) {
188
188
  $,
189
189
  U,
190
190
  W
191
- ])), l ? /* @__PURE__ */ p(d, {
191
+ ])), c ? /* @__PURE__ */ p(d, {
192
192
  title: "Motion Zones",
193
193
  icon: /* @__PURE__ */ p(g, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
194
194
  children: /* @__PURE__ */ p("div", {
195
195
  className: "flex flex-col gap-3",
196
196
  children: O ? /* @__PURE__ */ p("p", {
197
- className: `${u} leading-relaxed`,
197
+ className: `${l} leading-relaxed`,
198
198
  children: "This camera doesn't expose an on-board motion zones grid."
199
199
  }) : !O && w !== null && A !== null ? /* @__PURE__ */ m(ee, { children: [/* @__PURE__ */ m("p", {
200
- className: `${u} leading-relaxed`,
200
+ className: `${l} leading-relaxed`,
201
201
  children: [
202
202
  "Toggle ",
203
203
  /* @__PURE__ */ p("strong", {
@@ -258,7 +258,7 @@ function D({ deviceId: e }) {
258
258
  role: "group",
259
259
  "aria-label": "Cell size",
260
260
  children: [/* @__PURE__ */ p("span", {
261
- className: `${u} mr-0.5`,
261
+ className: `${l} mr-0.5`,
262
262
  children: "Cell size"
263
263
  }), ne.map((e) => /* @__PURE__ */ m("button", {
264
264
  type: "button",
@@ -271,7 +271,7 @@ function D({ deviceId: e }) {
271
271
  }, e))]
272
272
  }),
273
273
  /* @__PURE__ */ m("span", {
274
- className: `${u} ml-1 tabular-nums`,
274
+ className: `${l} ml-1 tabular-nums`,
275
275
  children: [
276
276
  q,
277
277
  " / ",
@@ -300,7 +300,7 @@ function D({ deviceId: e }) {
300
300
  })
301
301
  ]
302
302
  })] }) : /* @__PURE__ */ p("p", {
303
- className: `${u} leading-relaxed`,
303
+ className: `${l} leading-relaxed`,
304
304
  children: "Loading the camera's grid…"
305
305
  })
306
306
  })
@@ -1,8 +1,8 @@
1
1
  import { b as e, c as t, g as n, h as r, m as i, u as a } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-BLRSn-wJ.mjs";
2
- import { a as ee, n as te, r as ne, s as o, t as s } from "./responsive-VI5WFdFh.mjs";
3
- import { n as re, t as ie } from "./player-overlays-Bd3_pIO9.mjs";
4
- import { n as ae, r as oe, t as se } from "./square-EOouUJm_.mjs";
5
- import { t as c } from "./trash-2-pWdn99SC.mjs";
2
+ import { d as ee, f as te, g as o, l as s, m as ne } from "./responsive-8b-T948b.mjs";
3
+ import { n as re, t as ie } from "./player-overlays-CYe1ImiF.mjs";
4
+ import { n as ae, r as oe, t as se } from "./square-m9Cdamuf.mjs";
5
+ import { t as c } from "./trash-2-CWiiPcjD.mjs";
6
6
  import { n as l, r as u, t as ce } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs";
7
7
  import { MaskShapeCanvas as le } from "./MaskShapeCanvas-7LKD4bOR.mjs";
8
8
  var ue = o("hexagon", [["path", {
@@ -68,7 +68,7 @@ function he(e, t) {
68
68
  return !0;
69
69
  }
70
70
  function v({ deviceId: e }) {
71
- let o = ne(ee().trpcClient, e), [d, f] = n(null), [v, y] = n(!1), [b, x] = n(!1), [S, C] = n(null), [w, T] = n(null), [E, D] = n(!1), [O, k] = n(!1), [A, j] = n(null), [M, N] = n(null), [ge, P] = n(null), [F, I] = n(null), [L, R] = n(null), z = r(!1);
71
+ let o = te(ne().trpcClient, e), [d, f] = n(null), [v, y] = n(!1), [b, x] = n(!1), [S, C] = n(null), [w, T] = n(null), [E, D] = n(!1), [O, k] = n(!1), [A, j] = n(null), [M, N] = n(null), [ge, P] = n(null), [F, I] = n(null), [L, R] = n(null), z = r(!1);
72
72
  a(() => {
73
73
  if (!o) return;
74
74
  let e = !1;
@@ -93,7 +93,7 @@ function v({ deviceId: e }) {
93
93
  T(r), C(r), P(n.audioEnabled);
94
94
  } catch (t) {
95
95
  if (e) return;
96
- te(t) ? y(!0) : console.error("Privacy Mask load failed", t);
96
+ ee(t) ? y(!0) : console.error("Privacy Mask load failed", t);
97
97
  }
98
98
  })(), () => {
99
99
  e = !0;