@camstack/addon-pipeline-orchestrator 1.2.719 → 1.2.720
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 +6 -0
- package/dist/_stub.js +60 -60
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CoLIHruW.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CE3vDM9p.mjs} +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DnJjohzV.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-B3qjSy6k.mjs +26 -0
- package/dist/{hostInit-CK375hoJ.mjs → hostInit-vWavBQqX.mjs} +2 -2
- package/dist/index.js +123 -0
- package/dist/index.mjs +123 -0
- package/dist/remoteEntry.js +1 -1
- package/package.json +5 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C3STVT8e.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DKukm_Vs.mjs +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.720] - 2026-11-24
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The Viewer is now declared as an app for the viewer shell's app switcher
|
|
15
|
+
|
|
10
16
|
## [1.2.719] - 2026-11-24
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/dist/_stub.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-BiLBDmU5.mjs";
|
|
2
|
-
import { n as t, r as n, t as r } from "./_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
2
|
+
import { n as t, r as n, t as r } from "./_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DnJjohzV.mjs";
|
|
3
3
|
import { a as i, c as a, i as o, n as s, o as c, r as l, s as u, t as d } from "./_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.js-a8tvh93M.mjs";
|
|
4
|
-
import { A as f, C as p, D as m, E as h, M as g, O as _, S as v, T as y, _ as b, a as x, b as S, c as C, d as w, f as T, g as E, h as D, i as O, j as k, k as A, l as j, m as
|
|
4
|
+
import { A as f, C as p, D as m, E as h, M as g, O as _, S as v, T as y, _ as b, a as x, b as S, c as C, d as w, f as T, g as E, h as D, i as O, j as k, k as A, l as j, m as ee, n as M, o as N, p as P, r as F, s as I, t as L, u as te, v as R, w as z, x as B, y as V } from "./_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-B3qjSy6k.mjs";
|
|
5
5
|
import { n as H, r as U, t as W } from "./_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-yD-rMaFX.mjs";
|
|
6
6
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
7
7
|
var G = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ne = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), re = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), K = (e) => {
|
|
@@ -198,7 +198,7 @@ var G = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
|
|
|
198
198
|
}], ["path", {
|
|
199
199
|
d: "m6 6 12 12",
|
|
200
200
|
key: "d8bk6v"
|
|
201
|
-
}]]), { useT: X, Trans: ve, translate: Z } =
|
|
201
|
+
}]]), { useT: X, Trans: ve, translate: Z } = L("pipeline-orchestrator", {
|
|
202
202
|
en: {
|
|
203
203
|
quickStats: {
|
|
204
204
|
requiresDevice: "PipelineQuickStats requires a deviceId",
|
|
@@ -368,19 +368,19 @@ function ye(e) {
|
|
|
368
368
|
}) : /* @__PURE__ */ H(be, { deviceId: e.deviceId });
|
|
369
369
|
}
|
|
370
370
|
function be({ deviceId: t }) {
|
|
371
|
-
let { t: r } = X(), i =
|
|
371
|
+
let { t: r } = X(), i = te();
|
|
372
372
|
x(["pipelineOrchestrator", "getPipelineAssignment"], [
|
|
373
373
|
"pipeline.camera-assigned",
|
|
374
374
|
"pipeline.camera-unassigned",
|
|
375
375
|
"pipeline.camera-updated"
|
|
376
376
|
]), x(["pipelineRunner", "getCameraMetrics"], ["pipeline.camera-metrics-snapshot"]);
|
|
377
|
-
let { data: a } =
|
|
377
|
+
let { data: a } = N({ deviceId: t }, { staleTime: 3e4 }), o = a?.agentNodeId ?? null, s = typeof o == "string" && o.length > 0 && !o.startsWith("addon:") ? o : void 0, { data: c } = I({
|
|
378
378
|
deviceId: t,
|
|
379
379
|
...s ? { nodeId: s } : {}
|
|
380
380
|
}, {
|
|
381
381
|
staleTime: 2e3,
|
|
382
382
|
retry: !1
|
|
383
|
-
}), l = j(), u =
|
|
383
|
+
}), l = j(), u = F(l.trpcClient, t), { data: d } = e({
|
|
384
384
|
queryKey: [
|
|
385
385
|
"device",
|
|
386
386
|
t,
|
|
@@ -422,9 +422,9 @@ function be({ deviceId: t }) {
|
|
|
422
422
|
}),
|
|
423
423
|
staleTime: 3e4,
|
|
424
424
|
retry: !1
|
|
425
|
-
}), g = n(h, "detectionMode"), _ = typeof g == "string" ? g : null, v = c?.phase ?? null, b = _, S = Number(c?.actualFps ?? 0), C = Number(c?.configuredFps ?? 0), w = Number(c?.avgInferenceTimeMs ?? 0), T = Number(c?.queueDepth ?? 0), E = Number(c?.droppedFrames ?? 0), D =
|
|
425
|
+
}), g = n(h, "detectionMode"), _ = typeof g == "string" ? g : null, v = c?.phase ?? null, b = _, S = Number(c?.actualFps ?? 0), C = Number(c?.configuredFps ?? 0), w = Number(c?.avgInferenceTimeMs ?? 0), T = Number(c?.queueDepth ?? 0), E = Number(c?.droppedFrames ?? 0), D = M(v ?? "watching", i), O = d?.length ?? 0, k = f?.level.dbfs ?? null, A = typeof k == "number" ? `${k.toFixed(1)} dBFS` : "—", P = p?.enabled ?? !1, L = p?.activeMode ?? "off", R = P && L !== "off", z = P ? L === "off" ? r("quickStats.rec.idle") : L === "continuous" ? r("quickStats.rec.continuous") : L === "onMotion" ? r("quickStats.rec.onMotion") : L === "onAudioThreshold" ? r("quickStats.rec.onAudio") : L : r("quickStats.rec.disabled"), B = (m?.profiles ?? []).join(", "), V = p ? `${xe(p.storageBytes ?? 0)}${B ? ` · ${B}` : ""}` : void 0;
|
|
426
426
|
return /* @__PURE__ */ U("div", {
|
|
427
|
-
className:
|
|
427
|
+
className: ee,
|
|
428
428
|
children: [
|
|
429
429
|
/* @__PURE__ */ H(y, {
|
|
430
430
|
icon: se,
|
|
@@ -460,7 +460,7 @@ function be({ deviceId: t }) {
|
|
|
460
460
|
icon: ge,
|
|
461
461
|
label: r("quickStats.recording"),
|
|
462
462
|
value: z,
|
|
463
|
-
valueClassName:
|
|
463
|
+
valueClassName: R ? "text-success" : void 0,
|
|
464
464
|
subtext: V
|
|
465
465
|
})
|
|
466
466
|
]
|
|
@@ -642,7 +642,7 @@ function Te({ zone: e, onSave: t, onDiscard: n, onDelete: r }) {
|
|
|
642
642
|
variant: "unstyled",
|
|
643
643
|
type: "button",
|
|
644
644
|
onClick: r,
|
|
645
|
-
className: `${
|
|
645
|
+
className: `${R} w-full`,
|
|
646
646
|
children: [/* @__PURE__ */ H(J, { className: "h-3 w-3" }), i("zoneForm.delete")]
|
|
647
647
|
})
|
|
648
648
|
]
|
|
@@ -730,11 +730,11 @@ function Fe({ on: e, label: t, hint: n, onToggle: r }) {
|
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
733
|
-
let { t: o } = X(), s = j(), l = O(e?.state.zoneRules), d = c(() => l?.[n] ?? [], [l, n]), [p, h] = u([]), [
|
|
733
|
+
let { t: o } = X(), s = j(), l = O(e?.state.zoneRules), d = c(() => l?.[n] ?? [], [l, n]), [p, h] = u([]), [g, v] = u(!1), [y, x] = u(!1), [S, C] = u(null), w = Oe(n);
|
|
734
734
|
i(() => {
|
|
735
|
-
|
|
736
|
-
}, [d,
|
|
737
|
-
let
|
|
735
|
+
g || h(d.map(Ne));
|
|
736
|
+
}, [d, g]);
|
|
737
|
+
let T = () => {
|
|
738
738
|
h((e) => [...e, {
|
|
739
739
|
id: je(),
|
|
740
740
|
name: "",
|
|
@@ -744,8 +744,8 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
744
744
|
enabled: !0,
|
|
745
745
|
detectBySceneDifference: !1,
|
|
746
746
|
confirmWithLlm: !1
|
|
747
|
-
}]),
|
|
748
|
-
},
|
|
747
|
+
}]), v(!0);
|
|
748
|
+
}, ee = (e, t) => {
|
|
749
749
|
h((n) => n.map((n, r) => {
|
|
750
750
|
if (r !== e) return n;
|
|
751
751
|
let i = n.classFilter.includes(t) ? n.classFilter.filter((e) => e !== t) : [...n.classFilter, t];
|
|
@@ -753,8 +753,8 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
753
753
|
...n,
|
|
754
754
|
classFilter: i
|
|
755
755
|
};
|
|
756
|
-
})),
|
|
757
|
-
},
|
|
756
|
+
})), v(!0);
|
|
757
|
+
}, M = (e, t) => {
|
|
758
758
|
h((n) => n.map((n, r) => {
|
|
759
759
|
if (r !== e) return n;
|
|
760
760
|
let i = n.zoneIds.includes(t) ? n.zoneIds.filter((e) => e !== t) : [...n.zoneIds, t];
|
|
@@ -762,28 +762,28 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
762
762
|
...n,
|
|
763
763
|
zoneIds: i
|
|
764
764
|
};
|
|
765
|
-
})),
|
|
766
|
-
},
|
|
767
|
-
h((t) => t.filter((t, n) => n !== e)),
|
|
768
|
-
},
|
|
765
|
+
})), v(!0);
|
|
766
|
+
}, N = (e) => {
|
|
767
|
+
h((t) => t.filter((t, n) => n !== e)), v(!0);
|
|
768
|
+
}, P = (e, t) => {
|
|
769
769
|
h((n) => n.map((n, r) => r === e ? {
|
|
770
770
|
...n,
|
|
771
771
|
...t
|
|
772
|
-
} : n)),
|
|
773
|
-
},
|
|
774
|
-
|
|
772
|
+
} : n)), v(!0);
|
|
773
|
+
}, F = async () => {
|
|
774
|
+
x(!0), C(null);
|
|
775
775
|
try {
|
|
776
776
|
await s.trpcClient.zoneRules.setRules.mutate({
|
|
777
777
|
deviceId: t,
|
|
778
778
|
stage: n,
|
|
779
779
|
rules: p.map((e) => Pe(e, n))
|
|
780
|
-
}),
|
|
780
|
+
}), v(!1);
|
|
781
781
|
} catch (e) {
|
|
782
|
-
|
|
782
|
+
C(e instanceof Error ? e.message : String(e));
|
|
783
783
|
} finally {
|
|
784
|
-
|
|
784
|
+
x(!1);
|
|
785
785
|
}
|
|
786
|
-
},
|
|
786
|
+
}, I = g && !y;
|
|
787
787
|
return /* @__PURE__ */ U("div", {
|
|
788
788
|
className: "rounded-md border border-border bg-surface/40 p-2.5",
|
|
789
789
|
children: [
|
|
@@ -797,7 +797,7 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
797
797
|
children: [/* @__PURE__ */ U(_, {
|
|
798
798
|
variant: "unstyled",
|
|
799
799
|
type: "button",
|
|
800
|
-
onClick:
|
|
800
|
+
onClick: T,
|
|
801
801
|
disabled: r.length === 0 || !e,
|
|
802
802
|
className: b,
|
|
803
803
|
title: o("rules.add"),
|
|
@@ -810,11 +810,11 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
810
810
|
variant: "unstyled",
|
|
811
811
|
type: "button",
|
|
812
812
|
onClick: () => {
|
|
813
|
-
|
|
813
|
+
F();
|
|
814
814
|
},
|
|
815
|
-
disabled: !
|
|
815
|
+
disabled: !I,
|
|
816
816
|
className: V,
|
|
817
|
-
children: [/* @__PURE__ */ H(he, { className: "h-2.5 w-2.5" }),
|
|
817
|
+
children: [/* @__PURE__ */ H(he, { className: "h-2.5 w-2.5" }), y ? "…" : o("rules.save")]
|
|
818
818
|
})]
|
|
819
819
|
})]
|
|
820
820
|
}),
|
|
@@ -836,7 +836,7 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
836
836
|
"aria-checked": e.enabled,
|
|
837
837
|
"aria-label": e.enabled ? o("rules.disable") : o("rules.enable"),
|
|
838
838
|
title: e.enabled ? o("rules.activeTitle") : o("rules.disabledTitle"),
|
|
839
|
-
onClick: () =>
|
|
839
|
+
onClick: () => P(t, { enabled: !e.enabled }),
|
|
840
840
|
className: ["inline-flex items-center justify-center h-5 w-9 rounded-full border transition-colors flex-shrink-0", e.enabled ? "border-primary/50 bg-primary/20 text-primary" : "border-border bg-surface text-foreground-subtle"].join(" "),
|
|
841
841
|
children: /* @__PURE__ */ H("span", { className: ["h-3 w-3 rounded-full transition-transform", e.enabled ? "translate-x-1.5 bg-primary" : "-translate-x-1.5 bg-foreground-subtle"].join(" ") })
|
|
842
842
|
}),
|
|
@@ -844,14 +844,14 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
844
844
|
className: `${D} min-w-0`,
|
|
845
845
|
placeholder: o("rules.namePlaceholder"),
|
|
846
846
|
value: e.name,
|
|
847
|
-
onChange: (e) =>
|
|
847
|
+
onChange: (e) => P(t, { name: e.target.value })
|
|
848
848
|
}),
|
|
849
849
|
/* @__PURE__ */ H(_, {
|
|
850
850
|
variant: "unstyled",
|
|
851
851
|
type: "button",
|
|
852
852
|
title: o("rules.remove"),
|
|
853
853
|
"aria-label": o("rules.remove"),
|
|
854
|
-
onClick: () =>
|
|
854
|
+
onClick: () => N(t),
|
|
855
855
|
className: "flex items-center justify-center h-6 w-6 rounded text-foreground-subtle hover:text-danger hover:bg-danger/10 transition-colors flex-shrink-0",
|
|
856
856
|
children: /* @__PURE__ */ H(J, { className: "h-3.5 w-3.5" })
|
|
857
857
|
})
|
|
@@ -867,15 +867,15 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
867
867
|
/* @__PURE__ */ H(_, {
|
|
868
868
|
variant: "unstyled",
|
|
869
869
|
type: "button",
|
|
870
|
-
onClick: () =>
|
|
871
|
-
className: `${f} ${e.mode === "include" ? A :
|
|
870
|
+
onClick: () => P(t, { mode: "include" }),
|
|
871
|
+
className: `${f} ${e.mode === "include" ? A : k}`,
|
|
872
872
|
children: o("rules.include")
|
|
873
873
|
}),
|
|
874
874
|
/* @__PURE__ */ H(_, {
|
|
875
875
|
variant: "unstyled",
|
|
876
876
|
type: "button",
|
|
877
|
-
onClick: () =>
|
|
878
|
-
className: `${f} ${e.mode === "exclude" ? A :
|
|
877
|
+
onClick: () => P(t, { mode: "exclude" }),
|
|
878
|
+
className: `${f} ${e.mode === "exclude" ? A : k}`,
|
|
879
879
|
children: o("rules.exclude")
|
|
880
880
|
})
|
|
881
881
|
]
|
|
@@ -891,8 +891,8 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
891
891
|
}) : r.map((n) => /* @__PURE__ */ U(_, {
|
|
892
892
|
variant: "unstyled",
|
|
893
893
|
type: "button",
|
|
894
|
-
onClick: () =>
|
|
895
|
-
className: `${f} ${e.zoneIds.includes(n.id) ? A :
|
|
894
|
+
onClick: () => M(t, n.id),
|
|
895
|
+
className: `${f} ${e.zoneIds.includes(n.id) ? A : k}`,
|
|
896
896
|
children: [/* @__PURE__ */ H("span", {
|
|
897
897
|
className: "h-2 w-2 rounded-sm",
|
|
898
898
|
style: { backgroundColor: n.color || "#3b82f6" }
|
|
@@ -908,15 +908,15 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
908
908
|
on: e.detectBySceneDifference,
|
|
909
909
|
label: o("rules.sceneDifference"),
|
|
910
910
|
hint: o("rules.sceneDifferenceHint"),
|
|
911
|
-
onToggle: () =>
|
|
911
|
+
onToggle: () => P(t, { detectBySceneDifference: !e.detectBySceneDifference })
|
|
912
912
|
}), /* @__PURE__ */ H(Fe, {
|
|
913
913
|
on: e.confirmWithLlm,
|
|
914
914
|
label: o("rules.confirmLlm"),
|
|
915
915
|
hint: o("rules.confirmLlmHint"),
|
|
916
|
-
onToggle: () =>
|
|
916
|
+
onToggle: () => P(t, { confirmWithLlm: !e.confirmWithLlm })
|
|
917
917
|
})]
|
|
918
918
|
}),
|
|
919
|
-
|
|
919
|
+
w && /* @__PURE__ */ U("div", {
|
|
920
920
|
className: "flex items-center gap-1.5 flex-wrap",
|
|
921
921
|
children: [
|
|
922
922
|
/* @__PURE__ */ H("span", {
|
|
@@ -926,8 +926,8 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
926
926
|
Me.map((n) => /* @__PURE__ */ H(_, {
|
|
927
927
|
variant: "unstyled",
|
|
928
928
|
type: "button",
|
|
929
|
-
onClick: () =>
|
|
930
|
-
className: `${f} ${e.classFilter.includes(n.id) ? A :
|
|
929
|
+
onClick: () => ee(t, n.id),
|
|
930
|
+
className: `${f} ${e.classFilter.includes(n.id) ? A : k}`,
|
|
931
931
|
children: n.label
|
|
932
932
|
}, n.id)),
|
|
933
933
|
e.classFilter.length === 0 && /* @__PURE__ */ H("span", {
|
|
@@ -939,9 +939,9 @@ function Q({ dev: e, deviceId: t, stage: n, zones: r, title: a }) {
|
|
|
939
939
|
]
|
|
940
940
|
}, e.id))
|
|
941
941
|
}),
|
|
942
|
-
|
|
942
|
+
S && /* @__PURE__ */ H("p", {
|
|
943
943
|
className: "mt-2 text-[10px] text-danger",
|
|
944
|
-
children:
|
|
944
|
+
children: S
|
|
945
945
|
})
|
|
946
946
|
]
|
|
947
947
|
});
|
|
@@ -975,13 +975,13 @@ function Re(e) {
|
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
977
|
function ze({ deviceId: e }) {
|
|
978
|
-
let t = j(), n = O(
|
|
978
|
+
let t = j(), n = O(F(t.trpcClient, e)?.state.zones), r = c(() => n?.zones ?? [], [n]), i = w(), s = i?.drawingKind ?? null, l = i?.selectedZoneId ?? null, d = i?.editingDraft ?? null, f = c(() => r.map((e) => d && d.id === e.id ? {
|
|
979
979
|
id: d.id,
|
|
980
980
|
name: d.name,
|
|
981
981
|
kind: d.kind,
|
|
982
982
|
color: d.color,
|
|
983
983
|
points: [...d.points]
|
|
984
|
-
} :
|
|
984
|
+
} : g(e)), [r, d]), p = c(() => f.map(T), [f]), [m, h] = u(null), _ = o(async (n) => {
|
|
985
985
|
if (n.kind !== "polygon" && n.kind !== "line") return;
|
|
986
986
|
let r = {
|
|
987
987
|
id: je(),
|
|
@@ -1011,7 +1011,7 @@ function ze({ deviceId: e }) {
|
|
|
1011
1011
|
e,
|
|
1012
1012
|
f,
|
|
1013
1013
|
i
|
|
1014
|
-
]),
|
|
1014
|
+
]), v = o(async (n, r) => {
|
|
1015
1015
|
let a = r.map((e) => ({
|
|
1016
1016
|
x: e.x,
|
|
1017
1017
|
y: e.y
|
|
@@ -1038,9 +1038,9 @@ function ze({ deviceId: e }) {
|
|
|
1038
1038
|
f,
|
|
1039
1039
|
d,
|
|
1040
1040
|
i
|
|
1041
|
-
]),
|
|
1042
|
-
typeof e == "string" && (t.kind !== "polygon" && t.kind !== "line" ||
|
|
1043
|
-
}, [
|
|
1041
|
+
]), y = o((e, t) => {
|
|
1042
|
+
typeof e == "string" && (t.kind !== "polygon" && t.kind !== "line" || v(e, t.points));
|
|
1043
|
+
}, [v]), b = o((e) => {
|
|
1044
1044
|
if (e === null) {
|
|
1045
1045
|
i?.discardDraft(), i?.setSelectedZoneId(null);
|
|
1046
1046
|
return;
|
|
@@ -1066,10 +1066,10 @@ function ze({ deviceId: e }) {
|
|
|
1066
1066
|
items: p,
|
|
1067
1067
|
supportedShapes: Ie,
|
|
1068
1068
|
selectedId: l,
|
|
1069
|
-
onSelect:
|
|
1070
|
-
onShapeChange:
|
|
1069
|
+
onSelect: b,
|
|
1070
|
+
onShapeChange: y,
|
|
1071
1071
|
onDrawComplete: (e) => {
|
|
1072
|
-
|
|
1072
|
+
_(e);
|
|
1073
1073
|
},
|
|
1074
1074
|
drawingKind: s === null ? null : Ae(s)
|
|
1075
1075
|
}), m !== null && /* @__PURE__ */ H("p", {
|
|
@@ -1099,7 +1099,7 @@ function Ue(e) {
|
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
1101
|
function We({ deviceId: e }) {
|
|
1102
|
-
let { t } = X(), n = j(), r =
|
|
1102
|
+
let { t } = X(), n = j(), r = F(n.trpcClient, e), i = O(r?.state.zones), a = c(() => i?.zones ?? [], [i]), s = c(() => a.map(He), [a]), [l, d] = u(null), f = w(), g = f?.drawingKind ?? null, _ = f?.selectedZoneId ?? null, y = f?.editingDraft ?? null;
|
|
1103
1103
|
C(c(() => ({
|
|
1104
1104
|
id: "zones",
|
|
1105
1105
|
order: 100,
|
|
@@ -1214,7 +1214,7 @@ function We({ deviceId: e }) {
|
|
|
1214
1214
|
]
|
|
1215
1215
|
})]
|
|
1216
1216
|
}), /* @__PURE__ */ U("div", {
|
|
1217
|
-
className: `grid grid-cols-1 2xl:grid-cols-2 ${
|
|
1217
|
+
className: `grid grid-cols-1 2xl:grid-cols-2 ${P}`,
|
|
1218
1218
|
children: [
|
|
1219
1219
|
/* @__PURE__ */ H(Q, {
|
|
1220
1220
|
dev: r,
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.629",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_orchestrator_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.502",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_orchestrator_widgets",
|