@camstack/addon-training 0.1.7 → 0.1.8
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 +262 -268
- package/package.json +1 -1
package/dist/_stub.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./virtualExposes-0m8NqEDE.mjs";
|
|
2
2
|
import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-gU49KvnZ.mjs";
|
|
3
3
|
import { S as i, _ as a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, p as g, r as _, t as v, u as y, v as b, x, y as S } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-DeDbF7NI.mjs";
|
|
4
|
-
import { a as C, c as w, d as T, f as E, g as D, h as O, i as k, l as A, m as j, n as M, o as N, p as P, r as
|
|
5
|
-
import { c as
|
|
4
|
+
import { a as C, c as w, d as T, f as E, g as D, h as O, i as k, l as A, m as j, n as M, o as N, p as P, r as ee, s as F, t as te, u as ne } from "./responsive-Dy5RAD1s.mjs";
|
|
5
|
+
import { c as I, d as re, l as ie, s as L, u as ae } from "./scene-monitor-copy-7HImRbA5.mjs";
|
|
6
6
|
import { a as oe, i as se, n as ce, r as le } from "./player-overlays-BT-6fK9N.mjs";
|
|
7
7
|
import { i as ue, n as de, r as fe, t as pe } from "./square-DoPBhbZN.mjs";
|
|
8
8
|
import { t as me } from "./grid-2x2-Bl3xw1w7.mjs";
|
|
@@ -3866,7 +3866,7 @@ function Da() {
|
|
|
3866
3866
|
//#region ../ui-library/src/composites/device-meta.ts
|
|
3867
3867
|
var Oa = {
|
|
3868
3868
|
[R.Camera]: {
|
|
3869
|
-
icon:
|
|
3869
|
+
icon: re,
|
|
3870
3870
|
label: "Camera"
|
|
3871
3871
|
},
|
|
3872
3872
|
[R.Hub]: {
|
|
@@ -4193,7 +4193,7 @@ function Na(e) {
|
|
|
4193
4193
|
return ja(e) ? Oa[e] ?? Ma : Ma;
|
|
4194
4194
|
}
|
|
4195
4195
|
var Pa = {
|
|
4196
|
-
camera:
|
|
4196
|
+
camera: re,
|
|
4197
4197
|
network: Nr,
|
|
4198
4198
|
"toggle-left": Li,
|
|
4199
4199
|
"toggle-right": Ri,
|
|
@@ -4862,7 +4862,7 @@ var Va = (e, t) => {
|
|
|
4862
4862
|
"max",
|
|
4863
4863
|
"fit",
|
|
4864
4864
|
...w()
|
|
4865
|
-
],
|
|
4865
|
+
], ee = () => [
|
|
4866
4866
|
Ao,
|
|
4867
4867
|
"screen",
|
|
4868
4868
|
"full",
|
|
@@ -4874,40 +4874,40 @@ var Va = (e, t) => {
|
|
|
4874
4874
|
"max",
|
|
4875
4875
|
"fit",
|
|
4876
4876
|
...w()
|
|
4877
|
-
],
|
|
4877
|
+
], F = () => [
|
|
4878
4878
|
e,
|
|
4879
4879
|
q,
|
|
4880
4880
|
K
|
|
4881
|
-
],
|
|
4881
|
+
], te = () => [
|
|
4882
4882
|
...b(),
|
|
4883
4883
|
Zo,
|
|
4884
4884
|
Ko,
|
|
4885
4885
|
{ position: [q, K] }
|
|
4886
|
-
],
|
|
4886
|
+
], ne = () => ["no-repeat", { repeat: [
|
|
4887
4887
|
"",
|
|
4888
4888
|
"x",
|
|
4889
4889
|
"y",
|
|
4890
4890
|
"space",
|
|
4891
4891
|
"round"
|
|
4892
|
-
] }],
|
|
4892
|
+
] }], I = () => [
|
|
4893
4893
|
"auto",
|
|
4894
4894
|
"cover",
|
|
4895
4895
|
"contain",
|
|
4896
4896
|
Qo,
|
|
4897
4897
|
Vo,
|
|
4898
4898
|
{ size: [q, K] }
|
|
4899
|
-
],
|
|
4899
|
+
], re = () => [
|
|
4900
4900
|
Mo,
|
|
4901
4901
|
Yo,
|
|
4902
4902
|
Ho
|
|
4903
|
-
],
|
|
4903
|
+
], ie = () => [
|
|
4904
4904
|
"",
|
|
4905
4905
|
"none",
|
|
4906
4906
|
"full",
|
|
4907
4907
|
l,
|
|
4908
4908
|
q,
|
|
4909
4909
|
K
|
|
4910
|
-
],
|
|
4910
|
+
], L = () => [
|
|
4911
4911
|
"",
|
|
4912
4912
|
G,
|
|
4913
4913
|
Yo,
|
|
@@ -5259,9 +5259,9 @@ var Va = (e, t) => {
|
|
|
5259
5259
|
"inline-size": [{ inline: ["auto", ...P()] }],
|
|
5260
5260
|
"min-inline-size": [{ "min-inline": ["auto", ...P()] }],
|
|
5261
5261
|
"max-inline-size": [{ "max-inline": ["none", ...P()] }],
|
|
5262
|
-
"block-size": [{ block: ["auto", ...
|
|
5263
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
5264
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
5262
|
+
"block-size": [{ block: ["auto", ...ee()] }],
|
|
5263
|
+
"min-block-size": [{ "min-block": ["auto", ...ee()] }],
|
|
5264
|
+
"max-block-size": [{ "max-block": ["none", ...ee()] }],
|
|
5265
5265
|
w: [{ w: [
|
|
5266
5266
|
s,
|
|
5267
5267
|
"screen",
|
|
@@ -5368,8 +5368,8 @@ var Va = (e, t) => {
|
|
|
5368
5368
|
"start",
|
|
5369
5369
|
"end"
|
|
5370
5370
|
] }],
|
|
5371
|
-
"placeholder-color": [{ placeholder:
|
|
5372
|
-
"text-color": [{ text:
|
|
5371
|
+
"placeholder-color": [{ placeholder: F() }],
|
|
5372
|
+
"text-color": [{ text: F() }],
|
|
5373
5373
|
"text-decoration": [
|
|
5374
5374
|
"underline",
|
|
5375
5375
|
"overline",
|
|
@@ -5384,7 +5384,7 @@ var Va = (e, t) => {
|
|
|
5384
5384
|
q,
|
|
5385
5385
|
Ho
|
|
5386
5386
|
] }],
|
|
5387
|
-
"text-decoration-color": [{ decoration:
|
|
5387
|
+
"text-decoration-color": [{ decoration: F() }],
|
|
5388
5388
|
"underline-offset": [{ "underline-offset": [
|
|
5389
5389
|
G,
|
|
5390
5390
|
"auto",
|
|
@@ -5471,9 +5471,9 @@ var Va = (e, t) => {
|
|
|
5471
5471
|
"padding",
|
|
5472
5472
|
"content"
|
|
5473
5473
|
] }],
|
|
5474
|
-
"bg-position": [{ bg:
|
|
5475
|
-
"bg-repeat": [{ bg:
|
|
5476
|
-
"bg-size": [{ bg:
|
|
5474
|
+
"bg-position": [{ bg: te() }],
|
|
5475
|
+
"bg-repeat": [{ bg: ne() }],
|
|
5476
|
+
"bg-size": [{ bg: I() }],
|
|
5477
5477
|
"bg-image": [{ bg: [
|
|
5478
5478
|
"none",
|
|
5479
5479
|
{
|
|
@@ -5506,42 +5506,42 @@ var Va = (e, t) => {
|
|
|
5506
5506
|
$o,
|
|
5507
5507
|
qo
|
|
5508
5508
|
] }],
|
|
5509
|
-
"bg-color": [{ bg:
|
|
5510
|
-
"gradient-from-pos": [{ from:
|
|
5511
|
-
"gradient-via-pos": [{ via:
|
|
5512
|
-
"gradient-to-pos": [{ to:
|
|
5513
|
-
"gradient-from": [{ from:
|
|
5514
|
-
"gradient-via": [{ via:
|
|
5515
|
-
"gradient-to": [{ to:
|
|
5516
|
-
rounded: [{ rounded:
|
|
5517
|
-
"rounded-s": [{ "rounded-s":
|
|
5518
|
-
"rounded-e": [{ "rounded-e":
|
|
5519
|
-
"rounded-t": [{ "rounded-t":
|
|
5520
|
-
"rounded-r": [{ "rounded-r":
|
|
5521
|
-
"rounded-b": [{ "rounded-b":
|
|
5522
|
-
"rounded-l": [{ "rounded-l":
|
|
5523
|
-
"rounded-ss": [{ "rounded-ss":
|
|
5524
|
-
"rounded-se": [{ "rounded-se":
|
|
5525
|
-
"rounded-ee": [{ "rounded-ee":
|
|
5526
|
-
"rounded-es": [{ "rounded-es":
|
|
5527
|
-
"rounded-tl": [{ "rounded-tl":
|
|
5528
|
-
"rounded-tr": [{ "rounded-tr":
|
|
5529
|
-
"rounded-br": [{ "rounded-br":
|
|
5530
|
-
"rounded-bl": [{ "rounded-bl":
|
|
5531
|
-
"border-w": [{ border:
|
|
5532
|
-
"border-w-x": [{ "border-x":
|
|
5533
|
-
"border-w-y": [{ "border-y":
|
|
5534
|
-
"border-w-s": [{ "border-s":
|
|
5535
|
-
"border-w-e": [{ "border-e":
|
|
5536
|
-
"border-w-bs": [{ "border-bs":
|
|
5537
|
-
"border-w-be": [{ "border-be":
|
|
5538
|
-
"border-w-t": [{ "border-t":
|
|
5539
|
-
"border-w-r": [{ "border-r":
|
|
5540
|
-
"border-w-b": [{ "border-b":
|
|
5541
|
-
"border-w-l": [{ "border-l":
|
|
5542
|
-
"divide-x": [{ "divide-x":
|
|
5509
|
+
"bg-color": [{ bg: F() }],
|
|
5510
|
+
"gradient-from-pos": [{ from: re() }],
|
|
5511
|
+
"gradient-via-pos": [{ via: re() }],
|
|
5512
|
+
"gradient-to-pos": [{ to: re() }],
|
|
5513
|
+
"gradient-from": [{ from: F() }],
|
|
5514
|
+
"gradient-via": [{ via: F() }],
|
|
5515
|
+
"gradient-to": [{ to: F() }],
|
|
5516
|
+
rounded: [{ rounded: ie() }],
|
|
5517
|
+
"rounded-s": [{ "rounded-s": ie() }],
|
|
5518
|
+
"rounded-e": [{ "rounded-e": ie() }],
|
|
5519
|
+
"rounded-t": [{ "rounded-t": ie() }],
|
|
5520
|
+
"rounded-r": [{ "rounded-r": ie() }],
|
|
5521
|
+
"rounded-b": [{ "rounded-b": ie() }],
|
|
5522
|
+
"rounded-l": [{ "rounded-l": ie() }],
|
|
5523
|
+
"rounded-ss": [{ "rounded-ss": ie() }],
|
|
5524
|
+
"rounded-se": [{ "rounded-se": ie() }],
|
|
5525
|
+
"rounded-ee": [{ "rounded-ee": ie() }],
|
|
5526
|
+
"rounded-es": [{ "rounded-es": ie() }],
|
|
5527
|
+
"rounded-tl": [{ "rounded-tl": ie() }],
|
|
5528
|
+
"rounded-tr": [{ "rounded-tr": ie() }],
|
|
5529
|
+
"rounded-br": [{ "rounded-br": ie() }],
|
|
5530
|
+
"rounded-bl": [{ "rounded-bl": ie() }],
|
|
5531
|
+
"border-w": [{ border: L() }],
|
|
5532
|
+
"border-w-x": [{ "border-x": L() }],
|
|
5533
|
+
"border-w-y": [{ "border-y": L() }],
|
|
5534
|
+
"border-w-s": [{ "border-s": L() }],
|
|
5535
|
+
"border-w-e": [{ "border-e": L() }],
|
|
5536
|
+
"border-w-bs": [{ "border-bs": L() }],
|
|
5537
|
+
"border-w-be": [{ "border-be": L() }],
|
|
5538
|
+
"border-w-t": [{ "border-t": L() }],
|
|
5539
|
+
"border-w-r": [{ "border-r": L() }],
|
|
5540
|
+
"border-w-b": [{ "border-b": L() }],
|
|
5541
|
+
"border-w-l": [{ "border-l": L() }],
|
|
5542
|
+
"divide-x": [{ "divide-x": L() }],
|
|
5543
5543
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
5544
|
-
"divide-y": [{ "divide-y":
|
|
5544
|
+
"divide-y": [{ "divide-y": L() }],
|
|
5545
5545
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
5546
5546
|
"border-style": [{ border: [
|
|
5547
5547
|
...ae(),
|
|
@@ -5553,18 +5553,18 @@ var Va = (e, t) => {
|
|
|
5553
5553
|
"hidden",
|
|
5554
5554
|
"none"
|
|
5555
5555
|
] }],
|
|
5556
|
-
"border-color": [{ border:
|
|
5557
|
-
"border-color-x": [{ "border-x":
|
|
5558
|
-
"border-color-y": [{ "border-y":
|
|
5559
|
-
"border-color-s": [{ "border-s":
|
|
5560
|
-
"border-color-e": [{ "border-e":
|
|
5561
|
-
"border-color-bs": [{ "border-bs":
|
|
5562
|
-
"border-color-be": [{ "border-be":
|
|
5563
|
-
"border-color-t": [{ "border-t":
|
|
5564
|
-
"border-color-r": [{ "border-r":
|
|
5565
|
-
"border-color-b": [{ "border-b":
|
|
5566
|
-
"border-color-l": [{ "border-l":
|
|
5567
|
-
"divide-color": [{ divide:
|
|
5556
|
+
"border-color": [{ border: F() }],
|
|
5557
|
+
"border-color-x": [{ "border-x": F() }],
|
|
5558
|
+
"border-color-y": [{ "border-y": F() }],
|
|
5559
|
+
"border-color-s": [{ "border-s": F() }],
|
|
5560
|
+
"border-color-e": [{ "border-e": F() }],
|
|
5561
|
+
"border-color-bs": [{ "border-bs": F() }],
|
|
5562
|
+
"border-color-be": [{ "border-be": F() }],
|
|
5563
|
+
"border-color-t": [{ "border-t": F() }],
|
|
5564
|
+
"border-color-r": [{ "border-r": F() }],
|
|
5565
|
+
"border-color-b": [{ "border-b": F() }],
|
|
5566
|
+
"border-color-l": [{ "border-l": F() }],
|
|
5567
|
+
"divide-color": [{ divide: F() }],
|
|
5568
5568
|
"outline-style": [{ outline: [
|
|
5569
5569
|
...ae(),
|
|
5570
5570
|
"none",
|
|
@@ -5581,7 +5581,7 @@ var Va = (e, t) => {
|
|
|
5581
5581
|
Yo,
|
|
5582
5582
|
Ho
|
|
5583
5583
|
] }],
|
|
5584
|
-
"outline-color": [{ outline:
|
|
5584
|
+
"outline-color": [{ outline: F() }],
|
|
5585
5585
|
shadow: [{ shadow: [
|
|
5586
5586
|
"",
|
|
5587
5587
|
"none",
|
|
@@ -5589,28 +5589,28 @@ var Va = (e, t) => {
|
|
|
5589
5589
|
es,
|
|
5590
5590
|
Jo
|
|
5591
5591
|
] }],
|
|
5592
|
-
"shadow-color": [{ shadow:
|
|
5592
|
+
"shadow-color": [{ shadow: F() }],
|
|
5593
5593
|
"inset-shadow": [{ "inset-shadow": [
|
|
5594
5594
|
"none",
|
|
5595
5595
|
d,
|
|
5596
5596
|
es,
|
|
5597
5597
|
Jo
|
|
5598
5598
|
] }],
|
|
5599
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
5600
|
-
"ring-w": [{ ring:
|
|
5599
|
+
"inset-shadow-color": [{ "inset-shadow": F() }],
|
|
5600
|
+
"ring-w": [{ ring: L() }],
|
|
5601
5601
|
"ring-w-inset": ["ring-inset"],
|
|
5602
|
-
"ring-color": [{ ring:
|
|
5602
|
+
"ring-color": [{ ring: F() }],
|
|
5603
5603
|
"ring-offset-w": [{ "ring-offset": [G, Ho] }],
|
|
5604
|
-
"ring-offset-color": [{ "ring-offset":
|
|
5605
|
-
"inset-ring-w": [{ "inset-ring":
|
|
5606
|
-
"inset-ring-color": [{ "inset-ring":
|
|
5604
|
+
"ring-offset-color": [{ "ring-offset": F() }],
|
|
5605
|
+
"inset-ring-w": [{ "inset-ring": L() }],
|
|
5606
|
+
"inset-ring-color": [{ "inset-ring": F() }],
|
|
5607
5607
|
"text-shadow": [{ "text-shadow": [
|
|
5608
5608
|
"none",
|
|
5609
5609
|
f,
|
|
5610
5610
|
es,
|
|
5611
5611
|
Jo
|
|
5612
5612
|
] }],
|
|
5613
|
-
"text-shadow-color": [{ "text-shadow":
|
|
5613
|
+
"text-shadow-color": [{ "text-shadow": F() }],
|
|
5614
5614
|
opacity: [{ opacity: [
|
|
5615
5615
|
G,
|
|
5616
5616
|
q,
|
|
@@ -5639,37 +5639,37 @@ var Va = (e, t) => {
|
|
|
5639
5639
|
"mask-image-linear-pos": [{ "mask-linear": [G] }],
|
|
5640
5640
|
"mask-image-linear-from-pos": [{ "mask-linear-from": se() }],
|
|
5641
5641
|
"mask-image-linear-to-pos": [{ "mask-linear-to": se() }],
|
|
5642
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
5643
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
5642
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
|
|
5643
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": F() }],
|
|
5644
5644
|
"mask-image-t-from-pos": [{ "mask-t-from": se() }],
|
|
5645
5645
|
"mask-image-t-to-pos": [{ "mask-t-to": se() }],
|
|
5646
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
5647
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
5646
|
+
"mask-image-t-from-color": [{ "mask-t-from": F() }],
|
|
5647
|
+
"mask-image-t-to-color": [{ "mask-t-to": F() }],
|
|
5648
5648
|
"mask-image-r-from-pos": [{ "mask-r-from": se() }],
|
|
5649
5649
|
"mask-image-r-to-pos": [{ "mask-r-to": se() }],
|
|
5650
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
5651
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
5650
|
+
"mask-image-r-from-color": [{ "mask-r-from": F() }],
|
|
5651
|
+
"mask-image-r-to-color": [{ "mask-r-to": F() }],
|
|
5652
5652
|
"mask-image-b-from-pos": [{ "mask-b-from": se() }],
|
|
5653
5653
|
"mask-image-b-to-pos": [{ "mask-b-to": se() }],
|
|
5654
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
5655
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
5654
|
+
"mask-image-b-from-color": [{ "mask-b-from": F() }],
|
|
5655
|
+
"mask-image-b-to-color": [{ "mask-b-to": F() }],
|
|
5656
5656
|
"mask-image-l-from-pos": [{ "mask-l-from": se() }],
|
|
5657
5657
|
"mask-image-l-to-pos": [{ "mask-l-to": se() }],
|
|
5658
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
5659
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
5658
|
+
"mask-image-l-from-color": [{ "mask-l-from": F() }],
|
|
5659
|
+
"mask-image-l-to-color": [{ "mask-l-to": F() }],
|
|
5660
5660
|
"mask-image-x-from-pos": [{ "mask-x-from": se() }],
|
|
5661
5661
|
"mask-image-x-to-pos": [{ "mask-x-to": se() }],
|
|
5662
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
5663
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
5662
|
+
"mask-image-x-from-color": [{ "mask-x-from": F() }],
|
|
5663
|
+
"mask-image-x-to-color": [{ "mask-x-to": F() }],
|
|
5664
5664
|
"mask-image-y-from-pos": [{ "mask-y-from": se() }],
|
|
5665
5665
|
"mask-image-y-to-pos": [{ "mask-y-to": se() }],
|
|
5666
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
5667
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
5666
|
+
"mask-image-y-from-color": [{ "mask-y-from": F() }],
|
|
5667
|
+
"mask-image-y-to-color": [{ "mask-y-to": F() }],
|
|
5668
5668
|
"mask-image-radial": [{ "mask-radial": [q, K] }],
|
|
5669
5669
|
"mask-image-radial-from-pos": [{ "mask-radial-from": se() }],
|
|
5670
5670
|
"mask-image-radial-to-pos": [{ "mask-radial-to": se() }],
|
|
5671
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
5672
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
5671
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
|
|
5672
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": F() }],
|
|
5673
5673
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
5674
5674
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
5675
5675
|
closest: ["side", "corner"],
|
|
@@ -5679,8 +5679,8 @@ var Va = (e, t) => {
|
|
|
5679
5679
|
"mask-image-conic-pos": [{ "mask-conic": [G] }],
|
|
5680
5680
|
"mask-image-conic-from-pos": [{ "mask-conic-from": se() }],
|
|
5681
5681
|
"mask-image-conic-to-pos": [{ "mask-conic-to": se() }],
|
|
5682
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
5683
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
5682
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
|
|
5683
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": F() }],
|
|
5684
5684
|
"mask-mode": [{ mask: [
|
|
5685
5685
|
"alpha",
|
|
5686
5686
|
"luminance",
|
|
@@ -5694,9 +5694,9 @@ var Va = (e, t) => {
|
|
|
5694
5694
|
"stroke",
|
|
5695
5695
|
"view"
|
|
5696
5696
|
] }],
|
|
5697
|
-
"mask-position": [{ mask:
|
|
5698
|
-
"mask-repeat": [{ mask:
|
|
5699
|
-
"mask-size": [{ mask:
|
|
5697
|
+
"mask-position": [{ mask: te() }],
|
|
5698
|
+
"mask-repeat": [{ mask: ne() }],
|
|
5699
|
+
"mask-size": [{ mask: I() }],
|
|
5700
5700
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
5701
5701
|
"mask-image": [{ mask: [
|
|
5702
5702
|
"none",
|
|
@@ -5727,7 +5727,7 @@ var Va = (e, t) => {
|
|
|
5727
5727
|
es,
|
|
5728
5728
|
Jo
|
|
5729
5729
|
] }],
|
|
5730
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
5730
|
+
"drop-shadow-color": [{ "drop-shadow": F() }],
|
|
5731
5731
|
grayscale: [{ grayscale: [
|
|
5732
5732
|
"",
|
|
5733
5733
|
G,
|
|
@@ -5887,9 +5887,9 @@ var Va = (e, t) => {
|
|
|
5887
5887
|
q,
|
|
5888
5888
|
K
|
|
5889
5889
|
] }],
|
|
5890
|
-
accent: [{ accent:
|
|
5890
|
+
accent: [{ accent: F() }],
|
|
5891
5891
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
5892
|
-
"caret-color": [{ caret:
|
|
5892
|
+
"caret-color": [{ caret: F() }],
|
|
5893
5893
|
"color-scheme": [{ scheme: [
|
|
5894
5894
|
"normal",
|
|
5895
5895
|
"dark",
|
|
@@ -5947,8 +5947,8 @@ var Va = (e, t) => {
|
|
|
5947
5947
|
"x"
|
|
5948
5948
|
] }],
|
|
5949
5949
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
5950
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
5951
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
5950
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],
|
|
5951
|
+
"scrollbar-track-color": [{ "scrollbar-track": F() }],
|
|
5952
5952
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
5953
5953
|
"auto",
|
|
5954
5954
|
"stable",
|
|
@@ -6025,14 +6025,14 @@ var Va = (e, t) => {
|
|
|
6025
6025
|
q,
|
|
6026
6026
|
K
|
|
6027
6027
|
] }],
|
|
6028
|
-
fill: [{ fill: ["none", ...
|
|
6028
|
+
fill: [{ fill: ["none", ...F()] }],
|
|
6029
6029
|
"stroke-w": [{ stroke: [
|
|
6030
6030
|
G,
|
|
6031
6031
|
Yo,
|
|
6032
6032
|
Ho,
|
|
6033
6033
|
Uo
|
|
6034
6034
|
] }],
|
|
6035
|
-
stroke: [{ stroke: ["none", ...
|
|
6035
|
+
stroke: [{ stroke: ["none", ...F()] }],
|
|
6036
6036
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
6037
6037
|
},
|
|
6038
6038
|
conflictingClassGroups: {
|
|
@@ -6884,7 +6884,7 @@ function rl({ field: e, value: t, onChange: n, disabled: r, translationFn: i })
|
|
|
6884
6884
|
let t = j[C];
|
|
6885
6885
|
t && M(t.value);
|
|
6886
6886
|
} else e.key === "Escape" ? S(!1) : e.key === "Backspace" && y === "" && g.length > 0 && n(g.slice(0, -1));
|
|
6887
|
-
}, P = Ih(e.label, i),
|
|
6887
|
+
}, P = Ih(e.label, i), ee = Ih(e.description, i);
|
|
6888
6888
|
return /* @__PURE__ */ H("div", {
|
|
6889
6889
|
className: "min-w-0",
|
|
6890
6890
|
children: [
|
|
@@ -7003,9 +7003,9 @@ function rl({ field: e, value: t, onChange: n, disabled: r, translationFn: i })
|
|
|
7003
7003
|
})] }, t.value);
|
|
7004
7004
|
})
|
|
7005
7005
|
}),
|
|
7006
|
-
|
|
7006
|
+
ee && /* @__PURE__ */ V("p", {
|
|
7007
7007
|
className: Jc,
|
|
7008
|
-
children:
|
|
7008
|
+
children: ee
|
|
7009
7009
|
})
|
|
7010
7010
|
]
|
|
7011
7011
|
});
|
|
@@ -7207,7 +7207,7 @@ function wl({ opt: e }) {
|
|
|
7207
7207
|
});
|
|
7208
7208
|
}
|
|
7209
7209
|
function Tl(e) {
|
|
7210
|
-
let { mode: t, options: n, placeholder: r = "Select…", disabled: i = !1, emptyMessage: o = "No options available.", creatable: s = !1, createLabel: c = "Add new…", onCreateRequest: l, label: d, description: f, testId: p, optionTestIdPrefix: h, listboxId: _ } = e, v = i, b = ml(n.length, s, e.searchable), x = _ ?? p ?? "option-select-listbox", S = t === "single" ? e.value.length > 0 ? [e.value] : [] : e.value, C = t === "multi" ? e.maxItems : void 0, w = t === "multi" && C !== void 0 && S.length >= C, [T, E] = a(""), [D, O] = a(!1), [k, A] = a(0), [j, M] = a(null), N = u(null), P = u(null),
|
|
7210
|
+
let { mode: t, options: n, placeholder: r = "Select…", disabled: i = !1, emptyMessage: o = "No options available.", creatable: s = !1, createLabel: c = "Add new…", onCreateRequest: l, label: d, description: f, testId: p, optionTestIdPrefix: h, listboxId: _ } = e, v = i, b = ml(n.length, s, e.searchable), x = _ ?? p ?? "option-select-listbox", S = t === "single" ? e.value.length > 0 ? [e.value] : [] : e.value, C = t === "multi" ? e.maxItems : void 0, w = t === "multi" && C !== void 0 && S.length >= C, [T, E] = a(""), [D, O] = a(!1), [k, A] = a(0), [j, M] = a(null), N = u(null), P = u(null), ee = u(null), F = u(null), te = () => {
|
|
7211
7211
|
let e = P.current;
|
|
7212
7212
|
if (e === null) return null;
|
|
7213
7213
|
let t = e.getBoundingClientRect(), n = window.innerHeight - t.bottom - xl, r = t.top - xl, i = n >= Math.min(bl, r) || n >= 120, a = Math.max(96, Math.min(bl, i ? n : r)), o = Math.max(xl, Math.min(t.left, window.innerWidth - t.width - xl));
|
|
@@ -7224,13 +7224,13 @@ function Tl(e) {
|
|
|
7224
7224
|
maxHeight: a,
|
|
7225
7225
|
placement: "above"
|
|
7226
7226
|
};
|
|
7227
|
-
}, { selectedOptions:
|
|
7228
|
-
let e =
|
|
7227
|
+
}, { selectedOptions: ne } = m(() => pl(n, S), [n, S]), I = m(() => fl(n, T), [n, T]), re = vl(s, T, n), ie = _l(s, l !== void 0), L = m(() => {
|
|
7228
|
+
let e = I.map((e, t) => ({
|
|
7229
7229
|
kind: "option",
|
|
7230
7230
|
opt: e,
|
|
7231
7231
|
index: t
|
|
7232
7232
|
}));
|
|
7233
|
-
if (
|
|
7233
|
+
if (re) {
|
|
7234
7234
|
let t = hl(T);
|
|
7235
7235
|
t !== null && e.push({
|
|
7236
7236
|
kind: "use-query",
|
|
@@ -7239,8 +7239,8 @@ function Tl(e) {
|
|
|
7239
7239
|
}
|
|
7240
7240
|
return e;
|
|
7241
7241
|
}, [
|
|
7242
|
-
|
|
7243
|
-
|
|
7242
|
+
I,
|
|
7243
|
+
re,
|
|
7244
7244
|
T
|
|
7245
7245
|
]);
|
|
7246
7246
|
g(() => {
|
|
@@ -7249,7 +7249,7 @@ function Tl(e) {
|
|
|
7249
7249
|
return;
|
|
7250
7250
|
}
|
|
7251
7251
|
let e = () => {
|
|
7252
|
-
M(
|
|
7252
|
+
M(te());
|
|
7253
7253
|
};
|
|
7254
7254
|
return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
7255
7255
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
@@ -7259,12 +7259,12 @@ function Tl(e) {
|
|
|
7259
7259
|
v,
|
|
7260
7260
|
S.length,
|
|
7261
7261
|
T,
|
|
7262
|
-
|
|
7262
|
+
L.length
|
|
7263
7263
|
]), y(() => {
|
|
7264
7264
|
if (!D) return;
|
|
7265
7265
|
let e = (e) => {
|
|
7266
7266
|
let t = e.target;
|
|
7267
|
-
|
|
7267
|
+
ee.current?.contains(t) || P.current?.contains(t) || O(!1);
|
|
7268
7268
|
};
|
|
7269
7269
|
return document.addEventListener("mousedown", e), () => {
|
|
7270
7270
|
document.removeEventListener("mousedown", e);
|
|
@@ -7296,20 +7296,20 @@ function Tl(e) {
|
|
|
7296
7296
|
if (e.opt.disabled === !0) return;
|
|
7297
7297
|
t === "single" ? ce(e.opt.value) : se(e.opt.value);
|
|
7298
7298
|
} else e.kind === "use-query" && ae(e.draft);
|
|
7299
|
-
}, ue =
|
|
7299
|
+
}, ue = L.length + (ie && !re ? 1 : 0), de = (n) => {
|
|
7300
7300
|
if (n.key === "ArrowDown") n.preventDefault(), O(!0), A((e) => ue === 0 ? 0 : (e + 1) % ue);
|
|
7301
7301
|
else if (n.key === "ArrowUp") n.preventDefault(), O(!0), A((e) => ue === 0 ? 0 : (e - 1 + ue) % ue);
|
|
7302
7302
|
else if (n.key === "Enter") {
|
|
7303
|
-
if (n.preventDefault(),
|
|
7303
|
+
if (n.preventDefault(), re && k === L.length) {
|
|
7304
7304
|
let e = hl(T);
|
|
7305
7305
|
e !== null && ae(e);
|
|
7306
7306
|
return;
|
|
7307
7307
|
}
|
|
7308
|
-
if (
|
|
7308
|
+
if (ie && !re && k === L.length) {
|
|
7309
7309
|
N.current?.focus();
|
|
7310
7310
|
return;
|
|
7311
7311
|
}
|
|
7312
|
-
let e =
|
|
7312
|
+
let e = L[k];
|
|
7313
7313
|
if (e) le(e);
|
|
7314
7314
|
else if (s) {
|
|
7315
7315
|
let e = hl(T);
|
|
@@ -7320,18 +7320,18 @@ function Tl(e) {
|
|
|
7320
7320
|
e.key === "Enter" || e.key === " " ? (e.preventDefault(), O((e) => !e)) : e.key === "Escape" && O(!1);
|
|
7321
7321
|
}, pe = (n) => {
|
|
7322
7322
|
t === "single" ? e.onChange("") : e.onChange(e.value.filter((e) => e !== n));
|
|
7323
|
-
}, me = w === !0 ? `Max ${C} selected` : r, he = n.length === 0 && !
|
|
7323
|
+
}, me = w === !0 ? `Max ${C} selected` : r, he = n.length === 0 && !re && L.length === 0 && D, ge;
|
|
7324
7324
|
ge = he ? /* @__PURE__ */ V("div", {
|
|
7325
7325
|
className: "px-2.5 py-2 text-[11px] text-foreground-subtle",
|
|
7326
7326
|
children: o
|
|
7327
|
-
}) :
|
|
7327
|
+
}) : L.length === 0 && !s ? /* @__PURE__ */ H("div", {
|
|
7328
7328
|
className: "px-2.5 py-2 text-[11px] text-foreground-subtle italic",
|
|
7329
7329
|
children: [
|
|
7330
7330
|
"No matches for “",
|
|
7331
7331
|
T,
|
|
7332
7332
|
"”"
|
|
7333
7333
|
]
|
|
7334
|
-
}) : /* @__PURE__ */ V(U, { children:
|
|
7334
|
+
}) : /* @__PURE__ */ V(U, { children: L.map((n, r) => {
|
|
7335
7335
|
if (n.kind === "use-query") return /* @__PURE__ */ H("button", {
|
|
7336
7336
|
type: "button",
|
|
7337
7337
|
role: "option",
|
|
@@ -7384,7 +7384,7 @@ function Tl(e) {
|
|
|
7384
7384
|
]
|
|
7385
7385
|
}, i.value);
|
|
7386
7386
|
}) });
|
|
7387
|
-
let _e =
|
|
7387
|
+
let _e = L.length;
|
|
7388
7388
|
return /* @__PURE__ */ H("div", {
|
|
7389
7389
|
className: "min-w-0 space-y-1",
|
|
7390
7390
|
"data-testid": p,
|
|
@@ -7393,9 +7393,9 @@ function Tl(e) {
|
|
|
7393
7393
|
className: Sl,
|
|
7394
7394
|
children: d
|
|
7395
7395
|
}),
|
|
7396
|
-
t === "multi" &&
|
|
7396
|
+
t === "multi" && ne.length > 0 && /* @__PURE__ */ V("div", {
|
|
7397
7397
|
className: "flex flex-wrap gap-1 mb-1.5",
|
|
7398
|
-
children:
|
|
7398
|
+
children: ne.map((e) => /* @__PURE__ */ V(ul, {
|
|
7399
7399
|
label: e.label,
|
|
7400
7400
|
...e.iconUrl === void 0 ? {} : { iconUrl: e.iconUrl },
|
|
7401
7401
|
...e.iconId === void 0 ? {} : { iconId: e.iconId },
|
|
@@ -7403,9 +7403,9 @@ function Tl(e) {
|
|
|
7403
7403
|
...h === void 0 ? {} : { testId: `${h}-chip-${e.value}` }
|
|
7404
7404
|
}, e.value))
|
|
7405
7405
|
}),
|
|
7406
|
-
t === "single" &&
|
|
7406
|
+
t === "single" && ne.length > 0 && /* @__PURE__ */ V("div", {
|
|
7407
7407
|
className: "flex flex-wrap gap-1 mb-1.5",
|
|
7408
|
-
children:
|
|
7408
|
+
children: ne.map((e) => /* @__PURE__ */ V(ul, {
|
|
7409
7409
|
label: e.label,
|
|
7410
7410
|
...e.iconUrl === void 0 ? {} : { iconUrl: e.iconUrl },
|
|
7411
7411
|
...e.iconId === void 0 ? {} : { iconId: e.iconId },
|
|
@@ -7434,9 +7434,9 @@ function Tl(e) {
|
|
|
7434
7434
|
},
|
|
7435
7435
|
onFocus: () => O(!0),
|
|
7436
7436
|
onBlur: () => {
|
|
7437
|
-
|
|
7437
|
+
F.current = setTimeout(() => {
|
|
7438
7438
|
let e = document.activeElement;
|
|
7439
|
-
|
|
7439
|
+
ee.current?.contains(e) || O(!1);
|
|
7440
7440
|
}, 120);
|
|
7441
7441
|
},
|
|
7442
7442
|
onKeyDown: de
|
|
@@ -7444,7 +7444,7 @@ function Tl(e) {
|
|
|
7444
7444
|
/* @__PURE__ */ V(oe, {
|
|
7445
7445
|
className: "h-3.5 w-3.5 shrink-0 cursor-pointer text-foreground-subtle",
|
|
7446
7446
|
onMouseDown: (e) => {
|
|
7447
|
-
e.preventDefault(),
|
|
7447
|
+
e.preventDefault(), F.current && clearTimeout(F.current), O((e) => !e), N.current?.focus();
|
|
7448
7448
|
}
|
|
7449
7449
|
})
|
|
7450
7450
|
]
|
|
@@ -7466,11 +7466,11 @@ function Tl(e) {
|
|
|
7466
7466
|
onKeyDown: fe,
|
|
7467
7467
|
children: [/* @__PURE__ */ V("span", {
|
|
7468
7468
|
className: "truncate text-foreground-subtle",
|
|
7469
|
-
children:
|
|
7469
|
+
children: ne[0]?.label ?? me
|
|
7470
7470
|
}), /* @__PURE__ */ V(oe, { className: "h-3.5 w-3.5 shrink-0 text-foreground-subtle" })]
|
|
7471
7471
|
}),
|
|
7472
7472
|
D && !v && j !== null && typeof document < "u" && at(/* @__PURE__ */ H("div", {
|
|
7473
|
-
ref:
|
|
7473
|
+
ref: ee,
|
|
7474
7474
|
id: x,
|
|
7475
7475
|
role: "listbox",
|
|
7476
7476
|
style: {
|
|
@@ -7483,9 +7483,9 @@ function Tl(e) {
|
|
|
7483
7483
|
},
|
|
7484
7484
|
className: "overflow-y-auto rounded-md border border-border bg-surface shadow-lg",
|
|
7485
7485
|
onMouseDown: (e) => {
|
|
7486
|
-
e.preventDefault(),
|
|
7486
|
+
e.preventDefault(), F.current && clearTimeout(F.current);
|
|
7487
7487
|
},
|
|
7488
|
-
children: [ge,
|
|
7488
|
+
children: [ge, ie && /* @__PURE__ */ H("button", {
|
|
7489
7489
|
type: "button",
|
|
7490
7490
|
className: [
|
|
7491
7491
|
"flex w-full items-center gap-2 border-t border-border px-2.5 py-1.5 text-left text-xs transition-colors",
|
|
@@ -7808,7 +7808,7 @@ async function ou(t, r, i) {
|
|
|
7808
7808
|
if (s) return s;
|
|
7809
7809
|
nu.has(t) || (Ql(), n([{
|
|
7810
7810
|
name: t,
|
|
7811
|
-
entry:
|
|
7811
|
+
entry: I(i),
|
|
7812
7812
|
type: "module"
|
|
7813
7813
|
}], { force: !1 }), nu.add(t));
|
|
7814
7814
|
let c = e(`${t}/${r.startsWith("./") ? r.slice(2) : r}`).then((e) => {
|
|
@@ -8470,7 +8470,7 @@ function Iu({ offers: e, cameras: t, onToggle: n }) {
|
|
|
8470
8470
|
});
|
|
8471
8471
|
}
|
|
8472
8472
|
function Lu({ cell: e, selected: t, onSelect: n, onDragStart: r }) {
|
|
8473
|
-
let { src: i } =
|
|
8473
|
+
let { src: i } = L(e.deviceId, { width: 640 }), a = `${String(100 / e.source.width)}% ${String(100 / e.source.height)}%`, o = e.source.width >= 1 && e.source.height >= 1 ? "center" : `${String(e.source.x / Math.max(1e-6, 1 - e.source.width) * 100)}% ${String(e.source.y / Math.max(1e-6, 1 - e.source.height) * 100)}%`;
|
|
8474
8474
|
return /* @__PURE__ */ V("div", {
|
|
8475
8475
|
role: "presentation",
|
|
8476
8476
|
onPointerDown: (e) => {
|
|
@@ -8561,7 +8561,7 @@ function Ru({ cell: e, index: t, cameras: n, onChange: r, onRemove: i }) {
|
|
|
8561
8561
|
});
|
|
8562
8562
|
}
|
|
8563
8563
|
function zu({ deviceId: e, source: t, onChange: n }) {
|
|
8564
|
-
let { src: r } =
|
|
8564
|
+
let { src: r } = L(e, { width: 640 }), [i, o] = a(null), [s, c] = a(null), l = (e) => {
|
|
8565
8565
|
if (i === null) return;
|
|
8566
8566
|
let t = e.currentTarget.getBoundingClientRect();
|
|
8567
8567
|
t.width === 0 || t.height === 0 || n(Pu({
|
|
@@ -9395,7 +9395,7 @@ function jd({ deviceId: e, clip: t, profile: n, onProfileChange: r }) {
|
|
|
9395
9395
|
}), o = a.data, s = `${new Date(t.timeRange.startMs).toLocaleString()} · ${t.source}`;
|
|
9396
9396
|
return y(() => {
|
|
9397
9397
|
o !== void 0 && i.play({
|
|
9398
|
-
url:
|
|
9398
|
+
url: I(o.playbackUrl),
|
|
9399
9399
|
...o.format === void 0 ? {} : { format: o.format },
|
|
9400
9400
|
label: s
|
|
9401
9401
|
});
|
|
@@ -9441,7 +9441,7 @@ function jd({ deviceId: e, clip: t, profile: n, onProfileChange: r }) {
|
|
|
9441
9441
|
"twin."
|
|
9442
9442
|
] })
|
|
9443
9443
|
}), /* @__PURE__ */ H("a", {
|
|
9444
|
-
href:
|
|
9444
|
+
href: I(o.playbackUrl),
|
|
9445
9445
|
download: !0,
|
|
9446
9446
|
className: "inline-flex items-center gap-1.5 text-xs font-medium text-primary hover:underline",
|
|
9447
9447
|
children: [/* @__PURE__ */ V(xn, {
|
|
@@ -9568,7 +9568,7 @@ function Kd(e) {
|
|
|
9568
9568
|
return y(() => {
|
|
9569
9569
|
if (r(null), i === null || typeof fetch != "function") return;
|
|
9570
9570
|
let e = null, t = !1, n, a = async (o) => {
|
|
9571
|
-
let s = await Rd(
|
|
9571
|
+
let s = await Rd(I(i), fetch);
|
|
9572
9572
|
if (t) return;
|
|
9573
9573
|
if (s.kind === "image") {
|
|
9574
9574
|
e = URL.createObjectURL(s.blob), r({
|
|
@@ -9885,7 +9885,7 @@ function ff({ deviceId: e }) {
|
|
|
9885
9885
|
i(e), s(null);
|
|
9886
9886
|
}, P = (e) => {
|
|
9887
9887
|
s((t) => t === e ? null : e);
|
|
9888
|
-
},
|
|
9888
|
+
}, ee = (e) => {
|
|
9889
9889
|
l(e), d(1);
|
|
9890
9890
|
};
|
|
9891
9891
|
if (_ === "pending") return /* @__PURE__ */ H("div", {
|
|
@@ -9909,7 +9909,7 @@ function ff({ deviceId: e }) {
|
|
|
9909
9909
|
description: "Nothing is installed that could list a camera's stored clips."
|
|
9910
9910
|
})
|
|
9911
9911
|
});
|
|
9912
|
-
let
|
|
9912
|
+
let F = A.kind === "listed" ? A.clips : [], te = F.slice((u - 1) * uf, u * uf);
|
|
9913
9913
|
return /* @__PURE__ */ H("div", {
|
|
9914
9914
|
className: "space-y-3",
|
|
9915
9915
|
children: [
|
|
@@ -9942,7 +9942,7 @@ function ff({ deviceId: e }) {
|
|
|
9942
9942
|
options: j,
|
|
9943
9943
|
value: O,
|
|
9944
9944
|
disabled: j.length < 2,
|
|
9945
|
-
onChange: (e) =>
|
|
9945
|
+
onChange: (e) => ee(e.target.value)
|
|
9946
9946
|
})
|
|
9947
9947
|
}),
|
|
9948
9948
|
j.length < 2 ? /* @__PURE__ */ V("span", {
|
|
@@ -10002,7 +10002,7 @@ function ff({ deviceId: e }) {
|
|
|
10002
10002
|
/* @__PURE__ */ V(df, { silent: A.silent }),
|
|
10003
10003
|
/* @__PURE__ */ V("ul", {
|
|
10004
10004
|
className: "grid grid-cols-1 gap-2 sm:grid-cols-2 xl:grid-cols-3",
|
|
10005
|
-
children:
|
|
10005
|
+
children: te.map((e) => /* @__PURE__ */ V(qd, {
|
|
10006
10006
|
clip: e,
|
|
10007
10007
|
selected: f?.id === e.id,
|
|
10008
10008
|
onSelect: p
|
|
@@ -10010,7 +10010,7 @@ function ff({ deviceId: e }) {
|
|
|
10010
10010
|
}),
|
|
10011
10011
|
/* @__PURE__ */ V(md, {
|
|
10012
10012
|
currentPage: u,
|
|
10013
|
-
totalItems:
|
|
10013
|
+
totalItems: F.length,
|
|
10014
10014
|
pageSize: uf,
|
|
10015
10015
|
onPageChange: d,
|
|
10016
10016
|
itemNoun: "clips"
|
|
@@ -10605,7 +10605,7 @@ var Bf = [
|
|
|
10605
10605
|
{
|
|
10606
10606
|
direction: "left",
|
|
10607
10607
|
label: "Turn left",
|
|
10608
|
-
Icon:
|
|
10608
|
+
Icon: ie
|
|
10609
10609
|
},
|
|
10610
10610
|
{
|
|
10611
10611
|
direction: "forward",
|
|
@@ -10835,28 +10835,28 @@ function Kf(e, t, n) {
|
|
|
10835
10835
|
if (!(!o || !c)) try {
|
|
10836
10836
|
u(await c.getPresets({}));
|
|
10837
10837
|
} catch (e) {
|
|
10838
|
-
if (
|
|
10838
|
+
if (ne(e)) return;
|
|
10839
10839
|
x(e instanceof Error ? e.message : String(e));
|
|
10840
10840
|
}
|
|
10841
10841
|
}, [c, o]), C = s(async () => {
|
|
10842
10842
|
if (!(!o || !c)) try {
|
|
10843
10843
|
f(await c.getHomePreset({}));
|
|
10844
10844
|
} catch (e) {
|
|
10845
|
-
if (
|
|
10845
|
+
if (ne(e)) return;
|
|
10846
10846
|
x(e instanceof Error ? e.message : String(e));
|
|
10847
10847
|
}
|
|
10848
10848
|
}, [c, o]), w = s(async () => {
|
|
10849
10849
|
if (!(!o || !c)) try {
|
|
10850
10850
|
m(await c.getHomeReturn({}));
|
|
10851
10851
|
} catch (e) {
|
|
10852
|
-
if (
|
|
10852
|
+
if (ne(e)) return;
|
|
10853
10853
|
m(null);
|
|
10854
10854
|
}
|
|
10855
10855
|
}, [c, o]), E = s(async () => {
|
|
10856
10856
|
if (!(!o || !c)) try {
|
|
10857
10857
|
g(await c.getOptions({}));
|
|
10858
10858
|
} catch (e) {
|
|
10859
|
-
if (
|
|
10859
|
+
if (ne(e)) return;
|
|
10860
10860
|
x(e instanceof Error ? e.message : String(e));
|
|
10861
10861
|
}
|
|
10862
10862
|
}, [c, o]);
|
|
@@ -11128,22 +11128,22 @@ function Yf({ direction: e, icon: t, disabled: n, className: r, variant: i, onMo
|
|
|
11128
11128
|
});
|
|
11129
11129
|
}
|
|
11130
11130
|
function Xf({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0, showHome: i = !0, className: o }) {
|
|
11131
|
-
let { move: c, startContinuous: l, stopContinuous: d, zoom: f, goHome: p, homePreset: m, goToPreset: h, savePreset: _, updatePreset: v, deletePreset: b, presets: x, options: S, busy: C, error: w } = e, T = Bl(), [E, D] = a(!1), [O, k] = a(""), A = u(null), j = u(null), [M, N] = a(null), P = t === "panel",
|
|
11131
|
+
let { move: c, startContinuous: l, stopContinuous: d, zoom: f, goHome: p, homePreset: m, goToPreset: h, savePreset: _, updatePreset: v, deletePreset: b, presets: x, options: S, busy: C, error: w } = e, T = Bl(), [E, D] = a(!1), [O, k] = a(""), A = u(null), j = u(null), [M, N] = a(null), P = t === "panel", ee = r && (S?.hasZoom ?? !0), F = S?.supportsPresets ?? x.length > 0, te = (n ?? F) && F, ne = P && (S?.supportsPresets ?? !1), I = S?.maxPresets !== void 0 && x.length >= S.maxPresets, re = s(async () => {
|
|
11132
11132
|
let e = O.trim();
|
|
11133
|
-
!e || C ||
|
|
11133
|
+
!e || C || I || await _(e) !== void 0 && k("");
|
|
11134
11134
|
}, [
|
|
11135
11135
|
O,
|
|
11136
11136
|
C,
|
|
11137
|
-
|
|
11137
|
+
I,
|
|
11138
11138
|
_
|
|
11139
|
-
]),
|
|
11139
|
+
]), ie = s(async (e, t) => {
|
|
11140
11140
|
await T({
|
|
11141
11141
|
title: "Delete preset",
|
|
11142
11142
|
message: `Delete PTZ preset "${t}"? This removes it from the camera.`,
|
|
11143
11143
|
confirmLabel: "Delete",
|
|
11144
11144
|
variant: "danger"
|
|
11145
11145
|
}) && await b(e);
|
|
11146
|
-
}, [T, b]),
|
|
11146
|
+
}, [T, b]), L = s(async (e, t) => {
|
|
11147
11147
|
await T({
|
|
11148
11148
|
title: "Update preset",
|
|
11149
11149
|
message: `Overwrite preset "${t}" with the camera's current position?`,
|
|
@@ -11243,10 +11243,10 @@ function Xf({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
|
|
|
11243
11243
|
})
|
|
11244
11244
|
]
|
|
11245
11245
|
}),
|
|
11246
|
-
(
|
|
11246
|
+
(ee || i) && /* @__PURE__ */ V("div", { className: de }),
|
|
11247
11247
|
/* @__PURE__ */ H("div", {
|
|
11248
11248
|
className: "flex flex-col gap-0.5",
|
|
11249
|
-
children: [
|
|
11249
|
+
children: [ee && /* @__PURE__ */ H(U, { children: [/* @__PURE__ */ V("button", {
|
|
11250
11250
|
type: "button",
|
|
11251
11251
|
onClick: () => f("in"),
|
|
11252
11252
|
disabled: C,
|
|
@@ -11269,7 +11269,7 @@ function Xf({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
|
|
|
11269
11269
|
children: /* @__PURE__ */ V(Jn, { className: le })
|
|
11270
11270
|
})]
|
|
11271
11271
|
}),
|
|
11272
|
-
|
|
11272
|
+
te && /* @__PURE__ */ H("div", {
|
|
11273
11273
|
className: "relative",
|
|
11274
11274
|
children: [/* @__PURE__ */ H("button", {
|
|
11275
11275
|
ref: A,
|
|
@@ -11287,7 +11287,7 @@ function Xf({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
|
|
|
11287
11287
|
right: M.right,
|
|
11288
11288
|
zIndex: 60
|
|
11289
11289
|
},
|
|
11290
|
-
className: J("rounded-lg shadow-xl py-1",
|
|
11290
|
+
className: J("rounded-lg shadow-xl py-1", ne ? "min-w-[220px]" : "min-w-[140px]", P ? "bg-surface border border-border" : "border border-white/30 bg-zinc-900/95 backdrop-blur-md"),
|
|
11291
11291
|
children: [
|
|
11292
11292
|
x.length === 0 && /* @__PURE__ */ V("div", {
|
|
11293
11293
|
className: J("px-3 py-1.5 text-[10px]", P ? "text-foreground-subtle" : "text-white/60"),
|
|
@@ -11303,23 +11303,23 @@ function Xf({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
|
|
|
11303
11303
|
disabled: C,
|
|
11304
11304
|
className: J("flex-1 px-3 py-1.5 text-left text-[10px] disabled:opacity-40", P ? "text-foreground" : "text-white"),
|
|
11305
11305
|
children: e.name || e.id
|
|
11306
|
-
}),
|
|
11306
|
+
}), ne && e.writable && /* @__PURE__ */ H(U, { children: [/* @__PURE__ */ V("button", {
|
|
11307
11307
|
type: "button",
|
|
11308
|
-
onClick: () => void
|
|
11308
|
+
onClick: () => void L(e.id, e.name || e.id),
|
|
11309
11309
|
disabled: C,
|
|
11310
11310
|
title: `Overwrite "${e.name || e.id}" with current position`,
|
|
11311
11311
|
className: J("flex h-5 w-5 shrink-0 items-center justify-center rounded", "text-foreground-subtle hover:bg-primary/15 hover:text-primary disabled:opacity-40"),
|
|
11312
11312
|
children: /* @__PURE__ */ V(_n, { className: "h-3 w-3" })
|
|
11313
11313
|
}), /* @__PURE__ */ V("button", {
|
|
11314
11314
|
type: "button",
|
|
11315
|
-
onClick: () => void
|
|
11315
|
+
onClick: () => void ie(e.id, e.name || e.id),
|
|
11316
11316
|
disabled: C,
|
|
11317
11317
|
title: `Delete preset ${e.name || e.id}`,
|
|
11318
11318
|
className: J("mr-1 flex h-5 w-5 shrink-0 items-center justify-center rounded", "text-foreground-subtle hover:bg-danger/15 hover:text-danger disabled:opacity-40"),
|
|
11319
11319
|
children: /* @__PURE__ */ V(va, { className: "h-3 w-3" })
|
|
11320
11320
|
})] })]
|
|
11321
11321
|
}, e.id)),
|
|
11322
|
-
|
|
11322
|
+
ne && /* @__PURE__ */ H(U, { children: [
|
|
11323
11323
|
x.length > 0 && /* @__PURE__ */ V("div", { className: J("my-1 h-px", P ? "bg-border" : "bg-white/15") }),
|
|
11324
11324
|
/* @__PURE__ */ H("div", {
|
|
11325
11325
|
className: "flex items-center gap-1 px-2 py-1",
|
|
@@ -11328,22 +11328,22 @@ function Xf({ controls: e, mode: t = "overlay", showPresets: n, showZoom: r = !0
|
|
|
11328
11328
|
value: O,
|
|
11329
11329
|
onChange: (e) => k(e.target.value),
|
|
11330
11330
|
onKeyDown: (e) => {
|
|
11331
|
-
e.key === "Enter" &&
|
|
11331
|
+
e.key === "Enter" && re();
|
|
11332
11332
|
},
|
|
11333
|
-
disabled: C ||
|
|
11333
|
+
disabled: C || I,
|
|
11334
11334
|
placeholder: "New preset name",
|
|
11335
11335
|
maxLength: 64,
|
|
11336
11336
|
className: J("min-w-0 flex-1 rounded border px-2 py-1 text-[11px]", "focus:outline-none focus:ring-1 focus:ring-primary/50 disabled:opacity-40", P ? "border-border bg-surface text-foreground placeholder:text-foreground-subtle" : "border-white/30 bg-zinc-800 text-white placeholder:text-white/40")
|
|
11337
11337
|
}), /* @__PURE__ */ V("button", {
|
|
11338
11338
|
type: "button",
|
|
11339
|
-
onClick: () => void
|
|
11340
|
-
disabled: C ||
|
|
11341
|
-
title:
|
|
11339
|
+
onClick: () => void re(),
|
|
11340
|
+
disabled: C || I || O.trim().length === 0,
|
|
11341
|
+
title: I ? `Camera preset limit reached (${S?.maxPresets})` : "Save current position as a new preset",
|
|
11342
11342
|
className: J("flex h-7 w-7 shrink-0 items-center justify-center rounded", "bg-primary/15 text-primary hover:bg-primary/25 disabled:opacity-40"),
|
|
11343
11343
|
children: /* @__PURE__ */ V(Gr, { className: "h-3.5 w-3.5" })
|
|
11344
11344
|
})]
|
|
11345
11345
|
}),
|
|
11346
|
-
|
|
11346
|
+
I && /* @__PURE__ */ H("span", {
|
|
11347
11347
|
className: J("block px-2 pb-1 text-[10px]", P ? "text-foreground-subtle" : "text-white/60"),
|
|
11348
11348
|
children: [
|
|
11349
11349
|
"Preset limit reached (",
|
|
@@ -12573,23 +12573,23 @@ function tm({ deviceId: e }) {
|
|
|
12573
12573
|
]);
|
|
12574
12574
|
let P = s(() => {
|
|
12575
12575
|
g({ t: "goLive" }), N();
|
|
12576
|
-
}, [g, N]),
|
|
12576
|
+
}, [g, N]), ee = s(() => {
|
|
12577
12577
|
g({
|
|
12578
12578
|
t: "setRate",
|
|
12579
12579
|
rate: +(T.current === "paused")
|
|
12580
12580
|
});
|
|
12581
|
-
}, [g]), [
|
|
12582
|
-
|
|
12581
|
+
}, [g]), [F, te] = a(() => new Set(Jp)), ne = s((e) => {
|
|
12582
|
+
te((t) => {
|
|
12583
12583
|
let n = new Set(t);
|
|
12584
12584
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
12585
12585
|
});
|
|
12586
|
-
}, []), [
|
|
12587
|
-
|
|
12586
|
+
}, []), [I, re] = a(Yp), ie = s(() => {
|
|
12587
|
+
re((e) => e + Yp);
|
|
12588
12588
|
}, []);
|
|
12589
12589
|
y(() => {
|
|
12590
|
-
|
|
12590
|
+
re(Yp);
|
|
12591
12591
|
}, [r]);
|
|
12592
|
-
let [
|
|
12592
|
+
let [L, ae] = a(() => /* @__PURE__ */ new Date()), [oe, se] = a(() => ad(/* @__PURE__ */ new Date(), Date.now())), ce = m(() => ad(L, Date.now()), [L]), le = s((e) => {
|
|
12593
12593
|
ae(e), se(ad(e, Date.now())), i(null);
|
|
12594
12594
|
}, []), ue = s((e) => {
|
|
12595
12595
|
se(e), i(null);
|
|
@@ -12617,38 +12617,38 @@ function tm({ deviceId: e }) {
|
|
|
12617
12617
|
deviceId: e,
|
|
12618
12618
|
since: xe,
|
|
12619
12619
|
until: Se,
|
|
12620
|
-
limit:
|
|
12620
|
+
limit: I,
|
|
12621
12621
|
projection: "slim"
|
|
12622
|
-
}, { enabled: be &&
|
|
12622
|
+
}, { enabled: be && F.has("object") }), we = Gs({
|
|
12623
12623
|
deviceId: e,
|
|
12624
12624
|
since: xe,
|
|
12625
12625
|
until: Se,
|
|
12626
|
-
limit:
|
|
12626
|
+
limit: I,
|
|
12627
12627
|
projection: "slim"
|
|
12628
|
-
}, { enabled: be &&
|
|
12628
|
+
}, { enabled: be && F.has("motion") }), Te = qs({
|
|
12629
12629
|
deviceId: e,
|
|
12630
12630
|
since: xe,
|
|
12631
12631
|
until: Se,
|
|
12632
|
-
limit:
|
|
12632
|
+
limit: I,
|
|
12633
12633
|
projection: "slim"
|
|
12634
|
-
}, { enabled: be &&
|
|
12634
|
+
}, { enabled: be && F.has("audio") }), z = m(() => {
|
|
12635
12635
|
if (!R) return [];
|
|
12636
12636
|
let e = [];
|
|
12637
|
-
if (
|
|
12637
|
+
if (F.has("object")) for (let t of Ce.data ?? []) e.push({
|
|
12638
12638
|
id: String(t.id),
|
|
12639
12639
|
timestamp: t.timestamp,
|
|
12640
12640
|
kind: "object",
|
|
12641
12641
|
label: t.label ?? t.className,
|
|
12642
12642
|
mediaUrl: t.mediaUrl
|
|
12643
12643
|
});
|
|
12644
|
-
if (
|
|
12644
|
+
if (F.has("motion")) for (let t of we.data ?? []) e.push({
|
|
12645
12645
|
id: String(t.id),
|
|
12646
12646
|
timestamp: t.timestamp,
|
|
12647
12647
|
kind: "motion",
|
|
12648
12648
|
label: `Motion (${t.regionCount})`,
|
|
12649
12649
|
mediaUrl: t.mediaUrl
|
|
12650
12650
|
});
|
|
12651
|
-
if (
|
|
12651
|
+
if (F.has("audio")) for (let t of Te.data ?? []) e.push({
|
|
12652
12652
|
id: String(t.id),
|
|
12653
12653
|
timestamp: t.timestamp,
|
|
12654
12654
|
kind: "audio",
|
|
@@ -12658,16 +12658,16 @@ function tm({ deviceId: e }) {
|
|
|
12658
12658
|
return e.toSorted((e, t) => t.timestamp - e.timestamp);
|
|
12659
12659
|
}, [
|
|
12660
12660
|
R,
|
|
12661
|
-
|
|
12661
|
+
F,
|
|
12662
12662
|
Ce.data,
|
|
12663
12663
|
we.data,
|
|
12664
12664
|
Te.data
|
|
12665
|
-
]), Ee = m(() => !!(
|
|
12666
|
-
|
|
12665
|
+
]), Ee = m(() => !!(F.has("object") && (Ce.data?.length ?? 0) === I || F.has("motion") && (we.data?.length ?? 0) === I || F.has("audio") && (Te.data?.length ?? 0) === I), [
|
|
12666
|
+
F,
|
|
12667
12667
|
Ce.data,
|
|
12668
12668
|
we.data,
|
|
12669
12669
|
Te.data,
|
|
12670
|
-
|
|
12670
|
+
I
|
|
12671
12671
|
]), De = s(async (r, i, a, o, s) => {
|
|
12672
12672
|
d(r), p(null);
|
|
12673
12673
|
try {
|
|
@@ -12743,7 +12743,7 @@ function tm({ deviceId: e }) {
|
|
|
12743
12743
|
message: f
|
|
12744
12744
|
}) : null,
|
|
12745
12745
|
/* @__PURE__ */ V(Sd, {
|
|
12746
|
-
day:
|
|
12746
|
+
day: L,
|
|
12747
12747
|
onDayChange: le,
|
|
12748
12748
|
view: oe,
|
|
12749
12749
|
dayBounds: ce,
|
|
@@ -12772,7 +12772,7 @@ function tm({ deviceId: e }) {
|
|
|
12772
12772
|
Be ? /* @__PURE__ */ H("button", {
|
|
12773
12773
|
type: "button",
|
|
12774
12774
|
"data-testid": "frame-push-rate-toggle",
|
|
12775
|
-
onClick:
|
|
12775
|
+
onClick: ee,
|
|
12776
12776
|
className: "inline-flex items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground-subtle transition-colors hover:bg-surface-hover hover:text-foreground",
|
|
12777
12777
|
title: _ === "paused" ? "Resume playback" : "Pause playback",
|
|
12778
12778
|
children: [V(_ === "paused" ? Ur : Fr, { className: "h-3 w-3" }), _ === "paused" ? "Resume" : "Pause"]
|
|
@@ -12849,10 +12849,10 @@ function tm({ deviceId: e }) {
|
|
|
12849
12849
|
loading: Ie,
|
|
12850
12850
|
busyKey: l,
|
|
12851
12851
|
onPlay: Me,
|
|
12852
|
-
enabledKinds:
|
|
12853
|
-
onToggleKind:
|
|
12852
|
+
enabledKinds: F,
|
|
12853
|
+
onToggleKind: ne,
|
|
12854
12854
|
hasMore: Ee,
|
|
12855
|
-
onLoadMore:
|
|
12855
|
+
onLoadMore: ie
|
|
12856
12856
|
}) : /* @__PURE__ */ V("p", {
|
|
12857
12857
|
className: "text-[11px] text-foreground-subtle",
|
|
12858
12858
|
children: S ? "Click or drag the coverage bar to play from any point (frames play in the main player above), or click a density bar to browse that window’s events." : "Click the coverage bar to play from any point, or a density bar to browse that window’s events."
|
|
@@ -15840,7 +15840,7 @@ function Hh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15840
15840
|
let P = p === "override" ? {
|
|
15841
15841
|
...A,
|
|
15842
15842
|
...E
|
|
15843
|
-
} : A,
|
|
15843
|
+
} : A, ee = /* @__PURE__ */ H(U, { children: [p === "override" ? /* @__PURE__ */ V("div", {
|
|
15844
15844
|
className: "mb-2 text-[11px] text-foreground-subtle",
|
|
15845
15845
|
children: "Benchmark override — applies to this run only. The addon's saved settings are not changed."
|
|
15846
15846
|
}) : null, /* @__PURE__ */ V(Rh, {
|
|
@@ -15869,7 +15869,7 @@ function Hh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15869
15869
|
]
|
|
15870
15870
|
}), w ? /* @__PURE__ */ V("div", {
|
|
15871
15871
|
className: "border-t border-border px-4 py-3",
|
|
15872
|
-
children:
|
|
15872
|
+
children: ee
|
|
15873
15873
|
}) : null]
|
|
15874
15874
|
}) : r ? /* @__PURE__ */ H("section", {
|
|
15875
15875
|
className: "rounded-lg border border-border bg-surface overflow-hidden",
|
|
@@ -15881,9 +15881,9 @@ function Hh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15881
15881
|
})
|
|
15882
15882
|
}), /* @__PURE__ */ V("div", {
|
|
15883
15883
|
className: "px-4 py-3",
|
|
15884
|
-
children:
|
|
15884
|
+
children: ee
|
|
15885
15885
|
})]
|
|
15886
|
-
}) : /* @__PURE__ */ V("div", { children:
|
|
15886
|
+
}) : /* @__PURE__ */ V("div", { children: ee });
|
|
15887
15887
|
}
|
|
15888
15888
|
//#endregion
|
|
15889
15889
|
//#region ../ui-library/src/composites/accelerator-label.ts
|
|
@@ -16228,7 +16228,7 @@ function yg({ headingId: e, title: t, icon: n, actions: r, testId: i, children:
|
|
|
16228
16228
|
className: N,
|
|
16229
16229
|
"data-testid": i,
|
|
16230
16230
|
children: [/* @__PURE__ */ H("header", {
|
|
16231
|
-
className: `${
|
|
16231
|
+
className: `${F} flex min-h-9 flex-wrap items-center gap-2`,
|
|
16232
16232
|
children: [
|
|
16233
16233
|
n !== void 0 && /* @__PURE__ */ V(n, {
|
|
16234
16234
|
className: "h-3.5 w-3.5 shrink-0 text-foreground-subtle",
|
|
@@ -21468,7 +21468,7 @@ function Vb({ url: e, alt: t, open: n, onOpenChange: r }) {
|
|
|
21468
21468
|
label: "Reset zoom",
|
|
21469
21469
|
disabled: i === 1,
|
|
21470
21470
|
onClick: u,
|
|
21471
|
-
children: /* @__PURE__ */ V(
|
|
21471
|
+
children: /* @__PURE__ */ V(ie, { className: "h-4 w-4" })
|
|
21472
21472
|
}),
|
|
21473
21473
|
/* @__PURE__ */ V(Hb, {
|
|
21474
21474
|
label: "Close",
|
|
@@ -27663,7 +27663,7 @@ function Xk({ url: e }) {
|
|
|
27663
27663
|
}
|
|
27664
27664
|
//#endregion
|
|
27665
27665
|
//#region ../ui-library/src/composites/provider-entries/ProviderEntryPills.tsx
|
|
27666
|
-
var Zk = J(M, "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"), Qk = J(
|
|
27666
|
+
var Zk = J(M, "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"), Qk = J(te, "font-medium"), $k = ee, eA = {
|
|
27667
27667
|
ok: "bg-success",
|
|
27668
27668
|
warning: "bg-warning",
|
|
27669
27669
|
error: "bg-danger",
|
|
@@ -29342,7 +29342,7 @@ function DM({ frame: e, history: t, detector: n, schema: r, setNotice: i }) {
|
|
|
29342
29342
|
O.current = i.state, t.setEditor(i.state);
|
|
29343
29343
|
let a = r.proposals.length - i.skipped;
|
|
29344
29344
|
return `${g.name}: ${String(a)} new draft${a === 1 ? "" : "s"}${i.skipped > 0 ? `, ${String(i.skipped)} already on the frame` : ""}.`;
|
|
29345
|
-
},
|
|
29345
|
+
}, ee = async (n) => {
|
|
29346
29346
|
if (x === void 0) return "";
|
|
29347
29347
|
let r = O.current, i = await c.mutateAsync({
|
|
29348
29348
|
...SM(e),
|
|
@@ -29371,11 +29371,11 @@ function DM({ frame: e, history: t, detector: n, schema: r, setNotice: i }) {
|
|
|
29371
29371
|
t.setEditor((e) => cM($j(e, a).state, o));
|
|
29372
29372
|
let l = i.proposals.length - s.skipped, u = i.reviews.filter((e) => e.verdict !== "confirmed").length;
|
|
29373
29373
|
return `${x.name}: ${String(l)} new draft${l === 1 ? "" : "s"}, ${String(u)} box${u === 1 ? "" : "es"} questioned${i.rejected > 0 ? `, ${String(i.rejected)} unusable item${i.rejected === 1 ? "" : "s"} dropped` : ""}.`;
|
|
29374
|
-
},
|
|
29374
|
+
}, F = async (e) => {
|
|
29375
29375
|
T(!1), D(!0), i(null);
|
|
29376
29376
|
try {
|
|
29377
29377
|
let t = [];
|
|
29378
|
-
k && t.push(await P()), A && t.push(await
|
|
29378
|
+
k && t.push(await P()), A && t.push(await ee(e)), i(`${t.filter((e) => e !== "").join(" ")} Drafts are not saved until you accept or correct them.`);
|
|
29379
29379
|
} catch (e) {
|
|
29380
29380
|
i(`The assist failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
29381
29381
|
} finally {
|
|
@@ -29416,7 +29416,7 @@ function DM({ frame: e, history: t, detector: n, schema: r, setNotice: i }) {
|
|
|
29416
29416
|
T(!0);
|
|
29417
29417
|
return;
|
|
29418
29418
|
}
|
|
29419
|
-
|
|
29419
|
+
F(!1);
|
|
29420
29420
|
},
|
|
29421
29421
|
children: [E ? /* @__PURE__ */ V(dr, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ V(ca, { className: "h-3 w-3" }), /* @__PURE__ */ V("span", {
|
|
29422
29422
|
className: "ml-1",
|
|
@@ -29515,7 +29515,7 @@ function DM({ frame: e, history: t, detector: n, schema: r, setNotice: i }) {
|
|
|
29515
29515
|
children: "Cancel"
|
|
29516
29516
|
}), /* @__PURE__ */ V(X, {
|
|
29517
29517
|
size: "sm",
|
|
29518
|
-
onClick: () => void
|
|
29518
|
+
onClick: () => void F(!0),
|
|
29519
29519
|
children: "Send this frame"
|
|
29520
29520
|
})] })] })
|
|
29521
29521
|
})
|
|
@@ -29988,23 +29988,23 @@ function aN({ imageSrc: e, imageWidth: t, imageHeight: n, boxes: r, selectedKey:
|
|
|
29988
29988
|
return;
|
|
29989
29989
|
}
|
|
29990
29990
|
j();
|
|
29991
|
-
},
|
|
29991
|
+
}, ee = r.find((e) => e.key === i), F = C || l, te = D === null ? null : KM(D, o);
|
|
29992
29992
|
return /* @__PURE__ */ H("div", {
|
|
29993
29993
|
ref: _,
|
|
29994
29994
|
"data-testid": "retrain-canvas",
|
|
29995
29995
|
className: "relative w-full h-full min-h-[280px] bg-surface-sunken select-none touch-none overflow-hidden",
|
|
29996
|
-
style: { cursor:
|
|
29996
|
+
style: { cursor: F ? "grab" : "crosshair" },
|
|
29997
29997
|
onPointerDown: M,
|
|
29998
29998
|
onPointerMove: N,
|
|
29999
29999
|
onPointerUp: P,
|
|
30000
30000
|
onPointerCancel: P,
|
|
30001
30001
|
children: [
|
|
30002
|
-
|
|
30002
|
+
te !== null && /* @__PURE__ */ V("img", {
|
|
30003
30003
|
src: e,
|
|
30004
30004
|
alt: "Frame being annotated",
|
|
30005
30005
|
draggable: !1,
|
|
30006
30006
|
className: "absolute max-w-none pointer-events-none",
|
|
30007
|
-
style:
|
|
30007
|
+
style: te
|
|
30008
30008
|
}),
|
|
30009
30009
|
D !== null && r.map((e) => {
|
|
30010
30010
|
let t = GM(e.bbox, D, o), n = e.key === i, r = nN(e, n);
|
|
@@ -30033,8 +30033,8 @@ function aN({ imageSrc: e, imageWidth: t, imageHeight: n, boxes: r, selectedKey:
|
|
|
30033
30033
|
})
|
|
30034
30034
|
}, e.key);
|
|
30035
30035
|
}),
|
|
30036
|
-
D !== null &&
|
|
30037
|
-
let t = WM(LM(
|
|
30036
|
+
D !== null && ee !== void 0 && NM.map((e) => {
|
|
30037
|
+
let t = WM(LM(ee.bbox, e), D, o);
|
|
30038
30038
|
return /* @__PURE__ */ V("div", {
|
|
30039
30039
|
"data-testid": `retrain-handle-${e}`,
|
|
30040
30040
|
className: "absolute h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-sm border border-background bg-primary pointer-events-none",
|
|
@@ -30431,17 +30431,17 @@ function EN({ frames: e, activeFrameId: t, onActiveFrame: n, onFramesChanged: r,
|
|
|
30431
30431
|
o
|
|
30432
30432
|
]), P = s((e) => {
|
|
30433
30433
|
p((t) => eM(t, e, wN));
|
|
30434
|
-
}, [p]), [
|
|
30434
|
+
}, [p]), [ee, F] = a(!1), te = s(async () => {
|
|
30435
30435
|
if (c === void 0) return;
|
|
30436
30436
|
let e = uM(f);
|
|
30437
|
-
|
|
30437
|
+
F(!0);
|
|
30438
30438
|
try {
|
|
30439
30439
|
await S.mutateAsync({
|
|
30440
30440
|
...SM(c),
|
|
30441
30441
|
annotations: [...fM(f)]
|
|
30442
30442
|
}), await v.refetch();
|
|
30443
30443
|
} finally {
|
|
30444
|
-
|
|
30444
|
+
F(!1);
|
|
30445
30445
|
}
|
|
30446
30446
|
await i?.(), o(e > 0 ? `Annotations saved. ${String(e)} unconfirmed draft${e === 1 ? " was" : "s were"} not saved.` : "Annotations saved.");
|
|
30447
30447
|
}, [
|
|
@@ -30451,22 +30451,22 @@ function EN({ frames: e, activeFrameId: t, onActiveFrame: n, onFramesChanged: r,
|
|
|
30451
30451
|
v,
|
|
30452
30452
|
i,
|
|
30453
30453
|
o
|
|
30454
|
-
]),
|
|
30455
|
-
let r =
|
|
30454
|
+
]), ne = b.data, I = yM(f.boxes) && c !== void 0, re = uM(f), ie = e.map((e) => e.frameId), L = (e) => {
|
|
30455
|
+
let r = ie.indexOf(t), i = ie[r + e];
|
|
30456
30456
|
return r < 0 || i === void 0 ? !1 : (n(i), !0);
|
|
30457
30457
|
};
|
|
30458
|
-
return CN(!
|
|
30458
|
+
return CN(!ee, {
|
|
30459
30459
|
history: d,
|
|
30460
|
-
onNextFrame: () =>
|
|
30461
|
-
onPrevFrame: () =>
|
|
30460
|
+
onNextFrame: () => L(1),
|
|
30461
|
+
onPrevFrame: () => L(-1),
|
|
30462
30462
|
onToggleComplete: () => c === void 0 || C.isPending ? !1 : (M(!c.complete), !0),
|
|
30463
|
-
onSave: () => !
|
|
30463
|
+
onSave: () => !I || ee ? !1 : (te(), !0),
|
|
30464
30464
|
onZoomIn: _.zoomIn,
|
|
30465
30465
|
onZoomOut: _.zoomOut,
|
|
30466
30466
|
onZoomFit: _.fit
|
|
30467
30467
|
}), /* @__PURE__ */ H("div", {
|
|
30468
|
-
className: `grid grid-cols-1 xl:grid-cols-[minmax(0,1fr)_minmax(0,380px)] gap-3 ${
|
|
30469
|
-
"aria-busy":
|
|
30468
|
+
className: `grid grid-cols-1 xl:grid-cols-[minmax(0,1fr)_minmax(0,380px)] gap-3 ${ee ? "pointer-events-none opacity-70" : ""}`,
|
|
30469
|
+
"aria-busy": ee,
|
|
30470
30470
|
children: [/* @__PURE__ */ H("div", {
|
|
30471
30471
|
className: "rounded-md border border-border overflow-hidden flex flex-col",
|
|
30472
30472
|
children: [/* @__PURE__ */ V(sN, {
|
|
@@ -30475,13 +30475,13 @@ function EN({ frames: e, activeFrameId: t, onActiveFrame: n, onFramesChanged: r,
|
|
|
30475
30475
|
canRedo: d.canRedo,
|
|
30476
30476
|
onUndo: d.undo,
|
|
30477
30477
|
onRedo: d.redo
|
|
30478
|
-
}),
|
|
30478
|
+
}), ne === void 0 ? /* @__PURE__ */ H("div", {
|
|
30479
30479
|
className: "flex items-center gap-2 p-6 text-xs text-foreground-subtle",
|
|
30480
30480
|
children: [/* @__PURE__ */ V(dr, { className: "h-3.5 w-3.5 animate-spin" }), "Loading the frame…"]
|
|
30481
30481
|
}) : /* @__PURE__ */ V(aN, {
|
|
30482
|
-
imageSrc: `data:image/jpeg;base64,${
|
|
30483
|
-
imageWidth:
|
|
30484
|
-
imageHeight:
|
|
30482
|
+
imageSrc: `data:image/jpeg;base64,${ne.base64}`,
|
|
30483
|
+
imageWidth: ne.width,
|
|
30484
|
+
imageHeight: ne.height,
|
|
30485
30485
|
boxes: f.boxes,
|
|
30486
30486
|
selectedKey: f.selectedKey,
|
|
30487
30487
|
viewport: _.viewport,
|
|
@@ -30581,14 +30581,14 @@ function EN({ frames: e, activeFrameId: t, onActiveFrame: n, onFramesChanged: r,
|
|
|
30581
30581
|
})]
|
|
30582
30582
|
})]
|
|
30583
30583
|
}),
|
|
30584
|
-
|
|
30584
|
+
re > 0 && /* @__PURE__ */ H("div", {
|
|
30585
30585
|
className: "px-3 py-2 border-t border-border flex items-center gap-2 text-[11px] text-warning",
|
|
30586
30586
|
children: [/* @__PURE__ */ H("span", {
|
|
30587
30587
|
className: "flex-1",
|
|
30588
30588
|
children: [
|
|
30589
|
-
|
|
30589
|
+
re,
|
|
30590
30590
|
" draft",
|
|
30591
|
-
|
|
30591
|
+
re === 1 ? "" : "s",
|
|
30592
30592
|
" not confirmed — a draft is never saved. Accept, correct or delete each one."
|
|
30593
30593
|
]
|
|
30594
30594
|
}), /* @__PURE__ */ H(X, {
|
|
@@ -30610,8 +30610,8 @@ function EN({ frames: e, activeFrameId: t, onActiveFrame: n, onFramesChanged: r,
|
|
|
30610
30610
|
children: [f.boxes.filter((e) => e.kind === "model_error").length, " marked as model errors"]
|
|
30611
30611
|
}), /* @__PURE__ */ V(X, {
|
|
30612
30612
|
size: "sm",
|
|
30613
|
-
disabled: !
|
|
30614
|
-
onClick: () => void
|
|
30613
|
+
disabled: !I || ee,
|
|
30614
|
+
onClick: () => void te(),
|
|
30615
30615
|
children: "Save frame"
|
|
30616
30616
|
})]
|
|
30617
30617
|
})
|
|
@@ -30638,22 +30638,16 @@ function DN({ open: e, frames: t, activeFrameId: n, onActiveFrame: r, onClose: i
|
|
|
30638
30638
|
"aria-label": "Annotate frame",
|
|
30639
30639
|
"data-testid": "corpus-annotate-overlay",
|
|
30640
30640
|
className: "flex h-[calc(100dvh-1rem-2*max(env(safe-area-inset-top),env(safe-area-inset-bottom)))] max-h-[calc(100dvh-1rem-2*max(env(safe-area-inset-top),env(safe-area-inset-bottom)))] w-[calc(100vw-1rem)] max-w-none flex-col gap-0 overflow-hidden p-0",
|
|
30641
|
-
children: [/* @__PURE__ */
|
|
30642
|
-
className: "mb-0
|
|
30643
|
-
children:
|
|
30641
|
+
children: [/* @__PURE__ */ V(Ap, {
|
|
30642
|
+
className: "mb-0 shrink-0 border-b border-border py-3 pl-4 pr-10",
|
|
30643
|
+
children: /* @__PURE__ */ H("div", {
|
|
30644
30644
|
className: "min-w-0",
|
|
30645
30645
|
children: [/* @__PURE__ */ V(Np, { children: "Annotate frame" }), c === null ? null : /* @__PURE__ */ V("p", {
|
|
30646
30646
|
className: "mt-1 text-[11px] text-foreground-muted",
|
|
30647
30647
|
role: "status",
|
|
30648
30648
|
children: c
|
|
30649
30649
|
})]
|
|
30650
|
-
})
|
|
30651
|
-
variant: "ghost",
|
|
30652
|
-
size: "sm",
|
|
30653
|
-
icon: va,
|
|
30654
|
-
"aria-label": "Close annotation",
|
|
30655
|
-
onClick: i
|
|
30656
|
-
})]
|
|
30650
|
+
})
|
|
30657
30651
|
}), /* @__PURE__ */ V(jp, {
|
|
30658
30652
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto p-3 sm:p-4",
|
|
30659
30653
|
children: /* @__PURE__ */ V(EN, {
|
|
@@ -30879,7 +30873,7 @@ function RN({ filter: e, onChange: t, cameraItems: n, camerasListState: r, colle
|
|
|
30879
30873
|
if (s.data !== void 0) {
|
|
30880
30874
|
l(!0), d(null);
|
|
30881
30875
|
try {
|
|
30882
|
-
await PN(
|
|
30876
|
+
await PN(I(s.data.url), "camstack-retrain-export.tar");
|
|
30883
30877
|
} catch (e) {
|
|
30884
30878
|
d(e instanceof Error ? e.message : String(e));
|
|
30885
30879
|
} finally {
|
|
@@ -30907,7 +30901,7 @@ function RN({ filter: e, onChange: t, cameraItems: n, camerasListState: r, colle
|
|
|
30907
30901
|
onClick: () => {
|
|
30908
30902
|
p({ workState: t.value });
|
|
30909
30903
|
},
|
|
30910
|
-
className: J(M, "px-2", n ?
|
|
30904
|
+
className: J(M, "px-2", n ? te : ee),
|
|
30911
30905
|
children: t.label
|
|
30912
30906
|
}, LN(t.value));
|
|
30913
30907
|
})
|
|
@@ -30968,7 +30962,7 @@ function RN({ filter: e, onChange: t, cameraItems: n, camerasListState: r, colle
|
|
|
30968
30962
|
onClick: () => {
|
|
30969
30963
|
h(t);
|
|
30970
30964
|
},
|
|
30971
|
-
className: J(M, "px-2 capitalize", n ?
|
|
30965
|
+
className: J(M, "px-2 capitalize", n ? te : ee),
|
|
30972
30966
|
children: t
|
|
30973
30967
|
}, t);
|
|
30974
30968
|
})
|
|
@@ -31144,7 +31138,7 @@ function qN({ kpi: e, isLoading: t, isError: n, deviceNames: r, onSelectCamera:
|
|
|
31144
31138
|
e !== void 0 && e.cameras.length > 0 ? /* @__PURE__ */ H(ug, { children: [/* @__PURE__ */ H(dg, {
|
|
31145
31139
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border bg-surface px-2.5 py-1 text-[11px] text-foreground hover:bg-surface-hover",
|
|
31146
31140
|
"data-testid": "corpus-kpi-per-camera",
|
|
31147
|
-
children: [/* @__PURE__ */ V(
|
|
31141
|
+
children: [/* @__PURE__ */ V(re, { className: "h-3 w-3" }), "Per camera"]
|
|
31148
31142
|
}), /* @__PURE__ */ H(fg, {
|
|
31149
31143
|
className: "w-80 max-h-[60vh] overflow-y-auto p-2 space-y-1",
|
|
31150
31144
|
children: [
|
|
@@ -32327,12 +32321,12 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32327
32321
|
y(() => {
|
|
32328
32322
|
N?.defaults != null && (_(N.defaults.maxCostUsd.toFixed(2)), b((N.defaults.maxRuntimeSec / 3600).toFixed(1)));
|
|
32329
32323
|
}, [N?.defaults?.maxCostUsd, N?.defaults?.maxRuntimeSec]);
|
|
32330
|
-
let P = t.find((e) => e.entryId === d.entryId),
|
|
32324
|
+
let P = t.find((e) => e.entryId === d.entryId), ee = Number(g), F = Number(v), te = j !== null && d.baseModelIds.length > 0 && N !== null && N.refusal === null && ee > 0 && F > 0 && p.trim() !== "" && !w, ne = async () => {
|
|
32331
32325
|
if (j === null || N === null || d.baseModelIds.length === 0) return;
|
|
32332
32326
|
let t = d.baseModelIds.length;
|
|
32333
32327
|
if (await s({
|
|
32334
32328
|
title: t > 1 ? "Start training batch in the cloud?" : "Start training in the cloud?",
|
|
32335
|
-
message: t > 1 ? `${N.dataNotice}\n\n${String(t)} jobs will run one after another (same collections and entry). Each stops at $${
|
|
32329
|
+
message: t > 1 ? `${N.dataNotice}\n\n${String(t)} jobs will run one after another (same collections and entry). Each stops at $${ee.toFixed(2)} or ${F} h.` : `${N.dataNotice}\n\nThe job is stopped if it reaches $${ee.toFixed(2)} or runs longer than ${F} h.`,
|
|
32336
32330
|
confirmLabel: "Upload and start",
|
|
32337
32331
|
variant: "warning"
|
|
32338
32332
|
})) {
|
|
@@ -32348,8 +32342,8 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32348
32342
|
holdoutCameras: j.holdoutCameras,
|
|
32349
32343
|
baseModelIds: [...d.baseModelIds],
|
|
32350
32344
|
name: p.trim(),
|
|
32351
|
-
maxCostUsd:
|
|
32352
|
-
maxRuntimeSec: Math.round(
|
|
32345
|
+
maxCostUsd: ee,
|
|
32346
|
+
maxRuntimeSec: Math.round(F * 3600),
|
|
32353
32347
|
idempotencyKey: crypto.randomUUID()
|
|
32354
32348
|
});
|
|
32355
32349
|
t.kind === "refused" ? S(`Refused (${t.reason}): ${t.detail}`) : o();
|
|
@@ -32359,10 +32353,10 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32359
32353
|
T(!1);
|
|
32360
32354
|
}
|
|
32361
32355
|
}
|
|
32362
|
-
},
|
|
32356
|
+
}, I = (e) => f((t) => ({
|
|
32363
32357
|
...t,
|
|
32364
32358
|
...e
|
|
32365
|
-
})),
|
|
32359
|
+
})), re = N?.split?.holdoutCameras ?? [];
|
|
32366
32360
|
return /* @__PURE__ */ V(yg, {
|
|
32367
32361
|
headingId: "training-new-job-heading",
|
|
32368
32362
|
title: "New job",
|
|
@@ -32402,7 +32396,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32402
32396
|
children: [
|
|
32403
32397
|
/* @__PURE__ */ V($h, {
|
|
32404
32398
|
checked: d.collectionIds.includes(e.id),
|
|
32405
|
-
onChange: (t) =>
|
|
32399
|
+
onChange: (t) => I({ collectionIds: t.target.checked ? [...d.collectionIds, e.id] : d.collectionIds.filter((t) => t !== e.id) })
|
|
32406
32400
|
}),
|
|
32407
32401
|
e.name,
|
|
32408
32402
|
/* @__PURE__ */ H("span", {
|
|
@@ -32423,7 +32417,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32423
32417
|
value: d.workState,
|
|
32424
32418
|
onChange: (e) => {
|
|
32425
32419
|
let t = e.target.value;
|
|
32426
|
-
(t === "complete" || t === "annotated_or_complete" || t === "any_annotated") &&
|
|
32420
|
+
(t === "complete" || t === "annotated_or_complete" || t === "any_annotated") && I({ workState: t });
|
|
32427
32421
|
},
|
|
32428
32422
|
options: Object.keys(HP).map((e) => ({
|
|
32429
32423
|
value: e,
|
|
@@ -32441,7 +32435,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32441
32435
|
models: k,
|
|
32442
32436
|
clusterRootModelIds: A,
|
|
32443
32437
|
value: d.baseModelIds,
|
|
32444
|
-
onChange: (e) =>
|
|
32438
|
+
onChange: (e) => I({ baseModelIds: e })
|
|
32445
32439
|
})]
|
|
32446
32440
|
}),
|
|
32447
32441
|
/* @__PURE__ */ H("div", {
|
|
@@ -32451,7 +32445,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32451
32445
|
className: "space-y-1",
|
|
32452
32446
|
children: [/* @__PURE__ */ V("span", { children: "Preset" }), /* @__PURE__ */ V(Qu, {
|
|
32453
32447
|
value: d.preset,
|
|
32454
|
-
onChange: (e) =>
|
|
32448
|
+
onChange: (e) => I({ preset: e.target.value === "quick" ? "quick" : e.target.value === "thorough" ? "thorough" : "standard" }),
|
|
32455
32449
|
options: Object.entries(VP).map(([e, t]) => ({
|
|
32456
32450
|
value: e,
|
|
32457
32451
|
label: t
|
|
@@ -32463,7 +32457,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32463
32457
|
children: [/* @__PURE__ */ V("span", { children: "Frozen backbone layers (empty = preset)" }), /* @__PURE__ */ V(ys, {
|
|
32464
32458
|
inputMode: "numeric",
|
|
32465
32459
|
value: d.freeze,
|
|
32466
|
-
onChange: (e) =>
|
|
32460
|
+
onChange: (e) => I({ freeze: e.target.value }),
|
|
32467
32461
|
placeholder: "preset"
|
|
32468
32462
|
})]
|
|
32469
32463
|
}),
|
|
@@ -32471,7 +32465,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32471
32465
|
className: "space-y-1",
|
|
32472
32466
|
children: [/* @__PURE__ */ V("span", { children: "GPU" }), /* @__PURE__ */ V(Qu, {
|
|
32473
32467
|
value: d.gpuType,
|
|
32474
|
-
onChange: (e) =>
|
|
32468
|
+
onChange: (e) => I({ gpuType: e.target.value }),
|
|
32475
32469
|
options: (P?.gpuTypes ?? []).map((e) => ({
|
|
32476
32470
|
value: e.id,
|
|
32477
32471
|
label: `${e.label} — $${e.usdPerHour.toFixed(2)}/h`
|
|
@@ -32482,7 +32476,7 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32482
32476
|
className: "space-y-1",
|
|
32483
32477
|
children: [/* @__PURE__ */ V("span", { children: "Region" }), /* @__PURE__ */ V(Qu, {
|
|
32484
32478
|
value: d.region,
|
|
32485
|
-
onChange: (e) =>
|
|
32479
|
+
onChange: (e) => I({ region: e.target.value }),
|
|
32486
32480
|
options: (P?.regions ?? []).map((e) => ({
|
|
32487
32481
|
value: e.id,
|
|
32488
32482
|
label: e.priceMultiplier === 1 ? e.label : `${e.label} (×${String(e.priceMultiplier)})`
|
|
@@ -32491,12 +32485,12 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32491
32485
|
})
|
|
32492
32486
|
]
|
|
32493
32487
|
}),
|
|
32494
|
-
|
|
32488
|
+
re.length > 0 ? /* @__PURE__ */ H("p", {
|
|
32495
32489
|
className: "text-sm text-foreground-muted",
|
|
32496
32490
|
children: [
|
|
32497
32491
|
"Holdout cameras (automatic):",
|
|
32498
32492
|
" ",
|
|
32499
|
-
|
|
32493
|
+
re.map((e) => i(e)).join(", ")
|
|
32500
32494
|
]
|
|
32501
32495
|
}) : null,
|
|
32502
32496
|
M.state.status === "pending" && j !== null && /* @__PURE__ */ V("p", {
|
|
@@ -32547,8 +32541,8 @@ function XP({ trpc: e, providers: t, baseModels: n, collections: r, cameraName:
|
|
|
32547
32541
|
}),
|
|
32548
32542
|
/* @__PURE__ */ V(X, {
|
|
32549
32543
|
size: "md",
|
|
32550
|
-
disabled: !
|
|
32551
|
-
onClick: () => void
|
|
32544
|
+
disabled: !te,
|
|
32545
|
+
onClick: () => void ne(),
|
|
32552
32546
|
children: "Review and start…"
|
|
32553
32547
|
})
|
|
32554
32548
|
] })
|
|
@@ -32626,14 +32620,14 @@ function eF({ trpc: e, providers: t, baseModels: n, collections: r, jobs: i, onJ
|
|
|
32626
32620
|
children: [/* @__PURE__ */ V("button", {
|
|
32627
32621
|
type: "button",
|
|
32628
32622
|
"aria-pressed": u === QP,
|
|
32629
|
-
className: J(M, u === QP ?
|
|
32623
|
+
className: J(M, u === QP ? te : ee),
|
|
32630
32624
|
onClick: () => d(QP),
|
|
32631
32625
|
children: "All"
|
|
32632
32626
|
}), p.map((e) => /* @__PURE__ */ V("button", {
|
|
32633
32627
|
type: "button",
|
|
32634
32628
|
"aria-pressed": u === e,
|
|
32635
32629
|
"data-testid": `jobs-filter-${e}`,
|
|
32636
|
-
className: J(M, u === e ?
|
|
32630
|
+
className: J(M, u === e ? te : ee),
|
|
32637
32631
|
onClick: () => d(e),
|
|
32638
32632
|
children: dP[e]
|
|
32639
32633
|
}, e))]
|
|
@@ -32663,7 +32657,7 @@ function eF({ trpc: e, providers: t, baseModels: n, collections: r, jobs: i, onJ
|
|
|
32663
32657
|
//#region src/page/provider-icon-url.ts
|
|
32664
32658
|
function tF(e, t) {
|
|
32665
32659
|
let n = t.trim();
|
|
32666
|
-
return n.length === 0 || n.includes("..") ? null :
|
|
32660
|
+
return n.length === 0 || n.includes("..") ? null : I(`/api/addon-assets/${encodeURIComponent(e)}/${n}`);
|
|
32667
32661
|
}
|
|
32668
32662
|
//#endregion
|
|
32669
32663
|
//#region src/page/ProviderSection.tsx
|