@camstack/addon-model-studio 1.1.238 → 1.1.239
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/_stub.js +197 -186
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BRkbYAXz.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-C2m9eyJu.mjs} +2 -2
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-D4-vA_p3.mjs → hostInit-BzeIML4t.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-sSBQxj-w.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-D85w5ZIh.mjs} +1 -1
- package/package.json +1 -1
package/dist/_stub.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./virtualExposes-CWSi4E_g.mjs";
|
|
2
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-
|
|
2
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-D85w5ZIh.mjs";
|
|
3
3
|
import { _ as e, b as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, p as d, r as f, t as p, u as m, v as h } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-CHL8loOl.mjs";
|
|
4
|
-
import { _ as g, a as _, b as v, c as y, d as b, f as x, g as S, i as C, l as w, m as T, o as E, p as
|
|
4
|
+
import { _ as g, a as _, b as v, c as y, d as b, f as x, g as S, i as C, l as w, m as T, o as E, p as D, r as O, s as k, t as ee, u as A, v as te, y as j } from "./responsive-DI5osE9O.mjs";
|
|
5
5
|
import { d as ne, l as re, u as M } from "./scene-monitor-copy-SE_x3tUF.mjs";
|
|
6
6
|
import { i as ie, r as ae } from "./player-overlays-C9fpIK6c.mjs";
|
|
7
7
|
import { r as oe, t as se } from "./square-DgdMdq1t.mjs";
|
|
@@ -2298,7 +2298,7 @@ typeof globalThis < "u" && !Nr && (globalThis.__camstackTrpcReact = V);
|
|
|
2298
2298
|
//#endregion
|
|
2299
2299
|
//#region ../ui-library/src/hooks/use-live-event.ts
|
|
2300
2300
|
function Pr(e, t) {
|
|
2301
|
-
let n =
|
|
2301
|
+
let n = te(), r = o(t);
|
|
2302
2302
|
r.current = t;
|
|
2303
2303
|
let [i, s] = a(n.connectionVersion);
|
|
2304
2304
|
m(() => n.subscribeConnectionEvents((e, t) => {
|
|
@@ -3004,7 +3004,7 @@ var qr = (e, t) => {
|
|
|
3004
3004
|
"subgrid",
|
|
3005
3005
|
W,
|
|
3006
3006
|
U
|
|
3007
|
-
],
|
|
3007
|
+
], D = () => [
|
|
3008
3008
|
"auto",
|
|
3009
3009
|
{ span: [
|
|
3010
3010
|
"full",
|
|
@@ -3015,19 +3015,19 @@ var qr = (e, t) => {
|
|
|
3015
3015
|
Ii,
|
|
3016
3016
|
W,
|
|
3017
3017
|
U
|
|
3018
|
-
],
|
|
3018
|
+
], O = () => [
|
|
3019
3019
|
Ii,
|
|
3020
3020
|
"auto",
|
|
3021
3021
|
W,
|
|
3022
3022
|
U
|
|
3023
|
-
],
|
|
3023
|
+
], k = () => [
|
|
3024
3024
|
"auto",
|
|
3025
3025
|
"min",
|
|
3026
3026
|
"max",
|
|
3027
3027
|
"fr",
|
|
3028
3028
|
W,
|
|
3029
3029
|
U
|
|
3030
|
-
],
|
|
3030
|
+
], ee = () => [
|
|
3031
3031
|
"start",
|
|
3032
3032
|
"end",
|
|
3033
3033
|
"center",
|
|
@@ -3038,14 +3038,14 @@ var qr = (e, t) => {
|
|
|
3038
3038
|
"baseline",
|
|
3039
3039
|
"center-safe",
|
|
3040
3040
|
"end-safe"
|
|
3041
|
-
],
|
|
3041
|
+
], A = () => [
|
|
3042
3042
|
"start",
|
|
3043
3043
|
"end",
|
|
3044
3044
|
"center",
|
|
3045
3045
|
"stretch",
|
|
3046
3046
|
"center-safe",
|
|
3047
3047
|
"end-safe"
|
|
3048
|
-
],
|
|
3048
|
+
], te = () => ["auto", ...w()], j = () => [
|
|
3049
3049
|
Fi,
|
|
3050
3050
|
"auto",
|
|
3051
3051
|
"full",
|
|
@@ -3405,13 +3405,13 @@ var qr = (e, t) => {
|
|
|
3405
3405
|
U
|
|
3406
3406
|
] }],
|
|
3407
3407
|
"grid-cols": [{ "grid-cols": E() }],
|
|
3408
|
-
"col-start-end": [{ col:
|
|
3409
|
-
"col-start": [{ "col-start":
|
|
3410
|
-
"col-end": [{ "col-end":
|
|
3408
|
+
"col-start-end": [{ col: D() }],
|
|
3409
|
+
"col-start": [{ "col-start": O() }],
|
|
3410
|
+
"col-end": [{ "col-end": O() }],
|
|
3411
3411
|
"grid-rows": [{ "grid-rows": E() }],
|
|
3412
|
-
"row-start-end": [{ row:
|
|
3413
|
-
"row-start": [{ "row-start":
|
|
3414
|
-
"row-end": [{ "row-end":
|
|
3412
|
+
"row-start-end": [{ row: D() }],
|
|
3413
|
+
"row-start": [{ "row-start": O() }],
|
|
3414
|
+
"row-end": [{ "row-end": O() }],
|
|
3415
3415
|
"grid-flow": [{ "grid-flow": [
|
|
3416
3416
|
"row",
|
|
3417
3417
|
"col",
|
|
@@ -3419,24 +3419,24 @@ var qr = (e, t) => {
|
|
|
3419
3419
|
"row-dense",
|
|
3420
3420
|
"col-dense"
|
|
3421
3421
|
] }],
|
|
3422
|
-
"auto-cols": [{ "auto-cols":
|
|
3423
|
-
"auto-rows": [{ "auto-rows":
|
|
3422
|
+
"auto-cols": [{ "auto-cols": k() }],
|
|
3423
|
+
"auto-rows": [{ "auto-rows": k() }],
|
|
3424
3424
|
gap: [{ gap: w() }],
|
|
3425
3425
|
"gap-x": [{ "gap-x": w() }],
|
|
3426
3426
|
"gap-y": [{ "gap-y": w() }],
|
|
3427
|
-
"justify-content": [{ justify: [...
|
|
3428
|
-
"justify-items": [{ "justify-items": [...
|
|
3429
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
3430
|
-
"align-content": [{ content: ["normal", ...
|
|
3431
|
-
"align-items": [{ items: [...
|
|
3427
|
+
"justify-content": [{ justify: [...ee(), "normal"] }],
|
|
3428
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
3429
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
3430
|
+
"align-content": [{ content: ["normal", ...ee()] }],
|
|
3431
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
3432
3432
|
"align-self": [{ self: [
|
|
3433
3433
|
"auto",
|
|
3434
|
-
...
|
|
3434
|
+
...A(),
|
|
3435
3435
|
{ baseline: ["", "last"] }
|
|
3436
3436
|
] }],
|
|
3437
|
-
"place-content": [{ "place-content":
|
|
3438
|
-
"place-items": [{ "place-items": [...
|
|
3439
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
3437
|
+
"place-content": [{ "place-content": ee() }],
|
|
3438
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
3439
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
3440
3440
|
p: [{ p: w() }],
|
|
3441
3441
|
px: [{ px: w() }],
|
|
3442
3442
|
py: [{ py: w() }],
|
|
@@ -3448,17 +3448,17 @@ var qr = (e, t) => {
|
|
|
3448
3448
|
pr: [{ pr: w() }],
|
|
3449
3449
|
pb: [{ pb: w() }],
|
|
3450
3450
|
pl: [{ pl: w() }],
|
|
3451
|
-
m: [{ m:
|
|
3452
|
-
mx: [{ mx:
|
|
3453
|
-
my: [{ my:
|
|
3454
|
-
ms: [{ ms:
|
|
3455
|
-
me: [{ me:
|
|
3456
|
-
mbs: [{ mbs:
|
|
3457
|
-
mbe: [{ mbe:
|
|
3458
|
-
mt: [{ mt:
|
|
3459
|
-
mr: [{ mr:
|
|
3460
|
-
mb: [{ mb:
|
|
3461
|
-
ml: [{ ml:
|
|
3451
|
+
m: [{ m: te() }],
|
|
3452
|
+
mx: [{ mx: te() }],
|
|
3453
|
+
my: [{ my: te() }],
|
|
3454
|
+
ms: [{ ms: te() }],
|
|
3455
|
+
me: [{ me: te() }],
|
|
3456
|
+
mbs: [{ mbs: te() }],
|
|
3457
|
+
mbe: [{ mbe: te() }],
|
|
3458
|
+
mt: [{ mt: te() }],
|
|
3459
|
+
mr: [{ mr: te() }],
|
|
3460
|
+
mb: [{ mb: te() }],
|
|
3461
|
+
ml: [{ ml: te() }],
|
|
3462
3462
|
"space-x": [{ "space-x": w() }],
|
|
3463
3463
|
"space-x-reverse": ["space-x-reverse"],
|
|
3464
3464
|
"space-y": [{ "space-y": w() }],
|
|
@@ -5850,11 +5850,11 @@ var ko = function() {
|
|
|
5850
5850
|
}), h.useEffect(() => {
|
|
5851
5851
|
S(!1);
|
|
5852
5852
|
}, [_]);
|
|
5853
|
-
let
|
|
5853
|
+
let D = lo({
|
|
5854
5854
|
height: i,
|
|
5855
5855
|
width: i
|
|
5856
|
-
}, m),
|
|
5857
|
-
return _ != null && (
|
|
5856
|
+
}, m), O = null;
|
|
5857
|
+
return _ != null && (O = /* @__PURE__ */ h.createElement("img", {
|
|
5858
5858
|
src: _,
|
|
5859
5859
|
key: _,
|
|
5860
5860
|
style: { display: "none" },
|
|
@@ -5864,12 +5864,12 @@ var ko = function() {
|
|
|
5864
5864
|
ref: y,
|
|
5865
5865
|
crossOrigin: E?.crossOrigin
|
|
5866
5866
|
})), /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("canvas", lo({
|
|
5867
|
-
style:
|
|
5867
|
+
style: D,
|
|
5868
5868
|
height: i,
|
|
5869
5869
|
width: i,
|
|
5870
5870
|
ref: b,
|
|
5871
5871
|
role: "img"
|
|
5872
|
-
}, g)),
|
|
5872
|
+
}, g)), O);
|
|
5873
5873
|
});
|
|
5874
5874
|
Ao.displayName = "QRCodeCanvas";
|
|
5875
5875
|
var jo = h.forwardRef(function(e, t) {
|
|
@@ -6675,7 +6675,7 @@ function gs({ addon: e, fields: t, layers: n, target: r, labels: i, modelId: a,
|
|
|
6675
6675
|
children: "Settings"
|
|
6676
6676
|
}),
|
|
6677
6677
|
/* @__PURE__ */ B("span", {
|
|
6678
|
-
className:
|
|
6678
|
+
className: D,
|
|
6679
6679
|
children: ["editing: ", i[r] ?? r]
|
|
6680
6680
|
}),
|
|
6681
6681
|
/* @__PURE__ */ B("span", {
|
|
@@ -7099,7 +7099,7 @@ function ec({ label: e, children: t, actions: n, elements: r = "plain", classNam
|
|
|
7099
7099
|
children: e
|
|
7100
7100
|
}), /* @__PURE__ */ B(s, {
|
|
7101
7101
|
"data-setting-row-value": "",
|
|
7102
|
-
className:
|
|
7102
|
+
className: A,
|
|
7103
7103
|
children: [/* @__PURE__ */ z("span", {
|
|
7104
7104
|
"data-setting-row-value-text": "",
|
|
7105
7105
|
className: G(b, a),
|
|
@@ -7155,64 +7155,65 @@ var sc = {
|
|
|
7155
7155
|
right: "text-right",
|
|
7156
7156
|
center: "text-center"
|
|
7157
7157
|
};
|
|
7158
|
-
function cc({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480, emptyMessage: o, className: s, bordered: c = !0, rowClassName: u, mobileMode: d = "scroll", maxBodyHeight: f,
|
|
7159
|
-
let
|
|
7160
|
-
|
|
7161
|
-
},
|
|
7162
|
-
|
|
7163
|
-
},
|
|
7158
|
+
function cc({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480, emptyMessage: o, className: s, bordered: c = !0, rowClassName: u, mobileMode: d = "scroll", maxBodyHeight: f, fill: p = !1, defaultSort: m, sort: h, onSortChange: g, pageSize: _, page: v, onPageChange: y, paginationLabels: b = Ys, selection: x }) {
|
|
7159
|
+
let S = Ms(), [C, w] = a(m ?? null), [T, E] = a(0), D = h === void 0 ? C : h, O = (e) => {
|
|
7160
|
+
h === void 0 && w(e), g?.(e);
|
|
7161
|
+
}, k = (e) => {
|
|
7162
|
+
v === void 0 && E(e), y?.(e);
|
|
7163
|
+
}, ee = Ks({
|
|
7164
7164
|
mode: d,
|
|
7165
7165
|
columnCount: e.length,
|
|
7166
|
-
isNarrow:
|
|
7167
|
-
}),
|
|
7166
|
+
isNarrow: S
|
|
7167
|
+
}), A = p || f !== void 0, te = p ? "h-full min-h-0" : f ?? "", j = l(() => D === null ? void 0 : e.find((e) => e.key === D.columnKey && e.sortValue !== void 0), [e, D]), ne = j?.sortValue, re = l(() => ne === void 0 ? t : ac(t, D, ne), [
|
|
7168
7168
|
t,
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
]),
|
|
7172
|
-
page:
|
|
7173
|
-
labels:
|
|
7174
|
-
onPageChange:
|
|
7175
|
-
}) : null,
|
|
7169
|
+
D,
|
|
7170
|
+
ne
|
|
7171
|
+
]), M = j === void 0 ? null : D, ie = _ === void 0 ? null : Js(re, v ?? T, _), ae = ie === null ? re : ie.pageRows, oe = ie !== null && ie.pageCount > 1 ? /* @__PURE__ */ z(qs, {
|
|
7172
|
+
page: ie,
|
|
7173
|
+
labels: b,
|
|
7174
|
+
onPageChange: k
|
|
7175
|
+
}) : null, se = x === void 0 ? e : [$s(x, ae, (e) => String(n ? n(e, t.indexOf(e)) : t.indexOf(e))), ...e];
|
|
7176
7176
|
if (t.length === 0 && o) return /* @__PURE__ */ z("div", {
|
|
7177
7177
|
className: `rounded-lg ${c ? "border border-border" : ""} bg-surface px-3 py-4 text-xs text-foreground-subtle text-center ${s ?? ""}`,
|
|
7178
7178
|
children: o
|
|
7179
7179
|
});
|
|
7180
7180
|
if (t.length === 0) return null;
|
|
7181
|
-
if (
|
|
7182
|
-
className: s,
|
|
7181
|
+
if (ee === "cards") return /* @__PURE__ */ B("div", {
|
|
7182
|
+
className: p ? `flex min-h-0 flex-1 flex-col ${s ?? ""}` : s,
|
|
7183
7183
|
children: [/* @__PURE__ */ z("div", {
|
|
7184
|
-
className: `space-y-2 ${
|
|
7185
|
-
children:
|
|
7184
|
+
className: `space-y-2 ${A ? `${te} overflow-y-auto` : ""} ${p ? "min-h-0 flex-1" : ""}`,
|
|
7185
|
+
children: ae.map((e, t) => /* @__PURE__ */ z(lc, {
|
|
7186
7186
|
row: e,
|
|
7187
7187
|
rowIndex: t,
|
|
7188
|
-
columns:
|
|
7188
|
+
columns: se,
|
|
7189
7189
|
bordered: c,
|
|
7190
7190
|
onRowClick: r,
|
|
7191
7191
|
rowClassName: u
|
|
7192
7192
|
}, n ? n(e, t) : t))
|
|
7193
|
-
}),
|
|
7193
|
+
}), oe]
|
|
7194
7194
|
});
|
|
7195
|
-
let
|
|
7195
|
+
let N = /* @__PURE__ */ z("div", {
|
|
7196
7196
|
className: [
|
|
7197
7197
|
"rounded-lg",
|
|
7198
7198
|
c ? "border border-border" : "",
|
|
7199
7199
|
"bg-surface overflow-x-auto",
|
|
7200
|
-
|
|
7201
|
-
|
|
7200
|
+
A ? `${te} overflow-y-auto` : "",
|
|
7201
|
+
p ? "min-h-0 flex-1" : "",
|
|
7202
|
+
!p && oe === null ? s ?? "" : ""
|
|
7202
7203
|
].filter(Boolean).join(" "),
|
|
7203
7204
|
children: /* @__PURE__ */ B("table", {
|
|
7204
|
-
className: `w-full text-xs ${
|
|
7205
|
+
className: `w-full text-xs ${A ? "border-separate border-spacing-0" : ""}`,
|
|
7205
7206
|
style: { minWidth: `${i}px` },
|
|
7206
7207
|
children: [/* @__PURE__ */ z("thead", {
|
|
7207
7208
|
className: "bg-surface",
|
|
7208
|
-
children: /* @__PURE__ */ z("tr", { children:
|
|
7209
|
-
let t = e.align ?? "left", n = e.nowrap ?? !0, r = e.sortValue !== void 0, i =
|
|
7209
|
+
children: /* @__PURE__ */ z("tr", { children: se.map((e) => {
|
|
7210
|
+
let t = e.align ?? "left", n = e.nowrap ?? !0, r = e.sortValue !== void 0, i = M !== null && M.columnKey === e.key;
|
|
7210
7211
|
return /* @__PURE__ */ z("th", {
|
|
7211
|
-
"aria-sort": r ? oc(
|
|
7212
|
+
"aria-sort": r ? oc(M, e.key) : void 0,
|
|
7212
7213
|
title: r ? void 0 : e.notSortableReason,
|
|
7213
7214
|
className: [
|
|
7214
7215
|
"px-3 py-2 text-foreground-subtle font-medium bg-surface border-b border-border",
|
|
7215
|
-
|
|
7216
|
+
A ? "sticky top-0 z-10" : "",
|
|
7216
7217
|
sc[t],
|
|
7217
7218
|
n ? "whitespace-nowrap" : "",
|
|
7218
7219
|
e.width ?? ""
|
|
@@ -7220,17 +7221,17 @@ function cc({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480
|
|
|
7220
7221
|
children: r ? /* @__PURE__ */ z(tc, {
|
|
7221
7222
|
label: e.headerRender ? e.headerRender() : e.header,
|
|
7222
7223
|
active: i,
|
|
7223
|
-
dir: i &&
|
|
7224
|
-
onSort: () =>
|
|
7224
|
+
dir: i && M !== null ? M.dir : "asc",
|
|
7225
|
+
onSort: () => O(rc(D, e.key))
|
|
7225
7226
|
}) : e.headerRender ? e.headerRender() : e.header
|
|
7226
7227
|
}, e.key);
|
|
7227
7228
|
}) })
|
|
7228
|
-
}), /* @__PURE__ */ z("tbody", { children:
|
|
7229
|
+
}), /* @__PURE__ */ z("tbody", { children: ae.map((e, t) => {
|
|
7229
7230
|
let i = n ? n(e, t) : t, a = u?.(e, t) ?? "", o = r !== void 0;
|
|
7230
7231
|
return /* @__PURE__ */ z("tr", {
|
|
7231
7232
|
onClick: o ? () => r(e, t) : void 0,
|
|
7232
7233
|
className: [o ? "cursor-pointer hover:bg-primary/5" : "hover:bg-primary/5", a].filter(Boolean).join(" "),
|
|
7233
|
-
children:
|
|
7234
|
+
children: se.map((n) => {
|
|
7234
7235
|
let r = n.align ?? "left", i = n.nowrap ?? !0;
|
|
7235
7236
|
return /* @__PURE__ */ z("td", {
|
|
7236
7237
|
"data-cell": n.key,
|
|
@@ -7246,9 +7247,12 @@ function cc({ columns: e, rows: t, rowKey: n, onRowClick: r, minWidthPx: i = 480
|
|
|
7246
7247
|
}) })]
|
|
7247
7248
|
})
|
|
7248
7249
|
});
|
|
7249
|
-
return
|
|
7250
|
-
className: s
|
|
7251
|
-
children:
|
|
7250
|
+
return oe === null ? p ? /* @__PURE__ */ z("div", {
|
|
7251
|
+
className: `flex min-h-0 flex-1 flex-col ${s ?? ""}`,
|
|
7252
|
+
children: N
|
|
7253
|
+
}) : N : /* @__PURE__ */ B("div", {
|
|
7254
|
+
className: p ? `flex min-h-0 flex-1 flex-col ${s ?? ""}` : s,
|
|
7255
|
+
children: [N, oe]
|
|
7252
7256
|
});
|
|
7253
7257
|
}
|
|
7254
7258
|
function lc({ row: e, rowIndex: t, columns: n, bordered: r, onRowClick: i, rowClassName: a }) {
|
|
@@ -7902,25 +7906,25 @@ function Nl(e, t) {
|
|
|
7902
7906
|
return t ? (Al[e] ?? 0) >= (Al[t] ?? 0) : !0;
|
|
7903
7907
|
}
|
|
7904
7908
|
function Pl({ agentId: e, addonId: t, deviceId: r, containerDeviceId: i, integrationId: s, requestId: c, level: u, maxHeight: f = "max-h-96", showScope: p = !1, showDeviceChip: h = !1, showFilters: g = !0, limit: _ = 100, liveBuffer: v, onClose: y, className: b }) {
|
|
7905
|
-
let [x, S] = a(""), [C, w] = a(""), [T, E] = a(u ?? "info"),
|
|
7909
|
+
let [x, S] = a(""), [C, w] = a(""), [T, E] = a(u ?? "info"), D = e, O = t ?? (x || void 0), k = r ?? (C ? Number(C) : void 0), ee = s, A = c, te = l(() => {
|
|
7906
7910
|
let e = {};
|
|
7907
|
-
return
|
|
7911
|
+
return D && (e.agentId = D), O && (e.addonId = O), i !== void 0 && Number.isFinite(i) ? e.containerDeviceId = i : k !== void 0 && Number.isFinite(k) && (e.deviceId = k), ee && (e.integrationId = ee), A && (e.requestId = A), Object.keys(e).length > 0 ? e : void 0;
|
|
7908
7912
|
}, [
|
|
7909
|
-
ee,
|
|
7910
7913
|
D,
|
|
7911
7914
|
O,
|
|
7915
|
+
k,
|
|
7912
7916
|
i,
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
]), j = El(Ml), ne = v ?? j, re = ne.entries, [M, oe] = a(0), [se, P] = a(!0), ce = o(!1), [le, F] = a(!1), [ue, de] = a(!1), [fe, pe] = a(/* @__PURE__ */ new Set()), [me, he] = a(""), I = o(null), ge = `${
|
|
7917
|
+
ee,
|
|
7918
|
+
A
|
|
7919
|
+
]), j = El(Ml), ne = v ?? j, re = ne.entries, [M, oe] = a(0), [se, P] = a(!0), ce = o(!1), [le, F] = a(!1), [ue, de] = a(!1), [fe, pe] = a(/* @__PURE__ */ new Set()), [me, he] = a(""), I = o(null), ge = `${D ?? ""}:${O ?? ""}:${String(k ?? "")}:${String(i ?? "")}:${ee ?? ""}:${A ?? ""}`, _e = o(ge);
|
|
7916
7920
|
m(() => {
|
|
7917
7921
|
_e.current !== ge && (_e.current = ge, ne.reset(), oe(0), pe(/* @__PURE__ */ new Set()), F(!1));
|
|
7918
7922
|
}, [ge, ne]);
|
|
7919
7923
|
let { data: ve, isLoading: ye } = V.logs.query.useQuery({
|
|
7920
|
-
...
|
|
7924
|
+
...te ? { tags: te } : {},
|
|
7921
7925
|
limit: _
|
|
7922
7926
|
}, { staleTime: 3e4 });
|
|
7923
|
-
V.logs.subscribe.useSubscription(
|
|
7927
|
+
V.logs.subscribe.useSubscription(te ? { tags: te } : {}, { onData: (e) => {
|
|
7924
7928
|
ne.append(e);
|
|
7925
7929
|
} });
|
|
7926
7930
|
let be = l(() => {
|
|
@@ -7990,11 +7994,11 @@ function Pl({ agentId: e, addonId: t, deviceId: r, containerDeviceId: i, integra
|
|
|
7990
7994
|
de(!0), setTimeout(() => de(!1), 1500);
|
|
7991
7995
|
});
|
|
7992
7996
|
}, [be]), R = V.logs.clear.useMutation(), ke = n(() => {
|
|
7993
|
-
oe(Date.now()), ne.reset(), R.mutate(
|
|
7997
|
+
oe(Date.now()), ne.reset(), R.mutate(te ? { tags: te } : {});
|
|
7994
7998
|
}, [
|
|
7995
7999
|
ne,
|
|
7996
8000
|
R,
|
|
7997
|
-
|
|
8001
|
+
te
|
|
7998
8002
|
]), Ae = n((e) => {
|
|
7999
8003
|
pe((t) => {
|
|
8000
8004
|
let n = new Set(t);
|
|
@@ -8019,17 +8023,17 @@ function Pl({ agentId: e, addonId: t, deviceId: r, containerDeviceId: i, integra
|
|
|
8019
8023
|
className: "text-[10px] uppercase tracking-wide text-foreground-subtle font-medium",
|
|
8020
8024
|
children: "Logs"
|
|
8021
8025
|
}),
|
|
8022
|
-
|
|
8026
|
+
D && /* @__PURE__ */ z(Il, {
|
|
8023
8027
|
label: "agent",
|
|
8024
|
-
value:
|
|
8028
|
+
value: D
|
|
8025
8029
|
}),
|
|
8026
|
-
|
|
8030
|
+
O && /* @__PURE__ */ z(Il, {
|
|
8027
8031
|
label: "addon",
|
|
8028
|
-
value:
|
|
8032
|
+
value: O
|
|
8029
8033
|
}),
|
|
8030
|
-
|
|
8034
|
+
k !== void 0 && /* @__PURE__ */ z(Il, {
|
|
8031
8035
|
label: "device",
|
|
8032
|
-
value: `#${
|
|
8036
|
+
value: `#${k}`
|
|
8033
8037
|
}),
|
|
8034
8038
|
/* @__PURE__ */ z("div", {
|
|
8035
8039
|
className: "flex rounded border border-border overflow-hidden text-[9px]",
|
|
@@ -8605,7 +8609,7 @@ function cu({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
|
|
|
8605
8609
|
}
|
|
8606
8610
|
}, E = () => {
|
|
8607
8611
|
p || f(null);
|
|
8608
|
-
},
|
|
8612
|
+
}, D = async () => {
|
|
8609
8613
|
if (!(p || d === null)) {
|
|
8610
8614
|
g(null), m(!0);
|
|
8611
8615
|
try {
|
|
@@ -8616,14 +8620,14 @@ function cu({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
|
|
|
8616
8620
|
m(!1);
|
|
8617
8621
|
}
|
|
8618
8622
|
}
|
|
8619
|
-
},
|
|
8623
|
+
}, O = _ ? "Unlock" : "Lock", k = d === "open" ? "Open door?" : "Unlock device?", ee = d === "open" ? "This will release the latch and open the door." : "This will unlock the device.", A = d === "open" ? "Confirm open" : "Confirm unlock", te = z(d === "open" ? Jt : vn, { className: "h-4 w-4 text-amber-400" });
|
|
8620
8624
|
return /* @__PURE__ */ B("div", {
|
|
8621
8625
|
className: G("inline-flex items-center", n === "full" ? "gap-2" : "gap-1"),
|
|
8622
8626
|
children: [
|
|
8623
8627
|
/* @__PURE__ */ B("button", {
|
|
8624
8628
|
type: "button",
|
|
8625
|
-
"aria-label":
|
|
8626
|
-
title: l.state === "jammed" ? "Jammed" :
|
|
8629
|
+
"aria-label": O,
|
|
8630
|
+
title: l.state === "jammed" ? "Jammed" : O,
|
|
8627
8631
|
disabled: v,
|
|
8628
8632
|
onClick: (e) => {
|
|
8629
8633
|
e.stopPropagation(), w();
|
|
@@ -8653,8 +8657,8 @@ function cu({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
|
|
|
8653
8657
|
children: [
|
|
8654
8658
|
/* @__PURE__ */ B(eo, { children: [/* @__PURE__ */ B(no, {
|
|
8655
8659
|
className: "flex items-center gap-2",
|
|
8656
|
-
children: [
|
|
8657
|
-
}), /* @__PURE__ */ z(ro, { children:
|
|
8660
|
+
children: [te, k]
|
|
8661
|
+
}), /* @__PURE__ */ z(ro, { children: ee })] }),
|
|
8658
8662
|
h !== null && /* @__PURE__ */ z("div", {
|
|
8659
8663
|
className: "mt-2 px-3 py-2 rounded border border-danger/40 bg-danger/10 text-xs text-danger",
|
|
8660
8664
|
children: h
|
|
@@ -8670,12 +8674,12 @@ function cu({ trpc: e, deviceId: t, layout: n, optimistic: r, features: i }) {
|
|
|
8670
8674
|
type: "button",
|
|
8671
8675
|
variant: "danger",
|
|
8672
8676
|
size: "sm",
|
|
8673
|
-
"aria-label":
|
|
8677
|
+
"aria-label": A,
|
|
8674
8678
|
disabled: p,
|
|
8675
8679
|
onClick: () => {
|
|
8676
|
-
|
|
8680
|
+
D();
|
|
8677
8681
|
},
|
|
8678
|
-
children: [p && /* @__PURE__ */ z(_n, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
8682
|
+
children: [p && /* @__PURE__ */ z(_n, { className: "h-3.5 w-3.5 animate-spin" }), A]
|
|
8679
8683
|
})] })
|
|
8680
8684
|
]
|
|
8681
8685
|
})
|
|
@@ -18862,27 +18866,27 @@ var Yx = f(function({ tree: e, agents: t, getCellState: n, onCellClick: r, onSte
|
|
|
18862
18866
|
u,
|
|
18863
18867
|
_,
|
|
18864
18868
|
t
|
|
18865
|
-
]), [E,
|
|
18869
|
+
]), [E, D] = a({
|
|
18866
18870
|
r: 0,
|
|
18867
18871
|
c: 0
|
|
18868
18872
|
});
|
|
18869
18873
|
m(() => {
|
|
18870
|
-
T !== null &&
|
|
18874
|
+
T !== null && D(T);
|
|
18871
18875
|
}, [T]);
|
|
18872
|
-
let
|
|
18876
|
+
let O = E.r < _.length && E.c < S ? E : {
|
|
18873
18877
|
r: 0,
|
|
18874
18878
|
c: 0
|
|
18875
|
-
},
|
|
18879
|
+
}, k = (e, t) => {
|
|
18876
18880
|
y.current?.querySelector(`[data-r="${e}"][data-c="${t}"]`)?.focus();
|
|
18877
18881
|
};
|
|
18878
18882
|
return i(g, () => ({ focusCell: (e, n) => {
|
|
18879
18883
|
let r = _.findIndex((t) => t.node.addonId === e);
|
|
18880
18884
|
if (r < 0) return;
|
|
18881
18885
|
let i = n === null ? -1 : t.findIndex((e) => Ax(e) === n), a = i < 0 ? 0 : i + 1;
|
|
18882
|
-
|
|
18886
|
+
D({
|
|
18883
18887
|
r,
|
|
18884
18888
|
c: a
|
|
18885
|
-
}),
|
|
18889
|
+
}), k(r, a);
|
|
18886
18890
|
} }), [_, t]), d(() => {
|
|
18887
18891
|
if (T === null) return;
|
|
18888
18892
|
let e = y.current, t = e?.querySelector(`[data-r="${T.r}"][data-c="${T.c}"]`);
|
|
@@ -18913,7 +18917,7 @@ var Yx = f(function({ tree: e, agents: t, getCellState: n, onCellClick: r, onSte
|
|
|
18913
18917
|
r: Number(e.target.dataset.r),
|
|
18914
18918
|
c: Number(e.target.dataset.c)
|
|
18915
18919
|
}, n = Kx(e.key, t, _.length, S);
|
|
18916
|
-
n !== null && (e.preventDefault(),
|
|
18920
|
+
n !== null && (e.preventDefault(), D(n), k(n.r, n.c));
|
|
18917
18921
|
},
|
|
18918
18922
|
children: [/* @__PURE__ */ B("div", {
|
|
18919
18923
|
role: "row",
|
|
@@ -18937,7 +18941,7 @@ var Yx = f(function({ tree: e, agents: t, getCellState: n, onCellClick: r, onSte
|
|
|
18937
18941
|
node: e,
|
|
18938
18942
|
depth: i,
|
|
18939
18943
|
r: a,
|
|
18940
|
-
tabbable:
|
|
18944
|
+
tabbable: O.r === a && O.c === 0,
|
|
18941
18945
|
selected: u?.addonId === e.addonId,
|
|
18942
18946
|
badge: c?.(e.addonId),
|
|
18943
18947
|
onClick: s ? (t) => s(e.addonId, t) : void 0,
|
|
@@ -18953,7 +18957,7 @@ var Yx = f(function({ tree: e, agents: t, getCellState: n, onCellClick: r, onSte
|
|
|
18953
18957
|
"data-c": i + 1,
|
|
18954
18958
|
"data-step": e.addonId,
|
|
18955
18959
|
"data-col": Ax(t),
|
|
18956
|
-
tabIndex:
|
|
18960
|
+
tabIndex: O.r === a && O.c === i + 1 ? 0 : -1,
|
|
18957
18961
|
"aria-disabled": !c,
|
|
18958
18962
|
"aria-selected": s,
|
|
18959
18963
|
onClick: (n) => {
|
|
@@ -19046,13 +19050,13 @@ function Xx({ selectedNodeId: e, onSelect: t, label: n = "Node", hideIcon: r = !
|
|
|
19046
19050
|
}
|
|
19047
19051
|
//#endregion
|
|
19048
19052
|
//#region ../ui-library/src/composites/page-shell.tsx
|
|
19049
|
-
function Zx({ icon: e, title: t, subtitle: n, actions: r, nav: i,
|
|
19050
|
-
let
|
|
19053
|
+
function Zx({ icon: e, title: t, subtitle: n, actions: r, nav: i, fill: a = !1, className: o, children: s }) {
|
|
19054
|
+
let c = !!t || n != null || r != null, l = c || i != null;
|
|
19051
19055
|
return /* @__PURE__ */ B("div", {
|
|
19052
|
-
className: G("
|
|
19053
|
-
children: [
|
|
19054
|
-
className: "space-y-3",
|
|
19055
|
-
children: [
|
|
19056
|
+
className: G("overflow-x-clip p-2 sm:p-4", a ? "flex h-full min-h-0 flex-col gap-4" : "space-y-4", o),
|
|
19057
|
+
children: [l && /* @__PURE__ */ B("div", {
|
|
19058
|
+
className: "shrink-0 space-y-3",
|
|
19059
|
+
children: [c && /* @__PURE__ */ B("div", {
|
|
19056
19060
|
className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-4",
|
|
19057
19061
|
children: [/* @__PURE__ */ B("div", {
|
|
19058
19062
|
className: "min-w-0",
|
|
@@ -19071,10 +19075,16 @@ function Zx({ icon: e, title: t, subtitle: n, actions: r, nav: i, className: a,
|
|
|
19071
19075
|
children: r
|
|
19072
19076
|
})]
|
|
19073
19077
|
}), i]
|
|
19074
|
-
}),
|
|
19078
|
+
}), a ? /* @__PURE__ */ z("div", {
|
|
19079
|
+
className: "flex min-h-0 flex-1 flex-col gap-3",
|
|
19080
|
+
children: s
|
|
19081
|
+
}) : s]
|
|
19075
19082
|
});
|
|
19076
19083
|
}
|
|
19077
19084
|
//#endregion
|
|
19085
|
+
//#region ../ui-library/src/composites/sectioned-page.tsx
|
|
19086
|
+
t(), t();
|
|
19087
|
+
//#endregion
|
|
19078
19088
|
//#region ../ui-library/src/composites/section-toolbar.tsx
|
|
19079
19089
|
function Qx({ start: e, end: t, className: n, testId: r }) {
|
|
19080
19090
|
return /* @__PURE__ */ B("div", {
|
|
@@ -19112,7 +19122,7 @@ function tS(e) {
|
|
|
19112
19122
|
}
|
|
19113
19123
|
//#endregion
|
|
19114
19124
|
//#region ../ui-library/src/composites/step-inspector/step-inspector-panel.tsx
|
|
19115
|
-
t(), t(), t(), G(C, "min-w-0 max-w-full gap-1.5 py-1 pl-1 pr-2.5 text-xs font-normal", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"), G(
|
|
19125
|
+
t(), t(), t(), G(C, "min-w-0 max-w-full gap-1.5 py-1 pl-1 pr-2.5 text-xs font-normal", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"), G(O, "font-medium"), t(), t(), t(), t(), t();
|
|
19116
19126
|
function nS({ dirtyCount: e, saving: t, status: n, error: r, onSave: i, onDiscard: a, scope: o }) {
|
|
19117
19127
|
let s = e > 0, c = t ? "Saving…" : s ? `${e} unsaved change${e === 1 ? "" : "s"}` : n === "saved" ? "Saved" : n === "error" ? r ?? "Save failed" : "No unsaved changes";
|
|
19118
19128
|
return /* @__PURE__ */ B("footer", {
|
|
@@ -20667,7 +20677,7 @@ var Hw = [
|
|
|
20667
20677
|
label: "Test"
|
|
20668
20678
|
}];
|
|
20669
20679
|
function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
20670
|
-
let i = uw(), [s, c] = a(null), [u, d] = a([]), [f, p] = a(null), [h, g] = a({}), [_, v] = a({}), [y, b] = a(null), [x, S] = a(null), [C, w] = a(null), [T, E] = a("relu"), [
|
|
20680
|
+
let i = uw(), [s, c] = a(null), [u, d] = a([]), [f, p] = a(null), [h, g] = a({}), [_, v] = a({}), [y, b] = a(null), [x, S] = a(null), [C, w] = a(null), [T, E] = a("relu"), [D, O] = a(""), [k, ee] = a(""), [A, te] = a(null), [j, ne] = a(""), re = o(0), M = o(!1), ie = t !== void 0 && t.length > 0 ? t : j.length > 0 ? j : void 0, ae = n(async () => {
|
|
20671
20681
|
let t = ++re.current;
|
|
20672
20682
|
b(null);
|
|
20673
20683
|
try {
|
|
@@ -20684,7 +20694,7 @@ function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
|
20684
20694
|
a
|
|
20685
20695
|
]);
|
|
20686
20696
|
if (t !== re.current) return;
|
|
20687
|
-
if (c(o.entries), d(o.drift),
|
|
20697
|
+
if (c(o.entries), d(o.drift), te(u), u.length > 0 && ne((e) => e.length > 0 && u.includes(e) ? e : u[0]), s.ok) {
|
|
20688
20698
|
p(new Set(s.value.map((e) => e.entry.id)));
|
|
20689
20699
|
let e = {};
|
|
20690
20700
|
for (let t of s.value) e[t.entry.id] = zS(t.entry);
|
|
@@ -20703,9 +20713,9 @@ function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
|
20703
20713
|
m(() => {
|
|
20704
20714
|
ae();
|
|
20705
20715
|
}, [ae]);
|
|
20706
|
-
let oe = l(() => (s ?? []).filter((e) => e.variant === T), [s, T]), se = l(() => Mw(oe), [oe]), N = l(() => new Map(se.map((e) => [e.id, e])), [se]), P =
|
|
20707
|
-
if (M.current || Vw(
|
|
20708
|
-
let a = Bw(
|
|
20716
|
+
let oe = l(() => (s ?? []).filter((e) => e.variant === T), [s, T]), se = l(() => Mw(oe), [oe]), N = l(() => new Map(se.map((e) => [e.id, e])), [se]), P = D.length > 0 && N.has(D) ? D : se[0]?.id ?? "", ce = n(async (n) => {
|
|
20717
|
+
if (M.current || Vw(k)) return;
|
|
20718
|
+
let a = Bw(k);
|
|
20709
20719
|
M.current = !0, S(n.id), w(null);
|
|
20710
20720
|
let o = n.format === "tflite" ? ie : t !== void 0 && t.length > 0 ? t : void 0;
|
|
20711
20721
|
try {
|
|
@@ -20758,7 +20768,7 @@ function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
|
20758
20768
|
ie,
|
|
20759
20769
|
t,
|
|
20760
20770
|
i,
|
|
20761
|
-
|
|
20771
|
+
k
|
|
20762
20772
|
]);
|
|
20763
20773
|
if (s === null && y === null) return /* @__PURE__ */ z("div", {
|
|
20764
20774
|
"data-testid": "scrypted-tab",
|
|
@@ -20800,7 +20810,7 @@ function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
|
20800
20810
|
className: "text-[11px] text-foreground-subtle",
|
|
20801
20811
|
children: "Local Scrypted YOLO catalog. Import lands on the selected node."
|
|
20802
20812
|
}),
|
|
20803
|
-
t === void 0 &&
|
|
20813
|
+
t === void 0 && A !== null && A.length > 0 && /* @__PURE__ */ B("label", {
|
|
20804
20814
|
className: "flex items-center gap-2 text-[11px] text-foreground",
|
|
20805
20815
|
children: [/* @__PURE__ */ z("span", {
|
|
20806
20816
|
className: "text-foreground-subtle uppercase tracking-wide text-[10px]",
|
|
@@ -20809,13 +20819,13 @@ function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
|
20809
20819
|
className: "bg-surface border border-border rounded px-2 py-0.5 text-[11px]",
|
|
20810
20820
|
value: j,
|
|
20811
20821
|
onChange: (e) => ne(e.target.value),
|
|
20812
|
-
children:
|
|
20822
|
+
children: A.map((e) => /* @__PURE__ */ z("option", {
|
|
20813
20823
|
value: e,
|
|
20814
20824
|
children: e
|
|
20815
20825
|
}, e))
|
|
20816
20826
|
})]
|
|
20817
20827
|
}),
|
|
20818
|
-
t === void 0 &&
|
|
20828
|
+
t === void 0 && A !== null && A.length === 0 && /* @__PURE__ */ z("p", {
|
|
20819
20829
|
className: "text-[11px] text-warning",
|
|
20820
20830
|
children: "No Coral node — TFLite registers only."
|
|
20821
20831
|
}),
|
|
@@ -20839,19 +20849,19 @@ function Ww({ trpc: e, landNodeId: t, onImported: r }) {
|
|
|
20839
20849
|
count: (s ?? []).filter((t) => t.variant === e.value).length
|
|
20840
20850
|
})),
|
|
20841
20851
|
onChange: (e) => {
|
|
20842
|
-
(e === "relu" || e === "relu_test") && (E(e),
|
|
20852
|
+
(e === "relu" || e === "relu_test") && (E(e), O(""));
|
|
20843
20853
|
},
|
|
20844
20854
|
compactWhenSingle: !1
|
|
20845
20855
|
}],
|
|
20846
20856
|
catalog: se,
|
|
20847
20857
|
value: P,
|
|
20848
|
-
onChange:
|
|
20858
|
+
onChange: O,
|
|
20849
20859
|
emptyMessage: "No Scrypted artifacts for this variant.",
|
|
20850
20860
|
actionRow: le && ue.length > 0 ? /* @__PURE__ */ B("div", {
|
|
20851
20861
|
className: "space-y-2",
|
|
20852
20862
|
children: [/* @__PURE__ */ z(zw, {
|
|
20853
|
-
value:
|
|
20854
|
-
onChange:
|
|
20863
|
+
value: k,
|
|
20864
|
+
onChange: ee,
|
|
20855
20865
|
defaultName: le.name
|
|
20856
20866
|
}), /* @__PURE__ */ z(Rw, {
|
|
20857
20867
|
entries: ue,
|
|
@@ -22089,7 +22099,7 @@ function zT({ trpc: e, refreshKey: t, nodeId: r }) {
|
|
|
22089
22099
|
return !n && Object.keys(e).length === Object.keys(t).length ? e : t;
|
|
22090
22100
|
});
|
|
22091
22101
|
}, [w, T]);
|
|
22092
|
-
let E = uw(),
|
|
22102
|
+
let E = uw(), D = n(async (t, n) => {
|
|
22093
22103
|
if (IT(n)) {
|
|
22094
22104
|
g(`${t.stepId}/${t.modelId}/${n}`), v(null);
|
|
22095
22105
|
try {
|
|
@@ -22170,7 +22180,7 @@ function zT({ trpc: e, refreshKey: t, nodeId: r }) {
|
|
|
22170
22180
|
...n,
|
|
22171
22181
|
[e]: t
|
|
22172
22182
|
})),
|
|
22173
|
-
onDownload: (e, t) => void
|
|
22183
|
+
onDownload: (e, t) => void D(e, t)
|
|
22174
22184
|
})
|
|
22175
22185
|
]
|
|
22176
22186
|
});
|
|
@@ -22193,7 +22203,7 @@ function BT({ trpc: e, refreshKey: t, source: n, onSourceChange: r, onRegistered
|
|
|
22193
22203
|
type: "button",
|
|
22194
22204
|
"aria-pressed": n === e.value,
|
|
22195
22205
|
onClick: () => r(e.value),
|
|
22196
|
-
className: G(C, "px-2", n === e.value ?
|
|
22206
|
+
className: G(C, "px-2", n === e.value ? O : _),
|
|
22197
22207
|
children: e.label
|
|
22198
22208
|
}, e.value))
|
|
22199
22209
|
}),
|
|
@@ -22403,13 +22413,13 @@ var QT = [
|
|
|
22403
22413
|
label: "Remote URL"
|
|
22404
22414
|
}];
|
|
22405
22415
|
function nE({ trpc: e, onRegistered: t, initialPrefill: r = null, onPrefillConsumed: i }) {
|
|
22406
|
-
let s = uw(), [c, u] = a("upload"), [d, f] = a(""), [p, h] = a(""), [g, _] = a("object-detection"), [v, y] = a("onnx"), [b, x] = a(""), [S, C] = a(""), [w, T] = a(0), [E,
|
|
22416
|
+
let s = uw(), [c, u] = a("upload"), [d, f] = a(""), [p, h] = a(""), [g, _] = a("object-detection"), [v, y] = a("onnx"), [b, x] = a(""), [S, C] = a(""), [w, T] = a(0), [E, D] = a(320), [O, k] = a(320), [ee, A] = a(""), [te, j] = a(null), [ne, re] = a([]), [M, ie] = a({ state: "idle" }), [ae, oe] = a(!1), [se, N] = a(null), [P, ce] = a(null), le = o(null), F = l(() => Xw(ee), [ee]);
|
|
22407
22417
|
m(() => {
|
|
22408
|
-
r != null && (u("upload"), y(r.format), x(r.postprocessor ?? ""),
|
|
22418
|
+
r != null && (u("upload"), y(r.format), x(r.postprocessor ?? ""), D(r.inputSize), k(r.inputSize), A(r.labels.join("\n")), j(r.sourceLabel), N(null), ce(null), i?.());
|
|
22409
22419
|
}, [r, i]);
|
|
22410
22420
|
let ue = n((e, t) => {
|
|
22411
22421
|
let n = ZT(e);
|
|
22412
|
-
re(n.hints), n.format !== null && y(n.format),
|
|
22422
|
+
re(n.hints), n.format !== null && y(n.format), D(n.inputSize), k(n.inputSize), (t?.forceId || !d) && f(n.modelId), p || h(n.name), n.sizeMB !== null && e.kind === "url" && T(n.sizeMB);
|
|
22413
22423
|
}, [d, p]), de = n(async (t) => {
|
|
22414
22424
|
N(null), ue({
|
|
22415
22425
|
kind: "file",
|
|
@@ -22476,7 +22486,7 @@ function nE({ trpc: e, onRegistered: t, initialPrefill: r = null, onPrefillConsu
|
|
|
22476
22486
|
format: v,
|
|
22477
22487
|
...r === void 0 ? {} : { postprocessor: r },
|
|
22478
22488
|
inputWidth: E,
|
|
22479
|
-
inputHeight:
|
|
22489
|
+
inputHeight: O,
|
|
22480
22490
|
labels: F
|
|
22481
22491
|
});
|
|
22482
22492
|
await s.run({
|
|
@@ -22519,7 +22529,7 @@ function nE({ trpc: e, onRegistered: t, initialPrefill: r = null, onPrefillConsu
|
|
|
22519
22529
|
S,
|
|
22520
22530
|
w,
|
|
22521
22531
|
E,
|
|
22522
|
-
|
|
22532
|
+
O,
|
|
22523
22533
|
F,
|
|
22524
22534
|
M,
|
|
22525
22535
|
t,
|
|
@@ -22554,14 +22564,14 @@ function nE({ trpc: e, onRegistered: t, initialPrefill: r = null, onPrefillConsu
|
|
|
22554
22564
|
}, e.value))
|
|
22555
22565
|
})]
|
|
22556
22566
|
}),
|
|
22557
|
-
|
|
22567
|
+
te !== null && c === "upload" && /* @__PURE__ */ B("div", {
|
|
22558
22568
|
className: "rounded-md border border-primary/30 bg-primary/10 px-3 py-2 text-[11px] text-foreground-subtle",
|
|
22559
22569
|
children: [
|
|
22560
22570
|
"Format, decode, input size and labelmap prefilled from the Frigate catalog:",
|
|
22561
22571
|
" ",
|
|
22562
22572
|
/* @__PURE__ */ z("span", {
|
|
22563
22573
|
className: "text-foreground",
|
|
22564
|
-
children:
|
|
22574
|
+
children: te
|
|
22565
22575
|
}),
|
|
22566
22576
|
". Upload your exported file below."
|
|
22567
22577
|
]
|
|
@@ -22667,13 +22677,13 @@ function nE({ trpc: e, onRegistered: t, initialPrefill: r = null, onPrefillConsu
|
|
|
22667
22677
|
/* @__PURE__ */ z(ZC, {
|
|
22668
22678
|
label: "Input width",
|
|
22669
22679
|
value: E,
|
|
22670
|
-
onChange:
|
|
22680
|
+
onChange: D,
|
|
22671
22681
|
min: 1
|
|
22672
22682
|
}),
|
|
22673
22683
|
/* @__PURE__ */ z(ZC, {
|
|
22674
22684
|
label: "Input height",
|
|
22675
|
-
value:
|
|
22676
|
-
onChange:
|
|
22685
|
+
value: O,
|
|
22686
|
+
onChange: k,
|
|
22677
22687
|
min: 1
|
|
22678
22688
|
})
|
|
22679
22689
|
]
|
|
@@ -22716,8 +22726,8 @@ function nE({ trpc: e, onRegistered: t, initialPrefill: r = null, onPrefillConsu
|
|
|
22716
22726
|
/* @__PURE__ */ z(YC, {
|
|
22717
22727
|
label: `Labelmap (${F.length} labels — order = model output index)`,
|
|
22718
22728
|
children: /* @__PURE__ */ z("textarea", {
|
|
22719
|
-
value:
|
|
22720
|
-
onChange: (e) =>
|
|
22729
|
+
value: ee,
|
|
22730
|
+
onChange: (e) => A(e.target.value),
|
|
22721
22731
|
rows: 8,
|
|
22722
22732
|
spellCheck: !1,
|
|
22723
22733
|
className: "w-full px-3 py-1.5 text-xs font-mono rounded-md border border-border bg-surface text-foreground focus:outline-none focus:border-primary/50"
|
|
@@ -23230,7 +23240,7 @@ function PE({ step: e, current: t, inputs: n, onChange: r }) {
|
|
|
23230
23240
|
"data-step": e.stepId,
|
|
23231
23241
|
children: [
|
|
23232
23242
|
/* @__PURE__ */ B("header", {
|
|
23233
|
-
className: `${
|
|
23243
|
+
className: `${k} flex min-h-9 flex-wrap items-center gap-2`,
|
|
23234
23244
|
children: [/* @__PURE__ */ B("h3", {
|
|
23235
23245
|
id: `cluster-${e.stepId}`,
|
|
23236
23246
|
className: `${T} min-w-0 flex-1`,
|
|
@@ -23265,7 +23275,7 @@ function PE({ step: e, current: t, inputs: n, onChange: r }) {
|
|
|
23265
23275
|
})]
|
|
23266
23276
|
}),
|
|
23267
23277
|
/* @__PURE__ */ B("p", {
|
|
23268
|
-
className: `${
|
|
23278
|
+
className: `${D} px-3 pt-2 sm:px-4`,
|
|
23269
23279
|
children: [
|
|
23270
23280
|
"One model for the whole cluster: every node writes into ",
|
|
23271
23281
|
e.indexName,
|
|
@@ -23608,7 +23618,7 @@ function XE({ row: e }) {
|
|
|
23608
23618
|
function ZE({ row: e, busy: t, onRemove: n }) {
|
|
23609
23619
|
return e.removable ? /* @__PURE__ */ B("button", {
|
|
23610
23620
|
type: "button",
|
|
23611
|
-
className:
|
|
23621
|
+
className: ee,
|
|
23612
23622
|
disabled: t,
|
|
23613
23623
|
onClick: n,
|
|
23614
23624
|
"aria-label": `Remove ${e.modelId} ${e.format}`,
|
|
@@ -23750,7 +23760,7 @@ function rD(e) {
|
|
|
23750
23760
|
type: "button",
|
|
23751
23761
|
"aria-pressed": e.provider === t.value,
|
|
23752
23762
|
onClick: () => e.onProvider(t.value),
|
|
23753
|
-
className: G(C, "px-2", e.provider === t.value ?
|
|
23763
|
+
className: G(C, "px-2", e.provider === t.value ? O : _),
|
|
23754
23764
|
children: t.label
|
|
23755
23765
|
}, t.value))
|
|
23756
23766
|
}),
|
|
@@ -23841,9 +23851,9 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23841
23851
|
m(() => {
|
|
23842
23852
|
v(null), E();
|
|
23843
23853
|
}, [E, t]);
|
|
23844
|
-
let
|
|
23854
|
+
let O = n(async () => {
|
|
23845
23855
|
await E(), C((e) => e + 1);
|
|
23846
|
-
}, [E]),
|
|
23856
|
+
}, [E]), k = l(() => _ === null ? [] : xE({
|
|
23847
23857
|
nodeId: p,
|
|
23848
23858
|
seeds: _.seeds,
|
|
23849
23859
|
stepCatalogs: _.stepCatalogs,
|
|
@@ -23852,20 +23862,20 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23852
23862
|
clusterModels: _.clusterModels,
|
|
23853
23863
|
registry: _.models,
|
|
23854
23864
|
availability: _.availability
|
|
23855
|
-
}), [_, p]),
|
|
23865
|
+
}), [_, p]), ee = _?.devices ?? [], A = l(() => SE(k, ee, {
|
|
23856
23866
|
provider: o,
|
|
23857
23867
|
step: c,
|
|
23858
23868
|
device: d
|
|
23859
23869
|
}), [
|
|
23860
|
-
|
|
23861
|
-
|
|
23870
|
+
k,
|
|
23871
|
+
ee,
|
|
23862
23872
|
o,
|
|
23863
23873
|
c,
|
|
23864
23874
|
d
|
|
23865
|
-
]),
|
|
23866
|
-
let e = new Set(
|
|
23875
|
+
]), te = l(() => {
|
|
23876
|
+
let e = new Set(k.map((e) => e.stepId));
|
|
23867
23877
|
return c !== "all" && e.add(c), [...e].toSorted((e, t) => e.localeCompare(t));
|
|
23868
|
-
}, [
|
|
23878
|
+
}, [k, c]), j = n(async (t) => {
|
|
23869
23879
|
if (!t.removable || !lD(t.format)) return;
|
|
23870
23880
|
let n = {
|
|
23871
23881
|
modelId: t.modelId,
|
|
@@ -23883,13 +23893,13 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23883
23893
|
confirmLabel: "Delete file",
|
|
23884
23894
|
cancelLabel: "Cancel",
|
|
23885
23895
|
variant: "danger"
|
|
23886
|
-
}) && (await j(e), await
|
|
23896
|
+
}) && (await j(e), await O());
|
|
23887
23897
|
}, [
|
|
23888
23898
|
g,
|
|
23889
23899
|
j,
|
|
23890
23900
|
p,
|
|
23891
|
-
|
|
23892
|
-
]), re = l(() =>
|
|
23901
|
+
O
|
|
23902
|
+
]), re = l(() => A.filter((e) => e.usage === "unused" && e.removable), [A]), M = n(async () => {
|
|
23893
23903
|
if (re.length === 0) return;
|
|
23894
23904
|
let e = re.reduce((e, t) => e + t.sizeMB, 0);
|
|
23895
23905
|
if (await g({
|
|
@@ -23900,20 +23910,20 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23900
23910
|
variant: "danger"
|
|
23901
23911
|
})) {
|
|
23902
23912
|
for (let e of re) await j(e);
|
|
23903
|
-
await
|
|
23913
|
+
await O();
|
|
23904
23914
|
}
|
|
23905
23915
|
}, [
|
|
23906
23916
|
g,
|
|
23907
23917
|
j,
|
|
23908
23918
|
p,
|
|
23909
|
-
|
|
23919
|
+
O,
|
|
23910
23920
|
re
|
|
23911
23921
|
]), ie = n(async (t, n) => {
|
|
23912
23922
|
await mC(e, {
|
|
23913
23923
|
modelId: t.modelId,
|
|
23914
23924
|
name: n
|
|
23915
|
-
}), await
|
|
23916
|
-
}, [e,
|
|
23925
|
+
}), await O();
|
|
23926
|
+
}, [e, O]), ae = n(async (t, n) => {
|
|
23917
23927
|
if (n.configured) {
|
|
23918
23928
|
T({
|
|
23919
23929
|
row: t,
|
|
@@ -23929,15 +23939,15 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23929
23939
|
variant: "default"
|
|
23930
23940
|
}) && (await BC(e, {
|
|
23931
23941
|
agentNodeId: p,
|
|
23932
|
-
inferenceDevices: sE(
|
|
23933
|
-
}), await
|
|
23942
|
+
inferenceDevices: sE(ee, t.stepId, t.modelId, [n.deviceKey])
|
|
23943
|
+
}), await O());
|
|
23934
23944
|
}, [
|
|
23935
23945
|
g,
|
|
23936
23946
|
p,
|
|
23937
23947
|
e,
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
]), oe =
|
|
23948
|
+
ee,
|
|
23949
|
+
O
|
|
23950
|
+
]), oe = k.reduce((e, t) => e + t.sizeMB, 0), se = o !== "all" || c !== "all" || d !== "all";
|
|
23941
23951
|
return /* @__PURE__ */ B("div", {
|
|
23942
23952
|
className: x,
|
|
23943
23953
|
"data-testid": "installed-tab",
|
|
@@ -23950,10 +23960,10 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23950
23960
|
provider: o,
|
|
23951
23961
|
onProvider: s,
|
|
23952
23962
|
step: c,
|
|
23953
|
-
stepOptions:
|
|
23963
|
+
stepOptions: te,
|
|
23954
23964
|
onStep: u,
|
|
23955
23965
|
device: d,
|
|
23956
|
-
deviceOptions: uE(
|
|
23966
|
+
deviceOptions: uE(ee),
|
|
23957
23967
|
onDevice: f,
|
|
23958
23968
|
nodeId: p,
|
|
23959
23969
|
onNode: h
|
|
@@ -23965,20 +23975,20 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23965
23975
|
/* @__PURE__ */ B("div", {
|
|
23966
23976
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
23967
23977
|
children: [/* @__PURE__ */ B("p", {
|
|
23968
|
-
className:
|
|
23978
|
+
className: D,
|
|
23969
23979
|
"data-testid": "installed-summary",
|
|
23970
23980
|
children: [
|
|
23971
|
-
|
|
23981
|
+
A.length,
|
|
23972
23982
|
" ",
|
|
23973
|
-
|
|
23983
|
+
A.length === 1 ? "file" : "files",
|
|
23974
23984
|
" on ",
|
|
23975
23985
|
p,
|
|
23976
|
-
se ? ` (of ${
|
|
23986
|
+
se ? ` (of ${k.length})` : "",
|
|
23977
23987
|
" · ",
|
|
23978
23988
|
eC(oe),
|
|
23979
23989
|
" on disk ·",
|
|
23980
23990
|
" ",
|
|
23981
|
-
eC(CE(
|
|
23991
|
+
eC(CE(k)),
|
|
23982
23992
|
" reclaimable",
|
|
23983
23993
|
_?.engines === null ? " · loaded state unavailable" : ""
|
|
23984
23994
|
]
|
|
@@ -23995,8 +24005,8 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
23995
24005
|
})]
|
|
23996
24006
|
}),
|
|
23997
24007
|
/* @__PURE__ */ z($E, {
|
|
23998
|
-
rows:
|
|
23999
|
-
emptyMessage:
|
|
24008
|
+
rows: A,
|
|
24009
|
+
emptyMessage: k.length === 0 ? `No model files on ${p}.` : "No files match these filters.",
|
|
24000
24010
|
onRemove: ne,
|
|
24001
24011
|
onRename: ie,
|
|
24002
24012
|
onChip: ae,
|
|
@@ -24006,7 +24016,7 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
24006
24016
|
trpc: e,
|
|
24007
24017
|
refreshKey: t + S,
|
|
24008
24018
|
clusterModels: _?.clusterModels ?? null,
|
|
24009
|
-
onChanged: () => void
|
|
24019
|
+
onChanged: () => void O(),
|
|
24010
24020
|
onError: b
|
|
24011
24021
|
})
|
|
24012
24022
|
] }),
|
|
@@ -24016,10 +24026,10 @@ function fD({ trpc: e, refreshKey: t }) {
|
|
|
24016
24026
|
stepId: w.row.stepId,
|
|
24017
24027
|
modelId: w.row.modelId,
|
|
24018
24028
|
modelName: w.row.name,
|
|
24019
|
-
devices:
|
|
24029
|
+
devices: ee,
|
|
24020
24030
|
deviceKey: w.deviceKey,
|
|
24021
24031
|
onClose: () => T(null),
|
|
24022
|
-
onDone: () => void
|
|
24032
|
+
onDone: () => void O()
|
|
24023
24033
|
})
|
|
24024
24034
|
]
|
|
24025
24035
|
});
|
|
@@ -24091,6 +24101,7 @@ function yD({ trpc: e }) {
|
|
|
24091
24101
|
r,
|
|
24092
24102
|
s
|
|
24093
24103
|
]), /* @__PURE__ */ z(dw, { children: /* @__PURE__ */ B(Zx, {
|
|
24104
|
+
icon: xt,
|
|
24094
24105
|
title: "Model Studio",
|
|
24095
24106
|
children: [/* @__PURE__ */ z(Fs, {
|
|
24096
24107
|
value: c,
|