@camstack/addon-benchmark 1.2.15 → 1.2.16
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-KnccjjSK.mjs → MotionZonesSettings-CTpZ9-eY.mjs} +1 -1
- package/dist/PrivacyMaskSettings-aLc-d8VG.mjs +368 -0
- package/dist/_stub.js +476 -493
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CaZvBbKb.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-DhAeow5N.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CeSQgW4L.mjs +26 -0
- package/dist/{hostInit-BWSOTmj0.mjs → hostInit-BjB4kYwO.mjs} +3 -3
- package/dist/{player-overlays-BLQTirEJ.mjs → player-overlays-DpgOGWv-.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{trash-2-Bt-UOS5_.mjs → trash-2-FJ4PnLtZ.mjs} +21 -4
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-D1UAPTzE.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-B3fPfqkQ.mjs} +1 -1
- package/package.json +1 -1
- package/dist/PrivacyMaskSettings-DmAJiOY_.mjs +0 -290
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DW40NDDT.mjs +0 -26
|
@@ -1,6 +1,6 @@
|
|
|
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 { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
|
|
3
|
-
import { a as l, f as u, i as ee, p as d, s as f, t as p, u as m } from "./player-overlays-
|
|
3
|
+
import { a as l, f as u, i as ee, p as d, s as f, t as p, u as m } from "./player-overlays-DpgOGWv-.mjs";
|
|
4
4
|
import { MaskShapeCanvas as h } from "./MaskShapeCanvas-BDvrLf-K.mjs";
|
|
5
5
|
var te = m("grid-2x2", [
|
|
6
6
|
["path", {
|
|
@@ -0,0 +1,368 @@
|
|
|
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 { n as o, r as s, t as ee } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
|
|
3
|
+
import { a as c, f as l, i as u, p as te, s as ne, t as re, u as d } from "./player-overlays-DpgOGWv-.mjs";
|
|
4
|
+
import { i as ie, n as ae, r as f, t as p } from "./trash-2-FJ4PnLtZ.mjs";
|
|
5
|
+
import { MaskShapeCanvas as oe } from "./MaskShapeCanvas-BDvrLf-K.mjs";
|
|
6
|
+
var se = d("hexagon", [["path", {
|
|
7
|
+
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",
|
|
8
|
+
key: "yt0hxn"
|
|
9
|
+
}]]), ce = d("mic-off", [
|
|
10
|
+
["path", {
|
|
11
|
+
d: "M12 19v3",
|
|
12
|
+
key: "npa21l"
|
|
13
|
+
}],
|
|
14
|
+
["path", {
|
|
15
|
+
d: "M15 9.34V5a3 3 0 0 0-5.68-1.33",
|
|
16
|
+
key: "1gzdoj"
|
|
17
|
+
}],
|
|
18
|
+
["path", {
|
|
19
|
+
d: "M16.95 16.95A7 7 0 0 1 5 12v-2",
|
|
20
|
+
key: "cqa7eg"
|
|
21
|
+
}],
|
|
22
|
+
["path", {
|
|
23
|
+
d: "M18.89 13.23A7 7 0 0 0 19 12v-2",
|
|
24
|
+
key: "16hl24"
|
|
25
|
+
}],
|
|
26
|
+
["path", {
|
|
27
|
+
d: "m2 2 20 20",
|
|
28
|
+
key: "1ooewy"
|
|
29
|
+
}],
|
|
30
|
+
["path", {
|
|
31
|
+
d: "M9 9v3a3 3 0 0 0 5.12 2.12",
|
|
32
|
+
key: "r2i35w"
|
|
33
|
+
}]
|
|
34
|
+
]);
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../ui-library/src/composites/cap-settings/privacy-mask-audio.ts
|
|
37
|
+
a();
|
|
38
|
+
var m = "Microphone", h = "The camera encodes no audio at all — live view, recordings, exports and the audio analyzer are all silent.";
|
|
39
|
+
function le(e) {
|
|
40
|
+
let t = e.supportsAudioMute === !0, n = t ? e.audioEnabled : null, r = e.pendingOn ?? null;
|
|
41
|
+
return {
|
|
42
|
+
label: m,
|
|
43
|
+
supported: t,
|
|
44
|
+
on: n === null ? null : r ?? n,
|
|
45
|
+
available: t && n !== null,
|
|
46
|
+
costWhenOff: h
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ue(e) {
|
|
50
|
+
return !e.available || e.on === null ? null : { enabled: !e.on };
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../ui-library/src/composites/cap-settings/PrivacyMaskSettings.tsx
|
|
54
|
+
var de = 120, fe = "privacy-mask", g = "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", _ = "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";
|
|
55
|
+
function v(e) {
|
|
56
|
+
return e.kind === "rect" || e.kind === "polygon" ? e : null;
|
|
57
|
+
}
|
|
58
|
+
function y(e) {
|
|
59
|
+
let t = new Set(e.map((e) => e.id)), n = 0;
|
|
60
|
+
for (; t.has(n);) n += 1;
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
function b(e, t) {
|
|
64
|
+
if (e.length !== t.length) return !1;
|
|
65
|
+
for (let n = 0; n < e.length; n += 1) if (JSON.stringify(e[n]) !== JSON.stringify(t[n])) return !1;
|
|
66
|
+
return !0;
|
|
67
|
+
}
|
|
68
|
+
function x({ deviceId: a }) {
|
|
69
|
+
let d = c(ne().trpcClient, a), [m, h] = t(null), [x, S] = t(!1), [C, w] = t(null), [T, E] = t(null), [D, O] = t(!1), [k, A] = t(!1), [j, M] = t(null), [N, P] = t(null), [pe, F] = t(null), [I, L] = t(null), [R, z] = t(null), B = n(!1);
|
|
70
|
+
i(() => {
|
|
71
|
+
if (!d) return;
|
|
72
|
+
let e = !1;
|
|
73
|
+
return B.current = !1, h(null), S(!1), w(null), E(null), A(!1), M(null), P(null), F(null), L(null), z(null), (async () => {
|
|
74
|
+
try {
|
|
75
|
+
let t = await d.privacyMask?.getOptions({});
|
|
76
|
+
if (e) return;
|
|
77
|
+
if (!t) throw Error("device proxy not ready");
|
|
78
|
+
if (h(t), B.current) return;
|
|
79
|
+
let n = await d.privacyMask?.getStatus({});
|
|
80
|
+
if (e) return;
|
|
81
|
+
if (!n) throw Error("device proxy not ready");
|
|
82
|
+
B.current = !0;
|
|
83
|
+
let r = {
|
|
84
|
+
enabled: n.enabled,
|
|
85
|
+
regions: n.regions
|
|
86
|
+
};
|
|
87
|
+
E(r), w(r), F(n.audioEnabled);
|
|
88
|
+
} catch (t) {
|
|
89
|
+
if (e) return;
|
|
90
|
+
te(t) ? S(!0) : console.error("Privacy Mask load failed", t);
|
|
91
|
+
}
|
|
92
|
+
})(), () => {
|
|
93
|
+
e = !0;
|
|
94
|
+
};
|
|
95
|
+
}, [d]);
|
|
96
|
+
let V = r(() => C !== null && T !== null && (C.enabled !== T.enabled || !b(C.regions, T.regions)), [C, T]), H = C ? C.regions.length : 0, U = m ? m.maxRegions : 0, W = n(0);
|
|
97
|
+
i(() => {
|
|
98
|
+
W.current = U;
|
|
99
|
+
}, [U]);
|
|
100
|
+
let G = U > 0 && H >= U, me = e(() => {
|
|
101
|
+
w((e) => e && {
|
|
102
|
+
...e,
|
|
103
|
+
enabled: !e.enabled
|
|
104
|
+
});
|
|
105
|
+
}, []), K = e((e) => {
|
|
106
|
+
M(typeof e == "number" ? e : null);
|
|
107
|
+
}, []), q = r(() => C ? C.regions.map((e) => ({
|
|
108
|
+
id: e.id,
|
|
109
|
+
shape: e.shape,
|
|
110
|
+
enabled: e.enabled,
|
|
111
|
+
label: `Zone ${String(e.id)}`
|
|
112
|
+
})) : [], [C]), J = e((e, t) => {
|
|
113
|
+
let n = v(t);
|
|
114
|
+
n && w((t) => t && {
|
|
115
|
+
...t,
|
|
116
|
+
regions: t.regions.map((t) => t.id === e ? {
|
|
117
|
+
...t,
|
|
118
|
+
shape: n
|
|
119
|
+
} : t)
|
|
120
|
+
});
|
|
121
|
+
}, []), Y = e((e) => {
|
|
122
|
+
let t = v(e);
|
|
123
|
+
t && (P(null), w((e) => {
|
|
124
|
+
if (!e) return e;
|
|
125
|
+
let n = W.current;
|
|
126
|
+
if (n > 0 && e.regions.length >= n) return e;
|
|
127
|
+
let r = y(e.regions), i = {
|
|
128
|
+
id: r,
|
|
129
|
+
enabled: !0,
|
|
130
|
+
shape: t
|
|
131
|
+
};
|
|
132
|
+
return M(r), {
|
|
133
|
+
...e,
|
|
134
|
+
regions: [...e.regions, i]
|
|
135
|
+
};
|
|
136
|
+
}));
|
|
137
|
+
}, []), X = e((e) => {
|
|
138
|
+
A(!0), M(null), P(e);
|
|
139
|
+
}, []), he = e((e) => {
|
|
140
|
+
A(!0), P(null), M(e);
|
|
141
|
+
}, []), ge = e((e) => {
|
|
142
|
+
M((t) => t === e ? null : t), w((t) => t && {
|
|
143
|
+
...t,
|
|
144
|
+
regions: t.regions.filter((t) => t.id !== e)
|
|
145
|
+
});
|
|
146
|
+
}, []), _e = e(() => {
|
|
147
|
+
P(null), M(null), T && w({
|
|
148
|
+
enabled: T.enabled,
|
|
149
|
+
regions: T.regions
|
|
150
|
+
});
|
|
151
|
+
}, [T]), ve = e(async () => {
|
|
152
|
+
if (!(!d || !C)) {
|
|
153
|
+
O(!0);
|
|
154
|
+
try {
|
|
155
|
+
await d.privacyMask?.setMask({ patch: {
|
|
156
|
+
enabled: C.enabled,
|
|
157
|
+
regions: [...C.regions]
|
|
158
|
+
} });
|
|
159
|
+
let e = await d.privacyMask?.getStatus({});
|
|
160
|
+
if (e) {
|
|
161
|
+
let t = {
|
|
162
|
+
enabled: e.enabled,
|
|
163
|
+
regions: e.regions
|
|
164
|
+
};
|
|
165
|
+
E(t), w(t);
|
|
166
|
+
}
|
|
167
|
+
} catch (e) {
|
|
168
|
+
console.error("Privacy Mask save failed", e);
|
|
169
|
+
} finally {
|
|
170
|
+
O(!1);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}, [d, C]), Z = le({
|
|
174
|
+
supportsAudioMute: m === null ? null : m.supportsAudioMute,
|
|
175
|
+
audioEnabled: pe,
|
|
176
|
+
pendingOn: I
|
|
177
|
+
}), ye = e(async () => {
|
|
178
|
+
let e = ue(Z);
|
|
179
|
+
if (!(!d || e === null)) {
|
|
180
|
+
L(e.enabled), z(null);
|
|
181
|
+
try {
|
|
182
|
+
await d.privacyMask?.setAudioEnabled(e);
|
|
183
|
+
let t = await d.privacyMask?.getStatus({});
|
|
184
|
+
t && F(t.audioEnabled);
|
|
185
|
+
} catch (e) {
|
|
186
|
+
console.error("Privacy microphone write failed — reverting", e), z(e instanceof Error ? e.message : String(e));
|
|
187
|
+
} finally {
|
|
188
|
+
L(null);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}, [d, Z]), be = e(() => {
|
|
192
|
+
A((e) => (e && (P(null), M(null)), !e));
|
|
193
|
+
}, []), Q = m?.supportedShapes ?? [];
|
|
194
|
+
re(r(() => k && !x && m && C ? {
|
|
195
|
+
id: fe,
|
|
196
|
+
order: de,
|
|
197
|
+
node: /* @__PURE__ */ o(oe, {
|
|
198
|
+
transparent: !0,
|
|
199
|
+
items: q,
|
|
200
|
+
supportedShapes: Q,
|
|
201
|
+
polygonVertices: m.polygonVertices,
|
|
202
|
+
selectedId: j,
|
|
203
|
+
onSelect: K,
|
|
204
|
+
onShapeChange: J,
|
|
205
|
+
onDrawComplete: Y,
|
|
206
|
+
drawingKind: N
|
|
207
|
+
})
|
|
208
|
+
} : null, [
|
|
209
|
+
k,
|
|
210
|
+
x,
|
|
211
|
+
m,
|
|
212
|
+
C,
|
|
213
|
+
q,
|
|
214
|
+
Q,
|
|
215
|
+
j,
|
|
216
|
+
K,
|
|
217
|
+
J,
|
|
218
|
+
Y,
|
|
219
|
+
N
|
|
220
|
+
]));
|
|
221
|
+
let xe = m?.supportedShapes.includes("rect") ?? !1, Se = m?.supportedShapes.includes("polygon") ?? !1, $ = m !== null && (m.maxRegions <= 0 || m.supportedShapes.length === 0);
|
|
222
|
+
return d ? /* @__PURE__ */ o(u, {
|
|
223
|
+
title: "Privacy Mask",
|
|
224
|
+
icon: /* @__PURE__ */ o(ie, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
|
|
225
|
+
children: /* @__PURE__ */ s("div", {
|
|
226
|
+
className: "flex flex-col gap-3",
|
|
227
|
+
children: [x || $ ? /* @__PURE__ */ o("p", {
|
|
228
|
+
className: `${l} leading-relaxed`,
|
|
229
|
+
children: "This camera doesn't support an on-board privacy mask."
|
|
230
|
+
}) : !x && !$ && m !== null && C !== null ? /* @__PURE__ */ s(ee, { children: [
|
|
231
|
+
/* @__PURE__ */ s("p", {
|
|
232
|
+
className: `${l} leading-relaxed`,
|
|
233
|
+
children: [
|
|
234
|
+
"Toggle ",
|
|
235
|
+
/* @__PURE__ */ o("strong", {
|
|
236
|
+
className: "text-foreground",
|
|
237
|
+
children: "Edit mask"
|
|
238
|
+
}),
|
|
239
|
+
" to draw blanked-out zones on the live frame, then ",
|
|
240
|
+
/* @__PURE__ */ o("strong", {
|
|
241
|
+
className: "text-foreground",
|
|
242
|
+
children: "Save"
|
|
243
|
+
}),
|
|
244
|
+
" 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."
|
|
245
|
+
]
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ s("div", {
|
|
248
|
+
className: "flex items-center gap-2 flex-wrap",
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ o("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
onClick: be,
|
|
253
|
+
disabled: D,
|
|
254
|
+
"aria-pressed": k,
|
|
255
|
+
className: k ? _ : g,
|
|
256
|
+
children: k ? "Done editing" : "Edit mask"
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ o("button", {
|
|
259
|
+
type: "button",
|
|
260
|
+
onClick: me,
|
|
261
|
+
disabled: D,
|
|
262
|
+
"aria-pressed": C.enabled,
|
|
263
|
+
className: C.enabled ? _ : g,
|
|
264
|
+
children: C.enabled ? "Mask on" : "Mask off"
|
|
265
|
+
}),
|
|
266
|
+
xe && /* @__PURE__ */ o("button", {
|
|
267
|
+
type: "button",
|
|
268
|
+
onClick: () => X("rect"),
|
|
269
|
+
disabled: D || G,
|
|
270
|
+
"aria-pressed": N === "rect",
|
|
271
|
+
className: N === "rect" ? _ : g,
|
|
272
|
+
title: G ? "Maximum zones reached" : "Add a rectangle zone",
|
|
273
|
+
children: "+ Rect"
|
|
274
|
+
}),
|
|
275
|
+
Se && /* @__PURE__ */ o("button", {
|
|
276
|
+
type: "button",
|
|
277
|
+
onClick: () => X("polygon"),
|
|
278
|
+
disabled: D || G,
|
|
279
|
+
"aria-pressed": N === "polygon",
|
|
280
|
+
className: N === "polygon" ? _ : g,
|
|
281
|
+
title: G ? "Maximum zones reached" : "Add a polygon zone",
|
|
282
|
+
children: "+ Polygon"
|
|
283
|
+
}),
|
|
284
|
+
/* @__PURE__ */ s("span", {
|
|
285
|
+
className: `${l} ml-1 tabular-nums`,
|
|
286
|
+
children: [
|
|
287
|
+
H,
|
|
288
|
+
" / ",
|
|
289
|
+
U,
|
|
290
|
+
" zones"
|
|
291
|
+
]
|
|
292
|
+
}),
|
|
293
|
+
/* @__PURE__ */ o("span", { className: "flex-1" }),
|
|
294
|
+
/* @__PURE__ */ o("button", {
|
|
295
|
+
type: "button",
|
|
296
|
+
onClick: _e,
|
|
297
|
+
disabled: D || !V,
|
|
298
|
+
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",
|
|
299
|
+
children: "Revert"
|
|
300
|
+
}),
|
|
301
|
+
/* @__PURE__ */ o("button", {
|
|
302
|
+
type: "button",
|
|
303
|
+
onClick: () => void ve(),
|
|
304
|
+
disabled: D || !V,
|
|
305
|
+
className: _,
|
|
306
|
+
children: D ? "Saving…" : "Save"
|
|
307
|
+
})
|
|
308
|
+
]
|
|
309
|
+
}),
|
|
310
|
+
H > 0 ? /* @__PURE__ */ o("div", {
|
|
311
|
+
className: "flex flex-col gap-1",
|
|
312
|
+
children: C.regions.map((e) => {
|
|
313
|
+
let t = j === e.id, n = e.shape.kind === "polygon" ? se : ae;
|
|
314
|
+
return /* @__PURE__ */ s("div", {
|
|
315
|
+
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"}`,
|
|
316
|
+
children: [/* @__PURE__ */ s("button", {
|
|
317
|
+
type: "button",
|
|
318
|
+
onClick: () => he(e.id),
|
|
319
|
+
disabled: D,
|
|
320
|
+
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",
|
|
321
|
+
children: [
|
|
322
|
+
/* @__PURE__ */ o(n, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
323
|
+
/* @__PURE__ */ s("span", { children: ["Zone ", e.id] }),
|
|
324
|
+
/* @__PURE__ */ o("span", {
|
|
325
|
+
className: "text-foreground-faint capitalize",
|
|
326
|
+
children: e.shape.kind
|
|
327
|
+
})
|
|
328
|
+
]
|
|
329
|
+
}), /* @__PURE__ */ o("button", {
|
|
330
|
+
type: "button",
|
|
331
|
+
onClick: () => ge(e.id),
|
|
332
|
+
disabled: D,
|
|
333
|
+
"aria-label": `Delete zone ${String(e.id)}`,
|
|
334
|
+
title: "Delete zone",
|
|
335
|
+
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",
|
|
336
|
+
children: /* @__PURE__ */ o(p, { className: "h-3.5 w-3.5" })
|
|
337
|
+
})]
|
|
338
|
+
}, e.id);
|
|
339
|
+
})
|
|
340
|
+
}) : null
|
|
341
|
+
] }) : /* @__PURE__ */ o("p", {
|
|
342
|
+
className: `${l} leading-relaxed`,
|
|
343
|
+
children: "Loading the camera's privacy mask…"
|
|
344
|
+
}), Z.supported && /* @__PURE__ */ s("div", {
|
|
345
|
+
className: "flex items-start gap-3 rounded-md border border-border bg-surface px-2 py-2",
|
|
346
|
+
children: [/* @__PURE__ */ o("button", {
|
|
347
|
+
type: "button",
|
|
348
|
+
role: "switch",
|
|
349
|
+
"aria-label": Z.label,
|
|
350
|
+
"aria-checked": Z.on === !0,
|
|
351
|
+
disabled: !Z.available || I !== null,
|
|
352
|
+
onClick: () => void ye(),
|
|
353
|
+
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}`,
|
|
354
|
+
className: Z.on === !1 || Z.on === null ? g : _,
|
|
355
|
+
children: /* @__PURE__ */ s("span", {
|
|
356
|
+
className: "inline-flex items-center gap-1.5",
|
|
357
|
+
children: [Z.on === !1 ? /* @__PURE__ */ o(ce, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ o(f, { className: "h-3.5 w-3.5" }), Z.on === null ? "Microphone unknown" : Z.on ? "Microphone on" : "Microphone off"]
|
|
358
|
+
})
|
|
359
|
+
}), /* @__PURE__ */ o("p", {
|
|
360
|
+
className: "text-[10px] text-foreground-subtle flex-1 leading-relaxed",
|
|
361
|
+
children: R === null ? Z.on === null ? "The camera did not report its microphone, so this state is unknown." : Z.costWhenOff : `Write failed: ${R}`
|
|
362
|
+
})]
|
|
363
|
+
})]
|
|
364
|
+
})
|
|
365
|
+
}) : null;
|
|
366
|
+
}
|
|
367
|
+
//#endregion
|
|
368
|
+
export { x as PrivacyMaskSettings };
|