@camstack/addon-osd-manager 0.1.237 → 0.1.238

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 (27) hide show
  1. package/dist/{MaskShapeCanvas-CU-mFCnh.mjs → MaskShapeCanvas-BFhkWNJD.mjs} +2330 -2329
  2. package/dist/MotionZonesSettings-BU-acK9Z.mjs +309 -0
  3. package/dist/PrivacyMaskSettings-DMXiC1dM.mjs +368 -0
  4. package/dist/SceneMonitorEditor-ePI2t_wT.mjs +846 -0
  5. package/dist/_stub.js +6969 -6346
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-jEKBdGBv.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-0ArFGpGl.mjs} +4 -4
  7. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.mjs +26 -0
  8. package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-BbmIfQSr.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs} +1 -1
  9. package/dist/addon-osd-manager.css +1 -1
  10. package/dist/{hostInit-axhhtI5J.mjs → hostInit-BdkaT5Cp.mjs} +3 -3
  11. package/dist/index.js +174 -4
  12. package/dist/index.mjs +174 -4
  13. package/dist/player-overlays-B4efNR1A.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-BhiSaPOR.mjs → responsive-CvSyX7h3.mjs} +35 -35
  16. package/dist/scene-monitor-copy-QAemI7ef.mjs +227 -0
  17. package/dist/{square--YygXCVY.mjs → square-BG-oZkZc.mjs} +1 -1
  18. package/dist/{trash-2-C74NEbN7.mjs → trash-2-DvemWMy7.mjs} +1 -1
  19. package/dist/ui-text-BitwQ50T.mjs +34 -0
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Cz3C_9Hg.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CnEfWp78.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings-7Vbym3TT.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-wnU8Ju8m.mjs +0 -377
  24. package/dist/SceneMonitorEditor-vGtrP-cH.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BereOozp.mjs +0 -26
  26. package/dist/player-overlays-Bl7_5BCk.mjs +0 -44
  27. package/dist/scene-monitor-copy-Dkm9sS_o.mjs +0 -187
