@camstack/addon-training 0.1.41 → 0.1.42

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.
Files changed (33) hide show
  1. package/dist/{MotionZonesSettings-DBtAXpEm.mjs → MotionZonesSettings-DZgoN8V_.mjs} +55 -55
  2. package/dist/{PrivacyMaskSettings-C3tyM8s9.mjs → PrivacyMaskSettings-7L2OX3dp.mjs} +82 -86
  3. package/dist/{SceneMonitorEditor-D6Q3z17B.mjs → SceneMonitorEditor-CwULmLkP.mjs} +318 -339
  4. package/dist/_stub.js +5170 -9054
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CHYHBYUh.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-DzsEYUgl.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-LhaXEy4l.mjs +26 -0
  7. package/dist/addon-training.css +1 -1
  8. package/dist/chevron-right-D3StkdcR.mjs +10 -0
  9. package/dist/createLucideIcon-CPP1Jzoz.mjs +44 -0
  10. package/dist/{dist-CbTzxq0W.mjs → dist-BtEl1kYQ.mjs} +47970 -29426
  11. package/dist/{dist-CJXTMYT2.js → dist-wRpOWEq6.js} +47970 -29426
  12. package/dist/{grid-2x2-tkDBCRad.mjs → grid-2x2-Yngdckwo.mjs} +1 -1
  13. package/dist/{hostInit-GIXFhqMx.mjs → hostInit-1OJB0wPE.mjs} +2 -2
  14. package/dist/icons-C4_Ji5S0.mjs +27953 -0
  15. package/dist/index.js +1 -1
  16. package/dist/mic-off-DPNSd6G7.mjs +32 -0
  17. package/dist/orchestrator/training.addon.js +1 -1
  18. package/dist/orchestrator/training.addon.mjs +1 -1
  19. package/dist/{player-overlays-DMLlEwmn.mjs → player-overlays-CqD89xkd.mjs} +21 -28
  20. package/dist/providers/modal/training-modal.addon.js +1 -1
  21. package/dist/providers/modal/training-modal.addon.mjs +1 -1
  22. package/dist/remoteEntry.js +1 -1
  23. package/dist/responsive-Dwyuxd3q.mjs +84 -0
  24. package/dist/rotate-ccw-Dak-lXgZ.mjs +52 -0
  25. package/dist/{scene-monitor-copy-B-6xPmDm.mjs → scene-monitor-copy-DX2u-htD.mjs} +40 -91
  26. package/dist/settings-2-Cgiv3kQb.mjs +25 -0
  27. package/dist/{square-D49AvsjC.mjs → square-B_679zIX.mjs} +4 -29
  28. package/dist/{trash-2-BwTJ2h2p.mjs → trash-2-DC8LDYlI.mjs} +1 -1
  29. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-B3ZFopEz.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-D0zbWJUR.mjs} +1 -1
  30. package/dist/zoom-out-BJoVDYa3.mjs +2729 -0
  31. package/package.json +1 -1
  32. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-NCFNuw0Q.mjs +0 -26
  33. package/dist/responsive-C0tM8Z6S.mjs +0 -126
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dist-CJXTMYT2.js");
2
+ require("./dist-wRpOWEq6.js");
3
3
  const require_orchestrator_training_addon = require("./orchestrator/training.addon.js");
4
4
  const require_providers_modal_training_modal_addon = require("./providers/modal/training-modal.addon.js");
5
5
  //#region src/providers/fake/fake-provider.ts
@@ -0,0 +1,32 @@
1
+ import { t as e } from "./createLucideIcon-CPP1Jzoz.mjs";
2
+ var t = e("hexagon", [["path", {
3
+ 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",
4
+ key: "yt0hxn"
5
+ }]]), n = e("mic-off", [
6
+ ["path", {
7
+ d: "M12 19v3",
8
+ key: "npa21l"
9
+ }],
10
+ ["path", {
11
+ d: "M15 9.34V5a3 3 0 0 0-5.68-1.33",
12
+ key: "1gzdoj"
13
+ }],
14
+ ["path", {
15
+ d: "M16.95 16.95A7 7 0 0 1 5 12v-2",
16
+ key: "cqa7eg"
17
+ }],
18
+ ["path", {
19
+ d: "M18.89 13.23A7 7 0 0 0 19 12v-2",
20
+ key: "16hl24"
21
+ }],
22
+ ["path", {
23
+ d: "m2 2 20 20",
24
+ key: "1ooewy"
25
+ }],
26
+ ["path", {
27
+ d: "M9 9v3a3 3 0 0 0 5.12 2.12",
28
+ key: "r2i35w"
29
+ }]
30
+ ]);
31
+ //#endregion
32
+ export { t as n, n as t };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-CJXTMYT2.js");
2
+ const require_dist = require("../dist-wRpOWEq6.js");
3
3
  let node_path = require("node:path");
