@camstack/addon-model-studio 1.1.331 → 1.1.332
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/CHANGELOG.md +6 -0
- package/dist/{MotionZonesSettings-TRskNMCZ.mjs → MotionZonesSettings-BOx4d1Ua.mjs} +25 -25
- package/dist/{PrivacyMaskSettings-DH6RQBr5.mjs → PrivacyMaskSettings-DjczOhqD.mjs} +33 -33
- package/dist/{SceneMonitorEditor-BoI9Rdr-.mjs → SceneMonitorEditor-GO3Ncxcb.mjs} +54 -54
- package/dist/_stub.js +6678 -6592
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BFgqLpv4.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CjYR9sfM.mjs} +3 -3
- package/dist/{_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CuUWnexp.mjs → _virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CAr_q7cE.mjs} +5 -5
- package/dist/{hostInit-CuSlERor.mjs → hostInit-BkqKC8rn.mjs} +2 -2
- package/dist/model-studio.addon.js +19 -4
- package/dist/model-studio.addon.mjs +19 -4
- package/dist/{player-overlays-BnOwVQOH.mjs → player-overlays-CSRalrk9.mjs} +5 -5
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-BdfGJMHO.mjs → responsive-B-cQZlMu.mjs} +10 -6
- package/dist/{scene-monitor-copy-CVS-8qPq.mjs → scene-monitor-copy-DSKHpazF.mjs} +5 -5
- package/dist/{square-DlqxlbDO.mjs → square-BtSmfB1z.mjs} +1 -1
- package/dist/{trash-2-fWJjK5Xt.mjs → trash-2-BmbtsckV.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BtS2uZAv.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BiIQ9kpg.mjs} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { S as e, _ as t, d as n, g as r, l as i, v as a } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs";
|
|
2
2
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
|
|
3
3
|
import { r as ee, t as te } from "./ui-text-BqZa5BNK.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { n as ne, t as m } from "./player-overlays-
|
|
4
|
+
import { d as l, f as u, g as d, l as f, v as p } from "./responsive-B-cQZlMu.mjs";
|
|
5
|
+
import { n as ne, t as m } from "./player-overlays-CSRalrk9.mjs";
|
|
6
6
|
import { MaskShapeCanvas as h } from "./MaskShapeCanvas-CrWutXSb.mjs";
|
|
7
|
-
var g =
|
|
7
|
+
var g = p("grid-2x2", [
|
|
8
8
|
["path", {
|
|
9
9
|
d: "M12 3v18",
|
|
10
10
|
key: "108xh3"
|
|
@@ -63,7 +63,7 @@ function O(e, t, n, r) {
|
|
|
63
63
|
return o;
|
|
64
64
|
}
|
|
65
65
|
function k({ deviceId: e }) {
|
|
66
|
-
let
|
|
66
|
+
let p = ee(), E = u(d().trpcClient, e), [k, A] = a(null), [j, M] = a(!1), [N, P] = a(null), [F, I] = a(null), [L, R] = a(b), [z, B] = a(!1), [V, H] = a(!1), U = t(!1);
|
|
67
67
|
n(() => {
|
|
68
68
|
if (!E) return;
|
|
69
69
|
let e = !1;
|
|
@@ -81,7 +81,7 @@ function k({ deviceId: e }) {
|
|
|
81
81
|
I(i), P(D(i, t.grid.width, t.grid.height, b));
|
|
82
82
|
} catch (t) {
|
|
83
83
|
if (e) return;
|
|
84
|
-
|
|
84
|
+
l(t) ? M(!0) : console.error("Motion Zones load failed", t);
|
|
85
85
|
}
|
|
86
86
|
})(), () => {
|
|
87
87
|
e = !0;
|
|
@@ -192,15 +192,15 @@ function k({ deviceId: e }) {
|
|
|
192
192
|
]));
|
|
193
193
|
let ue = !j && k !== null && N !== null;
|
|
194
194
|
return E ? /* @__PURE__ */ o(ne, {
|
|
195
|
-
title:
|
|
195
|
+
title: p("uiLibrary.motionZones.title", "Motion Zones"),
|
|
196
196
|
icon: /* @__PURE__ */ o(g, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
|
|
197
197
|
children: /* @__PURE__ */ o("div", {
|
|
198
198
|
className: "flex flex-col gap-3",
|
|
199
199
|
children: j ? /* @__PURE__ */ o("p", {
|
|
200
|
-
className: `${
|
|
201
|
-
children:
|
|
200
|
+
className: `${f} leading-relaxed`,
|
|
201
|
+
children: p("uiLibrary.motionZones.unsupported", "This camera doesn't expose an on-board motion zones grid.")
|
|
202
202
|
}) : ue ? /* @__PURE__ */ s(c, { children: [/* @__PURE__ */ o("p", {
|
|
203
|
-
className: `${
|
|
203
|
+
className: `${f} leading-relaxed`,
|
|
204
204
|
children: /* @__PURE__ */ o(te, {
|
|
205
205
|
uiKey: "uiLibrary.motionZones.intro",
|
|
206
206
|
fallback: "Toggle <0>Edit grid</0> to paint the region directly on the live frame, then <1>Save</1> to push the mask to the camera. Pick a bigger <2>Cell size</2> for quicker, broad-stroke painting — it's resampled to the camera's native {{width}}×{{height}} grid on save (×1 is the finest).",
|
|
@@ -223,45 +223,45 @@ function k({ deviceId: e }) {
|
|
|
223
223
|
disabled: z,
|
|
224
224
|
"aria-pressed": V,
|
|
225
225
|
className: V ? S : x,
|
|
226
|
-
children: V ?
|
|
226
|
+
children: V ? p("uiLibrary.motionZones.doneEditing", "Done editing") : p("uiLibrary.motionZones.editGrid", "Edit grid")
|
|
227
227
|
}),
|
|
228
228
|
/* @__PURE__ */ o("button", {
|
|
229
229
|
type: "button",
|
|
230
230
|
onClick: () => Z(!0),
|
|
231
231
|
disabled: z,
|
|
232
232
|
className: x,
|
|
233
|
-
children:
|
|
233
|
+
children: p("uiLibrary.motionZones.allOn", "All on")
|
|
234
234
|
}),
|
|
235
235
|
/* @__PURE__ */ o("button", {
|
|
236
236
|
type: "button",
|
|
237
237
|
onClick: () => Z(!1),
|
|
238
238
|
disabled: z,
|
|
239
239
|
className: x,
|
|
240
|
-
children:
|
|
240
|
+
children: p("uiLibrary.motionZones.allOff", "All off")
|
|
241
241
|
}),
|
|
242
242
|
/* @__PURE__ */ o("button", {
|
|
243
243
|
type: "button",
|
|
244
244
|
onClick: oe,
|
|
245
245
|
disabled: z,
|
|
246
246
|
className: x,
|
|
247
|
-
children:
|
|
247
|
+
children: p("uiLibrary.motionZones.invert", "Invert")
|
|
248
248
|
}),
|
|
249
249
|
/* @__PURE__ */ s("div", {
|
|
250
250
|
className: "flex items-center gap-1 ml-1",
|
|
251
251
|
role: "group",
|
|
252
|
-
"aria-label":
|
|
252
|
+
"aria-label": p("uiLibrary.motionZones.cellSize", "Cell size"),
|
|
253
253
|
children: [/* @__PURE__ */ o("span", {
|
|
254
|
-
className: `${
|
|
255
|
-
children:
|
|
254
|
+
className: `${f} mr-0.5`,
|
|
255
|
+
children: p("uiLibrary.motionZones.cellSize", "Cell size")
|
|
256
256
|
}), re.map((e) => /* @__PURE__ */ s("button", {
|
|
257
257
|
type: "button",
|
|
258
258
|
onClick: () => ce(e),
|
|
259
259
|
disabled: z,
|
|
260
260
|
"aria-pressed": L === e,
|
|
261
|
-
title: e === 1 ?
|
|
261
|
+
title: e === 1 ? p("uiLibrary.motionZones.cameraGrid", "Camera grid {{width}}×{{height}} (finest)", {
|
|
262
262
|
width: W,
|
|
263
263
|
height: G
|
|
264
|
-
}) :
|
|
264
|
+
}) : p("uiLibrary.motionZones.paintingGrid", "{{width}}×{{height}} painting grid · cells ×{{factor}} bigger", {
|
|
265
265
|
width: T(W, e),
|
|
266
266
|
height: T(G, e),
|
|
267
267
|
factor: e
|
|
@@ -271,13 +271,13 @@ function k({ deviceId: e }) {
|
|
|
271
271
|
}, e))]
|
|
272
272
|
}),
|
|
273
273
|
/* @__PURE__ */ s("span", {
|
|
274
|
-
className: `${
|
|
275
|
-
children: [
|
|
274
|
+
className: `${f} ml-1 tabular-nums`,
|
|
275
|
+
children: [p("uiLibrary.motionZones.cells", "{{active}} / {{total}} cells · {{width}}×{{height}}", {
|
|
276
276
|
active: ie,
|
|
277
277
|
total: ae,
|
|
278
278
|
width: k.grid.width,
|
|
279
279
|
height: k.grid.height
|
|
280
|
-
}), L === 1 ? "" :
|
|
280
|
+
}), L === 1 ? "" : p("uiLibrary.motionZones.paintSuffix", " · paint {{width}}×{{height}}", {
|
|
281
281
|
width: K,
|
|
282
282
|
height: q
|
|
283
283
|
})]
|
|
@@ -288,19 +288,19 @@ function k({ deviceId: e }) {
|
|
|
288
288
|
onClick: se,
|
|
289
289
|
disabled: z || !Y,
|
|
290
290
|
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",
|
|
291
|
-
children:
|
|
291
|
+
children: p("uiLibrary.motionZones.revert", "Revert")
|
|
292
292
|
}),
|
|
293
293
|
/* @__PURE__ */ o("button", {
|
|
294
294
|
type: "button",
|
|
295
295
|
onClick: () => void le(),
|
|
296
296
|
disabled: z || !Y,
|
|
297
297
|
className: S,
|
|
298
|
-
children: z ?
|
|
298
|
+
children: z ? p("uiLibrary.motionZones.saving", "Saving…") : p("uiLibrary.motionZones.save", "Save")
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
301
|
})] }) : /* @__PURE__ */ o("p", {
|
|
302
|
-
className: `${
|
|
303
|
-
children:
|
|
302
|
+
className: `${f} leading-relaxed`,
|
|
303
|
+
children: p("uiLibrary.motionZones.loading", "Loading the camera's grid…")
|
|
304
304
|
})
|
|
305
305
|
})
|
|
306
306
|
}) : null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { S as e, _ as t, d as n, g as r, l as i, v as a } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs";
|
|
2
2
|
import { n as o, r as s, t as ee } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
|
|
3
3
|
import { r as te, t as ne } from "./ui-text-BqZa5BNK.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { n as oe, t as se } from "./player-overlays-
|
|
6
|
-
import { n as ce, r as le, t as ue } from "./square-
|
|
7
|
-
import { t as de } from "./trash-2-
|
|
4
|
+
import { d as re, f as ie, g as ae, l as c, v as l } from "./responsive-B-cQZlMu.mjs";
|
|
5
|
+
import { n as oe, t as se } from "./player-overlays-CSRalrk9.mjs";
|
|
6
|
+
import { n as ce, r as le, t as ue } from "./square-BtSmfB1z.mjs";
|
|
7
|
+
import { t as de } from "./trash-2-BmbtsckV.mjs";
|
|
8
8
|
import { MaskShapeCanvas as fe } from "./MaskShapeCanvas-CrWutXSb.mjs";
|
|
9
|
-
var pe =
|
|
9
|
+
var pe = l("hexagon", [["path", {
|
|
10
10
|
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",
|
|
11
11
|
key: "yt0hxn"
|
|
12
|
-
}]]), me =
|
|
12
|
+
}]]), me = l("mic-off", [
|
|
13
13
|
["path", {
|
|
14
14
|
d: "M12 19v3",
|
|
15
15
|
key: "npa21l"
|
|
@@ -69,7 +69,7 @@ function ve(e, t) {
|
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
71
|
function _({ deviceId: e }) {
|
|
72
|
-
let
|
|
72
|
+
let l = te(), u = ie(ae().trpcClient, e), [d, _] = a(null), [v, y] = a(!1), [b, x] = a(!1), [S, C] = a(null), [w, T] = a(null), [E, D] = a(!1), [O, k] = a(!1), [A, j] = a(null), [M, N] = a(null), [P, F] = a(null), [I, L] = a(null), [R, z] = a(null), B = t(!1);
|
|
73
73
|
n(() => {
|
|
74
74
|
if (!u) return;
|
|
75
75
|
let e = !1;
|
|
@@ -115,8 +115,8 @@ function _({ deviceId: e }) {
|
|
|
115
115
|
id: e.id,
|
|
116
116
|
shape: e.shape,
|
|
117
117
|
enabled: e.enabled,
|
|
118
|
-
label:
|
|
119
|
-
})) : [], [S,
|
|
118
|
+
label: l("uiLibrary.privacyMaskSettings.zoneN", "Zone {{id}}", { id: e.id })
|
|
119
|
+
})) : [], [S, l]), J = i((e, t) => {
|
|
120
120
|
let n = g(t);
|
|
121
121
|
n && C((t) => t && {
|
|
122
122
|
...t,
|
|
@@ -227,19 +227,19 @@ function _({ deviceId: e }) {
|
|
|
227
227
|
]));
|
|
228
228
|
let Ee = d?.supportedShapes.includes("rect") ?? !1, De = d?.supportedShapes.includes("polygon") ?? !1, $ = d !== null && (d.maxRegions <= 0 || d.supportedShapes.length === 0), Oe = !v && !$ && !b && d !== null && S !== null;
|
|
229
229
|
return u ? /* @__PURE__ */ o(oe, {
|
|
230
|
-
title:
|
|
230
|
+
title: l("uiLibrary.privacyMaskSettings.title", "Privacy Mask"),
|
|
231
231
|
icon: /* @__PURE__ */ o(le, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
|
|
232
232
|
children: /* @__PURE__ */ s("div", {
|
|
233
233
|
className: "flex flex-col gap-3",
|
|
234
234
|
children: [v || $ ? /* @__PURE__ */ o("p", {
|
|
235
|
-
className: `${
|
|
236
|
-
children:
|
|
235
|
+
className: `${c} leading-relaxed`,
|
|
236
|
+
children: l("uiLibrary.privacyMaskSettings.unsupported", "This camera doesn't support an on-board privacy mask.")
|
|
237
237
|
}) : b ? /* @__PURE__ */ o("p", {
|
|
238
|
-
className: `${
|
|
239
|
-
children:
|
|
238
|
+
className: `${c} leading-relaxed`,
|
|
239
|
+
children: l("uiLibrary.privacyMaskSettings.unreadable", "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.")
|
|
240
240
|
}) : Oe ? /* @__PURE__ */ s(ee, { children: [
|
|
241
241
|
/* @__PURE__ */ o("p", {
|
|
242
|
-
className: `${
|
|
242
|
+
className: `${c} leading-relaxed`,
|
|
243
243
|
children: /* @__PURE__ */ o(ne, {
|
|
244
244
|
uiKey: "uiLibrary.privacyMaskSettings.help",
|
|
245
245
|
fallback: "Toggle <0>Edit mask</0> to draw blanked-out zones on the live frame, then <1>Save</1> 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.",
|
|
@@ -255,7 +255,7 @@ function _({ deviceId: e }) {
|
|
|
255
255
|
disabled: E,
|
|
256
256
|
"aria-pressed": O,
|
|
257
257
|
className: O ? h : m,
|
|
258
|
-
children: O ?
|
|
258
|
+
children: O ? l("uiLibrary.privacyMaskSettings.doneEditing", "Done editing") : l("uiLibrary.privacyMaskSettings.editMask", "Edit mask")
|
|
259
259
|
}),
|
|
260
260
|
/* @__PURE__ */ o("button", {
|
|
261
261
|
type: "button",
|
|
@@ -263,7 +263,7 @@ function _({ deviceId: e }) {
|
|
|
263
263
|
disabled: E,
|
|
264
264
|
"aria-pressed": S.enabled,
|
|
265
265
|
className: S.enabled ? h : m,
|
|
266
|
-
children: S.enabled ?
|
|
266
|
+
children: S.enabled ? l("uiLibrary.privacyMaskSettings.maskOn", "Mask on") : l("uiLibrary.privacyMaskSettings.maskOff", "Mask off")
|
|
267
267
|
}),
|
|
268
268
|
Ee && /* @__PURE__ */ o("button", {
|
|
269
269
|
type: "button",
|
|
@@ -271,8 +271,8 @@ function _({ deviceId: e }) {
|
|
|
271
271
|
disabled: E || G,
|
|
272
272
|
"aria-pressed": M === "rect",
|
|
273
273
|
className: M === "rect" ? h : m,
|
|
274
|
-
title: G ?
|
|
275
|
-
children:
|
|
274
|
+
title: G ? l("uiLibrary.privacyMaskSettings.maxZones", "Maximum zones reached") : l("uiLibrary.privacyMaskSettings.addRect", "Add a rectangle zone"),
|
|
275
|
+
children: l("uiLibrary.privacyMaskSettings.rectButton", "+ Rect")
|
|
276
276
|
}),
|
|
277
277
|
De && /* @__PURE__ */ o("button", {
|
|
278
278
|
type: "button",
|
|
@@ -280,12 +280,12 @@ function _({ deviceId: e }) {
|
|
|
280
280
|
disabled: E || G,
|
|
281
281
|
"aria-pressed": M === "polygon",
|
|
282
282
|
className: M === "polygon" ? h : m,
|
|
283
|
-
title: G ?
|
|
284
|
-
children:
|
|
283
|
+
title: G ? l("uiLibrary.privacyMaskSettings.maxZones", "Maximum zones reached") : l("uiLibrary.privacyMaskSettings.addPolygon", "Add a polygon zone"),
|
|
284
|
+
children: l("uiLibrary.privacyMaskSettings.polygonButton", "+ Polygon")
|
|
285
285
|
}),
|
|
286
286
|
/* @__PURE__ */ o("span", {
|
|
287
|
-
className: `${
|
|
288
|
-
children:
|
|
287
|
+
className: `${c} ml-1 tabular-nums`,
|
|
288
|
+
children: l("uiLibrary.privacyMaskSettings.zoneCount", "{{active}} / {{max}} zones", {
|
|
289
289
|
active: H,
|
|
290
290
|
max: U
|
|
291
291
|
})
|
|
@@ -296,14 +296,14 @@ function _({ deviceId: e }) {
|
|
|
296
296
|
onClick: Se,
|
|
297
297
|
disabled: E || !V,
|
|
298
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:
|
|
299
|
+
children: l("uiLibrary.privacyMaskSettings.revert", "Revert")
|
|
300
300
|
}),
|
|
301
301
|
/* @__PURE__ */ o("button", {
|
|
302
302
|
type: "button",
|
|
303
303
|
onClick: () => void Ce(),
|
|
304
304
|
disabled: E || !V,
|
|
305
305
|
className: h,
|
|
306
|
-
children: E ?
|
|
306
|
+
children: E ? l("uiLibrary.privacyMaskSettings.saving", "Saving…") : l("uiLibrary.privacyMaskSettings.save", "Save")
|
|
307
307
|
})
|
|
308
308
|
]
|
|
309
309
|
}),
|
|
@@ -320,7 +320,7 @@ function _({ deviceId: e }) {
|
|
|
320
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
321
|
children: [
|
|
322
322
|
/* @__PURE__ */ o(n, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
323
|
-
/* @__PURE__ */ o("span", { children:
|
|
323
|
+
/* @__PURE__ */ o("span", { children: l("uiLibrary.privacyMaskSettings.zoneN", "Zone {{id}}", { id: e.id }) }),
|
|
324
324
|
/* @__PURE__ */ o("span", {
|
|
325
325
|
className: "text-foreground-faint capitalize",
|
|
326
326
|
children: e.shape.kind
|
|
@@ -330,8 +330,8 @@ function _({ deviceId: e }) {
|
|
|
330
330
|
type: "button",
|
|
331
331
|
onClick: () => xe(e.id),
|
|
332
332
|
disabled: E,
|
|
333
|
-
"aria-label":
|
|
334
|
-
title:
|
|
333
|
+
"aria-label": l("uiLibrary.privacyMaskSettings.deleteZoneN", "Delete zone {{id}}", { id: e.id }),
|
|
334
|
+
title: l("uiLibrary.privacyMaskSettings.deleteZone", "Delete zone"),
|
|
335
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
336
|
children: /* @__PURE__ */ o(de, { className: "h-3.5 w-3.5" })
|
|
337
337
|
})]
|
|
@@ -339,8 +339,8 @@ function _({ deviceId: e }) {
|
|
|
339
339
|
})
|
|
340
340
|
}) : null
|
|
341
341
|
] }) : /* @__PURE__ */ o("p", {
|
|
342
|
-
className: `${
|
|
343
|
-
children:
|
|
342
|
+
className: `${c} leading-relaxed`,
|
|
343
|
+
children: l("uiLibrary.privacyMaskSettings.loading", "Loading the camera's privacy mask…")
|
|
344
344
|
}), Z.supported && /* @__PURE__ */ s("div", {
|
|
345
345
|
className: "flex items-start gap-3 rounded-md border border-border bg-surface px-2 py-2",
|
|
346
346
|
children: [/* @__PURE__ */ o("button", {
|
|
@@ -350,15 +350,15 @@ function _({ deviceId: e }) {
|
|
|
350
350
|
"aria-checked": Z.on === !0,
|
|
351
351
|
disabled: !Z.available || I !== null,
|
|
352
352
|
onClick: () => void we(),
|
|
353
|
-
title: Z.on === null ?
|
|
353
|
+
title: Z.on === null ? l("uiLibrary.privacyMaskSettings.micTitleUnknown", "Microphone — state unknown; the camera did not answer.") : Z.on ? l("uiLibrary.privacyMaskSettings.micTitleOn", "The camera is capturing sound. Turning it off: {{cost}}", { cost: Z.costWhenOff }) : l("uiLibrary.privacyMaskSettings.micTitleOff", "The camera is silent. {{cost}}", { cost: Z.costWhenOff }),
|
|
354
354
|
className: Z.on === !1 || Z.on === null ? m : h,
|
|
355
355
|
children: /* @__PURE__ */ s("span", {
|
|
356
356
|
className: "inline-flex items-center gap-1.5",
|
|
357
|
-
children: [Z.on === !1 ? /* @__PURE__ */ o(me, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ o(ce, { className: "h-3.5 w-3.5" }), Z.on === null ?
|
|
357
|
+
children: [Z.on === !1 ? /* @__PURE__ */ o(me, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ o(ce, { className: "h-3.5 w-3.5" }), Z.on === null ? l("uiLibrary.privacyMaskSettings.micUnknown", "Microphone unknown") : Z.on ? l("uiLibrary.privacyMaskSettings.micOn", "Microphone on") : l("uiLibrary.privacyMaskSettings.micOff", "Microphone off")]
|
|
358
358
|
})
|
|
359
359
|
}), /* @__PURE__ */ o("p", {
|
|
360
360
|
className: "text-[10px] text-foreground-subtle flex-1 leading-relaxed",
|
|
361
|
-
children: R === null ? Z.on === null ?
|
|
361
|
+
children: R === null ? Z.on === null ? l("uiLibrary.privacyMaskSettings.micNotReported", "The camera did not report its microphone, so this state is unknown.") : Z.costWhenOff : l("uiLibrary.privacyMaskSettings.writeFailed", "Write failed: {{reason}}", { reason: R })
|
|
362
362
|
})]
|
|
363
363
|
})]
|
|
364
364
|
})
|