@camstack/addon-osd-manager 0.1.124 → 0.1.125
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-a5Xl2ZE4.mjs +310 -0
- package/dist/{PrivacyMaskSettings-9rCXAZlR.mjs → PrivacyMaskSettings-B2UgOTdb.mjs} +26 -26
- package/dist/{SceneMonitorEditor-D2ATIIZD.mjs → SceneMonitorEditor-8tp57K86.mjs} +295 -295
- package/dist/_stub.js +243 -243
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-B2cBM7jE.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Co7z8wQJ.mjs} +3 -3
- package/dist/addon-osd-manager.css +1 -1
- package/dist/{responsive-CC0j2h-d.mjs → cap-error-DC-GOnm5.mjs} +7 -7
- package/dist/{hostInit-Du2Me1GR.mjs → hostInit-p8Mnw5w9.mjs} +2 -2
- package/dist/index.js +36 -18
- package/dist/index.mjs +36 -18
- package/dist/{player-overlays-CMeXfcep.mjs → player-overlays-C7IiQKvf.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{scene-monitor-copy-CjiHJ4pT.mjs → scene-monitor-copy-B5sXPAoG.mjs} +1 -1
- package/dist/{square-hvOcBhdH.mjs → square-MsYzEBNo.mjs} +1 -1
- package/dist/{trash-2-rb-x3jwf.mjs → trash-2-CahmDJ9h.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-D8j_yb3G.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-B0w_cAoJ.mjs} +1 -1
- package/package.json +1 -1
- package/dist/MotionZonesSettings-DOFOB5MX.mjs +0 -310
package/dist/_stub.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./virtualExposes-BgZ5Cn7S.mjs";
|
|
2
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-
|
|
2
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-B0w_cAoJ.mjs";
|
|
3
3
|
import { _ as e, c as t, d as n, h as r, i, l as a, m as o, p as s, r as c, t as l, u, y as d } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
4
|
-
import { i as f, o as p, r as m, s as h } from "./
|
|
5
|
-
import { d as g, l as _, u as v } from "./scene-monitor-copy-
|
|
6
|
-
import { i as y, r as b } from "./player-overlays-
|
|
7
|
-
import { r as ee, t as x } from "./square-
|
|
8
|
-
import { t as te } from "./trash-2-
|
|
4
|
+
import { i as f, o as p, r as m, s as h } from "./cap-error-DC-GOnm5.mjs";
|
|
5
|
+
import { d as g, l as _, u as v } from "./scene-monitor-copy-B5sXPAoG.mjs";
|
|
6
|
+
import { i as y, r as b } from "./player-overlays-C7IiQKvf.mjs";
|
|
7
|
+
import { r as ee, t as x } from "./square-MsYzEBNo.mjs";
|
|
8
|
+
import { t as te } from "./trash-2-CahmDJ9h.mjs";
|
|
9
9
|
import { t as S } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-BpP33rwB.mjs";
|
|
10
10
|
import { n as C, r as w, t as T } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
11
11
|
import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_2_dom__loadShare__.js-C0K4h_0e.mjs";
|
|
@@ -3407,21 +3407,131 @@ function B(e) {
|
|
|
3407
3407
|
};
|
|
3408
3408
|
}
|
|
3409
3409
|
//#endregion
|
|
3410
|
-
//#region ../ui-library/src/
|
|
3411
|
-
d()
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
}),
|
|
3410
|
+
//#region ../ui-library/src/composites/cap-settings/ConsumablesPanel.tsx
|
|
3411
|
+
d();
|
|
3412
|
+
//#endregion
|
|
3413
|
+
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
3414
|
+
var Vr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Hr = gn, Ur = (e, t) => (n) => {
|
|
3415
|
+
if (t?.variants == null) return Hr(e, n?.class, n?.className);
|
|
3416
|
+
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
3417
|
+
let t = n?.[e], a = i?.[e];
|
|
3418
|
+
if (t === null) return null;
|
|
3419
|
+
let o = Vr(t) || Vr(a);
|
|
3420
|
+
return r[e][o];
|
|
3421
|
+
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
3422
|
+
let [n, r] = t;
|
|
3423
|
+
return r === void 0 || (e[n] = r), e;
|
|
3424
|
+
}, {});
|
|
3425
|
+
return Hr(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
3426
|
+
let { class: n, className: r, ...a } = t;
|
|
3427
|
+
return Object.entries(a).every((e) => {
|
|
3428
|
+
let [t, n] = e;
|
|
3429
|
+
return Array.isArray(n) ? n.includes({
|
|
3430
|
+
...i,
|
|
3431
|
+
...o
|
|
3432
|
+
}[t]) : {
|
|
3433
|
+
...i,
|
|
3434
|
+
...o
|
|
3435
|
+
}[t] === n;
|
|
3436
|
+
}) ? [
|
|
3437
|
+
...e,
|
|
3438
|
+
n,
|
|
3439
|
+
r
|
|
3440
|
+
] : e;
|
|
3441
|
+
}, []), n?.class, n?.className);
|
|
3442
|
+
};
|
|
3443
|
+
//#endregion
|
|
3444
|
+
//#region ../ui-library/src/primitives/badge.tsx
|
|
3445
|
+
d();
|
|
3446
|
+
var Wr = Ur("inline-flex items-center rounded-full text-xs font-medium px-2 py-0.5", {
|
|
3447
|
+
variants: {
|
|
3448
|
+
variant: {
|
|
3449
|
+
default: "bg-surface-hover text-foreground",
|
|
3450
|
+
success: "bg-success/15 text-success",
|
|
3451
|
+
warning: "bg-warning/15 text-warning",
|
|
3452
|
+
danger: "bg-danger/15 text-danger",
|
|
3453
|
+
info: "bg-info/15 text-info"
|
|
3454
|
+
},
|
|
3455
|
+
styleVariant: {
|
|
3456
|
+
solid: "",
|
|
3457
|
+
outline: "border bg-transparent"
|
|
3458
|
+
}
|
|
3459
|
+
},
|
|
3460
|
+
defaultVariants: {
|
|
3461
|
+
variant: "default",
|
|
3462
|
+
styleVariant: "solid"
|
|
3463
|
+
}
|
|
3464
|
+
}), Gr = c(({ className: e, variant: t, style: n, ...r }, i) => /* @__PURE__ */ C("span", {
|
|
3465
|
+
ref: i,
|
|
3466
|
+
className: z(Wr({
|
|
3467
|
+
variant: t,
|
|
3468
|
+
styleVariant: n
|
|
3469
|
+
}), e),
|
|
3470
|
+
...r
|
|
3471
|
+
}));
|
|
3472
|
+
//#endregion
|
|
3473
|
+
//#region ../ui-library/src/primitives/button.tsx
|
|
3474
|
+
Gr.displayName = "Badge", d();
|
|
3475
|
+
var Kr = Ur("inline-flex items-center justify-center rounded-md font-medium transition-colors cursor-pointer disabled:opacity-50 disabled:pointer-events-none", {
|
|
3476
|
+
variants: {
|
|
3477
|
+
variant: {
|
|
3478
|
+
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
3479
|
+
secondary: "bg-surface text-foreground hover:bg-surface-hover",
|
|
3480
|
+
ghost: "hover:bg-surface-hover text-foreground-muted",
|
|
3481
|
+
danger: "bg-danger text-white hover:bg-danger/90",
|
|
3482
|
+
outline: "border border-border bg-transparent text-foreground hover:bg-surface-hover"
|
|
3483
|
+
},
|
|
3484
|
+
size: {
|
|
3485
|
+
sm: "h-7 px-2.5 text-xs gap-1.5",
|
|
3486
|
+
md: "h-8 px-3 text-sm gap-2",
|
|
3487
|
+
lg: "h-9 px-4 text-sm gap-2"
|
|
3488
|
+
}
|
|
3489
|
+
},
|
|
3490
|
+
defaultVariants: {
|
|
3491
|
+
variant: "primary",
|
|
3492
|
+
size: "sm"
|
|
3493
|
+
}
|
|
3494
|
+
}), V = c(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ C("button", {
|
|
3495
|
+
ref: i,
|
|
3496
|
+
className: z(Kr({
|
|
3497
|
+
variant: t,
|
|
3498
|
+
size: n
|
|
3499
|
+
}), e),
|
|
3500
|
+
...r
|
|
3501
|
+
}));
|
|
3502
|
+
//#endregion
|
|
3503
|
+
//#region ../ui-library/src/primitives/select.tsx
|
|
3504
|
+
V.displayName = "Button", d();
|
|
3505
|
+
var qr = c(({ className: e, options: t, disabled: n, ...r }, i) => /* @__PURE__ */ w("div", {
|
|
3506
|
+
className: "relative w-full",
|
|
3507
|
+
children: [/* @__PURE__ */ C("select", {
|
|
3508
|
+
ref: i,
|
|
3509
|
+
disabled: n,
|
|
3510
|
+
className: z("h-7 w-full px-2.5 text-xs bg-surface border border-border rounded-md text-foreground appearance-none pr-7 focus:outline-none focus:ring-1 focus:ring-primary", "disabled:opacity-50 disabled:cursor-not-allowed", e),
|
|
3511
|
+
...r,
|
|
3512
|
+
children: t.map((e) => /* @__PURE__ */ C("option", {
|
|
3513
|
+
value: e.value,
|
|
3514
|
+
children: e.label
|
|
3515
|
+
}, e.value))
|
|
3516
|
+
}), /* @__PURE__ */ C("div", {
|
|
3517
|
+
className: z("absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none text-foreground-muted", n === !0 ? "opacity-50" : ""),
|
|
3518
|
+
children: /* @__PURE__ */ C(y, { className: "h-3.5 w-3.5" })
|
|
3519
|
+
})]
|
|
3520
|
+
}));
|
|
3521
|
+
//#endregion
|
|
3522
|
+
//#region ../ui-library/src/primitives/skeleton.tsx
|
|
3523
|
+
qr.displayName = "Select", d();
|
|
3524
|
+
var Jr = c(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", {
|
|
3525
|
+
ref: n,
|
|
3526
|
+
className: z("animate-pulse bg-surface-hover rounded-md h-4 w-full", e),
|
|
3527
|
+
...t
|
|
3528
|
+
}));
|
|
3529
|
+
//#endregion
|
|
3530
|
+
//#region ../ui-library/src/composites/data-table.tsx
|
|
3531
|
+
Jr.displayName = "Skeleton", d(), d();
|
|
3422
3532
|
//#endregion
|
|
3423
3533
|
//#region ../ui-library/src/composites/error-box.tsx
|
|
3424
|
-
var
|
|
3534
|
+
var Yr = {
|
|
3425
3535
|
danger: {
|
|
3426
3536
|
box: "border-danger/40 bg-danger/10",
|
|
3427
3537
|
icon: "text-danger",
|
|
@@ -3435,8 +3545,8 @@ var Vr = {
|
|
|
3435
3545
|
message: "text-amber-700 dark:text-amber-300"
|
|
3436
3546
|
}
|
|
3437
3547
|
};
|
|
3438
|
-
function
|
|
3439
|
-
let o =
|
|
3548
|
+
function Xr({ message: e, title: t, onRetry: n, action: r, variant: i = "danger", className: a }) {
|
|
3549
|
+
let o = Yr[i], s = i === "warning" ? zt : xe;
|
|
3440
3550
|
return /* @__PURE__ */ w("div", {
|
|
3441
3551
|
role: "alert",
|
|
3442
3552
|
className: z("flex items-start gap-2.5 rounded border px-3 py-2.5", o.box, a),
|
|
@@ -3468,23 +3578,47 @@ function Hr({ message: e, title: t, onRetry: n, action: r, variant: i = "danger"
|
|
|
3468
3578
|
});
|
|
3469
3579
|
}
|
|
3470
3580
|
//#endregion
|
|
3581
|
+
//#region ../ui-library/src/primitives/card.tsx
|
|
3582
|
+
d(), p("camstack:vod-playback", {
|
|
3583
|
+
request: null,
|
|
3584
|
+
play: () => {},
|
|
3585
|
+
clear: () => {}
|
|
3586
|
+
}), d();
|
|
3587
|
+
var Zr = Ur("rounded-lg p-3", {
|
|
3588
|
+
variants: { variant: {
|
|
3589
|
+
flat: "bg-surface",
|
|
3590
|
+
bordered: "bg-surface border border-border"
|
|
3591
|
+
} },
|
|
3592
|
+
defaultVariants: { variant: "bordered" }
|
|
3593
|
+
}), Qr = c(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ C("div", {
|
|
3594
|
+
ref: r,
|
|
3595
|
+
className: z(Zr({ variant: t }), e),
|
|
3596
|
+
...n
|
|
3597
|
+
}));
|
|
3598
|
+
//#endregion
|
|
3471
3599
|
//#region ../../node_modules/qrcode.react/lib/esm/index.js
|
|
3472
|
-
d(), d(), d(), d(), d(),
|
|
3473
|
-
|
|
3600
|
+
Qr.displayName = "Card", d(), d(), d(), d(), d(), d(), d(), d(), d(), d(), p("camstack:recorded-playback", {
|
|
3601
|
+
bindControlChannel: null,
|
|
3602
|
+
channelOpen: !1,
|
|
3603
|
+
mode: "live",
|
|
3604
|
+
positionMs: null,
|
|
3605
|
+
send: () => !1
|
|
3606
|
+
}), d(), d(), d(), d(), d(), d(), i(() => import("./MotionZonesSettings-a5Xl2ZE4.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./PrivacyMaskSettings-B2UgOTdb.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), d(), d();
|
|
3607
|
+
var $r = Object.defineProperty, ei = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, ri = (e, t, n) => t in e ? $r(e, t, {
|
|
3474
3608
|
enumerable: !0,
|
|
3475
3609
|
configurable: !0,
|
|
3476
3610
|
writable: !0,
|
|
3477
3611
|
value: n
|
|
3478
|
-
}) : e[t] = n,
|
|
3479
|
-
for (var n in t ||= {})
|
|
3480
|
-
if (
|
|
3612
|
+
}) : e[t] = n, ii = (e, t) => {
|
|
3613
|
+
for (var n in t ||= {}) ti.call(t, n) && ri(e, n, t[n]);
|
|
3614
|
+
if (ei) for (var n of ei(t)) ni.call(t, n) && ri(e, n, t[n]);
|
|
3481
3615
|
return e;
|
|
3482
|
-
},
|
|
3616
|
+
}, ai = (e, t) => {
|
|
3483
3617
|
var n = {};
|
|
3484
|
-
for (var r in e)
|
|
3485
|
-
if (e != null &&
|
|
3618
|
+
for (var r in e) ti.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3619
|
+
if (e != null && ei) for (var r of ei(e)) t.indexOf(r) < 0 && ni.call(e, r) && (n[r] = e[r]);
|
|
3486
3620
|
return n;
|
|
3487
|
-
},
|
|
3621
|
+
}, oi;
|
|
3488
3622
|
((e) => {
|
|
3489
3623
|
let t = class t {
|
|
3490
3624
|
constructor(e, n, r, a) {
|
|
@@ -4174,7 +4308,7 @@ var Ur = Object.defineProperty, Wr = Object.getOwnPropertySymbols, Gr = Object.p
|
|
|
4174
4308
|
a.NUMERIC_REGEX = /^[0-9]*$/, a.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, a.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
4175
4309
|
let o = a;
|
|
4176
4310
|
e.QrSegment = a;
|
|
4177
|
-
})(
|
|
4311
|
+
})(oi ||= {}), ((e) => {
|
|
4178
4312
|
((e) => {
|
|
4179
4313
|
let t = class {
|
|
4180
4314
|
constructor(e, t) {
|
|
@@ -4183,7 +4317,7 @@ var Ur = Object.defineProperty, Wr = Object.getOwnPropertySymbols, Gr = Object.p
|
|
|
4183
4317
|
};
|
|
4184
4318
|
t.LOW = new t(0, 1), t.MEDIUM = new t(1, 0), t.QUARTILE = new t(2, 3), t.HIGH = new t(3, 2), e.Ecc = t;
|
|
4185
4319
|
})(e.QrCode ||= {});
|
|
4186
|
-
})(
|
|
4320
|
+
})(oi ||= {}), ((e) => {
|
|
4187
4321
|
((e) => {
|
|
4188
4322
|
let t = class {
|
|
4189
4323
|
constructor(e, t) {
|
|
@@ -4215,14 +4349,14 @@ var Ur = Object.defineProperty, Wr = Object.getOwnPropertySymbols, Gr = Object.p
|
|
|
4215
4349
|
0
|
|
4216
4350
|
]), e.Mode = t;
|
|
4217
4351
|
})(e.QrSegment ||= {});
|
|
4218
|
-
})(
|
|
4219
|
-
var
|
|
4220
|
-
L:
|
|
4221
|
-
M:
|
|
4222
|
-
Q:
|
|
4223
|
-
H:
|
|
4224
|
-
},
|
|
4225
|
-
function
|
|
4352
|
+
})(oi ||= {});
|
|
4353
|
+
var si = oi, ci = {
|
|
4354
|
+
L: si.QrCode.Ecc.LOW,
|
|
4355
|
+
M: si.QrCode.Ecc.MEDIUM,
|
|
4356
|
+
Q: si.QrCode.Ecc.QUARTILE,
|
|
4357
|
+
H: si.QrCode.Ecc.HIGH
|
|
4358
|
+
}, li = 128, ui = "L", di = "#FFFFFF", fi = "#000000", pi = !1, mi = 1, hi = 4, gi = 0, _i = .1;
|
|
4359
|
+
function vi(e, t = 0) {
|
|
4226
4360
|
let n = [];
|
|
4227
4361
|
return e.forEach(function(e, r) {
|
|
4228
4362
|
let i = null;
|
|
@@ -4240,12 +4374,12 @@ function ci(e, t = 0) {
|
|
|
4240
4374
|
});
|
|
4241
4375
|
}), n.join("");
|
|
4242
4376
|
}
|
|
4243
|
-
function
|
|
4377
|
+
function yi(e, t) {
|
|
4244
4378
|
return e.slice().map((e, n) => n < t.y || n >= t.y + t.h ? e : e.map((e, n) => n < t.x || n >= t.x + t.w ? e : !1));
|
|
4245
4379
|
}
|
|
4246
|
-
function
|
|
4380
|
+
function bi(e, t, n, r) {
|
|
4247
4381
|
if (r == null) return null;
|
|
4248
|
-
let i = e.length + n * 2, a = Math.floor(t *
|
|
4382
|
+
let i = e.length + n * 2, a = Math.floor(t * _i), o = i / t, s = (r.width || a) * o, c = (r.height || a) * o, l = r.x == null ? e.length / 2 - s / 2 : r.x * o, u = r.y == null ? e.length / 2 - c / 2 : r.y * o, d = r.opacity == null ? 1 : r.opacity, f = null;
|
|
4249
4383
|
if (r.excavate) {
|
|
4250
4384
|
let e = Math.floor(l), t = Math.floor(u);
|
|
4251
4385
|
f = {
|
|
@@ -4266,25 +4400,25 @@ function ui(e, t, n, r) {
|
|
|
4266
4400
|
crossOrigin: p
|
|
4267
4401
|
};
|
|
4268
4402
|
}
|
|
4269
|
-
function
|
|
4270
|
-
return t == null ? e ?
|
|
4403
|
+
function xi(e, t) {
|
|
4404
|
+
return t == null ? e ? hi : gi : Math.max(Math.floor(t), 0);
|
|
4271
4405
|
}
|
|
4272
|
-
function
|
|
4406
|
+
function Si({ value: t, level: n, minVersion: r, includeMargin: i, marginSize: a, imageSettings: o, size: s, boostLevel: c }) {
|
|
4273
4407
|
let l = e.useMemo(() => {
|
|
4274
|
-
let e = (Array.isArray(t) ? t : [t]).reduce((e, t) => (e.push(...
|
|
4275
|
-
return
|
|
4408
|
+
let e = (Array.isArray(t) ? t : [t]).reduce((e, t) => (e.push(...si.QrSegment.makeSegments(t)), e), []);
|
|
4409
|
+
return si.QrCode.encodeSegments(e, ci[n], r, void 0, void 0, c);
|
|
4276
4410
|
}, [
|
|
4277
4411
|
t,
|
|
4278
4412
|
n,
|
|
4279
4413
|
r,
|
|
4280
4414
|
c
|
|
4281
4415
|
]), { cells: u, margin: d, numCells: f, calculatedImageSettings: p } = e.useMemo(() => {
|
|
4282
|
-
let e = l.getModules(), t =
|
|
4416
|
+
let e = l.getModules(), t = xi(i, a);
|
|
4283
4417
|
return {
|
|
4284
4418
|
cells: e,
|
|
4285
4419
|
margin: t,
|
|
4286
4420
|
numCells: e.length + t * 2,
|
|
4287
|
-
calculatedImageSettings:
|
|
4421
|
+
calculatedImageSettings: bi(e, s, t, o)
|
|
4288
4422
|
};
|
|
4289
4423
|
}, [
|
|
4290
4424
|
l,
|
|
@@ -4301,15 +4435,15 @@ function fi({ value: t, level: n, minVersion: r, includeMargin: i, marginSize: a
|
|
|
4301
4435
|
calculatedImageSettings: p
|
|
4302
4436
|
};
|
|
4303
4437
|
}
|
|
4304
|
-
var
|
|
4438
|
+
var Ci = function() {
|
|
4305
4439
|
try {
|
|
4306
4440
|
new Path2D().addPath(new Path2D());
|
|
4307
4441
|
} catch {
|
|
4308
4442
|
return !1;
|
|
4309
4443
|
}
|
|
4310
4444
|
return !0;
|
|
4311
|
-
}(),
|
|
4312
|
-
let r = t, { value: i, size: a =
|
|
4445
|
+
}(), wi = e.forwardRef(function(t, n) {
|
|
4446
|
+
let r = t, { value: i, size: a = li, level: o = ui, bgColor: s = di, fgColor: c = fi, includeMargin: l = pi, minVersion: u = mi, boostLevel: d, marginSize: f, imageSettings: p } = r, m = ai(r, [
|
|
4313
4447
|
"value",
|
|
4314
4448
|
"size",
|
|
4315
4449
|
"level",
|
|
@@ -4320,9 +4454,9 @@ var pi = function() {
|
|
|
4320
4454
|
"boostLevel",
|
|
4321
4455
|
"marginSize",
|
|
4322
4456
|
"imageSettings"
|
|
4323
|
-
]), { style: h } = m, g =
|
|
4457
|
+
]), { style: h } = m, g = ai(m, ["style"]), _ = p?.src, v = e.useRef(null), y = e.useRef(null), b = e.useCallback((e) => {
|
|
4324
4458
|
v.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
|
|
4325
|
-
}, [n]), [ee, x] = e.useState(!1), { margin: te, cells: S, numCells: C, calculatedImageSettings: w } =
|
|
4459
|
+
}, [n]), [ee, x] = e.useState(!1), { margin: te, cells: S, numCells: C, calculatedImageSettings: w } = Si({
|
|
4326
4460
|
value: i,
|
|
4327
4461
|
level: o,
|
|
4328
4462
|
minVersion: u,
|
|
@@ -4337,11 +4471,11 @@ var pi = function() {
|
|
|
4337
4471
|
let e = v.current, t = e.getContext("2d");
|
|
4338
4472
|
if (!t) return;
|
|
4339
4473
|
let n = S, r = y.current, i = w != null && r !== null && r.complete && r.naturalHeight !== 0 && r.naturalWidth !== 0;
|
|
4340
|
-
i && w.excavation != null && (n =
|
|
4474
|
+
i && w.excavation != null && (n = yi(S, w.excavation));
|
|
4341
4475
|
let o = window.devicePixelRatio || 1;
|
|
4342
4476
|
e.height = e.width = a * o;
|
|
4343
4477
|
let l = a / C * o;
|
|
4344
|
-
t.scale(l, l), t.fillStyle = s, t.fillRect(0, 0, C, C), t.fillStyle = c,
|
|
4478
|
+
t.scale(l, l), t.fillStyle = s, t.fillRect(0, 0, C, C), t.fillStyle = c, Ci ? t.fill(new Path2D(vi(n, te))) : S.forEach(function(e, n) {
|
|
4345
4479
|
e.forEach(function(e, r) {
|
|
4346
4480
|
e && t.fillRect(r + te, n + te, 1, 1);
|
|
4347
4481
|
});
|
|
@@ -4350,7 +4484,7 @@ var pi = function() {
|
|
|
4350
4484
|
}), e.useEffect(() => {
|
|
4351
4485
|
x(!1);
|
|
4352
4486
|
}, [_]);
|
|
4353
|
-
let T =
|
|
4487
|
+
let T = ii({
|
|
4354
4488
|
height: a,
|
|
4355
4489
|
width: a
|
|
4356
4490
|
}, h), ne = null;
|
|
@@ -4363,7 +4497,7 @@ var pi = function() {
|
|
|
4363
4497
|
},
|
|
4364
4498
|
ref: y,
|
|
4365
4499
|
crossOrigin: w?.crossOrigin
|
|
4366
|
-
})), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("canvas",
|
|
4500
|
+
})), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("canvas", ii({
|
|
4367
4501
|
style: T,
|
|
4368
4502
|
height: a,
|
|
4369
4503
|
width: a,
|
|
@@ -4371,9 +4505,9 @@ var pi = function() {
|
|
|
4371
4505
|
role: "img"
|
|
4372
4506
|
}, g)), ne);
|
|
4373
4507
|
});
|
|
4374
|
-
|
|
4375
|
-
var
|
|
4376
|
-
let r = t, { value: i, size: a =
|
|
4508
|
+
wi.displayName = "QRCodeCanvas";
|
|
4509
|
+
var Ti = e.forwardRef(function(t, n) {
|
|
4510
|
+
let r = t, { value: i, size: a = li, level: o = ui, bgColor: s = di, fgColor: c = fi, includeMargin: l = pi, minVersion: u = mi, boostLevel: d, title: f, marginSize: p, imageSettings: m } = r, h = ai(r, [
|
|
4377
4511
|
"value",
|
|
4378
4512
|
"size",
|
|
4379
4513
|
"level",
|
|
@@ -4385,7 +4519,7 @@ var hi = e.forwardRef(function(t, n) {
|
|
|
4385
4519
|
"title",
|
|
4386
4520
|
"marginSize",
|
|
4387
4521
|
"imageSettings"
|
|
4388
|
-
]), { margin: g, cells: _, numCells: v, calculatedImageSettings: y } =
|
|
4522
|
+
]), { margin: g, cells: _, numCells: v, calculatedImageSettings: y } = Si({
|
|
4389
4523
|
value: i,
|
|
4390
4524
|
level: o,
|
|
4391
4525
|
minVersion: u,
|
|
@@ -4395,7 +4529,7 @@ var hi = e.forwardRef(function(t, n) {
|
|
|
4395
4529
|
imageSettings: m,
|
|
4396
4530
|
size: a
|
|
4397
4531
|
}), b = _, ee = null;
|
|
4398
|
-
m != null && y != null && (y.excavation != null && (b =
|
|
4532
|
+
m != null && y != null && (y.excavation != null && (b = yi(_, y.excavation)), ee = /* @__PURE__ */ e.createElement("image", {
|
|
4399
4533
|
href: m.src,
|
|
4400
4534
|
height: y.h,
|
|
4401
4535
|
width: y.w,
|
|
@@ -4405,8 +4539,8 @@ var hi = e.forwardRef(function(t, n) {
|
|
|
4405
4539
|
opacity: y.opacity,
|
|
4406
4540
|
crossOrigin: y.crossOrigin
|
|
4407
4541
|
}));
|
|
4408
|
-
let x =
|
|
4409
|
-
return /* @__PURE__ */ e.createElement("svg",
|
|
4542
|
+
let x = vi(b, g);
|
|
4543
|
+
return /* @__PURE__ */ e.createElement("svg", ii({
|
|
4410
4544
|
height: a,
|
|
4411
4545
|
width: a,
|
|
4412
4546
|
viewBox: `0 0 ${v} ${v}`,
|
|
@@ -4423,73 +4557,9 @@ var hi = e.forwardRef(function(t, n) {
|
|
|
4423
4557
|
}), ee);
|
|
4424
4558
|
});
|
|
4425
4559
|
//#endregion
|
|
4426
|
-
//#region ../ui-library/src/composites/agent-step-editor.tsx
|
|
4427
|
-
hi.displayName = "QRCodeSVG", d(), d(), d(), d(), d(), d();
|
|
4428
|
-
//#endregion
|
|
4429
|
-
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
4430
|
-
var gi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _i = gn, vi = (e, t) => (n) => {
|
|
4431
|
-
if (t?.variants == null) return _i(e, n?.class, n?.className);
|
|
4432
|
-
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
4433
|
-
let t = n?.[e], a = i?.[e];
|
|
4434
|
-
if (t === null) return null;
|
|
4435
|
-
let o = gi(t) || gi(a);
|
|
4436
|
-
return r[e][o];
|
|
4437
|
-
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
4438
|
-
let [n, r] = t;
|
|
4439
|
-
return r === void 0 || (e[n] = r), e;
|
|
4440
|
-
}, {});
|
|
4441
|
-
return _i(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
4442
|
-
let { class: n, className: r, ...a } = t;
|
|
4443
|
-
return Object.entries(a).every((e) => {
|
|
4444
|
-
let [t, n] = e;
|
|
4445
|
-
return Array.isArray(n) ? n.includes({
|
|
4446
|
-
...i,
|
|
4447
|
-
...o
|
|
4448
|
-
}[t]) : {
|
|
4449
|
-
...i,
|
|
4450
|
-
...o
|
|
4451
|
-
}[t] === n;
|
|
4452
|
-
}) ? [
|
|
4453
|
-
...e,
|
|
4454
|
-
n,
|
|
4455
|
-
r
|
|
4456
|
-
] : e;
|
|
4457
|
-
}, []), n?.class, n?.className);
|
|
4458
|
-
};
|
|
4459
|
-
//#endregion
|
|
4460
|
-
//#region ../ui-library/src/primitives/button.tsx
|
|
4461
|
-
d();
|
|
4462
|
-
var yi = vi("inline-flex items-center justify-center rounded-md font-medium transition-colors cursor-pointer disabled:opacity-50 disabled:pointer-events-none", {
|
|
4463
|
-
variants: {
|
|
4464
|
-
variant: {
|
|
4465
|
-
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
4466
|
-
secondary: "bg-surface text-foreground hover:bg-surface-hover",
|
|
4467
|
-
ghost: "hover:bg-surface-hover text-foreground-muted",
|
|
4468
|
-
danger: "bg-danger text-white hover:bg-danger/90",
|
|
4469
|
-
outline: "border border-border bg-transparent text-foreground hover:bg-surface-hover"
|
|
4470
|
-
},
|
|
4471
|
-
size: {
|
|
4472
|
-
sm: "h-7 px-2.5 text-xs gap-1.5",
|
|
4473
|
-
md: "h-8 px-3 text-sm gap-2",
|
|
4474
|
-
lg: "h-9 px-4 text-sm gap-2"
|
|
4475
|
-
}
|
|
4476
|
-
},
|
|
4477
|
-
defaultVariants: {
|
|
4478
|
-
variant: "primary",
|
|
4479
|
-
size: "sm"
|
|
4480
|
-
}
|
|
4481
|
-
}), V = c(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ C("button", {
|
|
4482
|
-
ref: i,
|
|
4483
|
-
className: z(yi({
|
|
4484
|
-
variant: t,
|
|
4485
|
-
size: n
|
|
4486
|
-
}), e),
|
|
4487
|
-
...r
|
|
4488
|
-
}));
|
|
4489
|
-
//#endregion
|
|
4490
4560
|
//#region ../ui-library/src/primitives/icon-button.tsx
|
|
4491
|
-
|
|
4492
|
-
var
|
|
4561
|
+
Ti.displayName = "QRCodeSVG", d(), d(), d(), d(), d(), d(), d();
|
|
4562
|
+
var Ei = Ur("inline-flex items-center justify-center rounded-md font-medium transition-colors cursor-pointer disabled:opacity-50 disabled:pointer-events-none", {
|
|
4493
4563
|
variants: {
|
|
4494
4564
|
variant: {
|
|
4495
4565
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -4508,9 +4578,9 @@ var bi = vi("inline-flex items-center justify-center rounded-md font-medium tran
|
|
|
4508
4578
|
variant: "primary",
|
|
4509
4579
|
size: "sm"
|
|
4510
4580
|
}
|
|
4511
|
-
}),
|
|
4581
|
+
}), Di = c(({ className: e, variant: t, size: n, icon: r, ...i }, a) => /* @__PURE__ */ C("button", {
|
|
4512
4582
|
ref: a,
|
|
4513
|
-
className: z(
|
|
4583
|
+
className: z(Ei({
|
|
4514
4584
|
variant: t,
|
|
4515
4585
|
size: n
|
|
4516
4586
|
}), e),
|
|
@@ -4518,51 +4588,8 @@ var bi = vi("inline-flex items-center justify-center rounded-md font-medium tran
|
|
|
4518
4588
|
children: /* @__PURE__ */ C(r, { className: "h-4 w-4" })
|
|
4519
4589
|
}));
|
|
4520
4590
|
//#endregion
|
|
4521
|
-
//#region ../ui-library/src/primitives/badge.tsx
|
|
4522
|
-
xi.displayName = "IconButton", d();
|
|
4523
|
-
var Si = vi("inline-flex items-center rounded-full text-xs font-medium px-2 py-0.5", {
|
|
4524
|
-
variants: {
|
|
4525
|
-
variant: {
|
|
4526
|
-
default: "bg-surface-hover text-foreground",
|
|
4527
|
-
success: "bg-success/15 text-success",
|
|
4528
|
-
warning: "bg-warning/15 text-warning",
|
|
4529
|
-
danger: "bg-danger/15 text-danger",
|
|
4530
|
-
info: "bg-info/15 text-info"
|
|
4531
|
-
},
|
|
4532
|
-
styleVariant: {
|
|
4533
|
-
solid: "",
|
|
4534
|
-
outline: "border bg-transparent"
|
|
4535
|
-
}
|
|
4536
|
-
},
|
|
4537
|
-
defaultVariants: {
|
|
4538
|
-
variant: "default",
|
|
4539
|
-
styleVariant: "solid"
|
|
4540
|
-
}
|
|
4541
|
-
}), Ci = c(({ className: e, variant: t, style: n, ...r }, i) => /* @__PURE__ */ C("span", {
|
|
4542
|
-
ref: i,
|
|
4543
|
-
className: z(Si({
|
|
4544
|
-
variant: t,
|
|
4545
|
-
styleVariant: n
|
|
4546
|
-
}), e),
|
|
4547
|
-
...r
|
|
4548
|
-
}));
|
|
4549
|
-
//#endregion
|
|
4550
|
-
//#region ../ui-library/src/primitives/card.tsx
|
|
4551
|
-
Ci.displayName = "Badge", d();
|
|
4552
|
-
var wi = vi("rounded-lg p-3", {
|
|
4553
|
-
variants: { variant: {
|
|
4554
|
-
flat: "bg-surface",
|
|
4555
|
-
bordered: "bg-surface border border-border"
|
|
4556
|
-
} },
|
|
4557
|
-
defaultVariants: { variant: "bordered" }
|
|
4558
|
-
}), Ti = c(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ C("div", {
|
|
4559
|
-
ref: r,
|
|
4560
|
-
className: z(wi({ variant: t }), e),
|
|
4561
|
-
...n
|
|
4562
|
-
}));
|
|
4563
|
-
//#endregion
|
|
4564
4591
|
//#region ../ui-library/src/primitives/label.tsx
|
|
4565
|
-
|
|
4592
|
+
Di.displayName = "IconButton", d();
|
|
4566
4593
|
var H = c(({ className: e, ...t }, n) => /* @__PURE__ */ C("label", {
|
|
4567
4594
|
ref: n,
|
|
4568
4595
|
className: z("text-[10px] uppercase tracking-wider text-foreground-muted font-medium", e),
|
|
@@ -4571,36 +4598,28 @@ var H = c(({ className: e, ...t }, n) => /* @__PURE__ */ C("label", {
|
|
|
4571
4598
|
//#endregion
|
|
4572
4599
|
//#region ../ui-library/src/primitives/separator.tsx
|
|
4573
4600
|
H.displayName = "Label", d();
|
|
4574
|
-
var
|
|
4601
|
+
var Oi = Ur("", {
|
|
4575
4602
|
variants: { orientation: {
|
|
4576
4603
|
horizontal: "h-px w-full bg-border-subtle",
|
|
4577
4604
|
vertical: "w-px h-full bg-border-subtle"
|
|
4578
4605
|
} },
|
|
4579
4606
|
defaultVariants: { orientation: "horizontal" }
|
|
4580
|
-
}),
|
|
4607
|
+
}), ki = c(({ className: e, orientation: t, ...n }, r) => /* @__PURE__ */ C("div", {
|
|
4581
4608
|
ref: r,
|
|
4582
4609
|
role: "separator",
|
|
4583
|
-
className: z(
|
|
4610
|
+
className: z(Oi({ orientation: t }), e),
|
|
4584
4611
|
...n
|
|
4585
4612
|
}));
|
|
4586
4613
|
//#endregion
|
|
4587
|
-
//#region ../ui-library/src/primitives/skeleton.tsx
|
|
4588
|
-
Di.displayName = "Separator", d();
|
|
4589
|
-
var Oi = c(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", {
|
|
4590
|
-
ref: n,
|
|
4591
|
-
className: z("animate-pulse bg-surface-hover rounded-md h-4 w-full", e),
|
|
4592
|
-
...t
|
|
4593
|
-
}));
|
|
4594
|
-
//#endregion
|
|
4595
4614
|
//#region ../ui-library/src/primitives/input.tsx
|
|
4596
|
-
|
|
4597
|
-
var
|
|
4615
|
+
ki.displayName = "Separator", d();
|
|
4616
|
+
var Ai = Ur("h-7 w-full px-2.5 text-xs bg-surface border rounded-md text-foreground placeholder:text-foreground-subtle focus:outline-none focus:ring-1 focus:ring-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed", {
|
|
4598
4617
|
variants: { state: {
|
|
4599
4618
|
default: "border-border",
|
|
4600
4619
|
error: "border-danger"
|
|
4601
4620
|
} },
|
|
4602
4621
|
defaultVariants: { state: "default" }
|
|
4603
|
-
}),
|
|
4622
|
+
}), ji = c(({ className: e, state: t, leftSlot: n, rightSlot: r, ...i }, a) => n || r ? /* @__PURE__ */ w("div", {
|
|
4604
4623
|
className: "relative flex items-center w-full",
|
|
4605
4624
|
children: [
|
|
4606
4625
|
n && /* @__PURE__ */ C("div", {
|
|
@@ -4609,7 +4628,7 @@ var ki = vi("h-7 w-full px-2.5 text-xs bg-surface border rounded-md text-foregro
|
|
|
4609
4628
|
}),
|
|
4610
4629
|
/* @__PURE__ */ C("input", {
|
|
4611
4630
|
ref: a,
|
|
4612
|
-
className: z(
|
|
4631
|
+
className: z(Ai({ state: t }), n ? "pl-7" : "", r ? "pr-7" : "", e),
|
|
4613
4632
|
...i
|
|
4614
4633
|
}),
|
|
4615
4634
|
r && /* @__PURE__ */ C("div", {
|
|
@@ -4619,31 +4638,12 @@ var ki = vi("h-7 w-full px-2.5 text-xs bg-surface border rounded-md text-foregro
|
|
|
4619
4638
|
]
|
|
4620
4639
|
}) : /* @__PURE__ */ C("input", {
|
|
4621
4640
|
ref: a,
|
|
4622
|
-
className: z(
|
|
4641
|
+
className: z(Ai({ state: t }), e),
|
|
4623
4642
|
...i
|
|
4624
4643
|
}));
|
|
4625
4644
|
//#endregion
|
|
4626
|
-
//#region ../ui-library/src/primitives/select.tsx
|
|
4627
|
-
Ai.displayName = "Input", d();
|
|
4628
|
-
var ji = c(({ className: e, options: t, disabled: n, ...r }, i) => /* @__PURE__ */ w("div", {
|
|
4629
|
-
className: "relative w-full",
|
|
4630
|
-
children: [/* @__PURE__ */ C("select", {
|
|
4631
|
-
ref: i,
|
|
4632
|
-
disabled: n,
|
|
4633
|
-
className: z("h-7 w-full px-2.5 text-xs bg-surface border border-border rounded-md text-foreground appearance-none pr-7 focus:outline-none focus:ring-1 focus:ring-primary", "disabled:opacity-50 disabled:cursor-not-allowed", e),
|
|
4634
|
-
...r,
|
|
4635
|
-
children: t.map((e) => /* @__PURE__ */ C("option", {
|
|
4636
|
-
value: e.value,
|
|
4637
|
-
children: e.label
|
|
4638
|
-
}, e.value))
|
|
4639
|
-
}), /* @__PURE__ */ C("div", {
|
|
4640
|
-
className: z("absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none text-foreground-muted", n === !0 ? "opacity-50" : ""),
|
|
4641
|
-
children: /* @__PURE__ */ C(y, { className: "h-3.5 w-3.5" })
|
|
4642
|
-
})]
|
|
4643
|
-
}));
|
|
4644
|
-
//#endregion
|
|
4645
4645
|
//#region ../ui-library/src/primitives/checkbox.tsx
|
|
4646
|
-
ji.displayName = "
|
|
4646
|
+
ji.displayName = "Input", d();
|
|
4647
4647
|
var Mi = c(({ className: e, ...t }, n) => /* @__PURE__ */ C("input", {
|
|
4648
4648
|
ref: n,
|
|
4649
4649
|
type: "checkbox",
|
|
@@ -4691,7 +4691,7 @@ function Ii({ children: e, open: i, onOpenChange: a }) {
|
|
|
4691
4691
|
children: e
|
|
4692
4692
|
});
|
|
4693
4693
|
}
|
|
4694
|
-
var Li =
|
|
4694
|
+
var Li = Ur("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 m-0 w-[calc(100vw-2rem)] bg-background-elevated text-foreground border border-border rounded-lg p-4 backdrop:bg-black/50 backdrop:backdrop-blur-sm max-h-[calc(100dvh-2rem-2*max(env(safe-area-inset-top),env(safe-area-inset-bottom)))] [&:not([open])]:hidden", {
|
|
4695
4695
|
variants: {
|
|
4696
4696
|
width: {
|
|
4697
4697
|
sm: "max-w-sm",
|
|
@@ -4787,15 +4787,15 @@ function Hi({ className: e, ...t }) {
|
|
|
4787
4787
|
}
|
|
4788
4788
|
//#endregion
|
|
4789
4789
|
//#region ../ui-library/src/primitives/scroll-area.tsx
|
|
4790
|
-
d(), l(null), d(), d(),
|
|
4790
|
+
d(), l(null), d(), d(), l(null), d(), l(null), d();
|
|
4791
4791
|
var Ui = c(({ className: e, ...t }, n) => /* @__PURE__ */ C("div", {
|
|
4792
4792
|
ref: n,
|
|
4793
4793
|
className: z("overflow-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-surface-hover [&::-webkit-scrollbar-thumb]:rounded-full", e),
|
|
4794
4794
|
...t
|
|
4795
4795
|
}));
|
|
4796
4796
|
//#endregion
|
|
4797
|
-
//#region ../ui-library/src/composites/
|
|
4798
|
-
Ui.displayName = "ScrollArea", d(), d(), d(), d(), d(), d(), d(), d(), d(), d(), d()
|
|
4797
|
+
//#region ../ui-library/src/composites/copy-button.tsx
|
|
4798
|
+
Ui.displayName = "ScrollArea", d(), d(), d(), d(), d(), d(), d(), d(), d(), d(), d();
|
|
4799
4799
|
//#endregion
|
|
4800
4800
|
//#region ../ui-library/src/composites/detection-colors.ts
|
|
4801
4801
|
var Wi = {
|
|
@@ -15696,7 +15696,7 @@ var P_ = class {
|
|
|
15696
15696
|
} catch {}
|
|
15697
15697
|
}
|
|
15698
15698
|
};
|
|
15699
|
-
d(), new P_(), d(), d(), d(), i(() => import("./MaskShapeCanvas-BEVxAjNq.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), i(() => import("./MotionZonesSettings-
|
|
15699
|
+
d(), new P_(), d(), d(), d(), i(() => import("./MaskShapeCanvas-BEVxAjNq.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), i(() => import("./MotionZonesSettings-a5Xl2ZE4.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./SceneMonitorEditor-8tp57K86.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), i(() => import("./PrivacyMaskSettings-B2UgOTdb.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
|
|
15700
15700
|
//#endregion
|
|
15701
15701
|
//#region src/ui/osd-page-model.ts
|
|
15702
15702
|
function F_() {
|
|
@@ -15886,7 +15886,7 @@ function sv({ source: e, sources: t, onChange: n }) {
|
|
|
15886
15886
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
15887
15887
|
htmlFor: "osd-source-kind",
|
|
15888
15888
|
children: "Source"
|
|
15889
|
-
}), /* @__PURE__ */ C(
|
|
15889
|
+
}), /* @__PURE__ */ C(qr, {
|
|
15890
15890
|
id: "osd-source-kind",
|
|
15891
15891
|
value: e.kind,
|
|
15892
15892
|
options: av,
|
|
@@ -15922,7 +15922,7 @@ function sv({ source: e, sources: t, onChange: n }) {
|
|
|
15922
15922
|
e.kind === "static" && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
15923
15923
|
htmlFor: "osd-source-static-text",
|
|
15924
15924
|
children: "Text"
|
|
15925
|
-
}), /* @__PURE__ */ C(
|
|
15925
|
+
}), /* @__PURE__ */ C(ji, {
|
|
15926
15926
|
id: "osd-source-static-text",
|
|
15927
15927
|
value: e.text,
|
|
15928
15928
|
maxLength: 64,
|
|
@@ -15936,7 +15936,7 @@ function sv({ source: e, sources: t, onChange: n }) {
|
|
|
15936
15936
|
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
15937
15937
|
htmlFor: "osd-source-clock-pattern",
|
|
15938
15938
|
children: "Pattern"
|
|
15939
|
-
}), /* @__PURE__ */ C(
|
|
15939
|
+
}), /* @__PURE__ */ C(ji, {
|
|
15940
15940
|
id: "osd-source-clock-pattern",
|
|
15941
15941
|
value: e.pattern,
|
|
15942
15942
|
placeholder: "HH:mm",
|
|
@@ -15948,7 +15948,7 @@ function sv({ source: e, sources: t, onChange: n }) {
|
|
|
15948
15948
|
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
15949
15949
|
htmlFor: "osd-source-clock-timezone",
|
|
15950
15950
|
children: "Timezone (optional)"
|
|
15951
|
-
}), /* @__PURE__ */ C(
|
|
15951
|
+
}), /* @__PURE__ */ C(ji, {
|
|
15952
15952
|
id: "osd-source-clock-timezone",
|
|
15953
15953
|
value: e.timezone ?? "",
|
|
15954
15954
|
placeholder: "Server zone",
|
|
@@ -15965,7 +15965,7 @@ function sv({ source: e, sources: t, onChange: n }) {
|
|
|
15965
15965
|
}), t.length === 0 ? /* @__PURE__ */ C("p", {
|
|
15966
15966
|
className: "text-xs text-foreground-muted",
|
|
15967
15967
|
children: "No bindable device-state values were found for this camera."
|
|
15968
|
-
}) : /* @__PURE__ */ C(
|
|
15968
|
+
}) : /* @__PURE__ */ C(qr, {
|
|
15969
15969
|
id: "osd-source-device-state",
|
|
15970
15970
|
value: ov({
|
|
15971
15971
|
deviceId: e.deviceId ?? 0,
|
|
@@ -15992,7 +15992,7 @@ function sv({ source: e, sources: t, onChange: n }) {
|
|
|
15992
15992
|
e.kind === "latest-recognition" && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
15993
15993
|
htmlFor: "osd-source-recognition",
|
|
15994
15994
|
children: "Recognition"
|
|
15995
|
-
}), /* @__PURE__ */ C(
|
|
15995
|
+
}), /* @__PURE__ */ C(qr, {
|
|
15996
15996
|
id: "osd-source-recognition",
|
|
15997
15997
|
value: e.recognition,
|
|
15998
15998
|
options: [{
|
|
@@ -16028,7 +16028,7 @@ function cv({ valueMap: e, onChange: t }) {
|
|
|
16028
16028
|
n.map(([e, t], i) => /* @__PURE__ */ w("div", {
|
|
16029
16029
|
className: "flex items-center gap-2",
|
|
16030
16030
|
children: [
|
|
16031
|
-
/* @__PURE__ */ C(
|
|
16031
|
+
/* @__PURE__ */ C(ji, {
|
|
16032
16032
|
"aria-label": `Value map key ${i + 1}`,
|
|
16033
16033
|
value: e,
|
|
16034
16034
|
placeholder: "raw value",
|
|
@@ -16041,7 +16041,7 @@ function cv({ valueMap: e, onChange: t }) {
|
|
|
16041
16041
|
className: "text-foreground-muted text-xs",
|
|
16042
16042
|
children: "→"
|
|
16043
16043
|
}),
|
|
16044
|
-
/* @__PURE__ */ C(
|
|
16044
|
+
/* @__PURE__ */ C(ji, {
|
|
16045
16045
|
"aria-label": `Value map text ${i + 1}`,
|
|
16046
16046
|
value: t,
|
|
16047
16047
|
placeholder: "display text",
|
|
@@ -16173,7 +16173,7 @@ function dv({ conditions: e, supported: t, devices: n, deviceStateSnapshot: r, o
|
|
|
16173
16173
|
children: "Remove"
|
|
16174
16174
|
})]
|
|
16175
16175
|
}),
|
|
16176
|
-
/* @__PURE__ */ C(
|
|
16176
|
+
/* @__PURE__ */ C(qr, {
|
|
16177
16177
|
"aria-label": "Device-state condition device",
|
|
16178
16178
|
value: e?.deviceState?.deviceId === void 0 ? "" : String(e.deviceState.deviceId),
|
|
16179
16179
|
options: [{
|
|
@@ -16306,7 +16306,7 @@ function fv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16306
16306
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
16307
16307
|
htmlFor: "osd-template",
|
|
16308
16308
|
children: "Template"
|
|
16309
|
-
}), /* @__PURE__ */ C(
|
|
16309
|
+
}), /* @__PURE__ */ C(ji, {
|
|
16310
16310
|
id: "osd-template",
|
|
16311
16311
|
value: c.template,
|
|
16312
16312
|
maxLength: 96,
|
|
@@ -16318,7 +16318,7 @@ function fv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16318
16318
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
16319
16319
|
htmlFor: "osd-unit",
|
|
16320
16320
|
children: "Unit label"
|
|
16321
|
-
}), /* @__PURE__ */ C(
|
|
16321
|
+
}), /* @__PURE__ */ C(ji, {
|
|
16322
16322
|
id: "osd-unit",
|
|
16323
16323
|
value: c.unitLabel ?? "",
|
|
16324
16324
|
maxLength: 8,
|
|
@@ -16330,7 +16330,7 @@ function fv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16330
16330
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
16331
16331
|
htmlFor: "osd-max-chars",
|
|
16332
16332
|
children: "Max characters"
|
|
16333
|
-
}), /* @__PURE__ */ C(
|
|
16333
|
+
}), /* @__PURE__ */ C(ji, {
|
|
16334
16334
|
id: "osd-max-chars",
|
|
16335
16335
|
type: "number",
|
|
16336
16336
|
min: 4,
|
|
@@ -16344,7 +16344,7 @@ function fv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16344
16344
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(H, {
|
|
16345
16345
|
htmlFor: "osd-max-decimals",
|
|
16346
16346
|
children: "Max decimals"
|
|
16347
|
-
}), /* @__PURE__ */ C(
|
|
16347
|
+
}), /* @__PURE__ */ C(ji, {
|
|
16348
16348
|
id: "osd-max-decimals",
|
|
16349
16349
|
type: "number",
|
|
16350
16350
|
min: 0,
|
|
@@ -16360,7 +16360,7 @@ function fv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16360
16360
|
children: [/* @__PURE__ */ C(H, {
|
|
16361
16361
|
htmlFor: "osd-fallback",
|
|
16362
16362
|
children: "Fallback text (shown when gated/unreadable)"
|
|
16363
|
-
}), /* @__PURE__ */ C(
|
|
16363
|
+
}), /* @__PURE__ */ C(ji, {
|
|
16364
16364
|
id: "osd-fallback",
|
|
16365
16365
|
value: c.fallbackText,
|
|
16366
16366
|
maxLength: 64,
|
|
@@ -16404,7 +16404,7 @@ function fv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16404
16404
|
}),
|
|
16405
16405
|
f && /* @__PURE__ */ w("div", {
|
|
16406
16406
|
className: "flex items-center gap-2 text-xs",
|
|
16407
|
-
children: [/* @__PURE__ */ C(
|
|
16407
|
+
children: [/* @__PURE__ */ C(Gr, {
|
|
16408
16408
|
variant: X_(f.outcome),
|
|
16409
16409
|
children: J_(f.outcome)
|
|
16410
16410
|
}), /* @__PURE__ */ C("span", {
|
|
@@ -16497,7 +16497,7 @@ function pv({ source: e, destinations: t, onDuplicated: n }) {
|
|
|
16497
16497
|
e.name,
|
|
16498
16498
|
"” onto the camera you pick below, replacing its current OSD configuration."
|
|
16499
16499
|
] })] }),
|
|
16500
|
-
/* @__PURE__ */ C(
|
|
16500
|
+
/* @__PURE__ */ C(qr, {
|
|
16501
16501
|
"aria-label": "Destination camera",
|
|
16502
16502
|
value: o === void 0 ? "" : String(o),
|
|
16503
16503
|
options: [{
|
|
@@ -16576,7 +16576,7 @@ function hv({ camera: e, supportsOsd: t, isExpanded: n, onToggleExpand: i, allDe
|
|
|
16576
16576
|
}),
|
|
16577
16577
|
/* @__PURE__ */ C("td", {
|
|
16578
16578
|
className: "px-2 py-2",
|
|
16579
|
-
children: /* @__PURE__ */ C(
|
|
16579
|
+
children: /* @__PURE__ */ C(Gr, {
|
|
16580
16580
|
variant: W_(v),
|
|
16581
16581
|
children: H_(v)
|
|
16582
16582
|
})
|
|
@@ -16585,7 +16585,7 @@ function hv({ camera: e, supportsOsd: t, isExpanded: n, onToggleExpand: i, allDe
|
|
|
16585
16585
|
className: "px-2 py-2",
|
|
16586
16586
|
children: t ? ee.length > 0 ? /* @__PURE__ */ C("div", {
|
|
16587
16587
|
className: "flex flex-wrap gap-1",
|
|
16588
|
-
children: ee.map((e) => /* @__PURE__ */ C(
|
|
16588
|
+
children: ee.map((e) => /* @__PURE__ */ C(Gr, {
|
|
16589
16589
|
variant: "default",
|
|
16590
16590
|
style: "outline",
|
|
16591
16591
|
children: e.label
|
|
@@ -16636,7 +16636,7 @@ function hv({ camera: e, supportsOsd: t, isExpanded: n, onToggleExpand: i, allDe
|
|
|
16636
16636
|
className: "text-xs text-foreground-muted",
|
|
16637
16637
|
children: "This camera does not expose writable text-overlay slots."
|
|
16638
16638
|
}),
|
|
16639
|
-
x && /* @__PURE__ */ C(
|
|
16639
|
+
x && /* @__PURE__ */ C(Xr, {
|
|
16640
16640
|
message: x.message,
|
|
16641
16641
|
title: `Could not load ${e.name}`
|
|
16642
16642
|
}),
|
|
@@ -16663,12 +16663,12 @@ function hv({ camera: e, supportsOsd: t, isExpanded: n, onToggleExpand: i, allDe
|
|
|
16663
16663
|
className: "text-sm font-medium text-foreground",
|
|
16664
16664
|
children: t.slotId
|
|
16665
16665
|
}),
|
|
16666
|
-
/* @__PURE__ */ C(
|
|
16667
|
-
t.readOnly && /* @__PURE__ */ C(
|
|
16666
|
+
/* @__PURE__ */ C(Gr, { children: t.kind }),
|
|
16667
|
+
t.readOnly && /* @__PURE__ */ C(Gr, {
|
|
16668
16668
|
variant: "warning",
|
|
16669
16669
|
children: "read-only"
|
|
16670
16670
|
}),
|
|
16671
|
-
!t.cameraEnabled && /* @__PURE__ */ C(
|
|
16671
|
+
!t.cameraEnabled && /* @__PURE__ */ C(Gr, {
|
|
16672
16672
|
variant: "default",
|
|
16673
16673
|
children: "camera off"
|
|
16674
16674
|
})
|
|
@@ -16787,11 +16787,11 @@ function _v(e) {
|
|
|
16787
16787
|
children: l ? "Loading cameras…" : `${r.length} cameras · ${a.size} expose writable overlays`
|
|
16788
16788
|
})] })
|
|
16789
16789
|
}),
|
|
16790
|
-
c && /* @__PURE__ */ C(
|
|
16790
|
+
c && /* @__PURE__ */ C(Xr, {
|
|
16791
16791
|
message: c.message,
|
|
16792
16792
|
title: "Could not load OSD data"
|
|
16793
16793
|
}),
|
|
16794
|
-
!l && r.length === 0 && /* @__PURE__ */ C(
|
|
16794
|
+
!l && r.length === 0 && /* @__PURE__ */ C(Qr, { children: /* @__PURE__ */ C("p", {
|
|
16795
16795
|
className: "text-sm text-foreground-muted",
|
|
16796
16796
|
children: "No cameras are registered."
|
|
16797
16797
|
}) }),
|