@camstack/addon-benchmark 1.2.90 → 1.2.92
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/{PrivacyMaskSettings-DyF2bejR.mjs → PrivacyMaskSettings-BhPInmqO.mjs} +97 -90
- package/dist/_stub.js +3 -3
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-dDO4PpMT.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-BoqI5fKd.mjs} +4 -4
- package/dist/{hostInit-2n8ovN64.mjs → hostInit-l0PBRaZ9.mjs} +3 -3
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-Cae4RBvh.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CBtW9Vtc.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
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
2
|
import { c as o, n as ee, o as te, r as ne, t as s } from "./responsive-9w29rRSY.mjs";
|
|
3
|
-
import { i as re, t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { MaskShapeCanvas as
|
|
8
|
-
var
|
|
3
|
+
import { i as re, t as ie } from "./player-overlays-DUAu-okC.mjs";
|
|
4
|
+
import { n as ae, r as oe, t as se } from "./square-BaDnkmJY.mjs";
|
|
5
|
+
import { t as c } from "./trash-2-CAfisOui.mjs";
|
|
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-SOU_VnTj.mjs";
|
|
7
|
+
import { MaskShapeCanvas as le } from "./MaskShapeCanvas-BDvrLf-K.mjs";
|
|
8
|
+
var ue = o("hexagon", [["path", {
|
|
9
9
|
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",
|
|
10
10
|
key: "yt0hxn"
|
|
11
|
-
}]]),
|
|
11
|
+
}]]), de = o("mic-off", [
|
|
12
12
|
["path", {
|
|
13
13
|
d: "M12 19v3",
|
|
14
14
|
key: "npa21l"
|
|
@@ -37,50 +37,54 @@ var ce = o("hexagon", [["path", {
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region ../ui-library/src/composites/cap-settings/privacy-mask-audio.ts
|
|
39
39
|
a();
|
|
40
|
-
var
|
|
41
|
-
function
|
|
40
|
+
var d = "Microphone", f = "The camera encodes no audio at all — live view, recordings, exports and the audio analyzer are all silent.";
|
|
41
|
+
function p(e) {
|
|
42
42
|
let t = e.supportsAudioMute === !0, n = t ? e.audioEnabled : null, r = e.pendingOn ?? null;
|
|
43
43
|
return {
|
|
44
|
-
label:
|
|
44
|
+
label: d,
|
|
45
45
|
supported: t,
|
|
46
46
|
on: n === null ? null : r ?? n,
|
|
47
47
|
available: t && n !== null,
|
|
48
|
-
costWhenOff:
|
|
48
|
+
costWhenOff: f
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function m(e) {
|
|
52
52
|
return !e.available || e.on === null ? null : { enabled: !e.on };
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region ../ui-library/src/composites/cap-settings/PrivacyMaskSettings.tsx
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var fe = 120, pe = "privacy-mask", h = "rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors", g = "rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors";
|
|
57
|
+
function _(e) {
|
|
58
58
|
return e.kind === "rect" || e.kind === "polygon" ? e : null;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function me(e) {
|
|
61
61
|
let t = new Set(e.map((e) => e.id)), n = 0;
|
|
62
62
|
for (; t.has(n);) n += 1;
|
|
63
63
|
return n;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function he(e, t) {
|
|
66
66
|
if (e.length !== t.length) return !1;
|
|
67
67
|
for (let n = 0; n < e.length; n += 1) if (JSON.stringify(e[n]) !== JSON.stringify(t[n])) return !1;
|
|
68
68
|
return !0;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let o = ne(te().trpcClient, a), [
|
|
70
|
+
function v({ deviceId: a }) {
|
|
71
|
+
let o = ne(te().trpcClient, a), [d, f] = t(null), [v, y] = t(!1), [b, x] = t(!1), [S, C] = t(null), [w, T] = t(null), [E, D] = t(!1), [O, k] = t(!1), [A, j] = t(null), [M, N] = t(null), [ge, P] = t(null), [F, I] = t(null), [L, R] = t(null), z = n(!1);
|
|
72
72
|
i(() => {
|
|
73
73
|
if (!o) return;
|
|
74
74
|
let e = !1;
|
|
75
|
-
return z.current = !1,
|
|
75
|
+
return z.current = !1, f(null), y(!1), x(!1), C(null), T(null), k(!1), j(null), N(null), P(null), I(null), R(null), (async () => {
|
|
76
76
|
try {
|
|
77
77
|
let t = await o.privacyMask?.getOptions({});
|
|
78
78
|
if (e) return;
|
|
79
79
|
if (!t) throw Error("device proxy not ready");
|
|
80
|
-
if (
|
|
80
|
+
if (f(t), z.current) return;
|
|
81
81
|
let n = await o.privacyMask?.getStatus({});
|
|
82
82
|
if (e) return;
|
|
83
83
|
if (!n) throw Error("device proxy not ready");
|
|
84
|
+
if (n.regions === null) {
|
|
85
|
+
x(!0), P(n.audioEnabled);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
84
88
|
z.current = !0;
|
|
85
89
|
let r = {
|
|
86
90
|
enabled: n.enabled,
|
|
@@ -89,17 +93,17 @@ function b({ deviceId: a }) {
|
|
|
89
93
|
T(r), C(r), P(n.audioEnabled);
|
|
90
94
|
} catch (t) {
|
|
91
95
|
if (e) return;
|
|
92
|
-
ee(t) ?
|
|
96
|
+
ee(t) ? y(!0) : console.error("Privacy Mask load failed", t);
|
|
93
97
|
}
|
|
94
98
|
})(), () => {
|
|
95
99
|
e = !0;
|
|
96
100
|
};
|
|
97
101
|
}, [o]);
|
|
98
|
-
let B = r(() => S !== null && w !== null && (S.enabled !== w.enabled || !
|
|
102
|
+
let B = r(() => S !== null && w !== null && (S.enabled !== w.enabled || !he(S.regions, w.regions)), [S, w]), V = S ? S.regions.length : 0, H = d ? d.maxRegions : 0, U = n(0);
|
|
99
103
|
i(() => {
|
|
100
104
|
U.current = H;
|
|
101
105
|
}, [H]);
|
|
102
|
-
let W = H > 0 && V >= H,
|
|
106
|
+
let W = H > 0 && V >= H, _e = e(() => {
|
|
103
107
|
C((e) => e && {
|
|
104
108
|
...e,
|
|
105
109
|
enabled: !e.enabled
|
|
@@ -112,7 +116,7 @@ function b({ deviceId: a }) {
|
|
|
112
116
|
enabled: e.enabled,
|
|
113
117
|
label: `Zone ${String(e.id)}`
|
|
114
118
|
})) : [], [S]), q = e((e, t) => {
|
|
115
|
-
let n =
|
|
119
|
+
let n = _(t);
|
|
116
120
|
n && C((t) => t && {
|
|
117
121
|
...t,
|
|
118
122
|
regions: t.regions.map((t) => t.id === e ? {
|
|
@@ -121,12 +125,12 @@ function b({ deviceId: a }) {
|
|
|
121
125
|
} : t)
|
|
122
126
|
});
|
|
123
127
|
}, []), J = e((e) => {
|
|
124
|
-
let t =
|
|
128
|
+
let t = _(e);
|
|
125
129
|
t && (N(null), C((e) => {
|
|
126
130
|
if (!e) return e;
|
|
127
131
|
let n = U.current;
|
|
128
132
|
if (n > 0 && e.regions.length >= n) return e;
|
|
129
|
-
let r =
|
|
133
|
+
let r = me(e.regions), i = {
|
|
130
134
|
id: r,
|
|
131
135
|
enabled: !0,
|
|
132
136
|
shape: t
|
|
@@ -138,19 +142,19 @@ function b({ deviceId: a }) {
|
|
|
138
142
|
}));
|
|
139
143
|
}, []), Y = e((e) => {
|
|
140
144
|
k(!0), j(null), N(e);
|
|
141
|
-
}, []),
|
|
145
|
+
}, []), ve = e((e) => {
|
|
142
146
|
k(!0), N(null), j(e);
|
|
143
147
|
}, []), X = e((e) => {
|
|
144
148
|
j((t) => t === e ? null : t), C((t) => t && {
|
|
145
149
|
...t,
|
|
146
150
|
regions: t.regions.filter((t) => t.id !== e)
|
|
147
151
|
});
|
|
148
|
-
}, []),
|
|
152
|
+
}, []), ye = e(() => {
|
|
149
153
|
N(null), j(null), w && C({
|
|
150
154
|
enabled: w.enabled,
|
|
151
155
|
regions: w.regions
|
|
152
156
|
});
|
|
153
|
-
}, [w]),
|
|
157
|
+
}, [w]), be = e(async () => {
|
|
154
158
|
if (!(!o || !S)) {
|
|
155
159
|
D(!0);
|
|
156
160
|
try {
|
|
@@ -159,7 +163,7 @@ function b({ deviceId: a }) {
|
|
|
159
163
|
regions: [...S.regions]
|
|
160
164
|
} });
|
|
161
165
|
let e = await o.privacyMask?.getStatus({});
|
|
162
|
-
if (e) {
|
|
166
|
+
if (e && e.regions !== null) {
|
|
163
167
|
let t = {
|
|
164
168
|
enabled: e.enabled,
|
|
165
169
|
regions: e.regions
|
|
@@ -172,12 +176,12 @@ function b({ deviceId: a }) {
|
|
|
172
176
|
D(!1);
|
|
173
177
|
}
|
|
174
178
|
}
|
|
175
|
-
}, [o, S]), Z =
|
|
176
|
-
supportsAudioMute:
|
|
177
|
-
audioEnabled:
|
|
179
|
+
}, [o, S]), Z = p({
|
|
180
|
+
supportsAudioMute: d === null ? null : d.supportsAudioMute,
|
|
181
|
+
audioEnabled: ge,
|
|
178
182
|
pendingOn: F
|
|
179
|
-
}),
|
|
180
|
-
let e =
|
|
183
|
+
}), xe = e(async () => {
|
|
184
|
+
let e = m(Z);
|
|
181
185
|
if (!(!o || e === null)) {
|
|
182
186
|
I(e.enabled), R(null);
|
|
183
187
|
try {
|
|
@@ -190,17 +194,17 @@ function b({ deviceId: a }) {
|
|
|
190
194
|
I(null);
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
|
-
}, [o, Z]),
|
|
197
|
+
}, [o, Z]), Se = e(() => {
|
|
194
198
|
k((e) => (e && (N(null), j(null)), !e));
|
|
195
|
-
}, []), Q =
|
|
196
|
-
|
|
197
|
-
id:
|
|
198
|
-
order:
|
|
199
|
-
node: /* @__PURE__ */
|
|
199
|
+
}, []), Q = d?.supportedShapes ?? [];
|
|
200
|
+
ie(r(() => O && !v && d && S ? {
|
|
201
|
+
id: pe,
|
|
202
|
+
order: fe,
|
|
203
|
+
node: /* @__PURE__ */ l(le, {
|
|
200
204
|
transparent: !0,
|
|
201
205
|
items: K,
|
|
202
206
|
supportedShapes: Q,
|
|
203
|
-
polygonVertices:
|
|
207
|
+
polygonVertices: d.polygonVertices,
|
|
204
208
|
selectedId: A,
|
|
205
209
|
onSelect: G,
|
|
206
210
|
onShapeChange: q,
|
|
@@ -209,8 +213,8 @@ function b({ deviceId: a }) {
|
|
|
209
213
|
})
|
|
210
214
|
} : null, [
|
|
211
215
|
O,
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
v,
|
|
217
|
+
d,
|
|
214
218
|
S,
|
|
215
219
|
K,
|
|
216
220
|
Q,
|
|
@@ -220,70 +224,73 @@ function b({ deviceId: a }) {
|
|
|
220
224
|
J,
|
|
221
225
|
M
|
|
222
226
|
]));
|
|
223
|
-
let
|
|
224
|
-
return o ? /* @__PURE__ */
|
|
227
|
+
let Ce = d?.supportedShapes.includes("rect") ?? !1, we = d?.supportedShapes.includes("polygon") ?? !1, $ = d !== null && (d.maxRegions <= 0 || d.supportedShapes.length === 0);
|
|
228
|
+
return o ? /* @__PURE__ */ l(re, {
|
|
225
229
|
title: "Privacy Mask",
|
|
226
|
-
icon: /* @__PURE__ */
|
|
227
|
-
children: /* @__PURE__ */
|
|
230
|
+
icon: /* @__PURE__ */ l(oe, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
|
|
231
|
+
children: /* @__PURE__ */ u("div", {
|
|
228
232
|
className: "flex flex-col gap-3",
|
|
229
|
-
children: [
|
|
233
|
+
children: [v || $ ? /* @__PURE__ */ l("p", {
|
|
230
234
|
className: `${s} leading-relaxed`,
|
|
231
235
|
children: "This camera doesn't support an on-board privacy mask."
|
|
232
|
-
}) :
|
|
233
|
-
|
|
236
|
+
}) : b ? /* @__PURE__ */ l("p", {
|
|
237
|
+
className: `${s} leading-relaxed`,
|
|
238
|
+
children: "This camera hasn't answered, so what it currently masks is unknown — the editor stays closed rather than showing an empty frame you could save over. A battery camera answers once it wakes; otherwise check that it is reachable."
|
|
239
|
+
}) : !v && !$ && !b && d !== null && S !== null ? /* @__PURE__ */ u(ce, { children: [
|
|
240
|
+
/* @__PURE__ */ u("p", {
|
|
234
241
|
className: `${s} leading-relaxed`,
|
|
235
242
|
children: [
|
|
236
243
|
"Toggle ",
|
|
237
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ l("strong", {
|
|
238
245
|
className: "text-foreground",
|
|
239
246
|
children: "Edit mask"
|
|
240
247
|
}),
|
|
241
248
|
" to draw blanked-out zones on the live frame, then ",
|
|
242
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ l("strong", {
|
|
243
250
|
className: "text-foreground",
|
|
244
251
|
children: "Save"
|
|
245
252
|
}),
|
|
246
253
|
" to push them to the camera. Drag a rectangle to move, its corner to resize; drag polygon vertices, click an edge midpoint to add one, or right-click a vertex to remove it."
|
|
247
254
|
]
|
|
248
255
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ u("div", {
|
|
250
257
|
className: "flex items-center gap-2 flex-wrap",
|
|
251
258
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ l("button", {
|
|
253
260
|
type: "button",
|
|
254
|
-
onClick:
|
|
261
|
+
onClick: Se,
|
|
255
262
|
disabled: E,
|
|
256
263
|
"aria-pressed": O,
|
|
257
|
-
className: O ?
|
|
264
|
+
className: O ? g : h,
|
|
258
265
|
children: O ? "Done editing" : "Edit mask"
|
|
259
266
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ l("button", {
|
|
261
268
|
type: "button",
|
|
262
|
-
onClick:
|
|
269
|
+
onClick: _e,
|
|
263
270
|
disabled: E,
|
|
264
271
|
"aria-pressed": S.enabled,
|
|
265
|
-
className: S.enabled ?
|
|
272
|
+
className: S.enabled ? g : h,
|
|
266
273
|
children: S.enabled ? "Mask on" : "Mask off"
|
|
267
274
|
}),
|
|
268
|
-
|
|
275
|
+
Ce && /* @__PURE__ */ l("button", {
|
|
269
276
|
type: "button",
|
|
270
277
|
onClick: () => Y("rect"),
|
|
271
278
|
disabled: E || W,
|
|
272
279
|
"aria-pressed": M === "rect",
|
|
273
|
-
className: M === "rect" ?
|
|
280
|
+
className: M === "rect" ? g : h,
|
|
274
281
|
title: W ? "Maximum zones reached" : "Add a rectangle zone",
|
|
275
282
|
children: "+ Rect"
|
|
276
283
|
}),
|
|
277
|
-
|
|
284
|
+
we && /* @__PURE__ */ l("button", {
|
|
278
285
|
type: "button",
|
|
279
286
|
onClick: () => Y("polygon"),
|
|
280
287
|
disabled: E || W,
|
|
281
288
|
"aria-pressed": M === "polygon",
|
|
282
|
-
className: M === "polygon" ?
|
|
289
|
+
className: M === "polygon" ? g : h,
|
|
283
290
|
title: W ? "Maximum zones reached" : "Add a polygon zone",
|
|
284
291
|
children: "+ Polygon"
|
|
285
292
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ u("span", {
|
|
287
294
|
className: `${s} ml-1 tabular-nums`,
|
|
288
295
|
children: [
|
|
289
296
|
V,
|
|
@@ -292,73 +299,73 @@ function b({ deviceId: a }) {
|
|
|
292
299
|
" zones"
|
|
293
300
|
]
|
|
294
301
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ l("span", { className: "flex-1" }),
|
|
303
|
+
/* @__PURE__ */ l("button", {
|
|
297
304
|
type: "button",
|
|
298
|
-
onClick:
|
|
305
|
+
onClick: ye,
|
|
299
306
|
disabled: E || !B,
|
|
300
307
|
className: "rounded-md border border-border bg-surface px-2 py-1 text-[11px] text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors",
|
|
301
308
|
children: "Revert"
|
|
302
309
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ l("button", {
|
|
304
311
|
type: "button",
|
|
305
|
-
onClick: () => void
|
|
312
|
+
onClick: () => void be(),
|
|
306
313
|
disabled: E || !B,
|
|
307
|
-
className:
|
|
314
|
+
className: g,
|
|
308
315
|
children: E ? "Saving…" : "Save"
|
|
309
316
|
})
|
|
310
317
|
]
|
|
311
318
|
}),
|
|
312
|
-
V > 0 ? /* @__PURE__ */
|
|
319
|
+
V > 0 ? /* @__PURE__ */ l("div", {
|
|
313
320
|
className: "flex flex-col gap-1",
|
|
314
321
|
children: S.regions.map((e) => {
|
|
315
|
-
let t = A === e.id, n = e.shape.kind === "polygon" ?
|
|
316
|
-
return /* @__PURE__ */
|
|
322
|
+
let t = A === e.id, n = e.shape.kind === "polygon" ? ue : se;
|
|
323
|
+
return /* @__PURE__ */ u("div", {
|
|
317
324
|
className: `flex items-center gap-2 rounded-md border px-2 py-1 transition-colors ${t ? "border-primary/50 bg-primary/10" : "border-border bg-surface"}`,
|
|
318
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ u("button", {
|
|
319
326
|
type: "button",
|
|
320
|
-
onClick: () =>
|
|
327
|
+
onClick: () => ve(e.id),
|
|
321
328
|
disabled: E,
|
|
322
329
|
className: "flex flex-1 items-center gap-2 text-left text-[11px] font-medium text-foreground-subtle hover:text-foreground disabled:opacity-40 transition-colors",
|
|
323
330
|
children: [
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ l(n, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
332
|
+
/* @__PURE__ */ u("span", { children: ["Zone ", e.id] }),
|
|
333
|
+
/* @__PURE__ */ l("span", {
|
|
327
334
|
className: "text-foreground-faint capitalize",
|
|
328
335
|
children: e.shape.kind
|
|
329
336
|
})
|
|
330
337
|
]
|
|
331
|
-
}), /* @__PURE__ */
|
|
338
|
+
}), /* @__PURE__ */ l("button", {
|
|
332
339
|
type: "button",
|
|
333
340
|
onClick: () => X(e.id),
|
|
334
341
|
disabled: E,
|
|
335
342
|
"aria-label": `Delete zone ${String(e.id)}`,
|
|
336
343
|
title: "Delete zone",
|
|
337
344
|
className: "inline-flex h-6 w-6 items-center justify-center rounded border border-border bg-surface text-foreground-subtle hover:border-red-400/40 hover:bg-red-500/10 hover:text-red-400 disabled:opacity-40 transition-colors",
|
|
338
|
-
children: /* @__PURE__ */
|
|
345
|
+
children: /* @__PURE__ */ l(c, { className: "h-3.5 w-3.5" })
|
|
339
346
|
})]
|
|
340
347
|
}, e.id);
|
|
341
348
|
})
|
|
342
349
|
}) : null
|
|
343
|
-
] }) : /* @__PURE__ */
|
|
350
|
+
] }) : /* @__PURE__ */ l("p", {
|
|
344
351
|
className: `${s} leading-relaxed`,
|
|
345
352
|
children: "Loading the camera's privacy mask…"
|
|
346
|
-
}), Z.supported && /* @__PURE__ */
|
|
353
|
+
}), Z.supported && /* @__PURE__ */ u("div", {
|
|
347
354
|
className: "flex items-start gap-3 rounded-md border border-border bg-surface px-2 py-2",
|
|
348
|
-
children: [/* @__PURE__ */
|
|
355
|
+
children: [/* @__PURE__ */ l("button", {
|
|
349
356
|
type: "button",
|
|
350
357
|
role: "switch",
|
|
351
358
|
"aria-label": Z.label,
|
|
352
359
|
"aria-checked": Z.on === !0,
|
|
353
360
|
disabled: !Z.available || F !== null,
|
|
354
|
-
onClick: () => void
|
|
361
|
+
onClick: () => void xe(),
|
|
355
362
|
title: Z.on === null ? "Microphone — state unknown; the camera did not answer." : Z.on ? `The camera is capturing sound. Turning it off: ${Z.costWhenOff}` : `The camera is silent. ${Z.costWhenOff}`,
|
|
356
|
-
className: Z.on === !1 || Z.on === null ?
|
|
357
|
-
children: /* @__PURE__ */
|
|
363
|
+
className: Z.on === !1 || Z.on === null ? h : g,
|
|
364
|
+
children: /* @__PURE__ */ u("span", {
|
|
358
365
|
className: "inline-flex items-center gap-1.5",
|
|
359
|
-
children: [Z.on === !1 ? /* @__PURE__ */
|
|
366
|
+
children: [Z.on === !1 ? /* @__PURE__ */ l(de, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ l(ae, { className: "h-3.5 w-3.5" }), Z.on === null ? "Microphone unknown" : Z.on ? "Microphone on" : "Microphone off"]
|
|
360
367
|
})
|
|
361
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ l("p", {
|
|
362
369
|
className: "text-[10px] text-foreground-subtle flex-1 leading-relaxed",
|
|
363
370
|
children: L === null ? Z.on === null ? "The camera did not report its microphone, so this state is unknown." : Z.costWhenOff : `Write failed: ${L}`
|
|
364
371
|
})]
|
|
@@ -367,4 +374,4 @@ function b({ deviceId: a }) {
|
|
|
367
374
|
}) : null;
|
|
368
375
|
}
|
|
369
376
|
//#endregion
|
|
370
|
-
export {
|
|
377
|
+
export { v as PrivacyMaskSettings };
|
package/dist/_stub.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./virtualExposes-erbhyesj.mjs";
|
|
2
|
-
import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
2
|
+
import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CBtW9Vtc.mjs";
|
|
3
3
|
import { _ as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, p as h, r as g, t as _, u as v, v as y, x as b, y as x } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
|
|
4
4
|
import { a as S, c as C, i as w, n as T, o as E, r as D, s as O } from "./responsive-9w29rRSY.mjs";
|
|
5
5
|
import { c as k, d as ee, f as A, l as j, u as M } from "./use-device-snapshot--94S54nV.mjs";
|
|
@@ -7826,7 +7826,7 @@ function Dc({ deviceId: e }) {
|
|
|
7826
7826
|
b();
|
|
7827
7827
|
var Oc = {
|
|
7828
7828
|
"host/motion-zones-grid": d(() => import("./MotionZonesSettings-CwjN6U76.mjs").then((e) => ({ default: e.MotionZonesSettings }))),
|
|
7829
|
-
"host/privacy-mask-grid": d(() => import("./PrivacyMaskSettings-
|
|
7829
|
+
"host/privacy-mask-grid": d(() => import("./PrivacyMaskSettings-BhPInmqO.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))),
|
|
7830
7830
|
"host/ptz-panel": ps,
|
|
7831
7831
|
"host/navigation-panel": ss,
|
|
7832
7832
|
"host/consumables-panel": Xo,
|
|
@@ -26813,7 +26813,7 @@ function tE(e, t, n = 5e3) {
|
|
|
26813
26813
|
}, [e, t])
|
|
26814
26814
|
};
|
|
26815
26815
|
}
|
|
26816
|
-
b(), b(), b(), b(), d(() => import("./MaskShapeCanvas-BDvrLf-K.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), d(() => import("./MotionZonesSettings-CwjN6U76.mjs").then((e) => ({ default: e.MotionZonesSettings }))), d(() => import("./SceneMonitorEditor-B5ELjCA7.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), d(() => import("./PrivacyMaskSettings-
|
|
26816
|
+
b(), b(), b(), b(), d(() => import("./MaskShapeCanvas-BDvrLf-K.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), d(() => import("./MotionZonesSettings-CwjN6U76.mjs").then((e) => ({ default: e.MotionZonesSettings }))), d(() => import("./SceneMonitorEditor-B5ELjCA7.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), d(() => import("./PrivacyMaskSettings-BhPInmqO.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
|
|
26817
26817
|
//#endregion
|
|
26818
26818
|
//#region src/components/NodeSelector.tsx
|
|
26819
26819
|
function nE({ selectedNodeId: e, onSelect: t }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
1
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CBtW9Vtc.mjs";
|
|
2
2
|
//#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_benchmark_page
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
5
5
|
name: "@camstack/sdk",
|
|
6
|
-
version: "1.2.
|
|
6
|
+
version: "1.2.87",
|
|
7
7
|
scope: ["default"],
|
|
8
8
|
loaded: !1,
|
|
9
9
|
from: "addon_benchmark_page",
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.167",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_benchmark_page",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.135",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_benchmark_page",
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.167",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/sdk": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.87",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.135",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CBtW9Vtc.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -2762,7 +2762,7 @@ async function or(e) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
2764
|
async function sr() {
|
|
2765
|
-
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-
|
|
2765
|
+
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-BoqI5fKd.mjs")).catch((e) => {
|
|
2766
2766
|
throw ir = void 0, e;
|
|
2767
2767
|
}), ir;
|
|
2768
2768
|
}
|