dawn-ui-react 1.0.0-alpha.18 → 1.0.0-alpha.19
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ScrollAreaProps } from './scroll-area.types';
|
|
2
|
-
export declare const ScrollArea: ({ orientation,
|
|
2
|
+
export declare const ScrollArea: ({ defaultHeight, orientation, variant, className, children, ref, ...props }: ScrollAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
1
2
|
import { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area';
|
|
2
3
|
import { ComponentProps } from 'react';
|
|
3
|
-
export
|
|
4
|
-
orientation?:
|
|
4
|
+
export declare const scrollAreaVariants: (props?: ({
|
|
5
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
+
variant?: "ghost" | "outline" | "default" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export type ScrollAreaProps = ComponentProps<typeof BaseScrollArea.Root> & VariantProps<typeof scrollAreaVariants> & {
|
|
5
9
|
defaultHeight?: number;
|
|
6
10
|
};
|
package/dist/dawn-ui-react.js
CHANGED
|
@@ -33630,24 +33630,45 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33630
33630
|
className: J("flex h-full aria-[orientation=vertical]:flex-col", e),
|
|
33631
33631
|
"data-slot": "resizable-panel-group",
|
|
33632
33632
|
...t
|
|
33633
|
-
}), F4 = (
|
|
33634
|
-
|
|
33635
|
-
|
|
33636
|
-
|
|
33637
|
-
|
|
33633
|
+
}), F4 = y("overflow-hidden rounded-xl", {
|
|
33634
|
+
variants: {
|
|
33635
|
+
orientation: {
|
|
33636
|
+
vertical: "",
|
|
33637
|
+
horizontal: "h-full"
|
|
33638
|
+
},
|
|
33639
|
+
variant: {
|
|
33640
|
+
default: "bg-surface-low **:data-viewport:rounded-xl **:data-viewport:bg-surface-low **:data-viewport:px-sm **:data-viewport:py-sm **:data-viewport:inset-shadow-2xs **:data-viewport:before:pointer-events-none **:data-viewport:before:absolute **:data-viewport:before:top-0 **:data-viewport:before:left-0 **:data-viewport:before:block **:data-viewport:before:h-[min(40px,var(--scroll-area-overflow-y-start))] **:data-viewport:before:w-full **:data-viewport:before:bg-linear-to-b **:data-viewport:before:from-shadow **:data-viewport:before:to-transparent **:data-viewport:before:transition-[height] **:data-viewport:before:duration-100 **:data-viewport:before:ease-out **:data-viewport:before:content-[\"\"] **:data-viewport:before:[--scroll-area-overflow-y-start:inherit] **:data-viewport:after:pointer-events-none **:data-viewport:after:absolute **:data-viewport:after:bottom-0 **:data-viewport:after:left-0 **:data-viewport:after:block **:data-viewport:after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] **:data-viewport:after:w-full **:data-viewport:after:bg-linear-to-t **:data-viewport:after:from-shadow **:data-viewport:after:to-transparent **:data-viewport:after:transition-[height] **:data-viewport:after:duration-100 **:data-viewport:after:ease-out **:data-viewport:after:content-[\"\"] **:data-viewport:after:[--scroll-area-overflow-y-end:inherit]",
|
|
33641
|
+
ghost: "**:data-viewport:pr-3xs",
|
|
33642
|
+
outline: "border border-border **:data-viewport:px-sm **:data-viewport:py-sm"
|
|
33643
|
+
}
|
|
33644
|
+
},
|
|
33645
|
+
defaultVariants: {
|
|
33646
|
+
orientation: "vertical",
|
|
33647
|
+
variant: "default"
|
|
33648
|
+
}
|
|
33649
|
+
}), I4 = ({ defaultHeight: e = 200, orientation: t, variant: n, className: r, children: i, ref: a, ...o }) => /* @__PURE__ */ Z(qm, {
|
|
33650
|
+
className: J(r, F4({
|
|
33651
|
+
orientation: t,
|
|
33652
|
+
variant: n
|
|
33653
|
+
})),
|
|
33654
|
+
ref: a,
|
|
33655
|
+
style: { height: t === "vertical" ? `${e}px` : "100%" },
|
|
33656
|
+
...o,
|
|
33638
33657
|
children: [
|
|
33639
33658
|
/* @__PURE__ */ X(th, {
|
|
33640
|
-
|
|
33641
|
-
|
|
33659
|
+
"data-viewport": !0,
|
|
33660
|
+
className: J("flex h-full gap-xs overscroll-contain", t === "horizontal" && "flex-row pb-md", t === "vertical" && "flex-col"),
|
|
33661
|
+
children: i
|
|
33642
33662
|
}),
|
|
33643
33663
|
/* @__PURE__ */ X(sh, {
|
|
33644
|
-
|
|
33645
|
-
|
|
33664
|
+
"data-scrollbar": !0,
|
|
33665
|
+
className: J("ml-sm opacity-0 transition-opacity delay-300 hover:cursor-pointer data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75", t === "vertical" && "my-2xs mr-3xs w-2xs", t === "horizontal" && "mx-xs mb-xs h-2xs"),
|
|
33666
|
+
orientation: t,
|
|
33646
33667
|
children: /* @__PURE__ */ X(ch, { className: "size-full rounded-full bg-accent-default shadow-xs" })
|
|
33647
33668
|
}),
|
|
33648
33669
|
/* @__PURE__ */ X(lh, {})
|
|
33649
33670
|
]
|
|
33650
|
-
}),
|
|
33671
|
+
}), L4 = sr.createContext(null), R4 = ({ defaultOpen: e = !0, side: t = "left", collapsible: n = "icon", className: r, children: i, ref: a, ...o }) => {
|
|
33651
33672
|
let [s, c] = sr.useState(e), [l, u] = sr.useState(!1);
|
|
33652
33673
|
return sr.useEffect(() => {
|
|
33653
33674
|
let t = () => {
|
|
@@ -33655,7 +33676,7 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33655
33676
|
u(t), t && e && n !== "none" && c(!1);
|
|
33656
33677
|
};
|
|
33657
33678
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
33658
|
-
}, [e, n]), /* @__PURE__ */ X(
|
|
33679
|
+
}, [e, n]), /* @__PURE__ */ X(L4.Provider, {
|
|
33659
33680
|
value: {
|
|
33660
33681
|
defaultOpen: e,
|
|
33661
33682
|
open: s,
|
|
@@ -33673,12 +33694,12 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33673
33694
|
children: i
|
|
33674
33695
|
})
|
|
33675
33696
|
});
|
|
33676
|
-
},
|
|
33677
|
-
let e = sr.useContext(
|
|
33697
|
+
}, z4 = () => {
|
|
33698
|
+
let e = sr.useContext(L4);
|
|
33678
33699
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider");
|
|
33679
33700
|
return e;
|
|
33680
|
-
},
|
|
33681
|
-
let { open: a, setOpen: o, isMobile: s, collapsible: c, side: l } =
|
|
33701
|
+
}, B4 = ({ tone: e = "default", width: t = 400, className: n, children: r, ...i }) => {
|
|
33702
|
+
let { open: a, setOpen: o, isMobile: s, collapsible: c, side: l } = z4(), u = sr.useRef(null);
|
|
33682
33703
|
return sr.useEffect(() => {
|
|
33683
33704
|
let e = (e) => {
|
|
33684
33705
|
u.current && !u.current.contains(e.target) && s && a && o && o(!1);
|
|
@@ -33697,8 +33718,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33697
33718
|
...i,
|
|
33698
33719
|
children: r
|
|
33699
33720
|
});
|
|
33700
|
-
},
|
|
33701
|
-
let { trigger: i, collapsible: a } =
|
|
33721
|
+
}, V4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33722
|
+
let { trigger: i, collapsible: a } = z4();
|
|
33702
33723
|
return a === "none" ? null : /* @__PURE__ */ Z(P, {
|
|
33703
33724
|
className: J("shrink-0 border-none", e),
|
|
33704
33725
|
ref: n,
|
|
@@ -33710,45 +33731,45 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33710
33731
|
...r,
|
|
33711
33732
|
children: [t, /* @__PURE__ */ X(Uy, { weight: "bold" })]
|
|
33712
33733
|
});
|
|
33713
|
-
},
|
|
33714
|
-
let { open: i } =
|
|
33734
|
+
}, H4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33735
|
+
let { open: i } = z4();
|
|
33715
33736
|
return /* @__PURE__ */ X(qm, {
|
|
33716
33737
|
className: J("mb-auto min-h-0 flex-1 overflow-hidden rounded-xl transition-all duration-300 ease-in-out", i ? "" : "w-fit self-center", e),
|
|
33717
33738
|
ref: n,
|
|
33718
33739
|
...r,
|
|
33719
33740
|
children: /* @__PURE__ */ Z(th, {
|
|
33720
33741
|
className: J("flex h-full scrollbar-none flex-col items-center divide-y divide-border overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden", "before:pointer-events-none before:absolute before:top-0 before:left-0 before:block before:h-[min(40px,var(--scroll-area-overflow-y-start))] before:w-full before:bg-linear-to-b before:from-shadow/35 before:to-transparent before:transition-[height] before:duration-100 before:ease-out before:content-[\"\"] before:[--scroll-area-overflow-y-start:inherit]", "after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:block after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] after:w-full after:bg-linear-to-t after:from-shadow/35 after:to-transparent after:transition-[height] after:duration-100 after:ease-out after:content-[\"\"] after:[--scroll-area-overflow-y-end:inherit]", i ? "gap-md" : "gap-xs px-3xs pt-3xs"),
|
|
33721
|
-
children: [!i && /* @__PURE__ */ X(
|
|
33742
|
+
children: [!i && /* @__PURE__ */ X(V4, {}), t]
|
|
33722
33743
|
})
|
|
33723
33744
|
});
|
|
33724
|
-
},
|
|
33725
|
-
let { open: i, collapsible: a } =
|
|
33745
|
+
}, U4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33746
|
+
let { open: i, collapsible: a } = z4(), o = a === "none" || i;
|
|
33726
33747
|
return /* @__PURE__ */ X("div", {
|
|
33727
33748
|
className: J("flex shrink-0 animate-in items-center truncate p-3xs transition-all duration-300 ease-in-out", i ? "justify-start fade-in-0" : "justify-center self-center fade-out-0", e),
|
|
33728
33749
|
ref: n,
|
|
33729
33750
|
...r,
|
|
33730
33751
|
children: typeof t == "function" ? t(o) : t
|
|
33731
33752
|
});
|
|
33732
|
-
},
|
|
33753
|
+
}, W4 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ X("div", {
|
|
33733
33754
|
className: J("flex w-full flex-col items-start gap-3xs not-last-of-type:pb-md", e),
|
|
33734
33755
|
ref: n,
|
|
33735
33756
|
...r,
|
|
33736
33757
|
children: t
|
|
33737
|
-
}),
|
|
33758
|
+
}), G4 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ X("div", {
|
|
33738
33759
|
className: J("flex w-full flex-col gap-3xs", e),
|
|
33739
33760
|
ref: n,
|
|
33740
33761
|
...r,
|
|
33741
33762
|
children: t
|
|
33742
|
-
}),
|
|
33743
|
-
let { open: i, collapsible: a } =
|
|
33763
|
+
}), K4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33764
|
+
let { open: i, collapsible: a } = z4();
|
|
33744
33765
|
return a === "none" || i ? /* @__PURE__ */ X("span", {
|
|
33745
33766
|
className: J("inline-flex h-md w-full items-center justify-between truncate pr-3xs pl-sm style-text-default--1 text-on-surface-variant transition-all duration-200 ease-out", a !== "none" && i && "animate-in fade-in-0 slide-in-from-left-2", e),
|
|
33746
33767
|
ref: n,
|
|
33747
33768
|
...r,
|
|
33748
33769
|
children: t
|
|
33749
33770
|
}) : null;
|
|
33750
|
-
},
|
|
33751
|
-
let { open: i, collapsible: a } =
|
|
33771
|
+
}, q4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33772
|
+
let { open: i, collapsible: a } = z4(), o = a === "none" || i;
|
|
33752
33773
|
return /* @__PURE__ */ Z("div", {
|
|
33753
33774
|
className: J("flex shrink-0 items-center justify-between truncate style-text-strong-1 transition-all duration-300 ease-in-out", i ? "h-2xl pr-3xs pl-xs" : "self-center", e),
|
|
33754
33775
|
ref: n,
|
|
@@ -33756,39 +33777,39 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33756
33777
|
children: [/* @__PURE__ */ X("div", {
|
|
33757
33778
|
className: J("flex items-center justify-center gap-xs transition-all duration-200 ease-out", i && "justify-start", a !== "none" && "animate-in", o ? "fade-in-0" : "fade-out-0"),
|
|
33758
33779
|
children: typeof t == "function" ? t(o) : t
|
|
33759
|
-
}), i && /* @__PURE__ */ X(
|
|
33780
|
+
}), i && /* @__PURE__ */ X(V4, {})]
|
|
33760
33781
|
});
|
|
33761
|
-
},
|
|
33782
|
+
}, J4 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ X("div", {
|
|
33762
33783
|
className: J("flex w-full flex-col items-start gap-3xs p-3xs", e),
|
|
33763
33784
|
ref: n,
|
|
33764
33785
|
...r,
|
|
33765
33786
|
children: t
|
|
33766
|
-
}),
|
|
33767
|
-
let { open: i } =
|
|
33787
|
+
}), Y4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33788
|
+
let { open: i } = z4();
|
|
33768
33789
|
return /* @__PURE__ */ X(Uv, {
|
|
33769
33790
|
className: J(!i && "hidden", e),
|
|
33770
33791
|
ref: n,
|
|
33771
33792
|
...r,
|
|
33772
33793
|
children: t
|
|
33773
33794
|
});
|
|
33774
|
-
},
|
|
33775
|
-
let { open: a, collapsible: o } =
|
|
33795
|
+
}, X4 = ({ isActive: e, className: t, children: n, ref: r, ...i }) => {
|
|
33796
|
+
let { open: a, collapsible: o } = z4();
|
|
33776
33797
|
return /* @__PURE__ */ X("button", {
|
|
33777
33798
|
className: J("inline-flex cursor-pointer items-center gap-2xs rounded-full border border-transparent style-text-default-0 whitespace-nowrap transition-all duration-200 ease-out select-none active:scale-95 disabled:pointer-events-none disabled:opacity-50 [&>svg]:shrink-0", e ? "pointer-events-none bg-surface text-on-surface shadow-2xs" : "text-neutral-default hover:bg-neutral-container hover:text-neutral-on-container", !(o === "none" || a) && "mx-auto", a ? "h-xl w-full pl-sm" : "size-xl justify-center *:hidden [&>svg]:block", o !== "none" && a && "animate-in fade-in-0 slide-in-from-left-2", t),
|
|
33778
33799
|
ref: r,
|
|
33779
33800
|
...i,
|
|
33780
33801
|
children: n
|
|
33781
33802
|
});
|
|
33782
|
-
},
|
|
33783
|
-
let { open: i } =
|
|
33803
|
+
}, Z4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33804
|
+
let { open: i } = z4();
|
|
33784
33805
|
return i ? /* @__PURE__ */ X(uU, {
|
|
33785
33806
|
className: J("", e),
|
|
33786
33807
|
ref: n,
|
|
33787
33808
|
...r,
|
|
33788
33809
|
children: t
|
|
33789
33810
|
}) : /* @__PURE__ */ X(p4, { children: t });
|
|
33790
|
-
},
|
|
33791
|
-
let { open: i } =
|
|
33811
|
+
}, Q4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33812
|
+
let { open: i } = z4();
|
|
33792
33813
|
return i ? /* @__PURE__ */ X(cU, {
|
|
33793
33814
|
className: J("", e),
|
|
33794
33815
|
ref: n,
|
|
@@ -33802,8 +33823,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33802
33823
|
children: t
|
|
33803
33824
|
})
|
|
33804
33825
|
});
|
|
33805
|
-
},
|
|
33806
|
-
let { open: i } =
|
|
33826
|
+
}, $4 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33827
|
+
let { open: i } = z4();
|
|
33807
33828
|
return i ? /* @__PURE__ */ X(lU, {
|
|
33808
33829
|
className: J("gap-2xs! whitespace-nowrap shadow-none! transition-all duration-200 ease-out select-none hover:bg-neutral-container hover:text-neutral-on-container data-panel-open:bg-neutral-container! [&>svg]:shrink-0!", e),
|
|
33809
33830
|
ref: n,
|
|
@@ -33816,19 +33837,19 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33816
33837
|
className: "absolute right-2xs size-xs text-on-surface-variant"
|
|
33817
33838
|
})]
|
|
33818
33839
|
}) });
|
|
33819
|
-
},
|
|
33840
|
+
}, e3 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ X("div", {
|
|
33820
33841
|
className: J("flex h-xl w-full items-center justify-between gap-2xs", e),
|
|
33821
33842
|
ref: n,
|
|
33822
33843
|
...r,
|
|
33823
33844
|
children: t
|
|
33824
|
-
}),
|
|
33845
|
+
}), t3 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ X("div", {
|
|
33825
33846
|
className: J("animate-pulse rounded-lg bg-surface-2 shadow-sm", e),
|
|
33826
33847
|
ref: n,
|
|
33827
33848
|
...r,
|
|
33828
33849
|
children: t
|
|
33829
|
-
}),
|
|
33850
|
+
}), n3 = Y.createContext(null), r3 = ({ defaultView: e = "list", table: t, className: n, children: r, ref: i, ...a }) => {
|
|
33830
33851
|
let [o, s] = Y.useState(e);
|
|
33831
|
-
return /* @__PURE__ */ X(
|
|
33852
|
+
return /* @__PURE__ */ X(n3.Provider, {
|
|
33832
33853
|
value: {
|
|
33833
33854
|
view: o,
|
|
33834
33855
|
setView: s,
|
|
@@ -33843,25 +33864,25 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33843
33864
|
children: r
|
|
33844
33865
|
})
|
|
33845
33866
|
});
|
|
33846
|
-
},
|
|
33847
|
-
let e = Y.useContext(
|
|
33867
|
+
}, i3 = () => {
|
|
33868
|
+
let e = Y.useContext(n3);
|
|
33848
33869
|
if (!e) throw Error("useTable must be used within a TableProvider");
|
|
33849
33870
|
return e;
|
|
33850
|
-
},
|
|
33851
|
-
let { view: o, table: s } =
|
|
33871
|
+
}, a3 = ({ rowGridOverride: e, rowListOverride: t, className: n, children: r, ref: i, ...a }) => {
|
|
33872
|
+
let { view: o, table: s } = i3(), c = s.getRowModel().rows;
|
|
33852
33873
|
return /* @__PURE__ */ X("tbody", {
|
|
33853
33874
|
className: J("divide-y divide-border", o === "grid" && "grid grid-cols-5 gap-sm", n),
|
|
33854
33875
|
ref: i,
|
|
33855
33876
|
...a,
|
|
33856
|
-
children: c.map((n) => r ? r(n) : o === "grid" ? X(e ||
|
|
33877
|
+
children: c.map((n) => r ? r(n) : o === "grid" ? X(e || h3, { row: n }, n.id) : o === "list" ? X(t || g3, { row: n }, n.id) : null)
|
|
33857
33878
|
});
|
|
33858
|
-
},
|
|
33879
|
+
}, o3 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z(P, {
|
|
33859
33880
|
className: J("", e),
|
|
33860
33881
|
ref: n,
|
|
33861
33882
|
...r,
|
|
33862
33883
|
children: [t, /* @__PURE__ */ X(Ly, { weight: "bold" })]
|
|
33863
|
-
}),
|
|
33864
|
-
let { table: i } =
|
|
33884
|
+
}), s3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33885
|
+
let { table: i } = i3();
|
|
33865
33886
|
return /* @__PURE__ */ Z(P, {
|
|
33866
33887
|
className: J("shrink-0", e),
|
|
33867
33888
|
disabled: !i.getCanPreviousPage(),
|
|
@@ -33875,8 +33896,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33875
33896
|
...r,
|
|
33876
33897
|
children: [t, /* @__PURE__ */ X(wy, { weight: "bold" })]
|
|
33877
33898
|
});
|
|
33878
|
-
},
|
|
33879
|
-
let { table: i } =
|
|
33899
|
+
}, c3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33900
|
+
let { table: i } = i3();
|
|
33880
33901
|
return /* @__PURE__ */ Z("tfoot", {
|
|
33881
33902
|
className: J("", e),
|
|
33882
33903
|
ref: n,
|
|
@@ -33886,8 +33907,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33886
33907
|
children: e.isPlaceholder ? null : O2(e.column.columnDef.footer, e.getContext())
|
|
33887
33908
|
}, e.id)) }, e.id))]
|
|
33888
33909
|
});
|
|
33889
|
-
},
|
|
33890
|
-
let { table: i } =
|
|
33910
|
+
}, l3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33911
|
+
let { table: i } = i3();
|
|
33891
33912
|
return /* @__PURE__ */ Z("thead", {
|
|
33892
33913
|
className: J(""),
|
|
33893
33914
|
ref: n,
|
|
@@ -33913,8 +33934,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33913
33934
|
}, t.id))
|
|
33914
33935
|
}, t.id))]
|
|
33915
33936
|
});
|
|
33916
|
-
},
|
|
33917
|
-
let { table: i } =
|
|
33937
|
+
}, u3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33938
|
+
let { table: i } = i3();
|
|
33918
33939
|
return /* @__PURE__ */ Z(P, {
|
|
33919
33940
|
className: J("shrink-0", e),
|
|
33920
33941
|
disabled: !i.getCanNextPage(),
|
|
@@ -33928,8 +33949,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33928
33949
|
...r,
|
|
33929
33950
|
children: [t, /* @__PURE__ */ X(Ty, { weight: "bold" })]
|
|
33930
33951
|
});
|
|
33931
|
-
},
|
|
33932
|
-
let { table: i } =
|
|
33952
|
+
}, d3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33953
|
+
let { table: i } = i3();
|
|
33933
33954
|
return /* @__PURE__ */ Z(P, {
|
|
33934
33955
|
className: J("shrink-0", e),
|
|
33935
33956
|
disabled: !i.getCanNextPage(),
|
|
@@ -33943,8 +33964,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33943
33964
|
...r,
|
|
33944
33965
|
children: [t, /* @__PURE__ */ X(Ey, { weight: "bold" })]
|
|
33945
33966
|
});
|
|
33946
|
-
},
|
|
33947
|
-
let { table: i } =
|
|
33967
|
+
}, f3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33968
|
+
let { table: i } = i3();
|
|
33948
33969
|
return /* @__PURE__ */ Z(P, {
|
|
33949
33970
|
className: J("shrink-0", e),
|
|
33950
33971
|
disabled: !i.getCanPreviousPage(),
|
|
@@ -33958,7 +33979,7 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33958
33979
|
...r,
|
|
33959
33980
|
children: [t, /* @__PURE__ */ X(Cy, { weight: "bold" })]
|
|
33960
33981
|
});
|
|
33961
|
-
},
|
|
33982
|
+
}, p3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
33962
33983
|
let i = Y.useReducer(() => ({}), {})[1];
|
|
33963
33984
|
return /* @__PURE__ */ Z(P, {
|
|
33964
33985
|
className: J("", e),
|
|
@@ -33970,15 +33991,15 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33970
33991
|
...r,
|
|
33971
33992
|
children: [t, /* @__PURE__ */ X(by, { weight: "bold" })]
|
|
33972
33993
|
});
|
|
33973
|
-
},
|
|
33974
|
-
let { table: t } =
|
|
33994
|
+
}, m3 = ({ children: e }) => {
|
|
33995
|
+
let { table: t } = i3(), n = t.getState().pagination.pageIndex, r = t.getState().pagination.pageSize, i = t.getFilteredRowModel().rows.length, a = i === 0 ? 0 : n * r + 1;
|
|
33975
33996
|
return e(a, i === 0 ? 0 : Math.min(a + r - 1, i), i);
|
|
33976
|
-
},
|
|
33997
|
+
}, h3 = ({ row: e, className: t, children: n, ref: r, ...i }) => /* @__PURE__ */ X("tr", {
|
|
33977
33998
|
className: J("aspect-video min-h-2xl rounded-md bg-neutral-container p-xs", t),
|
|
33978
33999
|
ref: r,
|
|
33979
34000
|
...i,
|
|
33980
34001
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ Z("td", { children: [n, O2(e.column.columnDef.cell, e.getContext())] }, e.id))
|
|
33981
|
-
}),
|
|
34002
|
+
}), g3 = ({ row: e, className: t, children: n, ref: r, ...i }) => /* @__PURE__ */ X("tr", {
|
|
33982
34003
|
className: J("", t),
|
|
33983
34004
|
ref: r,
|
|
33984
34005
|
...i,
|
|
@@ -33991,8 +34012,8 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
33991
34012
|
},
|
|
33992
34013
|
children: [n, O2(e.column.columnDef.cell, e.getContext())]
|
|
33993
34014
|
}, e.id))
|
|
33994
|
-
}),
|
|
33995
|
-
let { table: i } =
|
|
34015
|
+
}), _3 = ({ className: e, children: t, ref: n, ...r }) => {
|
|
34016
|
+
let { table: i } = i3();
|
|
33996
34017
|
return /* @__PURE__ */ X(XW, {
|
|
33997
34018
|
className: J("", e),
|
|
33998
34019
|
onChange: (e) => {
|
|
@@ -34004,12 +34025,12 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
34004
34025
|
...r,
|
|
34005
34026
|
children: t
|
|
34006
34027
|
});
|
|
34007
|
-
},
|
|
34028
|
+
}, v3 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z(P, {
|
|
34008
34029
|
className: J("", e),
|
|
34009
34030
|
ref: n,
|
|
34010
34031
|
...r,
|
|
34011
34032
|
children: [t, /* @__PURE__ */ X(xy, { weight: "bold" })]
|
|
34012
|
-
}),
|
|
34033
|
+
}), y3 = () => {
|
|
34013
34034
|
let e = L_(), t = (t) => e.add({
|
|
34014
34035
|
...t,
|
|
34015
34036
|
data: {
|
|
@@ -34022,7 +34043,7 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
34022
34043
|
...e,
|
|
34023
34044
|
add: t
|
|
34024
34045
|
};
|
|
34025
|
-
},
|
|
34046
|
+
}, b3 = () => {
|
|
34026
34047
|
let e = I_();
|
|
34027
34048
|
return {
|
|
34028
34049
|
add: (t) => e.add({
|
|
@@ -34035,7 +34056,7 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
34035
34056
|
}),
|
|
34036
34057
|
toasts: e.toasts
|
|
34037
34058
|
};
|
|
34038
|
-
},
|
|
34059
|
+
}, x3 = ({ className: e, ref: t, toast: n, ...r }) => {
|
|
34039
34060
|
let i = n.timeout ?? 1e4, a = 2 * Math.PI * 14;
|
|
34040
34061
|
sr.useEffect(() => {
|
|
34041
34062
|
let e, t = performance.now(), n = (r) => {
|
|
@@ -34141,22 +34162,22 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
34141
34162
|
})]
|
|
34142
34163
|
})]
|
|
34143
34164
|
}, n.id);
|
|
34144
|
-
},
|
|
34145
|
-
let { toasts: r } =
|
|
34165
|
+
}, S3 = ({ className: e, ref: t, ...n }) => {
|
|
34166
|
+
let { toasts: r } = b3();
|
|
34146
34167
|
return /* @__PURE__ */ X(j_, { children: /* @__PURE__ */ X(p_, {
|
|
34147
34168
|
className: J("fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]", e),
|
|
34148
34169
|
ref: t,
|
|
34149
34170
|
...n,
|
|
34150
|
-
children: r.map((e) => /* @__PURE__ */ X(
|
|
34171
|
+
children: r.map((e) => /* @__PURE__ */ X(x3, { toast: e }, e.id))
|
|
34151
34172
|
}) });
|
|
34152
|
-
},
|
|
34173
|
+
}, C3 = ({ className: e, ref: t, toast: n, ...r }) => /* @__PURE__ */ Z(T_, {
|
|
34153
34174
|
className: J("group flex w-max origin-(--transform-origin) flex-col rounded-2xl bg-surface px-sm py-2xs shadow-lg transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0", e),
|
|
34154
34175
|
ref: t,
|
|
34155
34176
|
toast: n,
|
|
34156
34177
|
...r,
|
|
34157
34178
|
children: [/* @__PURE__ */ X(F_, { className: "data-[side=bottom]:-top-3xs data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-3xs data-[side=top]:rotate-180" }), /* @__PURE__ */ X(E_, { children: /* @__PURE__ */ X(D_, { className: "style-text-default--1" }) })]
|
|
34158
|
-
}),
|
|
34159
|
-
let { toasts: r } =
|
|
34179
|
+
}), w3 = ({ className: e, ref: t, ...n }) => {
|
|
34180
|
+
let { toasts: r } = b3();
|
|
34160
34181
|
return /* @__PURE__ */ X(j_, { children: /* @__PURE__ */ X(p_, {
|
|
34161
34182
|
className: J("fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]", e),
|
|
34162
34183
|
ref: t,
|
|
@@ -34164,39 +34185,39 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
34164
34185
|
children: r.map((e) => /* @__PURE__ */ X(P_, {
|
|
34165
34186
|
className: "z-[calc(1000-var(--toast-index))]",
|
|
34166
34187
|
toast: e,
|
|
34167
|
-
children: /* @__PURE__ */ X(
|
|
34188
|
+
children: /* @__PURE__ */ X(C3, { toast: e })
|
|
34168
34189
|
}, e.id))
|
|
34169
34190
|
}) });
|
|
34170
|
-
},
|
|
34191
|
+
}, T3 = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Z("div", {
|
|
34171
34192
|
className: J("", e),
|
|
34172
34193
|
ref: n,
|
|
34173
34194
|
...r,
|
|
34174
34195
|
children: [
|
|
34175
34196
|
/* @__PURE__ */ X(d_, {
|
|
34176
34197
|
timeout: 1e4,
|
|
34177
|
-
toastManager:
|
|
34178
|
-
children: /* @__PURE__ */ X(
|
|
34198
|
+
toastManager: E3,
|
|
34199
|
+
children: /* @__PURE__ */ X(w3, {})
|
|
34179
34200
|
}),
|
|
34180
34201
|
/* @__PURE__ */ X(d_, {
|
|
34181
34202
|
timeout: 1e4,
|
|
34182
|
-
toastManager:
|
|
34183
|
-
children: /* @__PURE__ */ X(
|
|
34203
|
+
toastManager: D3,
|
|
34204
|
+
children: /* @__PURE__ */ X(S3, {})
|
|
34184
34205
|
}),
|
|
34185
34206
|
t
|
|
34186
34207
|
]
|
|
34187
|
-
}),
|
|
34208
|
+
}), E3 = y3(), D3 = y3(), O3 = y("group flex w-fit items-center justify-center gap-3xs bg-neutral-container", {
|
|
34188
34209
|
variants: { size: {
|
|
34189
34210
|
small: "h-lg rounded-lg px-3xs",
|
|
34190
34211
|
medium: "h-xl rounded-xl px-2xs",
|
|
34191
34212
|
large: "h-2xl rounded-2xl px-xs"
|
|
34192
34213
|
} },
|
|
34193
34214
|
defaultVariants: { size: "medium" }
|
|
34194
|
-
}),
|
|
34215
|
+
}), k3 = ({ size: e = "medium", className: t, children: n, ref: r, ...i }) => {
|
|
34195
34216
|
let a = e ?? "medium";
|
|
34196
34217
|
return /* @__PURE__ */ X(yG.Provider, {
|
|
34197
34218
|
value: { size: a },
|
|
34198
34219
|
children: /* @__PURE__ */ X(U_, {
|
|
34199
|
-
className: J(
|
|
34220
|
+
className: J(O3({
|
|
34200
34221
|
size: a,
|
|
34201
34222
|
className: t
|
|
34202
34223
|
})),
|
|
@@ -34208,4 +34229,4 @@ var p4 = ({ children: e, ...t }) => /* @__PURE__ */ X(nm, {
|
|
|
34208
34229
|
});
|
|
34209
34230
|
};
|
|
34210
34231
|
//#endregion
|
|
34211
|
-
export { _i as Accordion, vi as AccordionHeader, yi as AccordionItem, bi as AccordionPanel, xi as AccordionSubtitle, Si as AccordionTitle, T as Alert, wi as AlertActions, j as AlertContent, E as AlertDescription, lv as AlertDialog, gv as AlertDialogActions, uv as AlertDialogClose, pv as AlertDialogConfirm, mv as AlertDialogContent, hv as AlertDialogDescription, _v as AlertDialogHeader, yv as AlertDialogPopup, bv as AlertDialogTitle, xv as AlertDialogTrigger, Ci as AlertTitle,
|
|
34232
|
+
export { _i as Accordion, vi as AccordionHeader, yi as AccordionItem, bi as AccordionPanel, xi as AccordionSubtitle, Si as AccordionTitle, T as Alert, wi as AlertActions, j as AlertContent, E as AlertDescription, lv as AlertDialog, gv as AlertDialogActions, uv as AlertDialogClose, pv as AlertDialogConfirm, mv as AlertDialogContent, hv as AlertDialogDescription, _v as AlertDialogHeader, yv as AlertDialogPopup, bv as AlertDialogTitle, xv as AlertDialogTrigger, Ci as AlertTitle, C3 as AnchoredToastItem, w3 as AnchoredToasts, Sv as Autocomplete, Cv as AutocompleteCollection, wv as AutocompleteContent, Dv as AutocompleteGridContent, Ov as AutocompleteGridItem, kv as AutocompleteGroup, Av as AutocompleteGroupLabel, Tv as AutocompleteInputGroup, jv as AutocompleteInputGroupAddon, Ev as AutocompleteInputGroupInput, Mv as AutocompleteItem, Nv as AutocompleteRow, Pv as AutocompleteStatus, Fv as AutocompleteTrigger, Rv as Avatar, Vv as AvatarBadge, zv as AvatarFallback, Bv as AvatarImage, Uv as Badge, Wv as Breadcrumb, Yy as BreadcrumbEllipsis, Xy as BreadcrumbItem, Zy as BreadcrumbLink, Qy as BreadcrumbSeparator, P as Button, eb as ButtonGroup, nb as ChartContainer, tb as ChartContainerContext, GH as ChartLegend, ZH as ChartLegendContent, KH as ChartLegendIcon, qH as ChartLegendIndicator, JH as ChartLegendLabel, $H as ChartLinearGradient, LH as ChartTooltip, zH as ChartTooltipContent, nU as ChartTooltipIcon, eU as ChartTooltipIndicator, VH as ChartTooltipLabel, tU as ChartTooltipName, UH as ChartTooltipPayload, rU as ChartTooltipValue, oU as Checkbox, sU as CheckboxGroup, iU as CheckboxIndicator, fU as CodeBlock, mU as CodeBlockActions, hU as CodeBlockCopy, gU as CodeBlockDownload, _U as CodeBlockHeader, vU as CodeBlockName, kU as CodeBlockSelect, IU as CodeBlockTabs, LU as CodeBlockWindow, uU as Collapsible, cU as CollapsiblePanel, lU as CollapsibleTrigger, RU as Combobox, zU as ComboboxChip, BU as ComboboxChips, VU as ComboboxCollection, HU as ComboboxEmpty, UU as ComboboxGroup, WU as ComboboxGroupLabel, JU as ComboboxInput, YU as ComboboxItem, XU as ComboboxList, ZU as ComboboxPopup, QU as ComboboxStatus, $U as ComboboxTrigger, eW as ComboboxValue, TW as ComboboxVirtualizedList, EW as Dialog, DW as DialogClose, OW as DialogContent, kW as DialogDescription, AW as DialogFooter, jW as DialogHeader, MW as DialogPopup, NW as DialogTitle, PW as DialogTrigger, FW as Drawer, IW as DrawerClose, LW as DrawerContent, RW as DrawerDescription, KW as DrawerHeader, WW as DrawerPopup, zW as DrawerProvider, GW as DrawerTitle, BW as DrawerTrigger, qW as Field, fG as FieldCheckbox, JW as FieldDescription, YW as FieldErrors, ZW as FieldInput, QW as FieldLabel, gG as FieldRadioGroup, oG as FieldSelect, aG as FieldSlider, vG as FieldSwitch, lG as FieldTextArea, SG as FieldToggle, CG as Form, C as FormErrors, z as FormReset, A as FormSubmit, XW as Input, ar as InputGroup, GU as InputGroupAddon, or as InputGroupInput, wG as InputOTP, TG as InputOTPSlot, EG as InputOtpSeparator, DG as Kbd, dG as Label, E2 as LayerTree, N2 as LayerTreeBody, P2 as LayerTreeExpandAll, R2 as LayerTreeFooter, F2 as LayerTreeNode, I2 as LayerTreeNodeToggle, M2 as LayerTreeRow, L2 as LayerTreeSearch, e4 as LayerTreeSort, z2 as Menu, B2 as MenuCheckboxItem, V2 as MenuGroup, H2 as MenuGroupLabel, G2 as MenuItem, K2 as MenuPopup, q2 as MenuRadioGroup, J2 as MenuRadioItem, Y2 as MenuSeparator, X2 as MenuShortcut, Z2 as MenuSubmenu, Q2 as MenuSubmenuTrigger, $2 as MenuTrigger, n4 as Meter, c4 as MeterFooter, r4 as MeterHeader, i4 as MeterIndicator, a4 as MeterLabel, l4 as MeterSubtitle, o4 as MeterTrack, s4 as MeterValue, d4 as NumberField, p4 as Popover, b4 as PopoverButton, y4 as PopoverContent, m4 as PopoverDescription, v4 as PopoverHeader, h4 as PopoverPanel, g4 as PopoverTitle, _4 as PopoverTrigger, S4 as Profile, T4 as ProfileAction, E4 as ProfileContent, C4 as ProfileName, w4 as ProfileSubname, D4 as Progress, O4 as ProgressBar, k4 as ProgressIndicator, j4 as RadarPing, mG as Radio, hG as RadioGroup, M4 as ResizeableHandle, N4 as ResizeablePanel, P4 as ResizeablePanelGroup, I4 as ScrollArea, yU as Select, DU as SelectGroup, OU as SelectGroupLabel, SU as SelectIcon, bU as SelectItem, xU as SelectList, CU as SelectPopup, TU as SelectTrigger, EU as SelectValue, qU as Separator, B4 as Sidebar, H4 as SidebarContent, U4 as SidebarFooter, W4 as SidebarGroup, G4 as SidebarGroupContent, K4 as SidebarGroupLabel, q4 as SidebarHeader, J4 as SidebarMenu, Y4 as SidebarMenuBadge, X4 as SidebarMenuButton, Z4 as SidebarMenuCollapsible, Q4 as SidebarMenuCollapsiblePanel, $4 as SidebarMenuCollapsibleTrigger, e3 as SidebarMenuItem, R4 as SidebarProvider, V4 as SidebarToggle, t3 as Skeleton, iG as Slider, nG as SliderThumb, x3 as StackToastItem, S3 as StackToasts, _G as Switch, r3 as Table, a3 as TableBody, o3 as TableFilter, s3 as TableFirstPage, c3 as TableFooter, l3 as TableHeader, u3 as TableLastPage, d3 as TableNextPage, m3 as TablePagination, f3 as TablePreviousPage, p3 as TableRefresh, h3 as TableRowGrid, g3 as TableRowList, _3 as TableSearch, v3 as TableSort, jU as Tabs, MU as TabsIndicator, NU as TabsList, PU as TabsPanel, FU as TabsTab, cG as TextArea, T3 as ToastProvider, xG as Toggle, k3 as ToggleGroup, $W as Tooltip, eG as TooltipContent, tG as TooltipTrigger, E3 as anchoredToastManager, J as cn, R as fieldContext, OG as findLayerTreeNode, M as formContext, YH as getPayloadConfigFromPayload, AG as insertLayerTreeNode, jG as moveLayerTreeNode, MG as moveLayerTreeNodeToRoot, x4 as popoverHandle, kG as removeLayerTreeNode, D3 as stackToastManager, I as useAppForm, rb as useChart, BH as useChartTooltipContent, WH as useChartTooltipPayload, D as useFieldContext, b as useFormContext, z4 as useSidebar, i3 as useTable, b3 as useToastManager, N as useTypedAppFormContext, L as withFieldGroup, S as withForm };
|
|
@@ -127,9 +127,9 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
127
127
|
.${o} > :nth-child(-n+${s-1}) [data-slot='progress-bar'] {
|
|
128
128
|
background-color: var(--color-accent-default);
|
|
129
129
|
}
|
|
130
|
-
`}),(0,n.jsx)(`div`,{className:Y(`flex w-full items-center justify-center gap-2xs`,o,t),ref:i,...a,children:r})]})};X();var Ime=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:`w-full`,children:(0,n.jsx)(`div`,{className:Y(`h-3xs w-full grow rounded-full bg-accent-default/20 transition-colors ease-in-out`,e),"data-slot":`progress-bar`,ref:r,...i,children:t})});X();var Lme=({title:e,description:t,className:r,children:i,ref:a,...o})=>(0,n.jsxs)(`div`,{className:`relative`,children:[(0,n.jsx)(`div`,{className:Y(`flex size-md shrink-0 flex-col items-center justify-center rounded-full border border-neutral-border bg-neutral-container text-center style-text-default--2 text-accent-default transition-colors ease-in-out [&>svg]:size-xs`,r),"data-slot":`progress-indicator`,ref:a,...o,children:i}),(0,n.jsxs)(`div`,{className:`absolute top-full left-1/2 w-3xl -translate-x-1/2 translate-y-2xs`,children:[e&&(0,n.jsx)(`div`,{className:`text-center style-text-strong--2 text-on-surface`,children:e}),t&&(0,n.jsx)(`div`,{className:`text-center style-text-prose--2 text-on-surface-variant`,children:t})]})]});po();var Rme=fo(`absolute top-[0px] right-[0px] flex`,{variants:{tone:{brand:`[&_[data-dot]]:bg-brand-default [&_[data-radar-ping]]:bg-brand-default`,accent:`[&_[data-dot]]:bg-accent-default [&_[data-radar-ping]]:bg-accent-default`,neutral:`[&_[data-dot]]:bg-neutral-default [&_[data-radar-ping]]:bg-neutral-default`,info:`[&_[data-dot]]:bg-info-default [&_[data-radar-ping]]:bg-info-default`,error:`[&_[data-dot]]:bg-error-default [&_[data-radar-ping]]:bg-error-default`,success:`[&_[data-dot]]:bg-success-default [&_[data-radar-ping]]:bg-success-default`,warning:`[&_[data-dot]]:bg-warning-default [&_[data-radar-ping]]:bg-warning-default`},size:{small:`-mt-3xs -mr-3xs style-text-default--2 [&_[data-dot]]:size-sm`,medium:`-mt-2xs -mr-2xs style-text-default--1 [&_[data-dot]]:size-md`,large:`-mt-xs -mr-xs style-text-default-0 [&_[data-dot]]:size-lg`}},defaultVariants:{tone:`brand`,size:`medium`}});X();var zme=({hidePing:e=!1,tone:t=`brand`,size:r=`medium`,className:i,children:a,ref:o,...s})=>(0,n.jsxs)(`div`,{className:Y(Rme({tone:t,size:r,className:i})),ref:o,...s,children:[!e&&(0,n.jsx)(`span`,{className:`absolute inline-flex size-full animate-ping rounded-full opacity-75`,"data-radar-ping":!0}),(0,n.jsx)(`span`,{className:`relative flex items-center justify-center rounded-full text-surface`,"data-dot":!0,children:a})]});X();var Bme=({withHandle:e=!1,className:t,...r})=>(0,n.jsx)(s.Separator,{className:Y(`relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-[0px] after:left-1/2 after:w-px after:-translate-x-1/2 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:left-[0px] after:aria-[orientation=horizontal]:h-px after:aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:translate-x-[0px] after:aria-[orientation=horizontal]:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90`,t),"data-slot":`resizable-handle`,...r,children:e&&(0,n.jsx)(`div`,{className:`z-10 flex h-md w-3xs shrink-0 rounded-lg bg-border`})});X();var Vme=({className:e,...t})=>(0,n.jsx)(s.Panel,{className:Y(``,e),"data-slot":`resizable-panel`,...t});X();var Hme=({className:e,...t})=>(0,n.jsx)(s.Group,{className:Y(`flex h-full aria-[orientation=vertical]:flex-col`,e),"data-slot":`resizable-panel-group`,...t});bT(),X();var Ume=({orientation:e=`vertical`,defaultHeight:t=200,className:r,children:i,ref:a,...o})=>(0,n.jsxs)(iT,{className:Y(r,`overflow-hidden rounded-xl bg-surface-low`,e===`horizontal`&&`h-full`),ref:a,style:{height:e===`vertical`?`${t}px`:`100%`},...o,children:[(0,n.jsx)(fT,{className:Y(`flex h-full gap-xs overscroll-contain rounded-xl bg-surface-low py-xs pr-md inset-shadow-2xs before:pointer-events-none before:absolute before:top-0 before:left-0 before:block before:h-[min(40px,var(--scroll-area-overflow-y-start))] before:w-full before:bg-linear-to-b before:from-shadow before:to-transparent before:transition-[height] before:duration-100 before:ease-out before:content-[""] before:[--scroll-area-overflow-y-start:inherit] after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:block after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] after:w-full after:bg-linear-to-t after:from-shadow after:to-transparent after:transition-[height] after:duration-100 after:ease-out after:content-[""] after:[--scroll-area-overflow-y-end:inherit]`,e===`horizontal`&&`flex-row pb-md pl-sm`,e===`vertical`&&`flex-col pl-sm`),children:i}),(0,n.jsx)(_T,{className:Y(`ml-sm opacity-0 transition-opacity delay-300 hover:cursor-pointer data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75`,e===`vertical`&&`my-xs mr-2xs w-2xs`,e===`horizontal`&&`mx-xs mb-xs h-2xs`),orientation:e,children:(0,n.jsx)(vT,{className:`size-full rounded-full bg-accent-default shadow-xs`})}),(0,n.jsx)(yT,{})]});X();var z9=y.default.createContext(null),Wme=({defaultOpen:e=!0,side:t=`left`,collapsible:r=`icon`,className:i,children:a,ref:o,...s})=>{let[c,l]=y.default.useState(e),[u,d]=y.default.useState(!1);return y.default.useEffect(()=>{let t=()=>{let t=window.innerWidth<328;d(t),t&&e&&r!==`none`&&l(!1)};return t(),window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e,r]),(0,n.jsx)(z9.Provider,{value:{defaultOpen:e,open:c,setOpen:l,side:t,trigger:()=>l(!c),isMobile:u,setIsMobile:d,collapsible:r},children:(0,n.jsx)(`div`,{className:Y(`relative size-full`,t===`left`?`flex flex-row`:`flex flex-row-reverse`,i),ref:o,...s,children:a})})},B9=()=>{let e=y.default.useContext(z9);if(!e)throw Error(`useSidebar must be used within a SidebarProvider`);return e};X();var Gme=({tone:e=`default`,width:t=400,className:r,children:i,...a})=>{let{open:o,setOpen:s,isMobile:c,collapsible:l,side:u}=B9(),d=y.default.useRef(null);return y.default.useEffect(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&c&&o&&s&&s(!1)};return document.addEventListener(`click`,e),()=>{document.removeEventListener(`click`,e)}},[o,s,c]),(0,n.jsx)(`div`,{className:Y(`sticky left-[0px] flex h-full shrink-0 flex-col justify-between overflow-hidden border-border bg-surface transition-[width,transform] duration-300 ease-in-out`,r,e===`ghost`&&!c&&`bg-transparent`,l===`none`?`gap-lg`:l===`offcanvas`||l===`icon`?o?`gap-lg`:`gap-sm`:`gap-lg`,(l===`offcanvas`||l===`icon`)&&!o&&c?`absolute z-50 -translate-x-full`:(l===`offcanvas`||l===`icon`)&&o&&c?`absolute z-50`:``,l===`offcanvas`&&!o&&`border-none`,o&&`p-md`,l===`icon`&&!o&&`py-md`,c&&`border-none`,u===`left`?`border-r`:`border-l`),ref:d,style:l===`none`?{width:`${t}px`}:l===`offcanvas`?o?c?{width:`33.333333%`}:{width:`${t}px`}:{width:`0px`}:l==`icon`?o?{width:`${t}px`}:c?{width:`0px`}:{width:`80px`}:{width:`${t}px`},...a,children:i})};Bj(),hk(),X();var V9=({className:e,children:t,ref:r,...i})=>{let{trigger:a,collapsible:o}=B9();return o===`none`?null:(0,n.jsxs)(mk,{className:Y(`shrink-0 border-none`,e),ref:r,size:`iconMedium`,variant:`ghost`,onClick:e=>{e.stopPropagation(),a&&a()},...i,children:[t,(0,n.jsx)(Nj,{weight:`bold`})]})};bT(),X();var Kme=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return(0,n.jsx)(iT,{className:Y(`mb-auto min-h-0 flex-1 overflow-hidden rounded-xl transition-all duration-300 ease-in-out`,a?``:`w-fit self-center`,e),ref:r,...i,children:(0,n.jsxs)(fT,{className:Y(`flex h-full scrollbar-none flex-col items-center divide-y divide-border overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden`,`before:pointer-events-none before:absolute before:top-0 before:left-0 before:block before:h-[min(40px,var(--scroll-area-overflow-y-start))] before:w-full before:bg-linear-to-b before:from-shadow/35 before:to-transparent before:transition-[height] before:duration-100 before:ease-out before:content-[""] before:[--scroll-area-overflow-y-start:inherit]`,`after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:block after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] after:w-full after:bg-linear-to-t after:from-shadow/35 after:to-transparent after:transition-[height] after:duration-100 after:ease-out after:content-[""] after:[--scroll-area-overflow-y-end:inherit]`,a?`gap-md`:`gap-xs px-3xs pt-3xs`),children:[!a&&(0,n.jsx)(V9,{}),t]})})};X();var qme=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=B9(),s=o===`none`||a;return(0,n.jsx)(`div`,{className:Y(`flex shrink-0 animate-in items-center truncate p-3xs transition-all duration-300 ease-in-out`,a?`justify-start fade-in-0`:`justify-center self-center fade-out-0`,e),ref:r,...i,children:typeof t==`function`?t(s):t})};X();var Jme=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex w-full flex-col items-start gap-3xs not-last-of-type:pb-md`,e),ref:r,...i,children:t});X();var Yme=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex w-full flex-col gap-3xs`,e),ref:r,...i,children:t});X();var Xme=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=B9();return o===`none`||a?(0,n.jsx)(`span`,{className:Y(`inline-flex h-md w-full items-center justify-between truncate pr-3xs pl-sm style-text-default--1 text-on-surface-variant transition-all duration-200 ease-out`,o!==`none`&&a&&`animate-in fade-in-0 slide-in-from-left-2`,e),ref:r,...i,children:t}):null};X();var Zme=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=B9(),s=o===`none`||a;return(0,n.jsxs)(`div`,{className:Y(`flex shrink-0 items-center justify-between truncate style-text-strong-1 transition-all duration-300 ease-in-out`,a?`h-2xl pr-3xs pl-xs`:`self-center`,e),ref:r,...i,children:[(0,n.jsx)(`div`,{className:Y(`flex items-center justify-center gap-xs transition-all duration-200 ease-out`,a&&`justify-start`,o!==`none`&&`animate-in`,s?`fade-in-0`:`fade-out-0`),children:typeof t==`function`?t(s):t}),a&&(0,n.jsx)(V9,{})]})};X();var Qme=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex w-full flex-col items-start gap-3xs p-3xs`,e),ref:r,...i,children:t});X();var $me=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return(0,n.jsx)(Bk,{className:Y(!a&&`hidden`,e),ref:r,...i,children:t})};X();var ehe=({isActive:e,className:t,children:r,ref:i,...a})=>{let{open:o,collapsible:s}=B9();return(0,n.jsx)(`button`,{className:Y(`inline-flex cursor-pointer items-center gap-2xs rounded-full border border-transparent style-text-default-0 whitespace-nowrap transition-all duration-200 ease-out select-none active:scale-95 disabled:pointer-events-none disabled:opacity-50 [&>svg]:shrink-0`,e?`pointer-events-none bg-surface text-on-surface shadow-2xs`:`text-neutral-default hover:bg-neutral-container hover:text-neutral-on-container`,!(s===`none`||o)&&`mx-auto`,o?`h-xl w-full pl-sm`:`size-xl justify-center *:hidden [&>svg]:block`,s!==`none`&&o&&`animate-in fade-in-0 slide-in-from-left-2`,t),ref:i,...a,children:r})};X();var the=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return a?(0,n.jsx)(QX,{className:Y(``,e),ref:r,...i,children:t}):(0,n.jsx)(F9,{children:t})};X();var nhe=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return a?(0,n.jsx)(XX,{className:Y(``,e),ref:r,...i,children:t}):(0,n.jsx)(I9,{side:`right`,className:`w-fit p-[0.5rem_0.5rem]`,children:(0,n.jsx)(R9,{className:`flex gap-3xs`,children:t})})};Bj(),X();var rhe=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return a?(0,n.jsx)(ZX,{className:Y(`gap-2xs! whitespace-nowrap shadow-none! transition-all duration-200 ease-out select-none hover:bg-neutral-container hover:text-neutral-on-container data-panel-open:bg-neutral-container! [&>svg]:shrink-0!`,e),ref:r,...i,children:t}):(0,n.jsx)(L9,{children:(0,n.jsxs)(`button`,{className:Y(`flex size-xl items-center justify-center rounded-xl shadow-none! transition-colors *:hidden hover:cursor-pointer hover:bg-neutral-container hover:text-neutral-on-container data-popup-open:bg-neutral-container [&>svg]:block`),children:[t,(0,n.jsx)(fj,{weight:`bold`,className:`absolute right-2xs size-xs text-on-surface-variant`})]})})};X();var ihe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex h-xl w-full items-center justify-between gap-2xs`,e),ref:r,...i,children:t});X();var ahe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`animate-pulse rounded-lg bg-surface-2 shadow-sm`,e),ref:r,...i,children:t}),H9=y.createContext(null),ohe=({defaultView:e=`list`,table:t,className:r,children:i,ref:a,...o})=>{let[s,c]=y.useState(e);return(0,n.jsx)(H9.Provider,{value:{view:s,setView:c,table:t,className:r,children:i,ref:a,...o},children:(0,n.jsx)(`div`,{className:`flex flex-col gap-sm`,children:i})})},U9=()=>{let e=y.useContext(H9);if(!e)throw Error(`useTable must be used within a TableProvider`);return e};X();var she=({rowGridOverride:e,rowListOverride:t,className:r,children:i,ref:a,...o})=>{let{view:s,table:c}=U9(),l=c.getRowModel().rows;return(0,n.jsx)(`tbody`,{className:Y(`divide-y divide-border`,s===`grid`&&`grid grid-cols-5 gap-sm`,r),ref:a,...o,children:l.map(r=>i?i(r):s===`grid`?e?(0,n.jsx)(e,{row:r},r.id):(0,n.jsx)(W9,{row:r},r.id):s===`list`?t?(0,n.jsx)(t,{row:r},r.id):(0,n.jsx)(G9,{row:r},r.id):null)})};Bj(),hk(),X();var che=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(mk,{className:Y(``,e),ref:r,...i,children:[t,(0,n.jsx)(Dj,{weight:`bold`})]});Bj(),hk(),X();var lhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanPreviousPage(),onClick:()=>{a.setPageIndex(0)},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(cj,{weight:`bold`})]})};X();var uhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(`tfoot`,{className:Y(``,e),ref:r,...i,children:[t,a.getFooterGroups().map(e=>(0,n.jsx)(`tr`,{children:e.headers.map(e=>(0,n.jsx)(`th`,{colSpan:e.colSpan,children:e.isPlaceholder?null:w9(e.column.columnDef.footer,e.getContext())},e.id))},e.id))]})};Bj(),X();var dhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(`thead`,{className:Y(``),ref:r,...i,children:[t,a.getHeaderGroups().map(t=>(0,n.jsx)(`tr`,{className:`rounded-lg`,children:t.headers.map(t=>(0,n.jsx)(`th`,{className:Y(`h-xl bg-neutral-container px-sm text-left style-text-default-0 text-neutral-on-container transition-colors first:rounded-l-xl last:rounded-r-xl`,t.column.getCanSort()&&`hover:cursor-pointer hover:bg-neutral-container-high`,t.isPlaceholder&&`cursor-default`,e),colSpan:t.colSpan,onClick:t.column.getToggleSortingHandler(),style:{width:t.column.getSize(),minWidth:t.column.columnDef.minSize,maxWidth:t.column.columnDef.maxSize},children:t.isPlaceholder?null:(0,n.jsxs)(`div`,{className:Y(`inline-flex items-center justify-center gap-2xs [&>svg]:size-sm`,t.column.getCanSort()&&`select-none hover:cursor-pointer`),children:[w9(t.column.columnDef.header,t.getContext()),{asc:(0,n.jsx)(Fj,{weight:`bold`}),desc:(0,n.jsx)(Pj,{weight:`bold`})}[t.column.getIsSorted()]??(t.column.getCanSort()?(0,n.jsx)(Oj,{weight:`bold`}):null)]})},t.id))},t.id))]})};Bj(),hk(),X();var fhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanNextPage(),onClick:()=>{a.setPageIndex(a.getPageCount()-1)},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(uj,{weight:`bold`})]})};Bj(),hk(),X();var phe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanNextPage(),onClick:()=>{a.nextPage()},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(fj,{weight:`bold`})]})};Bj(),hk(),X();var mhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanPreviousPage(),onClick:()=>{a.previousPage()},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(oj,{weight:`bold`})]})};Bj(),hk(),X();var hhe=({className:e,children:t,ref:r,...i})=>{let a=y.useReducer(()=>({}),{})[1];return(0,n.jsxs)(mk,{className:Y(``,e),onClick:()=>{a()},ref:r,size:`iconMedium`,...i,children:[t,(0,n.jsx)(ej,{weight:`bold`})]})},ghe=({children:e})=>{let{table:t}=U9(),n=t.getState().pagination.pageIndex,r=t.getState().pagination.pageSize,i=t.getFilteredRowModel().rows.length,a=i===0?0:n*r+1;return e(a,i===0?0:Math.min(a+r-1,i),i)};X();var W9=({row:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`tr`,{className:Y(`aspect-video min-h-2xl rounded-md bg-neutral-container p-xs`,t),ref:i,...a,children:e.getVisibleCells().map(e=>(0,n.jsxs)(`td`,{children:[r,w9(e.column.columnDef.cell,e.getContext())]},e.id))});X();var G9=({row:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`tr`,{className:Y(``,t),ref:i,...a,children:e.getVisibleCells().map(e=>(0,n.jsxs)(`td`,{className:`p-sm`,style:{width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize},children:[r,w9(e.column.columnDef.cell,e.getContext())]},e.id))});q1(),X();var _he=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsx)(K1,{className:Y(``,e),onChange:e=>{a.setGlobalFilter(String(e.target.value))},placeholder:`Search by ${a.getAllColumns().map(e=>e.id).join(`, `)}`,ref:r,value:a.getState().globalFilter??``,...i,children:t})};Bj(),hk(),X();var vhe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(mk,{className:Y(``,e),ref:r,...i,children:[t,(0,n.jsx)(nj,{weight:`bold`})]});AO();var K9=()=>{let e=DO(),t=t=>e.add({...t,data:{...t.data,icon:t.icon,variant:t.variant}});return{...e,add:t}},q9=()=>{let e=TO();return{add:t=>e.add({...t,data:{...t.data,icon:t.icon,variant:t.variant}}),toasts:e.toasts}};AO(),Bj(),hk(),X();var J9=({className:e,ref:t,toast:r,...i})=>{let a=r.timeout??1e4,o=2*Math.PI*14;y.default.useEffect(()=>{let e,t=performance.now(),n=r=>{Math.min(r-t,a)<a&&(e=requestAnimationFrame(n))};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[a]);let s=()=>{switch(r.data?.variant){case`brand`:return`bg-brand-default`;case`accent`:return`bg-accent-default`;case`neutral`:return`bg-neutral-default`;case`error`:return`bg-error-default`;case`info`:return`bg-info-default`;case`success`:return`bg-success-default`;case`warning`:return`bg-warning-default`;default:return`bg-neutral-default`}},c=()=>{switch(r.data?.variant){case`brand`:return`border-brand-border-strong`;case`accent`:return`border-accent-border-strong`;case`neutral`:return`border-neutral-border-strong`;case`error`:return`border-error-border-strong`;case`info`:return`border-info-border-strong`;case`success`:return`border-success-border-strong`;case`warning`:return`border-warning-border-strong`;default:return`border-neutral-border-strong`}},l=()=>{if(r.data?.icon)return(0,n.jsx)(r.data.icon,{weight:`fill`});switch(r.data?.variant){case`brand`:return(0,n.jsx)(kj,{weight:`fill`});case`accent`:return(0,n.jsx)(kj,{weight:`fill`});case`neutral`:return(0,n.jsx)(kj,{weight:`fill`});case`error`:return(0,n.jsx)(Lj,{weight:`fill`});case`info`:return(0,n.jsx)(kj,{weight:`fill`});case`success`:return(0,n.jsx)(yj,{weight:`fill`});case`warning`:return(0,n.jsx)(Ij,{weight:`fill`});default:return(0,n.jsx)(kj,{weight:`fill`})}};return(0,n.jsxs)(oO,{className:Y(`absolute right-[0px] bottom-[0px] left-auto z-[calc(1000-var(--toast-index))] mr-[0px] flex h-2xl origin-bottom transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] items-center justify-center gap-xs overflow-hidden rounded-xl border bg-surface bg-clip-padding pr-sm shadow-lg select-none [--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s] after:absolute after:top-full after:left-[0px] after:w-full after:content-[''] data-ending-style:opacity-0 data-expanded:h-(--toast-height) data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-limited:opacity-0 data-starting-style:transform-[translateY(150%)] data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+150%))] data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+150%))] data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-150%))] data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-150%))] [&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:transform-[translateY(150%)]`,e,c()),ref:t,toast:r,...i,children:[(0,n.jsx)(`div`,{className:Y(`flex aspect-square size-2xl items-center justify-center [&>svg]:size-lg [&>svg]:text-on-surface-inverse`,s()),children:l()}),(0,n.jsxs)(sO,{className:`flex items-center justify-center gap-xs overflow-hidden pl-2xs transition-opacity duration-250 data-behind:pointer-events-none data-behind:opacity-0 data-expanded:pointer-events-auto data-expanded:opacity-100`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(uO,{className:`style-text-strong--1`}),(0,n.jsx)(cO,{className:`style-text-prose--1 whitespace-nowrap text-on-surface-variant`})]}),(0,n.jsxs)(`div`,{className:`ml-xl flex h-lg grow items-center justify-center gap-xs`,children:[(0,n.jsx)(mO,{render:e=>(0,n.jsx)(mk,{"data-testid":`toast-action-button`,onClick:e.onClick,size:`small`,tone:r.data?.variant,variant:`soft`,children:e.children})}),r.actionProps&&(0,n.jsx)(QZ,{variant:`strong`,orientation:`vertical`,weight:`thinnest`}),(0,n.jsxs)(fO,{"aria-label":`Close`,className:`relative flex size-sm items-center justify-center rounded-full bg-transparent p-xs text-on-surface-variant transition-colors hover:cursor-pointer hover:bg-error-container hover:text-error-on-container`,children:[(0,n.jsx)(`span`,{className:`pointer-events-none absolute inset-[0px] z-10 flex items-center justify-center`,children:(0,n.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 32 32`,className:`block -rotate-90`,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`style`,{children:`
|
|
130
|
+
`}),(0,n.jsx)(`div`,{className:Y(`flex w-full items-center justify-center gap-2xs`,o,t),ref:i,...a,children:r})]})};X();var Ime=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:`w-full`,children:(0,n.jsx)(`div`,{className:Y(`h-3xs w-full grow rounded-full bg-accent-default/20 transition-colors ease-in-out`,e),"data-slot":`progress-bar`,ref:r,...i,children:t})});X();var Lme=({title:e,description:t,className:r,children:i,ref:a,...o})=>(0,n.jsxs)(`div`,{className:`relative`,children:[(0,n.jsx)(`div`,{className:Y(`flex size-md shrink-0 flex-col items-center justify-center rounded-full border border-neutral-border bg-neutral-container text-center style-text-default--2 text-accent-default transition-colors ease-in-out [&>svg]:size-xs`,r),"data-slot":`progress-indicator`,ref:a,...o,children:i}),(0,n.jsxs)(`div`,{className:`absolute top-full left-1/2 w-3xl -translate-x-1/2 translate-y-2xs`,children:[e&&(0,n.jsx)(`div`,{className:`text-center style-text-strong--2 text-on-surface`,children:e}),t&&(0,n.jsx)(`div`,{className:`text-center style-text-prose--2 text-on-surface-variant`,children:t})]})]});po();var Rme=fo(`absolute top-[0px] right-[0px] flex`,{variants:{tone:{brand:`[&_[data-dot]]:bg-brand-default [&_[data-radar-ping]]:bg-brand-default`,accent:`[&_[data-dot]]:bg-accent-default [&_[data-radar-ping]]:bg-accent-default`,neutral:`[&_[data-dot]]:bg-neutral-default [&_[data-radar-ping]]:bg-neutral-default`,info:`[&_[data-dot]]:bg-info-default [&_[data-radar-ping]]:bg-info-default`,error:`[&_[data-dot]]:bg-error-default [&_[data-radar-ping]]:bg-error-default`,success:`[&_[data-dot]]:bg-success-default [&_[data-radar-ping]]:bg-success-default`,warning:`[&_[data-dot]]:bg-warning-default [&_[data-radar-ping]]:bg-warning-default`},size:{small:`-mt-3xs -mr-3xs style-text-default--2 [&_[data-dot]]:size-sm`,medium:`-mt-2xs -mr-2xs style-text-default--1 [&_[data-dot]]:size-md`,large:`-mt-xs -mr-xs style-text-default-0 [&_[data-dot]]:size-lg`}},defaultVariants:{tone:`brand`,size:`medium`}});X();var zme=({hidePing:e=!1,tone:t=`brand`,size:r=`medium`,className:i,children:a,ref:o,...s})=>(0,n.jsxs)(`div`,{className:Y(Rme({tone:t,size:r,className:i})),ref:o,...s,children:[!e&&(0,n.jsx)(`span`,{className:`absolute inline-flex size-full animate-ping rounded-full opacity-75`,"data-radar-ping":!0}),(0,n.jsx)(`span`,{className:`relative flex items-center justify-center rounded-full text-surface`,"data-dot":!0,children:a})]});X();var Bme=({withHandle:e=!1,className:t,...r})=>(0,n.jsx)(s.Separator,{className:Y(`relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-[0px] after:left-1/2 after:w-px after:-translate-x-1/2 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:left-[0px] after:aria-[orientation=horizontal]:h-px after:aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:translate-x-[0px] after:aria-[orientation=horizontal]:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90`,t),"data-slot":`resizable-handle`,...r,children:e&&(0,n.jsx)(`div`,{className:`z-10 flex h-md w-3xs shrink-0 rounded-lg bg-border`})});X();var Vme=({className:e,...t})=>(0,n.jsx)(s.Panel,{className:Y(``,e),"data-slot":`resizable-panel`,...t});X();var Hme=({className:e,...t})=>(0,n.jsx)(s.Group,{className:Y(`flex h-full aria-[orientation=vertical]:flex-col`,e),"data-slot":`resizable-panel-group`,...t});po();var Ume=fo(`overflow-hidden rounded-xl`,{variants:{orientation:{vertical:``,horizontal:`h-full`},variant:{default:`bg-surface-low **:data-viewport:rounded-xl **:data-viewport:bg-surface-low **:data-viewport:px-sm **:data-viewport:py-sm **:data-viewport:inset-shadow-2xs **:data-viewport:before:pointer-events-none **:data-viewport:before:absolute **:data-viewport:before:top-0 **:data-viewport:before:left-0 **:data-viewport:before:block **:data-viewport:before:h-[min(40px,var(--scroll-area-overflow-y-start))] **:data-viewport:before:w-full **:data-viewport:before:bg-linear-to-b **:data-viewport:before:from-shadow **:data-viewport:before:to-transparent **:data-viewport:before:transition-[height] **:data-viewport:before:duration-100 **:data-viewport:before:ease-out **:data-viewport:before:content-[""] **:data-viewport:before:[--scroll-area-overflow-y-start:inherit] **:data-viewport:after:pointer-events-none **:data-viewport:after:absolute **:data-viewport:after:bottom-0 **:data-viewport:after:left-0 **:data-viewport:after:block **:data-viewport:after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] **:data-viewport:after:w-full **:data-viewport:after:bg-linear-to-t **:data-viewport:after:from-shadow **:data-viewport:after:to-transparent **:data-viewport:after:transition-[height] **:data-viewport:after:duration-100 **:data-viewport:after:ease-out **:data-viewport:after:content-[""] **:data-viewport:after:[--scroll-area-overflow-y-end:inherit]`,ghost:`**:data-viewport:pr-3xs`,outline:`border border-border **:data-viewport:px-sm **:data-viewport:py-sm`}},defaultVariants:{orientation:`vertical`,variant:`default`}});bT(),X();var Wme=({defaultHeight:e=200,orientation:t,variant:r,className:i,children:a,ref:o,...s})=>(0,n.jsxs)(iT,{className:Y(i,Ume({orientation:t,variant:r})),ref:o,style:{height:t===`vertical`?`${e}px`:`100%`},...s,children:[(0,n.jsx)(fT,{"data-viewport":!0,className:Y(`flex h-full gap-xs overscroll-contain`,t===`horizontal`&&`flex-row pb-md`,t===`vertical`&&`flex-col`),children:a}),(0,n.jsx)(_T,{"data-scrollbar":!0,className:Y(`ml-sm opacity-0 transition-opacity delay-300 hover:cursor-pointer data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75`,t===`vertical`&&`my-2xs mr-3xs w-2xs`,t===`horizontal`&&`mx-xs mb-xs h-2xs`),orientation:t,children:(0,n.jsx)(vT,{className:`size-full rounded-full bg-accent-default shadow-xs`})}),(0,n.jsx)(yT,{})]});X();var z9=y.default.createContext(null),Gme=({defaultOpen:e=!0,side:t=`left`,collapsible:r=`icon`,className:i,children:a,ref:o,...s})=>{let[c,l]=y.default.useState(e),[u,d]=y.default.useState(!1);return y.default.useEffect(()=>{let t=()=>{let t=window.innerWidth<328;d(t),t&&e&&r!==`none`&&l(!1)};return t(),window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e,r]),(0,n.jsx)(z9.Provider,{value:{defaultOpen:e,open:c,setOpen:l,side:t,trigger:()=>l(!c),isMobile:u,setIsMobile:d,collapsible:r},children:(0,n.jsx)(`div`,{className:Y(`relative size-full`,t===`left`?`flex flex-row`:`flex flex-row-reverse`,i),ref:o,...s,children:a})})},B9=()=>{let e=y.default.useContext(z9);if(!e)throw Error(`useSidebar must be used within a SidebarProvider`);return e};X();var Kme=({tone:e=`default`,width:t=400,className:r,children:i,...a})=>{let{open:o,setOpen:s,isMobile:c,collapsible:l,side:u}=B9(),d=y.default.useRef(null);return y.default.useEffect(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&c&&o&&s&&s(!1)};return document.addEventListener(`click`,e),()=>{document.removeEventListener(`click`,e)}},[o,s,c]),(0,n.jsx)(`div`,{className:Y(`sticky left-[0px] flex h-full shrink-0 flex-col justify-between overflow-hidden border-border bg-surface transition-[width,transform] duration-300 ease-in-out`,r,e===`ghost`&&!c&&`bg-transparent`,l===`none`?`gap-lg`:l===`offcanvas`||l===`icon`?o?`gap-lg`:`gap-sm`:`gap-lg`,(l===`offcanvas`||l===`icon`)&&!o&&c?`absolute z-50 -translate-x-full`:(l===`offcanvas`||l===`icon`)&&o&&c?`absolute z-50`:``,l===`offcanvas`&&!o&&`border-none`,o&&`p-md`,l===`icon`&&!o&&`py-md`,c&&`border-none`,u===`left`?`border-r`:`border-l`),ref:d,style:l===`none`?{width:`${t}px`}:l===`offcanvas`?o?c?{width:`33.333333%`}:{width:`${t}px`}:{width:`0px`}:l==`icon`?o?{width:`${t}px`}:c?{width:`0px`}:{width:`80px`}:{width:`${t}px`},...a,children:i})};Bj(),hk(),X();var V9=({className:e,children:t,ref:r,...i})=>{let{trigger:a,collapsible:o}=B9();return o===`none`?null:(0,n.jsxs)(mk,{className:Y(`shrink-0 border-none`,e),ref:r,size:`iconMedium`,variant:`ghost`,onClick:e=>{e.stopPropagation(),a&&a()},...i,children:[t,(0,n.jsx)(Nj,{weight:`bold`})]})};bT(),X();var qme=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return(0,n.jsx)(iT,{className:Y(`mb-auto min-h-0 flex-1 overflow-hidden rounded-xl transition-all duration-300 ease-in-out`,a?``:`w-fit self-center`,e),ref:r,...i,children:(0,n.jsxs)(fT,{className:Y(`flex h-full scrollbar-none flex-col items-center divide-y divide-border overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden`,`before:pointer-events-none before:absolute before:top-0 before:left-0 before:block before:h-[min(40px,var(--scroll-area-overflow-y-start))] before:w-full before:bg-linear-to-b before:from-shadow/35 before:to-transparent before:transition-[height] before:duration-100 before:ease-out before:content-[""] before:[--scroll-area-overflow-y-start:inherit]`,`after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:block after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] after:w-full after:bg-linear-to-t after:from-shadow/35 after:to-transparent after:transition-[height] after:duration-100 after:ease-out after:content-[""] after:[--scroll-area-overflow-y-end:inherit]`,a?`gap-md`:`gap-xs px-3xs pt-3xs`),children:[!a&&(0,n.jsx)(V9,{}),t]})})};X();var Jme=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=B9(),s=o===`none`||a;return(0,n.jsx)(`div`,{className:Y(`flex shrink-0 animate-in items-center truncate p-3xs transition-all duration-300 ease-in-out`,a?`justify-start fade-in-0`:`justify-center self-center fade-out-0`,e),ref:r,...i,children:typeof t==`function`?t(s):t})};X();var Yme=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex w-full flex-col items-start gap-3xs not-last-of-type:pb-md`,e),ref:r,...i,children:t});X();var Xme=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex w-full flex-col gap-3xs`,e),ref:r,...i,children:t});X();var Zme=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=B9();return o===`none`||a?(0,n.jsx)(`span`,{className:Y(`inline-flex h-md w-full items-center justify-between truncate pr-3xs pl-sm style-text-default--1 text-on-surface-variant transition-all duration-200 ease-out`,o!==`none`&&a&&`animate-in fade-in-0 slide-in-from-left-2`,e),ref:r,...i,children:t}):null};X();var Qme=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=B9(),s=o===`none`||a;return(0,n.jsxs)(`div`,{className:Y(`flex shrink-0 items-center justify-between truncate style-text-strong-1 transition-all duration-300 ease-in-out`,a?`h-2xl pr-3xs pl-xs`:`self-center`,e),ref:r,...i,children:[(0,n.jsx)(`div`,{className:Y(`flex items-center justify-center gap-xs transition-all duration-200 ease-out`,a&&`justify-start`,o!==`none`&&`animate-in`,s?`fade-in-0`:`fade-out-0`),children:typeof t==`function`?t(s):t}),a&&(0,n.jsx)(V9,{})]})};X();var $me=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex w-full flex-col items-start gap-3xs p-3xs`,e),ref:r,...i,children:t});X();var ehe=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return(0,n.jsx)(Bk,{className:Y(!a&&`hidden`,e),ref:r,...i,children:t})};X();var the=({isActive:e,className:t,children:r,ref:i,...a})=>{let{open:o,collapsible:s}=B9();return(0,n.jsx)(`button`,{className:Y(`inline-flex cursor-pointer items-center gap-2xs rounded-full border border-transparent style-text-default-0 whitespace-nowrap transition-all duration-200 ease-out select-none active:scale-95 disabled:pointer-events-none disabled:opacity-50 [&>svg]:shrink-0`,e?`pointer-events-none bg-surface text-on-surface shadow-2xs`:`text-neutral-default hover:bg-neutral-container hover:text-neutral-on-container`,!(s===`none`||o)&&`mx-auto`,o?`h-xl w-full pl-sm`:`size-xl justify-center *:hidden [&>svg]:block`,s!==`none`&&o&&`animate-in fade-in-0 slide-in-from-left-2`,t),ref:i,...a,children:r})};X();var nhe=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return a?(0,n.jsx)(QX,{className:Y(``,e),ref:r,...i,children:t}):(0,n.jsx)(F9,{children:t})};X();var rhe=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return a?(0,n.jsx)(XX,{className:Y(``,e),ref:r,...i,children:t}):(0,n.jsx)(I9,{side:`right`,className:`w-fit p-[0.5rem_0.5rem]`,children:(0,n.jsx)(R9,{className:`flex gap-3xs`,children:t})})};Bj(),X();var ihe=({className:e,children:t,ref:r,...i})=>{let{open:a}=B9();return a?(0,n.jsx)(ZX,{className:Y(`gap-2xs! whitespace-nowrap shadow-none! transition-all duration-200 ease-out select-none hover:bg-neutral-container hover:text-neutral-on-container data-panel-open:bg-neutral-container! [&>svg]:shrink-0!`,e),ref:r,...i,children:t}):(0,n.jsx)(L9,{children:(0,n.jsxs)(`button`,{className:Y(`flex size-xl items-center justify-center rounded-xl shadow-none! transition-colors *:hidden hover:cursor-pointer hover:bg-neutral-container hover:text-neutral-on-container data-popup-open:bg-neutral-container [&>svg]:block`),children:[t,(0,n.jsx)(fj,{weight:`bold`,className:`absolute right-2xs size-xs text-on-surface-variant`})]})})};X();var ahe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`flex h-xl w-full items-center justify-between gap-2xs`,e),ref:r,...i,children:t});X();var ohe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:Y(`animate-pulse rounded-lg bg-surface-2 shadow-sm`,e),ref:r,...i,children:t}),H9=y.createContext(null),she=({defaultView:e=`list`,table:t,className:r,children:i,ref:a,...o})=>{let[s,c]=y.useState(e);return(0,n.jsx)(H9.Provider,{value:{view:s,setView:c,table:t,className:r,children:i,ref:a,...o},children:(0,n.jsx)(`div`,{className:`flex flex-col gap-sm`,children:i})})},U9=()=>{let e=y.useContext(H9);if(!e)throw Error(`useTable must be used within a TableProvider`);return e};X();var che=({rowGridOverride:e,rowListOverride:t,className:r,children:i,ref:a,...o})=>{let{view:s,table:c}=U9(),l=c.getRowModel().rows;return(0,n.jsx)(`tbody`,{className:Y(`divide-y divide-border`,s===`grid`&&`grid grid-cols-5 gap-sm`,r),ref:a,...o,children:l.map(r=>i?i(r):s===`grid`?e?(0,n.jsx)(e,{row:r},r.id):(0,n.jsx)(W9,{row:r},r.id):s===`list`?t?(0,n.jsx)(t,{row:r},r.id):(0,n.jsx)(G9,{row:r},r.id):null)})};Bj(),hk(),X();var lhe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(mk,{className:Y(``,e),ref:r,...i,children:[t,(0,n.jsx)(Dj,{weight:`bold`})]});Bj(),hk(),X();var uhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanPreviousPage(),onClick:()=>{a.setPageIndex(0)},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(cj,{weight:`bold`})]})};X();var dhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(`tfoot`,{className:Y(``,e),ref:r,...i,children:[t,a.getFooterGroups().map(e=>(0,n.jsx)(`tr`,{children:e.headers.map(e=>(0,n.jsx)(`th`,{colSpan:e.colSpan,children:e.isPlaceholder?null:w9(e.column.columnDef.footer,e.getContext())},e.id))},e.id))]})};Bj(),X();var fhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(`thead`,{className:Y(``),ref:r,...i,children:[t,a.getHeaderGroups().map(t=>(0,n.jsx)(`tr`,{className:`rounded-lg`,children:t.headers.map(t=>(0,n.jsx)(`th`,{className:Y(`h-xl bg-neutral-container px-sm text-left style-text-default-0 text-neutral-on-container transition-colors first:rounded-l-xl last:rounded-r-xl`,t.column.getCanSort()&&`hover:cursor-pointer hover:bg-neutral-container-high`,t.isPlaceholder&&`cursor-default`,e),colSpan:t.colSpan,onClick:t.column.getToggleSortingHandler(),style:{width:t.column.getSize(),minWidth:t.column.columnDef.minSize,maxWidth:t.column.columnDef.maxSize},children:t.isPlaceholder?null:(0,n.jsxs)(`div`,{className:Y(`inline-flex items-center justify-center gap-2xs [&>svg]:size-sm`,t.column.getCanSort()&&`select-none hover:cursor-pointer`),children:[w9(t.column.columnDef.header,t.getContext()),{asc:(0,n.jsx)(Fj,{weight:`bold`}),desc:(0,n.jsx)(Pj,{weight:`bold`})}[t.column.getIsSorted()]??(t.column.getCanSort()?(0,n.jsx)(Oj,{weight:`bold`}):null)]})},t.id))},t.id))]})};Bj(),hk(),X();var phe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanNextPage(),onClick:()=>{a.setPageIndex(a.getPageCount()-1)},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(uj,{weight:`bold`})]})};Bj(),hk(),X();var mhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanNextPage(),onClick:()=>{a.nextPage()},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(fj,{weight:`bold`})]})};Bj(),hk(),X();var hhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsxs)(mk,{className:Y(`shrink-0`,e),disabled:!a.getCanPreviousPage(),onClick:()=>{a.previousPage()},ref:r,size:`iconSmall`,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(oj,{weight:`bold`})]})};Bj(),hk(),X();var ghe=({className:e,children:t,ref:r,...i})=>{let a=y.useReducer(()=>({}),{})[1];return(0,n.jsxs)(mk,{className:Y(``,e),onClick:()=>{a()},ref:r,size:`iconMedium`,...i,children:[t,(0,n.jsx)(ej,{weight:`bold`})]})},_he=({children:e})=>{let{table:t}=U9(),n=t.getState().pagination.pageIndex,r=t.getState().pagination.pageSize,i=t.getFilteredRowModel().rows.length,a=i===0?0:n*r+1;return e(a,i===0?0:Math.min(a+r-1,i),i)};X();var W9=({row:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`tr`,{className:Y(`aspect-video min-h-2xl rounded-md bg-neutral-container p-xs`,t),ref:i,...a,children:e.getVisibleCells().map(e=>(0,n.jsxs)(`td`,{children:[r,w9(e.column.columnDef.cell,e.getContext())]},e.id))});X();var G9=({row:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`tr`,{className:Y(``,t),ref:i,...a,children:e.getVisibleCells().map(e=>(0,n.jsxs)(`td`,{className:`p-sm`,style:{width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize},children:[r,w9(e.column.columnDef.cell,e.getContext())]},e.id))});q1(),X();var vhe=({className:e,children:t,ref:r,...i})=>{let{table:a}=U9();return(0,n.jsx)(K1,{className:Y(``,e),onChange:e=>{a.setGlobalFilter(String(e.target.value))},placeholder:`Search by ${a.getAllColumns().map(e=>e.id).join(`, `)}`,ref:r,value:a.getState().globalFilter??``,...i,children:t})};Bj(),hk(),X();var yhe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(mk,{className:Y(``,e),ref:r,...i,children:[t,(0,n.jsx)(nj,{weight:`bold`})]});AO();var K9=()=>{let e=DO(),t=t=>e.add({...t,data:{...t.data,icon:t.icon,variant:t.variant}});return{...e,add:t}},q9=()=>{let e=TO();return{add:t=>e.add({...t,data:{...t.data,icon:t.icon,variant:t.variant}}),toasts:e.toasts}};AO(),Bj(),hk(),X();var J9=({className:e,ref:t,toast:r,...i})=>{let a=r.timeout??1e4,o=2*Math.PI*14;y.default.useEffect(()=>{let e,t=performance.now(),n=r=>{Math.min(r-t,a)<a&&(e=requestAnimationFrame(n))};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[a]);let s=()=>{switch(r.data?.variant){case`brand`:return`bg-brand-default`;case`accent`:return`bg-accent-default`;case`neutral`:return`bg-neutral-default`;case`error`:return`bg-error-default`;case`info`:return`bg-info-default`;case`success`:return`bg-success-default`;case`warning`:return`bg-warning-default`;default:return`bg-neutral-default`}},c=()=>{switch(r.data?.variant){case`brand`:return`border-brand-border-strong`;case`accent`:return`border-accent-border-strong`;case`neutral`:return`border-neutral-border-strong`;case`error`:return`border-error-border-strong`;case`info`:return`border-info-border-strong`;case`success`:return`border-success-border-strong`;case`warning`:return`border-warning-border-strong`;default:return`border-neutral-border-strong`}},l=()=>{if(r.data?.icon)return(0,n.jsx)(r.data.icon,{weight:`fill`});switch(r.data?.variant){case`brand`:return(0,n.jsx)(kj,{weight:`fill`});case`accent`:return(0,n.jsx)(kj,{weight:`fill`});case`neutral`:return(0,n.jsx)(kj,{weight:`fill`});case`error`:return(0,n.jsx)(Lj,{weight:`fill`});case`info`:return(0,n.jsx)(kj,{weight:`fill`});case`success`:return(0,n.jsx)(yj,{weight:`fill`});case`warning`:return(0,n.jsx)(Ij,{weight:`fill`});default:return(0,n.jsx)(kj,{weight:`fill`})}};return(0,n.jsxs)(oO,{className:Y(`absolute right-[0px] bottom-[0px] left-auto z-[calc(1000-var(--toast-index))] mr-[0px] flex h-2xl origin-bottom transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] items-center justify-center gap-xs overflow-hidden rounded-xl border bg-surface bg-clip-padding pr-sm shadow-lg select-none [--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s] after:absolute after:top-full after:left-[0px] after:w-full after:content-[''] data-ending-style:opacity-0 data-expanded:h-(--toast-height) data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-limited:opacity-0 data-starting-style:transform-[translateY(150%)] data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+150%))] data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+150%))] data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-150%))] data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-150%))] [&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:transform-[translateY(150%)]`,e,c()),ref:t,toast:r,...i,children:[(0,n.jsx)(`div`,{className:Y(`flex aspect-square size-2xl items-center justify-center [&>svg]:size-lg [&>svg]:text-on-surface-inverse`,s()),children:l()}),(0,n.jsxs)(sO,{className:`flex items-center justify-center gap-xs overflow-hidden pl-2xs transition-opacity duration-250 data-behind:pointer-events-none data-behind:opacity-0 data-expanded:pointer-events-auto data-expanded:opacity-100`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(uO,{className:`style-text-strong--1`}),(0,n.jsx)(cO,{className:`style-text-prose--1 whitespace-nowrap text-on-surface-variant`})]}),(0,n.jsxs)(`div`,{className:`ml-xl flex h-lg grow items-center justify-center gap-xs`,children:[(0,n.jsx)(mO,{render:e=>(0,n.jsx)(mk,{"data-testid":`toast-action-button`,onClick:e.onClick,size:`small`,tone:r.data?.variant,variant:`soft`,children:e.children})}),r.actionProps&&(0,n.jsx)(QZ,{variant:`strong`,orientation:`vertical`,weight:`thinnest`}),(0,n.jsxs)(fO,{"aria-label":`Close`,className:`relative flex size-sm items-center justify-center rounded-full bg-transparent p-xs text-on-surface-variant transition-colors hover:cursor-pointer hover:bg-error-container hover:text-error-on-container`,children:[(0,n.jsx)(`span`,{className:`pointer-events-none absolute inset-[0px] z-10 flex items-center justify-center`,children:(0,n.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 32 32`,className:`block -rotate-90`,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`style`,{children:`
|
|
131
131
|
@keyframes toast-drain-${r.id} {
|
|
132
132
|
from { stroke-dashoffset: 0; }
|
|
133
133
|
to { stroke-dashoffset: ${o}; }
|
|
134
134
|
}
|
|
135
|
-
`}),(0,n.jsx)(`circle`,{cx:`16`,cy:`16`,r:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeDasharray:o,strokeLinecap:`round`,className:`text-error-border-strong`,style:{animation:`toast-drain-${r.id} ${a}ms linear forwards`}})]})})}),(0,n.jsx)(Rj,{className:`size-sm shrink-0`,weight:`bold`})]})]})]})]},r.id)};AO(),X();var Y9=({className:e,ref:t,...r})=>{let{toasts:i}=q9();return(0,n.jsx)(gO,{children:(0,n.jsx)(KD,{className:Y(`fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]`,e),ref:t,...r,children:i.map(e=>(0,n.jsx)(J9,{toast:e},e.id))})})};AO(),X();var X9=({className:e,ref:t,toast:r,...i})=>(0,n.jsxs)(oO,{className:Y(`group flex w-max origin-(--transform-origin) flex-col rounded-2xl bg-surface px-sm py-2xs shadow-lg transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,e),ref:t,toast:r,...i,children:[(0,n.jsx)(CO,{className:`data-[side=bottom]:-top-3xs data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-3xs data-[side=top]:rotate-180`}),(0,n.jsx)(sO,{children:(0,n.jsx)(cO,{className:`style-text-default--1`})})]});AO(),X();var Z9=({className:e,ref:t,...r})=>{let{toasts:i}=q9();return(0,n.jsx)(gO,{children:(0,n.jsx)(KD,{className:Y(`fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]`,e),ref:t,...r,children:i.map(e=>(0,n.jsx)(xO,{className:`z-[calc(1000-var(--toast-index))]`,toast:e,children:(0,n.jsx)(X9,{toast:e})},e.id))})})};AO(),X();var
|
|
135
|
+
`}),(0,n.jsx)(`circle`,{cx:`16`,cy:`16`,r:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeDasharray:o,strokeLinecap:`round`,className:`text-error-border-strong`,style:{animation:`toast-drain-${r.id} ${a}ms linear forwards`}})]})})}),(0,n.jsx)(Rj,{className:`size-sm shrink-0`,weight:`bold`})]})]})]})]},r.id)};AO(),X();var Y9=({className:e,ref:t,...r})=>{let{toasts:i}=q9();return(0,n.jsx)(gO,{children:(0,n.jsx)(KD,{className:Y(`fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]`,e),ref:t,...r,children:i.map(e=>(0,n.jsx)(J9,{toast:e},e.id))})})};AO(),X();var X9=({className:e,ref:t,toast:r,...i})=>(0,n.jsxs)(oO,{className:Y(`group flex w-max origin-(--transform-origin) flex-col rounded-2xl bg-surface px-sm py-2xs shadow-lg transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,e),ref:t,toast:r,...i,children:[(0,n.jsx)(CO,{className:`data-[side=bottom]:-top-3xs data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-3xs data-[side=top]:rotate-180`}),(0,n.jsx)(sO,{children:(0,n.jsx)(cO,{className:`style-text-default--1`})})]});AO(),X();var Z9=({className:e,ref:t,...r})=>{let{toasts:i}=q9();return(0,n.jsx)(gO,{children:(0,n.jsx)(KD,{className:Y(`fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]`,e),ref:t,...r,children:i.map(e=>(0,n.jsx)(xO,{className:`z-[calc(1000-var(--toast-index))]`,toast:e,children:(0,n.jsx)(X9,{toast:e})},e.id))})})};AO(),X();var bhe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(`div`,{className:Y(``,e),ref:r,...i,children:[(0,n.jsx)(HD,{timeout:1e4,toastManager:Q9,children:(0,n.jsx)(Z9,{})}),(0,n.jsx)(HD,{timeout:1e4,toastManager:$9,children:(0,n.jsx)(Y9,{})}),t]}),Q9=K9(),$9=K9();po();var xhe=fo(`group flex w-fit items-center justify-center gap-3xs bg-neutral-container`,{variants:{size:{small:`h-lg rounded-lg px-3xs`,medium:`h-xl rounded-xl px-2xs`,large:`h-2xl rounded-2xl px-xs`}},defaultVariants:{size:`medium`}});HO(),X(),X(),e.Accordion=Cee,e.AccordionHeader=wee,e.AccordionItem=Tee,e.AccordionPanel=Eee,e.AccordionSubtitle=Dee,e.AccordionTitle=Oee,e.Alert=Ws,e.AlertActions=Ys,e.AlertContent=qs,e.AlertDescription=Gs,e.AlertDialog=Qie,e.AlertDialogActions=oae,e.AlertDialogClose=tae,e.AlertDialogConfirm=rae,e.AlertDialogContent=iae,e.AlertDialogDescription=aae,e.AlertDialogHeader=sae,e.AlertDialogPopup=lae,e.AlertDialogTitle=uae,e.AlertDialogTrigger=dae,e.AlertTitle=Ks,e.AnchoredToastItem=X9,e.AnchoredToasts=Z9,e.Autocomplete=_k,e.AutocompleteCollection=vk,e.AutocompleteContent=yk,e.AutocompleteGridContent=wk,e.AutocompleteGridItem=Tk,e.AutocompleteGroup=Ek,e.AutocompleteGroupLabel=Dk,e.AutocompleteInputGroup=Sk,e.AutocompleteInputGroupAddon=Ok,e.AutocompleteInputGroupInput=Ck,e.AutocompleteItem=kk,e.AutocompleteRow=Ak,e.AutocompleteStatus=jk,e.AutocompleteTrigger=Mk,e.Avatar=Fk,e.AvatarBadge=Rk,e.AvatarFallback=Ik,e.AvatarImage=Lk,e.Badge=Bk,e.Breadcrumb=Vk,e.BreadcrumbEllipsis=Pae,e.BreadcrumbItem=Fae,e.BreadcrumbLink=Iae,e.BreadcrumbSeparator=Lae,e.Button=mk,e.ButtonGroup=zae,e.ChartContainer=Bae,e.ChartContainerContext=Vj,e.ChartLegend=NX,e.ChartLegendContent=zX,e.ChartLegendIcon=PX,e.ChartLegendIndicator=FX,e.ChartLegendLabel=IX,e.ChartLinearGradient=VX,e.ChartTooltip=TX,e.ChartTooltipContent=DX,e.ChartTooltipIcon=WX,e.ChartTooltipIndicator=HX,e.ChartTooltipLabel=kX,e.ChartTooltipName=UX,e.ChartTooltipPayload=jX,e.ChartTooltipValue=GX,e.Checkbox=JX,e.CheckboxGroup=YX,e.CheckboxIndicator=KX,e.CodeBlock=eZ,e.CodeBlockActions=nZ,e.CodeBlockCopy=rZ,e.CodeBlockDownload=iZ,e.CodeBlockHeader=aZ,e.CodeBlockName=oZ,e.CodeBlockSelect=OZ,e.CodeBlockTabs=FZ,e.CodeBlockWindow=IZ,e.Collapsible=QX,e.CollapsiblePanel=XX,e.CollapsibleTrigger=ZX,e.Combobox=LZ,e.ComboboxChip=RZ,e.ComboboxChips=zZ,e.ComboboxCollection=BZ,e.ComboboxEmpty=VZ,e.ComboboxGroup=HZ,e.ComboboxGroupLabel=UZ,e.ComboboxInput=$Z,e.ComboboxItem=eQ,e.ComboboxList=tQ,e.ComboboxPopup=nQ,e.ComboboxStatus=rQ,e.ComboboxTrigger=iQ,e.ComboboxValue=aQ,e.ComboboxVirtualizedList=AQ,e.Dialog=jQ,e.DialogClose=MQ,e.DialogContent=NQ,e.DialogDescription=PQ,e.DialogFooter=FQ,e.DialogHeader=IQ,e.DialogPopup=LQ,e.DialogTitle=RQ,e.DialogTrigger=zQ,e.Drawer=BQ,e.DrawerClose=VQ,e.DrawerContent=HQ,e.DrawerDescription=UQ,e.DrawerHeader=ZQ,e.DrawerPopup=YQ,e.DrawerProvider=WQ,e.DrawerTitle=XQ,e.DrawerTrigger=GQ,e.Field=QQ,e.FieldCheckbox=Mue,e.FieldDescription=e$,e.FieldErrors=w0,e.FieldInput=J1,e.FieldLabel=Z1,e.FieldRadioGroup=Fue,e.FieldSelect=Q1,e.FieldSlider=o0,e.FieldSwitch=Iue,e.FieldTextArea=Aue,e.FieldToggle=Rue,e.Form=zue,e.FormErrors=U1,e.FormReset=W1,e.FormSubmit=G1,e.Input=K1,e.InputGroup=WZ,e.InputGroupAddon=KZ,e.InputGroupInput=JZ,e.InputOTP=Bue,e.InputOTPSlot=Vue,e.InputOtpSeparator=Hue,e.Kbd=Uue,e.Label=E0,e.LayerTree=Xpe,e.LayerTreeBody=eme,e.LayerTreeExpandAll=tme,e.LayerTreeFooter=ame,e.LayerTreeNode=nme,e.LayerTreeNodeToggle=rme,e.LayerTreeRow=T9,e.LayerTreeSearch=ime,e.LayerTreeSort=fme,e.Menu=E9,e.MenuCheckboxItem=ome,e.MenuGroup=D9,e.MenuGroupLabel=O9,e.MenuItem=lme,e.MenuPopup=k9,e.MenuRadioGroup=A9,e.MenuRadioItem=j9,e.MenuSeparator=ume,e.MenuShortcut=dme,e.MenuSubmenu=M9,e.MenuSubmenuTrigger=N9,e.MenuTrigger=P9,e.Meter=mme,e.MeterFooter=bme,e.MeterHeader=hme,e.MeterIndicator=gme,e.MeterLabel=_me,e.MeterSubtitle=xme,e.MeterTrack=vme,e.MeterValue=yme,e.NumberField=Cme,e.Popover=F9,e.PopoverButton=Ome,e.PopoverContent=R9,e.PopoverDescription=Tme,e.PopoverHeader=Dme,e.PopoverPanel=I9,e.PopoverTitle=Eme,e.PopoverTrigger=L9,e.Profile=Ame,e.ProfileAction=Nme,e.ProfileContent=Pme,e.ProfileName=jme,e.ProfileSubname=Mme,e.Progress=Fme,e.ProgressBar=Ime,e.ProgressIndicator=Lme,e.RadarPing=zme,e.Radio=Pue,e.RadioGroup=D0,e.ResizeableHandle=Bme,e.ResizeablePanel=Vme,e.ResizeablePanelGroup=Hme,e.ScrollArea=Wme,e.Select=sZ,e.SelectGroup=CZ,e.SelectGroupLabel=TZ,e.SelectIcon=pZ,e.SelectItem=lZ,e.SelectList=dZ,e.SelectPopup=hZ,e.SelectTrigger=yZ,e.SelectValue=xZ,e.Separator=QZ,e.Sidebar=Kme,e.SidebarContent=qme,e.SidebarFooter=Jme,e.SidebarGroup=Yme,e.SidebarGroupContent=Xme,e.SidebarGroupLabel=Zme,e.SidebarHeader=Qme,e.SidebarMenu=$me,e.SidebarMenuBadge=ehe,e.SidebarMenuButton=the,e.SidebarMenuCollapsible=nhe,e.SidebarMenuCollapsiblePanel=rhe,e.SidebarMenuCollapsibleTrigger=ihe,e.SidebarMenuItem=ahe,e.SidebarProvider=Gme,e.SidebarToggle=V9,e.Skeleton=ohe,e.Slider=a0,e.SliderThumb=n0,e.StackToastItem=J9,e.StackToasts=Y9,e.Switch=O0,e.Table=she,e.TableBody=che,e.TableFilter=lhe,e.TableFirstPage=uhe,e.TableFooter=dhe,e.TableHeader=fhe,e.TableLastPage=phe,e.TableNextPage=mhe,e.TablePagination=_he,e.TablePreviousPage=hhe,e.TableRefresh=ghe,e.TableRowGrid=W9,e.TableRowList=G9,e.TableSearch=vhe,e.TableSort=yhe,e.Tabs=AZ,e.TabsIndicator=jZ,e.TabsList=MZ,e.TabsPanel=NZ,e.TabsTab=PZ,e.TextArea=T0,e.ToastProvider=bhe,e.Toggle=A0,e.ToggleGroup=({size:e=`medium`,className:t,children:r,ref:i,...a})=>{let o=e??`medium`;return(0,n.jsx)(k0.Provider,{value:{size:o},children:(0,n.jsx)(BO,{className:Y(xhe({size:o,className:t})),"data-size":o,ref:i,...a,children:r})})},e.Tooltip=$1,e.TooltipContent=e0,e.TooltipTrigger=t0,e.anchoredToastManager=Q9,e.cn=Y,e.fieldContext=h0,e.findLayerTreeNode=j0,e.formContext=_0,e.getPayloadConfigFromPayload=LX,e.insertLayerTreeNode=N0,e.moveLayerTreeNode=P0,e.moveLayerTreeNodeToRoot=F0,e.popoverHandle=kme,e.removeLayerTreeNode=M0,e.stackToastManager=$9,e.useAppForm=y0,e.useChart=Hj,e.useChartTooltipContent=OX,e.useChartTooltipPayload=MX,e.useFieldContext=g0,e.useFormContext=v0,e.useSidebar=B9,e.useTable=U9,e.useToastManager=q9,e.useTypedAppFormContext=S0,e.withFieldGroup=b0,e.withForm=x0});
|