4
4
  node_path = require_dist.__toESM(node_path);
5
5
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { a as addonPagesSourceCapability, i as TrainingResultSchema, l as BaseAddon, n as TrainingJobSchema, o as parseTrainingEventLine, r as TrainingJobSpecSchema, s as trainingCapability, t as TRAINING_JOB_SCHEMA } from "../dist-CbTzxq0W.mjs";
1
+ import { a as addonPagesSourceCapability, i as TrainingResultSchema, l as BaseAddon, n as TrainingJobSchema, o as parseTrainingEventLine, r as TrainingJobSpecSchema, s as trainingCapability, t as TRAINING_JOB_SCHEMA } from "../dist-BtEl1kYQ.mjs";
2
2
  import path from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { createReadStream } from "node:fs";
@@ -1,66 +1,59 @@
1
1
  import { S as e, _ as t, l as n, u as r } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-DeDbF7NI.mjs";
2
- import { b as i, y as a } from "./responsive-C0tM8Z6S.mjs";
3
- import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
4
- var l = i("chevron-down", [["path", {
5
- d: "m6 9 6 6 6-6",
6
- key: "qrunsl"
7
- }]]), u = i("chevron-right", [["path", {
8
- d: "m9 18 6-6-6-6",
9
- key: "mthhwq"
10
- }]]);
11
- //#endregion
2
+ import { n as i, t as a } from "./chevron-right-D3StkdcR.mjs";
3
+ import { y as o } from "./responsive-Dwyuxd3q.mjs";
4
+ import { n as s, r as c, t as l } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
12
5
  //#region ../ui-library/src/composites/widget-panel.tsx
13
6
  e();
