@camstack/addon-osd-manager 0.1.3 → 0.1.4
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 +1094 -1023
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BBrLl2CB.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CL-YG2or.mjs} +2 -2
- package/dist/addon-osd-manager.css +1 -1
- package/dist/{hostInit-COP9TmCI.mjs → hostInit-BCB8KzuM.mjs} +1 -1
- package/dist/index.js +199 -3
- package/dist/index.mjs +199 -3
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Bx-1SwyE.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CdG2yVd0.mjs} +1 -1
- package/package.json +5 -4
package/dist/_stub.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./virtualExposes-BgZ5Cn7S.mjs";
|
|
2
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-
|
|
2
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CdG2yVd0.mjs";
|
|
3
3
|
import { _ as e, c as t, d as n, h as r, i, l as a, m as o, p as s, r as c, t as l, u, y as d } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
4
4
|
import { n as f, r as p, t as m } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
5
5
|
import { a as h, c as g, d as _, f as v, h as y, i as b, l as x, m as ee, n as S, o as C, p as w, r as T, s as E, t as te } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D722amjy.mjs";
|
|
@@ -3564,7 +3564,7 @@ var Br = zr("inline-flex items-center justify-center rounded-md font-medium tran
|
|
|
3564
3564
|
variant: "primary",
|
|
3565
3565
|
size: "sm"
|
|
3566
3566
|
}
|
|
3567
|
-
}),
|
|
3567
|
+
}), z = c(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ f("button", {
|
|
3568
3568
|
ref: i,
|
|
3569
3569
|
className: R(Br({
|
|
3570
3570
|
variant: t,
|
|
@@ -3574,8 +3574,8 @@ var Br = zr("inline-flex items-center justify-center rounded-md font-medium tran
|
|
|
3574
3574
|
}));
|
|
3575
3575
|
//#endregion
|
|
3576
3576
|
//#region ../ui-library/src/primitives/icon-button.tsx
|
|
3577
|
-
|
|
3578
|
-
var
|
|
3577
|
+
z.displayName = "Button", d();
|
|
3578
|
+
var Vr = zr("inline-flex items-center justify-center rounded-md font-medium transition-colors cursor-pointer disabled:opacity-50 disabled:pointer-events-none", {
|
|
3579
3579
|
variants: {
|
|
3580
3580
|
variant: {
|
|
3581
3581
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3594,9 +3594,9 @@ var Hr = zr("inline-flex items-center justify-center rounded-md font-medium tran
|
|
|
3594
3594
|
variant: "primary",
|
|
3595
3595
|
size: "sm"
|
|
3596
3596
|
}
|
|
3597
|
-
}),
|
|
3597
|
+
}), Hr = c(({ className: e, variant: t, size: n, icon: r, ...i }, a) => /* @__PURE__ */ f("button", {
|
|
3598
3598
|
ref: a,
|
|
3599
|
-
className: R(
|
|
3599
|
+
className: R(Vr({
|
|
3600
3600
|
variant: t,
|
|
3601
3601
|
size: n
|
|
3602
3602
|
}), e),
|
|
@@ -3605,8 +3605,8 @@ var Hr = zr("inline-flex items-center justify-center rounded-md font-medium tran
|
|
|
3605
3605
|
}));
|
|
3606
3606
|
//#endregion
|
|
3607
3607
|
//#region ../ui-library/src/primitives/badge.tsx
|
|
3608
|
-
|
|
3609
|
-
var
|
|
3608
|
+
Hr.displayName = "IconButton", d();
|
|
3609
|
+
var Ur = zr("inline-flex items-center rounded-full text-xs font-medium px-2 py-0.5", {
|
|
3610
3610
|
variants: {
|
|
3611
3611
|
variant: {
|
|
3612
3612
|
default: "bg-surface-hover text-foreground",
|
|
@@ -3624,9 +3624,9 @@ var Wr = zr("inline-flex items-center rounded-full text-xs font-medium px-2 py-0
|
|
|
3624
3624
|
variant: "default",
|
|
3625
3625
|
styleVariant: "solid"
|
|
3626
3626
|
}
|
|
3627
|
-
}),
|
|
3627
|
+
}), Wr = c(({ className: e, variant: t, style: n, ...r }, i) => /* @__PURE__ */ f("span", {
|
|
3628
3628
|
ref: i,
|
|
3629
|
-
className: R(
|
|
3629
|
+
className: R(Ur({
|
|
3630
3630
|
variant: t,
|
|
3631
3631
|
styleVariant: n
|
|
3632
3632
|
}), e),
|
|
@@ -3634,59 +3634,59 @@ var Wr = zr("inline-flex items-center rounded-full text-xs font-medium px-2 py-0
|
|
|
3634
3634
|
}));
|
|
3635
3635
|
//#endregion
|
|
3636
3636
|
//#region ../ui-library/src/primitives/card.tsx
|
|
3637
|
-
|
|
3638
|
-
var
|
|
3637
|
+
Wr.displayName = "Badge", d();
|
|
3638
|
+
var Gr = zr("rounded-lg p-3", {
|
|
3639
3639
|
variants: { variant: {
|
|
3640
3640
|
flat: "bg-surface",
|
|
3641
3641
|
bordered: "bg-surface border border-border"
|
|
3642
3642
|
} },
|
|
3643
3643
|
defaultVariants: { variant: "bordered" }
|
|
3644
|
-
}),
|
|
3644
|
+
}), Kr = c(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ f("div", {
|
|
3645
3645
|
ref: r,
|
|
3646
|
-
className: R(
|
|
3646
|
+
className: R(Gr({ variant: t }), e),
|
|
3647
3647
|
...n
|
|
3648
3648
|
}));
|
|
3649
3649
|
//#endregion
|
|
3650
3650
|
//#region ../ui-library/src/primitives/label.tsx
|
|
3651
|
-
|
|
3652
|
-
var
|
|
3651
|
+
Kr.displayName = "Card", d();
|
|
3652
|
+
var B = c(({ className: e, ...t }, n) => /* @__PURE__ */ f("label", {
|
|
3653
3653
|
ref: n,
|
|
3654
3654
|
className: R("text-[10px] uppercase tracking-wider text-foreground-muted font-medium", e),
|
|
3655
3655
|
...t
|
|
3656
3656
|
}));
|
|
3657
3657
|
//#endregion
|
|
3658
3658
|
//#region ../ui-library/src/primitives/separator.tsx
|
|
3659
|
-
|
|
3660
|
-
var
|
|
3659
|
+
B.displayName = "Label", d();
|
|
3660
|
+
var qr = zr("", {
|
|
3661
3661
|
variants: { orientation: {
|
|
3662
3662
|
horizontal: "h-px w-full bg-border-subtle",
|
|
3663
3663
|
vertical: "w-px h-full bg-border-subtle"
|
|
3664
3664
|
} },
|
|
3665
3665
|
defaultVariants: { orientation: "horizontal" }
|
|
3666
|
-
}),
|
|
3666
|
+
}), Jr = c(({ className: e, orientation: t, ...n }, r) => /* @__PURE__ */ f("div", {
|
|
3667
3667
|
ref: r,
|
|
3668
3668
|
role: "separator",
|
|
3669
|
-
className: R(
|
|
3669
|
+
className: R(qr({ orientation: t }), e),
|
|
3670
3670
|
...n
|
|
3671
3671
|
}));
|
|
3672
3672
|
//#endregion
|
|
3673
3673
|
//#region ../ui-library/src/primitives/skeleton.tsx
|
|
3674
|
-
|
|
3675
|
-
var
|
|
3674
|
+
Jr.displayName = "Separator", d();
|
|
3675
|
+
var Yr = c(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
3676
3676
|
ref: n,
|
|
3677
3677
|
className: R("animate-pulse bg-surface-hover rounded-md h-4 w-full", e),
|
|
3678
3678
|
...t
|
|
3679
3679
|
}));
|
|
3680
3680
|
//#endregion
|
|
3681
3681
|
//#region ../ui-library/src/primitives/input.tsx
|
|
3682
|
-
|
|
3683
|
-
var
|
|
3682
|
+
Yr.displayName = "Skeleton", d();
|
|
3683
|
+
var Xr = zr("h-7 w-full px-2.5 text-xs bg-surface border rounded-md text-foreground placeholder:text-foreground-subtle focus:outline-none focus:ring-1 focus:ring-primary transition-colors", {
|
|
3684
3684
|
variants: { state: {
|
|
3685
3685
|
default: "border-border",
|
|
3686
3686
|
error: "border-danger"
|
|
3687
3687
|
} },
|
|
3688
3688
|
defaultVariants: { state: "default" }
|
|
3689
|
-
}),
|
|
3689
|
+
}), Zr = c(({ className: e, state: t, leftSlot: n, rightSlot: r, ...i }, a) => n || r ? /* @__PURE__ */ p("div", {
|
|
3690
3690
|
className: "relative flex items-center w-full",
|
|
3691
3691
|
children: [
|
|
3692
3692
|
n && /* @__PURE__ */ f("div", {
|
|
@@ -3695,7 +3695,7 @@ var Zr = zr("h-7 w-full px-2.5 text-xs bg-surface border rounded-md text-foregro
|
|
|
3695
3695
|
}),
|
|
3696
3696
|
/* @__PURE__ */ f("input", {
|
|
3697
3697
|
ref: a,
|
|
3698
|
-
className: R(
|
|
3698
|
+
className: R(Xr({ state: t }), n ? "pl-7" : "", r ? "pr-7" : "", e),
|
|
3699
3699
|
...i
|
|
3700
3700
|
}),
|
|
3701
3701
|
r && /* @__PURE__ */ f("div", {
|
|
@@ -3705,13 +3705,13 @@ var Zr = zr("h-7 w-full px-2.5 text-xs bg-surface border rounded-md text-foregro
|
|
|
3705
3705
|
]
|
|
3706
3706
|
}) : /* @__PURE__ */ f("input", {
|
|
3707
3707
|
ref: a,
|
|
3708
|
-
className: R(
|
|
3708
|
+
className: R(Xr({ state: t }), e),
|
|
3709
3709
|
...i
|
|
3710
3710
|
}));
|
|
3711
3711
|
//#endregion
|
|
3712
3712
|
//#region ../ui-library/src/primitives/select.tsx
|
|
3713
|
-
|
|
3714
|
-
var
|
|
3713
|
+
Zr.displayName = "Input", d();
|
|
3714
|
+
var Qr = c(({ className: e, options: t, ...n }, r) => /* @__PURE__ */ p("div", {
|
|
3715
3715
|
className: "relative w-full",
|
|
3716
3716
|
children: [/* @__PURE__ */ f("select", {
|
|
3717
3717
|
ref: r,
|
|
@@ -3728,8 +3728,8 @@ var $r = c(({ className: e, options: t, ...n }, r) => /* @__PURE__ */ p("div", {
|
|
|
3728
3728
|
}));
|
|
3729
3729
|
//#endregion
|
|
3730
3730
|
//#region ../ui-library/src/primitives/checkbox.tsx
|
|
3731
|
-
|
|
3732
|
-
var
|
|
3731
|
+
Qr.displayName = "Select", d();
|
|
3732
|
+
var $r = c(({ className: e, ...t }, n) => /* @__PURE__ */ f("input", {
|
|
3733
3733
|
ref: n,
|
|
3734
3734
|
type: "checkbox",
|
|
3735
3735
|
className: R("w-3.5 h-3.5 rounded-sm border border-border accent-primary", e),
|
|
@@ -3737,8 +3737,8 @@ var ei = c(({ className: e, ...t }, n) => /* @__PURE__ */ f("input", {
|
|
|
3737
3737
|
}));
|
|
3738
3738
|
//#endregion
|
|
3739
3739
|
//#region ../ui-library/src/primitives/switch.tsx
|
|
3740
|
-
|
|
3741
|
-
var
|
|
3740
|
+
$r.displayName = "Checkbox", d();
|
|
3741
|
+
var ei = c(({ className: e, checked: t, onCheckedChange: n, label: r, ...i }, a) => /* @__PURE__ */ p("button", {
|
|
3742
3742
|
ref: a,
|
|
3743
3743
|
role: "switch",
|
|
3744
3744
|
"aria-checked": t,
|
|
@@ -3756,18 +3756,18 @@ var ti = c(({ className: e, checked: t, onCheckedChange: n, label: r, ...i }, a)
|
|
|
3756
3756
|
}));
|
|
3757
3757
|
//#endregion
|
|
3758
3758
|
//#region ../ui-library/src/primitives/dialog.tsx
|
|
3759
|
-
|
|
3760
|
-
var
|
|
3761
|
-
function
|
|
3762
|
-
let e = a(
|
|
3759
|
+
ei.displayName = "Switch", d();
|
|
3760
|
+
var ti = l(null);
|
|
3761
|
+
function ni() {
|
|
3762
|
+
let e = a(ti);
|
|
3763
3763
|
if (!e) throw Error("Dialog compound components must be used within <Dialog>");
|
|
3764
3764
|
return e;
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function ri({ children: e, open: i, onOpenChange: a }) {
|
|
3767
3767
|
let [o, s] = r(!1), c = i ?? o, l = n(), u = t((e) => {
|
|
3768
3768
|
a?.(e), i === void 0 && s(e);
|
|
3769
3769
|
}, [i, a]);
|
|
3770
|
-
return /* @__PURE__ */ f(
|
|
3770
|
+
return /* @__PURE__ */ f(ti.Provider, {
|
|
3771
3771
|
value: {
|
|
3772
3772
|
open: c,
|
|
3773
3773
|
setOpen: u,
|
|
@@ -3776,7 +3776,7 @@ function ii({ children: e, open: i, onOpenChange: a }) {
|
|
|
3776
3776
|
children: e
|
|
3777
3777
|
});
|
|
3778
3778
|
}
|
|
3779
|
-
var
|
|
3779
|
+
var ii = zr("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 m-0 w-[calc(100vw-2rem)] bg-background-elevated text-foreground border border-border rounded-lg p-4 backdrop:bg-black/50 backdrop:backdrop-blur-sm max-h-[calc(100dvh-2rem-2*max(env(safe-area-inset-top),env(safe-area-inset-bottom)))] overflow-y-auto [&:not([open])]:hidden", {
|
|
3780
3780
|
variants: {
|
|
3781
3781
|
width: {
|
|
3782
3782
|
sm: "max-w-sm",
|
|
@@ -3809,15 +3809,15 @@ var ai = zr("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 m-0 w-[cal
|
|
|
3809
3809
|
width: "md",
|
|
3810
3810
|
placement: "center"
|
|
3811
3811
|
}
|
|
3812
|
-
}),
|
|
3813
|
-
let { open: s, setOpen: c, contentId: l } =
|
|
3812
|
+
}), ai = c(({ className: e, width: t, placement: n, children: r, ...i }, a) => {
|
|
3813
|
+
let { open: s, setOpen: c, contentId: l } = ni(), d = o(null), p = a ?? d;
|
|
3814
3814
|
return u(() => {
|
|
3815
3815
|
let e = p.current;
|
|
3816
3816
|
e && (s && !e.open && e.showModal(), !s && e.open && e.close());
|
|
3817
3817
|
}, [s, p]), /* @__PURE__ */ f("dialog", {
|
|
3818
3818
|
ref: p,
|
|
3819
3819
|
id: l,
|
|
3820
|
-
className: R(
|
|
3820
|
+
className: R(ii({
|
|
3821
3821
|
width: t,
|
|
3822
3822
|
placement: n
|
|
3823
3823
|
}), e),
|
|
@@ -3829,26 +3829,26 @@ var ai = zr("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 m-0 w-[cal
|
|
|
3829
3829
|
children: r
|
|
3830
3830
|
});
|
|
3831
3831
|
});
|
|
3832
|
-
|
|
3833
|
-
function
|
|
3832
|
+
ai.displayName = "DialogContent";
|
|
3833
|
+
function oi({ className: e, ...t }) {
|
|
3834
3834
|
return /* @__PURE__ */ f("div", {
|
|
3835
3835
|
className: R("flex flex-col gap-1 mb-3", e),
|
|
3836
3836
|
...t
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
3839
|
-
function
|
|
3839
|
+
function si({ className: e, ...t }) {
|
|
3840
3840
|
return /* @__PURE__ */ f("div", {
|
|
3841
3841
|
className: R("flex justify-end gap-2 mt-4", e),
|
|
3842
3842
|
...t
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
3845
|
-
function
|
|
3845
|
+
function ci({ className: e, ...t }) {
|
|
3846
3846
|
return /* @__PURE__ */ f("h2", {
|
|
3847
3847
|
className: R("text-sm font-semibold text-foreground", e),
|
|
3848
3848
|
...t
|
|
3849
3849
|
});
|
|
3850
3850
|
}
|
|
3851
|
-
function
|
|
3851
|
+
function li({ className: e, ...t }) {
|
|
3852
3852
|
return /* @__PURE__ */ f("p", {
|
|
3853
3853
|
className: R("text-xs text-foreground-muted", e),
|
|
3854
3854
|
...t
|
|
@@ -3857,23 +3857,23 @@ function ui({ className: e, ...t }) {
|
|
|
3857
3857
|
//#endregion
|
|
3858
3858
|
//#region ../ui-library/src/primitives/scroll-area.tsx
|
|
3859
3859
|
d(), l(null), d(), l(null), d(), d(), d(), l(null), d(), l(null), d();
|
|
3860
|
-
var
|
|
3860
|
+
var ui = c(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
3861
3861
|
ref: n,
|
|
3862
3862
|
className: R("overflow-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-surface-hover [&::-webkit-scrollbar-thumb]:rounded-full", e),
|
|
3863
3863
|
...t
|
|
3864
3864
|
}));
|
|
3865
3865
|
//#endregion
|
|
3866
3866
|
//#region ../ui-library/src/composites/device-step-matrix.tsx
|
|
3867
|
-
|
|
3867
|
+
ui.displayName = "ScrollArea", d(), d(), d(), d(), d(), d(), d(), d(), d();
|
|
3868
3868
|
//#endregion
|
|
3869
3869
|
//#region ../ui-library/src/trpc-react.ts
|
|
3870
|
-
var
|
|
3870
|
+
var di = typeof globalThis < "u" ? globalThis.__camstackTrpcReact : void 0, V = di ?? ie();
|
|
3871
3871
|
//#endregion
|
|
3872
3872
|
//#region ../ui-library/src/composites/version-badge.tsx
|
|
3873
|
-
typeof globalThis < "u" && !
|
|
3873
|
+
typeof globalThis < "u" && !di && (globalThis.__camstackTrpcReact = V), d(), d(), d(), d();
|
|
3874
3874
|
//#endregion
|
|
3875
3875
|
//#region ../ui-library/src/composites/error-box.tsx
|
|
3876
|
-
var
|
|
3876
|
+
var fi = {
|
|
3877
3877
|
danger: {
|
|
3878
3878
|
box: "border-danger/40 bg-danger/10",
|
|
3879
3879
|
icon: "text-danger",
|
|
@@ -3887,8 +3887,8 @@ var pi = {
|
|
|
3887
3887
|
message: "text-amber-700 dark:text-amber-300"
|
|
3888
3888
|
}
|
|
3889
3889
|
};
|
|
3890
|
-
function
|
|
3891
|
-
let o =
|
|
3890
|
+
function pi({ message: e, title: t, onRetry: n, action: r, variant: i = "danger", className: a }) {
|
|
3891
|
+
let o = fi[i], s = i === "warning" ? Sr : tn;
|
|
3892
3892
|
return /* @__PURE__ */ p("div", {
|
|
3893
3893
|
role: "alert",
|
|
3894
3894
|
className: R("flex items-start gap-2.5 rounded border px-3 py-2.5", o.box, a),
|
|
@@ -3924,7 +3924,7 @@ function mi({ message: e, title: t, onRetry: n, action: r, variant: i = "danger"
|
|
|
3924
3924
|
d(), ne("camstack:confirm-dialog", null), d(), d(), d();
|
|
3925
3925
|
//#endregion
|
|
3926
3926
|
//#region ../ui-library/src/hooks/use-device-capability.ts
|
|
3927
|
-
function
|
|
3927
|
+
function H(e) {
|
|
3928
3928
|
let t = O(e.trpc, e.deviceId), n = re(t === null ? void 0 : e.slice(t)), r = t === null ? void 0 : e.cap(t), i = re(t === null ? void 0 : t.state.deviceStatus), a = i?.online ?? !0, o = a ? null : i?.lastChangedAt ?? null;
|
|
3929
3929
|
return {
|
|
3930
3930
|
dev: t,
|
|
@@ -3938,7 +3938,7 @@ function V(e) {
|
|
|
3938
3938
|
//#endregion
|
|
3939
3939
|
//#region ../ui-library/src/composites/device-controls/atoms.tsx
|
|
3940
3940
|
d(), d(), d();
|
|
3941
|
-
function
|
|
3941
|
+
function mi({ value: e, unit: t, onDelta: n }) {
|
|
3942
3942
|
return /* @__PURE__ */ p("div", {
|
|
3943
3943
|
className: "flex h-8 w-full overflow-hidden rounded-lg border border-border bg-surface",
|
|
3944
3944
|
children: [
|
|
@@ -3967,7 +3967,7 @@ function hi({ value: e, unit: t, onDelta: n }) {
|
|
|
3967
3967
|
]
|
|
3968
3968
|
});
|
|
3969
3969
|
}
|
|
3970
|
-
function
|
|
3970
|
+
function hi({ on: e, targetLabel: t, onConfirm: n }) {
|
|
3971
3971
|
let r = o(null), i = o(!1);
|
|
3972
3972
|
return /* @__PURE__ */ p("div", {
|
|
3973
3973
|
className: R("relative h-12 w-full rounded-full border flex items-center", e ? "bg-emerald-50 border-emerald-200 pl-4" : "bg-amber-50 border-amber-200 justify-end pr-4"),
|
|
@@ -3992,20 +3992,20 @@ function gi({ on: e, targetLabel: t, onConfirm: n }) {
|
|
|
3992
3992
|
})]
|
|
3993
3993
|
});
|
|
3994
3994
|
}
|
|
3995
|
-
var
|
|
3996
|
-
function
|
|
3995
|
+
var gi = 2, _i = 270, vi = 315;
|
|
3996
|
+
function yi(e) {
|
|
3997
3997
|
let t = (e - 135 + 360) % 360;
|
|
3998
|
-
return t >
|
|
3998
|
+
return t > _i ? +(t <= vi) : t / _i;
|
|
3999
3999
|
}
|
|
4000
|
-
function
|
|
4001
|
-
let a = -135 + e * 270, s = o(null), [c, l] = r(!1), u = i !== void 0, d = n ??
|
|
4000
|
+
function bi({ fraction: e, color: t, knobTopPx: n, onDragFraction: i }) {
|
|
4001
|
+
let a = -135 + e * 270, s = o(null), [c, l] = r(!1), u = i !== void 0, d = n ?? gi, p = (e) => {
|
|
4002
4002
|
i !== void 0 && (e.preventDefault(), e.stopPropagation(), e.currentTarget.setPointerCapture?.(e.pointerId), l(!0));
|
|
4003
4003
|
}, m = (e) => {
|
|
4004
4004
|
if (i === void 0 || !c) return;
|
|
4005
4005
|
let t = s.current;
|
|
4006
4006
|
if (t === null) return;
|
|
4007
4007
|
let n = t.getBoundingClientRect(), r = n.left + n.width / 2, a = n.top + n.height / 2;
|
|
4008
|
-
i(
|
|
4008
|
+
i(yi(Math.atan2(e.clientY - a, e.clientX - r) * 180 / Math.PI));
|
|
4009
4009
|
}, h = (e) => {
|
|
4010
4010
|
i !== void 0 && (e.currentTarget.releasePointerCapture?.(e.pointerId), l(!1));
|
|
4011
4011
|
};
|
|
@@ -4028,7 +4028,7 @@ function xi({ fraction: e, color: t, knobTopPx: n, onDragFraction: i }) {
|
|
|
4028
4028
|
})
|
|
4029
4029
|
});
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4031
|
+
function xi({ fraction: e, color: t }) {
|
|
4032
4032
|
return /* @__PURE__ */ p("div", {
|
|
4033
4033
|
className: "relative h-2 w-full rounded-full bg-border",
|
|
4034
4034
|
children: [/* @__PURE__ */ f("div", {
|
|
@@ -4045,7 +4045,7 @@ function Si({ fraction: e, color: t }) {
|
|
|
4045
4045
|
}
|
|
4046
4046
|
//#endregion
|
|
4047
4047
|
//#region ../ui-library/src/composites/device-controls/button-control.tsx
|
|
4048
|
-
function
|
|
4048
|
+
function Si({ trpc: e, deviceId: t }) {
|
|
4049
4049
|
let n = O(e, t), r = n === null ? void 0 : n.button;
|
|
4050
4050
|
if (r === void 0) return null;
|
|
4051
4051
|
let i = () => {
|
|
@@ -4062,7 +4062,7 @@ function Ci({ trpc: e, deviceId: t }) {
|
|
|
4062
4062
|
children: [/* @__PURE__ */ f(Un, { className: "h-3 w-3" }), /* @__PURE__ */ f("span", { children: "Press" })]
|
|
4063
4063
|
});
|
|
4064
4064
|
}
|
|
4065
|
-
function
|
|
4065
|
+
function Ci({ trpc: e, deviceId: t }) {
|
|
4066
4066
|
let n = O(e, t), r = n === null ? void 0 : n.button;
|
|
4067
4067
|
return r === void 0 ? null : /* @__PURE__ */ p("div", {
|
|
4068
4068
|
className: "flex flex-col items-center justify-center gap-4 rounded-lg border border-border bg-surface p-6",
|
|
@@ -4083,17 +4083,17 @@ function wi({ trpc: e, deviceId: t }) {
|
|
|
4083
4083
|
//#endregion
|
|
4084
4084
|
//#region ../ui-library/src/hooks/use-optimistic-slice.ts
|
|
4085
4085
|
d();
|
|
4086
|
-
var
|
|
4087
|
-
function
|
|
4086
|
+
var wi = 4e3;
|
|
4087
|
+
function Ti(e) {
|
|
4088
4088
|
if (e !== void 0) return typeof e == "object" && e && "lastChangedAt" in e && typeof e.lastChangedAt == "number" ? e.lastChangedAt : e;
|
|
4089
4089
|
}
|
|
4090
|
-
function
|
|
4091
|
-
let i = n?.enabled !== !1, a = n?.timeoutMs ??
|
|
4090
|
+
function U(e, n) {
|
|
4091
|
+
let i = n?.enabled !== !1, a = n?.timeoutMs ?? wi, [s, c] = r(void 0), l = o(void 0), d = o(void 0), f = o(!1), p = o(void 0), m = t(() => {
|
|
4092
4092
|
p.current !== void 0 && (clearTimeout(p.current), p.current = void 0), l.current = void 0, f.current = !1, d.current = void 0, c(void 0);
|
|
4093
4093
|
}, []);
|
|
4094
4094
|
u(() => {
|
|
4095
4095
|
if (!i || !f.current) return;
|
|
4096
|
-
let t =
|
|
4096
|
+
let t = Ti(e), n = d.current;
|
|
4097
4097
|
t !== void 0 && t !== n && m();
|
|
4098
4098
|
}), u(() => () => {
|
|
4099
4099
|
p.current !== void 0 && clearTimeout(p.current);
|
|
@@ -4109,7 +4109,7 @@ function H(e, n) {
|
|
|
4109
4109
|
};
|
|
4110
4110
|
l.current = e, c(e);
|
|
4111
4111
|
}
|
|
4112
|
-
d.current =
|
|
4112
|
+
d.current = Ti(e), f.current = !0, p.current = setTimeout(m, a);
|
|
4113
4113
|
}, [
|
|
4114
4114
|
i,
|
|
4115
4115
|
e,
|
|
@@ -4126,7 +4126,7 @@ function H(e, n) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
//#endregion
|
|
4128
4128
|
//#region ../ui-library/src/composites/device-controls/cover-inline.tsx
|
|
4129
|
-
function
|
|
4129
|
+
function Ei(e) {
|
|
4130
4130
|
switch (e) {
|
|
4131
4131
|
case "opening": return {
|
|
4132
4132
|
up: "accent",
|
|
@@ -4155,14 +4155,14 @@ function Di(e) {
|
|
|
4155
4155
|
};
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
|
-
function
|
|
4158
|
+
function Di(e) {
|
|
4159
4159
|
switch (e) {
|
|
4160
4160
|
case "accent": return "bg-primary text-primary-foreground";
|
|
4161
4161
|
case "filled": return "bg-primary/15 text-primary";
|
|
4162
4162
|
case "neutral": return "";
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4165
|
+
function Oi({ label: e, busy: t, variant: n, onClick: r, children: i }) {
|
|
4166
4166
|
return /* @__PURE__ */ f("button", {
|
|
4167
4167
|
type: "button",
|
|
4168
4168
|
"aria-label": e,
|
|
@@ -4171,39 +4171,39 @@ function ki({ label: e, busy: t, variant: n, onClick: r, children: i }) {
|
|
|
4171
4171
|
onClick: (e) => {
|
|
4172
4172
|
e.stopPropagation(), r();
|
|
4173
4173
|
},
|
|
4174
|
-
className: R("inline-flex h-5 w-5 items-center justify-center rounded text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors",
|
|
4174
|
+
className: R("inline-flex h-5 w-5 items-center justify-center rounded text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors", Di(n), t && "opacity-40 cursor-not-allowed"),
|
|
4175
4175
|
children: i
|
|
4176
4176
|
});
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4179
|
-
let { cap: r, slice: i, available: a } =
|
|
4178
|
+
function ki({ trpc: e, deviceId: t, optimistic: n }) {
|
|
4179
|
+
let { cap: r, slice: i, available: a } = H({
|
|
4180
4180
|
trpc: e,
|
|
4181
4181
|
deviceId: t,
|
|
4182
4182
|
cap: (e) => e.cover,
|
|
4183
4183
|
slice: (e) => e.state.cover
|
|
4184
|
-
}), { display: o, applyOptimistic: s } =
|
|
4184
|
+
}), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 });
|
|
4185
4185
|
if (r === void 0) return null;
|
|
4186
|
-
let c =
|
|
4186
|
+
let c = Ei(o?.state), l = !a, u = (e, t) => {
|
|
4187
4187
|
l || !e || (t !== void 0 && s(t), e({}));
|
|
4188
4188
|
};
|
|
4189
4189
|
return /* @__PURE__ */ p("div", {
|
|
4190
4190
|
className: "inline-flex items-center gap-1",
|
|
4191
4191
|
children: [
|
|
4192
|
-
/* @__PURE__ */ f(
|
|
4192
|
+
/* @__PURE__ */ f(Oi, {
|
|
4193
4193
|
label: "Open",
|
|
4194
4194
|
busy: l,
|
|
4195
4195
|
variant: c.up,
|
|
4196
4196
|
onClick: () => u(r?.open, { state: "opening" }),
|
|
4197
4197
|
children: /* @__PURE__ */ f(en, { className: "h-3.5 w-3.5" })
|
|
4198
4198
|
}),
|
|
4199
|
-
/* @__PURE__ */ f(
|
|
4199
|
+
/* @__PURE__ */ f(Oi, {
|
|
4200
4200
|
label: "Stop",
|
|
4201
4201
|
busy: l,
|
|
4202
4202
|
variant: c.stop,
|
|
4203
4203
|
onClick: () => u(r?.stop, { state: "stopped" }),
|
|
4204
4204
|
children: /* @__PURE__ */ f(ae, { className: "h-3 w-3" })
|
|
4205
4205
|
}),
|
|
4206
|
-
/* @__PURE__ */ f(
|
|
4206
|
+
/* @__PURE__ */ f(Oi, {
|
|
4207
4207
|
label: "Close",
|
|
4208
4208
|
busy: l,
|
|
4209
4209
|
variant: c.down,
|
|
@@ -4220,7 +4220,7 @@ function Ai({ trpc: e, deviceId: t, optimistic: n }) {
|
|
|
4220
4220
|
//#endregion
|
|
4221
4221
|
//#region ../ui-library/src/composites/device-controls/cover-hero-card.tsx
|
|
4222
4222
|
d();
|
|
4223
|
-
function
|
|
4223
|
+
function Ai({ label: e, busy: t, variant: n, onClick: r, children: i }) {
|
|
4224
4224
|
return /* @__PURE__ */ f("button", {
|
|
4225
4225
|
type: "button",
|
|
4226
4226
|
"aria-label": e,
|
|
@@ -4233,7 +4233,7 @@ function ji({ label: e, busy: t, variant: n, onClick: r, children: i }) {
|
|
|
4233
4233
|
children: i
|
|
4234
4234
|
});
|
|
4235
4235
|
}
|
|
4236
|
-
function
|
|
4236
|
+
function ji() {
|
|
4237
4237
|
return /* @__PURE__ */ p(m, { children: [/* @__PURE__ */ f("div", {
|
|
4238
4238
|
"aria-hidden": "true",
|
|
4239
4239
|
className: "absolute inset-y-0 left-1/2 w-px -translate-x-px bg-white/60"
|
|
@@ -4242,7 +4242,7 @@ function Mi() {
|
|
|
4242
4242
|
className: "absolute inset-x-0 top-1/2 h-px -translate-y-px bg-white/60"
|
|
4243
4243
|
})] });
|
|
4244
4244
|
}
|
|
4245
|
-
function
|
|
4245
|
+
function Mi({ position: e, interactive: t, onSetPosition: n }) {
|
|
4246
4246
|
let r = (1 - e / 100) * 100, i = o(null), a = o(!1), s = o(null), c = (t) => {
|
|
4247
4247
|
let n = i.current;
|
|
4248
4248
|
if (n === null) return e;
|
|
@@ -4278,7 +4278,7 @@ function Ni({ position: e, interactive: t, onSetPosition: n }) {
|
|
|
4278
4278
|
className: R("relative w-28 h-36 rounded border-2 border-amber-700/60 bg-gradient-to-b from-sky-200 to-sky-50 overflow-hidden flex-shrink-0", t && "cursor-ns-resize touch-none select-none"),
|
|
4279
4279
|
style: { boxShadow: "inset 0 0 0 2px rgba(255,255,255,.5)" },
|
|
4280
4280
|
children: [
|
|
4281
|
-
/* @__PURE__ */ f(
|
|
4281
|
+
/* @__PURE__ */ f(ji, {}),
|
|
4282
4282
|
/* @__PURE__ */ f("div", {
|
|
4283
4283
|
className: "absolute inset-x-0 top-0 transition-all duration-200",
|
|
4284
4284
|
style: {
|
|
@@ -4315,27 +4315,27 @@ function Ni({ position: e, interactive: t, onSetPosition: n }) {
|
|
|
4315
4315
|
]
|
|
4316
4316
|
});
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4318
|
+
function Ni({ isOpen: e }) {
|
|
4319
4319
|
return /* @__PURE__ */ p("div", {
|
|
4320
4320
|
"data-testid": "cover-window",
|
|
4321
4321
|
"aria-hidden": "true",
|
|
4322
4322
|
className: "relative w-28 h-36 rounded border-2 border-amber-700/60 bg-gradient-to-b from-sky-200 to-sky-50 overflow-hidden flex-shrink-0",
|
|
4323
4323
|
style: { boxShadow: "inset 0 0 0 2px rgba(255,255,255,.5)" },
|
|
4324
|
-
children: [/* @__PURE__ */ f(
|
|
4324
|
+
children: [/* @__PURE__ */ f(ji, {}), !e && /* @__PURE__ */ f("div", {
|
|
4325
4325
|
className: "absolute inset-0",
|
|
4326
4326
|
style: { background: "repeating-linear-gradient(#c9cdd2, #c9cdd2 6px, #b7bcc2 6px, #b7bcc2 8px)" }
|
|
4327
4327
|
})]
|
|
4328
4328
|
});
|
|
4329
4329
|
}
|
|
4330
|
-
function
|
|
4331
|
-
let { cap: i, slice: a, available: o } =
|
|
4330
|
+
function Pi({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
4331
|
+
let { cap: i, slice: a, available: o } = H({
|
|
4332
4332
|
trpc: e,
|
|
4333
4333
|
deviceId: t,
|
|
4334
4334
|
cap: (e) => e.cover,
|
|
4335
4335
|
slice: (e) => e.state.cover
|
|
4336
|
-
}), { display: s, applyOptimistic: c } =
|
|
4336
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
4337
4337
|
if (i === void 0) return null;
|
|
4338
|
-
let l = !o, u = (n ?? []).includes(h.CoverPositionable), d = (n ?? []).includes(h.CoverTilt), m =
|
|
4338
|
+
let l = !o, u = (n ?? []).includes(h.CoverPositionable), d = (n ?? []).includes(h.CoverTilt), m = Ei(s?.state), g = s?.position ?? null, _ = g !== null, v = s?.state === "open" || s?.state === "opening", y = (e, t) => {
|
|
4339
4339
|
l || !e || (t !== void 0 && c(t), e({}));
|
|
4340
4340
|
}, b = (e) => {
|
|
4341
4341
|
l || (c({ position: e }), i?.setPosition({ position: e }));
|
|
@@ -4345,11 +4345,11 @@ function Fi({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
4345
4345
|
children: [
|
|
4346
4346
|
/* @__PURE__ */ p("div", {
|
|
4347
4347
|
className: "flex items-center gap-6",
|
|
4348
|
-
children: [_ ? /* @__PURE__ */ f(
|
|
4348
|
+
children: [_ ? /* @__PURE__ */ f(Mi, {
|
|
4349
4349
|
position: g,
|
|
4350
4350
|
interactive: u,
|
|
4351
4351
|
onSetPosition: u ? b : void 0
|
|
4352
|
-
}) : /* @__PURE__ */ f(
|
|
4352
|
+
}) : /* @__PURE__ */ f(Ni, { isOpen: v }), /* @__PURE__ */ p("div", {
|
|
4353
4353
|
className: "flex flex-col gap-3 flex-1",
|
|
4354
4354
|
children: [
|
|
4355
4355
|
_ && /* @__PURE__ */ p("div", {
|
|
@@ -4379,21 +4379,21 @@ function Fi({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
4379
4379
|
/* @__PURE__ */ p("div", {
|
|
4380
4380
|
className: "flex items-center gap-2",
|
|
4381
4381
|
children: [
|
|
4382
|
-
/* @__PURE__ */ f(
|
|
4382
|
+
/* @__PURE__ */ f(Ai, {
|
|
4383
4383
|
label: "Open",
|
|
4384
4384
|
busy: l,
|
|
4385
4385
|
variant: m.up,
|
|
4386
4386
|
onClick: () => y(i?.open, { state: "opening" }),
|
|
4387
4387
|
children: /* @__PURE__ */ f(en, { className: "h-5 w-5" })
|
|
4388
4388
|
}),
|
|
4389
|
-
/* @__PURE__ */ f(
|
|
4389
|
+
/* @__PURE__ */ f(Ai, {
|
|
4390
4390
|
label: "Stop",
|
|
4391
4391
|
busy: l,
|
|
4392
4392
|
variant: m.stop,
|
|
4393
4393
|
onClick: () => y(i?.stop, { state: "stopped" }),
|
|
4394
4394
|
children: /* @__PURE__ */ f(ae, { className: "h-4 w-4" })
|
|
4395
4395
|
}),
|
|
4396
|
-
/* @__PURE__ */ f(
|
|
4396
|
+
/* @__PURE__ */ f(Ai, {
|
|
4397
4397
|
label: "Close",
|
|
4398
4398
|
busy: l,
|
|
4399
4399
|
variant: m.down,
|
|
@@ -4487,30 +4487,30 @@ function Fi({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
4487
4487
|
}
|
|
4488
4488
|
//#endregion
|
|
4489
4489
|
//#region ../ui-library/src/composites/device-controls/dummy-hero-card.tsx
|
|
4490
|
-
function
|
|
4490
|
+
function Fi(e) {
|
|
4491
4491
|
return /* @__PURE__ */ f("span", {
|
|
4492
4492
|
className: "text-foreground-subtle text-xs select-none",
|
|
4493
4493
|
"aria-hidden": "true",
|
|
4494
4494
|
children: "—"
|
|
4495
4495
|
});
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4497
|
+
function Ii(e) {
|
|
4498
4498
|
return /* @__PURE__ */ f("div", {
|
|
4499
4499
|
className: "rounded border border-border bg-surface-subtle px-3 py-2 text-xs text-foreground-subtle",
|
|
4500
4500
|
children: "Controls coming soon"
|
|
4501
4501
|
});
|
|
4502
4502
|
}
|
|
4503
|
-
|
|
4504
|
-
var
|
|
4505
|
-
|
|
4506
|
-
var
|
|
4507
|
-
|
|
4508
|
-
var
|
|
4509
|
-
|
|
4510
|
-
var
|
|
4511
|
-
|
|
4512
|
-
var
|
|
4513
|
-
B.petFeeder.feed.useMutation, B.petFeeder.cancelFeed.useMutation, B.petFeeder.resetDesiccant.useMutation, B.petFeeder.markFoodReplenished.useMutation, B.petFeeder.callPet.useMutation, B.petFeeder.playSound.useMutation, B.petFeeder.setChildLock.useMutation, B.petFeeder.setIndicatorLight.useMutation, B.petFeeder.setFeedSound.useMutation, B.petFeeder.setVolume.useMutation, B.petFeeder.getStatus.useQuery, B.pipelineAnalytics.getActiveTracks.useQuery, B.pipelineAnalytics.getTrack.useQuery, B.pipelineAnalytics.listTracks.useQuery, B.pipelineAnalytics.listRecentTracks.useQuery, B.pipelineAnalytics.clearTracks.useMutation, B.pipelineAnalytics.getMotionEvents.useQuery, B.pipelineAnalytics.getObjectEvents.useQuery, B.pipelineAnalytics.getAudioEvents.useQuery, B.pipelineAnalytics.listEventKinds.useQuery, B.pipelineAnalytics.listEventKindsBatch.useQuery, B.pipelineAnalytics.getSensorEvents.useQuery, B.pipelineAnalytics.getKeyEvents.useQuery, B.pipelineAnalytics.getEventDensity.useQuery, B.pipelineAnalytics.pruneEventsBefore.useMutation, B.pipelineAnalytics.pruneTracksBefore.useMutation, B.pipelineAnalytics.wipeAllAnalytics.useMutation, B.pipelineAnalytics.deleteTracks.useMutation, B.pipelineAnalytics.setTrackFlags.useMutation, B.pipelineAnalytics.getEventStoreFootprint.useQuery, B.pipelineAnalytics.pruneEvents.useMutation, B.pipelineAnalytics.deleteDeviceEvents.useMutation, B.pipelineAnalytics.relocateMedia.useMutation, B.pipelineAnalytics.getMediaRelocateStatus.useQuery, B.pipelineAnalytics.cancelMediaRelocate.useMutation, B.pipelineAnalytics.listOpsLog.useQuery, B.pipelineAnalytics.getTrainingExportSummary.useQuery, B.pipelineAnalytics.getTrainingExportUrl.useQuery, B.pipelineAnalytics.listRetrainStaging.useQuery, B.pipelineAnalytics.listRetrainFrames.useQuery, B.pipelineAnalytics.selectRetrainFrames.useMutation, B.pipelineAnalytics.deselectRetrainFrame.useMutation, B.pipelineAnalytics.getRetrainFrameImage.useQuery, B.pipelineAnalytics.proposeRetrainAnnotations.useMutation, B.pipelineAnalytics.listRetrainAnnotations.useQuery, B.pipelineAnalytics.saveRetrainAnnotations.useMutation, B.pipelineAnalytics.completeRetrainTrack.useMutation, B.pipelineAnalytics.restageRetrainTrack.useMutation, B.pipelineAnalytics.getRetrainExportUrl.useQuery, B.pipelineAnalytics.getEventMedia.useQuery, B.pipelineAnalytics.getTrackMedia.useQuery, B.pipelineAnalytics.listTrackMedia.useQuery, B.pipelineAnalytics.searchObjectEvents.useQuery, B.pipelineAnalytics.wipeObjectEmbeddings.useMutation, B.pipelineAnalytics.rebuildObjectEmbeddings.useMutation, B.pipelineAnalytics.getObjectEmbeddingRebuildStatus.useQuery, B.pipelineAnalytics.getDeviceSettingsContribution.useQuery, B.pipelineAnalytics.getDeviceLiveContribution.useQuery, B.pipelineAnalytics.applyDeviceSettingsPatch.useMutation, B.pipelineExecutor.getAvailableEngines.useQuery, B.pipelineExecutor.getSelectedEngine.useQuery, B.pipelineExecutor.getDefaultSteps.useQuery, B.pipelineExecutor.getEngineProvisioning.useQuery, B.pipelineExecutor.getVideoPipelineSteps.useQuery, B.pipelineExecutor.setVideoPipelineSteps.useMutation, B.pipelineExecutor.clearDeviceOverrides.useMutation, B.pipelineExecutor.getSchema.useQuery, B.pipelineExecutor.getGlobalSteps.useQuery, B.pipelineExecutor.getGlobalPipelineConfig.useQuery, B.pipelineExecutor.getOrchestratorConfigSchema.useQuery, B.pipelineExecutor.validatePipeline.useQuery, B.pipelineExecutor.listTemplates.useQuery, B.pipelineExecutor.saveTemplate.useMutation, B.pipelineExecutor.updateTemplate.useMutation, B.pipelineExecutor.deleteTemplate.useMutation, B.pipelineExecutor.getCapabilities.useQuery, B.pipelineExecutor.getAddonModels.useQuery, B.pipelineExecutor.downloadModel.useMutation, B.pipelineExecutor.deleteModel.useMutation, B.pipelineExecutor.runPipeline.useMutation, B.pipelineExecutor.runPipelineBatch.useMutation, B.pipelineExecutor.cacheFrameInPool.useMutation, B.pipelineExecutor.inferCached.useMutation, B.pipelineExecutor.uncacheFrame.useMutation, B.pipelineExecutor.getEffectiveTuning.useQuery, B.pipelineExecutor.listLoadedEngines.useQuery, B.pipelineExecutor.spinEngine.useMutation, B.pipelineExecutor.killEngine.useMutation, B.pipelineExecutor.listReferenceImages.useQuery, B.pipelineExecutor.getReferenceImage.useQuery, B.pipelineExecutor.getReferenceAudioFiles.useQuery, B.pipelineExecutor.getReferenceAudio.useQuery, B.pipelineExecutor.getAudioCapabilities.useQuery, B.pipelineExecutor.runAudioTest.useMutation, B.pipelineExecutor.getDetectionConfigSchema.useQuery, B.pipelineOrchestrator.assignPipeline.useMutation, B.pipelineOrchestrator.unassignPipeline.useMutation, B.pipelineOrchestrator.setPipelineDevicePin.useMutation, B.pipelineOrchestrator.getPipelineDevicePin.useQuery, B.pipelineOrchestrator.rebalance.useMutation, B.pipelineOrchestrator.getPipelineAssignments.useQuery, B.pipelineOrchestrator.getPipelineAssignment.useQuery, B.pipelineOrchestrator.getAgentLoad.useQuery, B.pipelineOrchestrator.getGlobalMetrics.useQuery, B.pipelineOrchestrator.getCameraMetrics.useQuery, B.pipelineOrchestrator.getCapabilityBindings.useQuery, B.pipelineOrchestrator.setCapabilityBinding.useMutation, B.pipelineOrchestrator.getIngestOwner.useQuery, B.pipelineOrchestrator.assignAudio.useMutation, B.pipelineOrchestrator.unassignAudio.useMutation, B.pipelineOrchestrator.getAudioAssignment.useQuery, B.pipelineOrchestrator.getAudioNodeLoad.useQuery, B.pipelineOrchestrator.getAudioAssignments.useQuery, B.pipelineOrchestrator.getAgentSettings.useQuery, B.pipelineOrchestrator.listAgentSettings.useQuery, B.pipelineOrchestrator.removeAgentSettings.useMutation, B.pipelineOrchestrator.setAgentMaxCameras.useMutation, B.pipelineOrchestrator.setAgentDetectWeight.useMutation, B.pipelineOrchestrator.setAgentCapabilities.useMutation, B.pipelineOrchestrator.setAgentReachableHost.useMutation, B.pipelineOrchestrator.setAgentInferenceDevices.useMutation, B.pipelineOrchestrator.getNodeInferenceDevices.useQuery, B.pipelineOrchestrator.resetNodePipelineDefaults.useMutation, B.pipelineOrchestrator.getCameraSettings.useQuery, B.pipelineOrchestrator.setCameraStepToggle.useMutation, B.pipelineOrchestrator.getCameraStepOverrides.useQuery, B.pipelineOrchestrator.setCameraStepOverride.useMutation, B.pipelineOrchestrator.setCameraPipelineForAgent.useMutation, B.pipelineOrchestrator.resolvePipeline.useQuery, B.pipelineOrchestrator.getCameraSwitches.useQuery, B.pipelineOrchestrator.setCameraSwitch.useMutation, B.pipelineOrchestrator.getCameraStatus.useQuery, B.pipelineOrchestrator.getCameraStatuses.useQuery, B.pipelineOrchestrator.listTemplates.useQuery, B.pipelineOrchestrator.saveTemplate.useMutation, B.pipelineOrchestrator.updateTemplate.useMutation, B.pipelineOrchestrator.deleteTemplate.useMutation, B.pipelineOrchestrator.getDeviceSettingsContribution.useQuery, B.pipelineOrchestrator.getDeviceLiveContribution.useQuery, B.pipelineOrchestrator.applyDeviceSettingsPatch.useMutation, B.pipelineRunner.attachCamera.useMutation, B.pipelineRunner.detachCamera.useMutation, B.pipelineRunner.reportMotion.useMutation, B.pipelineRunner.getLocalLoad.useQuery, B.pipelineRunner.getLocalMetrics.useQuery, B.pipelineRunner.getCameraMetrics.useQuery, B.pipelineRunner.getAllCameraMetrics.useQuery, B.pipelineRunner.getLocalCameras.useQuery, B.pipelineRunner.getNativeCrop.useQuery, B.pipelineRunner.runDetailSubtree.useMutation, B.pipelineRunner.runStatelessStep.useMutation, B.plateGallery.listPlates.useQuery, B.plateGallery.getPlateByTrack.useQuery, B.plateGallery.getPlateMedia.useQuery, B.plateGallery.searchPlates.useQuery, B.plateGallery.suggestPlateClusters.useQuery, B.plateGallery.correctPlateText.useMutation, B.plateGallery.deletePlate.useMutation, B.plateGallery.listVehicles.useQuery, B.plateGallery.createVehicle.useMutation, B.plateGallery.renameVehicle.useMutation, B.plateGallery.deleteVehicle.useMutation, B.plateGallery.listVehicleSamples.useQuery, B.plateGallery.removeVehicleSample.useMutation, B.plateGallery.assignPlate.useMutation, B.plateGallery.unassignPlate.useMutation, B.plateGallery.assignPlates.useMutation, B.plateGallery.unassignPlates.useMutation, B.powerMeter.getStatus.useQuery, B.presence.getStatus.useQuery, B.pressureSensor.getStatus.useQuery, B.privacyMask.getOptions.useQuery, B.privacyMask.setMask.useMutation, B.privacyMask.setAudioEnabled.useMutation, B.privacyMask.getStatus.useQuery, B.ptz.move.useMutation, B.ptz.continuousMove.useMutation, B.ptz.stop.useMutation, B.ptz.getPresets.useQuery, B.ptz.goToPreset.useMutation, B.ptz.savePreset.useMutation, B.ptz.deletePreset.useMutation, B.ptz.getOptions.useQuery, B.ptz.goHome.useMutation, B.ptz.getPosition.useQuery, B.ptz.setAutofocus.useMutation, B.ptz.getStatus.useQuery, B.ptzAutotrack.getStatus.useQuery, B.ptzAutotrack.setEnabled.useMutation, B.ptzAutotrack.getSettings.useQuery, B.ptzAutotrack.setSettings.useMutation, B.reboot.reboot.useMutation, B.recording.getAvailability.useQuery, B.recording.getDaysWithRecordings.useQuery, B.recording.getPlaybackManifest.useQuery, B.recording.getStorageUsage.useQuery, B.recording.getDeviceConfig.useQuery, B.recording.locateSegment.useQuery, B.recording.readSegmentBytes.useQuery, B.recording.readGopBytes.useQuery, B.recording.setDeviceConfig.useMutation, B.recording.rescanStorage.useMutation, B.recording.pruneFootage.useMutation, B.recording.deleteFootprint.useMutation, B.recording.listOpsLog.useQuery, B.recording.renderGif.useMutation, B.recording.renderClip.useMutation, B.recording.relocateFootage.useMutation, B.recording.getRelocateStatus.useQuery, B.recording.cancelRelocate.useMutation, B.recording.getStatus.useQuery, B.recording.getDeviceSettingsContribution.useQuery, B.recording.getDeviceLiveContribution.useQuery, B.recording.applyDeviceSettingsPatch.useMutation, B.recordingExport.createExport.useMutation, B.recordingExport.listExports.useQuery, B.recordingExport.getExport.useQuery, B.recordingExport.cancelExport.useMutation, B.recordingExport.deleteExport.useMutation, B.recordingExport.getDownloadUrl.useQuery, B.sceneMonitor.listScenes.useQuery, B.sceneMonitor.createScene.useMutation, B.sceneMonitor.updateScene.useMutation, B.sceneMonitor.deleteScene.useMutation, B.sceneMonitor.captureReference.useMutation, B.sceneMonitor.deleteReference.useMutation, B.sceneMonitor.recheckNow.useMutation, B.sceneMonitor.getStatus.useQuery, B.scriptRunner.run.useMutation, B.scriptRunner.stop.useMutation, B.scriptRunner.getStatus.useQuery, B.serverManagement.getServerPackageStatus.useQuery, B.serverManagement.checkServerUpdate.useMutation, B.serverManagement.applyServerUpdate.useMutation, B.serverManagement.rollbackServerUpdate.useMutation, B.serverManagement.restartServer.useMutation, B.settingsStore.get.useQuery, B.settingsStore.set.useMutation, B.settingsStore.query.useQuery, B.settingsStore.insert.useMutation, B.settingsStore.update.useMutation, B.settingsStore.delete.useMutation, B.settingsStore.deleteWhere.useMutation, B.settingsStore.updateWhere.useMutation, B.settingsStore.count.useQuery, B.settingsStore.histogram.useQuery, B.settingsStore.isEmpty.useQuery, B.settingsStore.declareCollection.useMutation, B.smoke.getStatus.useQuery, B.snapshot.getSnapshot.useQuery, B.snapshot.invalidateCache.useMutation, B.snapshot.getSnapshotOverview.useQuery, B.snapshot.getSnapshotLinks.useQuery, B.snapshot.getStatus.useQuery, B.snapshot.getDeviceSettingsContribution.useQuery, B.snapshot.getDeviceLiveContribution.useQuery, B.snapshot.applyDeviceSettingsPatch.useMutation, B.storage.resolve.useQuery, B.storage.write.useMutation, B.storage.read.useQuery, B.storage.exists.useQuery, B.storage.list.useQuery, B.storage.delete.useMutation, B.storage.getAvailableSpace.useQuery, B.storage.beginUpload.useMutation, B.storage.writeChunk.useMutation, B.storage.finalizeUpload.useMutation, B.storage.abortUpload.useMutation, B.storage.beginDownload.useMutation, B.storage.readChunk.useQuery, B.storage.endDownload.useMutation, B.storage.listLocations.useQuery, B.storage.getDefaultLocation.useQuery, B.storage.listLocationDeclarations.useQuery, B.storage.upsertLocation.useMutation, B.storage.deleteLocation.useMutation, B.storage.testLocation.useQuery, B.storage.listProviders.useQuery, B.storage.testConfig.useQuery, B.streamBroker.publishCameraStream.useMutation, B.streamBroker.retractCameraStream.useMutation, B.streamBroker.assignProfile.useMutation, B.streamBroker.unassignProfile.useMutation, B.streamBroker.renderPreBufferClip.useMutation, B.streamBroker.produceEventMedia.useMutation, B.streamBroker.fetchEventMedia.useMutation, B.streamBroker.listAllCameraStreams.useQuery, B.streamBroker.listAllProfileSlots.useQuery, B.streamBroker.getBrokerStats.useQuery, B.streamBroker.probeStream.useMutation, B.streamBroker.listClients.useQuery, B.streamBroker.killClient.useMutation, B.streamBroker.restartProfile.useMutation, B.streamBroker.getStreamUrl.useQuery, B.streamBroker.getStreamWithCodec.useMutation, B.streamBroker.releaseStreamWithCodec.useMutation, B.streamBroker.acquireEgressTranscode.useMutation, B.streamBroker.releaseEgressTranscode.useMutation, B.streamBroker.subscribeAudioChunks.useMutation, B.streamBroker.pullAudioChunks.useQuery, B.streamBroker.unsubscribeAudioChunks.useMutation, B.streamBroker.subscribeFrames.useMutation, B.streamBroker.pullFrameHandles.useQuery, B.streamBroker.unsubscribeFrames.useMutation, B.streamBroker.setPreBufferDuration.useMutation, B.streamBroker.getPreBufferInfo.useQuery, B.streamBroker.getRtspPort.useQuery, B.streamBroker.getAllRtspEntries.useQuery, B.streamBroker.getRtspEntry.useQuery, B.streamBroker.regenerateRtspToken.useMutation, B.streamBroker.setRtspEnabled.useMutation, B.streamBroker.isRtspEnabled.useQuery, B.streamBroker.getDeviceAudioMute.useQuery, B.streamBroker.setDeviceAudioMute.useMutation, B.streamBroker.getDeviceSettingsContribution.useQuery, B.streamBroker.getDeviceLiveContribution.useQuery, B.streamBroker.applyDeviceSettingsPatch.useMutation, B.streamCatalog.getCatalog.useQuery, B.streamParams.getOptions.useQuery, B.streamParams.setProfile.useMutation, B.streamParams.getConfigSchema.useQuery, B.streamParams.getStatus.useQuery, B.switch.setState.useMutation, B.switch.getStatus.useQuery, B.system.info.useQuery, B.system.health.useQuery, B.system.featureFlags.useQuery, B.system.networkAddresses.useQuery, B.system.getRetentionConfig.useQuery, B.system.setRetentionConfig.useMutation, B.system.forceRetentionCleanup.useMutation, B.tamper.getStatus.useQuery, B.temperatureSensor.getStatus.useQuery, B.terminalSession.listProfiles.useQuery, B.terminalSession.listSessions.useQuery, B.terminalSession.openSession.useMutation, B.terminalSession.resize.useMutation, B.terminalSession.pullOutput.useMutation, B.terminalSession.writeInput.useMutation, B.terminalSession.close.useMutation, B.toast.onToast.useSubscription, B.turnProvider.getTurnServers.useQuery, B.update.installUpdate.useMutation, B.update.getStatus.useQuery, B.userManagement.listUsers.useQuery, B.userManagement.createUser.useMutation, B.userManagement.updateUser.useMutation, B.userManagement.deleteUser.useMutation, B.userManagement.resetPassword.useMutation, B.userManagement.setUserScopes.useMutation, B.userManagement.validateCredentials.useMutation, B.userManagement.listApiKeys.useQuery, B.userManagement.createApiKey.useMutation, B.userManagement.revokeApiKey.useMutation, B.userManagement.validateApiKey.useMutation, B.userManagement.createScopedToken.useMutation, B.userManagement.revokeScopedToken.useMutation, B.userManagement.validateScopedToken.useQuery, B.userManagement.listScopedTokens.useQuery, B.userManagement.setupTotp.useMutation, B.userManagement.confirmTotp.useMutation, B.userManagement.disableTotp.useMutation, B.userManagement.getTotpStatus.useQuery, B.userManagement.verifyTotp.useMutation, B.userManagement.oauthIssueCode.useMutation, B.userManagement.oauthExchangeCode.useMutation, B.userManagement.oauthRefresh.useMutation, B.userManagement.oauthVerifyAccessToken.useQuery, B.userManagement.listOauthSessions.useQuery, B.userManagement.revokeOauthSession.useMutation, B.vacuumControl.start.useMutation, B.vacuumControl.pause.useMutation, B.vacuumControl.stop.useMutation, B.vacuumControl.returnToBase.useMutation, B.vacuumControl.locate.useMutation, B.vacuumControl.setFanSpeed.useMutation, B.vacuumControl.getStatus.useQuery, B.valve.open.useMutation, B.valve.close.useMutation, B.valve.stop.useMutation, B.valve.setPosition.useMutation, B.valve.getStatus.useQuery, B.vibration.getStatus.useQuery, B.videoclips.listClips.useQuery, B.videoclips.getClipPlayback.useQuery, B.waterHeater.setTargetTemp.useMutation, B.waterHeater.setOperationMode.useMutation, B.waterHeater.setAway.useMutation, B.waterHeater.getStatus.useQuery, B.weather.getStatus.useQuery, B.webrtcSession.listStreams.useQuery, B.webrtcSession.createSession.useMutation, B.webrtcSession.handleOffer.useMutation, B.webrtcSession.handleAnswer.useMutation, B.webrtcSession.addIceCandidate.useMutation, B.webrtcSession.getIceCandidates.useQuery, B.webrtcSession.closeSession.useMutation, B.webrtcSession.hasAdaptiveBitrate.useQuery, B.webrtcSession.getSessionState.useQuery, B.zoneAnalytics.getCurrentSnapshot.useQuery, B.zoneAnalytics.getZoneHistory.useQuery, B.zoneAnalytics.getCameraHistory.useQuery, B.zoneAnalytics.getUnzonedHistory.useQuery, B.zoneRules.listRules.useQuery, B.zoneRules.setRules.useMutation, B.zones.listZones.useQuery, B.zones.addZone.useMutation, B.zones.removeZone.useMutation, B.zones.updateZone.useMutation;
|
|
4503
|
+
V.accessories.setChildHidden.useMutation, V.accessories.getStatus.useQuery, V.addonPages.listPages.useQuery, V.addons.list.useQuery, V.addons.getLogs.useQuery, V.addons.listPackages.useQuery, V.addons.installPackage.useMutation, V.addons.installFromWorkspace.useMutation, V.addons.isWorkspaceAvailable.useQuery, V.addons.listWorkspacePackages.useQuery, V.addons.uninstallPackage.useMutation, V.addons.reloadPackages.useMutation, V.addons.searchAvailable.useQuery, V.addons.listUpdates.useQuery, V.addons.updatePackage.useMutation, V.addons.rollbackPackage.useMutation, V.addons.forceRefresh.useMutation, V.addons.restartServer.useMutation, V.addons.getLastRestart.useQuery, V.addons.listFrameworkPackages.useQuery, V.addons.listCapabilityProviders.useQuery, V.addons.setCapabilityProviderEnabled.useMutation, V.addons.getVersions.useQuery, V.addons.restartAddon.useMutation, V.addons.retryLoad.useMutation, V.addons.getAutoUpdateSettings.useQuery, V.addons.setAutoUpdateSettings.useMutation, V.addons.getAddonAutoUpdate.useQuery, V.addons.setAddonAutoUpdate.useMutation, V.addons.applyAutoUpdateToAll.useMutation, V.addons.custom.useMutation, V.addons.startJob.useMutation, V.addons.getJob.useQuery, V.addons.listJobs.useQuery, V.addons.cancelJob.useMutation, V.addons.onAddonLogs.useSubscription, V.addonSettings.getGlobalSettings.useQuery, V.addonSettings.updateGlobalSettings.useMutation, V.addonSettings.getDeviceSettings.useQuery, V.addonSettings.updateDeviceSettings.useMutation, V.addonWidgets.listWidgets.useQuery, V.airQualitySensor.getStatus.useQuery, V.alarmPanel.arm.useMutation, V.alarmPanel.disarm.useMutation, V.alarmPanel.trigger.useMutation, V.alarmPanel.getStatus.useQuery, V.alerts.emit.useMutation, V.alerts.update.useMutation, V.alerts.list.useQuery, V.alerts.getUnreadCount.useQuery, V.alerts.markRead.useMutation, V.alerts.markAllRead.useMutation, V.alerts.dismiss.useMutation, V.ambientLightSensor.getStatus.useQuery, V.audioAnalysis.resolveDeviceSettings.useQuery, V.audioAnalysis.getDeviceSettingsContribution.useQuery, V.audioAnalysis.getDeviceLiveContribution.useQuery, V.audioAnalysis.applyDeviceSettingsPatch.useMutation, V.audioAnalyzer.analyseChunk.useMutation, V.audioAnalyzer.classify.useQuery, V.audioAnalyzer.isReady.useQuery, V.audioAnalyzer.dispose.useMutation, V.audioAnalyzer.reprobeAudioEngine.useMutation, V.audioCodec.listSupportedCodecs.useQuery, V.audioCodec.canHandle.useQuery, V.audioCodec.createDecodeSession.useMutation, V.audioCodec.createEncodeSession.useMutation, V.audioCodec.closeSession.useMutation, V.audioCodec.pushEncodedFrame.useMutation, V.audioCodec.pullPcm.useQuery, V.audioCodec.pushPcm.useMutation, V.audioCodec.pullEncoded.useQuery, V.audioCodec.flushEncode.useMutation, V.audioCodec.listActiveSessions.useQuery, V.audioMetrics.getCurrentSnapshot.useQuery, V.audioMetrics.getHistory.useQuery, V.automationControl.enable.useMutation, V.automationControl.disable.useMutation, V.automationControl.trigger.useMutation, V.automationControl.getStatus.useQuery, V.backup.listDestinations.useQuery, V.backup.trigger.useMutation, V.backup.list.useQuery, V.backup.listLocations.useQuery, V.backup.getEntries.useQuery, V.backup.restore.useMutation, V.backup.delete.useMutation, V.backup.listArchives.useQuery, V.backup.upsertDestinationPolicy.useMutation, V.backup.previewSchedule.useQuery, V.backup.listSchedules.useQuery, V.backup.upsertSchedule.useMutation, V.backup.deleteSchedule.useMutation, V.battery.wakeForStream.useMutation, V.battery.getStatus.useQuery, V.binary.getStatus.useQuery, V.brightness.setBrightness.useMutation, V.brightness.getStatus.useQuery, V.broker.list.useQuery, V.broker.get.useQuery, V.broker.listProviders.useQuery, V.broker.add.useMutation, V.broker.remove.useMutation, V.broker.testConnection.useMutation, V.broker.getSettings.useQuery, V.broker.setSettings.useMutation, V.broker.getBrokerConfig.useQuery, V.broker.getSettingsSchema.useQuery, V.broker.testSettings.useMutation, V.broker.publish.useMutation, V.broker.subscribe.useMutation, V.broker.unsubscribe.useMutation, V.broker.getState.useQuery, V.broker.getStatus.useQuery, V.button.press.useMutation, V.cameraCredentials.getCredentials.useQuery, V.cameraCredentials.getStatus.useQuery, V.cameraPipelineConfig.getDeviceSettingsContribution.useQuery, V.cameraPipelineConfig.getDeviceLiveContribution.useQuery, V.cameraPipelineConfig.applyDeviceSettingsPatch.useMutation, V.cameraStreams.getCameraStreams.useQuery, V.cameraStreams.getBrokerStreams.useQuery, V.cameraStreams.getRtspEntries.useQuery, V.cameraStreams.getProfileRtspEntries.useQuery, V.cameraStreams.pickStream.useQuery, V.carbonMonoxide.getStatus.useQuery, V.climateControl.setMode.useMutation, V.climateControl.setFanMode.useMutation, V.climateControl.setPreset.useMutation, V.climateControl.setTarget.useMutation, V.climateControl.setTargetRange.useMutation, V.climateControl.setTargetHumidity.useMutation, V.climateControl.setSwingVertical.useMutation, V.climateControl.setSwingHorizontal.useMutation, V.climateControl.getStatus.useQuery, V.color.setColor.useMutation, V.color.getStatus.useQuery, V.connectionTest.testSettings.useMutation, V.connectionTest.describeTest.useQuery, V.connectivity.getStatus.useQuery, V.consumables.reset.useMutation, V.consumables.getStatus.useQuery, V.contact.getStatus.useQuery, V.control.setValue.useMutation, V.control.getStatus.useQuery, V.coreBlocks.list.useQuery, V.coreBlocks.get.useQuery, V.coreBlocks.create.useMutation, V.coreBlocks.update.useMutation, V.coreBlocks.delete.useMutation, V.coreBlocks.setEnabled.useMutation, V.coreBlocks.restart.useMutation, V.coreBlocks.compile.useMutation, V.coreBlocks.getTypeDefs.useQuery, V.cover.open.useMutation, V.cover.close.useMutation, V.cover.stop.useMutation, V.cover.setPosition.useMutation, V.cover.setTiltPosition.useMutation, V.cover.getStatus.useQuery, V.dayNight.getOptions.useQuery, V.dayNight.setSettings.useMutation, V.dayNight.getStatus.useQuery, V.decoder.supportsCodec.useQuery, V.decoder.getInfo.useQuery, V.decoder.createSession.useQuery, V.decoder.destroySession.useQuery, V.decoder.pushPacket.useQuery, V.decoder.openStream.useQuery, V.decoder.pullFrames.useQuery, V.decoder.pullHandles.useQuery, V.decoder.getFrame.useQuery, V.decoder.getShmStats.useQuery, V.decoder.updateConfig.useQuery, V.decoder.getStats.useQuery, V.decoder.listActiveSessions.useQuery, V.decoder.reprobeHwaccel.useMutation, V.detectionPipeline.getDeviceSettingsContribution.useQuery, V.detectionPipeline.getDeviceLiveContribution.useQuery, V.detectionPipeline.applyDeviceSettingsPatch.useMutation, V.deviceAdoption.listCandidateFilters.useQuery, V.deviceAdoption.listCandidates.useQuery, V.deviceAdoption.getCandidate.useQuery, V.deviceAdoption.refresh.useMutation, V.deviceAdoption.adopt.useMutation, V.deviceAdoption.release.useMutation, V.deviceAdoption.resync.useMutation, V.deviceAdoption.getStatus.useQuery, V.deviceDiscovery.listDiscovered.useQuery, V.deviceDiscovery.refreshDiscovery.useMutation, V.deviceDiscovery.adoptDevice.useMutation, V.deviceDiscovery.releaseDevice.useMutation, V.deviceDiscovery.getStatus.useQuery, V.deviceExport.getStatus.useQuery, V.deviceExport.listSupportedDeviceKinds.useQuery, V.deviceExport.listExposedDevices.useQuery, V.deviceExport.exposeDevice.useMutation, V.deviceExport.unexposeDevice.useMutation, V.deviceExport.getDeviceSettingsContribution.useQuery, V.deviceExport.getDeviceLiveContribution.useQuery, V.deviceExport.applyDeviceSettingsPatch.useMutation, V.deviceManager.allocateDeviceId.useMutation, V.deviceManager.registerDevice.useMutation, V.deviceManager.removeDevice.useMutation, V.deviceManager.persistConfig.useMutation, V.deviceManager.loadConfig.useQuery, V.deviceManager.loadRuntimeState.useQuery, V.deviceManager.loadMeta.useQuery, V.deviceManager.setName.useMutation, V.deviceManager.setLocation.useMutation, V.deviceManager.setType.useMutation, V.deviceManager.setIntegrationId.useMutation, V.deviceManager.setLinkDeviceId.useMutation, V.deviceManager.setPrimaryChildEntityId.useMutation, V.deviceManager.setChildLayout.useMutation, V.deviceManager.setDisplay.useMutation;
|
|
4504
|
+
var Li = V.deviceManager.getRoleDisplayDefaults.useQuery;
|
|
4505
|
+
V.deviceManager.setRoleDisplayDefaults.useMutation, V.deviceManager.getWireableFields.useQuery, V.deviceManager.setRole.useMutation, V.deviceManager.applyInitialMeta.useMutation, V.deviceManager.setMetadata.useMutation, V.deviceManager.listLocations.useQuery, V.deviceManager.addLocation.useMutation, V.deviceManager.removeLocation.useMutation, V.deviceManager.setDisabled.useMutation, V.deviceManager.listPersistedByAddon.useQuery;
|
|
4506
|
+
var Ri = V.deviceManager.listAll.useQuery, zi = V.deviceManager.getDevice.useQuery;
|
|
4507
|
+
V.deviceManager.getChildren.useQuery, V.deviceManager.getLinkedDevices.useQuery, V.deviceManager.getStreamSources.useQuery, V.deviceManager.getConfigSchema.useQuery, V.deviceManager.getSettingsSchema.useQuery, V.deviceManager.updateConfig.useMutation, V.deviceManager.enable.useMutation, V.deviceManager.disable.useMutation, V.deviceManager.remove.useMutation, V.deviceManager.removeByIntegration.useMutation, V.deviceManager.getStreamProfileMap.useQuery, V.deviceManager.setStreamProfileMap.useMutation, V.deviceManager.probeStreams.useMutation, V.deviceManager.getBindings.useQuery;
|
|
4508
|
+
var Bi = V.deviceManager.getAllBindings.useQuery;
|
|
4509
|
+
V.deviceManager.setWrapperActive.useMutation, V.deviceManager.listWrappersForCap.useQuery, V.deviceManager.listBindableCapsForDeviceType.useQuery, V.deviceManager.getDeviceSettingsAggregate.useQuery, V.deviceManager.getDeviceLiveInfoAggregate.useQuery, V.deviceManager.getDeviceAggregate.useQuery, V.deviceManager.runDeviceAction.useMutation, V.deviceManager.updateDeviceField.useMutation, V.deviceManager.updateDeviceFieldsBatch.useMutation, V.deviceManager.discoverDevices.useMutation, V.deviceManager.adoptDevice.useMutation, V.deviceManager.getCreationSchema.useQuery, V.deviceManager.createDevice.useMutation, V.deviceManager.testCreationField.useMutation, V.deviceManager.adoptionListCandidateFilters.useQuery, V.deviceManager.adoptionListCandidates.useQuery, V.deviceManager.adoptionRefresh.useMutation, V.deviceManager.adoptionAdopt.useMutation, V.deviceManager.adoptionRelease.useMutation, V.deviceManager.adoptionStartJob.useMutation, V.deviceManager.adoptionListJobs.useQuery, V.deviceManager.adoptionCancelJob.useMutation, V.deviceManager.adoptionResync.useMutation, V.deviceManager.discoveryProviders.useQuery, V.deviceManager.discoverAllProviders.useMutation, V.deviceManager.discoverProvider.useMutation, V.deviceManager.providerCreationType.useQuery, V.deviceManager.providerDiscoveryParamsSchema.useQuery, V.deviceManager.testField.useMutation, V.deviceManager.getDeviceStatusAggregate.useQuery, V.deviceManager.getDeviceStatusAggregateBatch.useQuery, V.deviceManager.getDeviceSettingsContribution.useQuery, V.deviceManager.getDeviceLiveContribution.useQuery, V.deviceManager.applyDeviceSettingsPatch.useMutation, V.deviceOps.getStreamSources.useQuery, V.deviceOps.getConfigEntries.useQuery, V.deviceOps.setConfig.useMutation, V.deviceOps.runAction.useMutation, V.deviceOps.removeDevice.useMutation, V.deviceOps.getSettingsSchema.useQuery, V.deviceOps.getRawState.useQuery, V.deviceProvider.start.useMutation, V.deviceProvider.stop.useMutation, V.deviceProvider.getStatus.useQuery, V.deviceProvider.getDevices.useQuery, V.deviceProvider.supportsDiscovery.useQuery, V.deviceProvider.discoverDevices.useMutation, V.deviceProvider.getDiscoveryParamsSchema.useQuery, V.deviceProvider.getManualCreationType.useQuery, V.deviceProvider.adoptDiscoveredDevice.useMutation, V.deviceProvider.supportsManualCreation.useQuery, V.deviceProvider.getChildCreationSchema.useQuery, V.deviceProvider.createDevice.useMutation, V.deviceProvider.testCreationField.useMutation;
|
|
4510
|
+
var Vi = V.deviceState.getSnapshot.useQuery;
|
|
4511
|
+
V.deviceState.getCapSlice.useQuery, V.deviceState.getAllSnapshots.useQuery, V.deviceState.setCapSlice.useMutation, V.deviceStatus.getStatus.useQuery, V.doorbell.getStatus.useQuery, V.doorbell.getDeviceSettingsContribution.useQuery, V.doorbell.getDeviceLiveContribution.useQuery, V.doorbell.applyDeviceSettingsPatch.useMutation, V.enumSensor.getStatus.useQuery, V.eventEmitter.getStatus.useQuery, V.events.getEvents.useQuery, V.events.getEventThumbnail.useQuery, V.events.getEventClipUrl.useQuery, V.faceGallery.listIdentities.useQuery, V.faceGallery.createIdentity.useMutation, V.faceGallery.renameIdentity.useMutation, V.faceGallery.deleteIdentity.useMutation, V.faceGallery.listIdentitySamples.useQuery, V.faceGallery.removeSample.useMutation, V.faceGallery.listRecentFaces.useQuery, V.faceGallery.getFaceByTrack.useQuery, V.faceGallery.getFaceMedia.useQuery, V.faceGallery.assignFace.useMutation, V.faceGallery.unassignFace.useMutation, V.faceGallery.deleteFace.useMutation, V.faceGallery.assignFaces.useMutation, V.faceGallery.unassignFaces.useMutation, V.faceGallery.suggestFaceClusters.useQuery, V.fanControl.setPercentage.useMutation, V.fanControl.setPreset.useMutation, V.fanControl.setDirection.useMutation, V.fanControl.setOscillating.useMutation, V.fanControl.getStatus.useQuery, V.featureProbe.getStatus.useQuery, V.flood.getStatus.useQuery, V.gas.getStatus.useQuery, V.humidifier.setOn.useMutation, V.humidifier.setTargetHumidity.useMutation, V.humidifier.setMode.useMutation, V.humidifier.getStatus.useQuery, V.humiditySensor.getStatus.useQuery, V.image.getStatus.useQuery, V.imageSettings.getOptions.useQuery, V.imageSettings.setSettings.useMutation, V.imageSettings.getStatus.useQuery, V.integrations.list.useQuery, V.integrations.get.useQuery, V.integrations.getByAddonId.useQuery, V.integrations.create.useMutation, V.integrations.update.useMutation, V.integrations.delete.useMutation, V.integrations.getSettings.useQuery, V.integrations.setSettings.useMutation, V.integrations.getAvailableTypes.useQuery, V.integrations.testConnection.useMutation, V.intercom.startSession.useMutation, V.intercom.handleAnswer.useMutation, V.intercom.stopSession.useMutation, V.intercom.startTalkSession.useMutation, V.intercom.pushTalkAudio.useMutation, V.intercom.endTalkSession.useMutation, V.intercom.getStatus.useQuery, V.lawnMowerControl.startMowing.useMutation, V.lawnMowerControl.pause.useMutation, V.lawnMowerControl.dock.useMutation, V.lawnMowerControl.getStatus.useQuery, V.llm.generate.useMutation, V.llm.generateVision.useMutation, V.llm.listProfileKinds.useQuery, V.llm.listProfiles.useQuery, V.llm.upsertProfile.useMutation, V.llm.deleteProfile.useMutation, V.llm.testProfile.useMutation, V.llm.listModels.useQuery, V.llm.getDefaults.useQuery, V.llm.setDefault.useMutation, V.llm.getUsage.useQuery, V.llm.listModelCatalog.useQuery, V.llm.listRuntimeNodes.useQuery, V.llm.listNodeModels.useQuery, V.llm.installModel.useMutation, V.llm.deleteModel.useMutation, V.llm.getRuntimeStatus.useQuery, V.llm.startRuntime.useMutation, V.llm.stopRuntime.useMutation, V.localNetwork.list.useQuery, V.localNetwork.getPreferred.useQuery, V.localNetwork.getConnectionEndpoints.useQuery, V.localNetwork.getNotificationEndpoint.useQuery, V.localNetwork.setNotificationEndpoint.useMutation, V.localNetwork.getAllowedAddresses.useQuery, V.localNetwork.setAllowedAddresses.useMutation, V.localNetwork.resetAllowlistToBestMatch.useMutation, V.lockControl.lock.useMutation, V.lockControl.unlock.useMutation, V.lockControl.open.useMutation, V.lockControl.getStatus.useQuery, V.mediaPlayer.play.useMutation, V.mediaPlayer.pause.useMutation, V.mediaPlayer.stop.useMutation, V.mediaPlayer.next.useMutation, V.mediaPlayer.previous.useMutation, V.mediaPlayer.seek.useMutation, V.mediaPlayer.setVolume.useMutation, V.mediaPlayer.setMute.useMutation, V.mediaPlayer.setShuffle.useMutation, V.mediaPlayer.setRepeat.useMutation, V.mediaPlayer.selectSource.useMutation, V.mediaPlayer.playMedia.useMutation, V.mediaPlayer.getStatus.useQuery, V.meshNetwork.getStatus.useQuery, V.meshNetwork.join.useMutation, V.meshNetwork.startLogin.useMutation, V.meshNetwork.leave.useMutation, V.meshNetwork.logout.useMutation, V.meshNetwork.listPeers.useQuery, V.meshNetwork.testConnection.useMutation, V.metricsProvider.collectSnapshot.useQuery, V.metricsProvider.getCached.useQuery, V.metricsProvider.getCurrent.useQuery, V.metricsProvider.getDiskSpace.useQuery, V.metricsProvider.getGpuInfo.useQuery, V.metricsProvider.getCpuTemperature.useQuery, V.metricsProvider.getProcessStats.useQuery, V.metricsProvider.listAddonInstances.useQuery, V.metricsProvider.getAddonStats.useQuery, V.metricsProvider.listNodeProcesses.useQuery, V.metricsProvider.killProcess.useMutation, V.metricsProvider.dumpHeapSnapshot.useMutation, V.motion.isDetected.useQuery, V.motion.getStatus.useQuery, V.motionDetection.analyze.useMutation, V.motionDetection.removeCamera.useMutation, V.motionDetection.reset.useMutation, V.motionDetection.getDeviceSettingsContribution.useQuery, V.motionDetection.getDeviceLiveContribution.useQuery, V.motionDetection.applyDeviceSettingsPatch.useMutation, V.motionTrigger.setMotionTrigger.useMutation, V.motionTrigger.getStatus.useQuery, V.motionZones.getOptions.useQuery, V.motionZones.setZone.useMutation, V.motionZones.getStatus.useQuery, V.mqttBroker.listBrokers.useQuery, V.mqttBroker.getBrokerConfig.useQuery, V.mqttBroker.addBroker.useMutation, V.mqttBroker.removeBroker.useMutation, V.mqttBroker.testConnection.useMutation, V.mqttBroker.startEmbeddedBroker.useMutation, V.mqttBroker.stopEmbeddedBroker.useMutation, V.mqttBroker.getStatus.useQuery, V.nativeObjectDetection.setEnabled.useMutation, V.nativeObjectDetection.getStatus.useQuery, V.networkAccess.start.useMutation, V.networkAccess.stop.useMutation, V.networkAccess.getEndpoint.useQuery, V.networkAccess.getStatus.useQuery, V.networkAccess.listEndpoints.useQuery, V.networkQuality.getDeviceStats.useQuery, V.networkQuality.getAllStats.useQuery, V.networkQuality.reportClientStats.useMutation, V.nodes.topology.useQuery, V.nodes.deployAddon.useMutation, V.nodes.undeployAddon.useMutation, V.nodes.restartAddon.useMutation, V.nodes.restartProcess.useMutation, V.nodes.restartNode.useMutation, V.nodes.shutdownNode.useMutation, V.nodes.renameNode.useMutation, V.nodes.clusterAddonStatus.useQuery, V.nodes.getCapUsageGraph.useQuery, V.nodes.getNodeAddons.useQuery, V.nodes.setProcessLogLevel.useMutation, V.nodes.executeQuery.useMutation, V.notificationOutput.listTargetKinds.useQuery, V.notificationOutput.listTargets.useQuery, V.notificationOutput.discoverTargets.useQuery, V.notificationOutput.send.useMutation, V.notificationOutput.testTarget.useMutation, V.notificationOutput.upsertTarget.useMutation, V.notificationOutput.deleteTarget.useMutation, V.notificationOutput.setTargetEnabled.useMutation, V.notificationRules.listRules.useQuery, V.notificationRules.getRule.useQuery, V.notificationRules.createRule.useMutation, V.notificationRules.updateRule.useMutation, V.notificationRules.deleteRule.useMutation, V.notificationRules.setRuleEnabled.useMutation, V.notificationRules.listDeviceMutes.useQuery, V.notificationRules.setDeviceMuted.useMutation, V.notificationRules.testRule.useMutation, V.notificationRules.getConditionCatalog.useQuery, V.notificationRules.getHistory.useQuery, V.notificationRules.listSnoozes.useQuery, V.notificationRules.createSnooze.useMutation, V.notificationRules.cancelSnooze.useMutation, V.notificationRules.getAlarmConfig.useQuery, V.notificationRules.setAlarmConfig.useMutation, V.notifier.send.useMutation, V.notifier.cancel.useMutation, V.notifier.getStatus.useQuery, V.numericSensor.getStatus.useQuery, V.osd.setOverlay.useMutation, V.osd.getStatus.useQuery;
|
|
4512
|
+
var Hi = V.osdManager.getDeviceOsd.useQuery, Ui = V.osdManager.getSourceCatalog.useQuery, Wi = V.osdManager.getConditionSupport.useQuery, Gi = V.osdManager.setSlotBinding.useMutation, Ki = V.osdManager.clearSlotBinding.useMutation, qi = V.osdManager.copyDeviceConfiguration.useMutation, Ji = V.osdManager.previewSlot.useMutation, Yi = V.osdManager.renderDevice.useMutation;
|
|
4513
|
+
V.petFeeder.feed.useMutation, V.petFeeder.cancelFeed.useMutation, V.petFeeder.resetDesiccant.useMutation, V.petFeeder.markFoodReplenished.useMutation, V.petFeeder.callPet.useMutation, V.petFeeder.playSound.useMutation, V.petFeeder.setChildLock.useMutation, V.petFeeder.setIndicatorLight.useMutation, V.petFeeder.setFeedSound.useMutation, V.petFeeder.setVolume.useMutation, V.petFeeder.getStatus.useQuery, V.pipelineAnalytics.getActiveTracks.useQuery, V.pipelineAnalytics.getTrack.useQuery, V.pipelineAnalytics.listTracks.useQuery, V.pipelineAnalytics.listRecentTracks.useQuery, V.pipelineAnalytics.clearTracks.useMutation, V.pipelineAnalytics.getMotionEvents.useQuery, V.pipelineAnalytics.getObjectEvents.useQuery, V.pipelineAnalytics.getAudioEvents.useQuery, V.pipelineAnalytics.listEventKinds.useQuery, V.pipelineAnalytics.listEventKindsBatch.useQuery, V.pipelineAnalytics.getSensorEvents.useQuery, V.pipelineAnalytics.getKeyEvents.useQuery, V.pipelineAnalytics.getEventDensity.useQuery, V.pipelineAnalytics.pruneEventsBefore.useMutation, V.pipelineAnalytics.pruneTracksBefore.useMutation, V.pipelineAnalytics.wipeAllAnalytics.useMutation, V.pipelineAnalytics.deleteTracks.useMutation, V.pipelineAnalytics.setTrackFlags.useMutation, V.pipelineAnalytics.getEventStoreFootprint.useQuery, V.pipelineAnalytics.pruneEvents.useMutation, V.pipelineAnalytics.deleteDeviceEvents.useMutation, V.pipelineAnalytics.relocateMedia.useMutation, V.pipelineAnalytics.getMediaRelocateStatus.useQuery, V.pipelineAnalytics.cancelMediaRelocate.useMutation, V.pipelineAnalytics.listOpsLog.useQuery, V.pipelineAnalytics.getTrainingExportSummary.useQuery, V.pipelineAnalytics.getTrainingExportUrl.useQuery, V.pipelineAnalytics.listRetrainStaging.useQuery, V.pipelineAnalytics.listRetrainFrames.useQuery, V.pipelineAnalytics.selectRetrainFrames.useMutation, V.pipelineAnalytics.deselectRetrainFrame.useMutation, V.pipelineAnalytics.getRetrainFrameImage.useQuery, V.pipelineAnalytics.proposeRetrainAnnotations.useMutation, V.pipelineAnalytics.listRetrainAnnotations.useQuery, V.pipelineAnalytics.saveRetrainAnnotations.useMutation, V.pipelineAnalytics.completeRetrainTrack.useMutation, V.pipelineAnalytics.restageRetrainTrack.useMutation, V.pipelineAnalytics.getRetrainExportUrl.useQuery, V.pipelineAnalytics.getEventMedia.useQuery, V.pipelineAnalytics.getTrackMedia.useQuery, V.pipelineAnalytics.listTrackMedia.useQuery, V.pipelineAnalytics.searchObjectEvents.useQuery, V.pipelineAnalytics.wipeObjectEmbeddings.useMutation, V.pipelineAnalytics.rebuildObjectEmbeddings.useMutation, V.pipelineAnalytics.getObjectEmbeddingRebuildStatus.useQuery, V.pipelineAnalytics.getDeviceSettingsContribution.useQuery, V.pipelineAnalytics.getDeviceLiveContribution.useQuery, V.pipelineAnalytics.applyDeviceSettingsPatch.useMutation, V.pipelineExecutor.getAvailableEngines.useQuery, V.pipelineExecutor.getSelectedEngine.useQuery, V.pipelineExecutor.getDefaultSteps.useQuery, V.pipelineExecutor.getEngineProvisioning.useQuery, V.pipelineExecutor.getVideoPipelineSteps.useQuery, V.pipelineExecutor.setVideoPipelineSteps.useMutation, V.pipelineExecutor.clearDeviceOverrides.useMutation, V.pipelineExecutor.getSchema.useQuery, V.pipelineExecutor.getGlobalSteps.useQuery, V.pipelineExecutor.getGlobalPipelineConfig.useQuery, V.pipelineExecutor.getOrchestratorConfigSchema.useQuery, V.pipelineExecutor.validatePipeline.useQuery, V.pipelineExecutor.listTemplates.useQuery, V.pipelineExecutor.saveTemplate.useMutation, V.pipelineExecutor.updateTemplate.useMutation, V.pipelineExecutor.deleteTemplate.useMutation, V.pipelineExecutor.getCapabilities.useQuery, V.pipelineExecutor.getAddonModels.useQuery, V.pipelineExecutor.downloadModel.useMutation, V.pipelineExecutor.deleteModel.useMutation, V.pipelineExecutor.runPipeline.useMutation, V.pipelineExecutor.runPipelineBatch.useMutation, V.pipelineExecutor.cacheFrameInPool.useMutation, V.pipelineExecutor.inferCached.useMutation, V.pipelineExecutor.uncacheFrame.useMutation, V.pipelineExecutor.getEffectiveTuning.useQuery, V.pipelineExecutor.listLoadedEngines.useQuery, V.pipelineExecutor.spinEngine.useMutation, V.pipelineExecutor.killEngine.useMutation, V.pipelineExecutor.listReferenceImages.useQuery, V.pipelineExecutor.getReferenceImage.useQuery, V.pipelineExecutor.getReferenceAudioFiles.useQuery, V.pipelineExecutor.getReferenceAudio.useQuery, V.pipelineExecutor.getAudioCapabilities.useQuery, V.pipelineExecutor.runAudioTest.useMutation, V.pipelineExecutor.getDetectionConfigSchema.useQuery, V.pipelineOrchestrator.assignPipeline.useMutation, V.pipelineOrchestrator.unassignPipeline.useMutation, V.pipelineOrchestrator.setPipelineDevicePin.useMutation, V.pipelineOrchestrator.getPipelineDevicePin.useQuery, V.pipelineOrchestrator.rebalance.useMutation, V.pipelineOrchestrator.getPipelineAssignments.useQuery, V.pipelineOrchestrator.getPipelineAssignment.useQuery, V.pipelineOrchestrator.getAgentLoad.useQuery, V.pipelineOrchestrator.getGlobalMetrics.useQuery, V.pipelineOrchestrator.getCameraMetrics.useQuery, V.pipelineOrchestrator.getCapabilityBindings.useQuery, V.pipelineOrchestrator.setCapabilityBinding.useMutation, V.pipelineOrchestrator.getIngestOwner.useQuery, V.pipelineOrchestrator.assignAudio.useMutation, V.pipelineOrchestrator.unassignAudio.useMutation, V.pipelineOrchestrator.getAudioAssignment.useQuery, V.pipelineOrchestrator.getAudioNodeLoad.useQuery, V.pipelineOrchestrator.getAudioAssignments.useQuery, V.pipelineOrchestrator.getAgentSettings.useQuery, V.pipelineOrchestrator.listAgentSettings.useQuery, V.pipelineOrchestrator.removeAgentSettings.useMutation, V.pipelineOrchestrator.setAgentMaxCameras.useMutation, V.pipelineOrchestrator.setAgentDetectWeight.useMutation, V.pipelineOrchestrator.setAgentCapabilities.useMutation, V.pipelineOrchestrator.setAgentReachableHost.useMutation, V.pipelineOrchestrator.setAgentInferenceDevices.useMutation, V.pipelineOrchestrator.getNodeInferenceDevices.useQuery, V.pipelineOrchestrator.resetNodePipelineDefaults.useMutation, V.pipelineOrchestrator.getCameraSettings.useQuery, V.pipelineOrchestrator.setCameraStepToggle.useMutation, V.pipelineOrchestrator.getCameraStepOverrides.useQuery, V.pipelineOrchestrator.setCameraStepOverride.useMutation, V.pipelineOrchestrator.setCameraPipelineForAgent.useMutation, V.pipelineOrchestrator.resolvePipeline.useQuery, V.pipelineOrchestrator.getCameraSwitches.useQuery, V.pipelineOrchestrator.setCameraSwitch.useMutation, V.pipelineOrchestrator.getCameraStatus.useQuery, V.pipelineOrchestrator.getCameraStatuses.useQuery, V.pipelineOrchestrator.listTemplates.useQuery, V.pipelineOrchestrator.saveTemplate.useMutation, V.pipelineOrchestrator.updateTemplate.useMutation, V.pipelineOrchestrator.deleteTemplate.useMutation, V.pipelineOrchestrator.getDeviceSettingsContribution.useQuery, V.pipelineOrchestrator.getDeviceLiveContribution.useQuery, V.pipelineOrchestrator.applyDeviceSettingsPatch.useMutation, V.pipelineRunner.attachCamera.useMutation, V.pipelineRunner.detachCamera.useMutation, V.pipelineRunner.reportMotion.useMutation, V.pipelineRunner.getLocalLoad.useQuery, V.pipelineRunner.getLocalMetrics.useQuery, V.pipelineRunner.getCameraMetrics.useQuery, V.pipelineRunner.getAllCameraMetrics.useQuery, V.pipelineRunner.getLocalCameras.useQuery, V.pipelineRunner.getNativeCrop.useQuery, V.pipelineRunner.runDetailSubtree.useMutation, V.pipelineRunner.runStatelessStep.useMutation, V.plateGallery.listPlates.useQuery, V.plateGallery.getPlateByTrack.useQuery, V.plateGallery.getPlateMedia.useQuery, V.plateGallery.searchPlates.useQuery, V.plateGallery.suggestPlateClusters.useQuery, V.plateGallery.correctPlateText.useMutation, V.plateGallery.deletePlate.useMutation, V.plateGallery.listVehicles.useQuery, V.plateGallery.createVehicle.useMutation, V.plateGallery.renameVehicle.useMutation, V.plateGallery.deleteVehicle.useMutation, V.plateGallery.listVehicleSamples.useQuery, V.plateGallery.removeVehicleSample.useMutation, V.plateGallery.assignPlate.useMutation, V.plateGallery.unassignPlate.useMutation, V.plateGallery.assignPlates.useMutation, V.plateGallery.unassignPlates.useMutation, V.powerMeter.getStatus.useQuery, V.presence.getStatus.useQuery, V.pressureSensor.getStatus.useQuery, V.privacyMask.getOptions.useQuery, V.privacyMask.setMask.useMutation, V.privacyMask.setAudioEnabled.useMutation, V.privacyMask.getStatus.useQuery, V.ptz.move.useMutation, V.ptz.continuousMove.useMutation, V.ptz.stop.useMutation, V.ptz.getPresets.useQuery, V.ptz.goToPreset.useMutation, V.ptz.savePreset.useMutation, V.ptz.deletePreset.useMutation, V.ptz.getOptions.useQuery, V.ptz.goHome.useMutation, V.ptz.getPosition.useQuery, V.ptz.setAutofocus.useMutation, V.ptz.getStatus.useQuery, V.ptzAutotrack.getStatus.useQuery, V.ptzAutotrack.setEnabled.useMutation, V.ptzAutotrack.getSettings.useQuery, V.ptzAutotrack.setSettings.useMutation, V.reboot.reboot.useMutation, V.recording.getAvailability.useQuery, V.recording.getDaysWithRecordings.useQuery, V.recording.getPlaybackManifest.useQuery, V.recording.getStorageUsage.useQuery, V.recording.getDeviceConfig.useQuery, V.recording.locateSegment.useQuery, V.recording.readSegmentBytes.useQuery, V.recording.readGopBytes.useQuery, V.recording.setDeviceConfig.useMutation, V.recording.rescanStorage.useMutation, V.recording.pruneFootage.useMutation, V.recording.deleteFootprint.useMutation, V.recording.listOpsLog.useQuery, V.recording.renderGif.useMutation, V.recording.renderClip.useMutation, V.recording.relocateFootage.useMutation, V.recording.getRelocateStatus.useQuery, V.recording.cancelRelocate.useMutation, V.recording.getStatus.useQuery, V.recording.getDeviceSettingsContribution.useQuery, V.recording.getDeviceLiveContribution.useQuery, V.recording.applyDeviceSettingsPatch.useMutation, V.recordingExport.createExport.useMutation, V.recordingExport.listExports.useQuery, V.recordingExport.getExport.useQuery, V.recordingExport.cancelExport.useMutation, V.recordingExport.deleteExport.useMutation, V.recordingExport.getDownloadUrl.useQuery, V.sceneMonitor.listScenes.useQuery, V.sceneMonitor.createScene.useMutation, V.sceneMonitor.updateScene.useMutation, V.sceneMonitor.deleteScene.useMutation, V.sceneMonitor.captureReference.useMutation, V.sceneMonitor.deleteReference.useMutation, V.sceneMonitor.recheckNow.useMutation, V.sceneMonitor.getStatus.useQuery, V.scriptRunner.run.useMutation, V.scriptRunner.stop.useMutation, V.scriptRunner.getStatus.useQuery, V.serverManagement.getServerPackageStatus.useQuery, V.serverManagement.checkServerUpdate.useMutation, V.serverManagement.applyServerUpdate.useMutation, V.serverManagement.rollbackServerUpdate.useMutation, V.serverManagement.restartServer.useMutation, V.settingsStore.get.useQuery, V.settingsStore.set.useMutation, V.settingsStore.query.useQuery, V.settingsStore.insert.useMutation, V.settingsStore.update.useMutation, V.settingsStore.delete.useMutation, V.settingsStore.deleteWhere.useMutation, V.settingsStore.updateWhere.useMutation, V.settingsStore.count.useQuery, V.settingsStore.histogram.useQuery, V.settingsStore.isEmpty.useQuery, V.settingsStore.declareCollection.useMutation, V.smoke.getStatus.useQuery, V.snapshot.getSnapshot.useQuery, V.snapshot.invalidateCache.useMutation, V.snapshot.getSnapshotOverview.useQuery, V.snapshot.getSnapshotLinks.useQuery, V.snapshot.getStatus.useQuery, V.snapshot.getDeviceSettingsContribution.useQuery, V.snapshot.getDeviceLiveContribution.useQuery, V.snapshot.applyDeviceSettingsPatch.useMutation, V.storage.resolve.useQuery, V.storage.write.useMutation, V.storage.read.useQuery, V.storage.exists.useQuery, V.storage.list.useQuery, V.storage.delete.useMutation, V.storage.getAvailableSpace.useQuery, V.storage.beginUpload.useMutation, V.storage.writeChunk.useMutation, V.storage.finalizeUpload.useMutation, V.storage.abortUpload.useMutation, V.storage.beginDownload.useMutation, V.storage.readChunk.useQuery, V.storage.endDownload.useMutation, V.storage.listLocations.useQuery, V.storage.getDefaultLocation.useQuery, V.storage.listLocationDeclarations.useQuery, V.storage.upsertLocation.useMutation, V.storage.deleteLocation.useMutation, V.storage.testLocation.useQuery, V.storage.listProviders.useQuery, V.storage.testConfig.useQuery, V.streamBroker.publishCameraStream.useMutation, V.streamBroker.retractCameraStream.useMutation, V.streamBroker.assignProfile.useMutation, V.streamBroker.unassignProfile.useMutation, V.streamBroker.renderPreBufferClip.useMutation, V.streamBroker.produceEventMedia.useMutation, V.streamBroker.fetchEventMedia.useMutation, V.streamBroker.listAllCameraStreams.useQuery, V.streamBroker.listAllProfileSlots.useQuery, V.streamBroker.getBrokerStats.useQuery, V.streamBroker.probeStream.useMutation, V.streamBroker.listClients.useQuery, V.streamBroker.killClient.useMutation, V.streamBroker.restartProfile.useMutation, V.streamBroker.getStreamUrl.useQuery, V.streamBroker.getStreamWithCodec.useMutation, V.streamBroker.releaseStreamWithCodec.useMutation, V.streamBroker.acquireEgressTranscode.useMutation, V.streamBroker.releaseEgressTranscode.useMutation, V.streamBroker.subscribeAudioChunks.useMutation, V.streamBroker.pullAudioChunks.useQuery, V.streamBroker.unsubscribeAudioChunks.useMutation, V.streamBroker.subscribeFrames.useMutation, V.streamBroker.pullFrameHandles.useQuery, V.streamBroker.unsubscribeFrames.useMutation, V.streamBroker.setPreBufferDuration.useMutation, V.streamBroker.getPreBufferInfo.useQuery, V.streamBroker.getRtspPort.useQuery, V.streamBroker.getAllRtspEntries.useQuery, V.streamBroker.getRtspEntry.useQuery, V.streamBroker.regenerateRtspToken.useMutation, V.streamBroker.setRtspEnabled.useMutation, V.streamBroker.isRtspEnabled.useQuery, V.streamBroker.getDeviceAudioMute.useQuery, V.streamBroker.setDeviceAudioMute.useMutation, V.streamBroker.getDeviceSettingsContribution.useQuery, V.streamBroker.getDeviceLiveContribution.useQuery, V.streamBroker.applyDeviceSettingsPatch.useMutation, V.streamCatalog.getCatalog.useQuery, V.streamParams.getOptions.useQuery, V.streamParams.setProfile.useMutation, V.streamParams.getConfigSchema.useQuery, V.streamParams.getStatus.useQuery, V.switch.setState.useMutation, V.switch.getStatus.useQuery, V.system.info.useQuery, V.system.health.useQuery, V.system.featureFlags.useQuery, V.system.networkAddresses.useQuery, V.system.getRetentionConfig.useQuery, V.system.setRetentionConfig.useMutation, V.system.forceRetentionCleanup.useMutation, V.tamper.getStatus.useQuery, V.temperatureSensor.getStatus.useQuery, V.terminalSession.listProfiles.useQuery, V.terminalSession.listSessions.useQuery, V.terminalSession.openSession.useMutation, V.terminalSession.resize.useMutation, V.terminalSession.pullOutput.useMutation, V.terminalSession.writeInput.useMutation, V.terminalSession.close.useMutation, V.toast.onToast.useSubscription, V.turnProvider.getTurnServers.useQuery, V.update.installUpdate.useMutation, V.update.getStatus.useQuery, V.userManagement.listUsers.useQuery, V.userManagement.createUser.useMutation, V.userManagement.updateUser.useMutation, V.userManagement.deleteUser.useMutation, V.userManagement.resetPassword.useMutation, V.userManagement.setUserScopes.useMutation, V.userManagement.validateCredentials.useMutation, V.userManagement.listApiKeys.useQuery, V.userManagement.createApiKey.useMutation, V.userManagement.revokeApiKey.useMutation, V.userManagement.validateApiKey.useMutation, V.userManagement.createScopedToken.useMutation, V.userManagement.revokeScopedToken.useMutation, V.userManagement.validateScopedToken.useQuery, V.userManagement.listScopedTokens.useQuery, V.userManagement.setupTotp.useMutation, V.userManagement.confirmTotp.useMutation, V.userManagement.disableTotp.useMutation, V.userManagement.getTotpStatus.useQuery, V.userManagement.verifyTotp.useMutation, V.userManagement.oauthIssueCode.useMutation, V.userManagement.oauthExchangeCode.useMutation, V.userManagement.oauthRefresh.useMutation, V.userManagement.oauthVerifyAccessToken.useQuery, V.userManagement.listOauthSessions.useQuery, V.userManagement.revokeOauthSession.useMutation, V.vacuumControl.start.useMutation, V.vacuumControl.pause.useMutation, V.vacuumControl.stop.useMutation, V.vacuumControl.returnToBase.useMutation, V.vacuumControl.locate.useMutation, V.vacuumControl.setFanSpeed.useMutation, V.vacuumControl.getStatus.useQuery, V.valve.open.useMutation, V.valve.close.useMutation, V.valve.stop.useMutation, V.valve.setPosition.useMutation, V.valve.getStatus.useQuery, V.vibration.getStatus.useQuery, V.videoclips.listClips.useQuery, V.videoclips.getClipPlayback.useQuery, V.waterHeater.setTargetTemp.useMutation, V.waterHeater.setOperationMode.useMutation, V.waterHeater.setAway.useMutation, V.waterHeater.getStatus.useQuery, V.weather.getStatus.useQuery, V.webrtcSession.listStreams.useQuery, V.webrtcSession.createSession.useMutation, V.webrtcSession.handleOffer.useMutation, V.webrtcSession.handleAnswer.useMutation, V.webrtcSession.addIceCandidate.useMutation, V.webrtcSession.getIceCandidates.useQuery, V.webrtcSession.closeSession.useMutation, V.webrtcSession.hasAdaptiveBitrate.useQuery, V.webrtcSession.getSessionState.useQuery, V.zoneAnalytics.getCurrentSnapshot.useQuery, V.zoneAnalytics.getZoneHistory.useQuery, V.zoneAnalytics.getCameraHistory.useQuery, V.zoneAnalytics.getUnzonedHistory.useQuery, V.zoneRules.listRules.useQuery, V.zoneRules.setRules.useMutation, V.zones.listZones.useQuery, V.zones.addZone.useMutation, V.zones.removeZone.useMutation, V.zones.updateZone.useMutation;
|
|
4514
4514
|
//#endregion
|
|
4515
4515
|
//#region ../ui-library/src/composites/device-controls/sensor-value-atom.tsx
|
|
4516
4516
|
var Xi = {
|
|
@@ -4704,7 +4704,7 @@ function aa(e) {
|
|
|
4704
4704
|
return e === "home" ? "Home" : e === "not_home" ? "Away" : e.charAt(0).toUpperCase() + e.slice(1);
|
|
4705
4705
|
}
|
|
4706
4706
|
function oa({ trpc: e, device: t }) {
|
|
4707
|
-
let n = t.role == null ? void 0 : $i[t.role], r = Zi(t.role), { data: i } =
|
|
4707
|
+
let n = t.role == null ? void 0 : $i[t.role], r = Zi(t.role), { data: i } = Li({}, { staleTime: 6e4 }), a = O(e, t.id), o = re(a !== null && n !== void 0 ? n.getSliceHandle(a.state) : void 0), s = re(a !== null && n?.kind === "numeric" ? a.state.enumSensor : void 0), c = re(a !== null && r ? a.state.binary : void 0), l = r && n?.kind === "numeric" && !Qi(o, n.field) && c !== void 0, u = l ? Xi : n, d = l ? c : o;
|
|
4708
4708
|
if (u === void 0 || d === void 0) return null;
|
|
4709
4709
|
if (u.kind === "numeric") {
|
|
4710
4710
|
if (!ea(d)) return null;
|
|
@@ -4776,7 +4776,7 @@ function sa(e) {
|
|
|
4776
4776
|
};
|
|
4777
4777
|
}
|
|
4778
4778
|
function ca({ trpc: e, deviceId: t }) {
|
|
4779
|
-
let { data: n } =
|
|
4779
|
+
let { data: n } = zi({ deviceId: t }, { staleTime: 6e4 });
|
|
4780
4780
|
return n === void 0 ? null : /* @__PURE__ */ f(oa, {
|
|
4781
4781
|
trpc: e,
|
|
4782
4782
|
device: sa(n)
|
|
@@ -4817,7 +4817,7 @@ function ha({ percent: e }) {
|
|
|
4817
4817
|
});
|
|
4818
4818
|
}
|
|
4819
4819
|
function ga({ trpc: e, device: t }) {
|
|
4820
|
-
let n = t.role == null ? void 0 : $i[t.role], r = Zi(t.role), { data: i } =
|
|
4820
|
+
let n = t.role == null ? void 0 : $i[t.role], r = Zi(t.role), { data: i } = Li({}, { staleTime: 6e4 }), a = O(e, t.id), o = re(a !== null && n !== void 0 ? n.getSliceHandle(a.state) : void 0), s = re(a !== null && r ? a.state.binary : void 0), c = r && n?.kind === "numeric" && !Qi(o, n.field) && s !== void 0, l = c ? Xi : n, u = c ? s : o;
|
|
4821
4821
|
if (l === void 0 || u === void 0) return /* @__PURE__ */ p("div", {
|
|
4822
4822
|
className: "flex flex-col items-center justify-center gap-2 rounded-lg border border-border bg-surface p-4 min-h-[96px]",
|
|
4823
4823
|
children: [/* @__PURE__ */ f("span", {
|
|
@@ -4923,7 +4923,7 @@ function ga({ trpc: e, device: t }) {
|
|
|
4923
4923
|
});
|
|
4924
4924
|
}
|
|
4925
4925
|
function _a({ trpc: e, deviceId: t }) {
|
|
4926
|
-
let { data: n } =
|
|
4926
|
+
let { data: n } = zi({ deviceId: t }, { staleTime: 6e4 });
|
|
4927
4927
|
return n === void 0 ? null : /* @__PURE__ */ f(ga, {
|
|
4928
4928
|
trpc: e,
|
|
4929
4929
|
device: n
|
|
@@ -4935,7 +4935,7 @@ function va(e) {
|
|
|
4935
4935
|
return e === void 0 || e.inProgress ? !1 : e.availableVersion !== null && e.currentVersion !== null && e.availableVersion !== e.currentVersion;
|
|
4936
4936
|
}
|
|
4937
4937
|
function ya(e, t) {
|
|
4938
|
-
return
|
|
4938
|
+
return H({
|
|
4939
4939
|
trpc: e,
|
|
4940
4940
|
deviceId: t,
|
|
4941
4941
|
cap: (e) => e.update,
|
|
@@ -5038,7 +5038,7 @@ function Sa(e) {
|
|
|
5038
5038
|
}
|
|
5039
5039
|
}
|
|
5040
5040
|
function Ca(e, t) {
|
|
5041
|
-
return
|
|
5041
|
+
return H({
|
|
5042
5042
|
trpc: e,
|
|
5043
5043
|
deviceId: t,
|
|
5044
5044
|
cap: (e) => e.vacuumControl,
|
|
@@ -5550,7 +5550,7 @@ function La(e) {
|
|
|
5550
5550
|
}
|
|
5551
5551
|
}
|
|
5552
5552
|
function Ra(e, t) {
|
|
5553
|
-
return
|
|
5553
|
+
return H({
|
|
5554
5554
|
trpc: e,
|
|
5555
5555
|
deviceId: t,
|
|
5556
5556
|
cap: (e) => e.lawnMowerControl,
|
|
@@ -5971,7 +5971,7 @@ function Xa(e) {
|
|
|
5971
5971
|
}
|
|
5972
5972
|
}
|
|
5973
5973
|
function Za(e, t) {
|
|
5974
|
-
return
|
|
5974
|
+
return H({
|
|
5975
5975
|
trpc: e,
|
|
5976
5976
|
deviceId: t,
|
|
5977
5977
|
cap: (e) => e.valve,
|
|
@@ -5999,9 +5999,9 @@ function $a({ label: e, busy: t, variant: n, onClick: r, children: i }) {
|
|
|
5999
5999
|
});
|
|
6000
6000
|
}
|
|
6001
6001
|
function eo({ trpc: e, deviceId: t, optimistic: n }) {
|
|
6002
|
-
let { cap: r, slice: i, available: a } = Za(e, t), { display: o, applyOptimistic: s } =
|
|
6002
|
+
let { cap: r, slice: i, available: a } = Za(e, t), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 });
|
|
6003
6003
|
if (r === void 0) return null;
|
|
6004
|
-
let c = !a, l =
|
|
6004
|
+
let c = !a, l = Ei(o?.state), u = (e, t) => {
|
|
6005
6005
|
c || !e || (t !== void 0 && s(t), e({}));
|
|
6006
6006
|
};
|
|
6007
6007
|
return /* @__PURE__ */ p("div", {
|
|
@@ -6224,9 +6224,9 @@ function io({ label: e, busy: t, variant: n, onClick: r, children: i }) {
|
|
|
6224
6224
|
});
|
|
6225
6225
|
}
|
|
6226
6226
|
function ao({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
6227
|
-
let { cap: i, slice: a, available: o } = Za(e, t), { display: s, applyOptimistic: c } =
|
|
6227
|
+
let { cap: i, slice: a, available: o } = Za(e, t), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
6228
6228
|
if (i === void 0) return null;
|
|
6229
|
-
let l = !o, u = (n ?? []).includes(h.ValvePositionable), d =
|
|
6229
|
+
let l = !o, u = (n ?? []).includes(h.ValvePositionable), d = Ei(s?.state), m = Xa(s?.state), g = s?.position ?? null, _ = g !== null, v = (e, t) => {
|
|
6230
6230
|
l || !e || (t !== void 0 && c(t), e({}));
|
|
6231
6231
|
}, y = (e) => {
|
|
6232
6232
|
l || (c({ position: e }), i.setPosition({ position: e }));
|
|
@@ -6387,7 +6387,7 @@ function oo(e, t) {
|
|
|
6387
6387
|
}
|
|
6388
6388
|
}
|
|
6389
6389
|
function so(e, t) {
|
|
6390
|
-
return
|
|
6390
|
+
return H({
|
|
6391
6391
|
trpc: e,
|
|
6392
6392
|
deviceId: t,
|
|
6393
6393
|
cap: (e) => e.humidifier,
|
|
@@ -6395,7 +6395,7 @@ function so(e, t) {
|
|
|
6395
6395
|
});
|
|
6396
6396
|
}
|
|
6397
6397
|
function co({ trpc: e, deviceId: t, optimistic: n }) {
|
|
6398
|
-
let { cap: r, slice: i, available: a } = so(e, t), { display: o, applyOptimistic: s } =
|
|
6398
|
+
let { cap: r, slice: i, available: a } = so(e, t), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 });
|
|
6399
6399
|
if (r === void 0) return null;
|
|
6400
6400
|
let c = !a, l = o?.on ?? !1, u = () => {
|
|
6401
6401
|
c || (s({ on: !l }), r.setOn({ on: !l }));
|
|
@@ -6515,7 +6515,7 @@ function lo({ fillPct: e, tint: t }) {
|
|
|
6515
6515
|
});
|
|
6516
6516
|
}
|
|
6517
6517
|
function uo({ trpc: e, deviceId: t, optimistic: n }) {
|
|
6518
|
-
let { cap: r, slice: i, available: a } = so(e, t), { display: o, applyOptimistic: s } =
|
|
6518
|
+
let { cap: r, slice: i, available: a } = so(e, t), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 });
|
|
6519
6519
|
if (r === void 0 || o === void 0) return null;
|
|
6520
6520
|
let c = !a, l = oo(o.on, o.action), u = o.minHumidity ?? 0, d = o.maxHumidity ?? 100, m = o.targetHumidity, h = o.currentHumidity, g = h ?? m ?? 0, _ = () => {
|
|
6521
6521
|
c || (s({ on: !o.on }), r.setOn({ on: !o.on }));
|
|
@@ -6644,7 +6644,7 @@ function po(e, t, n) {
|
|
|
6644
6644
|
return e === null || e === "off" ? "off" : t !== null && n !== null && t < n ? "heating" : "idle";
|
|
6645
6645
|
}
|
|
6646
6646
|
function mo(e, t) {
|
|
6647
|
-
return
|
|
6647
|
+
return H({
|
|
6648
6648
|
trpc: e,
|
|
6649
6649
|
deviceId: t,
|
|
6650
6650
|
cap: (e) => e.waterHeater,
|
|
@@ -6652,7 +6652,7 @@ function mo(e, t) {
|
|
|
6652
6652
|
});
|
|
6653
6653
|
}
|
|
6654
6654
|
function ho({ trpc: e, deviceId: t, optimistic: n }) {
|
|
6655
|
-
let { cap: r, slice: i } = mo(e, t), { display: a } =
|
|
6655
|
+
let { cap: r, slice: i } = mo(e, t), { display: a } = U(i, { enabled: n ?? !0 });
|
|
6656
6656
|
return r === void 0 || a === void 0 ? null : /* @__PURE__ */ p("div", {
|
|
6657
6657
|
className: "inline-flex items-center gap-1.5 text-xs text-foreground-subtle",
|
|
6658
6658
|
children: [/* @__PURE__ */ p("span", {
|
|
@@ -6762,7 +6762,7 @@ function go({ fillPct: e, tint: t }) {
|
|
|
6762
6762
|
});
|
|
6763
6763
|
}
|
|
6764
6764
|
function _o({ trpc: e, deviceId: t, optimistic: n }) {
|
|
6765
|
-
let { cap: r, slice: i, available: a } = mo(e, t), { display: o, applyOptimistic: s } =
|
|
6765
|
+
let { cap: r, slice: i, available: a } = mo(e, t), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 });
|
|
6766
6766
|
if (r === void 0 || o === void 0) return null;
|
|
6767
6767
|
let c = !a, l = po(o.operationMode, o.currentTemp, o.targetTemp), u = fo(l), d = o.currentTemp, m = o.targetTemp, h = o.minTemp, g = o.maxTemp, _ = d !== null && m !== null && m > 0 ? Math.min(100, d / m * 100) : d !== null && g !== null && g > 0 ? Math.min(100, d / g * 100) : 50, v = (e) => {
|
|
6768
6768
|
let t = e;
|
|
@@ -6808,7 +6808,7 @@ function _o({ trpc: e, deviceId: t, optimistic: n }) {
|
|
|
6808
6808
|
}),
|
|
6809
6809
|
m !== null && /* @__PURE__ */ f("div", {
|
|
6810
6810
|
className: "w-[180px]",
|
|
6811
|
-
children: /* @__PURE__ */ f(
|
|
6811
|
+
children: /* @__PURE__ */ f(mi, {
|
|
6812
6812
|
value: m,
|
|
6813
6813
|
unit: "°",
|
|
6814
6814
|
onDelta: y
|
|
@@ -6993,7 +6993,7 @@ function bo(e) {
|
|
|
6993
6993
|
}
|
|
6994
6994
|
}
|
|
6995
6995
|
function xo(e, t) {
|
|
6996
|
-
return
|
|
6996
|
+
return H({
|
|
6997
6997
|
trpc: e,
|
|
6998
6998
|
deviceId: t,
|
|
6999
6999
|
cap: (e) => e.weather,
|
|
@@ -7363,7 +7363,7 @@ function Oo({ trpc: e, deviceId: t }) {
|
|
|
7363
7363
|
//#region ../ui-library/src/composites/device-controls/image-control.tsx
|
|
7364
7364
|
d();
|
|
7365
7365
|
function ko(e, t) {
|
|
7366
|
-
return
|
|
7366
|
+
return H({
|
|
7367
7367
|
trpc: e,
|
|
7368
7368
|
deviceId: t,
|
|
7369
7369
|
cap: (e) => e.image,
|
|
@@ -7377,10 +7377,10 @@ function No({ url: e, alt: n, open: i, onOpenChange: a }) {
|
|
|
7377
7377
|
i && s(1);
|
|
7378
7378
|
}, [i, e]);
|
|
7379
7379
|
let c = t(() => s((e) => Math.min(jo, e + Mo)), []), l = t(() => s((e) => Math.max(Ao, e - Mo)), []), d = t(() => s(1), []);
|
|
7380
|
-
return /* @__PURE__ */ f(
|
|
7380
|
+
return /* @__PURE__ */ f(ri, {
|
|
7381
7381
|
open: i,
|
|
7382
7382
|
onOpenChange: a,
|
|
7383
|
-
children: /* @__PURE__ */ p(
|
|
7383
|
+
children: /* @__PURE__ */ p(ai, {
|
|
7384
7384
|
width: "lg",
|
|
7385
7385
|
className: "max-w-5xl p-6",
|
|
7386
7386
|
children: [/* @__PURE__ */ p("div", {
|
|
@@ -7523,12 +7523,12 @@ function Vo(e) {
|
|
|
7523
7523
|
}
|
|
7524
7524
|
var Ho = "\n@keyframes pf-eat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(2px)} }\n@keyframes pf-pulse { 0%,100%{opacity:.55} 50%{opacity:1} }\n@media (prefers-reduced-motion: reduce) {\n .pf-eat, .pf-pulse { animation: none !important; }\n}\n";
|
|
7525
7525
|
function Uo({ trpc: e, deviceId: t, layout: n, optimistic: i }) {
|
|
7526
|
-
let { cap: a, slice: o, available: s } =
|
|
7526
|
+
let { cap: a, slice: o, available: s } = H({
|
|
7527
7527
|
trpc: e,
|
|
7528
7528
|
deviceId: t,
|
|
7529
7529
|
cap: (e) => e.petFeeder,
|
|
7530
7530
|
slice: (e) => e.state.petFeeder
|
|
7531
|
-
}), { display: c, applyOptimistic: l } =
|
|
7531
|
+
}), { display: c, applyOptimistic: l } = U(o, { enabled: i ?? !0 }), [u, d] = r(Lo), [m, h] = r(Lo), [g, _] = r(Lo);
|
|
7532
7532
|
if (a === void 0 || c === void 0) return null;
|
|
7533
7533
|
let v = !s, y = c.error && c.error !== "no_error" ? c.error : null, b = c.status === "offline", x = c.status === "on_batteries";
|
|
7534
7534
|
if (n === "compact") return /* @__PURE__ */ p("div", {
|
|
@@ -7967,12 +7967,12 @@ function Qo({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
7967
7967
|
//#region ../ui-library/src/composites/device-controls/switch-panel.tsx
|
|
7968
7968
|
d();
|
|
7969
7969
|
function $o({ trpc: e, deviceId: t, optimistic: n }) {
|
|
7970
|
-
let { cap: i, slice: a, available: o } =
|
|
7970
|
+
let { cap: i, slice: a, available: o } = H({
|
|
7971
7971
|
trpc: e,
|
|
7972
7972
|
deviceId: t,
|
|
7973
7973
|
cap: (e) => e.switch,
|
|
7974
7974
|
slice: (e) => e.state.switch
|
|
7975
|
-
}), { display: s, applyOptimistic: c } =
|
|
7975
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: n ?? !0 }), [l, u] = r(!1);
|
|
7976
7976
|
if (s === void 0) return null;
|
|
7977
7977
|
let d = s.on === !0, p = l || !o, m = { transform: d ? "translateX(14px)" : "translateX(2px)" }, h = async () => {
|
|
7978
7978
|
if (p || !i) return;
|
|
@@ -8006,12 +8006,12 @@ function es(e) {
|
|
|
8006
8006
|
return e instanceof Error ? e.message : String(e);
|
|
8007
8007
|
}
|
|
8008
8008
|
function ts({ trpc: e, deviceId: t, layout: n, optimistic: i, features: a }) {
|
|
8009
|
-
let { cap: o, slice: s, available: c } =
|
|
8009
|
+
let { cap: o, slice: s, available: c } = H({
|
|
8010
8010
|
trpc: e,
|
|
8011
8011
|
deviceId: t,
|
|
8012
8012
|
cap: (e) => e.lockControl,
|
|
8013
8013
|
slice: (e) => e.state.lockControl
|
|
8014
|
-
}), { display: l, applyOptimistic: u } =
|
|
8014
|
+
}), { display: l, applyOptimistic: u } = U(s, { enabled: i ?? !0 }), [d, m] = r(null), [g, _] = r(!1), [v, y] = r(null);
|
|
8015
8015
|
if (l === void 0) return null;
|
|
8016
8016
|
let b = l.state === "locked" || l.state === "locking", x = !c || l.state === "jammed", ee = a?.includes(h.LockOpen) === !0, S = n === "compact", C = () => {
|
|
8017
8017
|
u({ state: "locking" }), o?.lock({});
|
|
@@ -8078,31 +8078,31 @@ function ts({ trpc: e, deviceId: t, layout: n, optimistic: i, features: a }) {
|
|
|
8078
8078
|
className: R("inline-flex items-center justify-center rounded transition-colors", n === "full" ? "h-7 gap-1.5 px-2 text-xs" : "h-5 w-5", "text-foreground-muted", x && "opacity-40 cursor-not-allowed", "hover:bg-surface-hover"),
|
|
8079
8079
|
children: [/* @__PURE__ */ f(hn, { className: "h-3.5 w-3.5" }), n === "full" && /* @__PURE__ */ f("span", { children: "Open" })]
|
|
8080
8080
|
}),
|
|
8081
|
-
S && /* @__PURE__ */ f(
|
|
8081
|
+
S && /* @__PURE__ */ f(ri, {
|
|
8082
8082
|
open: d !== null,
|
|
8083
8083
|
onOpenChange: (e) => {
|
|
8084
8084
|
e || ne();
|
|
8085
8085
|
},
|
|
8086
|
-
children: /* @__PURE__ */ p(
|
|
8086
|
+
children: /* @__PURE__ */ p(ai, {
|
|
8087
8087
|
width: "sm",
|
|
8088
8088
|
onClick: (e) => e.stopPropagation(),
|
|
8089
8089
|
children: [
|
|
8090
|
-
/* @__PURE__ */ p(
|
|
8090
|
+
/* @__PURE__ */ p(oi, { children: [/* @__PURE__ */ p(ci, {
|
|
8091
8091
|
className: "flex items-center gap-2",
|
|
8092
8092
|
children: [ae, O]
|
|
8093
|
-
}), /* @__PURE__ */ f(
|
|
8093
|
+
}), /* @__PURE__ */ f(li, { children: k })] }),
|
|
8094
8094
|
v !== null && /* @__PURE__ */ f("div", {
|
|
8095
8095
|
className: "mt-2 px-3 py-2 rounded border border-danger/40 bg-danger/10 text-xs text-danger",
|
|
8096
8096
|
children: v
|
|
8097
8097
|
}),
|
|
8098
|
-
/* @__PURE__ */ p(
|
|
8098
|
+
/* @__PURE__ */ p(si, { children: [/* @__PURE__ */ f(z, {
|
|
8099
8099
|
type: "button",
|
|
8100
8100
|
variant: "ghost",
|
|
8101
8101
|
size: "sm",
|
|
8102
8102
|
disabled: g,
|
|
8103
8103
|
onClick: () => ne(),
|
|
8104
8104
|
children: "Cancel"
|
|
8105
|
-
}), /* @__PURE__ */ p(
|
|
8105
|
+
}), /* @__PURE__ */ p(z, {
|
|
8106
8106
|
type: "button",
|
|
8107
8107
|
variant: "danger",
|
|
8108
8108
|
size: "sm",
|
|
@@ -8122,12 +8122,12 @@ function ts({ trpc: e, deviceId: t, layout: n, optimistic: i, features: a }) {
|
|
|
8122
8122
|
//#endregion
|
|
8123
8123
|
//#region ../ui-library/src/composites/device-controls/brightness-panel.tsx
|
|
8124
8124
|
function ns({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
|
|
8125
|
-
let { cap: i, slice: a, available: o } =
|
|
8125
|
+
let { cap: i, slice: a, available: o } = H({
|
|
8126
8126
|
trpc: e,
|
|
8127
8127
|
deviceId: t,
|
|
8128
8128
|
cap: (e) => e.brightness,
|
|
8129
8129
|
slice: (e) => e.state.brightness
|
|
8130
|
-
}), { display: s, applyOptimistic: c } =
|
|
8130
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
8131
8131
|
if (s === void 0) return null;
|
|
8132
8132
|
let l = !o;
|
|
8133
8133
|
return /* @__PURE__ */ p("label", {
|
|
@@ -8153,12 +8153,12 @@ function ns({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
|
|
|
8153
8153
|
//#endregion
|
|
8154
8154
|
//#region ../ui-library/src/composites/device-controls/fan-panel.tsx
|
|
8155
8155
|
function rs({ trpc: e, deviceId: t, features: n, layout: r, optimistic: i }) {
|
|
8156
|
-
let { cap: a, slice: o, available: s } =
|
|
8156
|
+
let { cap: a, slice: o, available: s } = H({
|
|
8157
8157
|
trpc: e,
|
|
8158
8158
|
deviceId: t,
|
|
8159
8159
|
cap: (e) => e.fanControl,
|
|
8160
8160
|
slice: (e) => e.state.fanControl
|
|
8161
|
-
}), { display: c, applyOptimistic: l } =
|
|
8161
|
+
}), { display: c, applyOptimistic: l } = U(o, { enabled: i ?? !0 });
|
|
8162
8162
|
if (c === void 0) return null;
|
|
8163
8163
|
let u = !s, d = n ?? [], m = d.includes("fan-speed"), h = d.includes("fan-preset"), g = o?.percentageStep != null && o.percentageStep > 0 ? o.percentageStep : 1;
|
|
8164
8164
|
return /* @__PURE__ */ p("div", {
|
|
@@ -8232,12 +8232,12 @@ var is = {
|
|
|
8232
8232
|
off: "bg-zinc-300 text-zinc-700"
|
|
8233
8233
|
};
|
|
8234
8234
|
function ss({ trpc: e, deviceId: t, features: n, layout: r, optimistic: i }) {
|
|
8235
|
-
let { cap: a, slice: o, available: s } =
|
|
8235
|
+
let { cap: a, slice: o, available: s } = H({
|
|
8236
8236
|
trpc: e,
|
|
8237
8237
|
deviceId: t,
|
|
8238
8238
|
cap: (e) => e.climateControl,
|
|
8239
8239
|
slice: (e) => e.state.climateControl
|
|
8240
|
-
}), { display: c, applyOptimistic: l } =
|
|
8240
|
+
}), { display: c, applyOptimistic: l } = U(o, { enabled: i ?? !0 });
|
|
8241
8241
|
if (a === void 0 || c === void 0) return null;
|
|
8242
8242
|
let u = !s;
|
|
8243
8243
|
if (r === "compact") return /* @__PURE__ */ p("div", {
|
|
@@ -8529,12 +8529,12 @@ function hs(e) {
|
|
|
8529
8529
|
}
|
|
8530
8530
|
var gs = "\n@keyframes acv-fall { 0%{transform:translateY(-1.75rem);opacity:0} 18%{opacity:.7} 82%{opacity:.7} 100%{transform:translateY(7.5rem);opacity:0} }\n@keyframes acv-rise { 0%{transform:translateY(7.5rem);opacity:0} 18%{opacity:.7} 82%{opacity:.7} 100%{transform:translateY(-1.75rem);opacity:0} }\n@keyframes acv-sway { 0%,100%{transform:translateX(-9%)} 50%{transform:translateX(9%)} }\n@keyframes acv-swing-h { 0%,100%{transform:translateX(-22%)} 50%{transform:translateX(22%)} }\n@keyframes acv-swing-v { 0%,100%{transform:translateY(-22%)} 50%{transform:translateY(22%)} }\n@keyframes acv-spin { to { transform:rotate(360deg) } }\n@keyframes acv-glow { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:.6;transform:scale(1.06)} }\n@media (prefers-reduced-motion: reduce) {\n .acv-streak, .acv-fan, .acv-sway-wrap, .acv-glow, .acv-swing { animation: none !important; }\n}\n";
|
|
8531
8531
|
function _s({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
|
|
8532
|
-
let { cap: i, slice: a, available: o } =
|
|
8532
|
+
let { cap: i, slice: a, available: o } = H({
|
|
8533
8533
|
trpc: e,
|
|
8534
8534
|
deviceId: t,
|
|
8535
8535
|
cap: (e) => e.climateControl,
|
|
8536
8536
|
slice: (e) => e.state.climateControl
|
|
8537
|
-
}), { display: s, applyOptimistic: c } =
|
|
8537
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
8538
8538
|
if (i === void 0 || s === void 0) return null;
|
|
8539
8539
|
let l = !o;
|
|
8540
8540
|
if (n === "compact") return /* @__PURE__ */ p("div", {
|
|
@@ -8993,12 +8993,12 @@ function js(e) {
|
|
|
8993
8993
|
return e === "playing" || e === "buffering" ? "pause" : "play";
|
|
8994
8994
|
}
|
|
8995
8995
|
function Ms({ trpc: e, deviceId: t, features: n, layout: r, optimistic: i }) {
|
|
8996
|
-
let { cap: a, slice: o, available: s } =
|
|
8996
|
+
let { cap: a, slice: o, available: s } = H({
|
|
8997
8997
|
trpc: e,
|
|
8998
8998
|
deviceId: t,
|
|
8999
8999
|
cap: (e) => e.mediaPlayer,
|
|
9000
9000
|
slice: (e) => e.state.mediaPlayer
|
|
9001
|
-
}), { display: c, applyOptimistic: l } =
|
|
9001
|
+
}), { display: c, applyOptimistic: l } = U(o, { enabled: i ?? !0 });
|
|
9002
9002
|
if (c === void 0) return null;
|
|
9003
9003
|
let u = !s, d = js(c.state);
|
|
9004
9004
|
return /* @__PURE__ */ p("div", {
|
|
@@ -9291,12 +9291,12 @@ function Rs({ slice: e, busy: t, setValueFn: n, layout: r }) {
|
|
|
9291
9291
|
}
|
|
9292
9292
|
}
|
|
9293
9293
|
function zs({ trpc: e, deviceId: t, features: n, layout: r, optimistic: i }) {
|
|
9294
|
-
let { cap: a, slice: o, available: s } =
|
|
9294
|
+
let { cap: a, slice: o, available: s } = H({
|
|
9295
9295
|
trpc: e,
|
|
9296
9296
|
deviceId: t,
|
|
9297
9297
|
cap: (e) => e.control,
|
|
9298
9298
|
slice: (e) => e.state.control
|
|
9299
|
-
}), { display: c, applyOptimistic: l } =
|
|
9299
|
+
}), { display: c, applyOptimistic: l } = U(o, { enabled: i ?? !0 });
|
|
9300
9300
|
if (c === void 0) return null;
|
|
9301
9301
|
let u = !s;
|
|
9302
9302
|
return /* @__PURE__ */ f("div", {
|
|
@@ -9375,12 +9375,12 @@ var Xs = {
|
|
|
9375
9375
|
off: "#d4d4d8"
|
|
9376
9376
|
};
|
|
9377
9377
|
function Zs({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
9378
|
-
let { cap: i, slice: a, available: o } =
|
|
9378
|
+
let { cap: i, slice: a, available: o } = H({
|
|
9379
9379
|
trpc: e,
|
|
9380
9380
|
deviceId: t,
|
|
9381
9381
|
cap: (e) => e.climateControl,
|
|
9382
9382
|
slice: (e) => e.state.climateControl
|
|
9383
|
-
}), { display: s, applyOptimistic: c } =
|
|
9383
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
9384
9384
|
if (i === void 0 || s === void 0) return null;
|
|
9385
9385
|
let l = !o, u = Xs[s.mode], d = s.mode === "heat_cool" || s.targetLow !== null && s.targetHigh !== null, h = Bs, g = Vs, _ = !d && s.target !== null ? Hs(s.target, h, g) : 0, v = d && s.targetLow !== null ? Hs(s.targetLow, h, g) : 0, y = d && s.targetHigh !== null ? Hs(s.targetHigh, h, g) : 0;
|
|
9386
9386
|
return /* @__PURE__ */ p("div", {
|
|
@@ -9409,7 +9409,7 @@ function Zs({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9409
9409
|
}),
|
|
9410
9410
|
d ? /* @__PURE__ */ p(m, { children: [/* @__PURE__ */ f("div", {
|
|
9411
9411
|
"data-testid": "arc-knob",
|
|
9412
|
-
children: /* @__PURE__ */ f(
|
|
9412
|
+
children: /* @__PURE__ */ f(bi, {
|
|
9413
9413
|
fraction: v,
|
|
9414
9414
|
color: u,
|
|
9415
9415
|
knobTopPx: Js,
|
|
@@ -9424,7 +9424,7 @@ function Zs({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9424
9424
|
})
|
|
9425
9425
|
}), /* @__PURE__ */ f("div", {
|
|
9426
9426
|
"data-testid": "arc-knob",
|
|
9427
|
-
children: /* @__PURE__ */ f(
|
|
9427
|
+
children: /* @__PURE__ */ f(bi, {
|
|
9428
9428
|
fraction: y,
|
|
9429
9429
|
color: u,
|
|
9430
9430
|
knobTopPx: Js,
|
|
@@ -9439,7 +9439,7 @@ function Zs({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9439
9439
|
})
|
|
9440
9440
|
})] }) : /* @__PURE__ */ f("div", {
|
|
9441
9441
|
"data-testid": "arc-knob",
|
|
9442
|
-
children: /* @__PURE__ */ f(
|
|
9442
|
+
children: /* @__PURE__ */ f(bi, {
|
|
9443
9443
|
fraction: _,
|
|
9444
9444
|
color: u,
|
|
9445
9445
|
knobTopPx: Js,
|
|
@@ -9485,7 +9485,7 @@ function Zs({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9485
9485
|
]
|
|
9486
9486
|
}), !d && s.target !== null && /* @__PURE__ */ f("div", {
|
|
9487
9487
|
className: "w-[200px]",
|
|
9488
|
-
children: /* @__PURE__ */ f(
|
|
9488
|
+
children: /* @__PURE__ */ f(mi, {
|
|
9489
9489
|
value: `${s.target}°`,
|
|
9490
9490
|
onDelta: (e) => {
|
|
9491
9491
|
if (l || s.target === null) return;
|
|
@@ -9579,12 +9579,12 @@ function rc({ busy: e, onOpen: t }) {
|
|
|
9579
9579
|
});
|
|
9580
9580
|
}
|
|
9581
9581
|
function ic({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
9582
|
-
let { cap: i, slice: a, available: o } =
|
|
9582
|
+
let { cap: i, slice: a, available: o } = H({
|
|
9583
9583
|
trpc: e,
|
|
9584
9584
|
deviceId: t,
|
|
9585
9585
|
cap: (e) => e.lockControl,
|
|
9586
9586
|
slice: (e) => e.state.lockControl
|
|
9587
|
-
}), { display: s, applyOptimistic: c } =
|
|
9587
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
9588
9588
|
if (i === void 0 || s === void 0) return null;
|
|
9589
9589
|
let l = Qs(s.state), u = $s(s.state) || !o, d = n?.includes(h.LockOpen) === !0, m = () => {
|
|
9590
9590
|
u || (l ? (c({ state: "unlocking" }), i.unlock({})) : (c({ state: "locking" }), i.lock({})));
|
|
@@ -9600,7 +9600,7 @@ function ic({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9600
9600
|
}),
|
|
9601
9601
|
/* @__PURE__ */ f("div", {
|
|
9602
9602
|
className: R(u && "pointer-events-none opacity-40"),
|
|
9603
|
-
children: /* @__PURE__ */ f(
|
|
9603
|
+
children: /* @__PURE__ */ f(hi, {
|
|
9604
9604
|
on: l,
|
|
9605
9605
|
targetLabel: _,
|
|
9606
9606
|
onConfirm: m
|
|
@@ -9657,7 +9657,7 @@ function uc({ fraction: e, color: t, children: n, onDragFraction: r }) {
|
|
|
9657
9657
|
}),
|
|
9658
9658
|
/* @__PURE__ */ f("div", {
|
|
9659
9659
|
"data-testid": "arc-knob",
|
|
9660
|
-
children: /* @__PURE__ */ f(
|
|
9660
|
+
children: /* @__PURE__ */ f(bi, {
|
|
9661
9661
|
fraction: i,
|
|
9662
9662
|
color: t,
|
|
9663
9663
|
knobTopPx: sc - oc - 10,
|
|
@@ -9701,22 +9701,22 @@ function gc(e) {
|
|
|
9701
9701
|
}
|
|
9702
9702
|
var _c = "#f4b740", vc = "#d4d4d8";
|
|
9703
9703
|
function yc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
9704
|
-
let i =
|
|
9704
|
+
let i = H({
|
|
9705
9705
|
trpc: e,
|
|
9706
9706
|
deviceId: t,
|
|
9707
9707
|
cap: (e) => e.switch,
|
|
9708
9708
|
slice: (e) => e.state.switch
|
|
9709
|
-
}), a =
|
|
9709
|
+
}), a = H({
|
|
9710
9710
|
trpc: e,
|
|
9711
9711
|
deviceId: t,
|
|
9712
9712
|
cap: (e) => e.brightness,
|
|
9713
9713
|
slice: (e) => e.state.brightness
|
|
9714
|
-
}), o =
|
|
9714
|
+
}), o = H({
|
|
9715
9715
|
trpc: e,
|
|
9716
9716
|
deviceId: t,
|
|
9717
9717
|
cap: (e) => e.color,
|
|
9718
9718
|
slice: (e) => e.state.color
|
|
9719
|
-
}), s =
|
|
9719
|
+
}), s = U(i.slice, { enabled: r ?? !0 }), c = U(a.slice, { enabled: r ?? !0 }), l = U(o.slice, { enabled: r ?? !0 });
|
|
9720
9720
|
if (i.cap === void 0 || s.display === void 0) return null;
|
|
9721
9721
|
let u = s.display.on === !0, d = !i.available, m = c.display?.percentage ?? 0, g = !a.available, _ = u ? m / 100 : 0, v = u ? _c : vc, y = (n?.includes(h.LightColorMired) ?? !1) && o.cap !== void 0, b = l.display?.mireds, x = !o.available;
|
|
9722
9722
|
return /* @__PURE__ */ p("div", {
|
|
@@ -9816,7 +9816,7 @@ function yc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9816
9816
|
}),
|
|
9817
9817
|
/* @__PURE__ */ f("div", {
|
|
9818
9818
|
className: "pointer-events-none mt-1",
|
|
9819
|
-
children: /* @__PURE__ */ f(
|
|
9819
|
+
children: /* @__PURE__ */ f(xi, {
|
|
9820
9820
|
fraction: b === void 0 ? .5 : gc(b),
|
|
9821
9821
|
color: mc
|
|
9822
9822
|
})
|
|
@@ -9831,17 +9831,17 @@ function yc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9831
9831
|
//#region ../ui-library/src/composites/device-controls/fan-hero-card.tsx
|
|
9832
9832
|
var bc = "#3aa6a0", xc = "#d4d4d8";
|
|
9833
9833
|
function Sc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
9834
|
-
let i =
|
|
9834
|
+
let i = H({
|
|
9835
9835
|
trpc: e,
|
|
9836
9836
|
deviceId: t,
|
|
9837
9837
|
cap: (e) => e.switch,
|
|
9838
9838
|
slice: (e) => e.state.switch
|
|
9839
|
-
}), a =
|
|
9839
|
+
}), a = H({
|
|
9840
9840
|
trpc: e,
|
|
9841
9841
|
deviceId: t,
|
|
9842
9842
|
cap: (e) => e.fanControl,
|
|
9843
9843
|
slice: (e) => e.state.fanControl
|
|
9844
|
-
}), o =
|
|
9844
|
+
}), o = U(i.slice, { enabled: r ?? !0 }), s = U(a.slice, { enabled: r ?? !0 });
|
|
9845
9845
|
if (i.cap === void 0 || o.display === void 0) return null;
|
|
9846
9846
|
let c = o.display.on === !0, l = !i.available, u = s.display?.percentage ?? 0, d = !a.available, m = c ? u / 100 : 0, g = c ? bc : xc, _ = n?.includes(h.FanSpeed) ?? !1, v = (n?.includes(h.FanOscillating) ?? !1) && a.cap !== void 0, y = s.display?.availablePresets ?? [], b = (n?.includes(h.FanPreset) ?? !1) && a.cap !== void 0 && y.length > 0, x = s.display?.preset ?? "", ee = s.display?.oscillating === !0, S = () => {
|
|
9847
9847
|
if (l) return;
|
|
@@ -9943,12 +9943,12 @@ function Sc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
9943
9943
|
//#endregion
|
|
9944
9944
|
//#region ../ui-library/src/composites/device-controls/switch-hero-card.tsx
|
|
9945
9945
|
function Cc({ trpc: e, deviceId: t, optimistic: n }) {
|
|
9946
|
-
let { cap: r, slice: i, available: a } =
|
|
9946
|
+
let { cap: r, slice: i, available: a } = H({
|
|
9947
9947
|
trpc: e,
|
|
9948
9948
|
deviceId: t,
|
|
9949
9949
|
cap: (e) => e.switch,
|
|
9950
9950
|
slice: (e) => e.state.switch
|
|
9951
|
-
}), { display: o, applyOptimistic: s } =
|
|
9951
|
+
}), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 });
|
|
9952
9952
|
if (r === void 0 || o === void 0) return null;
|
|
9953
9953
|
let c = o.on === !0, l = !a;
|
|
9954
9954
|
return /* @__PURE__ */ p("div", {
|
|
@@ -10025,12 +10025,12 @@ function Oc({ label: e, busy: t, onPress: n, children: r, primary: i }) {
|
|
|
10025
10025
|
});
|
|
10026
10026
|
}
|
|
10027
10027
|
function kc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
10028
|
-
let { cap: i, slice: a, available: o } =
|
|
10028
|
+
let { cap: i, slice: a, available: o } = H({
|
|
10029
10029
|
trpc: e,
|
|
10030
10030
|
deviceId: t,
|
|
10031
10031
|
cap: (e) => e.mediaPlayer,
|
|
10032
10032
|
slice: (e) => e.state.mediaPlayer
|
|
10033
|
-
}), { display: s, applyOptimistic: c } =
|
|
10033
|
+
}), { display: s, applyOptimistic: c } = U(a, { enabled: r ?? !0 });
|
|
10034
10034
|
if (i === void 0 || s === void 0) return null;
|
|
10035
10035
|
let l = !o, u = wc(s.state), d = (n?.includes(h.MediaPlayerSeek) ?? !1) && s.durationMs !== null && s.durationMs > 0, m = n?.includes(h.MediaPlayerNext) ?? !1, g = n?.includes(h.MediaPlayerPrevious) ?? !1, _ = (n?.includes(h.MediaPlayerVolume) ?? !1) && s.volumeLevel !== null, v = () => {
|
|
10036
10036
|
l || (u === "play" ? (c({ state: "playing" }), i.play({})) : (c({ state: "paused" }), i.pause({})));
|
|
@@ -10069,7 +10069,7 @@ function kc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10069
10069
|
}),
|
|
10070
10070
|
/* @__PURE__ */ f("div", {
|
|
10071
10071
|
className: "pointer-events-none",
|
|
10072
|
-
children: /* @__PURE__ */ f(
|
|
10072
|
+
children: /* @__PURE__ */ f(xi, { fraction: b })
|
|
10073
10073
|
})
|
|
10074
10074
|
]
|
|
10075
10075
|
}), /* @__PURE__ */ p("div", {
|
|
@@ -10157,7 +10157,7 @@ function kc({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10157
10157
|
}),
|
|
10158
10158
|
/* @__PURE__ */ f("div", {
|
|
10159
10159
|
className: "pointer-events-none",
|
|
10160
|
-
children: /* @__PURE__ */ f(
|
|
10160
|
+
children: /* @__PURE__ */ f(xi, { fraction: x / 100 })
|
|
10161
10161
|
})
|
|
10162
10162
|
]
|
|
10163
10163
|
}),
|
|
@@ -10273,12 +10273,12 @@ function Ic({ state: e, availableModes: t, busy: n, onDisarm: r, onArm: i }) {
|
|
|
10273
10273
|
});
|
|
10274
10274
|
}
|
|
10275
10275
|
function Lc(e, t, n) {
|
|
10276
|
-
let { cap: r, slice: i, available: a } =
|
|
10276
|
+
let { cap: r, slice: i, available: a } = H({
|
|
10277
10277
|
trpc: e,
|
|
10278
10278
|
deviceId: t,
|
|
10279
10279
|
cap: (e) => e.alarmPanel,
|
|
10280
10280
|
slice: (e) => e.state.alarmPanel
|
|
10281
|
-
}), { display: o, applyOptimistic: s } =
|
|
10281
|
+
}), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 }), c = !a;
|
|
10282
10282
|
return {
|
|
10283
10283
|
display: o,
|
|
10284
10284
|
capPresent: r !== void 0,
|
|
@@ -10380,12 +10380,12 @@ function Hc({ error: e }) {
|
|
|
10380
10380
|
});
|
|
10381
10381
|
}
|
|
10382
10382
|
function Uc(e, t, n) {
|
|
10383
|
-
let { cap: r, slice: i, available: a } =
|
|
10383
|
+
let { cap: r, slice: i, available: a } = H({
|
|
10384
10384
|
trpc: e,
|
|
10385
10385
|
deviceId: t,
|
|
10386
10386
|
cap: (e) => e.scriptRunner,
|
|
10387
10387
|
slice: (e) => e.state.scriptRunner
|
|
10388
|
-
}), { display: o, applyOptimistic: s } =
|
|
10388
|
+
}), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 }), c = !a, l = o?.isRunning === !0;
|
|
10389
10389
|
return {
|
|
10390
10390
|
display: o,
|
|
10391
10391
|
capPresent: r !== void 0,
|
|
@@ -10473,12 +10473,12 @@ function Kc({ trpc: e, deviceId: t, optimistic: n }) {
|
|
|
10473
10473
|
});
|
|
10474
10474
|
}
|
|
10475
10475
|
function qc(e, t, n) {
|
|
10476
|
-
let { cap: r, slice: i, available: a } =
|
|
10476
|
+
let { cap: r, slice: i, available: a } = H({
|
|
10477
10477
|
trpc: e,
|
|
10478
10478
|
deviceId: t,
|
|
10479
10479
|
cap: (e) => e.automationControl,
|
|
10480
10480
|
slice: (e) => e.state.automationControl
|
|
10481
|
-
}), { display: o, applyOptimistic: s } =
|
|
10481
|
+
}), { display: o, applyOptimistic: s } = U(i, { enabled: n ?? !0 }), c = !a;
|
|
10482
10482
|
return {
|
|
10483
10483
|
display: o,
|
|
10484
10484
|
capPresent: r !== void 0,
|
|
@@ -10587,7 +10587,7 @@ function Qc({ children: e }) {
|
|
|
10587
10587
|
});
|
|
10588
10588
|
}
|
|
10589
10589
|
function $c(e, t) {
|
|
10590
|
-
let { cap: n } =
|
|
10590
|
+
let { cap: n } = H({
|
|
10591
10591
|
trpc: e,
|
|
10592
10592
|
deviceId: t,
|
|
10593
10593
|
cap: (e) => e.switch,
|
|
@@ -10605,7 +10605,7 @@ function el({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10605
10605
|
}) : null;
|
|
10606
10606
|
}
|
|
10607
10607
|
function tl(e, t) {
|
|
10608
|
-
let { cap: n } =
|
|
10608
|
+
let { cap: n } = H({
|
|
10609
10609
|
trpc: e,
|
|
10610
10610
|
deviceId: t,
|
|
10611
10611
|
cap: (e) => e.lockControl,
|
|
@@ -10641,7 +10641,7 @@ function rl({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10641
10641
|
}) : null;
|
|
10642
10642
|
}
|
|
10643
10643
|
function il(e, t) {
|
|
10644
|
-
let { cap: n } =
|
|
10644
|
+
let { cap: n } = H({
|
|
10645
10645
|
trpc: e,
|
|
10646
10646
|
deviceId: t,
|
|
10647
10647
|
cap: (e) => e.fanControl,
|
|
@@ -10668,7 +10668,7 @@ function al({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10668
10668
|
}) : null;
|
|
10669
10669
|
}
|
|
10670
10670
|
function ol(e, t) {
|
|
10671
|
-
let { cap: n } =
|
|
10671
|
+
let { cap: n } = H({
|
|
10672
10672
|
trpc: e,
|
|
10673
10673
|
deviceId: t,
|
|
10674
10674
|
cap: (e) => e.climateControl,
|
|
@@ -10704,7 +10704,7 @@ function ll({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10704
10704
|
}) : null;
|
|
10705
10705
|
}
|
|
10706
10706
|
function ul(e, t) {
|
|
10707
|
-
let { cap: n } =
|
|
10707
|
+
let { cap: n } = H({
|
|
10708
10708
|
trpc: e,
|
|
10709
10709
|
deviceId: t,
|
|
10710
10710
|
cap: (e) => e.mediaPlayer,
|
|
@@ -10722,7 +10722,7 @@ function dl({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10722
10722
|
}) : null;
|
|
10723
10723
|
}
|
|
10724
10724
|
function fl(e, t) {
|
|
10725
|
-
let { cap: n } =
|
|
10725
|
+
let { cap: n } = H({
|
|
10726
10726
|
trpc: e,
|
|
10727
10727
|
deviceId: t,
|
|
10728
10728
|
cap: (e) => e.control,
|
|
@@ -10752,8 +10752,8 @@ function ml({ trpc: e, deviceId: t, features: n, optimistic: r }) {
|
|
|
10752
10752
|
//#region ../ui-library/src/composites/device-controls/control-registry.tsx
|
|
10753
10753
|
var hl = {
|
|
10754
10754
|
cover: {
|
|
10755
|
-
InlineControl:
|
|
10756
|
-
HeroCard:
|
|
10755
|
+
InlineControl: ki,
|
|
10756
|
+
HeroCard: Pi
|
|
10757
10757
|
},
|
|
10758
10758
|
valve: {
|
|
10759
10759
|
InlineControl: eo,
|
|
@@ -10792,8 +10792,8 @@ var hl = {
|
|
|
10792
10792
|
HeroCard: ll
|
|
10793
10793
|
},
|
|
10794
10794
|
button: {
|
|
10795
|
-
InlineControl:
|
|
10796
|
-
HeroCard:
|
|
10795
|
+
InlineControl: Si,
|
|
10796
|
+
HeroCard: Ci
|
|
10797
10797
|
},
|
|
10798
10798
|
update: {
|
|
10799
10799
|
InlineControl: ba,
|
|
@@ -10844,8 +10844,8 @@ var hl = {
|
|
|
10844
10844
|
HeroCard: Zc
|
|
10845
10845
|
},
|
|
10846
10846
|
dummy: {
|
|
10847
|
-
InlineControl:
|
|
10848
|
-
HeroCard:
|
|
10847
|
+
InlineControl: Fi,
|
|
10848
|
+
HeroCard: Ii
|
|
10849
10849
|
}
|
|
10850
10850
|
};
|
|
10851
10851
|
Object.fromEntries(Object.values(E).map((e) => [e, hl[b[e]]])), E.Cover, E.Valve, E.Thermostat, E.Climate, E.Control, E.Button, E.MediaPlayer, E.AlarmPanel, E.Lock, E.Vacuum, E.LawnMower, E.Humidifier, E.Switch, E.Siren, E.Light, E.Fan, E.WaterHeater, E.Sensor, E.Presence, E.EventEmitter, E.Notifier, E.Script, E.Automation, E.Camera, E.Hub, E.Update, E.Generic, E.Weather, E.Container, E.Image, E.PetFeeder, new Set(Object.values(E));
|
|
@@ -11623,7 +11623,7 @@ function ju(e, t = {}) {
|
|
|
11623
11623
|
}
|
|
11624
11624
|
//#endregion
|
|
11625
11625
|
//#region ../../node_modules/superjson/dist/index.js
|
|
11626
|
-
var
|
|
11626
|
+
var W = class {
|
|
11627
11627
|
constructor({ dedupe: e = !1 } = {}) {
|
|
11628
11628
|
this.classRegistry = new Tl(), this.symbolRegistry = new wl((e) => e.description ?? ""), this.customTransformerRegistry = new jl(), this.allowedErrorProps = [], this.dedupe = e;
|
|
11629
11629
|
}
|
|
@@ -11667,7 +11667,7 @@ var U = class {
|
|
|
11667
11667
|
};
|
|
11668
11668
|
//#endregion
|
|
11669
11669
|
//#region ../../node_modules/qrcode.react/lib/esm/index.js
|
|
11670
|
-
|
|
11670
|
+
W.defaultInstance = new W(), W.serialize = W.defaultInstance.serialize.bind(W.defaultInstance), W.deserialize = W.defaultInstance.deserialize.bind(W.defaultInstance), W.stringify = W.defaultInstance.stringify.bind(W.defaultInstance), W.parse = W.defaultInstance.parse.bind(W.defaultInstance), W.registerClass = W.defaultInstance.registerClass.bind(W.defaultInstance), W.registerSymbol = W.defaultInstance.registerSymbol.bind(W.defaultInstance), W.registerCustom = W.defaultInstance.registerCustom.bind(W.defaultInstance), W.allowErrorProps = W.defaultInstance.allowErrorProps.bind(W.defaultInstance), W.serialize, W.deserialize, W.stringify, W.parse, W.registerClass, W.registerCustom, W.registerSymbol, W.allowErrorProps, d(), d(), l(null), d(), d(), d(), ne("camstack:custom-field-renderers", {}), d(), ne("camstack:device-context", null), d(), ne("camstack:widget-registry", null), d(), d(), d(), d(), d(), d(), ne("camstack:vod-playback", {
|
|
11671
11671
|
request: null,
|
|
11672
11672
|
play: () => {},
|
|
11673
11673
|
clear: () => {}
|
|
@@ -12636,7 +12636,7 @@ id.displayName = "QRCodeSVG", d(), d(), d(), d(), d(), d(), d();
|
|
|
12636
12636
|
//#endregion
|
|
12637
12637
|
//#region ../../node_modules/zod/v4/core/core.js
|
|
12638
12638
|
var ad;
|
|
12639
|
-
function
|
|
12639
|
+
function G(e, t, n) {
|
|
12640
12640
|
function r(n, r) {
|
|
12641
12641
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
12642
12642
|
value: {
|
|
@@ -12709,7 +12709,7 @@ function hd(e, t) {
|
|
|
12709
12709
|
return Math.abs(n - r) < i ? 0 : n - r;
|
|
12710
12710
|
}
|
|
12711
12711
|
var gd = /* @__PURE__*/ Symbol("evaluating");
|
|
12712
|
-
function
|
|
12712
|
+
function K(e, t, n) {
|
|
12713
12713
|
let r;
|
|
12714
12714
|
Object.defineProperty(e, t, {
|
|
12715
12715
|
get() {
|
|
@@ -12774,7 +12774,7 @@ function Od(e, t, n) {
|
|
|
12774
12774
|
let r = new e._zod.constr(t ?? e._zod.def);
|
|
12775
12775
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
12776
12776
|
}
|
|
12777
|
-
function
|
|
12777
|
+
function q(e) {
|
|
12778
12778
|
let t = e;
|
|
12779
12779
|
if (!t) return {};
|
|
12780
12780
|
if (typeof t == "string") return { error: () => t };
|
|
@@ -12955,7 +12955,7 @@ var Gd = (e, t) => {
|
|
|
12955
12955
|
value: () => e.message,
|
|
12956
12956
|
enumerable: !1
|
|
12957
12957
|
});
|
|
12958
|
-
}, Kd =
|
|
12958
|
+
}, Kd = G("$ZodError", Gd), qd = G("$ZodError", Gd, { Parent: Error });
|
|
12959
12959
|
function Jd(e, t = (e) => e.message) {
|
|
12960
12960
|
let n = {}, r = [];
|
|
12961
12961
|
for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
|
|
@@ -13088,16 +13088,16 @@ function Ff(e) {
|
|
|
13088
13088
|
var If = (e) => {
|
|
13089
13089
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
13090
13090
|
return RegExp(`^${t}$`);
|
|
13091
|
-
}, Lf = /^-?\d+$/, Rf = /^-?\d+(?:\.\d+)?$/, zf = /^(?:true|false)$/i, Bf = /^[^A-Z]*$/, Vf = /^[^a-z]*$/,
|
|
13091
|
+
}, Lf = /^-?\d+$/, Rf = /^-?\d+(?:\.\d+)?$/, zf = /^(?:true|false)$/i, Bf = /^[^A-Z]*$/, Vf = /^[^a-z]*$/, Hf = /*@__PURE__*/ G("$ZodCheck", (e, t) => {
|
|
13092
13092
|
var n;
|
|
13093
13093
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
13094
|
-
}),
|
|
13094
|
+
}), Uf = {
|
|
13095
13095
|
number: "number",
|
|
13096
13096
|
bigint: "bigint",
|
|
13097
13097
|
object: "date"
|
|
13098
|
-
},
|
|
13099
|
-
|
|
13100
|
-
let n =
|
|
13098
|
+
}, Wf = /*@__PURE__*/ G("$ZodCheckLessThan", (e, t) => {
|
|
13099
|
+
Hf.init(e, t);
|
|
13100
|
+
let n = Uf[typeof t.value];
|
|
13101
13101
|
e._zod.onattach.push((e) => {
|
|
13102
13102
|
let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
|
|
13103
13103
|
t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
@@ -13112,9 +13112,9 @@ var If = (e) => {
|
|
|
13112
13112
|
continue: !t.abort
|
|
13113
13113
|
});
|
|
13114
13114
|
};
|
|
13115
|
-
}),
|
|
13116
|
-
|
|
13117
|
-
let n =
|
|
13115
|
+
}), Gf = /*@__PURE__*/ G("$ZodCheckGreaterThan", (e, t) => {
|
|
13116
|
+
Hf.init(e, t);
|
|
13117
|
+
let n = Uf[typeof t.value];
|
|
13118
13118
|
e._zod.onattach.push((e) => {
|
|
13119
13119
|
let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
|
|
13120
13120
|
t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
@@ -13129,8 +13129,8 @@ var If = (e) => {
|
|
|
13129
13129
|
continue: !t.abort
|
|
13130
13130
|
});
|
|
13131
13131
|
};
|
|
13132
|
-
}),
|
|
13133
|
-
|
|
13132
|
+
}), Kf = /*@__PURE__*/ G("$ZodCheckMultipleOf", (e, t) => {
|
|
13133
|
+
Hf.init(e, t), e._zod.onattach.push((e) => {
|
|
13134
13134
|
var n;
|
|
13135
13135
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
13136
13136
|
}), e._zod.check = (n) => {
|
|
@@ -13144,8 +13144,8 @@ var If = (e) => {
|
|
|
13144
13144
|
continue: !t.abort
|
|
13145
13145
|
});
|
|
13146
13146
|
};
|
|
13147
|
-
}),
|
|
13148
|
-
|
|
13147
|
+
}), qf = /*@__PURE__*/ G("$ZodCheckNumberFormat", (e, t) => {
|
|
13148
|
+
Hf.init(e, t), t.format = t.format || "float64";
|
|
13149
13149
|
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = Ad[t.format];
|
|
13150
13150
|
e._zod.onattach.push((e) => {
|
|
13151
13151
|
let r = e._zod.bag;
|
|
@@ -13205,9 +13205,9 @@ var If = (e) => {
|
|
|
13205
13205
|
continue: !t.abort
|
|
13206
13206
|
});
|
|
13207
13207
|
};
|
|
13208
|
-
}),
|
|
13208
|
+
}), Jf = /*@__PURE__*/ G("$ZodCheckMaxLength", (e, t) => {
|
|
13209
13209
|
var n;
|
|
13210
|
-
|
|
13210
|
+
Hf.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
13211
13211
|
let t = e.value;
|
|
13212
13212
|
return !pd(t) && t.length !== void 0;
|
|
13213
13213
|
}), e._zod.onattach.push((e) => {
|
|
@@ -13227,9 +13227,9 @@ var If = (e) => {
|
|
|
13227
13227
|
continue: !t.abort
|
|
13228
13228
|
});
|
|
13229
13229
|
};
|
|
13230
|
-
}),
|
|
13230
|
+
}), Yf = /*@__PURE__*/ G("$ZodCheckMinLength", (e, t) => {
|
|
13231
13231
|
var n;
|
|
13232
|
-
|
|
13232
|
+
Hf.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
13233
13233
|
let t = e.value;
|
|
13234
13234
|
return !pd(t) && t.length !== void 0;
|
|
13235
13235
|
}), e._zod.onattach.push((e) => {
|
|
@@ -13249,9 +13249,9 @@ var If = (e) => {
|
|
|
13249
13249
|
continue: !t.abort
|
|
13250
13250
|
});
|
|
13251
13251
|
};
|
|
13252
|
-
}),
|
|
13252
|
+
}), Xf = /*@__PURE__*/ G("$ZodCheckLengthEquals", (e, t) => {
|
|
13253
13253
|
var n;
|
|
13254
|
-
|
|
13254
|
+
Hf.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
13255
13255
|
let t = e.value;
|
|
13256
13256
|
return !pd(t) && t.length !== void 0;
|
|
13257
13257
|
}), e._zod.onattach.push((e) => {
|
|
@@ -13277,9 +13277,9 @@ var If = (e) => {
|
|
|
13277
13277
|
continue: !t.abort
|
|
13278
13278
|
});
|
|
13279
13279
|
};
|
|
13280
|
-
}),
|
|
13280
|
+
}), Zf = /*@__PURE__*/ G("$ZodCheckStringFormat", (e, t) => {
|
|
13281
13281
|
var n, r;
|
|
13282
|
-
|
|
13282
|
+
Hf.init(e, t), e._zod.onattach.push((e) => {
|
|
13283
13283
|
let n = e._zod.bag;
|
|
13284
13284
|
n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
|
|
13285
13285
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -13293,8 +13293,8 @@ var If = (e) => {
|
|
|
13293
13293
|
continue: !t.abort
|
|
13294
13294
|
});
|
|
13295
13295
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
13296
|
-
}),
|
|
13297
|
-
|
|
13296
|
+
}), Qf = /*@__PURE__*/ G("$ZodCheckRegex", (e, t) => {
|
|
13297
|
+
Zf.init(e, t), e._zod.check = (n) => {
|
|
13298
13298
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
13299
13299
|
origin: "string",
|
|
13300
13300
|
code: "invalid_format",
|
|
@@ -13305,12 +13305,12 @@ var If = (e) => {
|
|
|
13305
13305
|
continue: !t.abort
|
|
13306
13306
|
});
|
|
13307
13307
|
};
|
|
13308
|
-
}),
|
|
13309
|
-
t.pattern ??= Bf,
|
|
13310
|
-
}),
|
|
13311
|
-
t.pattern ??= Vf,
|
|
13312
|
-
}),
|
|
13313
|
-
|
|
13308
|
+
}), $f = /*@__PURE__*/ G("$ZodCheckLowerCase", (e, t) => {
|
|
13309
|
+
t.pattern ??= Bf, Zf.init(e, t);
|
|
13310
|
+
}), ep = /*@__PURE__*/ G("$ZodCheckUpperCase", (e, t) => {
|
|
13311
|
+
t.pattern ??= Vf, Zf.init(e, t);
|
|
13312
|
+
}), tp = /*@__PURE__*/ G("$ZodCheckIncludes", (e, t) => {
|
|
13313
|
+
Hf.init(e, t);
|
|
13314
13314
|
let n = Dd(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
13315
13315
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
13316
13316
|
let t = e._zod.bag;
|
|
@@ -13326,8 +13326,8 @@ var If = (e) => {
|
|
|
13326
13326
|
continue: !t.abort
|
|
13327
13327
|
});
|
|
13328
13328
|
};
|
|
13329
|
-
}),
|
|
13330
|
-
|
|
13329
|
+
}), np = /*@__PURE__*/ G("$ZodCheckStartsWith", (e, t) => {
|
|
13330
|
+
Hf.init(e, t);
|
|
13331
13331
|
let n = RegExp(`^${Dd(t.prefix)}.*`);
|
|
13332
13332
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
13333
13333
|
let t = e._zod.bag;
|
|
@@ -13343,8 +13343,8 @@ var If = (e) => {
|
|
|
13343
13343
|
continue: !t.abort
|
|
13344
13344
|
});
|
|
13345
13345
|
};
|
|
13346
|
-
}),
|
|
13347
|
-
|
|
13346
|
+
}), rp = /*@__PURE__*/ G("$ZodCheckEndsWith", (e, t) => {
|
|
13347
|
+
Hf.init(e, t);
|
|
13348
13348
|
let n = RegExp(`.*${Dd(t.suffix)}$`);
|
|
13349
13349
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
13350
13350
|
let t = e._zod.bag;
|
|
@@ -13360,11 +13360,11 @@ var If = (e) => {
|
|
|
13360
13360
|
continue: !t.abort
|
|
13361
13361
|
});
|
|
13362
13362
|
};
|
|
13363
|
-
}),
|
|
13364
|
-
|
|
13363
|
+
}), ip = /*@__PURE__*/ G("$ZodCheckOverwrite", (e, t) => {
|
|
13364
|
+
Hf.init(e, t), e._zod.check = (e) => {
|
|
13365
13365
|
e.value = t.tx(e.value);
|
|
13366
13366
|
};
|
|
13367
|
-
}),
|
|
13367
|
+
}), ap = class {
|
|
13368
13368
|
constructor(e = []) {
|
|
13369
13369
|
this.content = [], this.indent = 0, this && (this.args = e);
|
|
13370
13370
|
}
|
|
@@ -13383,13 +13383,13 @@ var If = (e) => {
|
|
|
13383
13383
|
let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
|
|
13384
13384
|
return new e(...t, n.join("\n"));
|
|
13385
13385
|
}
|
|
13386
|
-
},
|
|
13386
|
+
}, op = {
|
|
13387
13387
|
major: 4,
|
|
13388
13388
|
minor: 4,
|
|
13389
13389
|
patch: 3
|
|
13390
|
-
}, J = /*@__PURE__*/
|
|
13390
|
+
}, J = /*@__PURE__*/ G("$ZodType", (e, t) => {
|
|
13391
13391
|
var n;
|
|
13392
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
13392
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = op;
|
|
13393
13393
|
let r = [...e._zod.def.checks ?? []];
|
|
13394
13394
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
13395
13395
|
for (let t of r) for (let n of t._zod.onattach) n(e);
|
|
@@ -13443,7 +13443,7 @@ var If = (e) => {
|
|
|
13443
13443
|
return t(o, r, a);
|
|
13444
13444
|
};
|
|
13445
13445
|
}
|
|
13446
|
-
|
|
13446
|
+
K(e, "~standard", () => ({
|
|
13447
13447
|
validate: (t) => {
|
|
13448
13448
|
try {
|
|
13449
13449
|
let n = $d(e, t);
|
|
@@ -13455,7 +13455,7 @@ var If = (e) => {
|
|
|
13455
13455
|
vendor: "zod",
|
|
13456
13456
|
version: 1
|
|
13457
13457
|
}));
|
|
13458
|
-
}),
|
|
13458
|
+
}), sp = /*@__PURE__*/ G("$ZodString", (e, t) => {
|
|
13459
13459
|
J.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? If(e._zod.bag), e._zod.parse = (n, r) => {
|
|
13460
13460
|
if (t.coerce) try {
|
|
13461
13461
|
n.value = String(n.value);
|
|
@@ -13467,11 +13467,11 @@ var If = (e) => {
|
|
|
13467
13467
|
inst: e
|
|
13468
13468
|
}), n;
|
|
13469
13469
|
};
|
|
13470
|
-
}), Y = /*@__PURE__*/
|
|
13471
|
-
|
|
13472
|
-
}),
|
|
13470
|
+
}), Y = /*@__PURE__*/ G("$ZodStringFormat", (e, t) => {
|
|
13471
|
+
Zf.init(e, t), sp.init(e, t);
|
|
13472
|
+
}), cp = /*@__PURE__*/ G("$ZodGUID", (e, t) => {
|
|
13473
13473
|
t.pattern ??= vf, Y.init(e, t);
|
|
13474
|
-
}),
|
|
13474
|
+
}), lp = /*@__PURE__*/ G("$ZodUUID", (e, t) => {
|
|
13475
13475
|
if (t.version) {
|
|
13476
13476
|
let e = {
|
|
13477
13477
|
v1: 1,
|
|
@@ -13487,9 +13487,9 @@ var If = (e) => {
|
|
|
13487
13487
|
t.pattern ??= yf(e);
|
|
13488
13488
|
} else t.pattern ??= yf();
|
|
13489
13489
|
Y.init(e, t);
|
|
13490
|
-
}),
|
|
13490
|
+
}), up = /*@__PURE__*/ G("$ZodEmail", (e, t) => {
|
|
13491
13491
|
t.pattern ??= bf, Y.init(e, t);
|
|
13492
|
-
}),
|
|
13492
|
+
}), dp = /*@__PURE__*/ G("$ZodURL", (e, t) => {
|
|
13493
13493
|
Y.init(e, t), e._zod.check = (n) => {
|
|
13494
13494
|
try {
|
|
13495
13495
|
let r = n.value.trim();
|
|
@@ -13533,31 +13533,31 @@ var If = (e) => {
|
|
|
13533
13533
|
});
|
|
13534
13534
|
}
|
|
13535
13535
|
};
|
|
13536
|
-
}),
|
|
13536
|
+
}), fp = /*@__PURE__*/ G("$ZodEmoji", (e, t) => {
|
|
13537
13537
|
t.pattern ??= Sf(), Y.init(e, t);
|
|
13538
|
-
}),
|
|
13538
|
+
}), pp = /*@__PURE__*/ G("$ZodNanoID", (e, t) => {
|
|
13539
13539
|
t.pattern ??= gf, Y.init(e, t);
|
|
13540
|
-
}),
|
|
13540
|
+
}), mp = /*@__PURE__*/ G("$ZodCUID", (e, t) => {
|
|
13541
13541
|
t.pattern ??= df, Y.init(e, t);
|
|
13542
|
-
}),
|
|
13542
|
+
}), hp = /*@__PURE__*/ G("$ZodCUID2", (e, t) => {
|
|
13543
13543
|
t.pattern ??= ff, Y.init(e, t);
|
|
13544
|
-
}),
|
|
13544
|
+
}), gp = /*@__PURE__*/ G("$ZodULID", (e, t) => {
|
|
13545
13545
|
t.pattern ??= pf, Y.init(e, t);
|
|
13546
|
-
}),
|
|
13546
|
+
}), _p = /*@__PURE__*/ G("$ZodXID", (e, t) => {
|
|
13547
13547
|
t.pattern ??= mf, Y.init(e, t);
|
|
13548
|
-
}),
|
|
13548
|
+
}), vp = /*@__PURE__*/ G("$ZodKSUID", (e, t) => {
|
|
13549
13549
|
t.pattern ??= hf, Y.init(e, t);
|
|
13550
|
-
}),
|
|
13550
|
+
}), yp = /*@__PURE__*/ G("$ZodISODateTime", (e, t) => {
|
|
13551
13551
|
t.pattern ??= Ff(t), Y.init(e, t);
|
|
13552
|
-
}),
|
|
13552
|
+
}), bp = /*@__PURE__*/ G("$ZodISODate", (e, t) => {
|
|
13553
13553
|
t.pattern ??= Mf, Y.init(e, t);
|
|
13554
|
-
}),
|
|
13554
|
+
}), xp = /*@__PURE__*/ G("$ZodISOTime", (e, t) => {
|
|
13555
13555
|
t.pattern ??= Pf(t), Y.init(e, t);
|
|
13556
|
-
}),
|
|
13556
|
+
}), Sp = /*@__PURE__*/ G("$ZodISODuration", (e, t) => {
|
|
13557
13557
|
t.pattern ??= _f, Y.init(e, t);
|
|
13558
|
-
}),
|
|
13558
|
+
}), Cp = /*@__PURE__*/ G("$ZodIPv4", (e, t) => {
|
|
13559
13559
|
t.pattern ??= Cf, Y.init(e, t), e._zod.bag.format = "ipv4";
|
|
13560
|
-
}),
|
|
13560
|
+
}), wp = /*@__PURE__*/ G("$ZodIPv6", (e, t) => {
|
|
13561
13561
|
t.pattern ??= wf, Y.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
13562
13562
|
try {
|
|
13563
13563
|
new URL(`http://[${n.value}]`);
|
|
@@ -13571,9 +13571,9 @@ var If = (e) => {
|
|
|
13571
13571
|
});
|
|
13572
13572
|
}
|
|
13573
13573
|
};
|
|
13574
|
-
}),
|
|
13574
|
+
}), Tp = /*@__PURE__*/ G("$ZodCIDRv4", (e, t) => {
|
|
13575
13575
|
t.pattern ??= Tf, Y.init(e, t);
|
|
13576
|
-
}),
|
|
13576
|
+
}), Ep = /*@__PURE__*/ G("$ZodCIDRv6", (e, t) => {
|
|
13577
13577
|
t.pattern ??= Ef, Y.init(e, t), e._zod.check = (n) => {
|
|
13578
13578
|
let r = n.value.split("/");
|
|
13579
13579
|
try {
|
|
@@ -13594,7 +13594,7 @@ var If = (e) => {
|
|
|
13594
13594
|
}
|
|
13595
13595
|
};
|
|
13596
13596
|
});
|
|
13597
|
-
function
|
|
13597
|
+
function Dp(e) {
|
|
13598
13598
|
if (e === "") return !0;
|
|
13599
13599
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
13600
13600
|
try {
|
|
@@ -13603,9 +13603,9 @@ function Ep(e) {
|
|
|
13603
13603
|
return !1;
|
|
13604
13604
|
}
|
|
13605
13605
|
}
|
|
13606
|
-
var
|
|
13606
|
+
var Op = /*@__PURE__*/ G("$ZodBase64", (e, t) => {
|
|
13607
13607
|
t.pattern ??= Df, Y.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
13608
|
-
|
|
13608
|
+
Dp(n.value) || n.issues.push({
|
|
13609
13609
|
code: "invalid_format",
|
|
13610
13610
|
format: "base64",
|
|
13611
13611
|
input: n.value,
|
|
@@ -13614,14 +13614,14 @@ var Dp = /*@__PURE__*/ W("$ZodBase64", (e, t) => {
|
|
|
13614
13614
|
});
|
|
13615
13615
|
};
|
|
13616
13616
|
});
|
|
13617
|
-
function
|
|
13617
|
+
function kp(e) {
|
|
13618
13618
|
if (!Of.test(e)) return !1;
|
|
13619
13619
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
13620
|
-
return
|
|
13620
|
+
return Dp(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
13621
13621
|
}
|
|
13622
|
-
var
|
|
13622
|
+
var Ap = /*@__PURE__*/ G("$ZodBase64URL", (e, t) => {
|
|
13623
13623
|
t.pattern ??= Of, Y.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
13624
|
-
|
|
13624
|
+
kp(n.value) || n.issues.push({
|
|
13625
13625
|
code: "invalid_format",
|
|
13626
13626
|
format: "base64url",
|
|
13627
13627
|
input: n.value,
|
|
@@ -13629,10 +13629,10 @@ var kp = /*@__PURE__*/ W("$ZodBase64URL", (e, t) => {
|
|
|
13629
13629
|
continue: !t.abort
|
|
13630
13630
|
});
|
|
13631
13631
|
};
|
|
13632
|
-
}),
|
|
13632
|
+
}), jp = /*@__PURE__*/ G("$ZodE164", (e, t) => {
|
|
13633
13633
|
t.pattern ??= Af, Y.init(e, t);
|
|
13634
13634
|
});
|
|
13635
|
-
function
|
|
13635
|
+
function Mp(e, t = null) {
|
|
13636
13636
|
try {
|
|
13637
13637
|
let n = e.split(".");
|
|
13638
13638
|
if (n.length !== 3) return !1;
|
|
@@ -13644,9 +13644,9 @@ function jp(e, t = null) {
|
|
|
13644
13644
|
return !1;
|
|
13645
13645
|
}
|
|
13646
13646
|
}
|
|
13647
|
-
var
|
|
13647
|
+
var Np = /*@__PURE__*/ G("$ZodJWT", (e, t) => {
|
|
13648
13648
|
Y.init(e, t), e._zod.check = (n) => {
|
|
13649
|
-
|
|
13649
|
+
Mp(n.value, t.alg) || n.issues.push({
|
|
13650
13650
|
code: "invalid_format",
|
|
13651
13651
|
format: "jwt",
|
|
13652
13652
|
input: n.value,
|
|
@@ -13654,7 +13654,7 @@ var Mp = /*@__PURE__*/ W("$ZodJWT", (e, t) => {
|
|
|
13654
13654
|
continue: !t.abort
|
|
13655
13655
|
});
|
|
13656
13656
|
};
|
|
13657
|
-
}),
|
|
13657
|
+
}), Pp = /*@__PURE__*/ G("$ZodNumber", (e, t) => {
|
|
13658
13658
|
J.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Rf, e._zod.parse = (n, r) => {
|
|
13659
13659
|
if (t.coerce) try {
|
|
13660
13660
|
n.value = Number(n.value);
|
|
@@ -13670,9 +13670,9 @@ var Mp = /*@__PURE__*/ W("$ZodJWT", (e, t) => {
|
|
|
13670
13670
|
...a ? { received: a } : {}
|
|
13671
13671
|
}), n;
|
|
13672
13672
|
};
|
|
13673
|
-
}),
|
|
13674
|
-
|
|
13675
|
-
}),
|
|
13673
|
+
}), Fp = /*@__PURE__*/ G("$ZodNumberFormat", (e, t) => {
|
|
13674
|
+
qf.init(e, t), Pp.init(e, t);
|
|
13675
|
+
}), Ip = /*@__PURE__*/ G("$ZodBoolean", (e, t) => {
|
|
13676
13676
|
J.init(e, t), e._zod.pattern = zf, e._zod.parse = (n, r) => {
|
|
13677
13677
|
if (t.coerce) try {
|
|
13678
13678
|
n.value = !!n.value;
|
|
@@ -13685,9 +13685,9 @@ var Mp = /*@__PURE__*/ W("$ZodJWT", (e, t) => {
|
|
|
13685
13685
|
inst: e
|
|
13686
13686
|
}), n;
|
|
13687
13687
|
};
|
|
13688
|
-
}),
|
|
13688
|
+
}), Lp = /*@__PURE__*/ G("$ZodUnknown", (e, t) => {
|
|
13689
13689
|
J.init(e, t), e._zod.parse = (e) => e;
|
|
13690
|
-
}),
|
|
13690
|
+
}), Rp = /*@__PURE__*/ G("$ZodNever", (e, t) => {
|
|
13691
13691
|
J.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
13692
13692
|
expected: "never",
|
|
13693
13693
|
code: "invalid_type",
|
|
@@ -13695,10 +13695,10 @@ var Mp = /*@__PURE__*/ W("$ZodJWT", (e, t) => {
|
|
|
13695
13695
|
inst: e
|
|
13696
13696
|
}), t);
|
|
13697
13697
|
});
|
|
13698
|
-
function
|
|
13698
|
+
function zp(e, t, n) {
|
|
13699
13699
|
e.issues.length && t.issues.push(...Bd(n, e.issues)), t.value[n] = e.value;
|
|
13700
13700
|
}
|
|
13701
|
-
var
|
|
13701
|
+
var Bp = /*@__PURE__*/ G("$ZodArray", (e, t) => {
|
|
13702
13702
|
J.init(e, t), e._zod.parse = (n, r) => {
|
|
13703
13703
|
let i = n.value;
|
|
13704
13704
|
if (!Array.isArray(i)) return n.issues.push({
|
|
@@ -13714,12 +13714,12 @@ var zp = /*@__PURE__*/ W("$ZodArray", (e, t) => {
|
|
|
13714
13714
|
value: o,
|
|
13715
13715
|
issues: []
|
|
13716
13716
|
}, r);
|
|
13717
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
13717
|
+
s instanceof Promise ? a.push(s.then((t) => zp(t, n, e))) : zp(s, n, e);
|
|
13718
13718
|
}
|
|
13719
13719
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
13720
13720
|
};
|
|
13721
13721
|
});
|
|
13722
|
-
function
|
|
13722
|
+
function Vp(e, t, n, r, i, a) {
|
|
13723
13723
|
let o = n in r;
|
|
13724
13724
|
if (e.issues.length) {
|
|
13725
13725
|
if (i && a && !o) return;
|
|
@@ -13736,7 +13736,7 @@ function Bp(e, t, n, r, i, a) {
|
|
|
13736
13736
|
}
|
|
13737
13737
|
e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
13738
13738
|
}
|
|
13739
|
-
function
|
|
13739
|
+
function Hp(e) {
|
|
13740
13740
|
let t = Object.keys(e.shape);
|
|
13741
13741
|
for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
|
|
13742
13742
|
let n = kd(e.shape);
|
|
@@ -13748,7 +13748,7 @@ function Vp(e) {
|
|
|
13748
13748
|
optionalKeys: new Set(n)
|
|
13749
13749
|
};
|
|
13750
13750
|
}
|
|
13751
|
-
function
|
|
13751
|
+
function Up(e, t, n, r, i, a) {
|
|
13752
13752
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
|
|
13753
13753
|
for (let i in t) {
|
|
13754
13754
|
if (i === "__proto__" || s.has(i)) continue;
|
|
@@ -13760,7 +13760,7 @@ function Hp(e, t, n, r, i, a) {
|
|
|
13760
13760
|
value: t[i],
|
|
13761
13761
|
issues: []
|
|
13762
13762
|
}, r);
|
|
13763
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
13763
|
+
a instanceof Promise ? e.push(a.then((e) => Vp(e, n, i, t, u, d))) : Vp(a, n, i, t, u, d);
|
|
13764
13764
|
}
|
|
13765
13765
|
return o.length && n.issues.push({
|
|
13766
13766
|
code: "unrecognized_keys",
|
|
@@ -13769,7 +13769,7 @@ function Hp(e, t, n, r, i, a) {
|
|
|
13769
13769
|
inst: a
|
|
13770
13770
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
13771
13771
|
}
|
|
13772
|
-
var
|
|
13772
|
+
var Wp = /*@__PURE__*/ G("$ZodObject", (e, t) => {
|
|
13773
13773
|
if (J.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
13774
13774
|
let e = t.shape;
|
|
13775
13775
|
Object.defineProperty(t, "shape", { get: () => {
|
|
@@ -13777,8 +13777,8 @@ var Up = /*@__PURE__*/ W("$ZodObject", (e, t) => {
|
|
|
13777
13777
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
13778
13778
|
} });
|
|
13779
13779
|
}
|
|
13780
|
-
let n = fd(() =>
|
|
13781
|
-
|
|
13780
|
+
let n = fd(() => Hp(t));
|
|
13781
|
+
K(e._zod, "propValues", () => {
|
|
13782
13782
|
let e = t.shape, n = {};
|
|
13783
13783
|
for (let t in e) {
|
|
13784
13784
|
let r = e[t]._zod;
|
|
@@ -13806,14 +13806,14 @@ var Up = /*@__PURE__*/ W("$ZodObject", (e, t) => {
|
|
|
13806
13806
|
value: s[e],
|
|
13807
13807
|
issues: []
|
|
13808
13808
|
}, o);
|
|
13809
|
-
a instanceof Promise ? c.push(a.then((n) =>
|
|
13809
|
+
a instanceof Promise ? c.push(a.then((n) => Vp(n, t, e, s, r, i))) : Vp(a, t, e, s, r, i);
|
|
13810
13810
|
}
|
|
13811
|
-
return i ?
|
|
13811
|
+
return i ? Up(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
13812
13812
|
};
|
|
13813
|
-
}),
|
|
13814
|
-
|
|
13815
|
-
let n = e._zod.parse, r = fd(() =>
|
|
13816
|
-
let t = new
|
|
13813
|
+
}), Gp = /*@__PURE__*/ G("$ZodObjectJIT", (e, t) => {
|
|
13814
|
+
Wp.init(e, t);
|
|
13815
|
+
let n = e._zod.parse, r = fd(() => Hp(t)), i = (e) => {
|
|
13816
|
+
let t = new ap([
|
|
13817
13817
|
"shape",
|
|
13818
13818
|
"payload",
|
|
13819
13819
|
"ctx"
|
|
@@ -13895,7 +13895,7 @@ var Up = /*@__PURE__*/ W("$ZodObject", (e, t) => {
|
|
|
13895
13895
|
e._zod.parse = (d, f) => {
|
|
13896
13896
|
u ??= r.value;
|
|
13897
13897
|
let p = d.value;
|
|
13898
|
-
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ?
|
|
13898
|
+
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? Up([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
|
|
13899
13899
|
expected: "object",
|
|
13900
13900
|
code: "invalid_type",
|
|
13901
13901
|
input: p,
|
|
@@ -13903,7 +13903,7 @@ var Up = /*@__PURE__*/ W("$ZodObject", (e, t) => {
|
|
|
13903
13903
|
}), d);
|
|
13904
13904
|
};
|
|
13905
13905
|
});
|
|
13906
|
-
function
|
|
13906
|
+
function Kp(e, t, n, r) {
|
|
13907
13907
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
13908
13908
|
let i = e.filter((e) => !Rd(e));
|
|
13909
13909
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
@@ -13913,10 +13913,10 @@ function Gp(e, t, n, r) {
|
|
|
13913
13913
|
errors: e.map((e) => e.issues.map((e) => Hd(e, r, ld())))
|
|
13914
13914
|
}), t);
|
|
13915
13915
|
}
|
|
13916
|
-
var
|
|
13917
|
-
J.init(e, t),
|
|
13916
|
+
var qp = /*@__PURE__*/ G("$ZodUnion", (e, t) => {
|
|
13917
|
+
J.init(e, t), K(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), K(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), K(e._zod, "values", () => {
|
|
13918
13918
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
13919
|
-
}),
|
|
13919
|
+
}), K(e._zod, "pattern", () => {
|
|
13920
13920
|
if (t.options.every((e) => e._zod.pattern)) {
|
|
13921
13921
|
let e = t.options.map((e) => e._zod.pattern);
|
|
13922
13922
|
return RegExp(`^(${e.map((e) => md(e.source)).join("|")})$`);
|
|
@@ -13937,9 +13937,9 @@ var Kp = /*@__PURE__*/ W("$ZodUnion", (e, t) => {
|
|
|
13937
13937
|
o.push(t);
|
|
13938
13938
|
}
|
|
13939
13939
|
}
|
|
13940
|
-
return a ? Promise.all(o).then((t) =>
|
|
13940
|
+
return a ? Promise.all(o).then((t) => Kp(t, r, e, i)) : Kp(o, r, e, i);
|
|
13941
13941
|
};
|
|
13942
|
-
}),
|
|
13942
|
+
}), Jp = /*@__PURE__*/ G("$ZodIntersection", (e, t) => {
|
|
13943
13943
|
J.init(e, t), e._zod.parse = (e, n) => {
|
|
13944
13944
|
let r = e.value, i = t.left._zod.run({
|
|
13945
13945
|
value: r,
|
|
@@ -13948,10 +13948,10 @@ var Kp = /*@__PURE__*/ W("$ZodUnion", (e, t) => {
|
|
|
13948
13948
|
value: r,
|
|
13949
13949
|
issues: []
|
|
13950
13950
|
}, n);
|
|
13951
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
13951
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Xp(e, t, n)) : Xp(e, i, a);
|
|
13952
13952
|
};
|
|
13953
13953
|
});
|
|
13954
|
-
function
|
|
13954
|
+
function Yp(e, t) {
|
|
13955
13955
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
13956
13956
|
valid: !0,
|
|
13957
13957
|
data: e
|
|
@@ -13962,7 +13962,7 @@ function Jp(e, t) {
|
|
|
13962
13962
|
...t
|
|
13963
13963
|
};
|
|
13964
13964
|
for (let n of r) {
|
|
13965
|
-
let r =
|
|
13965
|
+
let r = Yp(e[n], t[n]);
|
|
13966
13966
|
if (!r.valid) return {
|
|
13967
13967
|
valid: !1,
|
|
13968
13968
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -13981,7 +13981,7 @@ function Jp(e, t) {
|
|
|
13981
13981
|
};
|
|
13982
13982
|
let n = [];
|
|
13983
13983
|
for (let r = 0; r < e.length; r++) {
|
|
13984
|
-
let i = e[r], a = t[r], o =
|
|
13984
|
+
let i = e[r], a = t[r], o = Yp(i, a);
|
|
13985
13985
|
if (!o.valid) return {
|
|
13986
13986
|
valid: !1,
|
|
13987
13987
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -13998,7 +13998,7 @@ function Jp(e, t) {
|
|
|
13998
13998
|
mergeErrorPath: []
|
|
13999
13999
|
};
|
|
14000
14000
|
}
|
|
14001
|
-
function
|
|
14001
|
+
function Xp(e, t, n) {
|
|
14002
14002
|
let r = /* @__PURE__ */ new Map(), i;
|
|
14003
14003
|
for (let n of t.issues) if (n.code === "unrecognized_keys") {
|
|
14004
14004
|
i ??= n;
|
|
@@ -14011,11 +14011,11 @@ function Yp(e, t, n) {
|
|
|
14011
14011
|
...i,
|
|
14012
14012
|
keys: a
|
|
14013
14013
|
}), Rd(e)) return e;
|
|
14014
|
-
let o =
|
|
14014
|
+
let o = Yp(t.value, n.value);
|
|
14015
14015
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
14016
14016
|
return e.value = o.data, e;
|
|
14017
14017
|
}
|
|
14018
|
-
var
|
|
14018
|
+
var Zp = /*@__PURE__*/ G("$ZodEnum", (e, t) => {
|
|
14019
14019
|
J.init(e, t);
|
|
14020
14020
|
let n = ud(t.entries), r = new Set(n);
|
|
14021
14021
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => Ed.has(typeof e)).map((e) => typeof e == "string" ? Dd(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
@@ -14027,7 +14027,7 @@ var Xp = /*@__PURE__*/ W("$ZodEnum", (e, t) => {
|
|
|
14027
14027
|
inst: e
|
|
14028
14028
|
}), t;
|
|
14029
14029
|
};
|
|
14030
|
-
}),
|
|
14030
|
+
}), Qp = /*@__PURE__*/ G("$ZodTransform", (e, t) => {
|
|
14031
14031
|
J.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
14032
14032
|
if (r.direction === "backward") throw new sd(e.constructor.name);
|
|
14033
14033
|
let i = t.transform(n.value, n);
|
|
@@ -14036,53 +14036,53 @@ var Xp = /*@__PURE__*/ W("$ZodEnum", (e, t) => {
|
|
|
14036
14036
|
return n.value = i, n.fallback = !0, n;
|
|
14037
14037
|
};
|
|
14038
14038
|
});
|
|
14039
|
-
function
|
|
14039
|
+
function $p(e, t) {
|
|
14040
14040
|
return t === void 0 && (e.issues.length || e.fallback) ? {
|
|
14041
14041
|
issues: [],
|
|
14042
14042
|
value: void 0
|
|
14043
14043
|
} : e;
|
|
14044
14044
|
}
|
|
14045
|
-
var
|
|
14046
|
-
J.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
14045
|
+
var em = /*@__PURE__*/ G("$ZodOptional", (e, t) => {
|
|
14046
|
+
J.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", K(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), K(e._zod, "pattern", () => {
|
|
14047
14047
|
let e = t.innerType._zod.pattern;
|
|
14048
14048
|
return e ? RegExp(`^(${md(e.source)})?$`) : void 0;
|
|
14049
14049
|
}), e._zod.parse = (e, n) => {
|
|
14050
14050
|
if (t.innerType._zod.optin === "optional") {
|
|
14051
14051
|
let r = e.value, i = t.innerType._zod.run(e, n);
|
|
14052
|
-
return i instanceof Promise ? i.then((e) =>
|
|
14052
|
+
return i instanceof Promise ? i.then((e) => $p(e, r)) : $p(i, r);
|
|
14053
14053
|
}
|
|
14054
14054
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
14055
14055
|
};
|
|
14056
|
-
}),
|
|
14057
|
-
|
|
14058
|
-
}),
|
|
14059
|
-
J.init(e, t),
|
|
14056
|
+
}), tm = /*@__PURE__*/ G("$ZodExactOptional", (e, t) => {
|
|
14057
|
+
em.init(e, t), K(e._zod, "values", () => t.innerType._zod.values), K(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
14058
|
+
}), nm = /*@__PURE__*/ G("$ZodNullable", (e, t) => {
|
|
14059
|
+
J.init(e, t), K(e._zod, "optin", () => t.innerType._zod.optin), K(e._zod, "optout", () => t.innerType._zod.optout), K(e._zod, "pattern", () => {
|
|
14060
14060
|
let e = t.innerType._zod.pattern;
|
|
14061
14061
|
return e ? RegExp(`^(${md(e.source)}|null)$`) : void 0;
|
|
14062
|
-
}),
|
|
14063
|
-
}),
|
|
14064
|
-
J.init(e, t), e._zod.optin = "optional",
|
|
14062
|
+
}), K(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
14063
|
+
}), rm = /*@__PURE__*/ G("$ZodDefault", (e, t) => {
|
|
14064
|
+
J.init(e, t), e._zod.optin = "optional", K(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
14065
14065
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
14066
14066
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
14067
14067
|
let r = t.innerType._zod.run(e, n);
|
|
14068
|
-
return r instanceof Promise ? r.then((e) =>
|
|
14068
|
+
return r instanceof Promise ? r.then((e) => im(e, t)) : im(r, t);
|
|
14069
14069
|
};
|
|
14070
14070
|
});
|
|
14071
|
-
function
|
|
14071
|
+
function im(e, t) {
|
|
14072
14072
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
14073
14073
|
}
|
|
14074
|
-
var
|
|
14075
|
-
J.init(e, t), e._zod.optin = "optional",
|
|
14076
|
-
}),
|
|
14077
|
-
J.init(e, t),
|
|
14074
|
+
var am = /*@__PURE__*/ G("$ZodPrefault", (e, t) => {
|
|
14075
|
+
J.init(e, t), e._zod.optin = "optional", K(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
14076
|
+
}), om = /*@__PURE__*/ G("$ZodNonOptional", (e, t) => {
|
|
14077
|
+
J.init(e, t), K(e._zod, "values", () => {
|
|
14078
14078
|
let e = t.innerType._zod.values;
|
|
14079
14079
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
14080
14080
|
}), e._zod.parse = (n, r) => {
|
|
14081
14081
|
let i = t.innerType._zod.run(n, r);
|
|
14082
|
-
return i instanceof Promise ? i.then((t) =>
|
|
14082
|
+
return i instanceof Promise ? i.then((t) => sm(t, e)) : sm(i, e);
|
|
14083
14083
|
};
|
|
14084
14084
|
});
|
|
14085
|
-
function
|
|
14085
|
+
function sm(e, t) {
|
|
14086
14086
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
14087
14087
|
code: "invalid_type",
|
|
14088
14088
|
expected: "nonoptional",
|
|
@@ -14090,8 +14090,8 @@ function om(e, t) {
|
|
|
14090
14090
|
inst: t
|
|
14091
14091
|
}), e;
|
|
14092
14092
|
}
|
|
14093
|
-
var
|
|
14094
|
-
J.init(e, t), e._zod.optin = "optional",
|
|
14093
|
+
var cm = /*@__PURE__*/ G("$ZodCatch", (e, t) => {
|
|
14094
|
+
J.init(e, t), e._zod.optin = "optional", K(e._zod, "optout", () => t.innerType._zod.optout), K(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
14095
14095
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
14096
14096
|
let r = t.innerType._zod.run(e, n);
|
|
14097
14097
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
@@ -14104,41 +14104,41 @@ var sm = /*@__PURE__*/ W("$ZodCatch", (e, t) => {
|
|
|
14104
14104
|
input: e.value
|
|
14105
14105
|
}), e.issues = [], e.fallback = !0), e);
|
|
14106
14106
|
};
|
|
14107
|
-
}),
|
|
14108
|
-
J.init(e, t),
|
|
14107
|
+
}), lm = /*@__PURE__*/ G("$ZodPipe", (e, t) => {
|
|
14108
|
+
J.init(e, t), K(e._zod, "values", () => t.in._zod.values), K(e._zod, "optin", () => t.in._zod.optin), K(e._zod, "optout", () => t.out._zod.optout), K(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
14109
14109
|
if (n.direction === "backward") {
|
|
14110
14110
|
let r = t.out._zod.run(e, n);
|
|
14111
|
-
return r instanceof Promise ? r.then((e) =>
|
|
14111
|
+
return r instanceof Promise ? r.then((e) => um(e, t.in, n)) : um(r, t.in, n);
|
|
14112
14112
|
}
|
|
14113
14113
|
let r = t.in._zod.run(e, n);
|
|
14114
|
-
return r instanceof Promise ? r.then((e) =>
|
|
14114
|
+
return r instanceof Promise ? r.then((e) => um(e, t.out, n)) : um(r, t.out, n);
|
|
14115
14115
|
};
|
|
14116
14116
|
});
|
|
14117
|
-
function
|
|
14117
|
+
function um(e, t, n) {
|
|
14118
14118
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
14119
14119
|
value: e.value,
|
|
14120
14120
|
issues: e.issues,
|
|
14121
14121
|
fallback: e.fallback
|
|
14122
14122
|
}, n);
|
|
14123
14123
|
}
|
|
14124
|
-
var
|
|
14125
|
-
J.init(e, t),
|
|
14124
|
+
var dm = /*@__PURE__*/ G("$ZodReadonly", (e, t) => {
|
|
14125
|
+
J.init(e, t), K(e._zod, "propValues", () => t.innerType._zod.propValues), K(e._zod, "values", () => t.innerType._zod.values), K(e._zod, "optin", () => t.innerType?._zod?.optin), K(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
14126
14126
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
14127
14127
|
let r = t.innerType._zod.run(e, n);
|
|
14128
|
-
return r instanceof Promise ? r.then(
|
|
14128
|
+
return r instanceof Promise ? r.then(fm) : fm(r);
|
|
14129
14129
|
};
|
|
14130
14130
|
});
|
|
14131
|
-
function
|
|
14131
|
+
function fm(e) {
|
|
14132
14132
|
return e.value = Object.freeze(e.value), e;
|
|
14133
14133
|
}
|
|
14134
|
-
var
|
|
14135
|
-
|
|
14134
|
+
var pm = /*@__PURE__*/ G("$ZodCustom", (e, t) => {
|
|
14135
|
+
Hf.init(e, t), J.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
14136
14136
|
let r = n.value, i = t.fn(r);
|
|
14137
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
14138
|
-
|
|
14137
|
+
if (i instanceof Promise) return i.then((t) => mm(t, n, r, e));
|
|
14138
|
+
mm(i, n, r, e);
|
|
14139
14139
|
};
|
|
14140
14140
|
});
|
|
14141
|
-
function
|
|
14141
|
+
function mm(e, t, n, r) {
|
|
14142
14142
|
if (!e) {
|
|
14143
14143
|
let e = {
|
|
14144
14144
|
code: "custom",
|
|
@@ -14152,7 +14152,7 @@ function pm(e, t, n, r) {
|
|
|
14152
14152
|
}
|
|
14153
14153
|
//#endregion
|
|
14154
14154
|
//#region ../../node_modules/zod/v4/core/registries.js
|
|
14155
|
-
var
|
|
14155
|
+
var hm, gm = class {
|
|
14156
14156
|
constructor() {
|
|
14157
14157
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
14158
14158
|
}
|
|
@@ -14184,245 +14184,245 @@ var mm, hm = class {
|
|
|
14184
14184
|
return this._map.has(e);
|
|
14185
14185
|
}
|
|
14186
14186
|
};
|
|
14187
|
-
function
|
|
14188
|
-
return new
|
|
14187
|
+
function _m() {
|
|
14188
|
+
return new gm();
|
|
14189
14189
|
}
|
|
14190
|
-
(
|
|
14191
|
-
var
|
|
14190
|
+
(hm = globalThis).__zod_globalRegistry ?? (hm.__zod_globalRegistry = _m());
|
|
14191
|
+
var vm = globalThis.__zod_globalRegistry;
|
|
14192
14192
|
//#endregion
|
|
14193
14193
|
//#region ../../node_modules/zod/v4/core/api.js
|
|
14194
14194
|
// @__NO_SIDE_EFFECTS__
|
|
14195
|
-
function
|
|
14195
|
+
function ym(e, t) {
|
|
14196
14196
|
return new e({
|
|
14197
14197
|
type: "string",
|
|
14198
|
-
...
|
|
14198
|
+
...q(t)
|
|
14199
14199
|
});
|
|
14200
14200
|
}
|
|
14201
14201
|
// @__NO_SIDE_EFFECTS__
|
|
14202
|
-
function
|
|
14202
|
+
function bm(e, t) {
|
|
14203
14203
|
return new e({
|
|
14204
14204
|
type: "string",
|
|
14205
14205
|
format: "email",
|
|
14206
14206
|
check: "string_format",
|
|
14207
14207
|
abort: !1,
|
|
14208
|
-
...
|
|
14208
|
+
...q(t)
|
|
14209
14209
|
});
|
|
14210
14210
|
}
|
|
14211
14211
|
// @__NO_SIDE_EFFECTS__
|
|
14212
|
-
function
|
|
14212
|
+
function xm(e, t) {
|
|
14213
14213
|
return new e({
|
|
14214
14214
|
type: "string",
|
|
14215
14215
|
format: "guid",
|
|
14216
14216
|
check: "string_format",
|
|
14217
14217
|
abort: !1,
|
|
14218
|
-
...
|
|
14218
|
+
...q(t)
|
|
14219
14219
|
});
|
|
14220
14220
|
}
|
|
14221
14221
|
// @__NO_SIDE_EFFECTS__
|
|
14222
|
-
function
|
|
14222
|
+
function Sm(e, t) {
|
|
14223
14223
|
return new e({
|
|
14224
14224
|
type: "string",
|
|
14225
14225
|
format: "uuid",
|
|
14226
14226
|
check: "string_format",
|
|
14227
14227
|
abort: !1,
|
|
14228
|
-
...
|
|
14228
|
+
...q(t)
|
|
14229
14229
|
});
|
|
14230
14230
|
}
|
|
14231
14231
|
// @__NO_SIDE_EFFECTS__
|
|
14232
|
-
function
|
|
14232
|
+
function Cm(e, t) {
|
|
14233
14233
|
return new e({
|
|
14234
14234
|
type: "string",
|
|
14235
14235
|
format: "uuid",
|
|
14236
14236
|
check: "string_format",
|
|
14237
14237
|
abort: !1,
|
|
14238
14238
|
version: "v4",
|
|
14239
|
-
...
|
|
14239
|
+
...q(t)
|
|
14240
14240
|
});
|
|
14241
14241
|
}
|
|
14242
14242
|
// @__NO_SIDE_EFFECTS__
|
|
14243
|
-
function
|
|
14243
|
+
function wm(e, t) {
|
|
14244
14244
|
return new e({
|
|
14245
14245
|
type: "string",
|
|
14246
14246
|
format: "uuid",
|
|
14247
14247
|
check: "string_format",
|
|
14248
14248
|
abort: !1,
|
|
14249
14249
|
version: "v6",
|
|
14250
|
-
...
|
|
14250
|
+
...q(t)
|
|
14251
14251
|
});
|
|
14252
14252
|
}
|
|
14253
14253
|
// @__NO_SIDE_EFFECTS__
|
|
14254
|
-
function
|
|
14254
|
+
function Tm(e, t) {
|
|
14255
14255
|
return new e({
|
|
14256
14256
|
type: "string",
|
|
14257
14257
|
format: "uuid",
|
|
14258
14258
|
check: "string_format",
|
|
14259
14259
|
abort: !1,
|
|
14260
14260
|
version: "v7",
|
|
14261
|
-
...
|
|
14261
|
+
...q(t)
|
|
14262
14262
|
});
|
|
14263
14263
|
}
|
|
14264
14264
|
// @__NO_SIDE_EFFECTS__
|
|
14265
|
-
function
|
|
14265
|
+
function Em(e, t) {
|
|
14266
14266
|
return new e({
|
|
14267
14267
|
type: "string",
|
|
14268
14268
|
format: "url",
|
|
14269
14269
|
check: "string_format",
|
|
14270
14270
|
abort: !1,
|
|
14271
|
-
...
|
|
14271
|
+
...q(t)
|
|
14272
14272
|
});
|
|
14273
14273
|
}
|
|
14274
14274
|
// @__NO_SIDE_EFFECTS__
|
|
14275
|
-
function
|
|
14275
|
+
function Dm(e, t) {
|
|
14276
14276
|
return new e({
|
|
14277
14277
|
type: "string",
|
|
14278
14278
|
format: "emoji",
|
|
14279
14279
|
check: "string_format",
|
|
14280
14280
|
abort: !1,
|
|
14281
|
-
...
|
|
14281
|
+
...q(t)
|
|
14282
14282
|
});
|
|
14283
14283
|
}
|
|
14284
14284
|
// @__NO_SIDE_EFFECTS__
|
|
14285
|
-
function
|
|
14285
|
+
function Om(e, t) {
|
|
14286
14286
|
return new e({
|
|
14287
14287
|
type: "string",
|
|
14288
14288
|
format: "nanoid",
|
|
14289
14289
|
check: "string_format",
|
|
14290
14290
|
abort: !1,
|
|
14291
|
-
...
|
|
14291
|
+
...q(t)
|
|
14292
14292
|
});
|
|
14293
14293
|
}
|
|
14294
14294
|
// @__NO_SIDE_EFFECTS__
|
|
14295
|
-
function
|
|
14295
|
+
function km(e, t) {
|
|
14296
14296
|
return new e({
|
|
14297
14297
|
type: "string",
|
|
14298
14298
|
format: "cuid",
|
|
14299
14299
|
check: "string_format",
|
|
14300
14300
|
abort: !1,
|
|
14301
|
-
...
|
|
14301
|
+
...q(t)
|
|
14302
14302
|
});
|
|
14303
14303
|
}
|
|
14304
14304
|
// @__NO_SIDE_EFFECTS__
|
|
14305
|
-
function
|
|
14305
|
+
function Am(e, t) {
|
|
14306
14306
|
return new e({
|
|
14307
14307
|
type: "string",
|
|
14308
14308
|
format: "cuid2",
|
|
14309
14309
|
check: "string_format",
|
|
14310
14310
|
abort: !1,
|
|
14311
|
-
...
|
|
14311
|
+
...q(t)
|
|
14312
14312
|
});
|
|
14313
14313
|
}
|
|
14314
14314
|
// @__NO_SIDE_EFFECTS__
|
|
14315
|
-
function
|
|
14315
|
+
function jm(e, t) {
|
|
14316
14316
|
return new e({
|
|
14317
14317
|
type: "string",
|
|
14318
14318
|
format: "ulid",
|
|
14319
14319
|
check: "string_format",
|
|
14320
14320
|
abort: !1,
|
|
14321
|
-
...
|
|
14321
|
+
...q(t)
|
|
14322
14322
|
});
|
|
14323
14323
|
}
|
|
14324
14324
|
// @__NO_SIDE_EFFECTS__
|
|
14325
|
-
function
|
|
14325
|
+
function Mm(e, t) {
|
|
14326
14326
|
return new e({
|
|
14327
14327
|
type: "string",
|
|
14328
14328
|
format: "xid",
|
|
14329
14329
|
check: "string_format",
|
|
14330
14330
|
abort: !1,
|
|
14331
|
-
...
|
|
14331
|
+
...q(t)
|
|
14332
14332
|
});
|
|
14333
14333
|
}
|
|
14334
14334
|
// @__NO_SIDE_EFFECTS__
|
|
14335
|
-
function
|
|
14335
|
+
function Nm(e, t) {
|
|
14336
14336
|
return new e({
|
|
14337
14337
|
type: "string",
|
|
14338
14338
|
format: "ksuid",
|
|
14339
14339
|
check: "string_format",
|
|
14340
14340
|
abort: !1,
|
|
14341
|
-
...
|
|
14341
|
+
...q(t)
|
|
14342
14342
|
});
|
|
14343
14343
|
}
|
|
14344
14344
|
// @__NO_SIDE_EFFECTS__
|
|
14345
|
-
function
|
|
14345
|
+
function Pm(e, t) {
|
|
14346
14346
|
return new e({
|
|
14347
14347
|
type: "string",
|
|
14348
14348
|
format: "ipv4",
|
|
14349
14349
|
check: "string_format",
|
|
14350
14350
|
abort: !1,
|
|
14351
|
-
...
|
|
14351
|
+
...q(t)
|
|
14352
14352
|
});
|
|
14353
14353
|
}
|
|
14354
14354
|
// @__NO_SIDE_EFFECTS__
|
|
14355
|
-
function
|
|
14355
|
+
function Fm(e, t) {
|
|
14356
14356
|
return new e({
|
|
14357
14357
|
type: "string",
|
|
14358
14358
|
format: "ipv6",
|
|
14359
14359
|
check: "string_format",
|
|
14360
14360
|
abort: !1,
|
|
14361
|
-
...
|
|
14361
|
+
...q(t)
|
|
14362
14362
|
});
|
|
14363
14363
|
}
|
|
14364
14364
|
// @__NO_SIDE_EFFECTS__
|
|
14365
|
-
function
|
|
14365
|
+
function Im(e, t) {
|
|
14366
14366
|
return new e({
|
|
14367
14367
|
type: "string",
|
|
14368
14368
|
format: "cidrv4",
|
|
14369
14369
|
check: "string_format",
|
|
14370
14370
|
abort: !1,
|
|
14371
|
-
...
|
|
14371
|
+
...q(t)
|
|
14372
14372
|
});
|
|
14373
14373
|
}
|
|
14374
14374
|
// @__NO_SIDE_EFFECTS__
|
|
14375
|
-
function
|
|
14375
|
+
function Lm(e, t) {
|
|
14376
14376
|
return new e({
|
|
14377
14377
|
type: "string",
|
|
14378
14378
|
format: "cidrv6",
|
|
14379
14379
|
check: "string_format",
|
|
14380
14380
|
abort: !1,
|
|
14381
|
-
...
|
|
14381
|
+
...q(t)
|
|
14382
14382
|
});
|
|
14383
14383
|
}
|
|
14384
14384
|
// @__NO_SIDE_EFFECTS__
|
|
14385
|
-
function
|
|
14385
|
+
function Rm(e, t) {
|
|
14386
14386
|
return new e({
|
|
14387
14387
|
type: "string",
|
|
14388
14388
|
format: "base64",
|
|
14389
14389
|
check: "string_format",
|
|
14390
14390
|
abort: !1,
|
|
14391
|
-
...
|
|
14391
|
+
...q(t)
|
|
14392
14392
|
});
|
|
14393
14393
|
}
|
|
14394
14394
|
// @__NO_SIDE_EFFECTS__
|
|
14395
|
-
function
|
|
14395
|
+
function zm(e, t) {
|
|
14396
14396
|
return new e({
|
|
14397
14397
|
type: "string",
|
|
14398
14398
|
format: "base64url",
|
|
14399
14399
|
check: "string_format",
|
|
14400
14400
|
abort: !1,
|
|
14401
|
-
...
|
|
14401
|
+
...q(t)
|
|
14402
14402
|
});
|
|
14403
14403
|
}
|
|
14404
14404
|
// @__NO_SIDE_EFFECTS__
|
|
14405
|
-
function
|
|
14405
|
+
function Bm(e, t) {
|
|
14406
14406
|
return new e({
|
|
14407
14407
|
type: "string",
|
|
14408
14408
|
format: "e164",
|
|
14409
14409
|
check: "string_format",
|
|
14410
14410
|
abort: !1,
|
|
14411
|
-
...
|
|
14411
|
+
...q(t)
|
|
14412
14412
|
});
|
|
14413
14413
|
}
|
|
14414
14414
|
// @__NO_SIDE_EFFECTS__
|
|
14415
|
-
function
|
|
14415
|
+
function Vm(e, t) {
|
|
14416
14416
|
return new e({
|
|
14417
14417
|
type: "string",
|
|
14418
14418
|
format: "jwt",
|
|
14419
14419
|
check: "string_format",
|
|
14420
14420
|
abort: !1,
|
|
14421
|
-
...
|
|
14421
|
+
...q(t)
|
|
14422
14422
|
});
|
|
14423
14423
|
}
|
|
14424
14424
|
// @__NO_SIDE_EFFECTS__
|
|
14425
|
-
function
|
|
14425
|
+
function Hm(e, t) {
|
|
14426
14426
|
return new e({
|
|
14427
14427
|
type: "string",
|
|
14428
14428
|
format: "datetime",
|
|
@@ -14430,240 +14430,240 @@ function Vm(e, t) {
|
|
|
14430
14430
|
offset: !1,
|
|
14431
14431
|
local: !1,
|
|
14432
14432
|
precision: null,
|
|
14433
|
-
...
|
|
14433
|
+
...q(t)
|
|
14434
14434
|
});
|
|
14435
14435
|
}
|
|
14436
14436
|
// @__NO_SIDE_EFFECTS__
|
|
14437
|
-
function
|
|
14437
|
+
function Um(e, t) {
|
|
14438
14438
|
return new e({
|
|
14439
14439
|
type: "string",
|
|
14440
14440
|
format: "date",
|
|
14441
14441
|
check: "string_format",
|
|
14442
|
-
...
|
|
14442
|
+
...q(t)
|
|
14443
14443
|
});
|
|
14444
14444
|
}
|
|
14445
14445
|
// @__NO_SIDE_EFFECTS__
|
|
14446
|
-
function
|
|
14446
|
+
function Wm(e, t) {
|
|
14447
14447
|
return new e({
|
|
14448
14448
|
type: "string",
|
|
14449
14449
|
format: "time",
|
|
14450
14450
|
check: "string_format",
|
|
14451
14451
|
precision: null,
|
|
14452
|
-
...
|
|
14452
|
+
...q(t)
|
|
14453
14453
|
});
|
|
14454
14454
|
}
|
|
14455
14455
|
// @__NO_SIDE_EFFECTS__
|
|
14456
|
-
function
|
|
14456
|
+
function Gm(e, t) {
|
|
14457
14457
|
return new e({
|
|
14458
14458
|
type: "string",
|
|
14459
14459
|
format: "duration",
|
|
14460
14460
|
check: "string_format",
|
|
14461
|
-
...
|
|
14461
|
+
...q(t)
|
|
14462
14462
|
});
|
|
14463
14463
|
}
|
|
14464
14464
|
// @__NO_SIDE_EFFECTS__
|
|
14465
|
-
function
|
|
14465
|
+
function Km(e, t) {
|
|
14466
14466
|
return new e({
|
|
14467
14467
|
type: "number",
|
|
14468
14468
|
checks: [],
|
|
14469
|
-
...
|
|
14469
|
+
...q(t)
|
|
14470
14470
|
});
|
|
14471
14471
|
}
|
|
14472
14472
|
// @__NO_SIDE_EFFECTS__
|
|
14473
|
-
function
|
|
14473
|
+
function qm(e, t) {
|
|
14474
14474
|
return new e({
|
|
14475
14475
|
type: "number",
|
|
14476
14476
|
check: "number_format",
|
|
14477
14477
|
abort: !1,
|
|
14478
14478
|
format: "safeint",
|
|
14479
|
-
...
|
|
14479
|
+
...q(t)
|
|
14480
14480
|
});
|
|
14481
14481
|
}
|
|
14482
14482
|
// @__NO_SIDE_EFFECTS__
|
|
14483
|
-
function
|
|
14483
|
+
function Jm(e, t) {
|
|
14484
14484
|
return new e({
|
|
14485
14485
|
type: "boolean",
|
|
14486
|
-
...
|
|
14486
|
+
...q(t)
|
|
14487
14487
|
});
|
|
14488
14488
|
}
|
|
14489
14489
|
// @__NO_SIDE_EFFECTS__
|
|
14490
|
-
function
|
|
14490
|
+
function Ym(e) {
|
|
14491
14491
|
return new e({ type: "unknown" });
|
|
14492
14492
|
}
|
|
14493
14493
|
// @__NO_SIDE_EFFECTS__
|
|
14494
|
-
function
|
|
14494
|
+
function Xm(e, t) {
|
|
14495
14495
|
return new e({
|
|
14496
14496
|
type: "never",
|
|
14497
|
-
...
|
|
14497
|
+
...q(t)
|
|
14498
14498
|
});
|
|
14499
14499
|
}
|
|
14500
14500
|
// @__NO_SIDE_EFFECTS__
|
|
14501
|
-
function
|
|
14502
|
-
return new
|
|
14501
|
+
function Zm(e, t) {
|
|
14502
|
+
return new Wf({
|
|
14503
14503
|
check: "less_than",
|
|
14504
|
-
...
|
|
14504
|
+
...q(t),
|
|
14505
14505
|
value: e,
|
|
14506
14506
|
inclusive: !1
|
|
14507
14507
|
});
|
|
14508
14508
|
}
|
|
14509
14509
|
// @__NO_SIDE_EFFECTS__
|
|
14510
|
-
function
|
|
14511
|
-
return new
|
|
14510
|
+
function Qm(e, t) {
|
|
14511
|
+
return new Wf({
|
|
14512
14512
|
check: "less_than",
|
|
14513
|
-
...
|
|
14513
|
+
...q(t),
|
|
14514
14514
|
value: e,
|
|
14515
14515
|
inclusive: !0
|
|
14516
14516
|
});
|
|
14517
14517
|
}
|
|
14518
14518
|
// @__NO_SIDE_EFFECTS__
|
|
14519
|
-
function
|
|
14520
|
-
return new
|
|
14519
|
+
function $m(e, t) {
|
|
14520
|
+
return new Gf({
|
|
14521
14521
|
check: "greater_than",
|
|
14522
|
-
...
|
|
14522
|
+
...q(t),
|
|
14523
14523
|
value: e,
|
|
14524
14524
|
inclusive: !1
|
|
14525
14525
|
});
|
|
14526
14526
|
}
|
|
14527
14527
|
// @__NO_SIDE_EFFECTS__
|
|
14528
|
-
function
|
|
14529
|
-
return new
|
|
14528
|
+
function eh(e, t) {
|
|
14529
|
+
return new Gf({
|
|
14530
14530
|
check: "greater_than",
|
|
14531
|
-
...
|
|
14531
|
+
...q(t),
|
|
14532
14532
|
value: e,
|
|
14533
14533
|
inclusive: !0
|
|
14534
14534
|
});
|
|
14535
14535
|
}
|
|
14536
14536
|
// @__NO_SIDE_EFFECTS__
|
|
14537
|
-
function
|
|
14538
|
-
return new
|
|
14537
|
+
function th(e, t) {
|
|
14538
|
+
return new Kf({
|
|
14539
14539
|
check: "multiple_of",
|
|
14540
|
-
...
|
|
14540
|
+
...q(t),
|
|
14541
14541
|
value: e
|
|
14542
14542
|
});
|
|
14543
14543
|
}
|
|
14544
14544
|
// @__NO_SIDE_EFFECTS__
|
|
14545
|
-
function
|
|
14546
|
-
return new
|
|
14545
|
+
function nh(e, t) {
|
|
14546
|
+
return new Jf({
|
|
14547
14547
|
check: "max_length",
|
|
14548
|
-
...
|
|
14548
|
+
...q(t),
|
|
14549
14549
|
maximum: e
|
|
14550
14550
|
});
|
|
14551
14551
|
}
|
|
14552
14552
|
// @__NO_SIDE_EFFECTS__
|
|
14553
|
-
function
|
|
14554
|
-
return new
|
|
14553
|
+
function rh(e, t) {
|
|
14554
|
+
return new Yf({
|
|
14555
14555
|
check: "min_length",
|
|
14556
|
-
...
|
|
14556
|
+
...q(t),
|
|
14557
14557
|
minimum: e
|
|
14558
14558
|
});
|
|
14559
14559
|
}
|
|
14560
14560
|
// @__NO_SIDE_EFFECTS__
|
|
14561
|
-
function
|
|
14562
|
-
return new
|
|
14561
|
+
function ih(e, t) {
|
|
14562
|
+
return new Xf({
|
|
14563
14563
|
check: "length_equals",
|
|
14564
|
-
...
|
|
14564
|
+
...q(t),
|
|
14565
14565
|
length: e
|
|
14566
14566
|
});
|
|
14567
14567
|
}
|
|
14568
14568
|
// @__NO_SIDE_EFFECTS__
|
|
14569
|
-
function
|
|
14570
|
-
return new
|
|
14569
|
+
function ah(e, t) {
|
|
14570
|
+
return new Qf({
|
|
14571
14571
|
check: "string_format",
|
|
14572
14572
|
format: "regex",
|
|
14573
|
-
...
|
|
14573
|
+
...q(t),
|
|
14574
14574
|
pattern: e
|
|
14575
14575
|
});
|
|
14576
14576
|
}
|
|
14577
14577
|
// @__NO_SIDE_EFFECTS__
|
|
14578
|
-
function
|
|
14579
|
-
return new
|
|
14578
|
+
function oh(e) {
|
|
14579
|
+
return new $f({
|
|
14580
14580
|
check: "string_format",
|
|
14581
14581
|
format: "lowercase",
|
|
14582
|
-
...
|
|
14582
|
+
...q(e)
|
|
14583
14583
|
});
|
|
14584
14584
|
}
|
|
14585
14585
|
// @__NO_SIDE_EFFECTS__
|
|
14586
|
-
function
|
|
14587
|
-
return new
|
|
14586
|
+
function sh(e) {
|
|
14587
|
+
return new ep({
|
|
14588
14588
|
check: "string_format",
|
|
14589
14589
|
format: "uppercase",
|
|
14590
|
-
...
|
|
14590
|
+
...q(e)
|
|
14591
14591
|
});
|
|
14592
14592
|
}
|
|
14593
14593
|
// @__NO_SIDE_EFFECTS__
|
|
14594
|
-
function
|
|
14595
|
-
return new
|
|
14594
|
+
function ch(e, t) {
|
|
14595
|
+
return new tp({
|
|
14596
14596
|
check: "string_format",
|
|
14597
14597
|
format: "includes",
|
|
14598
|
-
...
|
|
14598
|
+
...q(t),
|
|
14599
14599
|
includes: e
|
|
14600
14600
|
});
|
|
14601
14601
|
}
|
|
14602
14602
|
// @__NO_SIDE_EFFECTS__
|
|
14603
|
-
function
|
|
14604
|
-
return new
|
|
14603
|
+
function lh(e, t) {
|
|
14604
|
+
return new np({
|
|
14605
14605
|
check: "string_format",
|
|
14606
14606
|
format: "starts_with",
|
|
14607
|
-
...
|
|
14607
|
+
...q(t),
|
|
14608
14608
|
prefix: e
|
|
14609
14609
|
});
|
|
14610
14610
|
}
|
|
14611
14611
|
// @__NO_SIDE_EFFECTS__
|
|
14612
|
-
function
|
|
14613
|
-
return new
|
|
14612
|
+
function uh(e, t) {
|
|
14613
|
+
return new rp({
|
|
14614
14614
|
check: "string_format",
|
|
14615
14615
|
format: "ends_with",
|
|
14616
|
-
...
|
|
14616
|
+
...q(t),
|
|
14617
14617
|
suffix: e
|
|
14618
14618
|
});
|
|
14619
14619
|
}
|
|
14620
14620
|
// @__NO_SIDE_EFFECTS__
|
|
14621
|
-
function
|
|
14622
|
-
return new
|
|
14621
|
+
function dh(e) {
|
|
14622
|
+
return new ip({
|
|
14623
14623
|
check: "overwrite",
|
|
14624
14624
|
tx: e
|
|
14625
14625
|
});
|
|
14626
14626
|
}
|
|
14627
14627
|
// @__NO_SIDE_EFFECTS__
|
|
14628
|
-
function
|
|
14629
|
-
return /* @__PURE__ */
|
|
14630
|
-
}
|
|
14631
|
-
// @__NO_SIDE_EFFECTS__
|
|
14632
|
-
function fh() {
|
|
14633
|
-
return /* @__PURE__ */ uh((e) => e.trim());
|
|
14628
|
+
function fh(e) {
|
|
14629
|
+
return /* @__PURE__ */ dh((t) => t.normalize(e));
|
|
14634
14630
|
}
|
|
14635
14631
|
// @__NO_SIDE_EFFECTS__
|
|
14636
14632
|
function ph() {
|
|
14637
|
-
return /* @__PURE__ */
|
|
14633
|
+
return /* @__PURE__ */ dh((e) => e.trim());
|
|
14638
14634
|
}
|
|
14639
14635
|
// @__NO_SIDE_EFFECTS__
|
|
14640
14636
|
function mh() {
|
|
14641
|
-
return /* @__PURE__ */
|
|
14637
|
+
return /* @__PURE__ */ dh((e) => e.toLowerCase());
|
|
14642
14638
|
}
|
|
14643
14639
|
// @__NO_SIDE_EFFECTS__
|
|
14644
14640
|
function hh() {
|
|
14645
|
-
return /* @__PURE__ */
|
|
14641
|
+
return /* @__PURE__ */ dh((e) => e.toUpperCase());
|
|
14646
14642
|
}
|
|
14647
14643
|
// @__NO_SIDE_EFFECTS__
|
|
14648
|
-
function gh(
|
|
14644
|
+
function gh() {
|
|
14645
|
+
return /* @__PURE__ */ dh((e) => bd(e));
|
|
14646
|
+
}
|
|
14647
|
+
// @__NO_SIDE_EFFECTS__
|
|
14648
|
+
function _h(e, t, n) {
|
|
14649
14649
|
return new e({
|
|
14650
14650
|
type: "array",
|
|
14651
14651
|
element: t,
|
|
14652
|
-
...
|
|
14652
|
+
...q(n)
|
|
14653
14653
|
});
|
|
14654
14654
|
}
|
|
14655
14655
|
// @__NO_SIDE_EFFECTS__
|
|
14656
|
-
function
|
|
14656
|
+
function vh(e, t, n) {
|
|
14657
14657
|
return new e({
|
|
14658
14658
|
type: "custom",
|
|
14659
14659
|
check: "custom",
|
|
14660
14660
|
fn: t,
|
|
14661
|
-
...
|
|
14661
|
+
...q(n)
|
|
14662
14662
|
});
|
|
14663
14663
|
}
|
|
14664
14664
|
// @__NO_SIDE_EFFECTS__
|
|
14665
|
-
function
|
|
14666
|
-
let n = /* @__PURE__ */
|
|
14665
|
+
function yh(e, t) {
|
|
14666
|
+
let n = /* @__PURE__ */ bh((t) => (t.addIssue = (e) => {
|
|
14667
14667
|
if (typeof e == "string") t.issues.push(Wd(e, t.value, n._zod.def));
|
|
14668
14668
|
else {
|
|
14669
14669
|
let r = e;
|
|
@@ -14673,20 +14673,20 @@ function vh(e, t) {
|
|
|
14673
14673
|
return n;
|
|
14674
14674
|
}
|
|
14675
14675
|
// @__NO_SIDE_EFFECTS__
|
|
14676
|
-
function
|
|
14677
|
-
let n = new
|
|
14676
|
+
function bh(e, t) {
|
|
14677
|
+
let n = new Hf({
|
|
14678
14678
|
check: "custom",
|
|
14679
|
-
...
|
|
14679
|
+
...q(t)
|
|
14680
14680
|
});
|
|
14681
14681
|
return n._zod.check = e, n;
|
|
14682
14682
|
}
|
|
14683
14683
|
//#endregion
|
|
14684
14684
|
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
14685
|
-
function
|
|
14685
|
+
function xh(e) {
|
|
14686
14686
|
let t = e?.target ?? "draft-2020-12";
|
|
14687
14687
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
14688
14688
|
processors: e.processors ?? {},
|
|
14689
|
-
metadataRegistry: e?.metadata ??
|
|
14689
|
+
metadataRegistry: e?.metadata ?? vm,
|
|
14690
14690
|
target: t,
|
|
14691
14691
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
14692
14692
|
override: e?.override ?? (() => {}),
|
|
@@ -14732,7 +14732,7 @@ function X(e, t, n = {
|
|
|
14732
14732
|
let c = t.metadataRegistry.get(e);
|
|
14733
14733
|
return c && Object.assign(o.schema, c), t.io === "input" && Z(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
14734
14734
|
}
|
|
14735
|
-
function
|
|
14735
|
+
function Sh(e, t) {
|
|
14736
14736
|
let n = e.seen.get(t);
|
|
14737
14737
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
14738
14738
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -14802,7 +14802,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14802
14802
|
}
|
|
14803
14803
|
}
|
|
14804
14804
|
}
|
|
14805
|
-
function
|
|
14805
|
+
function Ch(e, t) {
|
|
14806
14806
|
let n = e.seen.get(t);
|
|
14807
14807
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
14808
14808
|
let r = (t) => {
|
|
@@ -14849,8 +14849,8 @@ function Sh(e, t) {
|
|
|
14849
14849
|
value: {
|
|
14850
14850
|
...t["~standard"],
|
|
14851
14851
|
jsonSchema: {
|
|
14852
|
-
input:
|
|
14853
|
-
output:
|
|
14852
|
+
input: Th(t, "input", e.processors),
|
|
14853
|
+
output: Th(t, "output", e.processors)
|
|
14854
14854
|
}
|
|
14855
14855
|
},
|
|
14856
14856
|
enumerable: !1,
|
|
@@ -14887,60 +14887,60 @@ function Z(e, t) {
|
|
|
14887
14887
|
}
|
|
14888
14888
|
return !1;
|
|
14889
14889
|
}
|
|
14890
|
-
var
|
|
14891
|
-
let r =
|
|
14890
|
+
var wh = (e, t = {}) => (n) => {
|
|
14891
|
+
let r = xh({
|
|
14892
14892
|
...n,
|
|
14893
14893
|
processors: t
|
|
14894
14894
|
});
|
|
14895
|
-
return X(e, r),
|
|
14896
|
-
},
|
|
14897
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
14895
|
+
return X(e, r), Sh(r, e), Ch(r, e);
|
|
14896
|
+
}, Th = (e, t, n = {}) => (r) => {
|
|
14897
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = xh({
|
|
14898
14898
|
...i ?? {},
|
|
14899
14899
|
target: a,
|
|
14900
14900
|
io: t,
|
|
14901
14901
|
processors: n
|
|
14902
14902
|
});
|
|
14903
|
-
return X(e, o),
|
|
14904
|
-
},
|
|
14903
|
+
return X(e, o), Sh(o, e), Ch(o, e);
|
|
14904
|
+
}, Eh = {
|
|
14905
14905
|
guid: "uuid",
|
|
14906
14906
|
url: "uri",
|
|
14907
14907
|
datetime: "date-time",
|
|
14908
14908
|
json_string: "json-string",
|
|
14909
14909
|
regex: ""
|
|
14910
|
-
},
|
|
14910
|
+
}, Dh = (e, t, n, r) => {
|
|
14911
14911
|
let i = n;
|
|
14912
14912
|
i.type = "string";
|
|
14913
14913
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
14914
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
14914
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Eh[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
14915
14915
|
let e = [...c];
|
|
14916
14916
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
14917
14917
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
14918
14918
|
pattern: e.source
|
|
14919
14919
|
}))]);
|
|
14920
14920
|
}
|
|
14921
|
-
},
|
|
14921
|
+
}, Oh = (e, t, n, r) => {
|
|
14922
14922
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
14923
14923
|
typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
|
|
14924
14924
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
14925
14925
|
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
|
|
14926
|
-
}, Oh = (e, t, n, r) => {
|
|
14927
|
-
n.type = "boolean";
|
|
14928
14926
|
}, kh = (e, t, n, r) => {
|
|
14929
|
-
n.
|
|
14927
|
+
n.type = "boolean";
|
|
14930
14928
|
}, Ah = (e, t, n, r) => {
|
|
14929
|
+
n.not = {};
|
|
14930
|
+
}, jh = (e, t, n, r) => {
|
|
14931
14931
|
let i = e._zod.def, a = ud(i.entries);
|
|
14932
14932
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
14933
|
-
}, jh = (e, t, n, r) => {
|
|
14934
|
-
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
14935
14933
|
}, Mh = (e, t, n, r) => {
|
|
14936
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
14934
|
+
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
14937
14935
|
}, Nh = (e, t, n, r) => {
|
|
14936
|
+
if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
|
|
14937
|
+
}, Ph = (e, t, n, r) => {
|
|
14938
14938
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
14939
14939
|
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = X(a.element, t, {
|
|
14940
14940
|
...r,
|
|
14941
14941
|
path: [...r.path, "items"]
|
|
14942
14942
|
});
|
|
14943
|
-
},
|
|
14943
|
+
}, Fh = (e, t, n, r) => {
|
|
14944
14944
|
let i = n, a = e._zod.def;
|
|
14945
14945
|
i.type = "object", i.properties = {};
|
|
14946
14946
|
let o = a.shape;
|
|
@@ -14960,7 +14960,7 @@ var Ch = (e, t = {}) => (n) => {
|
|
|
14960
14960
|
...r,
|
|
14961
14961
|
path: [...r.path, "additionalProperties"]
|
|
14962
14962
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
14963
|
-
},
|
|
14963
|
+
}, Ih = (e, t, n, r) => {
|
|
14964
14964
|
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => X(e, t, {
|
|
14965
14965
|
...r,
|
|
14966
14966
|
path: [
|
|
@@ -14970,7 +14970,7 @@ var Ch = (e, t = {}) => (n) => {
|
|
|
14970
14970
|
]
|
|
14971
14971
|
}));
|
|
14972
14972
|
a ? n.oneOf = o : n.anyOf = o;
|
|
14973
|
-
},
|
|
14973
|
+
}, Lh = (e, t, n, r) => {
|
|
14974
14974
|
let i = e._zod.def, a = X(i.left, t, {
|
|
14975
14975
|
...r,
|
|
14976
14976
|
path: [
|
|
@@ -14987,25 +14987,25 @@ var Ch = (e, t = {}) => (n) => {
|
|
|
14987
14987
|
]
|
|
14988
14988
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1;
|
|
14989
14989
|
n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
14990
|
-
},
|
|
14990
|
+
}, Rh = (e, t, n, r) => {
|
|
14991
14991
|
let i = e._zod.def, a = X(i.innerType, t, r), o = t.seen.get(e);
|
|
14992
14992
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
14993
|
-
},
|
|
14993
|
+
}, zh = (e, t, n, r) => {
|
|
14994
14994
|
let i = e._zod.def;
|
|
14995
14995
|
X(i.innerType, t, r);
|
|
14996
14996
|
let a = t.seen.get(e);
|
|
14997
14997
|
a.ref = i.innerType;
|
|
14998
|
-
},
|
|
14998
|
+
}, Bh = (e, t, n, r) => {
|
|
14999
14999
|
let i = e._zod.def;
|
|
15000
15000
|
X(i.innerType, t, r);
|
|
15001
15001
|
let a = t.seen.get(e);
|
|
15002
15002
|
a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
15003
|
-
},
|
|
15003
|
+
}, Vh = (e, t, n, r) => {
|
|
15004
15004
|
let i = e._zod.def;
|
|
15005
15005
|
X(i.innerType, t, r);
|
|
15006
15006
|
let a = t.seen.get(e);
|
|
15007
15007
|
a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
15008
|
-
},
|
|
15008
|
+
}, Hh = (e, t, n, r) => {
|
|
15009
15009
|
let i = e._zod.def;
|
|
15010
15010
|
X(i.innerType, t, r);
|
|
15011
15011
|
let a = t.seen.get(e);
|
|
@@ -15017,46 +15017,46 @@ var Ch = (e, t = {}) => (n) => {
|
|
|
15017
15017
|
throw Error("Dynamic catch values are not supported in JSON Schema");
|
|
15018
15018
|
}
|
|
15019
15019
|
n.default = o;
|
|
15020
|
-
},
|
|
15020
|
+
}, Uh = (e, t, n, r) => {
|
|
15021
15021
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
15022
15022
|
X(o, t, r);
|
|
15023
15023
|
let s = t.seen.get(e);
|
|
15024
15024
|
s.ref = o;
|
|
15025
|
-
},
|
|
15025
|
+
}, Wh = (e, t, n, r) => {
|
|
15026
15026
|
let i = e._zod.def;
|
|
15027
15027
|
X(i.innerType, t, r);
|
|
15028
15028
|
let a = t.seen.get(e);
|
|
15029
15029
|
a.ref = i.innerType, n.readOnly = !0;
|
|
15030
|
-
},
|
|
15030
|
+
}, Gh = (e, t, n, r) => {
|
|
15031
15031
|
let i = e._zod.def;
|
|
15032
15032
|
X(i.innerType, t, r);
|
|
15033
15033
|
let a = t.seen.get(e);
|
|
15034
15034
|
a.ref = i.innerType;
|
|
15035
|
-
},
|
|
15036
|
-
vp.init(e, t), $.init(e, t);
|
|
15037
|
-
});
|
|
15038
|
-
function Kh(e) {
|
|
15039
|
-
return /* @__PURE__ */ Vm(Gh, e);
|
|
15040
|
-
}
|
|
15041
|
-
var qh = /*@__PURE__*/ W("ZodISODate", (e, t) => {
|
|
15035
|
+
}, Kh = /*@__PURE__*/ G("ZodISODateTime", (e, t) => {
|
|
15042
15036
|
yp.init(e, t), $.init(e, t);
|
|
15043
15037
|
});
|
|
15044
|
-
function
|
|
15045
|
-
return /* @__PURE__ */ Hm(
|
|
15038
|
+
function qh(e) {
|
|
15039
|
+
return /* @__PURE__ */ Hm(Kh, e);
|
|
15046
15040
|
}
|
|
15047
|
-
var
|
|
15041
|
+
var Jh = /*@__PURE__*/ G("ZodISODate", (e, t) => {
|
|
15048
15042
|
bp.init(e, t), $.init(e, t);
|
|
15049
15043
|
});
|
|
15050
|
-
function
|
|
15051
|
-
return /* @__PURE__ */ Um(
|
|
15044
|
+
function Yh(e) {
|
|
15045
|
+
return /* @__PURE__ */ Um(Jh, e);
|
|
15052
15046
|
}
|
|
15053
|
-
var
|
|
15047
|
+
var Xh = /*@__PURE__*/ G("ZodISOTime", (e, t) => {
|
|
15054
15048
|
xp.init(e, t), $.init(e, t);
|
|
15055
15049
|
});
|
|
15056
|
-
function
|
|
15057
|
-
return /* @__PURE__ */ Wm(
|
|
15050
|
+
function Zh(e) {
|
|
15051
|
+
return /* @__PURE__ */ Wm(Xh, e);
|
|
15058
15052
|
}
|
|
15059
|
-
var
|
|
15053
|
+
var Qh = /*@__PURE__*/ G("ZodISODuration", (e, t) => {
|
|
15054
|
+
Sp.init(e, t), $.init(e, t);
|
|
15055
|
+
});
|
|
15056
|
+
function $h(e) {
|
|
15057
|
+
return /* @__PURE__ */ Gm(Qh, e);
|
|
15058
|
+
}
|
|
15059
|
+
var eg = /*@__PURE__*/ G("ZodError", (e, t) => {
|
|
15060
15060
|
Kd.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
15061
15061
|
format: { value: (t) => Yd(e, t) },
|
|
15062
15062
|
flatten: { value: (t) => Jd(e, t) },
|
|
@@ -15070,10 +15070,10 @@ var $h = /*@__PURE__*/ W("ZodError", (e, t) => {
|
|
|
15070
15070
|
return e.issues.length === 0;
|
|
15071
15071
|
} }
|
|
15072
15072
|
});
|
|
15073
|
-
}, { Parent: Error }),
|
|
15074
|
-
function
|
|
15075
|
-
let r = Object.getPrototypeOf(e), i =
|
|
15076
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
15073
|
+
}, { Parent: Error }), tg = /* @__PURE__ */ Xd(eg), ng = /* @__PURE__ */ Zd(eg), rg = /* @__PURE__ */ Qd(eg), ig = /* @__PURE__ */ ef(eg), ag = /* @__PURE__ */ nf(eg), og = /* @__PURE__ */ rf(eg), sg = /* @__PURE__ */ af(eg), cg = /* @__PURE__ */ of(eg), lg = /* @__PURE__ */ sf(eg), ug = /* @__PURE__ */ cf(eg), dg = /* @__PURE__ */ lf(eg), fg = /* @__PURE__ */ uf(eg), pg = /* @__PURE__ */ new WeakMap();
|
|
15074
|
+
function mg(e, t, n) {
|
|
15075
|
+
let r = Object.getPrototypeOf(e), i = pg.get(r);
|
|
15076
|
+
if (i || (i = /* @__PURE__ */ new Set(), pg.set(r, i)), !i.has(t)) {
|
|
15077
15077
|
i.add(t);
|
|
15078
15078
|
for (let e in n) {
|
|
15079
15079
|
let t = n[e];
|
|
@@ -15101,10 +15101,10 @@ function pg(e, t, n) {
|
|
|
15101
15101
|
}
|
|
15102
15102
|
}
|
|
15103
15103
|
}
|
|
15104
|
-
var Q = /*@__PURE__*/
|
|
15105
|
-
input:
|
|
15106
|
-
output:
|
|
15107
|
-
} }), e.toJSONSchema =
|
|
15104
|
+
var Q = /*@__PURE__*/ G("ZodType", (e, t) => (J.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
15105
|
+
input: Th(e, "input"),
|
|
15106
|
+
output: Th(e, "output")
|
|
15107
|
+
} }), e.toJSONSchema = wh(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => tg(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => rg(e, t, n), e.parseAsync = async (t, n) => ng(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ig(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => ag(e, t, n), e.decode = (t, n) => og(e, t, n), e.encodeAsync = async (t, n) => sg(e, t, n), e.decodeAsync = async (t, n) => cg(e, t, n), e.safeEncode = (t, n) => lg(e, t, n), e.safeDecode = (t, n) => ug(e, t, n), e.safeEncodeAsync = async (t, n) => dg(e, t, n), e.safeDecodeAsync = async (t, n) => fg(e, t, n), mg(e, "ZodType", {
|
|
15108
15108
|
check(...e) {
|
|
15109
15109
|
let t = this.def;
|
|
15110
15110
|
return this.clone(vd(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -15126,64 +15126,64 @@ var Q = /*@__PURE__*/ W("ZodType", (e, t) => (J.init(e, t), Object.assign(e["~st
|
|
|
15126
15126
|
return e.add(this, t), this;
|
|
15127
15127
|
},
|
|
15128
15128
|
refine(e, t) {
|
|
15129
|
-
return this.check(
|
|
15129
|
+
return this.check(w_(e, t));
|
|
15130
15130
|
},
|
|
15131
15131
|
superRefine(e, t) {
|
|
15132
|
-
return this.check(
|
|
15132
|
+
return this.check(T_(e, t));
|
|
15133
15133
|
},
|
|
15134
15134
|
overwrite(e) {
|
|
15135
|
-
return this.check(/* @__PURE__ */
|
|
15135
|
+
return this.check(/* @__PURE__ */ dh(e));
|
|
15136
15136
|
},
|
|
15137
15137
|
optional() {
|
|
15138
|
-
return
|
|
15138
|
+
return o_(this);
|
|
15139
15139
|
},
|
|
15140
15140
|
exactOptional() {
|
|
15141
|
-
return
|
|
15141
|
+
return c_(this);
|
|
15142
15142
|
},
|
|
15143
15143
|
nullable() {
|
|
15144
|
-
return
|
|
15144
|
+
return u_(this);
|
|
15145
15145
|
},
|
|
15146
15146
|
nullish() {
|
|
15147
|
-
return
|
|
15147
|
+
return o_(u_(this));
|
|
15148
15148
|
},
|
|
15149
15149
|
nonoptional(e) {
|
|
15150
|
-
return
|
|
15150
|
+
return g_(this, e);
|
|
15151
15151
|
},
|
|
15152
15152
|
array() {
|
|
15153
|
-
return
|
|
15153
|
+
return Jg(this);
|
|
15154
15154
|
},
|
|
15155
15155
|
or(e) {
|
|
15156
|
-
return
|
|
15156
|
+
return Qg([this, e]);
|
|
15157
15157
|
},
|
|
15158
15158
|
and(e) {
|
|
15159
|
-
return
|
|
15159
|
+
return e_(this, e);
|
|
15160
15160
|
},
|
|
15161
15161
|
transform(e) {
|
|
15162
|
-
return
|
|
15162
|
+
return b_(this, i_(e));
|
|
15163
15163
|
},
|
|
15164
15164
|
default(e) {
|
|
15165
|
-
return
|
|
15165
|
+
return f_(this, e);
|
|
15166
15166
|
},
|
|
15167
15167
|
prefault(e) {
|
|
15168
|
-
return
|
|
15168
|
+
return m_(this, e);
|
|
15169
15169
|
},
|
|
15170
15170
|
catch(e) {
|
|
15171
|
-
return
|
|
15171
|
+
return v_(this, e);
|
|
15172
15172
|
},
|
|
15173
15173
|
pipe(e) {
|
|
15174
|
-
return
|
|
15174
|
+
return b_(this, e);
|
|
15175
15175
|
},
|
|
15176
15176
|
readonly() {
|
|
15177
|
-
return
|
|
15177
|
+
return S_(this);
|
|
15178
15178
|
},
|
|
15179
15179
|
describe(e) {
|
|
15180
15180
|
let t = this.clone();
|
|
15181
|
-
return
|
|
15181
|
+
return vm.add(t, { description: e }), t;
|
|
15182
15182
|
},
|
|
15183
15183
|
meta(...e) {
|
|
15184
|
-
if (e.length === 0) return
|
|
15184
|
+
if (e.length === 0) return vm.get(this);
|
|
15185
15185
|
let t = this.clone();
|
|
15186
|
-
return
|
|
15186
|
+
return vm.add(t, e[0]), t;
|
|
15187
15187
|
},
|
|
15188
15188
|
isOptional() {
|
|
15189
15189
|
return this.safeParse(void 0).success;
|
|
@@ -15196,148 +15196,148 @@ var Q = /*@__PURE__*/ W("ZodType", (e, t) => (J.init(e, t), Object.assign(e["~st
|
|
|
15196
15196
|
}
|
|
15197
15197
|
}), Object.defineProperty(e, "description", {
|
|
15198
15198
|
get() {
|
|
15199
|
-
return
|
|
15199
|
+
return vm.get(e)?.description;
|
|
15200
15200
|
},
|
|
15201
15201
|
configurable: !0
|
|
15202
|
-
}), e)),
|
|
15203
|
-
|
|
15202
|
+
}), e)), hg = /*@__PURE__*/ G("_ZodString", (e, t) => {
|
|
15203
|
+
sp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dh(e, t, n, r);
|
|
15204
15204
|
let n = e._zod.bag;
|
|
15205
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null,
|
|
15205
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, mg(e, "_ZodString", {
|
|
15206
15206
|
regex(...e) {
|
|
15207
|
-
return this.check(/* @__PURE__ */
|
|
15207
|
+
return this.check(/* @__PURE__ */ ah(...e));
|
|
15208
15208
|
},
|
|
15209
15209
|
includes(...e) {
|
|
15210
|
-
return this.check(/* @__PURE__ */
|
|
15210
|
+
return this.check(/* @__PURE__ */ ch(...e));
|
|
15211
15211
|
},
|
|
15212
15212
|
startsWith(...e) {
|
|
15213
|
-
return this.check(/* @__PURE__ */
|
|
15213
|
+
return this.check(/* @__PURE__ */ lh(...e));
|
|
15214
15214
|
},
|
|
15215
15215
|
endsWith(...e) {
|
|
15216
|
-
return this.check(/* @__PURE__ */
|
|
15216
|
+
return this.check(/* @__PURE__ */ uh(...e));
|
|
15217
15217
|
},
|
|
15218
15218
|
min(...e) {
|
|
15219
|
-
return this.check(/* @__PURE__ */
|
|
15219
|
+
return this.check(/* @__PURE__ */ rh(...e));
|
|
15220
15220
|
},
|
|
15221
15221
|
max(...e) {
|
|
15222
|
-
return this.check(/* @__PURE__ */
|
|
15222
|
+
return this.check(/* @__PURE__ */ nh(...e));
|
|
15223
15223
|
},
|
|
15224
15224
|
length(...e) {
|
|
15225
|
-
return this.check(/* @__PURE__ */
|
|
15225
|
+
return this.check(/* @__PURE__ */ ih(...e));
|
|
15226
15226
|
},
|
|
15227
15227
|
nonempty(...e) {
|
|
15228
|
-
return this.check(/* @__PURE__ */
|
|
15228
|
+
return this.check(/* @__PURE__ */ rh(1, ...e));
|
|
15229
15229
|
},
|
|
15230
15230
|
lowercase(e) {
|
|
15231
|
-
return this.check(/* @__PURE__ */
|
|
15231
|
+
return this.check(/* @__PURE__ */ oh(e));
|
|
15232
15232
|
},
|
|
15233
15233
|
uppercase(e) {
|
|
15234
|
-
return this.check(/* @__PURE__ */
|
|
15234
|
+
return this.check(/* @__PURE__ */ sh(e));
|
|
15235
15235
|
},
|
|
15236
15236
|
trim() {
|
|
15237
|
-
return this.check(/* @__PURE__ */
|
|
15237
|
+
return this.check(/* @__PURE__ */ ph());
|
|
15238
15238
|
},
|
|
15239
15239
|
normalize(...e) {
|
|
15240
|
-
return this.check(/* @__PURE__ */
|
|
15240
|
+
return this.check(/* @__PURE__ */ fh(...e));
|
|
15241
15241
|
},
|
|
15242
15242
|
toLowerCase() {
|
|
15243
|
-
return this.check(/* @__PURE__ */
|
|
15243
|
+
return this.check(/* @__PURE__ */ mh());
|
|
15244
15244
|
},
|
|
15245
15245
|
toUpperCase() {
|
|
15246
|
-
return this.check(/* @__PURE__ */
|
|
15246
|
+
return this.check(/* @__PURE__ */ hh());
|
|
15247
15247
|
},
|
|
15248
15248
|
slugify() {
|
|
15249
|
-
return this.check(/* @__PURE__ */
|
|
15249
|
+
return this.check(/* @__PURE__ */ gh());
|
|
15250
15250
|
}
|
|
15251
15251
|
});
|
|
15252
|
-
}),
|
|
15253
|
-
|
|
15252
|
+
}), gg = /*@__PURE__*/ G("ZodString", (e, t) => {
|
|
15253
|
+
sp.init(e, t), hg.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ bm(vg, t)), e.url = (t) => e.check(/* @__PURE__ */ Em(xg, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Vm(Ig, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Dm(Sg, t)), e.guid = (t) => e.check(/* @__PURE__ */ xm(yg, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Sm(bg, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Cm(bg, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ wm(bg, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Tm(bg, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Om(Cg, t)), e.guid = (t) => e.check(/* @__PURE__ */ xm(yg, t)), e.cuid = (t) => e.check(/* @__PURE__ */ km(wg, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Am(Tg, t)), e.ulid = (t) => e.check(/* @__PURE__ */ jm(Eg, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Rm(Ng, t)), e.base64url = (t) => e.check(/* @__PURE__ */ zm(Pg, t)), e.xid = (t) => e.check(/* @__PURE__ */ Mm(Dg, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Nm(Og, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Pm(kg, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Fm(Ag, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Im(jg, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Lm(Mg, t)), e.e164 = (t) => e.check(/* @__PURE__ */ Bm(Fg, t)), e.datetime = (t) => e.check(qh(t)), e.date = (t) => e.check(Yh(t)), e.time = (t) => e.check(Zh(t)), e.duration = (t) => e.check($h(t));
|
|
15254
15254
|
});
|
|
15255
|
-
function
|
|
15256
|
-
return /* @__PURE__ */
|
|
15255
|
+
function _g(e) {
|
|
15256
|
+
return /* @__PURE__ */ ym(gg, e);
|
|
15257
15257
|
}
|
|
15258
|
-
var $ = /*@__PURE__*/
|
|
15259
|
-
Y.init(e, t),
|
|
15260
|
-
}),
|
|
15261
|
-
lp.init(e, t), $.init(e, t);
|
|
15262
|
-
}), vg = /*@__PURE__*/ W("ZodGUID", (e, t) => {
|
|
15263
|
-
sp.init(e, t), $.init(e, t);
|
|
15264
|
-
}), yg = /*@__PURE__*/ W("ZodUUID", (e, t) => {
|
|
15265
|
-
cp.init(e, t), $.init(e, t);
|
|
15266
|
-
}), bg = /*@__PURE__*/ W("ZodURL", (e, t) => {
|
|
15258
|
+
var $ = /*@__PURE__*/ G("ZodStringFormat", (e, t) => {
|
|
15259
|
+
Y.init(e, t), hg.init(e, t);
|
|
15260
|
+
}), vg = /*@__PURE__*/ G("ZodEmail", (e, t) => {
|
|
15267
15261
|
up.init(e, t), $.init(e, t);
|
|
15268
|
-
}),
|
|
15262
|
+
}), yg = /*@__PURE__*/ G("ZodGUID", (e, t) => {
|
|
15263
|
+
cp.init(e, t), $.init(e, t);
|
|
15264
|
+
}), bg = /*@__PURE__*/ G("ZodUUID", (e, t) => {
|
|
15265
|
+
lp.init(e, t), $.init(e, t);
|
|
15266
|
+
}), xg = /*@__PURE__*/ G("ZodURL", (e, t) => {
|
|
15269
15267
|
dp.init(e, t), $.init(e, t);
|
|
15270
|
-
}), Sg = /*@__PURE__*/
|
|
15268
|
+
}), Sg = /*@__PURE__*/ G("ZodEmoji", (e, t) => {
|
|
15271
15269
|
fp.init(e, t), $.init(e, t);
|
|
15272
|
-
}), Cg = /*@__PURE__*/
|
|
15270
|
+
}), Cg = /*@__PURE__*/ G("ZodNanoID", (e, t) => {
|
|
15273
15271
|
pp.init(e, t), $.init(e, t);
|
|
15274
|
-
}), wg = /*@__PURE__*/
|
|
15272
|
+
}), wg = /*@__PURE__*/ G("ZodCUID", (e, t) => {
|
|
15275
15273
|
mp.init(e, t), $.init(e, t);
|
|
15276
|
-
}), Tg = /*@__PURE__*/
|
|
15274
|
+
}), Tg = /*@__PURE__*/ G("ZodCUID2", (e, t) => {
|
|
15277
15275
|
hp.init(e, t), $.init(e, t);
|
|
15278
|
-
}), Eg = /*@__PURE__*/
|
|
15276
|
+
}), Eg = /*@__PURE__*/ G("ZodULID", (e, t) => {
|
|
15279
15277
|
gp.init(e, t), $.init(e, t);
|
|
15280
|
-
}), Dg = /*@__PURE__*/
|
|
15278
|
+
}), Dg = /*@__PURE__*/ G("ZodXID", (e, t) => {
|
|
15281
15279
|
_p.init(e, t), $.init(e, t);
|
|
15282
|
-
}), Og = /*@__PURE__*/
|
|
15283
|
-
|
|
15284
|
-
}), kg = /*@__PURE__*/
|
|
15280
|
+
}), Og = /*@__PURE__*/ G("ZodKSUID", (e, t) => {
|
|
15281
|
+
vp.init(e, t), $.init(e, t);
|
|
15282
|
+
}), kg = /*@__PURE__*/ G("ZodIPv4", (e, t) => {
|
|
15285
15283
|
Cp.init(e, t), $.init(e, t);
|
|
15286
|
-
}), Ag = /*@__PURE__*/
|
|
15284
|
+
}), Ag = /*@__PURE__*/ G("ZodIPv6", (e, t) => {
|
|
15287
15285
|
wp.init(e, t), $.init(e, t);
|
|
15288
|
-
}), jg = /*@__PURE__*/
|
|
15286
|
+
}), jg = /*@__PURE__*/ G("ZodCIDRv4", (e, t) => {
|
|
15289
15287
|
Tp.init(e, t), $.init(e, t);
|
|
15290
|
-
}), Mg = /*@__PURE__*/
|
|
15291
|
-
|
|
15292
|
-
}), Ng = /*@__PURE__*/
|
|
15293
|
-
|
|
15294
|
-
}), Pg = /*@__PURE__*/
|
|
15288
|
+
}), Mg = /*@__PURE__*/ G("ZodCIDRv6", (e, t) => {
|
|
15289
|
+
Ep.init(e, t), $.init(e, t);
|
|
15290
|
+
}), Ng = /*@__PURE__*/ G("ZodBase64", (e, t) => {
|
|
15291
|
+
Op.init(e, t), $.init(e, t);
|
|
15292
|
+
}), Pg = /*@__PURE__*/ G("ZodBase64URL", (e, t) => {
|
|
15295
15293
|
Ap.init(e, t), $.init(e, t);
|
|
15296
|
-
}), Fg = /*@__PURE__*/
|
|
15297
|
-
|
|
15298
|
-
}), Ig = /*@__PURE__*/
|
|
15299
|
-
Np.init(e, t),
|
|
15294
|
+
}), Fg = /*@__PURE__*/ G("ZodE164", (e, t) => {
|
|
15295
|
+
jp.init(e, t), $.init(e, t);
|
|
15296
|
+
}), Ig = /*@__PURE__*/ G("ZodJWT", (e, t) => {
|
|
15297
|
+
Np.init(e, t), $.init(e, t);
|
|
15298
|
+
}), Lg = /*@__PURE__*/ G("ZodNumber", (e, t) => {
|
|
15299
|
+
Pp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oh(e, t, n, r), mg(e, "ZodNumber", {
|
|
15300
15300
|
gt(e, t) {
|
|
15301
|
-
return this.check(/* @__PURE__ */
|
|
15301
|
+
return this.check(/* @__PURE__ */ $m(e, t));
|
|
15302
15302
|
},
|
|
15303
15303
|
gte(e, t) {
|
|
15304
|
-
return this.check(/* @__PURE__ */
|
|
15304
|
+
return this.check(/* @__PURE__ */ eh(e, t));
|
|
15305
15305
|
},
|
|
15306
15306
|
min(e, t) {
|
|
15307
|
-
return this.check(/* @__PURE__ */
|
|
15307
|
+
return this.check(/* @__PURE__ */ eh(e, t));
|
|
15308
15308
|
},
|
|
15309
15309
|
lt(e, t) {
|
|
15310
|
-
return this.check(/* @__PURE__ */
|
|
15310
|
+
return this.check(/* @__PURE__ */ Zm(e, t));
|
|
15311
15311
|
},
|
|
15312
15312
|
lte(e, t) {
|
|
15313
|
-
return this.check(/* @__PURE__ */
|
|
15313
|
+
return this.check(/* @__PURE__ */ Qm(e, t));
|
|
15314
15314
|
},
|
|
15315
15315
|
max(e, t) {
|
|
15316
|
-
return this.check(/* @__PURE__ */
|
|
15316
|
+
return this.check(/* @__PURE__ */ Qm(e, t));
|
|
15317
15317
|
},
|
|
15318
15318
|
int(e) {
|
|
15319
|
-
return this.check(
|
|
15319
|
+
return this.check(Bg(e));
|
|
15320
15320
|
},
|
|
15321
15321
|
safe(e) {
|
|
15322
|
-
return this.check(
|
|
15322
|
+
return this.check(Bg(e));
|
|
15323
15323
|
},
|
|
15324
15324
|
positive(e) {
|
|
15325
|
-
return this.check(/* @__PURE__ */
|
|
15325
|
+
return this.check(/* @__PURE__ */ $m(0, e));
|
|
15326
15326
|
},
|
|
15327
15327
|
nonnegative(e) {
|
|
15328
|
-
return this.check(/* @__PURE__ */
|
|
15328
|
+
return this.check(/* @__PURE__ */ eh(0, e));
|
|
15329
15329
|
},
|
|
15330
15330
|
negative(e) {
|
|
15331
|
-
return this.check(/* @__PURE__ */
|
|
15331
|
+
return this.check(/* @__PURE__ */ Zm(0, e));
|
|
15332
15332
|
},
|
|
15333
15333
|
nonpositive(e) {
|
|
15334
|
-
return this.check(/* @__PURE__ */
|
|
15334
|
+
return this.check(/* @__PURE__ */ Qm(0, e));
|
|
15335
15335
|
},
|
|
15336
15336
|
multipleOf(e, t) {
|
|
15337
|
-
return this.check(/* @__PURE__ */
|
|
15337
|
+
return this.check(/* @__PURE__ */ th(e, t));
|
|
15338
15338
|
},
|
|
15339
15339
|
step(e, t) {
|
|
15340
|
-
return this.check(/* @__PURE__ */
|
|
15340
|
+
return this.check(/* @__PURE__ */ th(e, t));
|
|
15341
15341
|
},
|
|
15342
15342
|
finite() {
|
|
15343
15343
|
return this;
|
|
@@ -15346,59 +15346,59 @@ var $ = /*@__PURE__*/ W("ZodStringFormat", (e, t) => {
|
|
|
15346
15346
|
let n = e._zod.bag;
|
|
15347
15347
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
15348
15348
|
});
|
|
15349
|
-
function
|
|
15350
|
-
return /* @__PURE__ */
|
|
15349
|
+
function Rg(e) {
|
|
15350
|
+
return /* @__PURE__ */ Km(Lg, e);
|
|
15351
15351
|
}
|
|
15352
|
-
var
|
|
15353
|
-
|
|
15352
|
+
var zg = /*@__PURE__*/ G("ZodNumberFormat", (e, t) => {
|
|
15353
|
+
Fp.init(e, t), Lg.init(e, t);
|
|
15354
15354
|
});
|
|
15355
|
-
function
|
|
15356
|
-
return /* @__PURE__ */
|
|
15355
|
+
function Bg(e) {
|
|
15356
|
+
return /* @__PURE__ */ qm(zg, e);
|
|
15357
15357
|
}
|
|
15358
|
-
var
|
|
15359
|
-
|
|
15358
|
+
var Vg = /*@__PURE__*/ G("ZodBoolean", (e, t) => {
|
|
15359
|
+
Ip.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => kh(e, t, n, r);
|
|
15360
15360
|
});
|
|
15361
|
-
function
|
|
15362
|
-
return /* @__PURE__ */
|
|
15361
|
+
function Hg(e) {
|
|
15362
|
+
return /* @__PURE__ */ Jm(Vg, e);
|
|
15363
15363
|
}
|
|
15364
|
-
var
|
|
15365
|
-
|
|
15364
|
+
var Ug = /*@__PURE__*/ G("ZodUnknown", (e, t) => {
|
|
15365
|
+
Lp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
15366
15366
|
});
|
|
15367
|
-
function
|
|
15368
|
-
return /* @__PURE__ */
|
|
15367
|
+
function Wg() {
|
|
15368
|
+
return /* @__PURE__ */ Ym(Ug);
|
|
15369
15369
|
}
|
|
15370
|
-
var
|
|
15371
|
-
|
|
15370
|
+
var Gg = /*@__PURE__*/ G("ZodNever", (e, t) => {
|
|
15371
|
+
Rp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ah(e, t, n, r);
|
|
15372
15372
|
});
|
|
15373
|
-
function
|
|
15374
|
-
return /* @__PURE__ */
|
|
15373
|
+
function Kg(e) {
|
|
15374
|
+
return /* @__PURE__ */ Xm(Gg, e);
|
|
15375
15375
|
}
|
|
15376
|
-
var
|
|
15377
|
-
|
|
15376
|
+
var qg = /*@__PURE__*/ G("ZodArray", (e, t) => {
|
|
15377
|
+
Bp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ph(e, t, n, r), e.element = t.element, mg(e, "ZodArray", {
|
|
15378
15378
|
min(e, t) {
|
|
15379
|
-
return this.check(/* @__PURE__ */
|
|
15379
|
+
return this.check(/* @__PURE__ */ rh(e, t));
|
|
15380
15380
|
},
|
|
15381
15381
|
nonempty(e) {
|
|
15382
|
-
return this.check(/* @__PURE__ */
|
|
15382
|
+
return this.check(/* @__PURE__ */ rh(1, e));
|
|
15383
15383
|
},
|
|
15384
15384
|
max(e, t) {
|
|
15385
|
-
return this.check(/* @__PURE__ */
|
|
15385
|
+
return this.check(/* @__PURE__ */ nh(e, t));
|
|
15386
15386
|
},
|
|
15387
15387
|
length(e, t) {
|
|
15388
|
-
return this.check(/* @__PURE__ */
|
|
15388
|
+
return this.check(/* @__PURE__ */ ih(e, t));
|
|
15389
15389
|
},
|
|
15390
15390
|
unwrap() {
|
|
15391
15391
|
return this.element;
|
|
15392
15392
|
}
|
|
15393
15393
|
});
|
|
15394
15394
|
});
|
|
15395
|
-
function
|
|
15396
|
-
return /* @__PURE__ */
|
|
15395
|
+
function Jg(e, t) {
|
|
15396
|
+
return /* @__PURE__ */ _h(qg, e, t);
|
|
15397
15397
|
}
|
|
15398
|
-
var
|
|
15399
|
-
|
|
15398
|
+
var Yg = /*@__PURE__*/ G("ZodObject", (e, t) => {
|
|
15399
|
+
Gp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fh(e, t, n, r), K(e, "shape", () => t.shape), mg(e, "ZodObject", {
|
|
15400
15400
|
keyof() {
|
|
15401
|
-
return
|
|
15401
|
+
return n_(Object.keys(this._zod.def.shape));
|
|
15402
15402
|
},
|
|
15403
15403
|
catchall(e) {
|
|
15404
15404
|
return this.clone({
|
|
@@ -15409,19 +15409,19 @@ var Jg = /*@__PURE__*/ W("ZodObject", (e, t) => {
|
|
|
15409
15409
|
passthrough() {
|
|
15410
15410
|
return this.clone({
|
|
15411
15411
|
...this._zod.def,
|
|
15412
|
-
catchall:
|
|
15412
|
+
catchall: Wg()
|
|
15413
15413
|
});
|
|
15414
15414
|
},
|
|
15415
15415
|
loose() {
|
|
15416
15416
|
return this.clone({
|
|
15417
15417
|
...this._zod.def,
|
|
15418
|
-
catchall:
|
|
15418
|
+
catchall: Wg()
|
|
15419
15419
|
});
|
|
15420
15420
|
},
|
|
15421
15421
|
strict() {
|
|
15422
15422
|
return this.clone({
|
|
15423
15423
|
...this._zod.def,
|
|
15424
|
-
catchall:
|
|
15424
|
+
catchall: Kg()
|
|
15425
15425
|
});
|
|
15426
15426
|
},
|
|
15427
15427
|
strip() {
|
|
@@ -15446,74 +15446,74 @@ var Jg = /*@__PURE__*/ W("ZodObject", (e, t) => {
|
|
|
15446
15446
|
return Md(this, e);
|
|
15447
15447
|
},
|
|
15448
15448
|
partial(...e) {
|
|
15449
|
-
return Id(
|
|
15449
|
+
return Id(a_, this, e[0]);
|
|
15450
15450
|
},
|
|
15451
15451
|
required(...e) {
|
|
15452
|
-
return Ld(
|
|
15452
|
+
return Ld(h_, this, e[0]);
|
|
15453
15453
|
}
|
|
15454
15454
|
});
|
|
15455
15455
|
});
|
|
15456
|
-
function
|
|
15457
|
-
return new
|
|
15456
|
+
function Xg(e, t) {
|
|
15457
|
+
return new Yg({
|
|
15458
15458
|
type: "object",
|
|
15459
15459
|
shape: e ?? {},
|
|
15460
|
-
...
|
|
15460
|
+
...q(t)
|
|
15461
15461
|
});
|
|
15462
15462
|
}
|
|
15463
|
-
var
|
|
15464
|
-
|
|
15463
|
+
var Zg = /*@__PURE__*/ G("ZodUnion", (e, t) => {
|
|
15464
|
+
qp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ih(e, t, n, r), e.options = t.options;
|
|
15465
15465
|
});
|
|
15466
|
-
function
|
|
15467
|
-
return new
|
|
15466
|
+
function Qg(e, t) {
|
|
15467
|
+
return new Zg({
|
|
15468
15468
|
type: "union",
|
|
15469
15469
|
options: e,
|
|
15470
|
-
...
|
|
15470
|
+
...q(t)
|
|
15471
15471
|
});
|
|
15472
15472
|
}
|
|
15473
|
-
var
|
|
15474
|
-
|
|
15473
|
+
var $g = /*@__PURE__*/ G("ZodIntersection", (e, t) => {
|
|
15474
|
+
Jp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lh(e, t, n, r);
|
|
15475
15475
|
});
|
|
15476
|
-
function
|
|
15477
|
-
return new
|
|
15476
|
+
function e_(e, t) {
|
|
15477
|
+
return new $g({
|
|
15478
15478
|
type: "intersection",
|
|
15479
15479
|
left: e,
|
|
15480
15480
|
right: t
|
|
15481
15481
|
});
|
|
15482
15482
|
}
|
|
15483
|
-
var
|
|
15484
|
-
|
|
15483
|
+
var t_ = /*@__PURE__*/ G("ZodEnum", (e, t) => {
|
|
15484
|
+
Zp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => jh(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
15485
15485
|
let n = new Set(Object.keys(t.entries));
|
|
15486
15486
|
e.extract = (e, r) => {
|
|
15487
15487
|
let i = {};
|
|
15488
15488
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
15489
15489
|
else throw Error(`Key ${r} not found in enum`);
|
|
15490
|
-
return new
|
|
15490
|
+
return new t_({
|
|
15491
15491
|
...t,
|
|
15492
15492
|
checks: [],
|
|
15493
|
-
...
|
|
15493
|
+
...q(r),
|
|
15494
15494
|
entries: i
|
|
15495
15495
|
});
|
|
15496
15496
|
}, e.exclude = (e, r) => {
|
|
15497
15497
|
let i = { ...t.entries };
|
|
15498
15498
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
15499
15499
|
else throw Error(`Key ${t} not found in enum`);
|
|
15500
|
-
return new
|
|
15500
|
+
return new t_({
|
|
15501
15501
|
...t,
|
|
15502
15502
|
checks: [],
|
|
15503
|
-
...
|
|
15503
|
+
...q(r),
|
|
15504
15504
|
entries: i
|
|
15505
15505
|
});
|
|
15506
15506
|
};
|
|
15507
15507
|
});
|
|
15508
|
-
function
|
|
15509
|
-
return new
|
|
15508
|
+
function n_(e, t) {
|
|
15509
|
+
return new t_({
|
|
15510
15510
|
type: "enum",
|
|
15511
15511
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
15512
|
-
...
|
|
15512
|
+
...q(t)
|
|
15513
15513
|
});
|
|
15514
15514
|
}
|
|
15515
|
-
var
|
|
15516
|
-
|
|
15515
|
+
var r_ = /*@__PURE__*/ G("ZodTransform", (e, t) => {
|
|
15516
|
+
Qp.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Nh(e, t, n, r), e._zod.parse = (n, r) => {
|
|
15517
15517
|
if (r.direction === "backward") throw new sd(e.constructor.name);
|
|
15518
15518
|
n.addIssue = (r) => {
|
|
15519
15519
|
if (typeof r == "string") n.issues.push(Wd(r, n.value, t));
|
|
@@ -15526,44 +15526,44 @@ var n_ = /*@__PURE__*/ W("ZodTransform", (e, t) => {
|
|
|
15526
15526
|
return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
|
|
15527
15527
|
};
|
|
15528
15528
|
});
|
|
15529
|
-
function
|
|
15530
|
-
return new
|
|
15529
|
+
function i_(e) {
|
|
15530
|
+
return new r_({
|
|
15531
15531
|
type: "transform",
|
|
15532
15532
|
transform: e
|
|
15533
15533
|
});
|
|
15534
15534
|
}
|
|
15535
|
-
var
|
|
15536
|
-
|
|
15535
|
+
var a_ = /*@__PURE__*/ G("ZodOptional", (e, t) => {
|
|
15536
|
+
em.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Gh(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
15537
15537
|
});
|
|
15538
|
-
function
|
|
15539
|
-
return new
|
|
15538
|
+
function o_(e) {
|
|
15539
|
+
return new a_({
|
|
15540
15540
|
type: "optional",
|
|
15541
15541
|
innerType: e
|
|
15542
15542
|
});
|
|
15543
15543
|
}
|
|
15544
|
-
var
|
|
15545
|
-
|
|
15544
|
+
var s_ = /*@__PURE__*/ G("ZodExactOptional", (e, t) => {
|
|
15545
|
+
tm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Gh(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
15546
15546
|
});
|
|
15547
|
-
function
|
|
15548
|
-
return new
|
|
15547
|
+
function c_(e) {
|
|
15548
|
+
return new s_({
|
|
15549
15549
|
type: "optional",
|
|
15550
15550
|
innerType: e
|
|
15551
15551
|
});
|
|
15552
15552
|
}
|
|
15553
|
-
var
|
|
15554
|
-
|
|
15553
|
+
var l_ = /*@__PURE__*/ G("ZodNullable", (e, t) => {
|
|
15554
|
+
nm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Rh(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
15555
15555
|
});
|
|
15556
|
-
function
|
|
15557
|
-
return new
|
|
15556
|
+
function u_(e) {
|
|
15557
|
+
return new l_({
|
|
15558
15558
|
type: "nullable",
|
|
15559
15559
|
innerType: e
|
|
15560
15560
|
});
|
|
15561
15561
|
}
|
|
15562
|
-
var
|
|
15563
|
-
|
|
15562
|
+
var d_ = /*@__PURE__*/ G("ZodDefault", (e, t) => {
|
|
15563
|
+
rm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Bh(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
15564
15564
|
});
|
|
15565
|
-
function
|
|
15566
|
-
return new
|
|
15565
|
+
function f_(e, t) {
|
|
15566
|
+
return new d_({
|
|
15567
15567
|
type: "default",
|
|
15568
15568
|
innerType: e,
|
|
15569
15569
|
get defaultValue() {
|
|
@@ -15571,11 +15571,11 @@ function d_(e, t) {
|
|
|
15571
15571
|
}
|
|
15572
15572
|
});
|
|
15573
15573
|
}
|
|
15574
|
-
var
|
|
15575
|
-
|
|
15574
|
+
var p_ = /*@__PURE__*/ G("ZodPrefault", (e, t) => {
|
|
15575
|
+
am.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vh(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
15576
15576
|
});
|
|
15577
|
-
function
|
|
15578
|
-
return new
|
|
15577
|
+
function m_(e, t) {
|
|
15578
|
+
return new p_({
|
|
15579
15579
|
type: "prefault",
|
|
15580
15580
|
innerType: e,
|
|
15581
15581
|
get defaultValue() {
|
|
@@ -15583,69 +15583,69 @@ function p_(e, t) {
|
|
|
15583
15583
|
}
|
|
15584
15584
|
});
|
|
15585
15585
|
}
|
|
15586
|
-
var
|
|
15587
|
-
|
|
15586
|
+
var h_ = /*@__PURE__*/ G("ZodNonOptional", (e, t) => {
|
|
15587
|
+
om.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => zh(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
15588
15588
|
});
|
|
15589
|
-
function
|
|
15590
|
-
return new
|
|
15589
|
+
function g_(e, t) {
|
|
15590
|
+
return new h_({
|
|
15591
15591
|
type: "nonoptional",
|
|
15592
15592
|
innerType: e,
|
|
15593
|
-
...
|
|
15593
|
+
...q(t)
|
|
15594
15594
|
});
|
|
15595
15595
|
}
|
|
15596
|
-
var
|
|
15597
|
-
|
|
15596
|
+
var __ = /*@__PURE__*/ G("ZodCatch", (e, t) => {
|
|
15597
|
+
cm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Hh(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
15598
15598
|
});
|
|
15599
|
-
function
|
|
15600
|
-
return new
|
|
15599
|
+
function v_(e, t) {
|
|
15600
|
+
return new __({
|
|
15601
15601
|
type: "catch",
|
|
15602
15602
|
innerType: e,
|
|
15603
15603
|
catchValue: typeof t == "function" ? t : () => t
|
|
15604
15604
|
});
|
|
15605
15605
|
}
|
|
15606
|
-
var
|
|
15607
|
-
|
|
15606
|
+
var y_ = /*@__PURE__*/ G("ZodPipe", (e, t) => {
|
|
15607
|
+
lm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Uh(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
15608
15608
|
});
|
|
15609
|
-
function
|
|
15610
|
-
return new
|
|
15609
|
+
function b_(e, t) {
|
|
15610
|
+
return new y_({
|
|
15611
15611
|
type: "pipe",
|
|
15612
15612
|
in: e,
|
|
15613
15613
|
out: t
|
|
15614
15614
|
});
|
|
15615
15615
|
}
|
|
15616
|
-
var
|
|
15617
|
-
|
|
15616
|
+
var x_ = /*@__PURE__*/ G("ZodReadonly", (e, t) => {
|
|
15617
|
+
dm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wh(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
15618
15618
|
});
|
|
15619
|
-
function
|
|
15620
|
-
return new
|
|
15619
|
+
function S_(e) {
|
|
15620
|
+
return new x_({
|
|
15621
15621
|
type: "readonly",
|
|
15622
15622
|
innerType: e
|
|
15623
15623
|
});
|
|
15624
15624
|
}
|
|
15625
|
-
var
|
|
15626
|
-
|
|
15625
|
+
var C_ = /*@__PURE__*/ G("ZodCustom", (e, t) => {
|
|
15626
|
+
pm.init(e, t), Q.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mh(e, t, n, r);
|
|
15627
15627
|
});
|
|
15628
|
-
function
|
|
15629
|
-
return /* @__PURE__ */
|
|
15630
|
-
}
|
|
15631
|
-
function
|
|
15632
|
-
return /* @__PURE__ */
|
|
15633
|
-
}
|
|
15634
|
-
d(), d(),
|
|
15635
|
-
id:
|
|
15636
|
-
stableId:
|
|
15637
|
-
addonId:
|
|
15638
|
-
type:
|
|
15639
|
-
name:
|
|
15640
|
-
online:
|
|
15641
|
-
disabled:
|
|
15642
|
-
parentDeviceId:
|
|
15643
|
-
role:
|
|
15644
|
-
features:
|
|
15645
|
-
isCamera:
|
|
15628
|
+
function w_(e, t = {}) {
|
|
15629
|
+
return /* @__PURE__ */ vh(C_, e, t);
|
|
15630
|
+
}
|
|
15631
|
+
function T_(e, t) {
|
|
15632
|
+
return /* @__PURE__ */ yh(e, t);
|
|
15633
|
+
}
|
|
15634
|
+
d(), d(), Xg({
|
|
15635
|
+
id: Rg(),
|
|
15636
|
+
stableId: _g(),
|
|
15637
|
+
addonId: _g(),
|
|
15638
|
+
type: _g(),
|
|
15639
|
+
name: _g(),
|
|
15640
|
+
online: Hg(),
|
|
15641
|
+
disabled: Hg(),
|
|
15642
|
+
parentDeviceId: Rg().nullable(),
|
|
15643
|
+
role: _g().nullable().optional(),
|
|
15644
|
+
features: Jg(_g()).optional(),
|
|
15645
|
+
isCamera: Hg().optional(),
|
|
15646
15646
|
sourceInfo: ee.optional()
|
|
15647
15647
|
}), d(), d(), d(), d(), d(), d(), x.AddonStarted, x.AddonInstalled, x.AddonRestarted, x.AddonUpdated, x.AddonStopped, x.AddonUninstalled, x.AddonCrashed, x.AddonError, x.DetectionPhaseTransition, x.DetectionResult, x.DetectionEvent, x.DetectionCameraNative, x.ProviderMotion, x.MotionOnMotionChanged, x.MotionAnalysis, x.MotionZonesRaw, x.ProviderDetection, x.PipelineAudioInferenceResult, x.AgentOnline, x.AgentOffline, x.DeviceRegistered, x.DeviceUnregistered, x.DeviceStateChanged, x.EventEmitted;
|
|
15648
|
-
var
|
|
15648
|
+
var E_ = Object.freeze([...new Set(Object.values(x))].toSorted()), D_ = Object.freeze([
|
|
15649
15649
|
x.PipelineCameraMetricsSnapshot,
|
|
15650
15650
|
x.PipelineRunnerLoadSnapshot,
|
|
15651
15651
|
x.PipelineEngineMetricsSnapshot,
|
|
@@ -15663,14 +15663,14 @@ var T_ = Object.freeze([...new Set(Object.values(x))].toSorted()), E_ = Object.f
|
|
|
15663
15663
|
x.PlatformProbePhase,
|
|
15664
15664
|
x.BenchmarkProgress,
|
|
15665
15665
|
x.ModelDownloadProgress
|
|
15666
|
-
]),
|
|
15666
|
+
]), O_ = new Set(D_);
|
|
15667
15667
|
//#endregion
|
|
15668
15668
|
//#region ../ui-library/src/hooks/use-device-detections.ts
|
|
15669
|
-
Object.freeze(
|
|
15669
|
+
Object.freeze(E_.filter((e) => !O_.has(e))), d(), d(), Object.freeze([...new Set(T.filter((e) => e.scope === "device").map((e) => e.name))].toSorted()), d(), d(), d(), d(), d(), d(), ne("camstack:zone-editing", null), d();
|
|
15670
15670
|
//#endregion
|
|
15671
15671
|
//#region ../ui-library/src/hooks/turn-server-cache.ts
|
|
15672
|
-
var
|
|
15673
|
-
function
|
|
15672
|
+
var k_ = 5 * 6e4, A_ = 720 * 6e4, j_ = "camstack:turn-servers:v1";
|
|
15673
|
+
function M_() {
|
|
15674
15674
|
let e = globalThis;
|
|
15675
15675
|
try {
|
|
15676
15676
|
return e.localStorage ?? null;
|
|
@@ -15678,7 +15678,7 @@ function j_() {
|
|
|
15678
15678
|
return null;
|
|
15679
15679
|
}
|
|
15680
15680
|
}
|
|
15681
|
-
function
|
|
15681
|
+
function N_(e) {
|
|
15682
15682
|
if (typeof e != "object" || !e) return !1;
|
|
15683
15683
|
let t = e;
|
|
15684
15684
|
return typeof t.fetchedAt != "number" || !Array.isArray(t.servers) ? !1 : t.servers.every((e) => {
|
|
@@ -15687,7 +15687,7 @@ function M_(e) {
|
|
|
15687
15687
|
return !(!(typeof t.urls == "string" || Array.isArray(t.urls) && t.urls.every((e) => typeof e == "string")) || t.username !== void 0 && typeof t.username != "string" || t.credential !== void 0 && typeof t.credential != "string");
|
|
15688
15688
|
});
|
|
15689
15689
|
}
|
|
15690
|
-
var
|
|
15690
|
+
var P_ = class {
|
|
15691
15691
|
freshTtlMs;
|
|
15692
15692
|
staleCapMs;
|
|
15693
15693
|
storage;
|
|
@@ -15696,7 +15696,7 @@ var N_ = class {
|
|
|
15696
15696
|
memory = /* @__PURE__ */ new WeakMap();
|
|
15697
15697
|
inflight = /* @__PURE__ */ new WeakMap();
|
|
15698
15698
|
constructor(e = {}) {
|
|
15699
|
-
this.freshTtlMs = e.freshTtlMs ??
|
|
15699
|
+
this.freshTtlMs = e.freshTtlMs ?? k_, this.staleCapMs = e.staleCapMs ?? A_, this.storage = "storage" in e ? e.storage ?? null : M_(), this.now = e.now ?? (() => Date.now()), this.storageKey = e.storageKey ?? j_;
|
|
15700
15700
|
}
|
|
15701
15701
|
async getOrFetch(e, t) {
|
|
15702
15702
|
let n = this.now(), r = this.memory.get(e) ?? this.readStorage();
|
|
@@ -15734,7 +15734,7 @@ var N_ = class {
|
|
|
15734
15734
|
let e = this.storage.getItem(this.storageKey);
|
|
15735
15735
|
if (e === null) return;
|
|
15736
15736
|
let t = JSON.parse(e);
|
|
15737
|
-
return
|
|
15737
|
+
return N_(t) ? t : void 0;
|
|
15738
15738
|
} catch {
|
|
15739
15739
|
return;
|
|
15740
15740
|
}
|
|
@@ -15745,33 +15745,10 @@ var N_ = class {
|
|
|
15745
15745
|
} catch {}
|
|
15746
15746
|
}
|
|
15747
15747
|
};
|
|
15748
|
-
d(), new
|
|
15749
|
-
//#endregion
|
|
15750
|
-
//#region src/components/CameraPicker.tsx
|
|
15751
|
-
function P_({ cameras: e, selectedId: t, onSelect: n }) {
|
|
15752
|
-
return e.length === 0 ? /* @__PURE__ */ f("p", {
|
|
15753
|
-
className: "text-xs text-foreground-muted",
|
|
15754
|
-
children: "No camera on this hub publishes the OSD capability yet."
|
|
15755
|
-
}) : /* @__PURE__ */ f($r, {
|
|
15756
|
-
"aria-label": "OSD-capable camera",
|
|
15757
|
-
value: t === void 0 ? "" : String(t),
|
|
15758
|
-
onChange: (e) => n(Number(e.target.value)),
|
|
15759
|
-
options: [{
|
|
15760
|
-
value: "",
|
|
15761
|
-
label: "Select a camera…"
|
|
15762
|
-
}, ...e.map((e) => ({
|
|
15763
|
-
value: String(e.id),
|
|
15764
|
-
label: e.name
|
|
15765
|
-
}))]
|
|
15766
|
-
});
|
|
15767
|
-
}
|
|
15748
|
+
d(), new P_(), d(), d(), d(), d(), d(), i(() => import("./MaskShapeCanvas-BEVxAjNq.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), i(() => import("./MotionZonesSettings-DteO0vrm.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./PrivacyMaskSettings-VeD7Fy0-.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
|
|
15768
15749
|
//#endregion
|
|
15769
15750
|
//#region src/ui/osd-page-model.ts
|
|
15770
|
-
function F_(
|
|
15771
|
-
let n = new Set(t.filter((e) => e.entries.some((e) => e.capName === "osd")).map((e) => e.deviceId));
|
|
15772
|
-
return e.filter((e) => n.has(e.id));
|
|
15773
|
-
}
|
|
15774
|
-
function I_() {
|
|
15751
|
+
function F_() {
|
|
15775
15752
|
return {
|
|
15776
15753
|
enabled: !0,
|
|
15777
15754
|
source: {
|
|
@@ -15783,10 +15760,13 @@ function I_() {
|
|
|
15783
15760
|
fallbackText: ""
|
|
15784
15761
|
};
|
|
15785
15762
|
}
|
|
15786
|
-
function
|
|
15787
|
-
return e.binding
|
|
15763
|
+
function I_(e) {
|
|
15764
|
+
return e.binding === null ? F_() : e.binding.conditions?.devices === void 0 ? e.binding : {
|
|
15765
|
+
...e.binding,
|
|
15766
|
+
conditions: Z_(e.binding.conditions, "devices")
|
|
15767
|
+
};
|
|
15788
15768
|
}
|
|
15789
|
-
function
|
|
15769
|
+
function L_(e) {
|
|
15790
15770
|
if (e !== void 0) {
|
|
15791
15771
|
if (e.valueType === "boolean") return {
|
|
15792
15772
|
true: "ON",
|
|
@@ -15795,17 +15775,17 @@ function R_(e) {
|
|
|
15795
15775
|
if (e.valueType === "enum" && e.enumValues && e.enumValues.length > 0) return Object.fromEntries(e.enumValues.map((e) => [e, e]));
|
|
15796
15776
|
}
|
|
15797
15777
|
}
|
|
15798
|
-
function
|
|
15778
|
+
function R_(e, t) {
|
|
15799
15779
|
if (t.source.kind !== "device-state") return;
|
|
15800
15780
|
let { deviceId: n, capName: r, valuePath: i } = t.source;
|
|
15801
15781
|
return e.find((e) => e.deviceId === n && e.capName === r && e.valuePath === i);
|
|
15802
15782
|
}
|
|
15803
|
-
function
|
|
15783
|
+
function z_(e) {
|
|
15804
15784
|
if (e === null) return "Unbound";
|
|
15805
15785
|
let t = e.source;
|
|
15806
|
-
return t.kind === "static" ? `Static: "${t.text}"` : t.kind === "clock" ? `Clock (${t.pattern})` : `${t.capName} · ${t.valuePath}`;
|
|
15786
|
+
return t.kind === "static" ? `Static: "${t.text}"` : t.kind === "clock" ? `Clock (${t.pattern})` : t.kind === "latest-recognition" ? t.recognition === "person" ? "Last recognized person" : "Last recognized plate" : `${t.capName} · ${t.valuePath}`;
|
|
15807
15787
|
}
|
|
15808
|
-
var
|
|
15788
|
+
var B_ = {
|
|
15809
15789
|
written: "Written",
|
|
15810
15790
|
unchanged: "Unchanged",
|
|
15811
15791
|
gated: "Gated (condition closed)",
|
|
@@ -15814,10 +15794,10 @@ var V_ = {
|
|
|
15814
15794
|
unbound: "Unbound",
|
|
15815
15795
|
failed: "Write failed"
|
|
15816
15796
|
};
|
|
15817
|
-
function
|
|
15818
|
-
return
|
|
15797
|
+
function V_(e) {
|
|
15798
|
+
return B_[e];
|
|
15819
15799
|
}
|
|
15820
|
-
var
|
|
15800
|
+
var H_ = {
|
|
15821
15801
|
written: "success",
|
|
15822
15802
|
unchanged: "success",
|
|
15823
15803
|
gated: "warning",
|
|
@@ -15826,10 +15806,10 @@ var U_ = {
|
|
|
15826
15806
|
unbound: "default",
|
|
15827
15807
|
failed: "danger"
|
|
15828
15808
|
};
|
|
15829
|
-
function
|
|
15830
|
-
return
|
|
15809
|
+
function U_(e) {
|
|
15810
|
+
return H_[e];
|
|
15831
15811
|
}
|
|
15832
|
-
var
|
|
15812
|
+
var W_ = [
|
|
15833
15813
|
"Sun",
|
|
15834
15814
|
"Mon",
|
|
15835
15815
|
"Tue",
|
|
@@ -15838,7 +15818,7 @@ var G_ = [
|
|
|
15838
15818
|
"Fri",
|
|
15839
15819
|
"Sat"
|
|
15840
15820
|
];
|
|
15841
|
-
function
|
|
15821
|
+
function G_() {
|
|
15842
15822
|
return {
|
|
15843
15823
|
days: [
|
|
15844
15824
|
0,
|
|
@@ -15853,15 +15833,15 @@ function K_() {
|
|
|
15853
15833
|
endMinute: 1439
|
|
15854
15834
|
};
|
|
15855
15835
|
}
|
|
15856
|
-
function
|
|
15836
|
+
function K_(e) {
|
|
15857
15837
|
let t = Math.floor(e / 60) % 24, n = e % 60;
|
|
15858
15838
|
return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
|
|
15859
15839
|
}
|
|
15860
|
-
function
|
|
15840
|
+
function q_(e) {
|
|
15861
15841
|
let [t, n] = e.split(":"), r = Number(t), i = Number(n);
|
|
15862
15842
|
return !Number.isFinite(r) || !Number.isFinite(i) ? 0 : Math.min(1439, Math.max(0, r * 60 + i));
|
|
15863
15843
|
}
|
|
15864
|
-
function
|
|
15844
|
+
function J_(e, t) {
|
|
15865
15845
|
let n = e.days.includes(t);
|
|
15866
15846
|
if (n && e.days.length === 1) return e;
|
|
15867
15847
|
let r = n ? e.days.filter((e) => e !== t) : [...e.days, t].toSorted((e, t) => e - t);
|
|
@@ -15870,22 +15850,18 @@ function Y_(e, t) {
|
|
|
15870
15850
|
days: r
|
|
15871
15851
|
};
|
|
15872
15852
|
}
|
|
15873
|
-
|
|
15874
|
-
|
|
15875
|
-
return
|
|
15876
|
-
}
|
|
15877
|
-
var Z_ = _.options;
|
|
15878
|
-
function Q_(e) {
|
|
15879
|
-
return e === void 0 ? [] : te(e, Z_);
|
|
15853
|
+
var Y_ = _.options;
|
|
15854
|
+
function X_(e) {
|
|
15855
|
+
return e === void 0 ? [] : te(e, Y_);
|
|
15880
15856
|
}
|
|
15881
|
-
function
|
|
15857
|
+
function Z_(e, t) {
|
|
15882
15858
|
if (e === void 0) return;
|
|
15883
15859
|
let { [t]: n, ...r } = e;
|
|
15884
15860
|
return Object.keys(r).length === 0 ? void 0 : r;
|
|
15885
15861
|
}
|
|
15886
15862
|
//#endregion
|
|
15887
15863
|
//#region src/components/SourceEditor.tsx
|
|
15888
|
-
var
|
|
15864
|
+
var Q_ = [
|
|
15889
15865
|
{
|
|
15890
15866
|
value: "static",
|
|
15891
15867
|
label: "Static text"
|
|
@@ -15897,22 +15873,26 @@ var ev = [
|
|
|
15897
15873
|
{
|
|
15898
15874
|
value: "device-state",
|
|
15899
15875
|
label: "Device state"
|
|
15876
|
+
},
|
|
15877
|
+
{
|
|
15878
|
+
value: "latest-recognition",
|
|
15879
|
+
label: "Latest recognition"
|
|
15900
15880
|
}
|
|
15901
15881
|
];
|
|
15902
|
-
function
|
|
15882
|
+
function $_(e) {
|
|
15903
15883
|
return `${e.deviceId}:${e.capName}:${e.valuePath}`;
|
|
15904
15884
|
}
|
|
15905
|
-
function
|
|
15885
|
+
function ev({ source: e, sources: t, onChange: n }) {
|
|
15906
15886
|
return /* @__PURE__ */ p("div", {
|
|
15907
15887
|
className: "space-y-2",
|
|
15908
15888
|
children: [
|
|
15909
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
15889
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
15910
15890
|
htmlFor: "osd-source-kind",
|
|
15911
15891
|
children: "Source"
|
|
15912
|
-
}), /* @__PURE__ */ f(
|
|
15892
|
+
}), /* @__PURE__ */ f(Qr, {
|
|
15913
15893
|
id: "osd-source-kind",
|
|
15914
15894
|
value: e.kind,
|
|
15915
|
-
options:
|
|
15895
|
+
options: Q_,
|
|
15916
15896
|
onChange: (e) => {
|
|
15917
15897
|
let r = e.target.value;
|
|
15918
15898
|
if (r === "static") n({
|
|
@@ -15923,6 +15903,10 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
15923
15903
|
kind: "clock",
|
|
15924
15904
|
pattern: "HH:mm"
|
|
15925
15905
|
});
|
|
15906
|
+
else if (r === "latest-recognition") n({
|
|
15907
|
+
kind: "latest-recognition",
|
|
15908
|
+
recognition: "person"
|
|
15909
|
+
});
|
|
15926
15910
|
else {
|
|
15927
15911
|
let e = t[0];
|
|
15928
15912
|
n(e ? {
|
|
@@ -15938,10 +15922,10 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
15938
15922
|
}
|
|
15939
15923
|
}
|
|
15940
15924
|
})] }),
|
|
15941
|
-
e.kind === "static" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
15925
|
+
e.kind === "static" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
15942
15926
|
htmlFor: "osd-source-static-text",
|
|
15943
15927
|
children: "Text"
|
|
15944
|
-
}), /* @__PURE__ */ f(
|
|
15928
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
15945
15929
|
id: "osd-source-static-text",
|
|
15946
15930
|
value: e.text,
|
|
15947
15931
|
maxLength: 64,
|
|
@@ -15952,10 +15936,10 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
15952
15936
|
})] }),
|
|
15953
15937
|
e.kind === "clock" && /* @__PURE__ */ p("div", {
|
|
15954
15938
|
className: "grid grid-cols-2 gap-2",
|
|
15955
|
-
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
15939
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
15956
15940
|
htmlFor: "osd-source-clock-pattern",
|
|
15957
15941
|
children: "Pattern"
|
|
15958
|
-
}), /* @__PURE__ */ f(
|
|
15942
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
15959
15943
|
id: "osd-source-clock-pattern",
|
|
15960
15944
|
value: e.pattern,
|
|
15961
15945
|
placeholder: "HH:mm",
|
|
@@ -15964,10 +15948,10 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
15964
15948
|
kind: "clock",
|
|
15965
15949
|
pattern: t.target.value
|
|
15966
15950
|
})
|
|
15967
|
-
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
15951
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
15968
15952
|
htmlFor: "osd-source-clock-timezone",
|
|
15969
15953
|
children: "Timezone (optional)"
|
|
15970
|
-
}), /* @__PURE__ */ f(
|
|
15954
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
15971
15955
|
id: "osd-source-clock-timezone",
|
|
15972
15956
|
value: e.timezone ?? "",
|
|
15973
15957
|
placeholder: "Server zone",
|
|
@@ -15978,15 +15962,15 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
15978
15962
|
})
|
|
15979
15963
|
})] })]
|
|
15980
15964
|
}),
|
|
15981
|
-
e.kind === "device-state" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
15965
|
+
e.kind === "device-state" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
15982
15966
|
htmlFor: "osd-source-device-state",
|
|
15983
15967
|
children: "Value"
|
|
15984
15968
|
}), t.length === 0 ? /* @__PURE__ */ f("p", {
|
|
15985
15969
|
className: "text-xs text-foreground-muted",
|
|
15986
15970
|
children: "No bindable device-state values were found for this camera."
|
|
15987
|
-
}) : /* @__PURE__ */ f(
|
|
15971
|
+
}) : /* @__PURE__ */ f(Qr, {
|
|
15988
15972
|
id: "osd-source-device-state",
|
|
15989
|
-
value:
|
|
15973
|
+
value: $_({
|
|
15990
15974
|
deviceId: e.deviceId ?? 0,
|
|
15991
15975
|
deviceName: "",
|
|
15992
15976
|
capName: e.capName,
|
|
@@ -15995,11 +15979,11 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
15995
15979
|
valueType: "string"
|
|
15996
15980
|
}),
|
|
15997
15981
|
options: t.map((e) => ({
|
|
15998
|
-
value:
|
|
15982
|
+
value: $_(e),
|
|
15999
15983
|
label: e.label
|
|
16000
15984
|
})),
|
|
16001
15985
|
onChange: (e) => {
|
|
16002
|
-
let r = t.find((t) =>
|
|
15986
|
+
let r = t.find((t) => $_(t) === e.target.value);
|
|
16003
15987
|
r && n({
|
|
16004
15988
|
kind: "device-state",
|
|
16005
15989
|
deviceId: r.deviceId,
|
|
@@ -16007,13 +15991,31 @@ function nv({ source: e, sources: t, onChange: n }) {
|
|
|
16007
15991
|
valuePath: r.valuePath
|
|
16008
15992
|
});
|
|
16009
15993
|
}
|
|
15994
|
+
})] }),
|
|
15995
|
+
e.kind === "latest-recognition" && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
15996
|
+
htmlFor: "osd-source-recognition",
|
|
15997
|
+
children: "Recognition"
|
|
15998
|
+
}), /* @__PURE__ */ f(Qr, {
|
|
15999
|
+
id: "osd-source-recognition",
|
|
16000
|
+
value: e.recognition,
|
|
16001
|
+
options: [{
|
|
16002
|
+
value: "person",
|
|
16003
|
+
label: "Last recognized person"
|
|
16004
|
+
}, {
|
|
16005
|
+
value: "plate",
|
|
16006
|
+
label: "Last recognized plate"
|
|
16007
|
+
}],
|
|
16008
|
+
onChange: (e) => n({
|
|
16009
|
+
kind: "latest-recognition",
|
|
16010
|
+
recognition: e.target.value === "plate" ? "plate" : "person"
|
|
16011
|
+
})
|
|
16010
16012
|
})] })
|
|
16011
16013
|
]
|
|
16012
16014
|
});
|
|
16013
16015
|
}
|
|
16014
16016
|
//#endregion
|
|
16015
16017
|
//#region src/components/ValueMapEditor.tsx
|
|
16016
|
-
function
|
|
16018
|
+
function tv({ valueMap: e, onChange: t }) {
|
|
16017
16019
|
let n = Object.entries(e ?? {});
|
|
16018
16020
|
function r(e) {
|
|
16019
16021
|
if (e.length === 0) {
|
|
@@ -16025,11 +16027,11 @@ function rv({ valueMap: e, onChange: t }) {
|
|
|
16025
16027
|
return /* @__PURE__ */ p("div", {
|
|
16026
16028
|
className: "space-y-2",
|
|
16027
16029
|
children: [
|
|
16028
|
-
/* @__PURE__ */ f(
|
|
16030
|
+
/* @__PURE__ */ f(B, { children: "Value map (raw → display text)" }),
|
|
16029
16031
|
n.map(([e, t], i) => /* @__PURE__ */ p("div", {
|
|
16030
16032
|
className: "flex items-center gap-2",
|
|
16031
16033
|
children: [
|
|
16032
|
-
/* @__PURE__ */ f(
|
|
16034
|
+
/* @__PURE__ */ f(Zr, {
|
|
16033
16035
|
"aria-label": `Value map key ${i + 1}`,
|
|
16034
16036
|
value: e,
|
|
16035
16037
|
placeholder: "raw value",
|
|
@@ -16042,7 +16044,7 @@ function rv({ valueMap: e, onChange: t }) {
|
|
|
16042
16044
|
className: "text-foreground-muted text-xs",
|
|
16043
16045
|
children: "→"
|
|
16044
16046
|
}),
|
|
16045
|
-
/* @__PURE__ */ f(
|
|
16047
|
+
/* @__PURE__ */ f(Zr, {
|
|
16046
16048
|
"aria-label": `Value map text ${i + 1}`,
|
|
16047
16049
|
value: t,
|
|
16048
16050
|
placeholder: "display text",
|
|
@@ -16051,7 +16053,7 @@ function rv({ valueMap: e, onChange: t }) {
|
|
|
16051
16053
|
a[i] = [e, t.target.value], r(a);
|
|
16052
16054
|
}
|
|
16053
16055
|
}),
|
|
16054
|
-
/* @__PURE__ */ f(
|
|
16056
|
+
/* @__PURE__ */ f(z, {
|
|
16055
16057
|
type: "button",
|
|
16056
16058
|
variant: "ghost",
|
|
16057
16059
|
size: "sm",
|
|
@@ -16061,7 +16063,7 @@ function rv({ valueMap: e, onChange: t }) {
|
|
|
16061
16063
|
})
|
|
16062
16064
|
]
|
|
16063
16065
|
}, i)),
|
|
16064
|
-
/* @__PURE__ */ f(
|
|
16066
|
+
/* @__PURE__ */ f(z, {
|
|
16065
16067
|
type: "button",
|
|
16066
16068
|
variant: "outline",
|
|
16067
16069
|
size: "sm",
|
|
@@ -16073,21 +16075,21 @@ function rv({ valueMap: e, onChange: t }) {
|
|
|
16073
16075
|
}
|
|
16074
16076
|
//#endregion
|
|
16075
16077
|
//#region src/components/ScheduleEditor.tsx
|
|
16076
|
-
function
|
|
16078
|
+
function nv(e, t, n) {
|
|
16077
16079
|
return {
|
|
16078
16080
|
...e,
|
|
16079
16081
|
windows: e.windows.map((e, r) => r === t ? n : e)
|
|
16080
16082
|
};
|
|
16081
16083
|
}
|
|
16082
|
-
function
|
|
16084
|
+
function rv({ schedule: e, onChange: t }) {
|
|
16083
16085
|
let n = e !== void 0;
|
|
16084
16086
|
return /* @__PURE__ */ p("div", {
|
|
16085
16087
|
className: "space-y-3",
|
|
16086
16088
|
children: [/* @__PURE__ */ p("label", {
|
|
16087
16089
|
className: "flex items-center gap-2 text-xs text-foreground",
|
|
16088
|
-
children: [/* @__PURE__ */ f(
|
|
16090
|
+
children: [/* @__PURE__ */ f($r, {
|
|
16089
16091
|
checked: n,
|
|
16090
|
-
onChange: () => t(n ? void 0 : { windows: [
|
|
16092
|
+
onChange: () => t(n ? void 0 : { windows: [G_()] })
|
|
16091
16093
|
}), "Only show on a schedule"]
|
|
16092
16094
|
}), e && /* @__PURE__ */ p("div", {
|
|
16093
16095
|
className: "space-y-3",
|
|
@@ -16096,43 +16098,43 @@ function av({ schedule: e, onChange: t }) {
|
|
|
16096
16098
|
children: [
|
|
16097
16099
|
/* @__PURE__ */ f("div", {
|
|
16098
16100
|
className: "flex flex-wrap gap-1.5",
|
|
16099
|
-
children:
|
|
16101
|
+
children: W_.map((i, a) => /* @__PURE__ */ f("button", {
|
|
16100
16102
|
type: "button",
|
|
16101
16103
|
"aria-pressed": n.days.includes(a),
|
|
16102
16104
|
className: ["px-1.5 py-0.5 rounded text-[10px] font-medium", n.days.includes(a) ? "bg-primary text-primary-foreground" : "bg-surface-hover text-foreground-muted"].join(" "),
|
|
16103
|
-
onClick: () => t(
|
|
16105
|
+
onClick: () => t(nv(e, r, J_(n, a))),
|
|
16104
16106
|
children: i
|
|
16105
16107
|
}, a))
|
|
16106
16108
|
}),
|
|
16107
16109
|
/* @__PURE__ */ p("div", {
|
|
16108
16110
|
className: "grid grid-cols-2 gap-2",
|
|
16109
|
-
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
16111
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
16110
16112
|
htmlFor: `osd-schedule-start-${r}`,
|
|
16111
16113
|
children: "From"
|
|
16112
16114
|
}), /* @__PURE__ */ f("input", {
|
|
16113
16115
|
id: `osd-schedule-start-${r}`,
|
|
16114
16116
|
type: "time",
|
|
16115
16117
|
className: "h-7 w-full px-2 text-xs bg-surface border border-border rounded-md text-foreground",
|
|
16116
|
-
value:
|
|
16117
|
-
onChange: (i) => t(
|
|
16118
|
+
value: K_(n.startMinute),
|
|
16119
|
+
onChange: (i) => t(nv(e, r, {
|
|
16118
16120
|
...n,
|
|
16119
|
-
startMinute:
|
|
16121
|
+
startMinute: q_(i.target.value)
|
|
16120
16122
|
}))
|
|
16121
|
-
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
16123
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
16122
16124
|
htmlFor: `osd-schedule-end-${r}`,
|
|
16123
16125
|
children: "To"
|
|
16124
16126
|
}), /* @__PURE__ */ f("input", {
|
|
16125
16127
|
id: `osd-schedule-end-${r}`,
|
|
16126
16128
|
type: "time",
|
|
16127
16129
|
className: "h-7 w-full px-2 text-xs bg-surface border border-border rounded-md text-foreground",
|
|
16128
|
-
value:
|
|
16129
|
-
onChange: (i) => t(
|
|
16130
|
+
value: K_(n.endMinute),
|
|
16131
|
+
onChange: (i) => t(nv(e, r, {
|
|
16130
16132
|
...n,
|
|
16131
|
-
endMinute:
|
|
16133
|
+
endMinute: q_(i.target.value)
|
|
16132
16134
|
}))
|
|
16133
16135
|
})] })]
|
|
16134
16136
|
}),
|
|
16135
|
-
e.windows.length > 1 && /* @__PURE__ */ f(
|
|
16137
|
+
e.windows.length > 1 && /* @__PURE__ */ f(z, {
|
|
16136
16138
|
type: "button",
|
|
16137
16139
|
variant: "ghost",
|
|
16138
16140
|
size: "sm",
|
|
@@ -16143,13 +16145,13 @@ function av({ schedule: e, onChange: t }) {
|
|
|
16143
16145
|
children: "Remove window"
|
|
16144
16146
|
})
|
|
16145
16147
|
]
|
|
16146
|
-
}, r)), /* @__PURE__ */ f(
|
|
16148
|
+
}, r)), /* @__PURE__ */ f(z, {
|
|
16147
16149
|
type: "button",
|
|
16148
16150
|
variant: "outline",
|
|
16149
16151
|
size: "sm",
|
|
16150
16152
|
onClick: () => t({
|
|
16151
16153
|
...e,
|
|
16152
|
-
windows: [...e.windows,
|
|
16154
|
+
windows: [...e.windows, G_()]
|
|
16153
16155
|
}),
|
|
16154
16156
|
children: "Add window"
|
|
16155
16157
|
})]
|
|
@@ -16158,99 +16160,83 @@ function av({ schedule: e, onChange: t }) {
|
|
|
16158
16160
|
}
|
|
16159
16161
|
//#endregion
|
|
16160
16162
|
//#region src/components/ConditionsEditor.tsx
|
|
16161
|
-
function
|
|
16162
|
-
let o = t.includes("
|
|
16163
|
+
function iv({ conditions: e, supported: t, devices: n, deviceStateSnapshot: r, onSelectDeviceStateDevice: i, onChange: a }) {
|
|
16164
|
+
let o = t.includes("deviceState"), s = X_(r);
|
|
16163
16165
|
return /* @__PURE__ */ p("div", {
|
|
16164
16166
|
className: "space-y-3",
|
|
16165
|
-
children: [
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
className: "flex items-center
|
|
16170
|
-
children: [/* @__PURE__ */ f(
|
|
16171
|
-
|
|
16172
|
-
|
|
16167
|
+
children: [o && /* @__PURE__ */ p("div", {
|
|
16168
|
+
className: "space-y-2",
|
|
16169
|
+
children: [
|
|
16170
|
+
/* @__PURE__ */ p("div", {
|
|
16171
|
+
className: "flex items-center justify-between",
|
|
16172
|
+
children: [/* @__PURE__ */ f(B, { children: "Only while another device is in state" }), e?.deviceState && /* @__PURE__ */ f("button", {
|
|
16173
|
+
type: "button",
|
|
16174
|
+
className: "text-xs text-foreground-muted hover:text-foreground",
|
|
16175
|
+
onClick: () => a(Z_(e, "deviceState")),
|
|
16176
|
+
children: "Remove"
|
|
16177
|
+
})]
|
|
16178
|
+
}),
|
|
16179
|
+
/* @__PURE__ */ f(Qr, {
|
|
16180
|
+
"aria-label": "Device-state condition device",
|
|
16181
|
+
value: e?.deviceState?.deviceId === void 0 ? "" : String(e.deviceState.deviceId),
|
|
16182
|
+
options: [{
|
|
16183
|
+
value: "",
|
|
16184
|
+
label: "Select a device…"
|
|
16185
|
+
}, ...n.map((e) => ({
|
|
16186
|
+
value: String(e.id),
|
|
16187
|
+
label: e.name
|
|
16188
|
+
}))],
|
|
16189
|
+
onChange: (t) => {
|
|
16190
|
+
let n = t.target.value === "" ? void 0 : Number(t.target.value);
|
|
16191
|
+
i(n), a(n === void 0 ? Z_(e, "deviceState") : {
|
|
16173
16192
|
...e,
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
}
|
|
16211
|
-
}),
|
|
16212
|
-
e?.deviceState && /* @__PURE__ */ f("div", {
|
|
16213
|
-
className: "flex flex-wrap gap-2",
|
|
16214
|
-
children: c.length === 0 ? /* @__PURE__ */ f("p", {
|
|
16215
|
-
className: "text-xs text-foreground-muted",
|
|
16216
|
-
children: "No known states for that device yet."
|
|
16217
|
-
}) : c.map((t) => /* @__PURE__ */ p("label", {
|
|
16218
|
-
className: "flex items-center gap-1.5 text-xs text-foreground",
|
|
16219
|
-
children: [/* @__PURE__ */ f(ei, {
|
|
16220
|
-
checked: e.deviceState?.states.includes(t) ?? !1,
|
|
16221
|
-
onChange: () => {
|
|
16222
|
-
let n = e.deviceState;
|
|
16223
|
-
if (!n) return;
|
|
16224
|
-
let r = n.states.includes(t) ? n.states.filter((e) => e !== t) : [...n.states, t];
|
|
16225
|
-
a({
|
|
16226
|
-
...e,
|
|
16227
|
-
deviceState: r.length > 0 ? {
|
|
16228
|
-
...n,
|
|
16229
|
-
states: r
|
|
16230
|
-
} : void 0
|
|
16231
|
-
});
|
|
16232
|
-
}
|
|
16233
|
-
}), t]
|
|
16234
|
-
}, t))
|
|
16235
|
-
})
|
|
16236
|
-
]
|
|
16237
|
-
}),
|
|
16238
|
-
!o && !s && /* @__PURE__ */ f("p", {
|
|
16239
|
-
className: "text-xs text-foreground-muted",
|
|
16240
|
-
children: "The hub reported no supported display conditions."
|
|
16241
|
-
})
|
|
16242
|
-
]
|
|
16193
|
+
deviceState: {
|
|
16194
|
+
deviceId: n,
|
|
16195
|
+
states: []
|
|
16196
|
+
}
|
|
16197
|
+
});
|
|
16198
|
+
}
|
|
16199
|
+
}),
|
|
16200
|
+
e?.deviceState && /* @__PURE__ */ f("div", {
|
|
16201
|
+
className: "flex flex-wrap gap-2",
|
|
16202
|
+
children: s.length === 0 ? /* @__PURE__ */ f("p", {
|
|
16203
|
+
className: "text-xs text-foreground-muted",
|
|
16204
|
+
children: "No known states for that device yet."
|
|
16205
|
+
}) : s.map((t) => /* @__PURE__ */ p("label", {
|
|
16206
|
+
className: "flex items-center gap-1.5 text-xs text-foreground",
|
|
16207
|
+
children: [/* @__PURE__ */ f($r, {
|
|
16208
|
+
checked: e.deviceState?.states.includes(t) ?? !1,
|
|
16209
|
+
onChange: () => {
|
|
16210
|
+
let n = e.deviceState;
|
|
16211
|
+
if (!n) return;
|
|
16212
|
+
let r = n.states.includes(t) ? n.states.filter((e) => e !== t) : [...n.states, t];
|
|
16213
|
+
a({
|
|
16214
|
+
...e,
|
|
16215
|
+
deviceState: r.length > 0 ? {
|
|
16216
|
+
...n,
|
|
16217
|
+
states: r
|
|
16218
|
+
} : void 0
|
|
16219
|
+
});
|
|
16220
|
+
}
|
|
16221
|
+
}), t]
|
|
16222
|
+
}, t))
|
|
16223
|
+
})
|
|
16224
|
+
]
|
|
16225
|
+
}), !o && /* @__PURE__ */ f("p", {
|
|
16226
|
+
className: "text-xs text-foreground-muted",
|
|
16227
|
+
children: "The hub reported no supported display conditions."
|
|
16228
|
+
})]
|
|
16243
16229
|
});
|
|
16244
16230
|
}
|
|
16245
16231
|
//#endregion
|
|
16246
16232
|
//#region src/components/SlotEditor.tsx
|
|
16247
16233
|
d();
|
|
16248
|
-
function
|
|
16249
|
-
let [c, l] = r(() =>
|
|
16234
|
+
function av({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a, onClose: o, onSaved: s }) {
|
|
16235
|
+
let [c, l] = r(() => I_(t)), [u, d] = r(c.conditions?.deviceState?.deviceId), [m, h] = r(void 0), g = Vi({ deviceId: u ?? 0 }, { enabled: u !== void 0 }), _ = Gi(), v = Ki(), y = Ji(), b = _.isPending || v.isPending || y.isPending, x = _.error ?? v.error ?? y.error;
|
|
16250
16236
|
function ee(e) {
|
|
16251
16237
|
l((t) => ({
|
|
16252
16238
|
...t,
|
|
16253
|
-
valueMap:
|
|
16239
|
+
valueMap: L_(e) ?? t.valueMap
|
|
16254
16240
|
}));
|
|
16255
16241
|
}
|
|
16256
16242
|
async function S() {
|
|
@@ -16285,7 +16271,7 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16285
16271
|
t.slotId,
|
|
16286
16272
|
"”"
|
|
16287
16273
|
]
|
|
16288
|
-
}), /* @__PURE__ */ f(
|
|
16274
|
+
}), /* @__PURE__ */ f(z, {
|
|
16289
16275
|
type: "button",
|
|
16290
16276
|
variant: "ghost",
|
|
16291
16277
|
size: "sm",
|
|
@@ -16304,14 +16290,14 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16304
16290
|
}))
|
|
16305
16291
|
}), "Binding enabled"]
|
|
16306
16292
|
}),
|
|
16307
|
-
/* @__PURE__ */ f(
|
|
16293
|
+
/* @__PURE__ */ f(ev, {
|
|
16308
16294
|
source: c.source,
|
|
16309
16295
|
sources: n,
|
|
16310
16296
|
onChange: (e) => {
|
|
16311
16297
|
l((t) => ({
|
|
16312
16298
|
...t,
|
|
16313
16299
|
source: e
|
|
16314
|
-
})), ee(
|
|
16300
|
+
})), ee(R_(n, {
|
|
16315
16301
|
...c,
|
|
16316
16302
|
source: e
|
|
16317
16303
|
}));
|
|
@@ -16320,10 +16306,10 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16320
16306
|
/* @__PURE__ */ p("div", {
|
|
16321
16307
|
className: "grid grid-cols-2 gap-3",
|
|
16322
16308
|
children: [
|
|
16323
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
16309
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
16324
16310
|
htmlFor: "osd-template",
|
|
16325
16311
|
children: "Template"
|
|
16326
|
-
}), /* @__PURE__ */ f(
|
|
16312
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
16327
16313
|
id: "osd-template",
|
|
16328
16314
|
value: c.template,
|
|
16329
16315
|
maxLength: 96,
|
|
@@ -16332,10 +16318,10 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16332
16318
|
template: e.target.value
|
|
16333
16319
|
}))
|
|
16334
16320
|
})] }),
|
|
16335
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
16321
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
16336
16322
|
htmlFor: "osd-unit",
|
|
16337
16323
|
children: "Unit label"
|
|
16338
|
-
}), /* @__PURE__ */ f(
|
|
16324
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
16339
16325
|
id: "osd-unit",
|
|
16340
16326
|
value: c.unitLabel ?? "",
|
|
16341
16327
|
maxLength: 8,
|
|
@@ -16344,10 +16330,10 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16344
16330
|
unitLabel: e.target.value || void 0
|
|
16345
16331
|
}))
|
|
16346
16332
|
})] }),
|
|
16347
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
16333
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
16348
16334
|
htmlFor: "osd-max-chars",
|
|
16349
16335
|
children: "Max characters"
|
|
16350
|
-
}), /* @__PURE__ */ f(
|
|
16336
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
16351
16337
|
id: "osd-max-chars",
|
|
16352
16338
|
type: "number",
|
|
16353
16339
|
min: 4,
|
|
@@ -16358,10 +16344,10 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16358
16344
|
maxCharacters: e.target.value === "" ? void 0 : Number(e.target.value)
|
|
16359
16345
|
}))
|
|
16360
16346
|
})] }),
|
|
16361
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(
|
|
16347
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(B, {
|
|
16362
16348
|
htmlFor: "osd-max-decimals",
|
|
16363
16349
|
children: "Max decimals"
|
|
16364
|
-
}), /* @__PURE__ */ f(
|
|
16350
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
16365
16351
|
id: "osd-max-decimals",
|
|
16366
16352
|
type: "number",
|
|
16367
16353
|
min: 0,
|
|
@@ -16374,10 +16360,10 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16374
16360
|
})] }),
|
|
16375
16361
|
/* @__PURE__ */ p("div", {
|
|
16376
16362
|
className: "col-span-2",
|
|
16377
|
-
children: [/* @__PURE__ */ f(
|
|
16363
|
+
children: [/* @__PURE__ */ f(B, {
|
|
16378
16364
|
htmlFor: "osd-fallback",
|
|
16379
16365
|
children: "Fallback text (shown when gated/unreadable)"
|
|
16380
|
-
}), /* @__PURE__ */ f(
|
|
16366
|
+
}), /* @__PURE__ */ f(Zr, {
|
|
16381
16367
|
id: "osd-fallback",
|
|
16382
16368
|
value: c.fallbackText,
|
|
16383
16369
|
maxLength: 64,
|
|
@@ -16389,21 +16375,21 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16389
16375
|
})
|
|
16390
16376
|
]
|
|
16391
16377
|
}),
|
|
16392
|
-
/* @__PURE__ */ f(
|
|
16378
|
+
/* @__PURE__ */ f(tv, {
|
|
16393
16379
|
valueMap: c.valueMap,
|
|
16394
16380
|
onChange: (e) => l((t) => ({
|
|
16395
16381
|
...t,
|
|
16396
16382
|
valueMap: e
|
|
16397
16383
|
}))
|
|
16398
16384
|
}),
|
|
16399
|
-
/* @__PURE__ */ f(
|
|
16385
|
+
/* @__PURE__ */ f(rv, {
|
|
16400
16386
|
schedule: c.schedule,
|
|
16401
16387
|
onChange: (e) => l((t) => ({
|
|
16402
16388
|
...t,
|
|
16403
16389
|
schedule: e
|
|
16404
16390
|
}))
|
|
16405
16391
|
}),
|
|
16406
|
-
/* @__PURE__ */ f(
|
|
16392
|
+
/* @__PURE__ */ f(iv, {
|
|
16407
16393
|
conditions: c.conditions,
|
|
16408
16394
|
supported: i,
|
|
16409
16395
|
devices: a,
|
|
@@ -16421,9 +16407,9 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16421
16407
|
}),
|
|
16422
16408
|
m && /* @__PURE__ */ p("div", {
|
|
16423
16409
|
className: "flex items-center gap-2 text-xs",
|
|
16424
|
-
children: [/* @__PURE__ */ f(
|
|
16425
|
-
variant:
|
|
16426
|
-
children:
|
|
16410
|
+
children: [/* @__PURE__ */ f(Wr, {
|
|
16411
|
+
variant: U_(m.outcome),
|
|
16412
|
+
children: V_(m.outcome)
|
|
16427
16413
|
}), /* @__PURE__ */ f("span", {
|
|
16428
16414
|
className: "text-foreground-muted",
|
|
16429
16415
|
children: m.text ? `"${m.text}"` : "(blank)"
|
|
@@ -16432,21 +16418,21 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16432
16418
|
/* @__PURE__ */ p("div", {
|
|
16433
16419
|
className: "flex items-center gap-2 pt-1",
|
|
16434
16420
|
children: [
|
|
16435
|
-
/* @__PURE__ */ f(
|
|
16421
|
+
/* @__PURE__ */ f(z, {
|
|
16436
16422
|
type: "button",
|
|
16437
16423
|
variant: "outline",
|
|
16438
16424
|
disabled: b,
|
|
16439
16425
|
onClick: S,
|
|
16440
16426
|
children: "Preview"
|
|
16441
16427
|
}),
|
|
16442
|
-
/* @__PURE__ */ f(
|
|
16428
|
+
/* @__PURE__ */ f(z, {
|
|
16443
16429
|
type: "button",
|
|
16444
16430
|
variant: "primary",
|
|
16445
16431
|
disabled: b,
|
|
16446
16432
|
onClick: C,
|
|
16447
16433
|
children: "Save & apply"
|
|
16448
16434
|
}),
|
|
16449
|
-
t.binding && /* @__PURE__ */ f(
|
|
16435
|
+
t.binding && /* @__PURE__ */ f(z, {
|
|
16450
16436
|
type: "button",
|
|
16451
16437
|
variant: "danger",
|
|
16452
16438
|
disabled: b,
|
|
@@ -16461,110 +16447,195 @@ function sv({ deviceId: e, slot: t, sources: n, conditionSupport: i, devices: a,
|
|
|
16461
16447
|
//#endregion
|
|
16462
16448
|
//#region src/page.tsx
|
|
16463
16449
|
d();
|
|
16464
|
-
function
|
|
16465
|
-
let
|
|
16450
|
+
function ov(e) {
|
|
16451
|
+
let t = Ri({ projection: "slim" }), n = Bi({}), r = s(() => (t.data ?? []).filter((e) => e.isCamera).map((e) => ({
|
|
16452
|
+
id: e.id,
|
|
16453
|
+
name: e.name
|
|
16454
|
+
})).toSorted((e, t) => e.name.localeCompare(t.name)), [t.data]), i = s(() => (t.data ?? []).map((e) => ({
|
|
16466
16455
|
id: e.id,
|
|
16467
16456
|
name: e.name
|
|
16468
|
-
})), [
|
|
16457
|
+
})), [t.data]), a = s(() => new Set((n.data ?? []).filter((e) => e.entries.some((e) => e.capName === "osd")).map((e) => e.deviceId)), [n.data]), o = Wi({}, { enabled: !0 }), c = t.error ?? n.error ?? o.error, l = t.isLoading || n.isLoading;
|
|
16469
16458
|
return /* @__PURE__ */ p("div", {
|
|
16470
16459
|
className: "p-6 space-y-4",
|
|
16471
16460
|
children: [
|
|
16472
|
-
/* @__PURE__ */
|
|
16461
|
+
/* @__PURE__ */ f("div", {
|
|
16473
16462
|
className: "flex items-center justify-between",
|
|
16474
|
-
children: [/* @__PURE__ */ f("h1", {
|
|
16463
|
+
children: /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h1", {
|
|
16475
16464
|
className: "text-2xl font-bold text-foreground",
|
|
16476
16465
|
children: "OSD Manager"
|
|
16477
|
-
}),
|
|
16466
|
+
}), /* @__PURE__ */ f("p", {
|
|
16467
|
+
className: "text-xs text-foreground-muted mt-1",
|
|
16468
|
+
children: l ? "Loading cameras…" : `${r.length} cameras · ${a.size} expose writable overlays`
|
|
16469
|
+
})] })
|
|
16470
|
+
}),
|
|
16471
|
+
c && /* @__PURE__ */ f(pi, {
|
|
16472
|
+
message: c.message,
|
|
16473
|
+
title: "Could not load OSD data"
|
|
16474
|
+
}),
|
|
16475
|
+
!l && r.length === 0 && /* @__PURE__ */ f(Kr, { children: /* @__PURE__ */ f("p", {
|
|
16476
|
+
className: "text-sm text-foreground-muted",
|
|
16477
|
+
children: "No cameras are registered."
|
|
16478
|
+
}) }),
|
|
16479
|
+
/* @__PURE__ */ f("div", {
|
|
16480
|
+
className: "grid grid-cols-1 gap-4 xl:grid-cols-2",
|
|
16481
|
+
children: r.map((e) => /* @__PURE__ */ f(sv, {
|
|
16482
|
+
camera: e,
|
|
16483
|
+
supportsOsd: a.has(e.id),
|
|
16484
|
+
allDevices: i,
|
|
16485
|
+
conditionSupport: o.data?.supported ?? [],
|
|
16486
|
+
copySources: r.filter((t) => t.id !== e.id && a.has(t.id))
|
|
16487
|
+
}, e.id))
|
|
16488
|
+
})
|
|
16489
|
+
]
|
|
16490
|
+
});
|
|
16491
|
+
}
|
|
16492
|
+
function sv({ camera: e, supportsOsd: t, allDevices: n, conditionSupport: i, copySources: a }) {
|
|
16493
|
+
let [o, s] = r(void 0), [c, l] = r(void 0), [u, d] = r(void 0), m = Hi({ deviceId: e.id }, { enabled: t }), h = Ui({ deviceId: e.id }, { enabled: t && o !== void 0 }), g = Yi(), _ = qi(), v = m.error ?? h.error ?? g.error ?? _.error;
|
|
16494
|
+
return /* @__PURE__ */ f(Kr, { children: /* @__PURE__ */ p("div", {
|
|
16495
|
+
className: "space-y-3",
|
|
16496
|
+
children: [
|
|
16497
|
+
/* @__PURE__ */ p("div", {
|
|
16498
|
+
className: "flex items-start justify-between gap-3",
|
|
16499
|
+
children: [/* @__PURE__ */ p("div", {
|
|
16500
|
+
className: "min-w-0",
|
|
16501
|
+
children: [/* @__PURE__ */ p("div", {
|
|
16502
|
+
className: "flex items-center gap-2",
|
|
16503
|
+
children: [/* @__PURE__ */ f("h2", {
|
|
16504
|
+
className: "font-semibold text-foreground truncate",
|
|
16505
|
+
children: e.name
|
|
16506
|
+
}), /* @__PURE__ */ f(Wr, {
|
|
16507
|
+
variant: t ? "success" : "default",
|
|
16508
|
+
children: t ? "OSD" : "unsupported"
|
|
16509
|
+
})]
|
|
16510
|
+
}), /* @__PURE__ */ p("p", {
|
|
16511
|
+
className: "text-xs text-foreground-muted",
|
|
16512
|
+
children: ["Camera #", e.id]
|
|
16513
|
+
})]
|
|
16514
|
+
}), t && /* @__PURE__ */ f(z, {
|
|
16478
16515
|
type: "button",
|
|
16479
16516
|
variant: "outline",
|
|
16517
|
+
size: "sm",
|
|
16480
16518
|
disabled: g.isPending,
|
|
16481
|
-
onClick: () => g.mutate({ deviceId:
|
|
16519
|
+
onClick: () => g.mutate({ deviceId: e.id }, { onSuccess: () => void m.refetch() }),
|
|
16482
16520
|
children: "Render now"
|
|
16483
16521
|
})]
|
|
16484
16522
|
}),
|
|
16485
|
-
|
|
16486
|
-
className: "
|
|
16487
|
-
children:
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16523
|
+
!t && /* @__PURE__ */ f("p", {
|
|
16524
|
+
className: "text-xs text-foreground-muted",
|
|
16525
|
+
children: "This camera does not expose writable text-overlay slots."
|
|
16526
|
+
}),
|
|
16527
|
+
t && a.length > 0 && /* @__PURE__ */ p("div", {
|
|
16528
|
+
className: "flex items-end gap-2 rounded-md border border-border bg-surface-subtle p-2",
|
|
16529
|
+
children: [/* @__PURE__ */ p("div", {
|
|
16530
|
+
className: "min-w-0 flex-1",
|
|
16531
|
+
children: [/* @__PURE__ */ f("label", {
|
|
16532
|
+
htmlFor: `osd-copy-source-${e.id}`,
|
|
16533
|
+
className: "block text-[11px] font-medium text-foreground mb-1",
|
|
16534
|
+
children: "Copy configuration from"
|
|
16535
|
+
}), /* @__PURE__ */ f(Qr, {
|
|
16536
|
+
id: `osd-copy-source-${e.id}`,
|
|
16537
|
+
"aria-label": `Source camera for ${e.name}`,
|
|
16538
|
+
value: c === void 0 ? "" : String(c),
|
|
16539
|
+
options: [{
|
|
16540
|
+
value: "",
|
|
16541
|
+
label: "Select source camera…"
|
|
16542
|
+
}, ...a.map((e) => ({
|
|
16543
|
+
value: String(e.id),
|
|
16544
|
+
label: e.name
|
|
16545
|
+
}))],
|
|
16546
|
+
onChange: (e) => {
|
|
16547
|
+
l(e.target.value === "" ? void 0 : Number(e.target.value)), d(void 0);
|
|
16548
|
+
}
|
|
16549
|
+
})]
|
|
16550
|
+
}), /* @__PURE__ */ f(z, {
|
|
16551
|
+
type: "button",
|
|
16552
|
+
variant: "outline",
|
|
16553
|
+
size: "sm",
|
|
16554
|
+
"aria-label": `Copy configuration into ${e.name}`,
|
|
16555
|
+
disabled: c === void 0 || _.isPending,
|
|
16556
|
+
onClick: async () => {
|
|
16557
|
+
if (c === void 0) return;
|
|
16558
|
+
let t = await _.mutateAsync({
|
|
16559
|
+
sourceDeviceId: c,
|
|
16560
|
+
targetDeviceId: e.id
|
|
16561
|
+
});
|
|
16562
|
+
d(`${t.copied} slot${t.copied === 1 ? "" : "s"} copied${t.skipped > 0 ? ` · ${t.skipped} skipped` : ""}`), s(void 0), await m.refetch();
|
|
16563
|
+
},
|
|
16564
|
+
children: "Copy"
|
|
16499
16565
|
})]
|
|
16500
|
-
}) }),
|
|
16501
|
-
_ && /* @__PURE__ */ f(mi, {
|
|
16502
|
-
message: _.message,
|
|
16503
|
-
title: "Could not load OSD data"
|
|
16504
16566
|
}),
|
|
16505
|
-
|
|
16506
|
-
|
|
16507
|
-
|
|
16508
|
-
|
|
16567
|
+
u !== void 0 && /* @__PURE__ */ f("p", {
|
|
16568
|
+
className: "text-xs text-success",
|
|
16569
|
+
role: "status",
|
|
16570
|
+
children: u
|
|
16509
16571
|
}),
|
|
16510
|
-
t
|
|
16572
|
+
t && m.isLoading && /* @__PURE__ */ f("p", {
|
|
16511
16573
|
className: "text-xs text-foreground-muted",
|
|
16512
16574
|
children: "Loading overlay slots…"
|
|
16513
16575
|
}),
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
|
|
16576
|
+
v && /* @__PURE__ */ f(pi, {
|
|
16577
|
+
message: v.message,
|
|
16578
|
+
title: `Could not load ${e.name}`
|
|
16579
|
+
}),
|
|
16580
|
+
m.data?.supported && m.data.slots.length === 0 && /* @__PURE__ */ f("p", {
|
|
16581
|
+
className: "text-xs text-foreground-muted",
|
|
16582
|
+
children: "No overlay slots reported."
|
|
16583
|
+
}),
|
|
16584
|
+
m.data?.supported && /* @__PURE__ */ f("div", {
|
|
16585
|
+
className: "divide-y divide-border rounded-md border border-border",
|
|
16586
|
+
children: m.data.slots.map((t) => /* @__PURE__ */ p("div", {
|
|
16587
|
+
className: "p-3",
|
|
16521
16588
|
children: [/* @__PURE__ */ p("div", {
|
|
16522
|
-
className: "
|
|
16589
|
+
className: "flex items-center justify-between gap-3",
|
|
16523
16590
|
children: [/* @__PURE__ */ p("div", {
|
|
16524
|
-
className: "
|
|
16525
|
-
children: [
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16591
|
+
className: "min-w-0",
|
|
16592
|
+
children: [/* @__PURE__ */ p("div", {
|
|
16593
|
+
className: "flex flex-wrap items-center gap-2",
|
|
16594
|
+
children: [
|
|
16595
|
+
/* @__PURE__ */ f("span", {
|
|
16596
|
+
className: "text-sm font-medium text-foreground",
|
|
16597
|
+
children: t.slotId
|
|
16598
|
+
}),
|
|
16599
|
+
/* @__PURE__ */ f(Wr, { children: t.kind }),
|
|
16600
|
+
t.readOnly && /* @__PURE__ */ f(Wr, {
|
|
16601
|
+
variant: "warning",
|
|
16602
|
+
children: "read-only"
|
|
16603
|
+
}),
|
|
16604
|
+
!t.cameraEnabled && /* @__PURE__ */ f(Wr, {
|
|
16605
|
+
variant: "default",
|
|
16606
|
+
children: "camera off"
|
|
16607
|
+
})
|
|
16608
|
+
]
|
|
16609
|
+
}), /* @__PURE__ */ p("p", {
|
|
16610
|
+
className: "text-xs text-foreground-muted truncate mt-1",
|
|
16611
|
+
children: [z_(t.binding), t.cameraText ? ` · currently "${t.cameraText}"` : ""]
|
|
16612
|
+
})]
|
|
16613
|
+
}), /* @__PURE__ */ f(z, {
|
|
16614
|
+
type: "button",
|
|
16615
|
+
variant: "outline",
|
|
16616
|
+
size: "sm",
|
|
16617
|
+
disabled: t.readOnly,
|
|
16618
|
+
onClick: () => s(o === t.slotId ? void 0 : t.slotId),
|
|
16619
|
+
children: o === t.slotId ? "Close" : "Edit"
|
|
16543
16620
|
})]
|
|
16544
|
-
}), /* @__PURE__ */ f(
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16621
|
+
}), o === t.slotId && /* @__PURE__ */ f("div", {
|
|
16622
|
+
className: "mt-3",
|
|
16623
|
+
children: /* @__PURE__ */ f(av, {
|
|
16624
|
+
deviceId: e.id,
|
|
16625
|
+
slot: t,
|
|
16626
|
+
sources: h.data?.sources ?? [],
|
|
16627
|
+
conditionSupport: i,
|
|
16628
|
+
devices: n,
|
|
16629
|
+
onClose: () => s(void 0),
|
|
16630
|
+
onSaved: () => {
|
|
16631
|
+
s(void 0), m.refetch();
|
|
16632
|
+
}
|
|
16633
|
+
})
|
|
16550
16634
|
})]
|
|
16551
|
-
}
|
|
16552
|
-
className: "mt-3",
|
|
16553
|
-
children: /* @__PURE__ */ f(sv, {
|
|
16554
|
-
deviceId: t,
|
|
16555
|
-
slot: e,
|
|
16556
|
-
sources: m.data?.sources ?? [],
|
|
16557
|
-
conditionSupport: h.data?.supported ?? [],
|
|
16558
|
-
devices: u,
|
|
16559
|
-
onClose: () => a(void 0),
|
|
16560
|
-
onSaved: () => {
|
|
16561
|
-
a(void 0), d.refetch();
|
|
16562
|
-
}
|
|
16563
|
-
})
|
|
16564
|
-
})] }, e.slotId))]
|
|
16635
|
+
}, t.slotId))
|
|
16565
16636
|
})
|
|
16566
16637
|
]
|
|
16567
|
-
});
|
|
16638
|
+
}) });
|
|
16568
16639
|
}
|
|
16569
16640
|
//#endregion
|
|
16570
|
-
export {
|
|
16641
|
+
export { ov as default };
|