@camstack/addon-model-studio 1.1.141 → 1.1.143
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-B5oV0MdI.mjs → MotionZonesSettings-BCZidV1W.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-C1Qm7jrF.mjs → PrivacyMaskSettings-U0a679pe.mjs} +4 -4
- package/dist/{SceneMonitorEditor-Cc76ecMi.mjs → SceneMonitorEditor-D7gmH35x.mjs} +13 -13
- package/dist/_stub.js +12 -14
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CTkEe-XL.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DYqebP3v.mjs} +4 -4
- package/dist/{_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Ck5bXAEc.mjs → _virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CKEe1Nbx.mjs} +1 -1
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-CRf6DNPv.mjs → hostInit-DPytEYgO.mjs} +3 -3
- package/dist/model-studio.addon.js +209 -7
- package/dist/model-studio.addon.mjs +209 -7
- package/dist/{player-overlays-M0l7AyPu.mjs → player-overlays-h4kwY-YM.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-8-xrhADg.mjs → responsive-C6dBVCr7.mjs} +1 -1
- package/dist/{use-device-snapshot-BJO0wrqY.mjs → scene-monitor-copy-BJ1b42AA.mjs} +46 -46
- package/dist/{square-8-ETDCsB.mjs → square-DRNiF2hB.mjs} +1 -1
- package/dist/{trash-2-Bgi7lLFL.mjs → trash-2-DRNHM26U.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CDobikrl.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CigmnmQE.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
|
|
2
|
-
import { s as i } from "./responsive-
|
|
2
|
+
import { s as i } from "./responsive-C6dBVCr7.mjs";
|
|
3
3
|
var a = i("camera", [["path", {
|
|
4
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
5
|
key: "18u6gg"
|
|
@@ -86,47 +86,71 @@ function g(e) {
|
|
|
86
86
|
return t !== "/" && (e === m() || e.startsWith(t)) ? e : `${t}${n}`;
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
|
+
//#region ../ui-library/src/hooks/use-device-snapshot.ts
|
|
90
|
+
var _ = "/addon/snapshot/media";
|
|
91
|
+
function v(r, i = {}) {
|
|
92
|
+
let { width: a, baseUrl: o } = i, [s, c] = t(0);
|
|
93
|
+
return {
|
|
94
|
+
src: n(() => {
|
|
95
|
+
if (r === null || r <= 0) return null;
|
|
96
|
+
let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
|
|
97
|
+
a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
|
|
98
|
+
let n = t.toString();
|
|
99
|
+
return `${e}${_}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
|
|
100
|
+
}, [
|
|
101
|
+
r,
|
|
102
|
+
a,
|
|
103
|
+
o,
|
|
104
|
+
s
|
|
105
|
+
]),
|
|
106
|
+
loading: !1,
|
|
107
|
+
refresh: e(() => {
|
|
108
|
+
c((e) => e + 1);
|
|
109
|
+
}, [])
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
89
113
|
//#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
|
|
90
|
-
var
|
|
114
|
+
var y = ["day", "ir"], b = {
|
|
91
115
|
day: "Daylight",
|
|
92
116
|
ir: "Night (IR)",
|
|
93
117
|
night: "Night",
|
|
94
118
|
dawn: "Dawn",
|
|
95
119
|
dusk: "Dusk"
|
|
96
120
|
};
|
|
97
|
-
function
|
|
98
|
-
return
|
|
121
|
+
function x(e) {
|
|
122
|
+
return b[e] ?? e;
|
|
99
123
|
}
|
|
100
|
-
function
|
|
101
|
-
let t = new Set(e.coveredConditions), n =
|
|
102
|
-
for (let e of r) n.push(`${
|
|
103
|
-
let i =
|
|
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));
|
|
104
128
|
if (i.length === 0) return n.join(" · ");
|
|
105
129
|
if (t.size === 0) return `${n.join(" · ")} — nothing captured yet, so this scene is not watching.`;
|
|
106
|
-
let a = i.map((e) =>
|
|
130
|
+
let a = i.map((e) => x(e).toLowerCase()).join(" and ");
|
|
107
131
|
return e.onUncoveredCondition === "judge-anyway" ? `${n.join(" · ")} — ${a} judged against the references you do have.` : `${n.join(" · ")} — optional; checks in ${a} are skipped.`;
|
|
108
132
|
}
|
|
109
|
-
function
|
|
133
|
+
function C(e) {
|
|
110
134
|
if (e.suspendedCondition === null) return null;
|
|
111
|
-
let t =
|
|
135
|
+
let t = x(e.suspendedCondition).toLowerCase();
|
|
112
136
|
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.`;
|
|
113
137
|
}
|
|
114
|
-
var
|
|
138
|
+
var w = {
|
|
115
139
|
"no-reference-for-condition": "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like.",
|
|
116
140
|
"view-shifted": "can’t tell — the camera view has moved since the reference was captured. Re-capture it.",
|
|
117
141
|
"no-vision-profile": "can’t tell — the vision model is unreachable, so the change is on hold.",
|
|
118
142
|
"encoder-model-changed": "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.",
|
|
119
143
|
"no-snapshot": "can’t tell — this camera did not return a frame."
|
|
120
144
|
};
|
|
121
|
-
function
|
|
145
|
+
function T(e, t) {
|
|
122
146
|
if (e.states.length === 0) return "Not armed yet — capture the initial state to start watching.";
|
|
123
|
-
if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." :
|
|
124
|
-
let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${
|
|
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))}`;
|
|
125
149
|
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.`;
|
|
126
|
-
let i =
|
|
150
|
+
let i = C(e);
|
|
127
151
|
return i === null ? e.verdict === "diverged" ? `CHANGED${r}` : `Normal${r}` : i;
|
|
128
152
|
}
|
|
129
|
-
function
|
|
153
|
+
function E(e) {
|
|
130
154
|
return e.states.length === 0 ? {
|
|
131
155
|
text: "Not armed",
|
|
132
156
|
tone: "unknown"
|
|
@@ -147,11 +171,11 @@ function w(e) {
|
|
|
147
171
|
tone: "unknown"
|
|
148
172
|
};
|
|
149
173
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
return e.width * e.height >
|
|
174
|
+
var D = .4;
|
|
175
|
+
function O(e) {
|
|
176
|
+
return e.width * e.height > D;
|
|
153
177
|
}
|
|
154
|
-
function
|
|
178
|
+
function k(e) {
|
|
155
179
|
let t = Math.floor(e / 1e3);
|
|
156
180
|
if (t < 60) return `${t}s`;
|
|
157
181
|
let n = Math.floor(t / 60);
|
|
@@ -160,28 +184,4 @@ function D(e) {
|
|
|
160
184
|
return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
|
|
161
185
|
}
|
|
162
186
|
//#endregion
|
|
163
|
-
|
|
164
|
-
var O = "/addon/snapshot/media";
|
|
165
|
-
function k(r, i = {}) {
|
|
166
|
-
let { width: a, baseUrl: o } = i, [s, c] = t(0);
|
|
167
|
-
return {
|
|
168
|
-
src: n(() => {
|
|
169
|
-
if (r === null || r <= 0) return null;
|
|
170
|
-
let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
|
|
171
|
-
a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
|
|
172
|
-
let n = t.toString();
|
|
173
|
-
return `${e}${O}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
|
|
174
|
-
}, [
|
|
175
|
-
r,
|
|
176
|
-
a,
|
|
177
|
-
o,
|
|
178
|
-
s
|
|
179
|
-
]),
|
|
180
|
-
loading: !1,
|
|
181
|
-
refresh: e(() => {
|
|
182
|
-
c((e) => e + 1);
|
|
183
|
-
}, [])
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
export { E as a, g as c, a as d, b as i, s as l, _ as n, C as o, w as r, y as s, k as t, o as u };
|
|
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 };
|
|
@@ -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_model_studio_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DYqebP3v.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|