@@ -1,8 +1,8 @@
1
- import { _ as e, b as t, c as n, g as r, l as i, m as a, n as o, r as s, t as c, u as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-BbmIfQSr.mjs";
2
- import { i as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BereOozp.mjs";
1
+ import { S as e, d as t, g as n, i as r, l as i, n as a, r as o, u as s, v as c, y as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
3
2
  import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
3
+ import { i as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
- t();
5
+ e();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
7
7
  let t = p(e);
8
8
  return t.charAt(0).toUpperCase() + t.slice(1);
@@ -19,7 +19,7 @@ var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
19
19
  }, g = (e) => {
20
20
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
21
21
  return !1;
22
- }, _ = s(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
22
+ }, _ = r(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
23
23
  ref: l,
24
24
  ...h,
25
25
  width: t,
@@ -32,9 +32,9 @@ var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
32
32
  }, [...s.map(([e, t]) => o(e, t)), ...Array.isArray(a) ? a : [a]]));
33
33
  //#endregion
34
34
  //#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
35
- t();
35
+ e();
36
36
  var v = (e, t) => {
37
- let n = s(({ className: n, ...r }, i) => o(_, {
37
+ let n = r(({ className: n, ...r }, i) => o(_, {
38
38
  ref: i,
39
39
  iconNode: t,
40
40
  className: d(`lucide-${f(m(e))}`, `lucide-${e}`, n),
@@ -44,61 +44,61 @@ var v = (e, t) => {
44
44
  };
45
45
  //#endregion
46
46
  //#region ../ui-library/src/lib/shared-context.ts
47
- t();
47
+ e();
48
48
  function y(e, t) {
49
- if (typeof globalThis > "u") return c(t);
49
+ if (typeof globalThis > "u") return a(t);
50
50
  let n = globalThis.__camstackSharedContexts, r = n ?? /* @__PURE__ */ new Map();
51
51
  n || (globalThis.__camstackSharedContexts = r);
52
52
  let i = r.get(e);
53
53
  if (i) return i;
54
- let a = c(t);
55
- return r.set(e, a), a;
54
+ let o = a(t);
55
+ return r.set(e, o), o;
56
56
  }
57
57
  //#endregion
58
58
  //#region ../ui-library/src/contexts/system-context.tsx
59
- t();
59
+ e();
60
60
  var b = y("camstack:system", null);
61
61
  function x() {
62
- let e = i(b);
62
+ let e = s(b);
63
63
  if (!e) throw Error("useSystem(): no <SystemProvider> in tree");
64
64
  return e;
65
65
  }
66
66
  //#endregion
67
67
  //#region ../ui-library/src/hooks/use-device-proxy.ts
68
- t();
68
+ e();
69
69
  var S = "capability.binding-changed";
70
- function C(e, t) {
71
- let [n, i] = r(null);
72
- return l(() => {
73
- if (t === null) {
74
- i(null);
70
+ function C(e, r) {
71
+ let [i, a] = c(null);
72
+ return t(() => {
73
+ if (r === null) {
74
+ a(null);
75
75
  return;
76
76
  }
77
- let n = !1, r = async () => {
77
+ let t = !1, n = async () => {
78
78
  try {
79
- let r = await e.deviceManager.getBindings.query({ deviceId: t });
80
- n || i(r);
79
+ let n = await e.deviceManager.getBindings.query({ deviceId: r });
80
+ t || a(n);
81
81
  } catch {
82
- n || i((e) => e);
82
+ t || a((e) => e);
83
83
  }
84
84
  };
85
- r();
86
- let a = e.live?.onEvent.subscribe({ category: S }, { onData: (e) => {
87
- let n = e.data?.source;
88
- if (!n) {
89
- r();
85
+ n();
86
+ let i = e.live?.onEvent.subscribe({ category: S }, { onData: (e) => {
87
+ let t = e.data?.source;
88
+ if (!t) {
89
+ n();
90
90
  return;
91
91
  }
92
- n.type === "device" && n.id === t && r();
92
+ t.type === "device" && t.id === r && n();
93
93
  } });
94
94
  return () => {
95
- n = !0, a?.unsubscribe();
95
+ t = !0, i?.unsubscribe();
96
96
  };
97
- }, [e, t]), a(() => n ? u(e, n) : null, [e, n]);
97
+ }, [e, r]), n(() => i ? u(e, i) : null, [e, i]);
98
98
  }
99
- function w(t) {
100
- let r = n((e) => t ? t.subscribe(() => e()) : () => void 0, [t]), i = n(() => t?.value, [t]);
101
- return e(r, i, i);
99
+ function w(e) {
100
+ let t = i((t) => e ? e.subscribe(() => t()) : () => void 0, [e]), n = i(() => e?.value, [e]);
101
+ return l(t, n, n);
102
102
  }
103
103
  //#endregion
104
104
  //#region ../ui-library/src/lib/cap-error.ts
@@ -117,6 +117,6 @@ function E(e) {
117
117
  }
118
118
  //#endregion
119
119
  //#region ../ui-library/src/lib/responsive.ts
120
- var D = "flex min-w-0 flex-col gap-0.5 py-1.5 sm:flex-row sm:items-center", O = "min-w-0 text-[11px] leading-tight text-foreground-subtle sm:w-32 sm:shrink-0 sm:pr-2", k = "flex w-full min-w-0 items-center gap-1 sm:flex-1", A = "min-w-0 break-all text-xs text-foreground sm:truncate", j = "text-[10px] text-foreground-subtle", M = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", N = "border-primary/50 bg-primary/15 text-primary";
120
+ var 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";
121
121
  //#endregion
122
- export { k as a, E as c, x as d, y as f, O as i, C as l, M as n, A as o, v as p, D as r, j as s, N as t, w as u };
122
+ export { C as a, y as c, E as i, v as l, O as n, w as o, D as r, x as s, k as t };
@@ -0,0 +1,227 @@
1
+ import { S as e, g as t, l as n, v as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
2
+ import { n as i } from "./ui-text-BitwQ50T.mjs";
3
+ import { l as a } from "./responsive-CvSyX7h3.mjs";
4
+ var o = a("camera", [["path", {
5
+ 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",
6
+ key: "18u6gg"
7
+ }], ["circle", {
8
+ cx: "12",
9
+ cy: "13",
10
+ r: "3",
11
+ key: "1vg3eu"
12
+ }]]), s = a("image-off", [
13
+ ["line", {
14
+ x1: "2",
15
+ x2: "22",
16
+ y1: "2",
17
+ y2: "22",
18
+ key: "a6p6uj"
19
+ }],
20
+ ["path", {
21
+ d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
22
+ key: "1bzlo9"
23
+ }],
24
+ ["line", {
25
+ x1: "13.5",
26
+ x2: "6",
27
+ y1: "13.5",
28
+ y2: "21",
29
+ key: "1q0aeu"
30
+ }],
31
+ ["line", {
32
+ x1: "18",
33
+ x2: "21",
34
+ y1: "12",
35
+ y2: "15",
36
+ key: "5mozeu"
37
+ }],
38
+ ["path", {
39
+ 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",
40
+ key: "mmje98"
41
+ }],
42
+ ["path", {
43
+ d: "M21 15V5a2 2 0 0 0-2-2H9",
44
+ key: "43el77"
45
+ }]
46
+ ]), c = a("rotate-ccw", [["path", {
47
+ d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
48
+ key: "1357e3"
49
+ }], ["path", {
50
+ d: "M3 3v5h5",
51
+ key: "1xhq8a"
52
+ }]]);
53
+ //#endregion
54
+ //#region ../ui-library/src/lib/hub-mount.ts
55
+ e();
56
+ var l = "camstack-mount", u = /^\/(?:[A-Za-z0-9_\-.]+\/)*$/, d = null;
57
+ function f(e) {
58
+ if (e == null || e === "") return null;
59
+ let t = e.endsWith("/") ? e : `${e}/`;
60
+ return !u.test(t) || t.includes("/../") || t.includes("/./") ? null : t;
61
+ }
62
+ function p() {
63
+ if (typeof document > "u") return "/";
64
+ let e = f(document.querySelector(`meta[name="${l}"]`)?.getAttribute("content"));
65
+ if (e !== null) return e;
66
+ if (document.querySelector("base[href]") !== null) try {
67
+ let e = new URL(document.baseURI);
68
+ if (e.origin === window.location.origin) {
69
+ let t = f(e.pathname);
70
+ if (t !== null) return t;
71
+ }
72
+ } catch {}
73
+ return "/";
74
+ }
75
+ function m() {
76
+ return d === null && (d = p()), d;
77
+ }
78
+ function h() {
79
+ return m().replace(/\/$/, "");
80
+ }
81
+ function g(e) {
82
+ return /^[a-z][a-z0-9+.-]*:/i.test(e) || e.startsWith("//");
83
+ }
84
+ function _(e) {
85
+ if (g(e)) return e;
86
+ let t = m(), n = e.replace(/^\/+/, "");
87
+ return t !== "/" && (e === h() || e.startsWith(t)) ? e : `${t}${n}`;
88
+ }
89
+ //#endregion
90
+ //#region ../ui-library/src/hooks/use-device-snapshot.ts
91
+ var v = "/addon/snapshot/media";
92
+ function y(e, i = {}) {
93
+ let { width: a, baseUrl: o } = i, [s, c] = r(0);
94
+ return {
95
+ src: t(() => {
96
+ if (e === null || e <= 0) return null;
97
+ let t = o === void 0 ? h() : o.replace(/\/+$/, ""), n = new URLSearchParams();
98
+ a !== void 0 && Number.isInteger(a) && a > 0 && n.set("w", String(a)), s > 0 && (n.set("force", "1"), n.set("r", String(s)));
99
+ let r = n.toString();
100
+ return `${t}${v}/${String(e)}.jpg${r.length > 0 ? `?${r}` : ""}`;
101
+ }, [
102
+ e,
103
+ a,
104
+ o,
105
+ s
106
+ ]),
107
+ loading: !1,
108
+ refresh: n(() => {
109
+ c((e) => e + 1);
110
+ }, [])
111
+ };
112
+ }
113
+ //#endregion
114
+ //#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
115
+ var b = ["day", "ir"], x = {
116
+ day: {
117
+ labelKey: "uiLibrary.sceneMonitor.variant.day",
118
+ labelFallback: "Daylight"
119
+ },
120
+ ir: {
121
+ labelKey: "uiLibrary.sceneMonitor.variant.ir",
122
+ labelFallback: "Night (IR)"
123
+ },
124
+ night: {
125
+ labelKey: "uiLibrary.sceneMonitor.variant.night",
126
+ labelFallback: "Night"
127
+ },
128
+ dawn: {
129
+ labelKey: "uiLibrary.sceneMonitor.variant.dawn",
130
+ labelFallback: "Dawn"
131
+ },
132
+ dusk: {
133
+ labelKey: "uiLibrary.sceneMonitor.variant.dusk",
134
+ labelFallback: "Dusk"
135
+ }
136
+ };
137
+ function S(e, t = i) {
138
+ let n = x[e];
139
+ return n === void 0 ? e : t(n.labelKey, n.labelFallback);
140
+ }
141
+ function C(e, t = i) {
142
+ let n = new Set(e.coveredConditions), r = b.map((e) => `${S(e, t)} ${n.has(e) ? "✓" : "✗"}`), a = [...n].filter((e) => !b.some((t) => t === e));
143
+ for (let e of a) r.push(`${S(e, t)} ✓`);
144
+ let o = b.filter((e) => !n.has(e));
145
+ if (o.length === 0) return r.join(" · ");
146
+ if (n.size === 0) return t("uiLibrary.sceneMonitor.coverage.empty", "{{parts}} — nothing captured yet, so this scene is not watching.", { parts: r.join(" · ") });
147
+ let [s = "", c] = o.map((e) => S(e, t).toLowerCase()), l = c === void 0 ? s : t("uiLibrary.sceneMonitor.coverage.namesJoin", "{{first}} and {{second}}", {
148
+ first: s,
149
+ second: c
150
+ }), u = {
151
+ parts: r.join(" · "),
152
+ names: l
153
+ };
154
+ return e.onUncoveredCondition === "judge-anyway" ? t("uiLibrary.sceneMonitor.coverage.judgeAnyway", "{{parts}} — {{names}} judged against the references you do have.", u) : t("uiLibrary.sceneMonitor.coverage.skip", "{{parts}} — optional; checks in {{names}} are skipped.", u);
155
+ }
156
+ function w(e, t = i) {
157
+ return e.suspendedCondition === null ? null : t("uiLibrary.sceneMonitor.suspension", "Paused — nothing was captured in {{light}}, so checks are on hold until the light changes back. Capture {{light}} if you want it watched around the clock.", { light: S(e.suspendedCondition, t).toLowerCase() });
158
+ }
159
+ var T = {
160
+ "no-reference-for-condition": {
161
+ key: "uiLibrary.sceneMonitor.unavailable.no_reference_for_condition",
162
+ fallback: "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like."
163
+ },
164
+ "view-shifted": {
165
+ key: "uiLibrary.sceneMonitor.unavailable.view_shifted",
166
+ fallback: "can’t tell — the camera view has moved since the reference was captured. Re-capture it."
167
+ },
168
+ "no-vision-profile": {
169
+ key: "uiLibrary.sceneMonitor.unavailable.no_vision_profile",
170
+ fallback: "can’t tell — the vision model is unreachable, so the change is on hold."
171
+ },
172
+ "encoder-model-changed": {
173
+ key: "uiLibrary.sceneMonitor.unavailable.encoder_model_changed",
174
+ fallback: "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them."
175
+ },
176
+ "no-snapshot": {
177
+ key: "uiLibrary.sceneMonitor.unavailable.no_snapshot",
178
+ fallback: "can’t tell — this camera did not return a frame."
179
+ }
180
+ };
181
+ function E(e, t, n = i) {
182
+ if (e.states.length === 0) return n("uiLibrary.sceneMonitor.status.notArmed", "Not armed yet — capture the initial state to start watching.");
183
+ if (e.verdict === "unknown") {
184
+ if (e.unavailable === null) return n("uiLibrary.sceneMonitor.status.cantTellNow", "can’t tell right now.");
185
+ let t = T[e.unavailable];
186
+ return n(t.key, t.fallback);
187
+ }
188
+ let r = e.verdict === "diverged" ? e.divergedAt : e.armedAt, a = r === null ? "" : ` ${n("uiLibrary.sceneMonitor.status.heldFor", "for {{duration}}", { duration: A(Math.max(0, t - r)) })}`;
189
+ if (e.latched) return e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changedLatched", "CHANGED{{held}} — press Reset when you have dealt with it.", { held: a }) : n("uiLibrary.sceneMonitor.status.backToNormal", "Back to normal, but still flagged as changed{{held}}. Press Reset to clear it.", { held: a });
190
+ let o = w(e, n);
191
+ return o === null ? e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changed", "CHANGED{{held}}", { held: a }) : n("uiLibrary.sceneMonitor.status.normal", "Normal{{held}}", { held: a }) : o;
192
+ }
193
+ function D(e, t = i) {
194
+ return e.states.length === 0 ? {
195
+ text: t("uiLibrary.sceneMonitor.badge.notArmed", "Not armed"),
196
+ tone: "unknown"
197
+ } : e.latched ? {
198
+ text: t("uiLibrary.sceneMonitor.badge.changed", "Changed"),
199
+ tone: "alarm"
200
+ } : e.suspendedCondition === null ? e.verdict === "unknown" ? {
201
+ text: t("uiLibrary.sceneMonitor.badge.cantTell", "Can’t tell"),
202
+ tone: "unknown"
203
+ } : e.verdict === "diverged" ? {
204
+ text: t("uiLibrary.sceneMonitor.badge.changed", "Changed"),
205
+ tone: "alarm"
206
+ } : {
207
+ text: t("uiLibrary.sceneMonitor.badge.normal", "Normal"),
208
+ tone: "ok"
209
+ } : {
210
+ text: t("uiLibrary.sceneMonitor.badge.paused", "Paused"),
211
+ tone: "unknown"
212
+ };
213
+ }
214
+ var O = .4;
215
+ function k(e) {
216
+ return e.width * e.height > O;
217
+ }
218
+ function A(e) {
219
+ let t = Math.floor(e / 1e3);
220
+ if (t < 60) return `${t}s`;
221
+ let n = Math.floor(t / 60);
222
+ if (n < 60) return `${n}m`;
223
+ let r = Math.floor(n / 60);
224
+ return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
225
+ }
226
+ //#endregion
227
+ export { E as a, _ as c, o as d, k as i, c as l, D as n, S as o, C as r, y as s, b as t, s as u };
@@ -1,4 +1,4 @@
1
- import { p as e } from "./responsive-BhiSaPOR.mjs";
1
+ import { l as e } from "./responsive-CvSyX7h3.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",
@@ -1,4 +1,4 @@
1
- import { p as e } from "./responsive-BhiSaPOR.mjs";
1
+ import { l as e } from "./responsive-CvSyX7h3.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",
@@ -0,0 +1,34 @@
1
+ import { S as e, f as t, n, t as r, u as i } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
2
+ import { n as a, t as o } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
3
+ //#region ../ui-library/src/contexts/ui-text.tsx
4
+ e();
5
+ var s = /\{\{\s*(\w+)\s*\}\}/g;
6
+ function c(e, t) {
7
+ return typeof e == "string" ? e : t === 1 ? e.one : e.other;
8
+ }
9
+ var l = (e, t, n) => {
10
+ let r = c(t, n?.count);
11
+ return n ? r.replace(s, (e, t) => {
12
+ let r = n[t];
13
+ return r == null ? e : String(r);
14
+ }) : r;
15
+ }, u = n(l);
16
+ function d() {
17
+ return i(u);
18
+ }
19
+ var f = /<(\d+)>([\s\S]*?)<\/\1>/g;
20
+ function p(e, t) {
21
+ let n = [], i = 0;
22
+ for (let a of e.matchAll(f)) {
23
+ let o = a.index ?? 0;
24
+ o > i && n.push(e.slice(i, o));
25
+ let s = t[Number(a[1])];
26
+ n.push(s ? r(s, void 0, a[2] ?? "") : a[2] ?? ""), i = o + a[0].length;
27
+ }
28
+ return i < e.length && n.push(e.slice(i)), n;
29
+ }
30
+ function m({ uiKey: e, fallback: n, components: r = [], values: i }) {
31
+ return /* @__PURE__ */ a(o, { children: p(d()(e, n, i), r).map((e, n) => /* @__PURE__ */ a(t, { children: e }, n)) });
32
+ }
33
+ //#endregion
34
+ export { l as n, d as r, m as t };
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-jEKBdGBv.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-0ArFGpGl.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-osd-manager",
3
- "version": "0.1.237",
3
+ "version": "0.1.238",
4
4
  "description": "Binds camera on-screen-display slots to live state and recognitions",
5
5
  "keywords": [
6
6
  "camstack",