14
- function d({ title: e, icon: n, headerRight: r, collapsible: i = !1, defaultOpen: a = !0, bodyClassName: d = "p-3", children: f }) {
15
- let [p, m] = t(a), h = !i || p, g = /* @__PURE__ */ s(c, { children: [/* @__PURE__ */ s("span", {
7
+ function u({ title: e, icon: n, headerRight: r, collapsible: o = !1, defaultOpen: u = !0, bodyClassName: d = "p-3", children: f }) {
8
+ let [p, m] = t(u), h = !o || p, g = /* @__PURE__ */ c(l, { children: [/* @__PURE__ */ c("span", {
16
9
  className: "flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-foreground",
17
10
  children: [n, e]
18
- }), i ? o(p ? l : u, { className: "h-3.5 w-3.5 text-foreground-subtle" }) : r] }), _ = `px-4 py-2 flex items-center justify-between ${h ? "border-b border-border" : ""}`;
19
- return /* @__PURE__ */ s("div", {
11
+ }), o ? s(p ? i : a, { className: "h-3.5 w-3.5 text-foreground-subtle" }) : r] }), _ = `px-4 py-2 flex items-center justify-between ${h ? "border-b border-border" : ""}`;
12
+ return /* @__PURE__ */ c("div", {
20
13
  className: "rounded-lg border border-border bg-surface overflow-hidden",
21
- children: [i ? /* @__PURE__ */ o("button", {
14
+ children: [o ? /* @__PURE__ */ s("button", {
22
15
  type: "button",
23
16
  onClick: () => m((e) => !e),
24
17
  className: `w-full text-left ${_}`,
25
18
  children: g
26
- }) : /* @__PURE__ */ o("div", {
19
+ }) : /* @__PURE__ */ s("div", {
27
20
  className: _,
28
21
  children: g
29
- }), h ? /* @__PURE__ */ o("div", {
22
+ }), h ? /* @__PURE__ */ s("div", {
30
23
  className: d,
31
24
  children: f
32
25
  }) : null]
33
26
  });
34
27
  }
35
- function f({ label: e, icon: t, children: n, footer: r }) {
36
- return /* @__PURE__ */ s("div", {
28
+ function d({ label: e, icon: t, children: n, footer: r }) {
29
+ return /* @__PURE__ */ c("div", {
37
30
  className: "min-w-0 rounded-lg border border-border bg-surface p-2 sm:p-2.5",
38
31
  children: [
39
- /* @__PURE__ */ s("div", {
32
+ /* @__PURE__ */ c("div", {
40
33
  className: "mb-0.5 flex min-w-0 items-center gap-1.5 text-[10px] uppercase tracking-wider text-foreground-subtle",
41
- children: [t, /* @__PURE__ */ o("span", {
34
+ children: [t, /* @__PURE__ */ s("span", {
42
35
  className: "min-w-0 truncate",
43
36
  children: e
44
37
  })]
45
38
  }),
46
- /* @__PURE__ */ o("div", {
39
+ /* @__PURE__ */ s("div", {
47
40
  className: "truncate text-lg font-semibold leading-tight text-foreground",
48
41
  children: n
49
42
  }),
50
- r == null ? null : /* @__PURE__ */ o("div", {
43
+ r == null ? null : /* @__PURE__ */ s("div", {
51
44
  className: "mt-0.5 truncate text-[10px] text-foreground-subtle",
52
45
  children: r
53
46
  })
54
47
  ]
55
48
  });
56
49
  }
57
- e(), a("camstack:player-overlays-state", null);
58
- var p = a("camstack:player-overlays-actions", null);
59
- function m(e) {
60
- let t = n(p);
50
+ e(), o("camstack:player-overlays-state", null);
51
+ var f = o("camstack:player-overlays-actions", null);
52
+ function p(e) {
53
+ let t = n(f);
61
54
  r(() => {
62
55
  if (!(!t || !e)) return t.setLayer(e), () => t.removeLayer(e.id);
63
56
  }, [t, e]);
64
57
  }
65
58
  //#endregion
66
- export { l as a, u as i, f as n, d as r, m as t };
59
+ export { d as n, u as r, p as t };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../../dist-CJXTMYT2.js");
2
+ const require_dist = require("../../dist-wRpOWEq6.js");
3
3
  let node_path = require("node:path");
4
4
  node_path = require_dist.__toESM(node_path, 1);
5
5
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { _ as number, b as string, c as trainingProviderCapability, d as arrayItemFieldPath, f as globalSecretScope, g as boolean, h as toSecretFieldView, l as BaseAddon, m as isSecretMarker, p as isSecretClear, u as SECRET_CLEAR, v as object, y as record } from "../../dist-CbTzxq0W.mjs";
1
+ import { _ as number, b as string, c as trainingProviderCapability, d as arrayItemFieldPath, f as globalSecretScope, g as boolean, h as toSecretFieldView, l as BaseAddon, m as isSecretMarker, p as isSecretClear, u as SECRET_CLEAR, v as object, y as record } from "../../dist-BtEl1kYQ.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import path, { dirname, posix } from "node:path";
4
4
  import { createHash, createPrivateKey, createPublicKey, createSign, randomBytes, randomUUID } from "node:crypto";
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-B3ZFopEz.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-D0zbWJUR.mjs";
2
2
  export { t as get, e as init };
@@ -0,0 +1,84 @@
1
+ import { S as e, _ as t, c as n, l as r, m as i, t as a, u as o, v as s } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-DeDbF7NI.mjs";
2
+ import { v as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-LhaXEy4l.mjs";
3
+ import "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
4
+ //#region ../ui-library/src/lib/shared-context.ts
5
+ e();
6
+ function l(e, t) {
7
+ if (typeof globalThis > "u") return a(t);
8
+ let n = globalThis.__camstackSharedContexts, r = n ?? /* @__PURE__ */ new Map();
9
+ n || (globalThis.__camstackSharedContexts = r);
10
+ let i = r.get(e);
11
+ if (i) return i;
12
+ let o = a(t);
13
+ return r.set(e, o), o;
14
+ }
15
+ //#endregion
16
+ //#region ../ui-library/src/contexts/system-context.tsx
17
+ e();
18
+ var u = l("camstack:system", null);
19
+ function d() {
20
+ let e = r(u);
21
+ if (!e) throw Error("useSystem(): no <SystemProvider> in tree");
22
+ return e;
23
+ }
24
+ //#endregion
25
+ //#region ../ui-library/src/hooks/use-device-proxy.ts
26
+ e();
27
+ var f = "capability.binding-changed";
28
+ function p(e, n) {
29
+ let [r, a] = t(null);
30
+ return o(() => {
31
+ if (n === null) {
32
+ a(null);
33
+ return;
34
+ }
35
+ let t = !1, r = async () => {
36
+ try {
37
+ let r = await e.deviceManager.getBindings.query({ deviceId: n });
38
+ t || a(r);
39
+ } catch {
40
+ t || a((e) => e);
41
+ }
42
+ };
43
+ r();
44
+ let i = e.live?.onEvent.subscribe({ category: f }, { onData: (e) => {
45
+ let t = e.data?.source;
46
+ if (!t) {
47
+ r();
48
+ return;
49
+ }
50
+ t.type === "device" && t.id === n && r();
51
+ } });
52
+ return () => {
53
+ t = !0, i?.unsubscribe();
54
+ };
55
+ }, [e, n]), i(() => r ? c(e, r) : null, [e, r]);
56
+ }
57
+ function m(e) {
58
+ let t = n((t) => e ? e.subscribe(() => t()) : () => void 0, [e]), r = n(() => e?.value, [e]);
59
+ return s(t, r, r);
60
+ }
61
+ function h(e, t, n) {
62
+ let r = p(e, t);
63
+ return m(r ? n(r.state) : void 0);
64
+ }
65
+ //#endregion
66
+ //#region ../ui-library/src/lib/cap-error.ts
67
+ function g(e) {
68
+ if (typeof e != "object" || !e) return null;
69
+ let t = Reflect.get(e, "data");
70
+ if (typeof t == "object" && t) {
71
+ let e = Reflect.get(t, "capRouteReason");
72
+ if (typeof e == "string") return e;
73
+ }
74
+ return null;
75
+ }
76
+ function _(e) {
77
+ let t = g(e);
78
+ return t === null ? (e instanceof Error ? e.message : String(e)).includes("provider not available") : t === "no-provider" || t === "node-offline";
79
+ }
80
+ //#endregion
81
+ //#region ../ui-library/src/lib/responsive.ts
82
+ var v = "rounded-lg border border-border bg-surface overflow-hidden", y = "border-b border-border px-3 sm:px-4 py-1.5 sm:py-2", b = "p-2 sm:p-3 lg:p-4", x = "grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4", S = "flex min-w-0 flex-col gap-0.5 py-1.5 sm:flex-row sm:items-center", C = "min-w-0 text-[11px] leading-tight text-foreground-subtle sm:w-32 sm:shrink-0 sm:pr-2", w = "flex w-full min-w-0 items-center gap-1 sm:flex-1", T = "min-w-0 break-all text-xs text-foreground sm:truncate", E = "text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider", D = "text-[10px] text-foreground-subtle", O = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", k = "border-primary/50 bg-primary/15 text-primary", A = "border-border bg-surface text-foreground-subtle hover:bg-surface-hover";
83
+ //#endregion
84
+ export { m as _, b as a, S as c, T as d, D as f, h as g, p as h, x as i, C as l, _ as m, O as n, v as o, E as p, A as r, y as s, k as t, w as u, d as v, l as y };
@@ -0,0 +1,52 @@
1
+ import { t as e } from "./createLucideIcon-CPP1Jzoz.mjs";
2
+ var t = e("camera", [["path", {
3
+ d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
4
+ key: "18u6gg"
5
+ }], ["circle", {
6
+ cx: "12",
7
+ cy: "13",
8
+ r: "3",
9
+ key: "1vg3eu"
10
+ }]]), n = e("image-off", [
11
+ ["line", {
12
+ x1: "2",
13
+ x2: "22",
14
+ y1: "2",
15
+ y2: "22",
16
+ key: "a6p6uj"
17
+ }],
18
+ ["path", {
19
+ d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
20
+ key: "1bzlo9"
21
+ }],
22
+ ["line", {
23
+ x1: "13.5",
24
+ x2: "6",
25
+ y1: "13.5",
26
+ y2: "21",
27
+ key: "1q0aeu"
28
+ }],
29
+ ["line", {
30
+ x1: "18",
31
+ x2: "21",
32
+ y1: "12",
33
+ y2: "15",
34
+ key: "5mozeu"
35
+ }],
36
+ ["path", {
37
+ d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",
38
+ key: "mmje98"
39
+ }],
40
+ ["path", {
41
+ d: "M21 15V5a2 2 0 0 0-2-2H9",
42
+ key: "43el77"
43
+ }]
44
+ ]), r = e("rotate-ccw", [["path", {
45
+ d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
46
+ key: "1357e3"
47
+ }], ["path", {
48
+ d: "M3 3v5h5",
49
+ key: "1xhq8a"
50
+ }]]);
51
+ //#endregion
52
+ export { n, t as r, r as t };
@@ -1,102 +1,51 @@
1
1
  import { S as e, _ as t, c as n, m as r } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-DeDbF7NI.mjs";
2
- import { b as i } from "./responsive-C0tM8Z6S.mjs";
3
- var a = i("camera", [["path", {
4
- d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
5
- key: "18u6gg"
6
- }], ["circle", {
7
- cx: "12",
8
- cy: "13",
9
- r: "3",
10
- key: "1vg3eu"
11
- }]]), o = i("image-off", [
12
- ["line", {
13
- x1: "2",
14
- x2: "22",
15
- y1: "2",
16
- y2: "22",
17
- key: "a6p6uj"
18
- }],
19
- ["path", {
20
- d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
21
- key: "1bzlo9"
22
- }],
23
- ["line", {
24
- x1: "13.5",
25
- x2: "6",
26
- y1: "13.5",
27
- y2: "21",
28
- key: "1q0aeu"
29
- }],
30
- ["line", {
31
- x1: "18",
32
- x2: "21",
33
- y1: "12",
34
- y2: "15",
35
- key: "5mozeu"
36
- }],
37
- ["path", {
38
- d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",
39
- key: "mmje98"
40
- }],
41
- ["path", {
42
- d: "M21 15V5a2 2 0 0 0-2-2H9",
43
- key: "43el77"
44
- }]
45
- ]), s = i("rotate-ccw", [["path", {
46
- d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
47
- key: "1357e3"
48
- }], ["path", {
49
- d: "M3 3v5h5",
50
- key: "1xhq8a"
51
- }]]);
52
- //#endregion
53
2
  //#region ../ui-library/src/lib/hub-mount.ts
54
3
  e();
55
- var c = "camstack-mount", l = /^\/(?:[A-Za-z0-9_\-.]+\/)*$/, u = null;
56
- function d(e) {
4
+ var i = "camstack-mount", a = /^\/(?:[A-Za-z0-9_\-.]+\/)*$/, o = null;
5
+ function s(e) {
57
6
  if (e == null || e === "") return null;
58
7
  let t = e.endsWith("/") ? e : `${e}/`;
59
- return !l.test(t) || t.includes("/../") || t.includes("/./") ? null : t;
8
+ return !a.test(t) || t.includes("/../") || t.includes("/./") ? null : t;
60
9
  }
61
- function f() {
10
+ function c() {
62
11
  if (typeof document > "u") return "/";
63
- let e = d(document.querySelector(`meta[name="${c}"]`)?.getAttribute("content"));
12
+ let e = s(document.querySelector(`meta[name="${i}"]`)?.getAttribute("content"));
64
13
  if (e !== null) return e;
65
14
  if (document.querySelector("base[href]") !== null) try {
66
15
  let e = new URL(document.baseURI);
67
16
  if (e.origin === window.location.origin) {
68
- let t = d(e.pathname);
17
+ let t = s(e.pathname);
69
18
  if (t !== null) return t;
70
19
  }
71
20
  } catch {}
72
21
  return "/";
73
22
  }
74
- function p() {
75
- return u === null && (u = f()), u;
23
+ function l() {
24
+ return o === null && (o = c()), o;
76
25
  }
77
- function m() {
78
- return p().replace(/\/$/, "");
26
+ function u() {
27
+ return l().replace(/\/$/, "");
79
28
  }
80
- function h(e) {
29
+ function d(e) {
81
30
  return /^[a-z][a-z0-9+.-]*:/i.test(e) || e.startsWith("//");
82
31
  }
83
- function g(e) {
84
- if (h(e)) return e;
85
- let t = p(), n = e.replace(/^\/+/, "");
86
- return t !== "/" && (e === m() || e.startsWith(t)) ? e : `${t}${n}`;
32
+ function f(e) {
33
+ if (d(e)) return e;
34
+ let t = l(), n = e.replace(/^\/+/, "");
35
+ return t !== "/" && (e === u() || e.startsWith(t)) ? e : `${t}${n}`;
87
36
  }
88
37
  //#endregion
89
38
  //#region ../ui-library/src/hooks/use-device-snapshot.ts
90
- var _ = "/addon/snapshot/media";
91
- function v(e, i = {}) {
39
+ var p = "/addon/snapshot/media";
40
+ function m(e, i = {}) {
92
41
  let { width: a, baseUrl: o } = i, [s, c] = t(0);
93
42
  return {
94
43
  src: r(() => {
95
44
  if (e === null || e <= 0) return null;
96
- let t = o === void 0 ? m() : o.replace(/\/+$/, ""), n = new URLSearchParams();
45
+ let t = o === void 0 ? u() : o.replace(/\/+$/, ""), n = new URLSearchParams();
97
46
  a !== void 0 && Number.isInteger(a) && a > 0 && n.set("w", String(a)), s > 0 && (n.set("force", "1"), n.set("r", String(s)));
98
47
  let r = n.toString();
99
- return `${t}${_}/${String(e)}.jpg${r.length > 0 ? `?${r}` : ""}`;
48
+ return `${t}${p}/${String(e)}.jpg${r.length > 0 ? `?${r}` : ""}`;
100
49
  }, [
101
50
  e,
102
51
  a,
@@ -111,46 +60,46 @@ function v(e, i = {}) {
111
60
  }
112
61
  //#endregion
113
62
  //#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
114
- var y = ["day", "ir"], b = {
63
+ var h = ["day", "ir"], g = {
115
64
  day: "Daylight",
116
65
  ir: "Night (IR)",
117
66
  night: "Night",
118
67
  dawn: "Dawn",
119
68
  dusk: "Dusk"
120
69
  };
121
- function x(e) {
122
- return b[e] ?? e;
70
+ function _(e) {
71
+ return g[e] ?? e;
123
72
  }
124
- function S(e) {
125
- let t = new Set(e.coveredConditions), n = y.map((e) => `${x(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !y.some((t) => t === e));
126
- for (let e of r) n.push(`${x(e)} ✓`);
127
- let i = y.filter((e) => !t.has(e));
73
+ function v(e) {
74
+ let t = new Set(e.coveredConditions), n = h.map((e) => `${_(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !h.some((t) => t === e));
75
+ for (let e of r) n.push(`${_(e)} ✓`);
76
+ let i = h.filter((e) => !t.has(e));
128
77
  if (i.length === 0) return n.join(" · ");
129
78
  if (t.size === 0) return `${n.join(" · ")} — nothing captured yet, so this scene is not watching.`;
130
- let a = i.map((e) => x(e).toLowerCase()).join(" and ");
79
+ let a = i.map((e) => _(e).toLowerCase()).join(" and ");
131
80
  return e.onUncoveredCondition === "judge-anyway" ? `${n.join(" · ")} — ${a} judged against the references you do have.` : `${n.join(" · ")} — optional; checks in ${a} are skipped.`;
132
81
  }
133
- function C(e) {
82
+ function y(e) {
134
83
  if (e.suspendedCondition === null) return null;
135
- let t = x(e.suspendedCondition).toLowerCase();
84
+ let t = _(e.suspendedCondition).toLowerCase();
136
85
  return `Paused — nothing was captured in ${t}, so checks are on hold until the light changes back. Capture ${t} if you want it watched around the clock.`;
137
86
  }
138
- var w = {
87
+ var b = {
139
88
  "no-reference-for-condition": "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like.",
140
89
  "view-shifted": "can’t tell — the camera view has moved since the reference was captured. Re-capture it.",
141
90
  "no-vision-profile": "can’t tell — the vision model is unreachable, so the change is on hold.",
142
91
  "encoder-model-changed": "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.",
143
92
  "no-snapshot": "can’t tell — this camera did not return a frame."
144
93
  };
145
- function T(e, t) {
94
+ function x(e, t) {
146
95
  if (e.states.length === 0) return "Not armed yet — capture the initial state to start watching.";
147
- if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : w[e.unavailable];
148
- let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${k(Math.max(0, t - n))}`;
96
+ if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : b[e.unavailable];
97
+ let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${T(Math.max(0, t - n))}`;
149
98
  if (e.latched) return e.verdict === "diverged" ? `CHANGED${r} — press Reset when you have dealt with it.` : `Back to normal, but still flagged as changed${r}. Press Reset to clear it.`;
150
- let i = C(e);
99
+ let i = y(e);
151
100
  return i === null ? e.verdict === "diverged" ? `CHANGED${r}` : `Normal${r}` : i;
152
101
  }
153
- function E(e) {
102
+ function S(e) {
154
103
  return e.states.length === 0 ? {
155
104
  text: "Not armed",
156
105
  tone: "unknown"
@@ -171,11 +120,11 @@ function E(e) {
171
120
  tone: "unknown"
172
121
  };
173
122
  }
174
- var D = .4;
175
- function O(e) {
176
- return e.width * e.height > D;
123
+ var C = .4;
124
+ function w(e) {
125
+ return e.width * e.height > C;
177
126
  }
178
- function k(e) {
127
+ function T(e) {
179
128
  let t = Math.floor(e / 1e3);
180
129
  if (t < 60) return `${t}s`;
181
130
  let n = Math.floor(t / 60);
@@ -184,4 +133,4 @@ function k(e) {
184
133
  return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
185
134
  }
186
135
  //#endregion
187
- export { T as a, g as c, a as d, O as i, s as l, E as n, x as o, S as r, v as s, y as t, o as u };
136
+ export { x as a, f as c, w as i, S as n, _ as o, v as r, m as s, h as t };
@@ -0,0 +1,25 @@
1
+ import { t as e } from "./createLucideIcon-CPP1Jzoz.mjs";
2
+ var t = e("settings-2", [
3
+ ["path", {
4
+ d: "M14 17H5",
5
+ key: "gfn3mx"
6
+ }],
7
+ ["path", {
8
+ d: "M19 7h-9",
9
+ key: "6i9tg"
10
+ }],
11
+ ["circle", {
12
+ cx: "17",
13
+ cy: "17",
14
+ r: "3",
15
+ key: "18b49y"
16
+ }],
17
+ ["circle", {
18
+ cx: "7",
19
+ cy: "7",
20
+ r: "3",
21
+ key: "dfmy0x"
22
+ }]
23
+ ]);
24
+ //#endregion
25
+ export { t };
@@ -1,4 +1,4 @@
1
- import { b as e } from "./responsive-C0tM8Z6S.mjs";
1
+ import { t as e } from "./createLucideIcon-CPP1Jzoz.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -16,32 +16,7 @@ var t = e("eye-off", [
16
16
  d: "m2 2 20 20",
17
17
  key: "1ooewy"
18
18
  }]
19
- ]), n = e("mic-off", [
20
- ["path", {
21
- d: "M12 19v3",
22
- key: "npa21l"
23
- }],
24
- ["path", {
25
- d: "M15 9.34V5a3 3 0 0 0-5.68-1.33",
26
- key: "1gzdoj"
27
- }],
28
- ["path", {
29
- d: "M16.95 16.95A7 7 0 0 1 5 12v-2",
30
- key: "cqa7eg"
31
- }],
32
- ["path", {
33
- d: "M18.89 13.23A7 7 0 0 0 19 12v-2",
34
- key: "16hl24"
35
- }],
36
- ["path", {
37
- d: "m2 2 20 20",
38
- key: "1ooewy"
39
- }],
40
- ["path", {
41
- d: "M9 9v3a3 3 0 0 0 5.12 2.12",
42
- key: "r2i35w"
43
- }]
44
- ]), r = e("mic", [
19
+ ]), n = e("mic", [
45
20
  ["path", {
46
21
  d: "M12 19v3",
47
22
  key: "npa21l"
@@ -58,7 +33,7 @@ var t = e("eye-off", [
58
33
  rx: "3",
59
34
  key: "s6n7sd"
60
35
  }]
61
- ]), i = e("square", [["rect", {
36
+ ]), r = e("square", [["rect", {
62
37
  width: "18",
63
38
  height: "18",
64
39
  x: "3",
@@ -67,4 +42,4 @@ var t = e("eye-off", [
67
42
  key: "afitv7"
68
43
  }]]);
69
44
  //#endregion
70
- export { t as i, r as n, n as r, i as t };
45
+ export { n, t as r, r as t };
@@ -1,4 +1,4 @@
1
- import { b as e } from "./responsive-C0tM8Z6S.mjs";
1
+ import { t as e } from "./createLucideIcon-CPP1Jzoz.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",
@@ -2762,7 +2762,7 @@ async function or(e) {
2762
2762
  }
2763
2763
  }
2764
2764
  async function sr() {
2765
- return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CHYHBYUh.mjs")).catch((e) => {
2765
+ return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-DzsEYUgl.mjs")).catch((e) => {
2766
2766
  throw ir = void 0, e;
2767
2767
  }), ir;
2768
2768
  }