@camstack/addon-import-alexa 0.2.162 → 0.2.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/addon.js +335 -411
- package/dist/addon.mjs +336 -410
- package/dist/index.js +0 -1
- package/dist/index.mjs +2 -2
- package/package.json +2 -17
- package/dist/MaskShapeCanvas-B6q5RDLi.mjs +0 -13807
- package/dist/MotionZonesSettings-ByDKuk5o.mjs +0 -309
- package/dist/PrivacyMaskSettings-Cn-_9Syv.mjs +0 -368
- package/dist/SceneMonitorEditor-jDMtE1yg.mjs +0 -845
- package/dist/_stub.js +0 -39538
- package/dist/_virtual_mf-localSharedImportMap___mfe_internal__addon_import_alexa_page-Ck3EMdmv.mjs +0 -156
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.js-BmoaT3cr.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DE1dtKjc.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-Bct5qZia.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-BHqOw8oh.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-B3qxfxBT.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react__loadShare__.js-DwXXYAlk.mjs +0 -70
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-CUiVYNMY.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react_mf_2_dom__loadShare__.js-CIPmAyPi.mjs +0 -25
- package/dist/_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-tXm1x5EZ.mjs +0 -25
- package/dist/addon-import-alexa.css +0 -3
- package/dist/hostInit-CoSVGWK6.mjs +0 -129
- package/dist/player-overlays-CcdvNfxc.mjs +0 -51
- package/dist/remoteEntry.js +0 -2
- package/dist/remoteEntry.ssr.js +0 -33
- package/dist/responsive-BmleF5y2.mjs +0 -125
- package/dist/rolldown-runtime-HEgqtunE.mjs +0 -20
- package/dist/scene-monitor-copy-BEZSY5WG.mjs +0 -240
- package/dist/square-DZHhUhzl.mjs +0 -45
- package/dist/trash-2-BVrrPiKB.mjs +0 -25
- package/dist/ui-text-B5YO4hoJ.mjs +0 -34
- package/dist/virtualExposes-lZT06jeg.mjs +0 -2
- package/dist/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_import_alexa_page__remoteEntry_js-BA8fy0_J.mjs +0 -2857
- package/dist/virtual_mf-exposes-ssr___mfe_internal__addon_import_alexa_page__remoteEntry_js-CViESMdd.mjs +0 -10
- package/dist/virtual_mf-exposes___mfe_internal__addon_import_alexa_page__remoteEntry_js-C3qJCjtV.mjs +0 -27
|
@@ -1,125 +0,0 @@
|
|
|
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_import_alexa_page__loadShare__react__loadShare__.js-DwXXYAlk.mjs";
|
|
2
|
-
import "./_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-CUiVYNMY.mjs";
|
|
3
|
-
import { c as u } from "./_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DE1dtKjc.mjs";
|
|
4
|
-
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
|
-
e();
|
|
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
|
-
let t = p(e);
|
|
8
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
9
|
-
}, h = {
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
-
width: 24,
|
|
12
|
-
height: 24,
|
|
13
|
-
viewBox: "0 0 24 24",
|
|
14
|
-
fill: "none",
|
|
15
|
-
stroke: "currentColor",
|
|
16
|
-
strokeWidth: 2,
|
|
17
|
-
strokeLinecap: "round",
|
|
18
|
-
strokeLinejoin: "round"
|
|
19
|
-
}, g = (e) => {
|
|
20
|
-
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
21
|
-
return !1;
|
|
22
|
-
}, _ = r(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
|
|
23
|
-
ref: l,
|
|
24
|
-
...h,
|
|
25
|
-
width: t,
|
|
26
|
-
height: t,
|
|
27
|
-
stroke: e,
|
|
28
|
-
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
29
|
-
className: d("lucide", i),
|
|
30
|
-
...!a && !g(c) && { "aria-hidden": "true" },
|
|
31
|
-
...c
|
|
32
|
-
}, [...s.map(([e, t]) => o(e, t)), ...Array.isArray(a) ? a : [a]]));
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
35
|
-
e();
|
|
36
|
-
var v = (e, t) => {
|
|
37
|
-
let n = r(({ className: n, ...r }, i) => o(_, {
|
|
38
|
-
ref: i,
|
|
39
|
-
iconNode: t,
|
|
40
|
-
className: d(`lucide-${f(m(e))}`, `lucide-${e}`, n),
|
|
41
|
-
...r
|
|
42
|
-
}));
|
|
43
|
-
return n.displayName = m(e), n;
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ../ui-library/src/lib/shared-context.ts
|
|
47
|
-
e();
|
|
48
|
-
function y(e, t) {
|
|
49
|
-
if (typeof globalThis > "u") return a(t);
|
|
50
|
-
let n = globalThis.__camstackSharedContexts, r = n ?? /* @__PURE__ */ new Map();
|
|
51
|
-
n || (globalThis.__camstackSharedContexts = r);
|
|
52
|
-
let i = r.get(e);
|
|
53
|
-
if (i) return i;
|
|
54
|
-
let o = a(t);
|
|
55
|
-
return r.set(e, o), o;
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region ../ui-library/src/contexts/system-context.tsx
|
|
59
|
-
e();
|
|
60
|
-
var b = y("camstack:system", null);
|
|
61
|
-
function x() {
|
|
62
|
-
let e = s(b);
|
|
63
|
-
if (!e) throw Error("useSystem(): no <SystemProvider> in tree");
|
|
64
|
-
return e;
|
|
65
|
-
}
|
|
66
|
-
function S() {
|
|
67
|
-
return s(b);
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region ../ui-library/src/hooks/use-device-proxy.ts
|
|
71
|
-
e();
|
|
72
|
-
var C = "capability.binding-changed";
|
|
73
|
-
function w(e, r) {
|
|
74
|
-
let [i, a] = c(null);
|
|
75
|
-
return t(() => {
|
|
76
|
-
if (r === null) {
|
|
77
|
-
a(null);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
let t = !1, n = async () => {
|
|
81
|
-
try {
|
|
82
|
-
let n = await e.deviceManager.getBindings.query({ deviceId: r });
|
|
83
|
-
t || a(n);
|
|
84
|
-
} catch {
|
|
85
|
-
t || a((e) => e);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
n();
|
|
89
|
-
let i = e.live?.onEvent.subscribe({ category: C }, { onData: (e) => {
|
|
90
|
-
let t = e.data?.source;
|
|
91
|
-
if (!t) {
|
|
92
|
-
n();
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
t.type === "device" && t.id === r && n();
|
|
96
|
-
} });
|
|
97
|
-
return () => {
|
|
98
|
-
t = !0, i?.unsubscribe();
|
|
99
|
-
};
|
|
100
|
-
}, [e, r]), n(() => i ? u(e, i) : null, [e, i]);
|
|
101
|
-
}
|
|
102
|
-
function T(e) {
|
|
103
|
-
let t = i((t) => e ? e.subscribe(() => t()) : () => void 0, [e]), n = i(() => e?.value, [e]);
|
|
104
|
-
return l(t, n, n);
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region ../ui-library/src/lib/cap-error.ts
|
|
108
|
-
function E(e) {
|
|
109
|
-
if (typeof e != "object" || !e) return null;
|
|
110
|
-
let t = Reflect.get(e, "data");
|
|
111
|
-
if (typeof t == "object" && t) {
|
|
112
|
-
let e = Reflect.get(t, "capRouteReason");
|
|
113
|
-
if (typeof e == "string") return e;
|
|
114
|
-
}
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
function D(e) {
|
|
118
|
-
let t = E(e);
|
|
119
|
-
return t === null ? (e instanceof Error ? e.message : String(e)).includes("provider not available") : t === "no-provider" || t === "node-offline";
|
|
120
|
-
}
|
|
121
|
-
//#endregion
|
|
122
|
-
//#region ../ui-library/src/lib/responsive.ts
|
|
123
|
-
var O = "rounded-lg border border-border bg-surface overflow-hidden", k = "border-b border-border px-3 sm:px-4 py-1.5 sm:py-2", A = "p-2 sm:p-3 lg:p-4", j = "space-y-3 sm:space-y-4", M = "text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider", N = "text-[10px] text-foreground-subtle", P = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", F = "border-primary/50 bg-primary/15 text-primary";
|
|
124
|
-
//#endregion
|
|
125
|
-
export { k as a, M as c, T as d, S as f, v as h, O as i, D as l, y as m, P as n, j as o, x as p, A as r, N as s, F as t, w as u };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (e && (t = e(e = 0)), t), s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
|
|
3
|
-
let r = {};
|
|
4
|
-
for (var i in e) t(r, i, {
|
|
5
|
-
get: e[i],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
}, l = (e, i, o, s) => {
|
|
10
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
-
get: ((e) => i[e]).bind(null, d),
|
|
12
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
-
});
|
|
14
|
-
return e;
|
|
15
|
-
}, u = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
-
value: n,
|
|
17
|
-
enumerable: !0
|
|
18
|
-
}) : a, n)), d = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e);
|
|
19
|
-
//#endregion
|
|
20
|
-
export { u as a, d as i, o as n, c as r, s as t };
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { S as e, g as t, l as n, u as r, v as i } from "./_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react__loadShare__.js-DwXXYAlk.mjs";
|
|
2
|
-
import "./_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-CUiVYNMY.mjs";
|
|
3
|
-
import { n as a } from "./ui-text-B5YO4hoJ.mjs";
|
|
4
|
-
import { h as o, m as s } from "./responsive-BmleF5y2.mjs";
|
|
5
|
-
var c = o("camera", [["path", {
|
|
6
|
-
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",
|
|
7
|
-
key: "18u6gg"
|
|
8
|
-
}], ["circle", {
|
|
9
|
-
cx: "12",
|
|
10
|
-
cy: "13",
|
|
11
|
-
r: "3",
|
|
12
|
-
key: "1vg3eu"
|
|
13
|
-
}]]), l = o("image-off", [
|
|
14
|
-
["line", {
|
|
15
|
-
x1: "2",
|
|
16
|
-
x2: "22",
|
|
17
|
-
y1: "2",
|
|
18
|
-
y2: "22",
|
|
19
|
-
key: "a6p6uj"
|
|
20
|
-
}],
|
|
21
|
-
["path", {
|
|
22
|
-
d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
|
|
23
|
-
key: "1bzlo9"
|
|
24
|
-
}],
|
|
25
|
-
["line", {
|
|
26
|
-
x1: "13.5",
|
|
27
|
-
x2: "6",
|
|
28
|
-
y1: "13.5",
|
|
29
|
-
y2: "21",
|
|
30
|
-
key: "1q0aeu"
|
|
31
|
-
}],
|
|
32
|
-
["line", {
|
|
33
|
-
x1: "18",
|
|
34
|
-
x2: "21",
|
|
35
|
-
y1: "12",
|
|
36
|
-
y2: "15",
|
|
37
|
-
key: "5mozeu"
|
|
38
|
-
}],
|
|
39
|
-
["path", {
|
|
40
|
-
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",
|
|
41
|
-
key: "mmje98"
|
|
42
|
-
}],
|
|
43
|
-
["path", {
|
|
44
|
-
d: "M21 15V5a2 2 0 0 0-2-2H9",
|
|
45
|
-
key: "43el77"
|
|
46
|
-
}]
|
|
47
|
-
]), u = o("rotate-ccw", [["path", {
|
|
48
|
-
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
49
|
-
key: "1357e3"
|
|
50
|
-
}], ["path", {
|
|
51
|
-
d: "M3 3v5h5",
|
|
52
|
-
key: "1xhq8a"
|
|
53
|
-
}]]);
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region ../ui-library/src/composites/confirm-dialog.tsx
|
|
56
|
-
e();
|
|
57
|
-
var d = s("camstack:confirm-dialog", null);
|
|
58
|
-
function f() {
|
|
59
|
-
let e = r(d);
|
|
60
|
-
if (!e) throw Error("useConfirm must be used within ConfirmDialogProvider");
|
|
61
|
-
return e;
|
|
62
|
-
}
|
|
63
|
-
function p() {
|
|
64
|
-
return f().confirm;
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region ../ui-library/src/lib/hub-mount.ts
|
|
68
|
-
var m = "camstack-mount", h = /^\/(?:[A-Za-z0-9_\-.]+\/)*$/, g = null;
|
|
69
|
-
function _(e) {
|
|
70
|
-
if (e == null || e === "") return null;
|
|
71
|
-
let t = e.endsWith("/") ? e : `${e}/`;
|
|
72
|
-
return !h.test(t) || t.includes("/../") || t.includes("/./") ? null : t;
|
|
73
|
-
}
|
|
74
|
-
function v() {
|
|
75
|
-
if (typeof document > "u") return "/";
|
|
76
|
-
let e = _(document.querySelector(`meta[name="${m}"]`)?.getAttribute("content"));
|
|
77
|
-
if (e !== null) return e;
|
|
78
|
-
if (document.querySelector("base[href]") !== null) try {
|
|
79
|
-
let e = new URL(document.baseURI);
|
|
80
|
-
if (e.origin === window.location.origin) {
|
|
81
|
-
let t = _(e.pathname);
|
|
82
|
-
if (t !== null) return t;
|
|
83
|
-
}
|
|
84
|
-
} catch {}
|
|
85
|
-
return "/";
|
|
86
|
-
}
|
|
87
|
-
function y() {
|
|
88
|
-
return g === null && (g = v()), g;
|
|
89
|
-
}
|
|
90
|
-
function b() {
|
|
91
|
-
return y().replace(/\/$/, "");
|
|
92
|
-
}
|
|
93
|
-
function x(e) {
|
|
94
|
-
return /^[a-z][a-z0-9+.-]*:/i.test(e) || e.startsWith("//");
|
|
95
|
-
}
|
|
96
|
-
function S(e) {
|
|
97
|
-
if (x(e)) return e;
|
|
98
|
-
let t = y(), n = e.replace(/^\/+/, "");
|
|
99
|
-
return t !== "/" && (e === b() || e.startsWith(t)) ? e : `${t}${n}`;
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region ../ui-library/src/hooks/use-device-snapshot.ts
|
|
103
|
-
e();
|
|
104
|
-
var C = "/addon/snapshot/media";
|
|
105
|
-
function w(e, r = {}) {
|
|
106
|
-
let { width: a, baseUrl: o } = r, [s, c] = i(0);
|
|
107
|
-
return {
|
|
108
|
-
src: t(() => {
|
|
109
|
-
if (e === null || e <= 0) return null;
|
|
110
|
-
let t = o === void 0 ? b() : o.replace(/\/+$/, ""), n = new URLSearchParams();
|
|
111
|
-
a !== void 0 && Number.isInteger(a) && a > 0 && n.set("w", String(a)), s > 0 && (n.set("force", "1"), n.set("r", String(s)));
|
|
112
|
-
let r = n.toString();
|
|
113
|
-
return `${t}${C}/${String(e)}.jpg${r.length > 0 ? `?${r}` : ""}`;
|
|
114
|
-
}, [
|
|
115
|
-
e,
|
|
116
|
-
a,
|
|
117
|
-
o,
|
|
118
|
-
s
|
|
119
|
-
]),
|
|
120
|
-
loading: !1,
|
|
121
|
-
refresh: n(() => {
|
|
122
|
-
c((e) => e + 1);
|
|
123
|
-
}, [])
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
|
|
128
|
-
var T = ["day", "ir"], E = {
|
|
129
|
-
day: {
|
|
130
|
-
labelKey: "uiLibrary.sceneMonitor.variant.day",
|
|
131
|
-
labelFallback: "Daylight"
|
|
132
|
-
},
|
|
133
|
-
ir: {
|
|
134
|
-
labelKey: "uiLibrary.sceneMonitor.variant.ir",
|
|
135
|
-
labelFallback: "Night (IR)"
|
|
136
|
-
},
|
|
137
|
-
night: {
|
|
138
|
-
labelKey: "uiLibrary.sceneMonitor.variant.night",
|
|
139
|
-
labelFallback: "Night"
|
|
140
|
-
},
|
|
141
|
-
dawn: {
|
|
142
|
-
labelKey: "uiLibrary.sceneMonitor.variant.dawn",
|
|
143
|
-
labelFallback: "Dawn"
|
|
144
|
-
},
|
|
145
|
-
dusk: {
|
|
146
|
-
labelKey: "uiLibrary.sceneMonitor.variant.dusk",
|
|
147
|
-
labelFallback: "Dusk"
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
function D(e, t = a) {
|
|
151
|
-
let n = E[e];
|
|
152
|
-
return n === void 0 ? e : t(n.labelKey, n.labelFallback);
|
|
153
|
-
}
|
|
154
|
-
function O(e, t = a) {
|
|
155
|
-
let n = new Set(e.coveredConditions), r = T.map((e) => `${D(e, t)} ${n.has(e) ? "✓" : "✗"}`), i = [...n].filter((e) => !T.some((t) => t === e));
|
|
156
|
-
for (let e of i) r.push(`${D(e, t)} ✓`);
|
|
157
|
-
let o = T.filter((e) => !n.has(e));
|
|
158
|
-
if (o.length === 0) return r.join(" · ");
|
|
159
|
-
if (n.size === 0) return t("uiLibrary.sceneMonitor.coverage.empty", "{{parts}} — nothing captured yet, so this scene is not watching.", { parts: r.join(" · ") });
|
|
160
|
-
let [s = "", c] = o.map((e) => D(e, t).toLowerCase()), l = c === void 0 ? s : t("uiLibrary.sceneMonitor.coverage.namesJoin", "{{first}} and {{second}}", {
|
|
161
|
-
first: s,
|
|
162
|
-
second: c
|
|
163
|
-
}), u = {
|
|
164
|
-
parts: r.join(" · "),
|
|
165
|
-
names: l
|
|
166
|
-
};
|
|
167
|
-
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);
|
|
168
|
-
}
|
|
169
|
-
function k(e, t = a) {
|
|
170
|
-
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: D(e.suspendedCondition, t).toLowerCase() });
|
|
171
|
-
}
|
|
172
|
-
var A = {
|
|
173
|
-
"no-reference-for-condition": {
|
|
174
|
-
key: "uiLibrary.sceneMonitor.unavailable.no_reference_for_condition",
|
|
175
|
-
fallback: "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like."
|
|
176
|
-
},
|
|
177
|
-
"view-shifted": {
|
|
178
|
-
key: "uiLibrary.sceneMonitor.unavailable.view_shifted",
|
|
179
|
-
fallback: "can’t tell — the camera view has moved since the reference was captured. Re-capture it."
|
|
180
|
-
},
|
|
181
|
-
"no-vision-profile": {
|
|
182
|
-
key: "uiLibrary.sceneMonitor.unavailable.no_vision_profile",
|
|
183
|
-
fallback: "can’t tell — the vision model is unreachable, so the change is on hold."
|
|
184
|
-
},
|
|
185
|
-
"encoder-model-changed": {
|
|
186
|
-
key: "uiLibrary.sceneMonitor.unavailable.encoder_model_changed",
|
|
187
|
-
fallback: "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them."
|
|
188
|
-
},
|
|
189
|
-
"no-snapshot": {
|
|
190
|
-
key: "uiLibrary.sceneMonitor.unavailable.no_snapshot",
|
|
191
|
-
fallback: "can’t tell — this camera did not return a frame."
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
function j(e, t, n = a) {
|
|
195
|
-
if (e.states.length === 0) return n("uiLibrary.sceneMonitor.status.notArmed", "Not armed yet — capture the initial state to start watching.");
|
|
196
|
-
if (e.verdict === "unknown") {
|
|
197
|
-
if (e.unavailable === null) return n("uiLibrary.sceneMonitor.status.cantTellNow", "can’t tell right now.");
|
|
198
|
-
let t = A[e.unavailable];
|
|
199
|
-
return n(t.key, t.fallback);
|
|
200
|
-
}
|
|
201
|
-
let r = e.verdict === "diverged" ? e.divergedAt : e.armedAt, i = r === null ? "" : ` ${n("uiLibrary.sceneMonitor.status.heldFor", "for {{duration}}", { duration: F(Math.max(0, t - r)) })}`;
|
|
202
|
-
if (e.latched) return e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changedLatched", "CHANGED{{held}} — press Reset when you have dealt with it.", { held: i }) : n("uiLibrary.sceneMonitor.status.backToNormal", "Back to normal, but still flagged as changed{{held}}. Press Reset to clear it.", { held: i });
|
|
203
|
-
let o = k(e, n);
|
|
204
|
-
return o === null ? e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changed", "CHANGED{{held}}", { held: i }) : n("uiLibrary.sceneMonitor.status.normal", "Normal{{held}}", { held: i }) : o;
|
|
205
|
-
}
|
|
206
|
-
function M(e, t = a) {
|
|
207
|
-
return e.states.length === 0 ? {
|
|
208
|
-
text: t("uiLibrary.sceneMonitor.badge.notArmed", "Not armed"),
|
|
209
|
-
tone: "unknown"
|
|
210
|
-
} : e.latched ? {
|
|
211
|
-
text: t("uiLibrary.sceneMonitor.badge.changed", "Changed"),
|
|
212
|
-
tone: "alarm"
|
|
213
|
-
} : e.suspendedCondition === null ? e.verdict === "unknown" ? {
|
|
214
|
-
text: t("uiLibrary.sceneMonitor.badge.cantTell", "Can’t tell"),
|
|
215
|
-
tone: "unknown"
|
|
216
|
-
} : e.verdict === "diverged" ? {
|
|
217
|
-
text: t("uiLibrary.sceneMonitor.badge.changed", "Changed"),
|
|
218
|
-
tone: "alarm"
|
|
219
|
-
} : {
|
|
220
|
-
text: t("uiLibrary.sceneMonitor.badge.normal", "Normal"),
|
|
221
|
-
tone: "ok"
|
|
222
|
-
} : {
|
|
223
|
-
text: t("uiLibrary.sceneMonitor.badge.paused", "Paused"),
|
|
224
|
-
tone: "unknown"
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
var N = .4;
|
|
228
|
-
function P(e) {
|
|
229
|
-
return e.width * e.height > N;
|
|
230
|
-
}
|
|
231
|
-
function F(e) {
|
|
232
|
-
let t = Math.floor(e / 1e3);
|
|
233
|
-
if (t < 60) return `${t}s`;
|
|
234
|
-
let n = Math.floor(t / 60);
|
|
235
|
-
if (n < 60) return `${n}m`;
|
|
236
|
-
let r = Math.floor(n / 60);
|
|
237
|
-
return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
|
|
238
|
-
}
|
|
239
|
-
//#endregion
|
|
240
|
-
export { j as a, S as c, l as d, c as f, P as i, p as l, M as n, D as o, O as r, w as s, T as t, u };
|
package/dist/square-DZHhUhzl.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { h as e } from "./responsive-BmleF5y2.mjs";
|
|
2
|
-
var t = e("eye-off", [
|
|
3
|
-
["path", {
|
|
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",
|
|
5
|
-
key: "ct8e1f"
|
|
6
|
-
}],
|
|
7
|
-
["path", {
|
|
8
|
-
d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
|
|
9
|
-
key: "151rxh"
|
|
10
|
-
}],
|
|
11
|
-
["path", {
|
|
12
|
-
d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
|
|
13
|
-
key: "13bj9a"
|
|
14
|
-
}],
|
|
15
|
-
["path", {
|
|
16
|
-
d: "m2 2 20 20",
|
|
17
|
-
key: "1ooewy"
|
|
18
|
-
}]
|
|
19
|
-
]), n = e("mic", [
|
|
20
|
-
["path", {
|
|
21
|
-
d: "M12 19v3",
|
|
22
|
-
key: "npa21l"
|
|
23
|
-
}],
|
|
24
|
-
["path", {
|
|
25
|
-
d: "M19 10v2a7 7 0 0 1-14 0v-2",
|
|
26
|
-
key: "1vc78b"
|
|
27
|
-
}],
|
|
28
|
-
["rect", {
|
|
29
|
-
x: "9",
|
|
30
|
-
y: "2",
|
|
31
|
-
width: "6",
|
|
32
|
-
height: "13",
|
|
33
|
-
rx: "3",
|
|
34
|
-
key: "s6n7sd"
|
|
35
|
-
}]
|
|
36
|
-
]), r = e("square", [["rect", {
|
|
37
|
-
width: "18",
|
|
38
|
-
height: "18",
|
|
39
|
-
x: "3",
|
|
40
|
-
y: "3",
|
|
41
|
-
rx: "2",
|
|
42
|
-
key: "afitv7"
|
|
43
|
-
}]]);
|
|
44
|
-
//#endregion
|
|
45
|
-
export { n, t as r, r as t };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { h as e } from "./responsive-BmleF5y2.mjs";
|
|
2
|
-
var t = e("trash-2", [
|
|
3
|
-
["path", {
|
|
4
|
-
d: "M10 11v6",
|
|
5
|
-
key: "nco0om"
|
|
6
|
-
}],
|
|
7
|
-
["path", {
|
|
8
|
-
d: "M14 11v6",
|
|
9
|
-
key: "outv1u"
|
|
10
|
-
}],
|
|
11
|
-
["path", {
|
|
12
|
-
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
13
|
-
key: "miytrc"
|
|
14
|
-
}],
|
|
15
|
-
["path", {
|
|
16
|
-
d: "M3 6h18",
|
|
17
|
-
key: "d0wm0j"
|
|
18
|
-
}],
|
|
19
|
-
["path", {
|
|
20
|
-
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
21
|
-
key: "e791ji"
|
|
22
|
-
}]
|
|
23
|
-
]);
|
|
24
|
-
//#endregion
|
|
25
|
-
export { t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { S as e, f as t, n, t as r, u as i } from "./_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react__loadShare__.js-DwXXYAlk.mjs";
|
|
2
|
-
import { n as a, t as o } from "./_virtual_mf___mfe_internal__addon_import_alexa_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-CUiVYNMY.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 };
|