@camstack/addon-benchmark 1.2.150 → 1.2.151
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/MaskShapeCanvas-IMozTYd-.mjs +13806 -0
- package/dist/MotionZonesSettings-ZyajfPtv.mjs +310 -0
- package/dist/{PrivacyMaskSettings-Bw2433zS.mjs → PrivacyMaskSettings-Cg8NOBlj.mjs} +9 -9
- package/dist/{SceneMonitorEditor-CEq7UYYx.mjs → SceneMonitorEditor-DWlUo1ZM.mjs} +269 -269
- package/dist/_stub.js +13287 -25722
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-BMIcawh_.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-Ca2co8UF.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BE5yZLei.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-wTD-CVC7.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-BxuRwc3x.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-CQ0VjvSn.mjs +26 -0
- package/dist/{_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs → _virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs} +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-NtWzzhEn.mjs +25 -0
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-CFJOcZEH.mjs +25 -0
- package/dist/addon-benchmark.css +1 -1
- package/dist/{hostInit-BG79Vuom.mjs → hostInit-gynkOlvE.mjs} +2 -2
- package/dist/index.js +1474 -1860
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1477 -1842
- package/dist/index.mjs.map +1 -1
- package/dist/player-overlays-CbKnZXwO.mjs +44 -0
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-DU_Gek6C.mjs → responsive-CGsBDbD0.mjs} +10 -14
- package/dist/{scene-monitor-copy-DwF-5VWK.mjs → scene-monitor-copy-T3Kfl9jG.mjs} +26 -29
- package/dist/{square-e4QuB7SC.mjs → square-Cj8CvK_2.mjs} +1 -1
- package/dist/{trash-2-CYiIi9m7.mjs → trash-2-nQzUhmWL.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C4HwP7ml.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CrQL4i7s.mjs} +390 -399
- package/package.json +4 -5
- package/assets/fixtures/camera-sim-1080p.h264 +0 -0
- package/assets/fixtures/camera-sim-1440p-h265.hevc +0 -0
- package/assets/fixtures/camera-sim-360p.h264 +0 -0
- package/dist/MaskShapeCanvas-BDvrLf-K.mjs +0 -686
- package/dist/MotionZonesSettings-Ca7gw3LT.mjs +0 -292
- package/dist/ReactKonva-DXzDAU1q.mjs +0 -5416
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DDbAl4wY.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-lv97RBhq.mjs +0 -89
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-DtWmo0vJ.mjs +0 -58
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-Bh7FS7ML.mjs +0 -62
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs +0 -34
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-DQaf3kYb.mjs +0 -45
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DUzuN6aS.mjs +0 -34
- package/dist/grid-2x2-BJ3lFTm4.mjs +0 -21
- package/dist/hls-R1zGmDT3.mjs +0 -18476
- package/dist/lib-CVGFTwe0.mjs +0 -7770
- package/dist/player-overlays-BrlDlS6o.mjs +0 -69
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { c as e, h as t, m as n, p as r, u as i, y as a } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs";
|
|
2
|
+
import { a as o, n as s, r as c, s as l, t as u } from "./responsive-CGsBDbD0.mjs";
|
|
3
|
+
import { n as d, t as f } from "./player-overlays-CbKnZXwO.mjs";
|
|
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
|
+
import { MaskShapeCanvas as h } from "./MaskShapeCanvas-IMozTYd-.mjs";
|
|
6
|
+
var g = l("grid-2x2", [
|
|
7
|
+
["path", {
|
|
8
|
+
d: "M12 3v18",
|
|
9
|
+
key: "108xh3"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "M3 12h18",
|
|
13
|
+
key: "1i2n21"
|
|
14
|
+
}],
|
|
15
|
+
["rect", {
|
|
16
|
+
x: "3",
|
|
17
|
+
y: "3",
|
|
18
|
+
width: "18",
|
|
19
|
+
height: "18",
|
|
20
|
+
rx: "2",
|
|
21
|
+
key: "h1oib"
|
|
22
|
+
}]
|
|
23
|
+
]);
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../ui-library/src/composites/cap-settings/MotionZonesSettings.tsx
|
|
26
|
+
a();
|
|
27
|
+
var _ = 110, v = "motion-zones", y = 0, b = [
|
|
28
|
+
1,
|
|
29
|
+
2,
|
|
30
|
+
3
|
|
31
|
+
], x = 1, S = "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", C = "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";
|
|
32
|
+
function w(e, t, n) {
|
|
33
|
+
let r = t * n, i = Array.from({ length: r });
|
|
34
|
+
for (let t = 0; t < r; t += 1) i[t] = e[t] === !0;
|
|
35
|
+
return i;
|
|
36
|
+
}
|
|
37
|
+
function T(e, t) {
|
|
38
|
+
if (e.length !== t.length) return !1;
|
|
39
|
+
for (let n = 0; n < e.length; n += 1) if (e[n] !== t[n]) return !1;
|
|
40
|
+
return !0;
|
|
41
|
+
}
|
|
42
|
+
function E(e, t) {
|
|
43
|
+
return Math.ceil(e / t);
|
|
44
|
+
}
|
|
45
|
+
function D(e, t, n) {
|
|
46
|
+
return Math.min(n - 1, Math.floor((e + .5) / t * n));
|
|
47
|
+
}
|
|
48
|
+
function O(e, t, n, r) {
|
|
49
|
+
let i = E(t, r), a = E(n, r), o = Array.from({ length: i * a }, () => !1);
|
|
50
|
+
for (let r = 0; r < n; r += 1) {
|
|
51
|
+
let s = D(r, n, a);
|
|
52
|
+
for (let n = 0; n < t; n += 1) e[r * t + n] === !0 && (o[s * i + D(n, t, i)] = !0);
|
|
53
|
+
}
|
|
54
|
+
return o;
|
|
55
|
+
}
|
|
56
|
+
function k(e, t, n, r) {
|
|
57
|
+
let i = E(t, r), a = E(n, r), o = Array.from({ length: t * n }, () => !1);
|
|
58
|
+
for (let r = 0; r < n; r += 1) {
|
|
59
|
+
let s = D(r, n, a);
|
|
60
|
+
for (let n = 0; n < t; n += 1) o[r * t + n] = e[s * i + D(n, t, i)] === !0;
|
|
61
|
+
}
|
|
62
|
+
return o;
|
|
63
|
+
}
|
|
64
|
+
function A({ deviceId: a }) {
|
|
65
|
+
let l = c(o().trpcClient, a), [D, A] = t(null), [j, M] = t(!1), [N, P] = t(null), [F, I] = t(null), [L, R] = t(x), [z, B] = t(!1), [V, H] = t(!1), U = n(!1);
|
|
66
|
+
i(() => {
|
|
67
|
+
if (!l) return;
|
|
68
|
+
let e = !1;
|
|
69
|
+
return U.current = !1, A(null), M(!1), P(null), I(null), R(x), H(!1), (async () => {
|
|
70
|
+
try {
|
|
71
|
+
let t = await l.motionZones?.getOptions({});
|
|
72
|
+
if (e) return;
|
|
73
|
+
if (!t) throw Error("device proxy not ready");
|
|
74
|
+
if (A(t), U.current) return;
|
|
75
|
+
let n = await l.motionZones?.getStatus({});
|
|
76
|
+
if (e) return;
|
|
77
|
+
if (!n) throw Error("device proxy not ready");
|
|
78
|
+
U.current = !0;
|
|
79
|
+
let r = n.regions.find((e) => e.shape.kind === "grid"), i = w(r ? r.shape.cells : [], t.grid.width, t.grid.height);
|
|
80
|
+
I(i), P(O(i, t.grid.width, t.grid.height, x));
|
|
81
|
+
} catch (t) {
|
|
82
|
+
if (e) return;
|
|
83
|
+
s(t) ? M(!0) : console.error("Motion Zones load failed", t);
|
|
84
|
+
}
|
|
85
|
+
})(), () => {
|
|
86
|
+
e = !0;
|
|
87
|
+
};
|
|
88
|
+
}, [l]);
|
|
89
|
+
let W = D ? D.grid.width : 0, G = D ? D.grid.height : 0, K = E(W, L), q = E(G, L), J = r(() => N && D ? k(N, W, G, L) : null, [
|
|
90
|
+
N,
|
|
91
|
+
D,
|
|
92
|
+
W,
|
|
93
|
+
G,
|
|
94
|
+
L
|
|
95
|
+
]), Y = r(() => J !== null && F !== null && !T(J, F), [J, F]), te = r(() => J ? J.reduce((e, t) => t ? e + 1 : e, 0) : 0, [J]), ne = W * G, X = K * q, Z = e((e) => {
|
|
96
|
+
X > 0 && P(Array.from({ length: X }, () => e));
|
|
97
|
+
}, [X]), re = e(() => {
|
|
98
|
+
P((e) => e && e.map((e) => !e));
|
|
99
|
+
}, []), ie = e(() => {
|
|
100
|
+
F && D && P(O(F, W, G, L));
|
|
101
|
+
}, [
|
|
102
|
+
F,
|
|
103
|
+
D,
|
|
104
|
+
W,
|
|
105
|
+
G,
|
|
106
|
+
L
|
|
107
|
+
]), ae = e((e) => {
|
|
108
|
+
e === L || !D || P((t) => {
|
|
109
|
+
if (!t) return R(e), t;
|
|
110
|
+
let n = O(k(t, W, G, L), W, G, e);
|
|
111
|
+
return R(e), n;
|
|
112
|
+
});
|
|
113
|
+
}, [
|
|
114
|
+
L,
|
|
115
|
+
D,
|
|
116
|
+
W,
|
|
117
|
+
G
|
|
118
|
+
]), Q = r(() => D && N ? [{
|
|
119
|
+
id: y,
|
|
120
|
+
shape: {
|
|
121
|
+
kind: "grid",
|
|
122
|
+
gridWidth: K,
|
|
123
|
+
gridHeight: q,
|
|
124
|
+
cells: [...N]
|
|
125
|
+
}
|
|
126
|
+
}] : [], [
|
|
127
|
+
D,
|
|
128
|
+
N,
|
|
129
|
+
K,
|
|
130
|
+
q
|
|
131
|
+
]), $ = e((e, t) => {
|
|
132
|
+
t.kind === "grid" && P(t.cells);
|
|
133
|
+
}, []), oe = e(async () => {
|
|
134
|
+
if (!(!l || !N || !D)) {
|
|
135
|
+
B(!0);
|
|
136
|
+
try {
|
|
137
|
+
let e = k(N, D.grid.width, D.grid.height, L), t = {
|
|
138
|
+
kind: "grid",
|
|
139
|
+
gridWidth: D.grid.width,
|
|
140
|
+
gridHeight: D.grid.height,
|
|
141
|
+
cells: e
|
|
142
|
+
};
|
|
143
|
+
await l.motionZones?.setZone({ patch: { regions: [{
|
|
144
|
+
id: y,
|
|
145
|
+
enabled: !0,
|
|
146
|
+
shape: t
|
|
147
|
+
}] } });
|
|
148
|
+
let n = await l.motionZones?.getStatus({});
|
|
149
|
+
if (n) {
|
|
150
|
+
let e = n.regions.find((e) => e.shape.kind === "grid"), t = w(e ? e.shape.cells : [], D.grid.width, D.grid.height);
|
|
151
|
+
I(t), P(O(t, D.grid.width, D.grid.height, L));
|
|
152
|
+
}
|
|
153
|
+
} catch (e) {
|
|
154
|
+
console.error("Motion Zones save failed", e);
|
|
155
|
+
} finally {
|
|
156
|
+
B(!1);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}, [
|
|
160
|
+
l,
|
|
161
|
+
N,
|
|
162
|
+
D,
|
|
163
|
+
L
|
|
164
|
+
]);
|
|
165
|
+
return f(r(() => V && !j && D && N ? {
|
|
166
|
+
id: v,
|
|
167
|
+
order: _,
|
|
168
|
+
node: /* @__PURE__ */ p(h, {
|
|
169
|
+
transparent: !0,
|
|
170
|
+
items: Q,
|
|
171
|
+
supportedShapes: ["grid"],
|
|
172
|
+
grid: {
|
|
173
|
+
width: K,
|
|
174
|
+
height: q
|
|
175
|
+
},
|
|
176
|
+
selectedId: y,
|
|
177
|
+
onSelect: () => {},
|
|
178
|
+
onShapeChange: $,
|
|
179
|
+
onDrawComplete: () => {},
|
|
180
|
+
drawingKind: null
|
|
181
|
+
})
|
|
182
|
+
} : null, [
|
|
183
|
+
V,
|
|
184
|
+
j,
|
|
185
|
+
D,
|
|
186
|
+
N,
|
|
187
|
+
Q,
|
|
188
|
+
$,
|
|
189
|
+
K,
|
|
190
|
+
q
|
|
191
|
+
])), l ? /* @__PURE__ */ p(d, {
|
|
192
|
+
title: "Motion Zones",
|
|
193
|
+
icon: /* @__PURE__ */ p(g, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
|
|
194
|
+
children: /* @__PURE__ */ p("div", {
|
|
195
|
+
className: "flex flex-col gap-3",
|
|
196
|
+
children: j ? /* @__PURE__ */ p("p", {
|
|
197
|
+
className: `${u} leading-relaxed`,
|
|
198
|
+
children: "This camera doesn't expose an on-board motion zones grid."
|
|
199
|
+
}) : !j && D !== null && N !== null ? /* @__PURE__ */ m(ee, { children: [/* @__PURE__ */ m("p", {
|
|
200
|
+
className: `${u} leading-relaxed`,
|
|
201
|
+
children: [
|
|
202
|
+
"Toggle ",
|
|
203
|
+
/* @__PURE__ */ p("strong", {
|
|
204
|
+
className: "text-foreground",
|
|
205
|
+
children: "Edit grid"
|
|
206
|
+
}),
|
|
207
|
+
" to paint the region directly on the live frame, then ",
|
|
208
|
+
/* @__PURE__ */ p("strong", {
|
|
209
|
+
className: "text-foreground",
|
|
210
|
+
children: "Save"
|
|
211
|
+
}),
|
|
212
|
+
" to push the mask to the camera. Pick a bigger",
|
|
213
|
+
" ",
|
|
214
|
+
/* @__PURE__ */ p("strong", {
|
|
215
|
+
className: "text-foreground",
|
|
216
|
+
children: "Cell size"
|
|
217
|
+
}),
|
|
218
|
+
" for quicker, broad-stroke painting — it's resampled to the camera's native ",
|
|
219
|
+
D.grid.width,
|
|
220
|
+
"×",
|
|
221
|
+
D.grid.height,
|
|
222
|
+
" grid on save (×1 is the finest)."
|
|
223
|
+
]
|
|
224
|
+
}), /* @__PURE__ */ m("div", {
|
|
225
|
+
className: "flex items-center gap-2 flex-wrap",
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ p("button", {
|
|
228
|
+
type: "button",
|
|
229
|
+
onClick: () => H((e) => !e),
|
|
230
|
+
disabled: z,
|
|
231
|
+
"aria-pressed": V,
|
|
232
|
+
className: V ? C : S,
|
|
233
|
+
children: V ? "Done editing" : "Edit grid"
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ p("button", {
|
|
236
|
+
type: "button",
|
|
237
|
+
onClick: () => Z(!0),
|
|
238
|
+
disabled: z,
|
|
239
|
+
className: S,
|
|
240
|
+
children: "All on"
|
|
241
|
+
}),
|
|
242
|
+
/* @__PURE__ */ p("button", {
|
|
243
|
+
type: "button",
|
|
244
|
+
onClick: () => Z(!1),
|
|
245
|
+
disabled: z,
|
|
246
|
+
className: S,
|
|
247
|
+
children: "All off"
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ p("button", {
|
|
250
|
+
type: "button",
|
|
251
|
+
onClick: re,
|
|
252
|
+
disabled: z,
|
|
253
|
+
className: S,
|
|
254
|
+
children: "Invert"
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ m("div", {
|
|
257
|
+
className: "flex items-center gap-1 ml-1",
|
|
258
|
+
role: "group",
|
|
259
|
+
"aria-label": "Cell size",
|
|
260
|
+
children: [/* @__PURE__ */ p("span", {
|
|
261
|
+
className: `${u} mr-0.5`,
|
|
262
|
+
children: "Cell size"
|
|
263
|
+
}), b.map((e) => /* @__PURE__ */ m("button", {
|
|
264
|
+
type: "button",
|
|
265
|
+
onClick: () => ae(e),
|
|
266
|
+
disabled: z,
|
|
267
|
+
"aria-pressed": L === e,
|
|
268
|
+
title: e === 1 ? `Camera grid ${W}×${G} (finest)` : `${E(W, e)}×${E(G, e)} painting grid · cells ×${e} bigger`,
|
|
269
|
+
className: L === e ? C : S,
|
|
270
|
+
children: ["×", e]
|
|
271
|
+
}, e))]
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ m("span", {
|
|
274
|
+
className: `${u} ml-1 tabular-nums`,
|
|
275
|
+
children: [
|
|
276
|
+
te,
|
|
277
|
+
" / ",
|
|
278
|
+
ne,
|
|
279
|
+
" cells · ",
|
|
280
|
+
D.grid.width,
|
|
281
|
+
"×",
|
|
282
|
+
D.grid.height,
|
|
283
|
+
L === 1 ? "" : ` · paint ${K}×${q}`
|
|
284
|
+
]
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ p("span", { className: "flex-1" }),
|
|
287
|
+
/* @__PURE__ */ p("button", {
|
|
288
|
+
type: "button",
|
|
289
|
+
onClick: ie,
|
|
290
|
+
disabled: z || !Y,
|
|
291
|
+
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",
|
|
292
|
+
children: "Revert"
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ p("button", {
|
|
295
|
+
type: "button",
|
|
296
|
+
onClick: () => void oe(),
|
|
297
|
+
disabled: z || !Y,
|
|
298
|
+
className: C,
|
|
299
|
+
children: z ? "Saving…" : "Save"
|
|
300
|
+
})
|
|
301
|
+
]
|
|
302
|
+
})] }) : /* @__PURE__ */ p("p", {
|
|
303
|
+
className: `${u} leading-relaxed`,
|
|
304
|
+
children: "Loading the camera's grid…"
|
|
305
|
+
})
|
|
306
|
+
})
|
|
307
|
+
}) : null;
|
|
308
|
+
}
|
|
309
|
+
//#endregion
|
|
310
|
+
export { A as MotionZonesSettings };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as ae, r as oe, t as se } from "./square-
|
|
5
|
-
import { t as c } from "./trash-2-
|
|
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-
|
|
7
|
-
import { MaskShapeCanvas as le } from "./MaskShapeCanvas-
|
|
1
|
+
import { c as e, h as t, m as n, p as r, u as i, y as a } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-DQXGYpip.mjs";
|
|
2
|
+
import { a as ee, n as te, r as ne, s as o, t as s } from "./responsive-CGsBDbD0.mjs";
|
|
3
|
+
import { n as re, t as ie } from "./player-overlays-CbKnZXwO.mjs";
|
|
4
|
+
import { n as ae, r as oe, t as se } from "./square-Cj8CvK_2.mjs";
|
|
5
|
+
import { t as c } from "./trash-2-nQzUhmWL.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-Dh0XkFx5.mjs";
|
|
7
|
+
import { MaskShapeCanvas as le } from "./MaskShapeCanvas-IMozTYd-.mjs";
|
|
8
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"
|
|
@@ -68,7 +68,7 @@ function he(e, t) {
|
|
|
68
68
|
return !0;
|
|
69
69
|
}
|
|
70
70
|
function v({ deviceId: a }) {
|
|
71
|
-
let o = ne(
|
|
71
|
+
let o = ne(ee().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;
|
|
@@ -93,7 +93,7 @@ function v({ deviceId: a }) {
|
|
|
93
93
|
T(r), C(r), P(n.audioEnabled);
|
|
94
94
|
} catch (t) {
|
|
95
95
|
if (e) return;
|
|
96
|
-
|
|
96
|
+
te(t) ? y(!0) : console.error("Privacy Mask load failed", t);
|
|
97
97
|
}
|
|
98
98
|
})(), () => {
|
|
99
99
|
e = !0;
|