@sharpnr/ui 1.0.14 → 1.0.16
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/components/ui/404Page.d.ts +1 -0
- package/dist/components/ui/GlobalLoader.d.ts +5 -0
- package/dist/components/ui/SharpnrSidebarFooter.d.ts +1 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.stories.d.ts +9 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.stories.d.ts +9 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.stories.d.ts +9 -0
- package/dist/components/ui/carousel.d.ts +28 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/global-err.d.ts +8 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +13 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/sidebar.stories.d.ts +8 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.stories.d.ts +9 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/hooks/ThemeToggle.d.ts +1 -0
- package/dist/hooks/theme-provider.d.ts +13 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/useDialog.d.ts +10 -0
- package/dist/hooks/useFormModal.d.ts +10 -0
- package/dist/hooks/useSheets.d.ts +11 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.es.js +4055 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/stories/Button.d.ts +14 -0
- package/dist/stories/Button.stories.d.ts +23 -0
- package/dist/stories/Header.d.ts +11 -0
- package/dist/stories/Header.stories.d.ts +18 -0
- package/dist/stories/Page.d.ts +2 -0
- package/dist/stories/Page.stories.d.ts +12 -0
- package/dist/ui.css +3 -0
- package/package.json +2 -2
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,4055 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createContext as t, useCallback as n, useContext as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
3
|
+
import { clsx as s } from "clsx";
|
|
4
|
+
import { twMerge as c } from "tailwind-merge";
|
|
5
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import { Command as f } from "cmdk";
|
|
7
|
+
import * as p from "@radix-ui/react-dialog";
|
|
8
|
+
import { cva as m } from "class-variance-authority";
|
|
9
|
+
import { Slot as h } from "@radix-ui/react-slot";
|
|
10
|
+
import { Check as g, CheckIcon as _, ChevronDownIcon as v, ChevronLeft as y, ChevronLeftIcon as b, ChevronRightIcon as x, ChevronUpIcon as S, CircleCheckIcon as C, Home as w, InfoIcon as T, Loader2Icon as E, Moon as D, MoreHorizontalIcon as O, OctagonXIcon as ee, PanelLeftIcon as k, SearchIcon as te, Sun as A, TriangleAlertIcon as j, X as ne, XIcon as M } from "lucide-react";
|
|
11
|
+
import * as re from "@radix-ui/react-separator";
|
|
12
|
+
import * as N from "@radix-ui/react-tooltip";
|
|
13
|
+
import * as P from "@radix-ui/react-dropdown-menu";
|
|
14
|
+
import * as F from "@radix-ui/react-select";
|
|
15
|
+
import * as I from "@radix-ui/react-alert-dialog";
|
|
16
|
+
import * as L from "@radix-ui/react-hover-card";
|
|
17
|
+
import * as R from "@radix-ui/react-popover";
|
|
18
|
+
import { Checkbox as z, Label as B, Tabs as V } from "radix-ui";
|
|
19
|
+
import * as H from "@radix-ui/react-switch";
|
|
20
|
+
import { useTheme as ie } from "next-themes";
|
|
21
|
+
import { Toaster as ae, toast as oe } from "sonner";
|
|
22
|
+
import * as U from "@radix-ui/react-scroll-area";
|
|
23
|
+
import * as W from "@radix-ui/react-avatar";
|
|
24
|
+
import se, { gsap as G } from "gsap";
|
|
25
|
+
import { AnimatePresence as K, motion as q } from "framer-motion";
|
|
26
|
+
import { VisuallyHidden as ce } from "@radix-ui/react-visually-hidden";
|
|
27
|
+
//#region src/lib/utils.ts
|
|
28
|
+
function J(...e) {
|
|
29
|
+
return c(s(e));
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/ui/card.tsx
|
|
33
|
+
function le({ className: e, size: t = "default", ...n }) {
|
|
34
|
+
return /* @__PURE__ */ u("div", {
|
|
35
|
+
"data-slot": "card",
|
|
36
|
+
"data-size": t,
|
|
37
|
+
className: J("group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", e),
|
|
38
|
+
...n
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function ue({ className: e, ...t }) {
|
|
42
|
+
return /* @__PURE__ */ u("div", {
|
|
43
|
+
"data-slot": "card-header",
|
|
44
|
+
className: J("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4", e),
|
|
45
|
+
...t
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function de({ className: e, ...t }) {
|
|
49
|
+
return /* @__PURE__ */ u("div", {
|
|
50
|
+
"data-slot": "card-title",
|
|
51
|
+
className: J("font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm", e),
|
|
52
|
+
...t
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function fe({ className: e, ...t }) {
|
|
56
|
+
return /* @__PURE__ */ u("div", {
|
|
57
|
+
"data-slot": "card-description",
|
|
58
|
+
className: J("text-sm text-muted-foreground", e),
|
|
59
|
+
...t
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function pe({ className: e, ...t }) {
|
|
63
|
+
return /* @__PURE__ */ u("div", {
|
|
64
|
+
"data-slot": "card-action",
|
|
65
|
+
className: J("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
66
|
+
...t
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function me({ className: e, ...t }) {
|
|
70
|
+
return /* @__PURE__ */ u("div", {
|
|
71
|
+
"data-slot": "card-content",
|
|
72
|
+
className: J("px-6 group-data-[size=sm]/card:px-4", e),
|
|
73
|
+
...t
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function he({ className: e, ...t }) {
|
|
77
|
+
return /* @__PURE__ */ u("div", {
|
|
78
|
+
"data-slot": "card-footer",
|
|
79
|
+
className: J("flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4", e),
|
|
80
|
+
...t
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/ui/button.tsx
|
|
85
|
+
var ge = m("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
86
|
+
variants: {
|
|
87
|
+
variant: {
|
|
88
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
89
|
+
outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
90
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
91
|
+
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
92
|
+
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
93
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
94
|
+
},
|
|
95
|
+
size: {
|
|
96
|
+
default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
97
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
98
|
+
sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
99
|
+
lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
100
|
+
icon: "size-9",
|
|
101
|
+
"icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
102
|
+
"icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
|
|
103
|
+
"icon-lg": "size-10"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
defaultVariants: {
|
|
107
|
+
variant: "default",
|
|
108
|
+
size: "default"
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
function Y({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
112
|
+
return /* @__PURE__ */ u(r ? h : "button", {
|
|
113
|
+
"data-slot": "button",
|
|
114
|
+
"data-variant": t,
|
|
115
|
+
"data-size": n,
|
|
116
|
+
className: J(ge({
|
|
117
|
+
variant: t,
|
|
118
|
+
size: n,
|
|
119
|
+
className: e
|
|
120
|
+
})),
|
|
121
|
+
...i
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/ui/dialog.tsx
|
|
126
|
+
function _e({ ...e }) {
|
|
127
|
+
return /* @__PURE__ */ u(p.Root, {
|
|
128
|
+
"data-slot": "dialog",
|
|
129
|
+
...e
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function ve({ ...e }) {
|
|
133
|
+
return /* @__PURE__ */ u(p.Trigger, {
|
|
134
|
+
"data-slot": "dialog-trigger",
|
|
135
|
+
...e
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function ye({ ...e }) {
|
|
139
|
+
return /* @__PURE__ */ u(p.Portal, {
|
|
140
|
+
"data-slot": "dialog-portal",
|
|
141
|
+
...e
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function be({ ...e }) {
|
|
145
|
+
return /* @__PURE__ */ u(p.Close, {
|
|
146
|
+
"data-slot": "dialog-close",
|
|
147
|
+
...e
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function xe({ className: e, ...t }) {
|
|
151
|
+
return /* @__PURE__ */ u(p.Overlay, {
|
|
152
|
+
"data-slot": "dialog-overlay",
|
|
153
|
+
className: J("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
154
|
+
...t
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function Se({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
158
|
+
return /* @__PURE__ */ d(ye, { children: [/* @__PURE__ */ u(xe, {}), /* @__PURE__ */ d(p.Content, {
|
|
159
|
+
"data-slot": "dialog-content",
|
|
160
|
+
className: J("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
161
|
+
...r,
|
|
162
|
+
children: [t, n && /* @__PURE__ */ u(p.Close, {
|
|
163
|
+
"data-slot": "dialog-close",
|
|
164
|
+
asChild: !0,
|
|
165
|
+
children: /* @__PURE__ */ d(Y, {
|
|
166
|
+
variant: "ghost",
|
|
167
|
+
className: "absolute top-4 right-4",
|
|
168
|
+
size: "icon-sm",
|
|
169
|
+
children: [/* @__PURE__ */ u(M, {}), /* @__PURE__ */ u("span", {
|
|
170
|
+
className: "sr-only",
|
|
171
|
+
children: "Close"
|
|
172
|
+
})]
|
|
173
|
+
})
|
|
174
|
+
})]
|
|
175
|
+
})] });
|
|
176
|
+
}
|
|
177
|
+
function Ce({ className: e, ...t }) {
|
|
178
|
+
return /* @__PURE__ */ u("div", {
|
|
179
|
+
"data-slot": "dialog-header",
|
|
180
|
+
className: J("flex flex-col gap-2", e),
|
|
181
|
+
...t
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function we({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
185
|
+
return /* @__PURE__ */ d("div", {
|
|
186
|
+
"data-slot": "dialog-footer",
|
|
187
|
+
className: J("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
188
|
+
...r,
|
|
189
|
+
children: [n, t && /* @__PURE__ */ u(p.Close, {
|
|
190
|
+
asChild: !0,
|
|
191
|
+
children: /* @__PURE__ */ u(Y, {
|
|
192
|
+
variant: "outline",
|
|
193
|
+
children: "Close"
|
|
194
|
+
})
|
|
195
|
+
})]
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function Te({ className: e, ...t }) {
|
|
199
|
+
return /* @__PURE__ */ u(p.Title, {
|
|
200
|
+
"data-slot": "dialog-title",
|
|
201
|
+
className: J("font-heading leading-none font-medium", e),
|
|
202
|
+
...t
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
function Ee({ className: e, ...t }) {
|
|
206
|
+
return /* @__PURE__ */ u(p.Description, {
|
|
207
|
+
"data-slot": "dialog-description",
|
|
208
|
+
className: J("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
209
|
+
...t
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/components/ui/input.tsx
|
|
214
|
+
function De({ className: e, type: t, ...n }) {
|
|
215
|
+
return /* @__PURE__ */ u("input", {
|
|
216
|
+
type: t,
|
|
217
|
+
"data-slot": "input",
|
|
218
|
+
className: J("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
219
|
+
...n
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/components/ui/textarea.tsx
|
|
224
|
+
function Oe({ className: e, ...t }) {
|
|
225
|
+
return /* @__PURE__ */ u("textarea", {
|
|
226
|
+
"data-slot": "textarea",
|
|
227
|
+
className: J("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
228
|
+
...t
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/components/ui/input-group.tsx
|
|
233
|
+
function ke({ className: e, ...t }) {
|
|
234
|
+
return /* @__PURE__ */ u("div", {
|
|
235
|
+
"data-slot": "input-group",
|
|
236
|
+
role: "group",
|
|
237
|
+
className: J("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", e),
|
|
238
|
+
...t
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
var Ae = m("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
242
|
+
variants: { align: {
|
|
243
|
+
"inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
|
|
244
|
+
"inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
|
|
245
|
+
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
246
|
+
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
247
|
+
} },
|
|
248
|
+
defaultVariants: { align: "inline-start" }
|
|
249
|
+
});
|
|
250
|
+
function je({ className: e, align: t = "inline-start", ...n }) {
|
|
251
|
+
return /* @__PURE__ */ u("div", {
|
|
252
|
+
role: "group",
|
|
253
|
+
"data-slot": "input-group-addon",
|
|
254
|
+
"data-align": t,
|
|
255
|
+
className: J(Ae({ align: t }), e),
|
|
256
|
+
onClick: (e) => {
|
|
257
|
+
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
258
|
+
},
|
|
259
|
+
...n
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
var Me = m("flex items-center gap-2 text-sm shadow-none", {
|
|
263
|
+
variants: { size: {
|
|
264
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
265
|
+
sm: "",
|
|
266
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
267
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
268
|
+
} },
|
|
269
|
+
defaultVariants: { size: "xs" }
|
|
270
|
+
});
|
|
271
|
+
function Ne({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
|
|
272
|
+
return /* @__PURE__ */ u(Y, {
|
|
273
|
+
type: t,
|
|
274
|
+
"data-size": r,
|
|
275
|
+
variant: n,
|
|
276
|
+
className: J(Me({ size: r }), e),
|
|
277
|
+
...i
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
function Pe({ className: e, ...t }) {
|
|
281
|
+
return /* @__PURE__ */ u("span", {
|
|
282
|
+
className: J("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
283
|
+
...t
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
function Fe({ className: e, ...t }) {
|
|
287
|
+
return /* @__PURE__ */ u(De, {
|
|
288
|
+
"data-slot": "input-group-control",
|
|
289
|
+
className: J("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", e),
|
|
290
|
+
...t
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
function Ie({ className: e, ...t }) {
|
|
294
|
+
return /* @__PURE__ */ u(Oe, {
|
|
295
|
+
"data-slot": "input-group-control",
|
|
296
|
+
className: J("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", e),
|
|
297
|
+
...t
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/components/ui/command.tsx
|
|
302
|
+
function Le({ className: e, ...t }) {
|
|
303
|
+
return /* @__PURE__ */ u(f, {
|
|
304
|
+
"data-slot": "command",
|
|
305
|
+
className: J("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground", e),
|
|
306
|
+
...t
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function Re({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !1, ...a }) {
|
|
310
|
+
return /* @__PURE__ */ d(_e, {
|
|
311
|
+
...a,
|
|
312
|
+
children: [/* @__PURE__ */ d(Ce, {
|
|
313
|
+
className: "sr-only",
|
|
314
|
+
children: [/* @__PURE__ */ u(Te, { children: e }), /* @__PURE__ */ u(Ee, { children: t })]
|
|
315
|
+
}), /* @__PURE__ */ u(Se, {
|
|
316
|
+
className: J("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0", r),
|
|
317
|
+
showCloseButton: i,
|
|
318
|
+
children: n
|
|
319
|
+
})]
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function ze({ className: e, ...t }) {
|
|
323
|
+
return /* @__PURE__ */ u("div", {
|
|
324
|
+
"data-slot": "command-input-wrapper",
|
|
325
|
+
className: "p-1 pb-0",
|
|
326
|
+
children: /* @__PURE__ */ d(ke, {
|
|
327
|
+
className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",
|
|
328
|
+
children: [/* @__PURE__ */ u(f.Input, {
|
|
329
|
+
"data-slot": "command-input",
|
|
330
|
+
className: J("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
331
|
+
...t
|
|
332
|
+
}), /* @__PURE__ */ u(je, { children: /* @__PURE__ */ u(te, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
333
|
+
})
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function Be({ className: e, ...t }) {
|
|
337
|
+
return /* @__PURE__ */ u(f.List, {
|
|
338
|
+
"data-slot": "command-list",
|
|
339
|
+
className: J("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", e),
|
|
340
|
+
...t
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
function Ve({ className: e, ...t }) {
|
|
344
|
+
return /* @__PURE__ */ u(f.Empty, {
|
|
345
|
+
"data-slot": "command-empty",
|
|
346
|
+
className: J("py-6 text-center text-sm", e),
|
|
347
|
+
...t
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
function He({ className: e, ...t }) {
|
|
351
|
+
return /* @__PURE__ */ u(f.Group, {
|
|
352
|
+
"data-slot": "command-group",
|
|
353
|
+
className: J("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", e),
|
|
354
|
+
...t
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
function Ue({ className: e, ...t }) {
|
|
358
|
+
return /* @__PURE__ */ u(f.Separator, {
|
|
359
|
+
"data-slot": "command-separator",
|
|
360
|
+
className: J("-mx-1 h-px w-auto bg-border", e),
|
|
361
|
+
...t
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
function We({ className: e, children: t, ...n }) {
|
|
365
|
+
return /* @__PURE__ */ d(f.Item, {
|
|
366
|
+
"data-slot": "command-item",
|
|
367
|
+
className: J("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:**:[svg]:text-foreground", e),
|
|
368
|
+
...n,
|
|
369
|
+
children: [t, /* @__PURE__ */ u(_, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })]
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
function Ge({ className: e, ...t }) {
|
|
373
|
+
return /* @__PURE__ */ u("span", {
|
|
374
|
+
"data-slot": "command-shortcut",
|
|
375
|
+
className: J("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", e),
|
|
376
|
+
...t
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region src/components/ui/separator.tsx
|
|
381
|
+
function Ke({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
382
|
+
return /* @__PURE__ */ u(re.Root, {
|
|
383
|
+
"data-slot": "separator",
|
|
384
|
+
decorative: n,
|
|
385
|
+
orientation: t,
|
|
386
|
+
className: J("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", e),
|
|
387
|
+
...r
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/components/ui/button-group.tsx
|
|
392
|
+
var qe = m("group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
393
|
+
variants: { orientation: {
|
|
394
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md!",
|
|
395
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md!"
|
|
396
|
+
} },
|
|
397
|
+
defaultVariants: { orientation: "horizontal" }
|
|
398
|
+
});
|
|
399
|
+
function Je({ className: e, orientation: t, ...n }) {
|
|
400
|
+
return /* @__PURE__ */ u("div", {
|
|
401
|
+
role: "group",
|
|
402
|
+
"data-slot": "button-group",
|
|
403
|
+
"data-orientation": t,
|
|
404
|
+
className: J(qe({ orientation: t }), e),
|
|
405
|
+
...n
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
function Ye({ className: e, asChild: t = !1, ...n }) {
|
|
409
|
+
return /* @__PURE__ */ u(t ? h : "div", {
|
|
410
|
+
className: J("flex items-center gap-2 rounded-md border bg-muted px-2.5 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
411
|
+
...n
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
function Xe({ className: e, orientation: t = "vertical", ...n }) {
|
|
415
|
+
return /* @__PURE__ */ u(Ke, {
|
|
416
|
+
"data-slot": "button-group-separator",
|
|
417
|
+
orientation: t,
|
|
418
|
+
className: J("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", e),
|
|
419
|
+
...n
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/hooks/use-mobile.ts
|
|
424
|
+
var Ze = 768;
|
|
425
|
+
function Qe() {
|
|
426
|
+
let [t, n] = e.useState(void 0);
|
|
427
|
+
return e.useEffect(() => {
|
|
428
|
+
let e = window.matchMedia(`(max-width: ${Ze - 1}px)`), t = () => {
|
|
429
|
+
n(window.innerWidth < Ze);
|
|
430
|
+
};
|
|
431
|
+
return e.addEventListener("change", t), n(window.innerWidth < Ze), () => e.removeEventListener("change", t);
|
|
432
|
+
}, []), !!t;
|
|
433
|
+
}
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region src/components/ui/sheet.tsx
|
|
436
|
+
function $e({ ...e }) {
|
|
437
|
+
return /* @__PURE__ */ u(p.Root, {
|
|
438
|
+
"data-slot": "sheet",
|
|
439
|
+
...e
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
function et({ ...e }) {
|
|
443
|
+
return /* @__PURE__ */ u(p.Trigger, {
|
|
444
|
+
"data-slot": "sheet-trigger",
|
|
445
|
+
...e
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
function tt({ ...e }) {
|
|
449
|
+
return /* @__PURE__ */ u(p.Close, {
|
|
450
|
+
"data-slot": "sheet-close",
|
|
451
|
+
...e
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
function nt({ ...e }) {
|
|
455
|
+
return /* @__PURE__ */ u(p.Portal, {
|
|
456
|
+
"data-slot": "sheet-portal",
|
|
457
|
+
...e
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
function rt({ className: e, ...t }) {
|
|
461
|
+
return /* @__PURE__ */ u(p.Overlay, {
|
|
462
|
+
"data-slot": "sheet-overlay",
|
|
463
|
+
className: J("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
464
|
+
...t
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
function it({ className: e, children: t, side: n = "right", ...r }) {
|
|
468
|
+
return /* @__PURE__ */ d(nt, { children: [/* @__PURE__ */ u(rt, {}), /* @__PURE__ */ d(p.Content, {
|
|
469
|
+
"data-slot": "sheet-content",
|
|
470
|
+
className: J("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
471
|
+
...r,
|
|
472
|
+
children: [t, /* @__PURE__ */ d(p.Close, {
|
|
473
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
474
|
+
children: [/* @__PURE__ */ u(M, { className: "size-4" }), /* @__PURE__ */ u("span", {
|
|
475
|
+
className: "sr-only",
|
|
476
|
+
children: "Close"
|
|
477
|
+
})]
|
|
478
|
+
})]
|
|
479
|
+
})] });
|
|
480
|
+
}
|
|
481
|
+
function at({ className: e, ...t }) {
|
|
482
|
+
return /* @__PURE__ */ u("div", {
|
|
483
|
+
"data-slot": "sheet-header",
|
|
484
|
+
className: J("flex flex-col gap-1.5 p-4", e),
|
|
485
|
+
...t
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
function ot({ className: e, ...t }) {
|
|
489
|
+
return /* @__PURE__ */ u("div", {
|
|
490
|
+
"data-slot": "sheet-footer",
|
|
491
|
+
className: J("mt-auto flex flex-col gap-2 p-4", e),
|
|
492
|
+
...t
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
function st({ className: e, ...t }) {
|
|
496
|
+
return /* @__PURE__ */ u(p.Title, {
|
|
497
|
+
"data-slot": "sheet-title",
|
|
498
|
+
className: J("text-foreground font-semibold", e),
|
|
499
|
+
...t
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
function ct({ className: e, ...t }) {
|
|
503
|
+
return /* @__PURE__ */ u(p.Description, {
|
|
504
|
+
"data-slot": "sheet-description",
|
|
505
|
+
className: J("text-muted-foreground text-sm", e),
|
|
506
|
+
...t
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region src/components/ui/skeleton.tsx
|
|
511
|
+
function lt({ className: e, ...t }) {
|
|
512
|
+
return /* @__PURE__ */ u("div", {
|
|
513
|
+
"data-slot": "skeleton",
|
|
514
|
+
className: J("animate-pulse rounded-md bg-muted", e),
|
|
515
|
+
...t
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/components/ui/tooltip.tsx
|
|
520
|
+
function ut({ delayDuration: e = 0, ...t }) {
|
|
521
|
+
return /* @__PURE__ */ u(N.Provider, {
|
|
522
|
+
"data-slot": "tooltip-provider",
|
|
523
|
+
delayDuration: e,
|
|
524
|
+
...t
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
function dt({ ...e }) {
|
|
528
|
+
return /* @__PURE__ */ u(N.Root, {
|
|
529
|
+
"data-slot": "tooltip",
|
|
530
|
+
...e
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
function ft({ ...e }) {
|
|
534
|
+
return /* @__PURE__ */ u(N.Trigger, {
|
|
535
|
+
"data-slot": "tooltip-trigger",
|
|
536
|
+
...e
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
function pt({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
540
|
+
return /* @__PURE__ */ u(N.Portal, { children: /* @__PURE__ */ d(N.Content, {
|
|
541
|
+
"data-slot": "tooltip-content",
|
|
542
|
+
sideOffset: t,
|
|
543
|
+
className: J("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
544
|
+
...r,
|
|
545
|
+
children: [n, /* @__PURE__ */ u(N.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })]
|
|
546
|
+
}) });
|
|
547
|
+
}
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region src/components/ui/sidebar.tsx
|
|
550
|
+
var mt = "sidebar_state", ht = 3600 * 24 * 7, gt = "16rem", _t = "18rem", vt = "3rem", yt = "b", bt = e.createContext(null);
|
|
551
|
+
function X() {
|
|
552
|
+
let t = e.useContext(bt);
|
|
553
|
+
if (!t) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
554
|
+
return t;
|
|
555
|
+
}
|
|
556
|
+
function xt({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }) {
|
|
557
|
+
let c = Qe(), [l, d] = e.useState(!1), [f, p] = e.useState(t), m = n ?? f, h = e.useCallback((e) => {
|
|
558
|
+
let t = typeof e == "function" ? e(m) : e;
|
|
559
|
+
r ? r(t) : p(t), document.cookie = `${mt}=${t}; path=/; max-age=${ht}`;
|
|
560
|
+
}, [r, m]), g = e.useCallback(() => c ? d((e) => !e) : h((e) => !e), [
|
|
561
|
+
c,
|
|
562
|
+
h,
|
|
563
|
+
d
|
|
564
|
+
]);
|
|
565
|
+
e.useEffect(() => {
|
|
566
|
+
let e = (e) => {
|
|
567
|
+
e.key === yt && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
|
|
568
|
+
};
|
|
569
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
570
|
+
}, [g]);
|
|
571
|
+
let _ = m ? "expanded" : "collapsed", v = e.useMemo(() => ({
|
|
572
|
+
state: _,
|
|
573
|
+
open: m,
|
|
574
|
+
setOpen: h,
|
|
575
|
+
isMobile: c,
|
|
576
|
+
openMobile: l,
|
|
577
|
+
setOpenMobile: d,
|
|
578
|
+
toggleSidebar: g
|
|
579
|
+
}), [
|
|
580
|
+
_,
|
|
581
|
+
m,
|
|
582
|
+
h,
|
|
583
|
+
c,
|
|
584
|
+
l,
|
|
585
|
+
d,
|
|
586
|
+
g
|
|
587
|
+
]);
|
|
588
|
+
return /* @__PURE__ */ u(bt.Provider, {
|
|
589
|
+
value: v,
|
|
590
|
+
children: /* @__PURE__ */ u("div", {
|
|
591
|
+
"data-slot": "sidebar-wrapper",
|
|
592
|
+
style: {
|
|
593
|
+
"--sidebar-width": gt,
|
|
594
|
+
"--sidebar-width-icon": vt,
|
|
595
|
+
...a
|
|
596
|
+
},
|
|
597
|
+
className: J("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", i),
|
|
598
|
+
...s,
|
|
599
|
+
children: o
|
|
600
|
+
})
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
function St({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, dir: a, ...o }) {
|
|
604
|
+
let { isMobile: s, state: c, openMobile: l, setOpenMobile: f } = X();
|
|
605
|
+
return n === "none" ? /* @__PURE__ */ u("div", {
|
|
606
|
+
"data-slot": "sidebar",
|
|
607
|
+
className: J("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", r),
|
|
608
|
+
...o,
|
|
609
|
+
children: i
|
|
610
|
+
}) : s ? /* @__PURE__ */ u($e, {
|
|
611
|
+
open: l,
|
|
612
|
+
onOpenChange: f,
|
|
613
|
+
...o,
|
|
614
|
+
children: /* @__PURE__ */ d(it, {
|
|
615
|
+
dir: a,
|
|
616
|
+
"data-sidebar": "sidebar",
|
|
617
|
+
"data-slot": "sidebar",
|
|
618
|
+
"data-mobile": "true",
|
|
619
|
+
className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
620
|
+
style: { "--sidebar-width": _t },
|
|
621
|
+
side: e,
|
|
622
|
+
children: [/* @__PURE__ */ d(at, {
|
|
623
|
+
className: "sr-only",
|
|
624
|
+
children: [/* @__PURE__ */ u(st, { children: "Sidebar" }), /* @__PURE__ */ u(ct, { children: "Displays the mobile sidebar." })]
|
|
625
|
+
}), /* @__PURE__ */ u("div", {
|
|
626
|
+
className: "flex h-full w-full flex-col",
|
|
627
|
+
children: i
|
|
628
|
+
})]
|
|
629
|
+
})
|
|
630
|
+
}) : /* @__PURE__ */ d("div", {
|
|
631
|
+
className: "group peer hidden text-sidebar-foreground md:block",
|
|
632
|
+
"data-state": c,
|
|
633
|
+
"data-collapsible": c === "collapsed" ? n : "",
|
|
634
|
+
"data-variant": t,
|
|
635
|
+
"data-side": e,
|
|
636
|
+
"data-slot": "sidebar",
|
|
637
|
+
children: [/* @__PURE__ */ u("div", {
|
|
638
|
+
"data-slot": "sidebar-gap",
|
|
639
|
+
className: J("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
640
|
+
}), /* @__PURE__ */ u("div", {
|
|
641
|
+
"data-slot": "sidebar-container",
|
|
642
|
+
"data-side": e,
|
|
643
|
+
className: J("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:-left-(--sidebar-width) data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:-right-(--sidebar-width) md:flex", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", r),
|
|
644
|
+
...o,
|
|
645
|
+
children: /* @__PURE__ */ u("div", {
|
|
646
|
+
"data-sidebar": "sidebar",
|
|
647
|
+
"data-slot": "sidebar-inner",
|
|
648
|
+
className: "flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",
|
|
649
|
+
children: i
|
|
650
|
+
})
|
|
651
|
+
})]
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
function Ct({ className: e, onClick: t, ...n }) {
|
|
655
|
+
let { toggleSidebar: r } = X();
|
|
656
|
+
return /* @__PURE__ */ d(Y, {
|
|
657
|
+
"data-sidebar": "trigger",
|
|
658
|
+
"data-slot": "sidebar-trigger",
|
|
659
|
+
variant: "ghost",
|
|
660
|
+
size: "icon-sm",
|
|
661
|
+
className: J(e),
|
|
662
|
+
onClick: (e) => {
|
|
663
|
+
t?.(e), r();
|
|
664
|
+
},
|
|
665
|
+
...n,
|
|
666
|
+
children: [/* @__PURE__ */ u(k, {}), /* @__PURE__ */ u("span", {
|
|
667
|
+
className: "sr-only",
|
|
668
|
+
children: "Toggle Sidebar"
|
|
669
|
+
})]
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
function wt({ className: e, ...t }) {
|
|
673
|
+
let { toggleSidebar: n } = X();
|
|
674
|
+
return /* @__PURE__ */ u("button", {
|
|
675
|
+
"data-sidebar": "rail",
|
|
676
|
+
"data-slot": "sidebar-rail",
|
|
677
|
+
"aria-label": "Toggle Sidebar",
|
|
678
|
+
tabIndex: -1,
|
|
679
|
+
onClick: n,
|
|
680
|
+
title: "Toggle Sidebar",
|
|
681
|
+
className: J("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:inset-s-1/2 after:w-0.5 hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
|
|
682
|
+
...t
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
function Tt({ className: e, ...t }) {
|
|
686
|
+
return /* @__PURE__ */ u("main", {
|
|
687
|
+
"data-slot": "sidebar-inset",
|
|
688
|
+
className: J("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
|
|
689
|
+
...t
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
function Et({ className: e, ...t }) {
|
|
693
|
+
return /* @__PURE__ */ u(De, {
|
|
694
|
+
"data-slot": "sidebar-input",
|
|
695
|
+
"data-sidebar": "input",
|
|
696
|
+
className: J("h-8 w-full bg-background shadow-none", e),
|
|
697
|
+
...t
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
function Dt({ className: e, ...t }) {
|
|
701
|
+
return /* @__PURE__ */ u("div", {
|
|
702
|
+
"data-slot": "sidebar-header",
|
|
703
|
+
"data-sidebar": "header",
|
|
704
|
+
className: J("flex flex-col gap-2 p-2", e),
|
|
705
|
+
...t
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
function Ot({ className: e, ...t }) {
|
|
709
|
+
return /* @__PURE__ */ u("div", {
|
|
710
|
+
"data-slot": "sidebar-footer",
|
|
711
|
+
"data-sidebar": "footer",
|
|
712
|
+
className: J("flex flex-col gap-2 p-2", e),
|
|
713
|
+
...t
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
function kt({ className: e, ...t }) {
|
|
717
|
+
return /* @__PURE__ */ u(Ke, {
|
|
718
|
+
"data-slot": "sidebar-separator",
|
|
719
|
+
"data-sidebar": "separator",
|
|
720
|
+
className: J("mx-2 w-auto bg-sidebar-border", e),
|
|
721
|
+
...t
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
function At({ className: e, ...t }) {
|
|
725
|
+
return /* @__PURE__ */ u("div", {
|
|
726
|
+
"data-slot": "sidebar-content",
|
|
727
|
+
"data-sidebar": "content",
|
|
728
|
+
className: J("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
729
|
+
...t
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
function jt({ className: e, ...t }) {
|
|
733
|
+
return /* @__PURE__ */ u("div", {
|
|
734
|
+
"data-slot": "sidebar-group",
|
|
735
|
+
"data-sidebar": "group",
|
|
736
|
+
className: J("relative flex w-full min-w-0 flex-col p-2", e),
|
|
737
|
+
...t
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
function Mt({ className: e, asChild: t = !1, ...n }) {
|
|
741
|
+
return /* @__PURE__ */ u(t ? h : "div", {
|
|
742
|
+
"data-slot": "sidebar-group-label",
|
|
743
|
+
"data-sidebar": "group-label",
|
|
744
|
+
className: J("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", e),
|
|
745
|
+
...n
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
function Nt({ className: e, asChild: t = !1, ...n }) {
|
|
749
|
+
return /* @__PURE__ */ u(t ? h : "button", {
|
|
750
|
+
"data-slot": "sidebar-group-action",
|
|
751
|
+
"data-sidebar": "group-action",
|
|
752
|
+
className: J("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", e),
|
|
753
|
+
...n
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
function Pt({ className: e, ...t }) {
|
|
757
|
+
return /* @__PURE__ */ u("div", {
|
|
758
|
+
"data-slot": "sidebar-group-content",
|
|
759
|
+
"data-sidebar": "group-content",
|
|
760
|
+
className: J("w-full text-sm", e),
|
|
761
|
+
...t
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
function Ft({ className: e, ...t }) {
|
|
765
|
+
return /* @__PURE__ */ u("ul", {
|
|
766
|
+
"data-slot": "sidebar-menu",
|
|
767
|
+
"data-sidebar": "menu",
|
|
768
|
+
className: J("flex w-full min-w-0 flex-col gap-1", e),
|
|
769
|
+
...t
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
function It({ className: e, ...t }) {
|
|
773
|
+
return /* @__PURE__ */ u("li", {
|
|
774
|
+
"data-slot": "sidebar-menu-item",
|
|
775
|
+
"data-sidebar": "menu-item",
|
|
776
|
+
className: J("group/menu-item relative", e),
|
|
777
|
+
...t
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
var Lt = m("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
781
|
+
variants: {
|
|
782
|
+
variant: {
|
|
783
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
784
|
+
outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"
|
|
785
|
+
},
|
|
786
|
+
size: {
|
|
787
|
+
default: "h-8 text-sm",
|
|
788
|
+
sm: "h-7 text-xs",
|
|
789
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
defaultVariants: {
|
|
793
|
+
variant: "default",
|
|
794
|
+
size: "default"
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
function Rt({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
798
|
+
let s = e ? h : "button", { isMobile: c, state: l } = X(), f = /* @__PURE__ */ u(s, {
|
|
799
|
+
"data-slot": "sidebar-menu-button",
|
|
800
|
+
"data-sidebar": "menu-button",
|
|
801
|
+
"data-size": r,
|
|
802
|
+
"data-active": t,
|
|
803
|
+
className: J(Lt({
|
|
804
|
+
variant: n,
|
|
805
|
+
size: r
|
|
806
|
+
}), a),
|
|
807
|
+
...o
|
|
808
|
+
});
|
|
809
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ d(dt, { children: [/* @__PURE__ */ u(ft, {
|
|
810
|
+
asChild: !0,
|
|
811
|
+
children: f
|
|
812
|
+
}), /* @__PURE__ */ u(pt, {
|
|
813
|
+
side: "right",
|
|
814
|
+
align: "center",
|
|
815
|
+
hidden: l !== "collapsed" || c,
|
|
816
|
+
...i
|
|
817
|
+
})] })) : f;
|
|
818
|
+
}
|
|
819
|
+
function zt({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
820
|
+
return /* @__PURE__ */ u(t ? h : "button", {
|
|
821
|
+
"data-slot": "sidebar-menu-action",
|
|
822
|
+
"data-sidebar": "menu-action",
|
|
823
|
+
className: J("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", n && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0", e),
|
|
824
|
+
...r
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
function Bt({ className: e, ...t }) {
|
|
828
|
+
return /* @__PURE__ */ u("div", {
|
|
829
|
+
"data-slot": "sidebar-menu-badge",
|
|
830
|
+
"data-sidebar": "menu-badge",
|
|
831
|
+
className: J("pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground", e),
|
|
832
|
+
...t
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
function Vt({ className: t, showIcon: n = !1, ...r }) {
|
|
836
|
+
let [i] = e.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
837
|
+
return /* @__PURE__ */ d("div", {
|
|
838
|
+
"data-slot": "sidebar-menu-skeleton",
|
|
839
|
+
"data-sidebar": "menu-skeleton",
|
|
840
|
+
className: J("flex h-8 items-center gap-2 rounded-md px-2", t),
|
|
841
|
+
...r,
|
|
842
|
+
children: [n && /* @__PURE__ */ u(lt, {
|
|
843
|
+
className: "size-4 rounded-md",
|
|
844
|
+
"data-sidebar": "menu-skeleton-icon"
|
|
845
|
+
}), /* @__PURE__ */ u(lt, {
|
|
846
|
+
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
847
|
+
"data-sidebar": "menu-skeleton-text",
|
|
848
|
+
style: { "--skeleton-width": i }
|
|
849
|
+
})]
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
function Ht({ className: e, ...t }) {
|
|
853
|
+
return /* @__PURE__ */ u("ul", {
|
|
854
|
+
"data-slot": "sidebar-menu-sub",
|
|
855
|
+
"data-sidebar": "menu-sub",
|
|
856
|
+
className: J("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", e),
|
|
857
|
+
...t
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
function Ut({ className: e, ...t }) {
|
|
861
|
+
return /* @__PURE__ */ u("li", {
|
|
862
|
+
"data-slot": "sidebar-menu-sub-item",
|
|
863
|
+
"data-sidebar": "menu-sub-item",
|
|
864
|
+
className: J("group/menu-sub-item relative", e),
|
|
865
|
+
...t
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
function Wt({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
869
|
+
return /* @__PURE__ */ u(e ? h : "a", {
|
|
870
|
+
"data-slot": "sidebar-menu-sub-button",
|
|
871
|
+
"data-sidebar": "menu-sub-button",
|
|
872
|
+
"data-size": t,
|
|
873
|
+
"data-active": n,
|
|
874
|
+
className: J("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", r),
|
|
875
|
+
...i
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
//#endregion
|
|
879
|
+
//#region src/components/ui/dropdown-menu.tsx
|
|
880
|
+
function Gt({ ...e }) {
|
|
881
|
+
return /* @__PURE__ */ u(P.Root, {
|
|
882
|
+
"data-slot": "dropdown-menu",
|
|
883
|
+
...e
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
function Kt({ ...e }) {
|
|
887
|
+
return /* @__PURE__ */ u(P.Portal, {
|
|
888
|
+
"data-slot": "dropdown-menu-portal",
|
|
889
|
+
...e
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
function qt({ ...e }) {
|
|
893
|
+
return /* @__PURE__ */ u(P.Trigger, {
|
|
894
|
+
"data-slot": "dropdown-menu-trigger",
|
|
895
|
+
...e
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
function Jt({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
899
|
+
return /* @__PURE__ */ u(P.Portal, { children: /* @__PURE__ */ u(P.Content, {
|
|
900
|
+
"data-slot": "dropdown-menu-content",
|
|
901
|
+
sideOffset: n,
|
|
902
|
+
align: t,
|
|
903
|
+
className: J("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
904
|
+
...r
|
|
905
|
+
}) });
|
|
906
|
+
}
|
|
907
|
+
function Yt({ ...e }) {
|
|
908
|
+
return /* @__PURE__ */ u(P.Group, {
|
|
909
|
+
"data-slot": "dropdown-menu-group",
|
|
910
|
+
...e
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
function Xt({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
914
|
+
return /* @__PURE__ */ u(P.Item, {
|
|
915
|
+
"data-slot": "dropdown-menu-item",
|
|
916
|
+
"data-inset": t,
|
|
917
|
+
"data-variant": n,
|
|
918
|
+
className: J("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", e),
|
|
919
|
+
...r
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
function Zt({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
923
|
+
return /* @__PURE__ */ d(P.CheckboxItem, {
|
|
924
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
925
|
+
"data-inset": r,
|
|
926
|
+
className: J("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
927
|
+
checked: n,
|
|
928
|
+
...i,
|
|
929
|
+
children: [/* @__PURE__ */ u("span", {
|
|
930
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
931
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
932
|
+
children: /* @__PURE__ */ u(P.ItemIndicator, { children: /* @__PURE__ */ u(_, {}) })
|
|
933
|
+
}), t]
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
function Qt({ ...e }) {
|
|
937
|
+
return /* @__PURE__ */ u(P.RadioGroup, {
|
|
938
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
939
|
+
...e
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
function $t({ className: e, children: t, inset: n, ...r }) {
|
|
943
|
+
return /* @__PURE__ */ d(P.RadioItem, {
|
|
944
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
945
|
+
"data-inset": n,
|
|
946
|
+
className: J("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
947
|
+
...r,
|
|
948
|
+
children: [/* @__PURE__ */ u("span", {
|
|
949
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
950
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
951
|
+
children: /* @__PURE__ */ u(P.ItemIndicator, { children: /* @__PURE__ */ u(_, {}) })
|
|
952
|
+
}), t]
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
function en({ className: e, inset: t, ...n }) {
|
|
956
|
+
return /* @__PURE__ */ u(P.Label, {
|
|
957
|
+
"data-slot": "dropdown-menu-label",
|
|
958
|
+
"data-inset": t,
|
|
959
|
+
className: J("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", e),
|
|
960
|
+
...n
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
function tn({ className: e, ...t }) {
|
|
964
|
+
return /* @__PURE__ */ u(P.Separator, {
|
|
965
|
+
"data-slot": "dropdown-menu-separator",
|
|
966
|
+
className: J("-mx-1 my-1 h-px bg-border", e),
|
|
967
|
+
...t
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
function nn({ className: e, ...t }) {
|
|
971
|
+
return /* @__PURE__ */ u("span", {
|
|
972
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
973
|
+
className: J("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", e),
|
|
974
|
+
...t
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
function rn({ ...e }) {
|
|
978
|
+
return /* @__PURE__ */ u(P.Sub, {
|
|
979
|
+
"data-slot": "dropdown-menu-sub",
|
|
980
|
+
...e
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
function an({ className: e, inset: t, children: n, ...r }) {
|
|
984
|
+
return /* @__PURE__ */ d(P.SubTrigger, {
|
|
985
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
986
|
+
"data-inset": t,
|
|
987
|
+
className: J("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
988
|
+
...r,
|
|
989
|
+
children: [n, /* @__PURE__ */ u(x, { className: "ml-auto" })]
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
function on({ className: e, ...t }) {
|
|
993
|
+
return /* @__PURE__ */ u(P.SubContent, {
|
|
994
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
995
|
+
className: J("z-50 min-w-24 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
996
|
+
...t
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region src/components/ui/select.tsx
|
|
1001
|
+
function sn({ ...e }) {
|
|
1002
|
+
return /* @__PURE__ */ u(F.Root, {
|
|
1003
|
+
"data-slot": "select",
|
|
1004
|
+
...e
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
function cn({ className: e, ...t }) {
|
|
1008
|
+
return /* @__PURE__ */ u(F.Group, {
|
|
1009
|
+
"data-slot": "select-group",
|
|
1010
|
+
className: J("scroll-my-1 p-1", e),
|
|
1011
|
+
...t
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
function ln({ ...e }) {
|
|
1015
|
+
return /* @__PURE__ */ u(F.Value, {
|
|
1016
|
+
"data-slot": "select-value",
|
|
1017
|
+
...e
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
function un({ className: e, size: t = "default", children: n, ...r }) {
|
|
1021
|
+
return /* @__PURE__ */ d(F.Trigger, {
|
|
1022
|
+
"data-slot": "select-trigger",
|
|
1023
|
+
"data-size": t,
|
|
1024
|
+
className: J("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1025
|
+
...r,
|
|
1026
|
+
children: [n, /* @__PURE__ */ u(F.Icon, {
|
|
1027
|
+
asChild: !0,
|
|
1028
|
+
children: /* @__PURE__ */ u(v, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
1029
|
+
})]
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
function dn({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
1033
|
+
return /* @__PURE__ */ u(F.Portal, { children: /* @__PURE__ */ d(F.Content, {
|
|
1034
|
+
"data-slot": "select-content",
|
|
1035
|
+
"data-align-trigger": n === "item-aligned",
|
|
1036
|
+
className: J("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
1037
|
+
position: n,
|
|
1038
|
+
align: r,
|
|
1039
|
+
...i,
|
|
1040
|
+
children: [
|
|
1041
|
+
/* @__PURE__ */ u(hn, {}),
|
|
1042
|
+
/* @__PURE__ */ u(F.Viewport, {
|
|
1043
|
+
"data-position": n,
|
|
1044
|
+
className: J("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
1045
|
+
children: t
|
|
1046
|
+
}),
|
|
1047
|
+
/* @__PURE__ */ u(gn, {})
|
|
1048
|
+
]
|
|
1049
|
+
}) });
|
|
1050
|
+
}
|
|
1051
|
+
function fn({ className: e, ...t }) {
|
|
1052
|
+
return /* @__PURE__ */ u(F.Label, {
|
|
1053
|
+
"data-slot": "select-label",
|
|
1054
|
+
className: J("px-2 py-1.5 text-xs text-muted-foreground", e),
|
|
1055
|
+
...t
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
function pn({ className: e, children: t, ...n }) {
|
|
1059
|
+
return /* @__PURE__ */ d(F.Item, {
|
|
1060
|
+
"data-slot": "select-item",
|
|
1061
|
+
className: J("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
1062
|
+
...n,
|
|
1063
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1064
|
+
className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center",
|
|
1065
|
+
children: /* @__PURE__ */ u(F.ItemIndicator, { children: /* @__PURE__ */ u(_, { className: "pointer-events-none" }) })
|
|
1066
|
+
}), /* @__PURE__ */ u(F.ItemText, { children: t })]
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
function mn({ className: e, ...t }) {
|
|
1070
|
+
return /* @__PURE__ */ u(F.Separator, {
|
|
1071
|
+
"data-slot": "select-separator",
|
|
1072
|
+
className: J("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
1073
|
+
...t
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
function hn({ className: e, ...t }) {
|
|
1077
|
+
return /* @__PURE__ */ u(F.ScrollUpButton, {
|
|
1078
|
+
"data-slot": "select-scroll-up-button",
|
|
1079
|
+
className: J("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1080
|
+
...t,
|
|
1081
|
+
children: /* @__PURE__ */ u(S, {})
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
function gn({ className: e, ...t }) {
|
|
1085
|
+
return /* @__PURE__ */ u(F.ScrollDownButton, {
|
|
1086
|
+
"data-slot": "select-scroll-down-button",
|
|
1087
|
+
className: J("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1088
|
+
...t,
|
|
1089
|
+
children: /* @__PURE__ */ u(v, {})
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
//#endregion
|
|
1093
|
+
//#region src/components/ui/alert.tsx
|
|
1094
|
+
var _n = m("group/alert relative grid w-full gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
1095
|
+
variants: { variant: {
|
|
1096
|
+
default: "bg-card text-card-foreground",
|
|
1097
|
+
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
1098
|
+
} },
|
|
1099
|
+
defaultVariants: { variant: "default" }
|
|
1100
|
+
});
|
|
1101
|
+
function vn({ className: e, variant: t, ...n }) {
|
|
1102
|
+
return /* @__PURE__ */ u("div", {
|
|
1103
|
+
"data-slot": "alert",
|
|
1104
|
+
role: "alert",
|
|
1105
|
+
className: J(_n({ variant: t }), e),
|
|
1106
|
+
...n
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
function yn({ className: e, ...t }) {
|
|
1110
|
+
return /* @__PURE__ */ u("div", {
|
|
1111
|
+
"data-slot": "alert-title",
|
|
1112
|
+
className: J("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
1113
|
+
...t
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
function bn({ className: e, ...t }) {
|
|
1117
|
+
return /* @__PURE__ */ u("div", {
|
|
1118
|
+
"data-slot": "alert-description",
|
|
1119
|
+
className: J("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", e),
|
|
1120
|
+
...t
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
function xn({ className: e, ...t }) {
|
|
1124
|
+
return /* @__PURE__ */ u("div", {
|
|
1125
|
+
"data-slot": "alert-action",
|
|
1126
|
+
className: J("absolute top-2.5 right-3", e),
|
|
1127
|
+
...t
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
//#endregion
|
|
1131
|
+
//#region src/components/ui/alert-dialog.tsx
|
|
1132
|
+
function Sn({ ...e }) {
|
|
1133
|
+
return /* @__PURE__ */ u(I.Root, {
|
|
1134
|
+
"data-slot": "alert-dialog",
|
|
1135
|
+
...e
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
function Cn({ ...e }) {
|
|
1139
|
+
return /* @__PURE__ */ u(I.Trigger, {
|
|
1140
|
+
"data-slot": "alert-dialog-trigger",
|
|
1141
|
+
...e
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
function wn({ ...e }) {
|
|
1145
|
+
return /* @__PURE__ */ u(I.Portal, {
|
|
1146
|
+
"data-slot": "alert-dialog-portal",
|
|
1147
|
+
...e
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
function Tn({ className: e, ...t }) {
|
|
1151
|
+
return /* @__PURE__ */ u(I.Overlay, {
|
|
1152
|
+
"data-slot": "alert-dialog-overlay",
|
|
1153
|
+
className: J("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
1154
|
+
...t
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
function En({ className: e, size: t = "default", ...n }) {
|
|
1158
|
+
return /* @__PURE__ */ d(wn, { children: [/* @__PURE__ */ u(Tn, {}), /* @__PURE__ */ u(I.Content, {
|
|
1159
|
+
"data-slot": "alert-dialog-content",
|
|
1160
|
+
"data-size": t,
|
|
1161
|
+
className: J("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
1162
|
+
...n
|
|
1163
|
+
})] });
|
|
1164
|
+
}
|
|
1165
|
+
function Dn({ className: e, ...t }) {
|
|
1166
|
+
return /* @__PURE__ */ u("div", {
|
|
1167
|
+
"data-slot": "alert-dialog-header",
|
|
1168
|
+
className: J("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
1169
|
+
...t
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
function On({ className: e, ...t }) {
|
|
1173
|
+
return /* @__PURE__ */ u("div", {
|
|
1174
|
+
"data-slot": "alert-dialog-footer",
|
|
1175
|
+
className: J("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
1176
|
+
...t
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
function kn({ className: e, ...t }) {
|
|
1180
|
+
return /* @__PURE__ */ u("div", {
|
|
1181
|
+
"data-slot": "alert-dialog-media",
|
|
1182
|
+
className: J("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", e),
|
|
1183
|
+
...t
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
function An({ className: e, ...t }) {
|
|
1187
|
+
return /* @__PURE__ */ u(I.Title, {
|
|
1188
|
+
"data-slot": "alert-dialog-title",
|
|
1189
|
+
className: J("font-heading text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
1190
|
+
...t
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
function jn({ className: e, ...t }) {
|
|
1194
|
+
return /* @__PURE__ */ u(I.Description, {
|
|
1195
|
+
"data-slot": "alert-dialog-description",
|
|
1196
|
+
className: J("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
1197
|
+
...t
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
function Mn({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
1201
|
+
return /* @__PURE__ */ u(Y, {
|
|
1202
|
+
variant: t,
|
|
1203
|
+
size: n,
|
|
1204
|
+
asChild: !0,
|
|
1205
|
+
children: /* @__PURE__ */ u(I.Action, {
|
|
1206
|
+
"data-slot": "alert-dialog-action",
|
|
1207
|
+
className: J(e),
|
|
1208
|
+
...r
|
|
1209
|
+
})
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
function Nn({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
1213
|
+
return /* @__PURE__ */ u(Y, {
|
|
1214
|
+
variant: t,
|
|
1215
|
+
size: n,
|
|
1216
|
+
asChild: !0,
|
|
1217
|
+
children: /* @__PURE__ */ u(I.Cancel, {
|
|
1218
|
+
"data-slot": "alert-dialog-cancel",
|
|
1219
|
+
className: J(e),
|
|
1220
|
+
...r
|
|
1221
|
+
})
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
//#endregion
|
|
1225
|
+
//#region src/components/ui/empty.tsx
|
|
1226
|
+
function Pn({ className: e, ...t }) {
|
|
1227
|
+
return /* @__PURE__ */ u("div", {
|
|
1228
|
+
"data-slot": "empty",
|
|
1229
|
+
className: J("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance", e),
|
|
1230
|
+
...t
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
function Fn({ className: e, ...t }) {
|
|
1234
|
+
return /* @__PURE__ */ u("div", {
|
|
1235
|
+
"data-slot": "empty-header",
|
|
1236
|
+
className: J("flex max-w-sm flex-col items-center gap-2", e),
|
|
1237
|
+
...t
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
var In = m("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
1241
|
+
variants: { variant: {
|
|
1242
|
+
default: "bg-transparent",
|
|
1243
|
+
icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
|
|
1244
|
+
} },
|
|
1245
|
+
defaultVariants: { variant: "default" }
|
|
1246
|
+
});
|
|
1247
|
+
function Ln({ className: e, variant: t = "default", ...n }) {
|
|
1248
|
+
return /* @__PURE__ */ u("div", {
|
|
1249
|
+
"data-slot": "empty-icon",
|
|
1250
|
+
"data-variant": t,
|
|
1251
|
+
className: J(In({
|
|
1252
|
+
variant: t,
|
|
1253
|
+
className: e
|
|
1254
|
+
})),
|
|
1255
|
+
...n
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
function Rn({ className: e, ...t }) {
|
|
1259
|
+
return /* @__PURE__ */ u("div", {
|
|
1260
|
+
"data-slot": "empty-title",
|
|
1261
|
+
className: J("font-heading text-lg font-medium tracking-tight", e),
|
|
1262
|
+
...t
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
function zn({ className: e, ...t }) {
|
|
1266
|
+
return /* @__PURE__ */ u("div", {
|
|
1267
|
+
"data-slot": "empty-description",
|
|
1268
|
+
className: J("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
1269
|
+
...t
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
function Bn({ className: e, ...t }) {
|
|
1273
|
+
return /* @__PURE__ */ u("div", {
|
|
1274
|
+
"data-slot": "empty-content",
|
|
1275
|
+
className: J("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", e),
|
|
1276
|
+
...t
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
//#endregion
|
|
1280
|
+
//#region src/components/ui/hover-card.tsx
|
|
1281
|
+
function Vn({ ...e }) {
|
|
1282
|
+
return /* @__PURE__ */ u(L.Root, {
|
|
1283
|
+
"data-slot": "hover-card",
|
|
1284
|
+
...e
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
function Hn({ ...e }) {
|
|
1288
|
+
return /* @__PURE__ */ u(L.Trigger, {
|
|
1289
|
+
"data-slot": "hover-card-trigger",
|
|
1290
|
+
...e
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
function Un({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1294
|
+
return /* @__PURE__ */ u(L.Portal, {
|
|
1295
|
+
"data-slot": "hover-card-portal",
|
|
1296
|
+
children: /* @__PURE__ */ u(L.Content, {
|
|
1297
|
+
"data-slot": "hover-card-content",
|
|
1298
|
+
align: t,
|
|
1299
|
+
sideOffset: n,
|
|
1300
|
+
className: J("z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
1301
|
+
...r
|
|
1302
|
+
})
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
//#endregion
|
|
1306
|
+
//#region src/components/ui/pagination.tsx
|
|
1307
|
+
function Wn({ className: e, ...t }) {
|
|
1308
|
+
return /* @__PURE__ */ u("nav", {
|
|
1309
|
+
role: "navigation",
|
|
1310
|
+
"aria-label": "pagination",
|
|
1311
|
+
"data-slot": "pagination",
|
|
1312
|
+
className: J("mx-auto flex w-full justify-center", e),
|
|
1313
|
+
...t
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
function Gn({ className: e, ...t }) {
|
|
1317
|
+
return /* @__PURE__ */ u("ul", {
|
|
1318
|
+
"data-slot": "pagination-content",
|
|
1319
|
+
className: J("flex items-center gap-1", e),
|
|
1320
|
+
...t
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
function Kn({ ...e }) {
|
|
1324
|
+
return /* @__PURE__ */ u("li", {
|
|
1325
|
+
"data-slot": "pagination-item",
|
|
1326
|
+
...e
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
function qn({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
1330
|
+
return /* @__PURE__ */ u(Y, {
|
|
1331
|
+
asChild: !0,
|
|
1332
|
+
variant: t ? "outline" : "ghost",
|
|
1333
|
+
size: n,
|
|
1334
|
+
className: J(e),
|
|
1335
|
+
children: /* @__PURE__ */ u("a", {
|
|
1336
|
+
"aria-current": t ? "page" : void 0,
|
|
1337
|
+
"data-slot": "pagination-link",
|
|
1338
|
+
"data-active": t,
|
|
1339
|
+
...r
|
|
1340
|
+
})
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
function Jn({ className: e, text: t = "Previous", ...n }) {
|
|
1344
|
+
return /* @__PURE__ */ d(qn, {
|
|
1345
|
+
"aria-label": "Go to previous page",
|
|
1346
|
+
size: "default",
|
|
1347
|
+
className: J("pl-2!", e),
|
|
1348
|
+
...n,
|
|
1349
|
+
children: [/* @__PURE__ */ u(b, { "data-icon": "inline-start" }), /* @__PURE__ */ u("span", {
|
|
1350
|
+
className: "hidden sm:block",
|
|
1351
|
+
children: t
|
|
1352
|
+
})]
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
function Yn({ className: e, text: t = "Next", ...n }) {
|
|
1356
|
+
return /* @__PURE__ */ d(qn, {
|
|
1357
|
+
"aria-label": "Go to next page",
|
|
1358
|
+
size: "default",
|
|
1359
|
+
className: J("pr-2!", e),
|
|
1360
|
+
...n,
|
|
1361
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1362
|
+
className: "hidden sm:block",
|
|
1363
|
+
children: t
|
|
1364
|
+
}), /* @__PURE__ */ u(x, { "data-icon": "inline-end" })]
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
function Xn({ className: e, ...t }) {
|
|
1368
|
+
return /* @__PURE__ */ d("span", {
|
|
1369
|
+
"aria-hidden": !0,
|
|
1370
|
+
"data-slot": "pagination-ellipsis",
|
|
1371
|
+
className: J("flex size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4", e),
|
|
1372
|
+
...t,
|
|
1373
|
+
children: [/* @__PURE__ */ u(O, {}), /* @__PURE__ */ u("span", {
|
|
1374
|
+
className: "sr-only",
|
|
1375
|
+
children: "More pages"
|
|
1376
|
+
})]
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
//#endregion
|
|
1380
|
+
//#region src/components/ui/popover.tsx
|
|
1381
|
+
function Zn({ ...e }) {
|
|
1382
|
+
return /* @__PURE__ */ u(R.Root, {
|
|
1383
|
+
"data-slot": "popover",
|
|
1384
|
+
...e
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
function Qn({ ...e }) {
|
|
1388
|
+
return /* @__PURE__ */ u(R.Trigger, {
|
|
1389
|
+
"data-slot": "popover-trigger",
|
|
1390
|
+
...e
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
function $n({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1394
|
+
return /* @__PURE__ */ u(R.Portal, { children: /* @__PURE__ */ u(R.Content, {
|
|
1395
|
+
"data-slot": "popover-content",
|
|
1396
|
+
align: t,
|
|
1397
|
+
sideOffset: n,
|
|
1398
|
+
className: J("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
1399
|
+
...r
|
|
1400
|
+
}) });
|
|
1401
|
+
}
|
|
1402
|
+
function er({ ...e }) {
|
|
1403
|
+
return /* @__PURE__ */ u(R.Anchor, {
|
|
1404
|
+
"data-slot": "popover-anchor",
|
|
1405
|
+
...e
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
function tr({ className: e, ...t }) {
|
|
1409
|
+
return /* @__PURE__ */ u("div", {
|
|
1410
|
+
"data-slot": "popover-header",
|
|
1411
|
+
className: J("flex flex-col gap-1 text-sm", e),
|
|
1412
|
+
...t
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
function nr({ className: e, ...t }) {
|
|
1416
|
+
return /* @__PURE__ */ u("div", {
|
|
1417
|
+
"data-slot": "popover-title",
|
|
1418
|
+
className: J("font-medium", e),
|
|
1419
|
+
...t
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
function rr({ className: e, ...t }) {
|
|
1423
|
+
return /* @__PURE__ */ u("p", {
|
|
1424
|
+
"data-slot": "popover-description",
|
|
1425
|
+
className: J("text-muted-foreground", e),
|
|
1426
|
+
...t
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
//#endregion
|
|
1430
|
+
//#region src/components/ui/table.tsx
|
|
1431
|
+
function ir({ className: e, ...t }) {
|
|
1432
|
+
return /* @__PURE__ */ u("div", {
|
|
1433
|
+
"data-slot": "table-container",
|
|
1434
|
+
className: "relative w-full overflow-x-auto",
|
|
1435
|
+
children: /* @__PURE__ */ u("table", {
|
|
1436
|
+
"data-slot": "table",
|
|
1437
|
+
className: J("w-full caption-bottom text-sm", e),
|
|
1438
|
+
...t
|
|
1439
|
+
})
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
function ar({ className: e, ...t }) {
|
|
1443
|
+
return /* @__PURE__ */ u("thead", {
|
|
1444
|
+
"data-slot": "table-header",
|
|
1445
|
+
className: J("[&_tr]:border-b", e),
|
|
1446
|
+
...t
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
function or({ className: e, ...t }) {
|
|
1450
|
+
return /* @__PURE__ */ u("tbody", {
|
|
1451
|
+
"data-slot": "table-body",
|
|
1452
|
+
className: J("[&_tr:last-child]:border-0", e),
|
|
1453
|
+
...t
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
function sr({ className: e, ...t }) {
|
|
1457
|
+
return /* @__PURE__ */ u("tfoot", {
|
|
1458
|
+
"data-slot": "table-footer",
|
|
1459
|
+
className: J("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1460
|
+
...t
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
function cr({ className: e, ...t }) {
|
|
1464
|
+
return /* @__PURE__ */ u("tr", {
|
|
1465
|
+
"data-slot": "table-row",
|
|
1466
|
+
className: J("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
1467
|
+
...t
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
function lr({ className: e, ...t }) {
|
|
1471
|
+
return /* @__PURE__ */ u("th", {
|
|
1472
|
+
"data-slot": "table-head",
|
|
1473
|
+
className: J("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground has-[[role=checkbox]]:pr-0", e),
|
|
1474
|
+
...t
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
function ur({ className: e, ...t }) {
|
|
1478
|
+
return /* @__PURE__ */ u("td", {
|
|
1479
|
+
"data-slot": "table-cell",
|
|
1480
|
+
className: J("p-2 align-middle whitespace-nowrap has-[[role=checkbox]]:pr-0", e),
|
|
1481
|
+
...t
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
function dr({ className: e, ...t }) {
|
|
1485
|
+
return /* @__PURE__ */ u("caption", {
|
|
1486
|
+
"data-slot": "table-caption",
|
|
1487
|
+
className: J("mt-4 text-sm text-muted-foreground", e),
|
|
1488
|
+
...t
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
//#endregion
|
|
1492
|
+
//#region src/components/ui/tabs.tsx
|
|
1493
|
+
function fr({ className: e, orientation: t = "horizontal", ...n }) {
|
|
1494
|
+
return /* @__PURE__ */ u(V.Root, {
|
|
1495
|
+
"data-slot": "tabs",
|
|
1496
|
+
"data-orientation": t,
|
|
1497
|
+
orientation: t,
|
|
1498
|
+
className: J("group/tabs flex gap-2 data-horizontal:flex-col", e),
|
|
1499
|
+
...n
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
var pr = m("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
1503
|
+
variants: { variant: {
|
|
1504
|
+
default: "bg-muted",
|
|
1505
|
+
line: "gap-1 bg-transparent"
|
|
1506
|
+
} },
|
|
1507
|
+
defaultVariants: { variant: "default" }
|
|
1508
|
+
});
|
|
1509
|
+
function mr({ className: e, variant: t = "default", ...n }) {
|
|
1510
|
+
return /* @__PURE__ */ u(V.List, {
|
|
1511
|
+
"data-slot": "tabs-list",
|
|
1512
|
+
"data-variant": t,
|
|
1513
|
+
className: J(pr({ variant: t }), e),
|
|
1514
|
+
...n
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
function hr({ className: e, ...t }) {
|
|
1518
|
+
return /* @__PURE__ */ u(V.Trigger, {
|
|
1519
|
+
"data-slot": "tabs-trigger",
|
|
1520
|
+
className: J("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:py-[calc(--spacing(1.25))] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
1521
|
+
...t
|
|
1522
|
+
});
|
|
1523
|
+
}
|
|
1524
|
+
function gr({ className: e, ...t }) {
|
|
1525
|
+
return /* @__PURE__ */ u(V.Content, {
|
|
1526
|
+
"data-slot": "tabs-content",
|
|
1527
|
+
className: J("flex-1 text-xs/relaxed outline-none", e),
|
|
1528
|
+
...t
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
//#endregion
|
|
1532
|
+
//#region src/components/ui/switch.tsx
|
|
1533
|
+
function _r({ className: e, size: t = "default", ...n }) {
|
|
1534
|
+
return /* @__PURE__ */ u(H.Root, {
|
|
1535
|
+
"data-slot": "switch",
|
|
1536
|
+
"data-size": t,
|
|
1537
|
+
className: J("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50", e),
|
|
1538
|
+
...n,
|
|
1539
|
+
children: /* @__PURE__ */ u(H.Thumb, {
|
|
1540
|
+
"data-slot": "switch-thumb",
|
|
1541
|
+
className: "pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"
|
|
1542
|
+
})
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region src/components/ui/spinner.tsx
|
|
1547
|
+
function vr({ className: e, ...t }) {
|
|
1548
|
+
return /* @__PURE__ */ u(E, {
|
|
1549
|
+
role: "status",
|
|
1550
|
+
"aria-label": "Loading",
|
|
1551
|
+
className: J("size-4 animate-spin", e),
|
|
1552
|
+
...t
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
//#endregion
|
|
1556
|
+
//#region src/components/ui/badge.tsx
|
|
1557
|
+
var yr = m("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
1558
|
+
variants: { variant: {
|
|
1559
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
1560
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
1561
|
+
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
1562
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
1563
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
1564
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
1565
|
+
} },
|
|
1566
|
+
defaultVariants: { variant: "default" }
|
|
1567
|
+
});
|
|
1568
|
+
function br({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
1569
|
+
return /* @__PURE__ */ u(n ? h : "span", {
|
|
1570
|
+
"data-slot": "badge",
|
|
1571
|
+
"data-variant": t,
|
|
1572
|
+
className: J(yr({ variant: t }), e),
|
|
1573
|
+
...r
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
//#endregion
|
|
1577
|
+
//#region src/components/ui/sonner.tsx
|
|
1578
|
+
var xr = ({ ...e }) => {
|
|
1579
|
+
let { theme: t = "system" } = ie();
|
|
1580
|
+
return /* @__PURE__ */ u(ae, {
|
|
1581
|
+
theme: t,
|
|
1582
|
+
className: "toaster group",
|
|
1583
|
+
icons: {
|
|
1584
|
+
success: /* @__PURE__ */ u(C, { className: "size-4" }),
|
|
1585
|
+
info: /* @__PURE__ */ u(T, { className: "size-4" }),
|
|
1586
|
+
warning: /* @__PURE__ */ u(j, { className: "size-4" }),
|
|
1587
|
+
error: /* @__PURE__ */ u(ee, { className: "size-4" }),
|
|
1588
|
+
loading: /* @__PURE__ */ u(E, { className: "size-4 animate-spin" })
|
|
1589
|
+
},
|
|
1590
|
+
style: {
|
|
1591
|
+
"--normal-bg": "var(--popover)",
|
|
1592
|
+
"--normal-text": "var(--popover-foreground)",
|
|
1593
|
+
"--normal-border": "var(--border)",
|
|
1594
|
+
"--border-radius": "var(--radius)"
|
|
1595
|
+
},
|
|
1596
|
+
toastOptions: { classNames: { toast: "cn-toast" } },
|
|
1597
|
+
...e
|
|
1598
|
+
});
|
|
1599
|
+
};
|
|
1600
|
+
//#endregion
|
|
1601
|
+
//#region src/components/ui/kbd.tsx
|
|
1602
|
+
function Sr({ className: e, ...t }) {
|
|
1603
|
+
return /* @__PURE__ */ u("kbd", {
|
|
1604
|
+
"data-slot": "kbd",
|
|
1605
|
+
className: J("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3", e),
|
|
1606
|
+
...t
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
function Cr({ className: e, ...t }) {
|
|
1610
|
+
return /* @__PURE__ */ u("kbd", {
|
|
1611
|
+
"data-slot": "kbd-group",
|
|
1612
|
+
className: J("inline-flex items-center gap-1", e),
|
|
1613
|
+
...t
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
//#endregion
|
|
1617
|
+
//#region src/components/ui/scroll-area.tsx
|
|
1618
|
+
function wr({ className: e, children: t, ...n }) {
|
|
1619
|
+
return /* @__PURE__ */ d(U.Root, {
|
|
1620
|
+
"data-slot": "scroll-area",
|
|
1621
|
+
className: J("relative", e),
|
|
1622
|
+
...n,
|
|
1623
|
+
children: [
|
|
1624
|
+
/* @__PURE__ */ u(U.Viewport, {
|
|
1625
|
+
"data-slot": "scroll-area-viewport",
|
|
1626
|
+
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
1627
|
+
children: t
|
|
1628
|
+
}),
|
|
1629
|
+
/* @__PURE__ */ u(Tr, {}),
|
|
1630
|
+
/* @__PURE__ */ u(U.Corner, {})
|
|
1631
|
+
]
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
function Tr({ className: e, orientation: t = "vertical", ...n }) {
|
|
1635
|
+
return /* @__PURE__ */ u(U.ScrollAreaScrollbar, {
|
|
1636
|
+
"data-slot": "scroll-area-scrollbar",
|
|
1637
|
+
"data-orientation": t,
|
|
1638
|
+
orientation: t,
|
|
1639
|
+
className: J("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", e),
|
|
1640
|
+
...n,
|
|
1641
|
+
children: /* @__PURE__ */ u(U.ScrollAreaThumb, {
|
|
1642
|
+
"data-slot": "scroll-area-thumb",
|
|
1643
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
1644
|
+
})
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
//#endregion
|
|
1648
|
+
//#region src/components/ui/checkbox.tsx
|
|
1649
|
+
function Er({ className: e, ...t }) {
|
|
1650
|
+
return /* @__PURE__ */ u(z.Root, {
|
|
1651
|
+
"data-slot": "checkbox",
|
|
1652
|
+
className: J("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", e),
|
|
1653
|
+
...t,
|
|
1654
|
+
children: /* @__PURE__ */ u(z.Indicator, {
|
|
1655
|
+
"data-slot": "checkbox-indicator",
|
|
1656
|
+
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
1657
|
+
children: /* @__PURE__ */ u(_, {})
|
|
1658
|
+
})
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1661
|
+
//#endregion
|
|
1662
|
+
//#region src/components/ui/label.tsx
|
|
1663
|
+
function Dr({ className: e, ...t }) {
|
|
1664
|
+
return /* @__PURE__ */ u(B.Root, {
|
|
1665
|
+
"data-slot": "label",
|
|
1666
|
+
className: J("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
1667
|
+
...t
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
//#endregion
|
|
1671
|
+
//#region src/components/ui/avatar.tsx
|
|
1672
|
+
function Or({ className: e, size: t = "default", ...n }) {
|
|
1673
|
+
return /* @__PURE__ */ u(W.Root, {
|
|
1674
|
+
"data-slot": "avatar",
|
|
1675
|
+
"data-size": t,
|
|
1676
|
+
className: J("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten", e),
|
|
1677
|
+
...n
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
function kr({ className: e, ...t }) {
|
|
1681
|
+
return /* @__PURE__ */ u(W.Image, {
|
|
1682
|
+
"data-slot": "avatar-image",
|
|
1683
|
+
className: J("aspect-square size-full rounded-full object-cover", e),
|
|
1684
|
+
...t
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
function Ar({ className: e, ...t }) {
|
|
1688
|
+
return /* @__PURE__ */ u(W.Fallback, {
|
|
1689
|
+
"data-slot": "avatar-fallback",
|
|
1690
|
+
className: J("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs", e),
|
|
1691
|
+
...t
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
function jr({ className: e, ...t }) {
|
|
1695
|
+
return /* @__PURE__ */ u("span", {
|
|
1696
|
+
"data-slot": "avatar-badge",
|
|
1697
|
+
className: J("absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", e),
|
|
1698
|
+
...t
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
function Mr({ className: e, ...t }) {
|
|
1702
|
+
return /* @__PURE__ */ u("div", {
|
|
1703
|
+
"data-slot": "avatar-group",
|
|
1704
|
+
className: J("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background", e),
|
|
1705
|
+
...t
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
function Nr({ className: e, ...t }) {
|
|
1709
|
+
return /* @__PURE__ */ u("div", {
|
|
1710
|
+
"data-slot": "avatar-group-count",
|
|
1711
|
+
className: J("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", e),
|
|
1712
|
+
...t
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
//#endregion
|
|
1716
|
+
//#region node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js
|
|
1717
|
+
function Pr(e) {
|
|
1718
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
1719
|
+
}
|
|
1720
|
+
function Fr(e) {
|
|
1721
|
+
return Pr(e) || Array.isArray(e);
|
|
1722
|
+
}
|
|
1723
|
+
function Ir() {
|
|
1724
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1725
|
+
}
|
|
1726
|
+
function Lr(e, t) {
|
|
1727
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
1728
|
+
return n.length !== r.length || JSON.stringify(Object.keys(e.breakpoints || {})) !== JSON.stringify(Object.keys(t.breakpoints || {})) ? !1 : n.every((n) => {
|
|
1729
|
+
let r = e[n], i = t[n];
|
|
1730
|
+
return typeof r == "function" ? `${r}` == `${i}` : !Fr(r) || !Fr(i) ? r === i : Lr(r, i);
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
function Rr(e) {
|
|
1734
|
+
return e.concat().sort((e, t) => e.name > t.name ? 1 : -1).map((e) => e.options);
|
|
1735
|
+
}
|
|
1736
|
+
function zr(e, t) {
|
|
1737
|
+
if (e.length !== t.length) return !1;
|
|
1738
|
+
let n = Rr(e), r = Rr(t);
|
|
1739
|
+
return n.every((e, t) => {
|
|
1740
|
+
let n = r[t];
|
|
1741
|
+
return Lr(e, n);
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
//#endregion
|
|
1745
|
+
//#region node_modules/embla-carousel/esm/embla-carousel.esm.js
|
|
1746
|
+
function Br(e) {
|
|
1747
|
+
return typeof e == "number";
|
|
1748
|
+
}
|
|
1749
|
+
function Vr(e) {
|
|
1750
|
+
return typeof e == "string";
|
|
1751
|
+
}
|
|
1752
|
+
function Hr(e) {
|
|
1753
|
+
return typeof e == "boolean";
|
|
1754
|
+
}
|
|
1755
|
+
function Ur(e) {
|
|
1756
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
1757
|
+
}
|
|
1758
|
+
function Z(e) {
|
|
1759
|
+
return Math.abs(e);
|
|
1760
|
+
}
|
|
1761
|
+
function Wr(e) {
|
|
1762
|
+
return Math.sign(e);
|
|
1763
|
+
}
|
|
1764
|
+
function Gr(e, t) {
|
|
1765
|
+
return Z(e - t);
|
|
1766
|
+
}
|
|
1767
|
+
function Kr(e, t) {
|
|
1768
|
+
return e === 0 || t === 0 || Z(e) <= Z(t) ? 0 : Z(Gr(Z(e), Z(t)) / e);
|
|
1769
|
+
}
|
|
1770
|
+
function qr(e) {
|
|
1771
|
+
return Math.round(e * 100) / 100;
|
|
1772
|
+
}
|
|
1773
|
+
function Jr(e) {
|
|
1774
|
+
return Qr(e).map(Number);
|
|
1775
|
+
}
|
|
1776
|
+
function Q(e) {
|
|
1777
|
+
return e[Yr(e)];
|
|
1778
|
+
}
|
|
1779
|
+
function Yr(e) {
|
|
1780
|
+
return Math.max(0, e.length - 1);
|
|
1781
|
+
}
|
|
1782
|
+
function Xr(e, t) {
|
|
1783
|
+
return t === Yr(e);
|
|
1784
|
+
}
|
|
1785
|
+
function Zr(e, t = 0) {
|
|
1786
|
+
return Array.from(Array(e), (e, n) => t + n);
|
|
1787
|
+
}
|
|
1788
|
+
function Qr(e) {
|
|
1789
|
+
return Object.keys(e);
|
|
1790
|
+
}
|
|
1791
|
+
function $r(e, t) {
|
|
1792
|
+
return [e, t].reduce((e, t) => (Qr(t).forEach((n) => {
|
|
1793
|
+
let r = e[n], i = t[n];
|
|
1794
|
+
e[n] = Ur(r) && Ur(i) ? $r(r, i) : i;
|
|
1795
|
+
}), e), {});
|
|
1796
|
+
}
|
|
1797
|
+
function ei(e, t) {
|
|
1798
|
+
return t.MouseEvent !== void 0 && e instanceof t.MouseEvent;
|
|
1799
|
+
}
|
|
1800
|
+
function ti(e, t) {
|
|
1801
|
+
let n = {
|
|
1802
|
+
start: r,
|
|
1803
|
+
center: i,
|
|
1804
|
+
end: a
|
|
1805
|
+
};
|
|
1806
|
+
function r() {
|
|
1807
|
+
return 0;
|
|
1808
|
+
}
|
|
1809
|
+
function i(e) {
|
|
1810
|
+
return a(e) / 2;
|
|
1811
|
+
}
|
|
1812
|
+
function a(e) {
|
|
1813
|
+
return t - e;
|
|
1814
|
+
}
|
|
1815
|
+
function o(r, i) {
|
|
1816
|
+
return Vr(e) ? n[e](r) : e(t, r, i);
|
|
1817
|
+
}
|
|
1818
|
+
return { measure: o };
|
|
1819
|
+
}
|
|
1820
|
+
function ni() {
|
|
1821
|
+
let e = [];
|
|
1822
|
+
function t(t, n, i, a = { passive: !0 }) {
|
|
1823
|
+
let o;
|
|
1824
|
+
if ("addEventListener" in t) t.addEventListener(n, i, a), o = () => t.removeEventListener(n, i, a);
|
|
1825
|
+
else {
|
|
1826
|
+
let e = t;
|
|
1827
|
+
e.addListener(i), o = () => e.removeListener(i);
|
|
1828
|
+
}
|
|
1829
|
+
return e.push(o), r;
|
|
1830
|
+
}
|
|
1831
|
+
function n() {
|
|
1832
|
+
e = e.filter((e) => e());
|
|
1833
|
+
}
|
|
1834
|
+
let r = {
|
|
1835
|
+
add: t,
|
|
1836
|
+
clear: n
|
|
1837
|
+
};
|
|
1838
|
+
return r;
|
|
1839
|
+
}
|
|
1840
|
+
function ri(e, t, n, r) {
|
|
1841
|
+
let i = ni(), a = 1e3 / 60, o = null, s = 0, c = 0;
|
|
1842
|
+
function l() {
|
|
1843
|
+
i.add(e, "visibilitychange", () => {
|
|
1844
|
+
e.hidden && m();
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
function u() {
|
|
1848
|
+
p(), i.clear();
|
|
1849
|
+
}
|
|
1850
|
+
function d(e) {
|
|
1851
|
+
if (!c) return;
|
|
1852
|
+
o || (o = e, n(), n());
|
|
1853
|
+
let i = e - o;
|
|
1854
|
+
for (o = e, s += i; s >= a;) n(), s -= a;
|
|
1855
|
+
r(s / a), c &&= t.requestAnimationFrame(d);
|
|
1856
|
+
}
|
|
1857
|
+
function f() {
|
|
1858
|
+
c ||= t.requestAnimationFrame(d);
|
|
1859
|
+
}
|
|
1860
|
+
function p() {
|
|
1861
|
+
t.cancelAnimationFrame(c), o = null, s = 0, c = 0;
|
|
1862
|
+
}
|
|
1863
|
+
function m() {
|
|
1864
|
+
o = null, s = 0;
|
|
1865
|
+
}
|
|
1866
|
+
return {
|
|
1867
|
+
init: l,
|
|
1868
|
+
destroy: u,
|
|
1869
|
+
start: f,
|
|
1870
|
+
stop: p,
|
|
1871
|
+
update: n,
|
|
1872
|
+
render: r
|
|
1873
|
+
};
|
|
1874
|
+
}
|
|
1875
|
+
function ii(e, t) {
|
|
1876
|
+
let n = t === "rtl", r = e === "y", i = r ? "y" : "x", a = r ? "x" : "y", o = !r && n ? -1 : 1, s = u(), c = d();
|
|
1877
|
+
function l(e) {
|
|
1878
|
+
let { height: t, width: n } = e;
|
|
1879
|
+
return r ? t : n;
|
|
1880
|
+
}
|
|
1881
|
+
function u() {
|
|
1882
|
+
return r ? "top" : n ? "right" : "left";
|
|
1883
|
+
}
|
|
1884
|
+
function d() {
|
|
1885
|
+
return r ? "bottom" : n ? "left" : "right";
|
|
1886
|
+
}
|
|
1887
|
+
function f(e) {
|
|
1888
|
+
return e * o;
|
|
1889
|
+
}
|
|
1890
|
+
return {
|
|
1891
|
+
scroll: i,
|
|
1892
|
+
cross: a,
|
|
1893
|
+
startEdge: s,
|
|
1894
|
+
endEdge: c,
|
|
1895
|
+
measureSize: l,
|
|
1896
|
+
direction: f
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
function $(e = 0, t = 0) {
|
|
1900
|
+
let n = Z(e - t);
|
|
1901
|
+
function r(t) {
|
|
1902
|
+
return t < e;
|
|
1903
|
+
}
|
|
1904
|
+
function i(e) {
|
|
1905
|
+
return e > t;
|
|
1906
|
+
}
|
|
1907
|
+
function a(e) {
|
|
1908
|
+
return r(e) || i(e);
|
|
1909
|
+
}
|
|
1910
|
+
function o(n) {
|
|
1911
|
+
return a(n) ? r(n) ? e : t : n;
|
|
1912
|
+
}
|
|
1913
|
+
function s(e) {
|
|
1914
|
+
return n ? e - n * Math.ceil((e - t) / n) : e;
|
|
1915
|
+
}
|
|
1916
|
+
return {
|
|
1917
|
+
length: n,
|
|
1918
|
+
max: t,
|
|
1919
|
+
min: e,
|
|
1920
|
+
constrain: o,
|
|
1921
|
+
reachedAny: a,
|
|
1922
|
+
reachedMax: i,
|
|
1923
|
+
reachedMin: r,
|
|
1924
|
+
removeOffset: s
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
function ai(e, t, n) {
|
|
1928
|
+
let { constrain: r } = $(0, e), i = e + 1, a = o(t);
|
|
1929
|
+
function o(e) {
|
|
1930
|
+
return n ? Z((i + e) % i) : r(e);
|
|
1931
|
+
}
|
|
1932
|
+
function s() {
|
|
1933
|
+
return a;
|
|
1934
|
+
}
|
|
1935
|
+
function c(e) {
|
|
1936
|
+
return a = o(e), d;
|
|
1937
|
+
}
|
|
1938
|
+
function l(e) {
|
|
1939
|
+
return u().set(s() + e);
|
|
1940
|
+
}
|
|
1941
|
+
function u() {
|
|
1942
|
+
return ai(e, s(), n);
|
|
1943
|
+
}
|
|
1944
|
+
let d = {
|
|
1945
|
+
get: s,
|
|
1946
|
+
set: c,
|
|
1947
|
+
add: l,
|
|
1948
|
+
clone: u
|
|
1949
|
+
};
|
|
1950
|
+
return d;
|
|
1951
|
+
}
|
|
1952
|
+
function oi(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
1953
|
+
let { cross: y, direction: b } = e, x = [
|
|
1954
|
+
"INPUT",
|
|
1955
|
+
"SELECT",
|
|
1956
|
+
"TEXTAREA"
|
|
1957
|
+
], S = { passive: !1 }, C = ni(), w = ni(), T = $(50, 225).constrain(p.measure(20)), E = {
|
|
1958
|
+
mouse: 300,
|
|
1959
|
+
touch: 400
|
|
1960
|
+
}, D = {
|
|
1961
|
+
mouse: 500,
|
|
1962
|
+
touch: 600
|
|
1963
|
+
}, O = m ? 43 : 25, ee = !1, k = 0, te = 0, A = !1, j = !1, ne = !1, M = !1;
|
|
1964
|
+
function re(e) {
|
|
1965
|
+
if (!v) return;
|
|
1966
|
+
function n(t) {
|
|
1967
|
+
(Hr(v) || v(e, t)) && R(t);
|
|
1968
|
+
}
|
|
1969
|
+
let r = t;
|
|
1970
|
+
C.add(r, "dragstart", (e) => e.preventDefault(), S).add(r, "touchmove", () => void 0, S).add(r, "touchend", () => void 0).add(r, "touchstart", n).add(r, "mousedown", n).add(r, "touchcancel", B).add(r, "contextmenu", B).add(r, "click", V, !0);
|
|
1971
|
+
}
|
|
1972
|
+
function N() {
|
|
1973
|
+
C.clear(), w.clear();
|
|
1974
|
+
}
|
|
1975
|
+
function P() {
|
|
1976
|
+
let e = M ? n : t;
|
|
1977
|
+
w.add(e, "touchmove", z, S).add(e, "touchend", B).add(e, "mousemove", z, S).add(e, "mouseup", B);
|
|
1978
|
+
}
|
|
1979
|
+
function F(e) {
|
|
1980
|
+
let t = e.nodeName || "";
|
|
1981
|
+
return x.includes(t);
|
|
1982
|
+
}
|
|
1983
|
+
function I() {
|
|
1984
|
+
return (m ? D : E)[M ? "mouse" : "touch"];
|
|
1985
|
+
}
|
|
1986
|
+
function L(e, t) {
|
|
1987
|
+
let n = d.add(Wr(e) * -1), r = u.byDistance(e, !m).distance;
|
|
1988
|
+
return m || Z(e) < T ? r : g && t ? r * .5 : u.byIndex(n.get(), 0).distance;
|
|
1989
|
+
}
|
|
1990
|
+
function R(e) {
|
|
1991
|
+
let t = ei(e, r);
|
|
1992
|
+
M = t, ne = m && t && !e.buttons && ee, ee = Gr(i.get(), o.get()) >= 2, !(t && e.button !== 0) && (F(e.target) || (A = !0, a.pointerDown(e), l.useFriction(0).useDuration(0), i.set(o), P(), k = a.readPoint(e), te = a.readPoint(e, y), f.emit("pointerDown")));
|
|
1993
|
+
}
|
|
1994
|
+
function z(e) {
|
|
1995
|
+
if (!ei(e, r) && e.touches.length >= 2) return B(e);
|
|
1996
|
+
let t = a.readPoint(e), n = a.readPoint(e, y), o = Gr(t, k), c = Gr(n, te);
|
|
1997
|
+
if (!j && !M && (!e.cancelable || (j = o > c, !j))) return B(e);
|
|
1998
|
+
let u = a.pointerMove(e);
|
|
1999
|
+
o > h && (ne = !0), l.useFriction(.3).useDuration(.75), s.start(), i.add(b(u)), e.preventDefault();
|
|
2000
|
+
}
|
|
2001
|
+
function B(e) {
|
|
2002
|
+
let t = u.byDistance(0, !1).index !== d.get(), n = a.pointerUp(e) * I(), r = L(b(n), t), i = Kr(n, r), o = O - 10 * i, s = _ + i / 50;
|
|
2003
|
+
j = !1, A = !1, w.clear(), l.useDuration(o).useFriction(s), c.distance(r, !m), M = !1, f.emit("pointerUp");
|
|
2004
|
+
}
|
|
2005
|
+
function V(e) {
|
|
2006
|
+
ne &&= (e.stopPropagation(), e.preventDefault(), !1);
|
|
2007
|
+
}
|
|
2008
|
+
function H() {
|
|
2009
|
+
return A;
|
|
2010
|
+
}
|
|
2011
|
+
return {
|
|
2012
|
+
init: re,
|
|
2013
|
+
destroy: N,
|
|
2014
|
+
pointerDown: H
|
|
2015
|
+
};
|
|
2016
|
+
}
|
|
2017
|
+
function si(e, t) {
|
|
2018
|
+
let n, r;
|
|
2019
|
+
function i(e) {
|
|
2020
|
+
return e.timeStamp;
|
|
2021
|
+
}
|
|
2022
|
+
function a(n, r) {
|
|
2023
|
+
let i = `client${(r || e.scroll) === "x" ? "X" : "Y"}`;
|
|
2024
|
+
return (ei(n, t) ? n : n.touches[0])[i];
|
|
2025
|
+
}
|
|
2026
|
+
function o(e) {
|
|
2027
|
+
return n = e, r = e, a(e);
|
|
2028
|
+
}
|
|
2029
|
+
function s(e) {
|
|
2030
|
+
let t = a(e) - a(r), o = i(e) - i(n) > 170;
|
|
2031
|
+
return r = e, o && (n = e), t;
|
|
2032
|
+
}
|
|
2033
|
+
function c(e) {
|
|
2034
|
+
if (!n || !r) return 0;
|
|
2035
|
+
let t = a(r) - a(n), o = i(e) - i(n), s = i(e) - i(r) > 170, c = t / o;
|
|
2036
|
+
return o && !s && Z(c) > .1 ? c : 0;
|
|
2037
|
+
}
|
|
2038
|
+
return {
|
|
2039
|
+
pointerDown: o,
|
|
2040
|
+
pointerMove: s,
|
|
2041
|
+
pointerUp: c,
|
|
2042
|
+
readPoint: a
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
function ci() {
|
|
2046
|
+
function e(e) {
|
|
2047
|
+
let { offsetTop: t, offsetLeft: n, offsetWidth: r, offsetHeight: i } = e;
|
|
2048
|
+
return {
|
|
2049
|
+
top: t,
|
|
2050
|
+
right: n + r,
|
|
2051
|
+
bottom: t + i,
|
|
2052
|
+
left: n,
|
|
2053
|
+
width: r,
|
|
2054
|
+
height: i
|
|
2055
|
+
};
|
|
2056
|
+
}
|
|
2057
|
+
return { measure: e };
|
|
2058
|
+
}
|
|
2059
|
+
function li(e) {
|
|
2060
|
+
function t(t) {
|
|
2061
|
+
return t / 100 * e;
|
|
2062
|
+
}
|
|
2063
|
+
return { measure: t };
|
|
2064
|
+
}
|
|
2065
|
+
function ui(e, t, n, r, i, a, o) {
|
|
2066
|
+
let s = [e].concat(r), c, l, u = [], d = !1;
|
|
2067
|
+
function f(e) {
|
|
2068
|
+
return i.measureSize(o.measure(e));
|
|
2069
|
+
}
|
|
2070
|
+
function p(i) {
|
|
2071
|
+
if (!a) return;
|
|
2072
|
+
l = f(e), u = r.map(f);
|
|
2073
|
+
function o(n) {
|
|
2074
|
+
for (let a of n) {
|
|
2075
|
+
if (d) return;
|
|
2076
|
+
let n = a.target === e, o = r.indexOf(a.target), s = n ? l : u[o];
|
|
2077
|
+
if (Z(f(n ? e : r[o]) - s) >= .5) {
|
|
2078
|
+
i.reInit(), t.emit("resize");
|
|
2079
|
+
break;
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
c = new ResizeObserver((e) => {
|
|
2084
|
+
(Hr(a) || a(i, e)) && o(e);
|
|
2085
|
+
}), n.requestAnimationFrame(() => {
|
|
2086
|
+
s.forEach((e) => c.observe(e));
|
|
2087
|
+
});
|
|
2088
|
+
}
|
|
2089
|
+
function m() {
|
|
2090
|
+
d = !0, c && c.disconnect();
|
|
2091
|
+
}
|
|
2092
|
+
return {
|
|
2093
|
+
init: p,
|
|
2094
|
+
destroy: m
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
function di(e, t, n, r, i, a) {
|
|
2098
|
+
let o = 0, s = 0, c = i, l = a, u = e.get(), d = 0;
|
|
2099
|
+
function f() {
|
|
2100
|
+
let t = r.get() - e.get(), i = !c, a = 0;
|
|
2101
|
+
return i ? (o = 0, n.set(r), e.set(r), a = t) : (n.set(e), o += t / c, o *= l, u += o, e.add(o), a = u - d), s = Wr(a), d = u, x;
|
|
2102
|
+
}
|
|
2103
|
+
function p() {
|
|
2104
|
+
return Z(r.get() - t.get()) < .001;
|
|
2105
|
+
}
|
|
2106
|
+
function m() {
|
|
2107
|
+
return c;
|
|
2108
|
+
}
|
|
2109
|
+
function h() {
|
|
2110
|
+
return s;
|
|
2111
|
+
}
|
|
2112
|
+
function g() {
|
|
2113
|
+
return o;
|
|
2114
|
+
}
|
|
2115
|
+
function _() {
|
|
2116
|
+
return y(i);
|
|
2117
|
+
}
|
|
2118
|
+
function v() {
|
|
2119
|
+
return b(a);
|
|
2120
|
+
}
|
|
2121
|
+
function y(e) {
|
|
2122
|
+
return c = e, x;
|
|
2123
|
+
}
|
|
2124
|
+
function b(e) {
|
|
2125
|
+
return l = e, x;
|
|
2126
|
+
}
|
|
2127
|
+
let x = {
|
|
2128
|
+
direction: h,
|
|
2129
|
+
duration: m,
|
|
2130
|
+
velocity: g,
|
|
2131
|
+
seek: f,
|
|
2132
|
+
settled: p,
|
|
2133
|
+
useBaseFriction: v,
|
|
2134
|
+
useBaseDuration: _,
|
|
2135
|
+
useFriction: b,
|
|
2136
|
+
useDuration: y
|
|
2137
|
+
};
|
|
2138
|
+
return x;
|
|
2139
|
+
}
|
|
2140
|
+
function fi(e, t, n, r, i) {
|
|
2141
|
+
let a = i.measure(10), o = i.measure(50), s = $(.1, .99), c = !1;
|
|
2142
|
+
function l() {
|
|
2143
|
+
return !(c || !e.reachedAny(n.get()) || !e.reachedAny(t.get()));
|
|
2144
|
+
}
|
|
2145
|
+
function u(i) {
|
|
2146
|
+
if (!l()) return;
|
|
2147
|
+
let c = Z(e[e.reachedMin(t.get()) ? "min" : "max"] - t.get()), u = n.get() - t.get(), d = s.constrain(c / o);
|
|
2148
|
+
n.subtract(u * d), !i && Z(u) < a && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
2149
|
+
}
|
|
2150
|
+
function d(e) {
|
|
2151
|
+
c = !e;
|
|
2152
|
+
}
|
|
2153
|
+
return {
|
|
2154
|
+
shouldConstrain: l,
|
|
2155
|
+
constrain: u,
|
|
2156
|
+
toggleActive: d
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
function pi(e, t, n, r, i) {
|
|
2160
|
+
let a = $(-t + e, 0), o = d(), s = u(), c = f();
|
|
2161
|
+
function l(e, t) {
|
|
2162
|
+
return Gr(e, t) <= 1;
|
|
2163
|
+
}
|
|
2164
|
+
function u() {
|
|
2165
|
+
let e = o[0], t = Q(o);
|
|
2166
|
+
return $(o.lastIndexOf(e), o.indexOf(t) + 1);
|
|
2167
|
+
}
|
|
2168
|
+
function d() {
|
|
2169
|
+
return n.map((e, t) => {
|
|
2170
|
+
let { min: r, max: i } = a, o = a.constrain(e), s = !t, c = Xr(n, t);
|
|
2171
|
+
return s ? i : c || l(r, o) ? r : l(i, o) ? i : o;
|
|
2172
|
+
}).map((e) => parseFloat(e.toFixed(3)));
|
|
2173
|
+
}
|
|
2174
|
+
function f() {
|
|
2175
|
+
if (t <= e + i) return [a.max];
|
|
2176
|
+
if (r === "keepSnaps") return o;
|
|
2177
|
+
let { min: n, max: c } = s;
|
|
2178
|
+
return o.slice(n, c);
|
|
2179
|
+
}
|
|
2180
|
+
return {
|
|
2181
|
+
snapsContained: c,
|
|
2182
|
+
scrollContainLimit: s
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
function mi(e, t, n) {
|
|
2186
|
+
let r = t[0];
|
|
2187
|
+
return { limit: $(n ? r - e : Q(t), r) };
|
|
2188
|
+
}
|
|
2189
|
+
function hi(e, t, n, r) {
|
|
2190
|
+
let i = .1, { reachedMin: a, reachedMax: o } = $(t.min + i, t.max + i);
|
|
2191
|
+
function s(e) {
|
|
2192
|
+
return e === 1 ? o(n.get()) : e === -1 ? a(n.get()) : !1;
|
|
2193
|
+
}
|
|
2194
|
+
function c(t) {
|
|
2195
|
+
if (!s(t)) return;
|
|
2196
|
+
let n = t * -1 * e;
|
|
2197
|
+
r.forEach((e) => e.add(n));
|
|
2198
|
+
}
|
|
2199
|
+
return { loop: c };
|
|
2200
|
+
}
|
|
2201
|
+
function gi(e) {
|
|
2202
|
+
let { max: t, length: n } = e;
|
|
2203
|
+
function r(e) {
|
|
2204
|
+
let r = e - t;
|
|
2205
|
+
return n ? r / -n : 0;
|
|
2206
|
+
}
|
|
2207
|
+
return { get: r };
|
|
2208
|
+
}
|
|
2209
|
+
function _i(e, t, n, r, i) {
|
|
2210
|
+
let { startEdge: a, endEdge: o } = e, { groupSlides: s } = i, c = d().map(t.measure), l = f(), u = p();
|
|
2211
|
+
function d() {
|
|
2212
|
+
return s(r).map((e) => Q(e)[o] - e[0][a]).map(Z);
|
|
2213
|
+
}
|
|
2214
|
+
function f() {
|
|
2215
|
+
return r.map((e) => n[a] - e[a]).map((e) => -Z(e));
|
|
2216
|
+
}
|
|
2217
|
+
function p() {
|
|
2218
|
+
return s(l).map((e) => e[0]).map((e, t) => e + c[t]);
|
|
2219
|
+
}
|
|
2220
|
+
return {
|
|
2221
|
+
snaps: l,
|
|
2222
|
+
snapsAligned: u
|
|
2223
|
+
};
|
|
2224
|
+
}
|
|
2225
|
+
function vi(e, t, n, r, i, a) {
|
|
2226
|
+
let { groupSlides: o } = i, { min: s, max: c } = r, l = u();
|
|
2227
|
+
function u() {
|
|
2228
|
+
let r = o(a), i = !e || t === "keepSnaps";
|
|
2229
|
+
return n.length === 1 ? [a] : i ? r : r.slice(s, c).map((e, t, n) => {
|
|
2230
|
+
let r = !t, i = Xr(n, t);
|
|
2231
|
+
return r ? Zr(Q(n[0]) + 1) : i ? Zr(Yr(a) - Q(n)[0] + 1, Q(n)[0]) : e;
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2234
|
+
return { slideRegistry: l };
|
|
2235
|
+
}
|
|
2236
|
+
function yi(e, t, n, r, i) {
|
|
2237
|
+
let { reachedAny: a, removeOffset: o, constrain: s } = r;
|
|
2238
|
+
function c(e) {
|
|
2239
|
+
return e.concat().sort((e, t) => Z(e) - Z(t))[0];
|
|
2240
|
+
}
|
|
2241
|
+
function l(n) {
|
|
2242
|
+
let r = e ? o(n) : s(n), { index: i } = t.map((e, t) => ({
|
|
2243
|
+
diff: u(e - r, 0),
|
|
2244
|
+
index: t
|
|
2245
|
+
})).sort((e, t) => Z(e.diff) - Z(t.diff))[0];
|
|
2246
|
+
return {
|
|
2247
|
+
index: i,
|
|
2248
|
+
distance: r
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
function u(t, r) {
|
|
2252
|
+
let i = [
|
|
2253
|
+
t,
|
|
2254
|
+
t + n,
|
|
2255
|
+
t - n
|
|
2256
|
+
];
|
|
2257
|
+
if (!e) return t;
|
|
2258
|
+
if (!r) return c(i);
|
|
2259
|
+
let a = i.filter((e) => Wr(e) === r);
|
|
2260
|
+
return a.length ? c(a) : Q(i) - n;
|
|
2261
|
+
}
|
|
2262
|
+
function d(e, n) {
|
|
2263
|
+
return {
|
|
2264
|
+
index: e,
|
|
2265
|
+
distance: u(t[e] - i.get(), n)
|
|
2266
|
+
};
|
|
2267
|
+
}
|
|
2268
|
+
function f(n, r) {
|
|
2269
|
+
let o = i.get() + n, { index: s, distance: c } = l(o), d = !e && a(o);
|
|
2270
|
+
return !r || d ? {
|
|
2271
|
+
index: s,
|
|
2272
|
+
distance: n
|
|
2273
|
+
} : {
|
|
2274
|
+
index: s,
|
|
2275
|
+
distance: n + u(t[s] - c, 0)
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
return {
|
|
2279
|
+
byDistance: f,
|
|
2280
|
+
byIndex: d,
|
|
2281
|
+
shortcut: u
|
|
2282
|
+
};
|
|
2283
|
+
}
|
|
2284
|
+
function bi(e, t, n, r, i, a, o) {
|
|
2285
|
+
function s(i) {
|
|
2286
|
+
let s = i.distance, c = i.index !== t.get();
|
|
2287
|
+
a.add(s), s && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), c && (n.set(t.get()), t.set(i.index), o.emit("select"));
|
|
2288
|
+
}
|
|
2289
|
+
function c(e, t) {
|
|
2290
|
+
s(i.byDistance(e, t));
|
|
2291
|
+
}
|
|
2292
|
+
function l(e, n) {
|
|
2293
|
+
let r = t.clone().set(e);
|
|
2294
|
+
s(i.byIndex(r.get(), n));
|
|
2295
|
+
}
|
|
2296
|
+
return {
|
|
2297
|
+
distance: c,
|
|
2298
|
+
index: l
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
function xi(e, t, n, r, i, a, o, s) {
|
|
2302
|
+
let c = {
|
|
2303
|
+
passive: !0,
|
|
2304
|
+
capture: !0
|
|
2305
|
+
}, l = 0;
|
|
2306
|
+
function u(u) {
|
|
2307
|
+
if (!s) return;
|
|
2308
|
+
function f(t) {
|
|
2309
|
+
if ((/* @__PURE__ */ new Date()).getTime() - l > 10) return;
|
|
2310
|
+
o.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
2311
|
+
let a = n.findIndex((e) => e.includes(t));
|
|
2312
|
+
Br(a) && (i.useDuration(0), r.index(a, 0), o.emit("slideFocus"));
|
|
2313
|
+
}
|
|
2314
|
+
a.add(document, "keydown", d, !1), t.forEach((e, t) => {
|
|
2315
|
+
a.add(e, "focus", (e) => {
|
|
2316
|
+
(Hr(s) || s(u, e)) && f(t);
|
|
2317
|
+
}, c);
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
function d(e) {
|
|
2321
|
+
e.code === "Tab" && (l = (/* @__PURE__ */ new Date()).getTime());
|
|
2322
|
+
}
|
|
2323
|
+
return { init: u };
|
|
2324
|
+
}
|
|
2325
|
+
function Si(e) {
|
|
2326
|
+
let t = e;
|
|
2327
|
+
function n() {
|
|
2328
|
+
return t;
|
|
2329
|
+
}
|
|
2330
|
+
function r(e) {
|
|
2331
|
+
t = o(e);
|
|
2332
|
+
}
|
|
2333
|
+
function i(e) {
|
|
2334
|
+
t += o(e);
|
|
2335
|
+
}
|
|
2336
|
+
function a(e) {
|
|
2337
|
+
t -= o(e);
|
|
2338
|
+
}
|
|
2339
|
+
function o(e) {
|
|
2340
|
+
return Br(e) ? e : e.get();
|
|
2341
|
+
}
|
|
2342
|
+
return {
|
|
2343
|
+
get: n,
|
|
2344
|
+
set: r,
|
|
2345
|
+
add: i,
|
|
2346
|
+
subtract: a
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
function Ci(e, t) {
|
|
2350
|
+
let n = e.scroll === "x" ? o : s, r = t.style, i = null, a = !1;
|
|
2351
|
+
function o(e) {
|
|
2352
|
+
return `translate3d(${e}px,0px,0px)`;
|
|
2353
|
+
}
|
|
2354
|
+
function s(e) {
|
|
2355
|
+
return `translate3d(0px,${e}px,0px)`;
|
|
2356
|
+
}
|
|
2357
|
+
function c(t) {
|
|
2358
|
+
if (a) return;
|
|
2359
|
+
let o = qr(e.direction(t));
|
|
2360
|
+
o !== i && (r.transform = n(o), i = o);
|
|
2361
|
+
}
|
|
2362
|
+
function l(e) {
|
|
2363
|
+
a = !e;
|
|
2364
|
+
}
|
|
2365
|
+
function u() {
|
|
2366
|
+
a || (r.transform = "", t.getAttribute("style") || t.removeAttribute("style"));
|
|
2367
|
+
}
|
|
2368
|
+
return {
|
|
2369
|
+
clear: u,
|
|
2370
|
+
to: c,
|
|
2371
|
+
toggleActive: l
|
|
2372
|
+
};
|
|
2373
|
+
}
|
|
2374
|
+
function wi(e, t, n, r, i, a, o, s, c) {
|
|
2375
|
+
let l = .5, u = Jr(i), d = Jr(i).reverse(), f = _().concat(v());
|
|
2376
|
+
function p(e, t) {
|
|
2377
|
+
return e.reduce((e, t) => e - i[t], t);
|
|
2378
|
+
}
|
|
2379
|
+
function m(e, t) {
|
|
2380
|
+
return e.reduce((e, n) => p(e, t) > 0 ? e.concat([n]) : e, []);
|
|
2381
|
+
}
|
|
2382
|
+
function h(e) {
|
|
2383
|
+
return a.map((n, i) => ({
|
|
2384
|
+
start: n - r[i] + l + e,
|
|
2385
|
+
end: n + t - l + e
|
|
2386
|
+
}));
|
|
2387
|
+
}
|
|
2388
|
+
function g(t, r, i) {
|
|
2389
|
+
let a = h(r);
|
|
2390
|
+
return t.map((t) => {
|
|
2391
|
+
let r = i ? 0 : -n, o = i ? n : 0, l = i ? "end" : "start", u = a[t][l];
|
|
2392
|
+
return {
|
|
2393
|
+
index: t,
|
|
2394
|
+
loopPoint: u,
|
|
2395
|
+
slideLocation: Si(-1),
|
|
2396
|
+
translate: Ci(e, c[t]),
|
|
2397
|
+
target: () => s.get() > u ? r : o
|
|
2398
|
+
};
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
function _() {
|
|
2402
|
+
let e = o[0];
|
|
2403
|
+
return g(m(d, e), n, !1);
|
|
2404
|
+
}
|
|
2405
|
+
function v() {
|
|
2406
|
+
return g(m(u, t - o[0] - 1), -n, !0);
|
|
2407
|
+
}
|
|
2408
|
+
function y() {
|
|
2409
|
+
return f.every(({ index: e }) => p(u.filter((t) => t !== e), t) <= .1);
|
|
2410
|
+
}
|
|
2411
|
+
function b() {
|
|
2412
|
+
f.forEach((e) => {
|
|
2413
|
+
let { target: t, translate: n, slideLocation: r } = e, i = t();
|
|
2414
|
+
i !== r.get() && (n.to(i), r.set(i));
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
function x() {
|
|
2418
|
+
f.forEach((e) => e.translate.clear());
|
|
2419
|
+
}
|
|
2420
|
+
return {
|
|
2421
|
+
canLoop: y,
|
|
2422
|
+
clear: x,
|
|
2423
|
+
loop: b,
|
|
2424
|
+
loopPoints: f
|
|
2425
|
+
};
|
|
2426
|
+
}
|
|
2427
|
+
function Ti(e, t, n) {
|
|
2428
|
+
let r, i = !1;
|
|
2429
|
+
function a(a) {
|
|
2430
|
+
if (!n) return;
|
|
2431
|
+
function o(e) {
|
|
2432
|
+
for (let n of e) if (n.type === "childList") {
|
|
2433
|
+
a.reInit(), t.emit("slidesChanged");
|
|
2434
|
+
break;
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
r = new MutationObserver((e) => {
|
|
2438
|
+
i || (Hr(n) || n(a, e)) && o(e);
|
|
2439
|
+
}), r.observe(e, { childList: !0 });
|
|
2440
|
+
}
|
|
2441
|
+
function o() {
|
|
2442
|
+
r && r.disconnect(), i = !0;
|
|
2443
|
+
}
|
|
2444
|
+
return {
|
|
2445
|
+
init: a,
|
|
2446
|
+
destroy: o
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
function Ei(e, t, n, r) {
|
|
2450
|
+
let i = {}, a = null, o = null, s, c = !1;
|
|
2451
|
+
function l() {
|
|
2452
|
+
s = new IntersectionObserver((e) => {
|
|
2453
|
+
c || (e.forEach((e) => {
|
|
2454
|
+
let n = t.indexOf(e.target);
|
|
2455
|
+
i[n] = e;
|
|
2456
|
+
}), a = null, o = null, n.emit("slidesInView"));
|
|
2457
|
+
}, {
|
|
2458
|
+
root: e.parentElement,
|
|
2459
|
+
threshold: r
|
|
2460
|
+
}), t.forEach((e) => s.observe(e));
|
|
2461
|
+
}
|
|
2462
|
+
function u() {
|
|
2463
|
+
s && s.disconnect(), c = !0;
|
|
2464
|
+
}
|
|
2465
|
+
function d(e) {
|
|
2466
|
+
return Qr(i).reduce((t, n) => {
|
|
2467
|
+
let r = parseInt(n), { isIntersecting: a } = i[r];
|
|
2468
|
+
return (e && a || !e && !a) && t.push(r), t;
|
|
2469
|
+
}, []);
|
|
2470
|
+
}
|
|
2471
|
+
function f(e = !0) {
|
|
2472
|
+
if (e && a) return a;
|
|
2473
|
+
if (!e && o) return o;
|
|
2474
|
+
let t = d(e);
|
|
2475
|
+
return e && (a = t), e || (o = t), t;
|
|
2476
|
+
}
|
|
2477
|
+
return {
|
|
2478
|
+
init: l,
|
|
2479
|
+
destroy: u,
|
|
2480
|
+
get: f
|
|
2481
|
+
};
|
|
2482
|
+
}
|
|
2483
|
+
function Di(e, t, n, r, i, a) {
|
|
2484
|
+
let { measureSize: o, startEdge: s, endEdge: c } = e, l = n[0] && i, u = m(), d = h(), f = n.map(o), p = g();
|
|
2485
|
+
function m() {
|
|
2486
|
+
if (!l) return 0;
|
|
2487
|
+
let e = n[0];
|
|
2488
|
+
return Z(t[s] - e[s]);
|
|
2489
|
+
}
|
|
2490
|
+
function h() {
|
|
2491
|
+
if (!l) return 0;
|
|
2492
|
+
let e = a.getComputedStyle(Q(r));
|
|
2493
|
+
return parseFloat(e.getPropertyValue(`margin-${c}`));
|
|
2494
|
+
}
|
|
2495
|
+
function g() {
|
|
2496
|
+
return n.map((e, t, n) => {
|
|
2497
|
+
let r = !t, i = Xr(n, t);
|
|
2498
|
+
return r ? f[t] + u : i ? f[t] + d : n[t + 1][s] - e[s];
|
|
2499
|
+
}).map(Z);
|
|
2500
|
+
}
|
|
2501
|
+
return {
|
|
2502
|
+
slideSizes: f,
|
|
2503
|
+
slideSizesWithGaps: p,
|
|
2504
|
+
startGap: u,
|
|
2505
|
+
endGap: d
|
|
2506
|
+
};
|
|
2507
|
+
}
|
|
2508
|
+
function Oi(e, t, n, r, i, a, o, s, c) {
|
|
2509
|
+
let { startEdge: l, endEdge: u, direction: d } = e, f = Br(n);
|
|
2510
|
+
function p(e, t) {
|
|
2511
|
+
return Jr(e).filter((e) => e % t === 0).map((n) => e.slice(n, n + t));
|
|
2512
|
+
}
|
|
2513
|
+
function m(e) {
|
|
2514
|
+
return e.length ? Jr(e).reduce((n, f, p) => {
|
|
2515
|
+
let m = Q(n) || 0, h = m === 0, g = f === Yr(e), _ = i[l] - a[m][l], v = i[l] - a[f][u], y = !r && h ? d(o) : 0, b = Z(v - (!r && g ? d(s) : 0) - (_ + y));
|
|
2516
|
+
return p && b > t + c && n.push(f), g && n.push(e.length), n;
|
|
2517
|
+
}, []).map((t, n, r) => {
|
|
2518
|
+
let i = Math.max(r[n - 1] || 0);
|
|
2519
|
+
return e.slice(i, t);
|
|
2520
|
+
}) : [];
|
|
2521
|
+
}
|
|
2522
|
+
function h(e) {
|
|
2523
|
+
return f ? p(e, n) : m(e);
|
|
2524
|
+
}
|
|
2525
|
+
return { groupSlides: h };
|
|
2526
|
+
}
|
|
2527
|
+
function ki(e, t, n, r, i, a, o) {
|
|
2528
|
+
let { align: s, axis: c, direction: l, startIndex: u, loop: d, duration: f, dragFree: p, dragThreshold: m, inViewThreshold: h, slidesToScroll: g, skipSnaps: _, containScroll: v, watchResize: y, watchSlides: b, watchDrag: x, watchFocus: S } = a, C = ci(), w = C.measure(t), T = n.map(C.measure), E = ii(c, l), D = E.measureSize(w), O = li(D), ee = ti(s, D), k = !d && !!v, { slideSizes: te, slideSizesWithGaps: A, startGap: j, endGap: ne } = Di(E, w, T, n, d || !!v, i), M = Oi(E, D, g, d, w, T, j, ne, 2), { snaps: re, snapsAligned: N } = _i(E, ee, w, T, M), P = -Q(re) + Q(A), { snapsContained: F, scrollContainLimit: I } = pi(D, P, N, v, 2), L = k ? F : N, { limit: R } = mi(P, L, d), z = ai(Yr(L), u, d), B = z.clone(), V = Jr(n), H = ({ dragHandler: e, scrollBody: t, scrollBounds: n, options: { loop: r } }) => {
|
|
2529
|
+
r || n.constrain(e.pointerDown()), t.seek();
|
|
2530
|
+
}, ie = ({ scrollBody: e, translate: t, location: n, offsetLocation: r, previousLocation: i, scrollLooper: a, slideLooper: o, dragHandler: s, animation: c, eventHandler: l, scrollBounds: u, options: { loop: d } }, f) => {
|
|
2531
|
+
let p = e.settled(), m = !u.shouldConstrain(), h = d ? p : p && m, g = h && !s.pointerDown();
|
|
2532
|
+
g && c.stop();
|
|
2533
|
+
let _ = n.get() * f + i.get() * (1 - f);
|
|
2534
|
+
r.set(_), d && (a.loop(e.direction()), o.loop()), t.to(r.get()), g && l.emit("settle"), h || l.emit("scroll");
|
|
2535
|
+
}, ae = ri(r, i, () => H(me), (e) => ie(me, e)), oe = .68, U = L[z.get()], W = Si(U), se = Si(U), G = Si(U), K = Si(U), q = di(W, G, se, K, f, oe), ce = yi(d, L, P, R, K), J = bi(ae, z, B, q, ce, K, o), le = gi(R), ue = ni(), de = Ei(t, n, o, h), { slideRegistry: fe } = vi(k, v, L, I, M, V), pe = xi(e, n, fe, J, q, ue, o, S), me = {
|
|
2536
|
+
ownerDocument: r,
|
|
2537
|
+
ownerWindow: i,
|
|
2538
|
+
eventHandler: o,
|
|
2539
|
+
containerRect: w,
|
|
2540
|
+
slideRects: T,
|
|
2541
|
+
animation: ae,
|
|
2542
|
+
axis: E,
|
|
2543
|
+
dragHandler: oi(E, e, r, i, K, si(E, i), W, ae, J, q, ce, z, o, O, p, m, _, oe, x),
|
|
2544
|
+
eventStore: ue,
|
|
2545
|
+
percentOfView: O,
|
|
2546
|
+
index: z,
|
|
2547
|
+
indexPrevious: B,
|
|
2548
|
+
limit: R,
|
|
2549
|
+
location: W,
|
|
2550
|
+
offsetLocation: G,
|
|
2551
|
+
previousLocation: se,
|
|
2552
|
+
options: a,
|
|
2553
|
+
resizeHandler: ui(t, o, i, n, E, y, C),
|
|
2554
|
+
scrollBody: q,
|
|
2555
|
+
scrollBounds: fi(R, G, K, q, O),
|
|
2556
|
+
scrollLooper: hi(P, R, G, [
|
|
2557
|
+
W,
|
|
2558
|
+
G,
|
|
2559
|
+
se,
|
|
2560
|
+
K
|
|
2561
|
+
]),
|
|
2562
|
+
scrollProgress: le,
|
|
2563
|
+
scrollSnapList: L.map(le.get),
|
|
2564
|
+
scrollSnaps: L,
|
|
2565
|
+
scrollTarget: ce,
|
|
2566
|
+
scrollTo: J,
|
|
2567
|
+
slideLooper: wi(E, D, P, te, A, re, L, G, n),
|
|
2568
|
+
slideFocus: pe,
|
|
2569
|
+
slidesHandler: Ti(t, o, b),
|
|
2570
|
+
slidesInView: de,
|
|
2571
|
+
slideIndexes: V,
|
|
2572
|
+
slideRegistry: fe,
|
|
2573
|
+
slidesToScroll: M,
|
|
2574
|
+
target: K,
|
|
2575
|
+
translate: Ci(E, t)
|
|
2576
|
+
};
|
|
2577
|
+
return me;
|
|
2578
|
+
}
|
|
2579
|
+
function Ai() {
|
|
2580
|
+
let e = {}, t;
|
|
2581
|
+
function n(e) {
|
|
2582
|
+
t = e;
|
|
2583
|
+
}
|
|
2584
|
+
function r(t) {
|
|
2585
|
+
return e[t] || [];
|
|
2586
|
+
}
|
|
2587
|
+
function i(e) {
|
|
2588
|
+
return r(e).forEach((n) => n(t, e)), c;
|
|
2589
|
+
}
|
|
2590
|
+
function a(t, n) {
|
|
2591
|
+
return e[t] = r(t).concat([n]), c;
|
|
2592
|
+
}
|
|
2593
|
+
function o(t, n) {
|
|
2594
|
+
return e[t] = r(t).filter((e) => e !== n), c;
|
|
2595
|
+
}
|
|
2596
|
+
function s() {
|
|
2597
|
+
e = {};
|
|
2598
|
+
}
|
|
2599
|
+
let c = {
|
|
2600
|
+
init: n,
|
|
2601
|
+
emit: i,
|
|
2602
|
+
off: o,
|
|
2603
|
+
on: a,
|
|
2604
|
+
clear: s
|
|
2605
|
+
};
|
|
2606
|
+
return c;
|
|
2607
|
+
}
|
|
2608
|
+
var ji = {
|
|
2609
|
+
align: "center",
|
|
2610
|
+
axis: "x",
|
|
2611
|
+
container: null,
|
|
2612
|
+
slides: null,
|
|
2613
|
+
containScroll: "trimSnaps",
|
|
2614
|
+
direction: "ltr",
|
|
2615
|
+
slidesToScroll: 1,
|
|
2616
|
+
inViewThreshold: 0,
|
|
2617
|
+
breakpoints: {},
|
|
2618
|
+
dragFree: !1,
|
|
2619
|
+
dragThreshold: 10,
|
|
2620
|
+
loop: !1,
|
|
2621
|
+
skipSnaps: !1,
|
|
2622
|
+
duration: 25,
|
|
2623
|
+
startIndex: 0,
|
|
2624
|
+
active: !0,
|
|
2625
|
+
watchDrag: !0,
|
|
2626
|
+
watchResize: !0,
|
|
2627
|
+
watchSlides: !0,
|
|
2628
|
+
watchFocus: !0
|
|
2629
|
+
};
|
|
2630
|
+
function Mi(e) {
|
|
2631
|
+
function t(e, t) {
|
|
2632
|
+
return $r(e, t || {});
|
|
2633
|
+
}
|
|
2634
|
+
function n(n) {
|
|
2635
|
+
let r = n.breakpoints || {};
|
|
2636
|
+
return t(n, Qr(r).filter((t) => e.matchMedia(t).matches).map((e) => r[e]).reduce((e, n) => t(e, n), {}));
|
|
2637
|
+
}
|
|
2638
|
+
function r(t) {
|
|
2639
|
+
return t.map((e) => Qr(e.breakpoints || {})).reduce((e, t) => e.concat(t), []).map(e.matchMedia);
|
|
2640
|
+
}
|
|
2641
|
+
return {
|
|
2642
|
+
mergeOptions: t,
|
|
2643
|
+
optionsAtMedia: n,
|
|
2644
|
+
optionsMediaQueries: r
|
|
2645
|
+
};
|
|
2646
|
+
}
|
|
2647
|
+
function Ni(e) {
|
|
2648
|
+
let t = [];
|
|
2649
|
+
function n(n, r) {
|
|
2650
|
+
return t = r.filter(({ options: t }) => e.optionsAtMedia(t).active !== !1), t.forEach((t) => t.init(n, e)), r.reduce((e, t) => Object.assign(e, { [t.name]: t }), {});
|
|
2651
|
+
}
|
|
2652
|
+
function r() {
|
|
2653
|
+
t = t.filter((e) => e.destroy());
|
|
2654
|
+
}
|
|
2655
|
+
return {
|
|
2656
|
+
init: n,
|
|
2657
|
+
destroy: r
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
function Pi(e, t, n) {
|
|
2661
|
+
let r = e.ownerDocument, i = r.defaultView, a = Mi(i), o = Ni(a), s = ni(), c = Ai(), { mergeOptions: l, optionsAtMedia: u, optionsMediaQueries: d } = a, { on: f, off: p, emit: m } = c, h = D, g = !1, _, v = l(ji, Pi.globalOptions), y = l(v), b = [], x, S, C;
|
|
2662
|
+
function w() {
|
|
2663
|
+
let { container: t, slides: n } = y;
|
|
2664
|
+
S = (Vr(t) ? e.querySelector(t) : t) || e.children[0];
|
|
2665
|
+
let r = Vr(n) ? S.querySelectorAll(n) : n;
|
|
2666
|
+
C = [].slice.call(r || S.children);
|
|
2667
|
+
}
|
|
2668
|
+
function T(t) {
|
|
2669
|
+
let n = ki(e, S, C, r, i, t, c);
|
|
2670
|
+
return t.loop && !n.slideLooper.canLoop() ? T(Object.assign({}, t, { loop: !1 })) : n;
|
|
2671
|
+
}
|
|
2672
|
+
function E(e, t) {
|
|
2673
|
+
g || (v = l(v, e), y = u(v), b = t || b, w(), _ = T(y), d([v, ...b.map(({ options: e }) => e)]).forEach((e) => s.add(e, "change", D)), y.active && (_.translate.to(_.location.get()), _.animation.init(), _.slidesInView.init(), _.slideFocus.init(H), _.eventHandler.init(H), _.resizeHandler.init(H), _.slidesHandler.init(H), _.options.loop && _.slideLooper.loop(), S.offsetParent && C.length && _.dragHandler.init(H), x = o.init(H, b)));
|
|
2674
|
+
}
|
|
2675
|
+
function D(e, t) {
|
|
2676
|
+
let n = N();
|
|
2677
|
+
O(), E(l({ startIndex: n }, e), t), c.emit("reInit");
|
|
2678
|
+
}
|
|
2679
|
+
function O() {
|
|
2680
|
+
_.dragHandler.destroy(), _.eventStore.clear(), _.translate.clear(), _.slideLooper.clear(), _.resizeHandler.destroy(), _.slidesHandler.destroy(), _.slidesInView.destroy(), _.animation.destroy(), o.destroy(), s.clear();
|
|
2681
|
+
}
|
|
2682
|
+
function ee() {
|
|
2683
|
+
g || (g = !0, s.clear(), O(), c.emit("destroy"), c.clear());
|
|
2684
|
+
}
|
|
2685
|
+
function k(e, t, n) {
|
|
2686
|
+
!y.active || g || (_.scrollBody.useBaseFriction().useDuration(t === !0 ? 0 : y.duration), _.scrollTo.index(e, n || 0));
|
|
2687
|
+
}
|
|
2688
|
+
function te(e) {
|
|
2689
|
+
k(_.index.add(1).get(), e, -1);
|
|
2690
|
+
}
|
|
2691
|
+
function A(e) {
|
|
2692
|
+
k(_.index.add(-1).get(), e, 1);
|
|
2693
|
+
}
|
|
2694
|
+
function j() {
|
|
2695
|
+
return _.index.add(1).get() !== N();
|
|
2696
|
+
}
|
|
2697
|
+
function ne() {
|
|
2698
|
+
return _.index.add(-1).get() !== N();
|
|
2699
|
+
}
|
|
2700
|
+
function M() {
|
|
2701
|
+
return _.scrollSnapList;
|
|
2702
|
+
}
|
|
2703
|
+
function re() {
|
|
2704
|
+
return _.scrollProgress.get(_.offsetLocation.get());
|
|
2705
|
+
}
|
|
2706
|
+
function N() {
|
|
2707
|
+
return _.index.get();
|
|
2708
|
+
}
|
|
2709
|
+
function P() {
|
|
2710
|
+
return _.indexPrevious.get();
|
|
2711
|
+
}
|
|
2712
|
+
function F() {
|
|
2713
|
+
return _.slidesInView.get();
|
|
2714
|
+
}
|
|
2715
|
+
function I() {
|
|
2716
|
+
return _.slidesInView.get(!1);
|
|
2717
|
+
}
|
|
2718
|
+
function L() {
|
|
2719
|
+
return x;
|
|
2720
|
+
}
|
|
2721
|
+
function R() {
|
|
2722
|
+
return _;
|
|
2723
|
+
}
|
|
2724
|
+
function z() {
|
|
2725
|
+
return e;
|
|
2726
|
+
}
|
|
2727
|
+
function B() {
|
|
2728
|
+
return S;
|
|
2729
|
+
}
|
|
2730
|
+
function V() {
|
|
2731
|
+
return C;
|
|
2732
|
+
}
|
|
2733
|
+
let H = {
|
|
2734
|
+
canScrollNext: j,
|
|
2735
|
+
canScrollPrev: ne,
|
|
2736
|
+
containerNode: B,
|
|
2737
|
+
internalEngine: R,
|
|
2738
|
+
destroy: ee,
|
|
2739
|
+
off: p,
|
|
2740
|
+
on: f,
|
|
2741
|
+
emit: m,
|
|
2742
|
+
plugins: L,
|
|
2743
|
+
previousScrollSnap: P,
|
|
2744
|
+
reInit: h,
|
|
2745
|
+
rootNode: z,
|
|
2746
|
+
scrollNext: te,
|
|
2747
|
+
scrollPrev: A,
|
|
2748
|
+
scrollProgress: re,
|
|
2749
|
+
scrollSnapList: M,
|
|
2750
|
+
scrollTo: k,
|
|
2751
|
+
selectedScrollSnap: N,
|
|
2752
|
+
slideNodes: V,
|
|
2753
|
+
slidesInView: F,
|
|
2754
|
+
slidesNotInView: I
|
|
2755
|
+
};
|
|
2756
|
+
return E(t, n), setTimeout(() => c.emit("init"), 0), H;
|
|
2757
|
+
}
|
|
2758
|
+
Pi.globalOptions = void 0;
|
|
2759
|
+
//#endregion
|
|
2760
|
+
//#region node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
2761
|
+
function Fi(e = {}, t = []) {
|
|
2762
|
+
let r = a(e), s = a(t), [c, l] = o(), [u, d] = o(), f = n(() => {
|
|
2763
|
+
c && c.reInit(r.current, s.current);
|
|
2764
|
+
}, [c]);
|
|
2765
|
+
return i(() => {
|
|
2766
|
+
Lr(r.current, e) || (r.current = e, f());
|
|
2767
|
+
}, [e, f]), i(() => {
|
|
2768
|
+
zr(s.current, t) || (s.current = t, f());
|
|
2769
|
+
}, [t, f]), i(() => {
|
|
2770
|
+
if (Ir() && u) {
|
|
2771
|
+
Pi.globalOptions = Fi.globalOptions;
|
|
2772
|
+
let e = Pi(u, r.current, s.current);
|
|
2773
|
+
return l(e), () => e.destroy();
|
|
2774
|
+
} else l(void 0);
|
|
2775
|
+
}, [u, l]), [d, c];
|
|
2776
|
+
}
|
|
2777
|
+
Fi.globalOptions = void 0;
|
|
2778
|
+
//#endregion
|
|
2779
|
+
//#region src/components/ui/carousel.tsx
|
|
2780
|
+
var Ii = e.createContext(null);
|
|
2781
|
+
function Li() {
|
|
2782
|
+
let t = e.useContext(Ii);
|
|
2783
|
+
if (!t) throw Error("useCarousel must be used within a <Carousel />");
|
|
2784
|
+
return t;
|
|
2785
|
+
}
|
|
2786
|
+
function Ri({ orientation: t = "horizontal", opts: n, setApi: r, plugins: i, className: a, children: o, ...s }) {
|
|
2787
|
+
let [c, l] = Fi({
|
|
2788
|
+
...n,
|
|
2789
|
+
axis: t === "horizontal" ? "x" : "y"
|
|
2790
|
+
}, i), [d, f] = e.useState(!1), [p, m] = e.useState(!1), h = e.useCallback((e) => {
|
|
2791
|
+
e && (f(e.canScrollPrev()), m(e.canScrollNext()));
|
|
2792
|
+
}, []), g = e.useCallback(() => {
|
|
2793
|
+
l?.scrollPrev();
|
|
2794
|
+
}, [l]), _ = e.useCallback(() => {
|
|
2795
|
+
l?.scrollNext();
|
|
2796
|
+
}, [l]), v = e.useCallback((e) => {
|
|
2797
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), g()) : e.key === "ArrowRight" && (e.preventDefault(), _());
|
|
2798
|
+
}, [g, _]);
|
|
2799
|
+
return e.useEffect(() => {
|
|
2800
|
+
!l || !r || r(l);
|
|
2801
|
+
}, [l, r]), e.useEffect(() => {
|
|
2802
|
+
if (l) return h(l), l.on("reInit", h), l.on("select", h), () => {
|
|
2803
|
+
l?.off("select", h);
|
|
2804
|
+
};
|
|
2805
|
+
}, [l, h]), /* @__PURE__ */ u(Ii.Provider, {
|
|
2806
|
+
value: {
|
|
2807
|
+
carouselRef: c,
|
|
2808
|
+
api: l,
|
|
2809
|
+
opts: n,
|
|
2810
|
+
orientation: t || (n?.axis === "y" ? "vertical" : "horizontal"),
|
|
2811
|
+
scrollPrev: g,
|
|
2812
|
+
scrollNext: _,
|
|
2813
|
+
canScrollPrev: d,
|
|
2814
|
+
canScrollNext: p
|
|
2815
|
+
},
|
|
2816
|
+
children: /* @__PURE__ */ u("div", {
|
|
2817
|
+
onKeyDownCapture: v,
|
|
2818
|
+
className: J("relative", a),
|
|
2819
|
+
role: "region",
|
|
2820
|
+
"aria-roledescription": "carousel",
|
|
2821
|
+
"data-slot": "carousel",
|
|
2822
|
+
...s,
|
|
2823
|
+
children: o
|
|
2824
|
+
})
|
|
2825
|
+
});
|
|
2826
|
+
}
|
|
2827
|
+
function zi({ className: e, ...t }) {
|
|
2828
|
+
let { carouselRef: n, orientation: r } = Li();
|
|
2829
|
+
return /* @__PURE__ */ u("div", {
|
|
2830
|
+
ref: n,
|
|
2831
|
+
className: "overflow-hidden",
|
|
2832
|
+
"data-slot": "carousel-content",
|
|
2833
|
+
children: /* @__PURE__ */ u("div", {
|
|
2834
|
+
className: J("flex", r === "horizontal" ? "-ml-4" : "-mt-4 flex-col", e),
|
|
2835
|
+
...t
|
|
2836
|
+
})
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
function Bi({ className: e, ...t }) {
|
|
2840
|
+
let { orientation: n } = Li();
|
|
2841
|
+
return /* @__PURE__ */ u("div", {
|
|
2842
|
+
role: "group",
|
|
2843
|
+
"aria-roledescription": "slide",
|
|
2844
|
+
"data-slot": "carousel-item",
|
|
2845
|
+
className: J("min-w-0 shrink-0 grow-0 basis-full", n === "horizontal" ? "pl-4" : "pt-4", e),
|
|
2846
|
+
...t
|
|
2847
|
+
});
|
|
2848
|
+
}
|
|
2849
|
+
function Vi({ className: e, variant: t = "outline", size: n = "icon-sm", ...r }) {
|
|
2850
|
+
let { orientation: i, scrollPrev: a, canScrollPrev: o } = Li();
|
|
2851
|
+
return /* @__PURE__ */ d(Y, {
|
|
2852
|
+
"data-slot": "carousel-previous",
|
|
2853
|
+
variant: t,
|
|
2854
|
+
size: n,
|
|
2855
|
+
className: J("absolute touch-manipulation rounded-full", i === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
2856
|
+
disabled: !o,
|
|
2857
|
+
onClick: a,
|
|
2858
|
+
...r,
|
|
2859
|
+
children: [/* @__PURE__ */ u(b, {}), /* @__PURE__ */ u("span", {
|
|
2860
|
+
className: "sr-only",
|
|
2861
|
+
children: "Previous slide"
|
|
2862
|
+
})]
|
|
2863
|
+
});
|
|
2864
|
+
}
|
|
2865
|
+
function Hi({ className: e, variant: t = "outline", size: n = "icon-sm", ...r }) {
|
|
2866
|
+
let { orientation: i, scrollNext: a, canScrollNext: o } = Li();
|
|
2867
|
+
return /* @__PURE__ */ d(Y, {
|
|
2868
|
+
"data-slot": "carousel-next",
|
|
2869
|
+
variant: t,
|
|
2870
|
+
size: n,
|
|
2871
|
+
className: J("absolute touch-manipulation rounded-full", i === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
2872
|
+
disabled: !o,
|
|
2873
|
+
onClick: a,
|
|
2874
|
+
...r,
|
|
2875
|
+
children: [/* @__PURE__ */ u(x, {}), /* @__PURE__ */ u("span", {
|
|
2876
|
+
className: "sr-only",
|
|
2877
|
+
children: "Next slide"
|
|
2878
|
+
})]
|
|
2879
|
+
});
|
|
2880
|
+
}
|
|
2881
|
+
//#endregion
|
|
2882
|
+
//#region src/components/ui/GlobalLoader.tsx
|
|
2883
|
+
function Ui({ message: e = "Loading..." }) {
|
|
2884
|
+
let t = a(null), n = a(null), r = a(null), o = a(null), s = a(null), c = a(null), l = a(null), f = a(null), p = a(null), m = a(null), h = a(null);
|
|
2885
|
+
i(() => {
|
|
2886
|
+
let e = G.context(() => {
|
|
2887
|
+
let e = G.timeline({ defaults: { ease: "power3.out" } });
|
|
2888
|
+
e.fromTo(t.current, { opacity: 0 }, {
|
|
2889
|
+
opacity: 1,
|
|
2890
|
+
duration: .1
|
|
2891
|
+
}, 0), e.fromTo(n.current, {
|
|
2892
|
+
strokeDashoffset: 314,
|
|
2893
|
+
opacity: 0
|
|
2894
|
+
}, {
|
|
2895
|
+
strokeDashoffset: 0,
|
|
2896
|
+
opacity: 1,
|
|
2897
|
+
duration: .9,
|
|
2898
|
+
ease: "expo.inOut"
|
|
2899
|
+
}, .1), e.fromTo(r.current, {
|
|
2900
|
+
strokeDashoffset: 226,
|
|
2901
|
+
opacity: 0
|
|
2902
|
+
}, {
|
|
2903
|
+
strokeDashoffset: 0,
|
|
2904
|
+
opacity: .3,
|
|
2905
|
+
duration: .75,
|
|
2906
|
+
ease: "expo.inOut"
|
|
2907
|
+
}, .25), e.fromTo(o.current, {
|
|
2908
|
+
strokeDashoffset: 138,
|
|
2909
|
+
opacity: 0
|
|
2910
|
+
}, {
|
|
2911
|
+
strokeDashoffset: 0,
|
|
2912
|
+
opacity: .15,
|
|
2913
|
+
duration: .6,
|
|
2914
|
+
ease: "expo.inOut"
|
|
2915
|
+
}, .38), e.fromTo(s.current.children, {
|
|
2916
|
+
opacity: 0,
|
|
2917
|
+
scale: 0,
|
|
2918
|
+
transformOrigin: "center"
|
|
2919
|
+
}, {
|
|
2920
|
+
opacity: 1,
|
|
2921
|
+
scale: 1,
|
|
2922
|
+
duration: .3,
|
|
2923
|
+
stagger: .04,
|
|
2924
|
+
ease: "back.out(2)"
|
|
2925
|
+
}, .55), e.fromTo(m.current.children, {
|
|
2926
|
+
scale: 0,
|
|
2927
|
+
opacity: 0,
|
|
2928
|
+
transformOrigin: "center"
|
|
2929
|
+
}, {
|
|
2930
|
+
scale: 1,
|
|
2931
|
+
opacity: 1,
|
|
2932
|
+
duration: .6,
|
|
2933
|
+
stagger: .06,
|
|
2934
|
+
ease: "back.out(1.7)"
|
|
2935
|
+
}, .65), e.fromTo(h.current.children, {
|
|
2936
|
+
scale: 0,
|
|
2937
|
+
opacity: 0,
|
|
2938
|
+
transformOrigin: "center"
|
|
2939
|
+
}, {
|
|
2940
|
+
scale: 1,
|
|
2941
|
+
opacity: 1,
|
|
2942
|
+
duration: .4,
|
|
2943
|
+
stagger: .04
|
|
2944
|
+
}, .8), e.fromTo(c.current, {
|
|
2945
|
+
opacity: 0,
|
|
2946
|
+
y: 8
|
|
2947
|
+
}, {
|
|
2948
|
+
opacity: 1,
|
|
2949
|
+
y: 0,
|
|
2950
|
+
duration: .4
|
|
2951
|
+
}, .75), e.fromTo(l.current, {
|
|
2952
|
+
scaleX: 0,
|
|
2953
|
+
transformOrigin: "left center"
|
|
2954
|
+
}, {
|
|
2955
|
+
scaleX: 1,
|
|
2956
|
+
duration: .55,
|
|
2957
|
+
ease: "power2.inOut"
|
|
2958
|
+
}, .8), G.to(n.current, {
|
|
2959
|
+
rotation: 360,
|
|
2960
|
+
transformOrigin: "60px 60px",
|
|
2961
|
+
duration: 9,
|
|
2962
|
+
repeat: -1,
|
|
2963
|
+
ease: "none",
|
|
2964
|
+
delay: 1
|
|
2965
|
+
}), G.to(r.current, {
|
|
2966
|
+
rotation: -360,
|
|
2967
|
+
transformOrigin: "60px 60px",
|
|
2968
|
+
duration: 14,
|
|
2969
|
+
repeat: -1,
|
|
2970
|
+
ease: "none",
|
|
2971
|
+
delay: 1
|
|
2972
|
+
}), G.to(p.current, {
|
|
2973
|
+
rotation: 360,
|
|
2974
|
+
transformOrigin: "25px 25px",
|
|
2975
|
+
duration: 20,
|
|
2976
|
+
repeat: -1,
|
|
2977
|
+
ease: "none",
|
|
2978
|
+
delay: 1
|
|
2979
|
+
}), Array.from(m.current.children).forEach((e, t) => {
|
|
2980
|
+
G.to(e, {
|
|
2981
|
+
y: t % 2 == 0 ? -3 : 3,
|
|
2982
|
+
duration: 1.5 + t * .2,
|
|
2983
|
+
repeat: -1,
|
|
2984
|
+
yoyo: !0,
|
|
2985
|
+
ease: "sine.inOut"
|
|
2986
|
+
});
|
|
2987
|
+
}), G.to(f.current, {
|
|
2988
|
+
y: "100vh",
|
|
2989
|
+
duration: 2.8,
|
|
2990
|
+
repeat: -1,
|
|
2991
|
+
ease: "none",
|
|
2992
|
+
delay: .5
|
|
2993
|
+
}), G.to(l.current, {
|
|
2994
|
+
opacity: .35,
|
|
2995
|
+
duration: 1.1,
|
|
2996
|
+
repeat: -1,
|
|
2997
|
+
yoyo: !0,
|
|
2998
|
+
ease: "sine.inOut",
|
|
2999
|
+
delay: 1.4
|
|
3000
|
+
});
|
|
3001
|
+
}, t);
|
|
3002
|
+
return () => e.revert();
|
|
3003
|
+
}, []);
|
|
3004
|
+
let g = Array.from({ length: 12 }).map((e, t) => {
|
|
3005
|
+
let n = t / 12 * Math.PI * 2 - Math.PI / 2, r = t % 3 == 0 ? 54 : 50;
|
|
3006
|
+
return {
|
|
3007
|
+
x1: 60 + Math.cos(n) * 46,
|
|
3008
|
+
y1: 60 + Math.sin(n) * 46,
|
|
3009
|
+
x2: 60 + Math.cos(n) * r,
|
|
3010
|
+
y2: 60 + Math.sin(n) * r,
|
|
3011
|
+
major: t % 3 == 0
|
|
3012
|
+
};
|
|
3013
|
+
});
|
|
3014
|
+
return /* @__PURE__ */ d("div", {
|
|
3015
|
+
ref: t,
|
|
3016
|
+
style: {
|
|
3017
|
+
position: "fixed",
|
|
3018
|
+
inset: 0,
|
|
3019
|
+
zIndex: 9999,
|
|
3020
|
+
display: "flex",
|
|
3021
|
+
flexDirection: "column",
|
|
3022
|
+
alignItems: "center",
|
|
3023
|
+
justifyContent: "center",
|
|
3024
|
+
gap: "32px",
|
|
3025
|
+
background: "#09090b",
|
|
3026
|
+
opacity: 0,
|
|
3027
|
+
overflow: "hidden"
|
|
3028
|
+
},
|
|
3029
|
+
children: [
|
|
3030
|
+
/* @__PURE__ */ u("div", {
|
|
3031
|
+
ref: f,
|
|
3032
|
+
style: {
|
|
3033
|
+
position: "absolute",
|
|
3034
|
+
top: "-2px",
|
|
3035
|
+
left: 0,
|
|
3036
|
+
right: 0,
|
|
3037
|
+
height: "2px",
|
|
3038
|
+
background: "linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 60%, transparent 100%)",
|
|
3039
|
+
pointerEvents: "none"
|
|
3040
|
+
}
|
|
3041
|
+
}),
|
|
3042
|
+
/* @__PURE__ */ u("div", { style: {
|
|
3043
|
+
position: "absolute",
|
|
3044
|
+
inset: 0,
|
|
3045
|
+
backgroundImage: "\n linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),\n linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px)\n ",
|
|
3046
|
+
backgroundSize: "48px 48px",
|
|
3047
|
+
maskImage: "radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 100%)",
|
|
3048
|
+
WebkitMaskImage: "radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 100%)",
|
|
3049
|
+
pointerEvents: "none",
|
|
3050
|
+
opacity: .3
|
|
3051
|
+
} }),
|
|
3052
|
+
/* @__PURE__ */ u("div", {
|
|
3053
|
+
style: { position: "relative" },
|
|
3054
|
+
children: /* @__PURE__ */ d("svg", {
|
|
3055
|
+
width: "120",
|
|
3056
|
+
height: "120",
|
|
3057
|
+
viewBox: "0 0 120 120",
|
|
3058
|
+
fill: "none",
|
|
3059
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3060
|
+
style: { overflow: "visible" },
|
|
3061
|
+
children: [
|
|
3062
|
+
/* @__PURE__ */ u("circle", {
|
|
3063
|
+
ref: n,
|
|
3064
|
+
cx: "60",
|
|
3065
|
+
cy: "60",
|
|
3066
|
+
r: "50",
|
|
3067
|
+
stroke: "#f4f4f5",
|
|
3068
|
+
strokeWidth: "0.75",
|
|
3069
|
+
strokeDasharray: "314",
|
|
3070
|
+
strokeDashoffset: "314",
|
|
3071
|
+
strokeLinecap: "round",
|
|
3072
|
+
fill: "none",
|
|
3073
|
+
opacity: "0"
|
|
3074
|
+
}),
|
|
3075
|
+
/* @__PURE__ */ u("circle", {
|
|
3076
|
+
ref: r,
|
|
3077
|
+
cx: "60",
|
|
3078
|
+
cy: "60",
|
|
3079
|
+
r: "36",
|
|
3080
|
+
stroke: "#f4f4f5",
|
|
3081
|
+
strokeWidth: "0.5",
|
|
3082
|
+
strokeDasharray: "226",
|
|
3083
|
+
strokeDashoffset: "226",
|
|
3084
|
+
strokeLinecap: "round",
|
|
3085
|
+
fill: "none",
|
|
3086
|
+
opacity: "0"
|
|
3087
|
+
}),
|
|
3088
|
+
/* @__PURE__ */ u("circle", {
|
|
3089
|
+
ref: o,
|
|
3090
|
+
cx: "60",
|
|
3091
|
+
cy: "60",
|
|
3092
|
+
r: "22",
|
|
3093
|
+
stroke: "#f4f4f5",
|
|
3094
|
+
strokeWidth: "0.5",
|
|
3095
|
+
strokeDasharray: "138",
|
|
3096
|
+
strokeDashoffset: "138",
|
|
3097
|
+
fill: "none",
|
|
3098
|
+
opacity: "0"
|
|
3099
|
+
}),
|
|
3100
|
+
/* @__PURE__ */ u("g", {
|
|
3101
|
+
ref: s,
|
|
3102
|
+
children: g.map((e, t) => /* @__PURE__ */ u("line", {
|
|
3103
|
+
x1: e.x1,
|
|
3104
|
+
y1: e.y1,
|
|
3105
|
+
x2: e.x2,
|
|
3106
|
+
y2: e.y2,
|
|
3107
|
+
stroke: "#f4f4f5",
|
|
3108
|
+
strokeWidth: e.major ? 1.5 : .75,
|
|
3109
|
+
strokeLinecap: "round",
|
|
3110
|
+
opacity: e.major ? .9 : .4
|
|
3111
|
+
}, t))
|
|
3112
|
+
}),
|
|
3113
|
+
/* @__PURE__ */ u("g", {
|
|
3114
|
+
transform: "translate(35, 35) scale(0.83)",
|
|
3115
|
+
children: /* @__PURE__ */ d("g", {
|
|
3116
|
+
ref: p,
|
|
3117
|
+
children: [/* @__PURE__ */ d("g", {
|
|
3118
|
+
ref: h,
|
|
3119
|
+
stroke: "#52525b",
|
|
3120
|
+
strokeWidth: "2",
|
|
3121
|
+
strokeLinecap: "round",
|
|
3122
|
+
children: [
|
|
3123
|
+
/* @__PURE__ */ u("line", {
|
|
3124
|
+
x1: "25",
|
|
3125
|
+
y1: "38",
|
|
3126
|
+
x2: "10",
|
|
3127
|
+
y2: "15"
|
|
3128
|
+
}),
|
|
3129
|
+
/* @__PURE__ */ u("line", {
|
|
3130
|
+
x1: "38",
|
|
3131
|
+
y1: "42",
|
|
3132
|
+
x2: "58",
|
|
3133
|
+
y2: "30"
|
|
3134
|
+
}),
|
|
3135
|
+
/* @__PURE__ */ u("line", {
|
|
3136
|
+
x1: "32",
|
|
3137
|
+
y1: "55",
|
|
3138
|
+
x2: "25",
|
|
3139
|
+
y2: "68"
|
|
3140
|
+
}),
|
|
3141
|
+
/* @__PURE__ */ u("line", {
|
|
3142
|
+
x1: "58",
|
|
3143
|
+
y1: "30",
|
|
3144
|
+
x2: "62",
|
|
3145
|
+
y2: "12"
|
|
3146
|
+
}),
|
|
3147
|
+
/* @__PURE__ */ u("line", {
|
|
3148
|
+
x1: "60",
|
|
3149
|
+
y1: "35",
|
|
3150
|
+
x2: "55",
|
|
3151
|
+
y2: "48"
|
|
3152
|
+
})
|
|
3153
|
+
]
|
|
3154
|
+
}), /* @__PURE__ */ d("g", {
|
|
3155
|
+
ref: m,
|
|
3156
|
+
fill: "#fafafa",
|
|
3157
|
+
children: [
|
|
3158
|
+
/* @__PURE__ */ u("circle", {
|
|
3159
|
+
cx: "32",
|
|
3160
|
+
cy: "45",
|
|
3161
|
+
r: "10"
|
|
3162
|
+
}),
|
|
3163
|
+
/* @__PURE__ */ u("circle", {
|
|
3164
|
+
cx: "8",
|
|
3165
|
+
cy: "12",
|
|
3166
|
+
r: "8"
|
|
3167
|
+
}),
|
|
3168
|
+
/* @__PURE__ */ u("circle", {
|
|
3169
|
+
cx: "60",
|
|
3170
|
+
cy: "30",
|
|
3171
|
+
r: "6"
|
|
3172
|
+
}),
|
|
3173
|
+
/* @__PURE__ */ u("circle", {
|
|
3174
|
+
cx: "22",
|
|
3175
|
+
cy: "72",
|
|
3176
|
+
r: "5"
|
|
3177
|
+
}),
|
|
3178
|
+
/* @__PURE__ */ u("circle", {
|
|
3179
|
+
cx: "65",
|
|
3180
|
+
cy: "8",
|
|
3181
|
+
r: "3"
|
|
3182
|
+
}),
|
|
3183
|
+
/* @__PURE__ */ u("circle", {
|
|
3184
|
+
cx: "55",
|
|
3185
|
+
cy: "52",
|
|
3186
|
+
r: "3"
|
|
3187
|
+
})
|
|
3188
|
+
]
|
|
3189
|
+
})]
|
|
3190
|
+
})
|
|
3191
|
+
})
|
|
3192
|
+
]
|
|
3193
|
+
})
|
|
3194
|
+
}),
|
|
3195
|
+
/* @__PURE__ */ d("div", {
|
|
3196
|
+
style: {
|
|
3197
|
+
display: "flex",
|
|
3198
|
+
flexDirection: "column",
|
|
3199
|
+
alignItems: "center",
|
|
3200
|
+
gap: "14px"
|
|
3201
|
+
},
|
|
3202
|
+
children: [/* @__PURE__ */ u("p", {
|
|
3203
|
+
ref: c,
|
|
3204
|
+
style: {
|
|
3205
|
+
margin: 0,
|
|
3206
|
+
opacity: 0,
|
|
3207
|
+
fontFamily: "monospace",
|
|
3208
|
+
fontSize: "11px",
|
|
3209
|
+
fontWeight: 500,
|
|
3210
|
+
letterSpacing: "0.22em",
|
|
3211
|
+
textTransform: "uppercase",
|
|
3212
|
+
color: "#a1a1aa"
|
|
3213
|
+
},
|
|
3214
|
+
children: e
|
|
3215
|
+
}), /* @__PURE__ */ u("div", {
|
|
3216
|
+
style: {
|
|
3217
|
+
width: "96px",
|
|
3218
|
+
height: "1px",
|
|
3219
|
+
background: "#27272a",
|
|
3220
|
+
overflow: "hidden"
|
|
3221
|
+
},
|
|
3222
|
+
children: /* @__PURE__ */ u("div", {
|
|
3223
|
+
ref: l,
|
|
3224
|
+
style: {
|
|
3225
|
+
width: "100%",
|
|
3226
|
+
height: "100%",
|
|
3227
|
+
background: "#fafafa",
|
|
3228
|
+
transformOrigin: "left center",
|
|
3229
|
+
transform: "scaleX(0)"
|
|
3230
|
+
}
|
|
3231
|
+
})
|
|
3232
|
+
})]
|
|
3233
|
+
})
|
|
3234
|
+
]
|
|
3235
|
+
});
|
|
3236
|
+
}
|
|
3237
|
+
//#endregion
|
|
3238
|
+
//#region src/components/ui/global-err.tsx
|
|
3239
|
+
function Wi() {
|
|
3240
|
+
let e = a(null), t = a(null);
|
|
3241
|
+
return i(() => {
|
|
3242
|
+
!e.current || !t.current || (se.to(e.current, {
|
|
3243
|
+
opacity: .3,
|
|
3244
|
+
scale: 1.06,
|
|
3245
|
+
duration: 2.8,
|
|
3246
|
+
ease: "sine.inOut",
|
|
3247
|
+
repeat: -1,
|
|
3248
|
+
yoyo: !0,
|
|
3249
|
+
transformOrigin: "center"
|
|
3250
|
+
}), se.to(t.current, {
|
|
3251
|
+
y: -3,
|
|
3252
|
+
duration: 3.4,
|
|
3253
|
+
ease: "sine.inOut",
|
|
3254
|
+
repeat: -1,
|
|
3255
|
+
yoyo: !0
|
|
3256
|
+
}));
|
|
3257
|
+
}, []), /* @__PURE__ */ d(q.svg, {
|
|
3258
|
+
viewBox: "0 0 80 80",
|
|
3259
|
+
width: 72,
|
|
3260
|
+
height: 72,
|
|
3261
|
+
initial: {
|
|
3262
|
+
opacity: 0,
|
|
3263
|
+
y: 8
|
|
3264
|
+
},
|
|
3265
|
+
animate: {
|
|
3266
|
+
opacity: 1,
|
|
3267
|
+
y: 0
|
|
3268
|
+
},
|
|
3269
|
+
transition: {
|
|
3270
|
+
duration: .6,
|
|
3271
|
+
ease: [
|
|
3272
|
+
.16,
|
|
3273
|
+
1,
|
|
3274
|
+
.3,
|
|
3275
|
+
1
|
|
3276
|
+
]
|
|
3277
|
+
},
|
|
3278
|
+
children: [
|
|
3279
|
+
/* @__PURE__ */ u("circle", {
|
|
3280
|
+
ref: e,
|
|
3281
|
+
cx: "40",
|
|
3282
|
+
cy: "40",
|
|
3283
|
+
r: "37",
|
|
3284
|
+
fill: "none",
|
|
3285
|
+
stroke: "#e05a5a",
|
|
3286
|
+
strokeWidth: "1",
|
|
3287
|
+
opacity: "0.55"
|
|
3288
|
+
}),
|
|
3289
|
+
/* @__PURE__ */ u("circle", {
|
|
3290
|
+
cx: "40",
|
|
3291
|
+
cy: "40",
|
|
3292
|
+
r: "28",
|
|
3293
|
+
fill: "rgba(224,90,90,0.07)",
|
|
3294
|
+
stroke: "#e05a5a",
|
|
3295
|
+
strokeWidth: "1.2"
|
|
3296
|
+
}),
|
|
3297
|
+
/* @__PURE__ */ d("g", {
|
|
3298
|
+
ref: t,
|
|
3299
|
+
children: [/* @__PURE__ */ u("rect", {
|
|
3300
|
+
x: "38.5",
|
|
3301
|
+
y: "24",
|
|
3302
|
+
width: "3",
|
|
3303
|
+
height: "17",
|
|
3304
|
+
rx: "1.5",
|
|
3305
|
+
fill: "#e05a5a",
|
|
3306
|
+
opacity: "0.85"
|
|
3307
|
+
}), /* @__PURE__ */ u("circle", {
|
|
3308
|
+
cx: "40",
|
|
3309
|
+
cy: "49.5",
|
|
3310
|
+
r: "2",
|
|
3311
|
+
fill: "#e05a5a",
|
|
3312
|
+
opacity: "0.85"
|
|
3313
|
+
})]
|
|
3314
|
+
})
|
|
3315
|
+
]
|
|
3316
|
+
});
|
|
3317
|
+
}
|
|
3318
|
+
function Gi({ error: e, reset: t }) {
|
|
3319
|
+
let [n, r] = o(!1), i = async () => {
|
|
3320
|
+
!t || n || (r(!0), await new Promise((e) => setTimeout(e, 800)), t(), r(!1));
|
|
3321
|
+
}, a = {
|
|
3322
|
+
hidden: {},
|
|
3323
|
+
visible: { transition: {
|
|
3324
|
+
staggerChildren: .08,
|
|
3325
|
+
delayChildren: .15
|
|
3326
|
+
} }
|
|
3327
|
+
}, s = {
|
|
3328
|
+
hidden: {
|
|
3329
|
+
opacity: 0,
|
|
3330
|
+
y: 10
|
|
3331
|
+
},
|
|
3332
|
+
visible: {
|
|
3333
|
+
opacity: 1,
|
|
3334
|
+
y: 0,
|
|
3335
|
+
transition: {
|
|
3336
|
+
duration: .5,
|
|
3337
|
+
ease: [
|
|
3338
|
+
.16,
|
|
3339
|
+
1,
|
|
3340
|
+
.3,
|
|
3341
|
+
1
|
|
3342
|
+
]
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
};
|
|
3346
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("style", { children: "\n @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');\n\n .err-divider {\n width: 100%;\n height: 1px;\n background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);\n }\n\n .err-retry {\n background: rgba(224,90,90,0.1);\n border: 1px solid rgba(224,90,90,0.28);\n color: #e05a5a;\n padding: 10px 22px;\n font-family: 'JetBrains Mono', monospace;\n font-size: 12px;\n letter-spacing: 0.08em;\n border-radius: 6px;\n cursor: pointer;\n transition: background 0.2s, border-color 0.2s;\n }\n .err-retry:hover {\n background: rgba(224,90,90,0.17);\n border-color: rgba(224,90,90,0.45);\n }\n .err-retry:disabled { opacity: 0.4; cursor: not-allowed; }\n\n .err-home {\n background: transparent;\n border: 1px solid rgba(255,255,255,0.07);\n color: #4a4a58;\n padding: 10px 22px;\n font-family: 'JetBrains Mono', monospace;\n font-size: 12px;\n letter-spacing: 0.08em;\n border-radius: 6px;\n cursor: pointer;\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n transition: border-color 0.2s, color 0.2s;\n }\n .err-home:hover { border-color: rgba(255,255,255,0.16); color: #7a7a90; }\n\n .err-row {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: 16px;\n padding: 6px 0;\n border-bottom: 1px solid rgba(255,255,255,0.04);\n font-size: 11px;\n font-family: 'JetBrains Mono', monospace;\n }\n .err-row:last-child { border-bottom: none; }\n .err-key { color: #32323e; flex-shrink: 0; }\n .err-val { color: #5a4a4a; text-align: right; word-break: break-all; }\n " }), /* @__PURE__ */ d("div", {
|
|
3347
|
+
style: {
|
|
3348
|
+
position: "fixed",
|
|
3349
|
+
inset: 0,
|
|
3350
|
+
background: "#0e0e10",
|
|
3351
|
+
display: "flex",
|
|
3352
|
+
alignItems: "center",
|
|
3353
|
+
justifyContent: "center",
|
|
3354
|
+
fontFamily: "'JetBrains Mono', monospace"
|
|
3355
|
+
},
|
|
3356
|
+
children: [/* @__PURE__ */ u("div", { style: {
|
|
3357
|
+
position: "absolute",
|
|
3358
|
+
inset: 0,
|
|
3359
|
+
background: "radial-gradient(ellipse 50% 40% at 50% 48%, rgba(70,15,15,0.14) 0%, transparent 70%)",
|
|
3360
|
+
pointerEvents: "none"
|
|
3361
|
+
} }), /* @__PURE__ */ d(q.div, {
|
|
3362
|
+
variants: a,
|
|
3363
|
+
initial: "hidden",
|
|
3364
|
+
animate: "visible",
|
|
3365
|
+
style: {
|
|
3366
|
+
position: "relative",
|
|
3367
|
+
zIndex: 10,
|
|
3368
|
+
display: "flex",
|
|
3369
|
+
flexDirection: "column",
|
|
3370
|
+
alignItems: "center",
|
|
3371
|
+
textAlign: "center",
|
|
3372
|
+
maxWidth: 400,
|
|
3373
|
+
width: "100%",
|
|
3374
|
+
padding: "0 28px"
|
|
3375
|
+
},
|
|
3376
|
+
children: [
|
|
3377
|
+
/* @__PURE__ */ u(q.div, {
|
|
3378
|
+
variants: s,
|
|
3379
|
+
style: { marginBottom: 28 },
|
|
3380
|
+
children: /* @__PURE__ */ u(Wi, {})
|
|
3381
|
+
}),
|
|
3382
|
+
/* @__PURE__ */ u(q.div, {
|
|
3383
|
+
variants: s,
|
|
3384
|
+
style: {
|
|
3385
|
+
fontSize: 10,
|
|
3386
|
+
letterSpacing: "0.16em",
|
|
3387
|
+
color: "#32323e",
|
|
3388
|
+
marginBottom: 14
|
|
3389
|
+
},
|
|
3390
|
+
children: "500 · INTERNAL ERROR"
|
|
3391
|
+
}),
|
|
3392
|
+
/* @__PURE__ */ u(q.h1, {
|
|
3393
|
+
variants: s,
|
|
3394
|
+
style: {
|
|
3395
|
+
fontSize: "clamp(20px, 4vw, 26px)",
|
|
3396
|
+
fontWeight: 500,
|
|
3397
|
+
color: "#c4c4d0",
|
|
3398
|
+
margin: "0 0 14px",
|
|
3399
|
+
letterSpacing: "-0.01em",
|
|
3400
|
+
lineHeight: 1.25
|
|
3401
|
+
},
|
|
3402
|
+
children: "Something went wrong"
|
|
3403
|
+
}),
|
|
3404
|
+
/* @__PURE__ */ u(q.p, {
|
|
3405
|
+
variants: s,
|
|
3406
|
+
style: {
|
|
3407
|
+
fontSize: 12,
|
|
3408
|
+
color: "#3a3a48",
|
|
3409
|
+
lineHeight: 1.8,
|
|
3410
|
+
margin: "0 0 32px",
|
|
3411
|
+
maxWidth: 320
|
|
3412
|
+
},
|
|
3413
|
+
children: "An unexpected error occurred. The team has been notified — try refreshing or head back home."
|
|
3414
|
+
}),
|
|
3415
|
+
/* @__PURE__ */ u(q.div, {
|
|
3416
|
+
variants: s,
|
|
3417
|
+
style: {
|
|
3418
|
+
width: "100%",
|
|
3419
|
+
marginBottom: 24
|
|
3420
|
+
},
|
|
3421
|
+
children: /* @__PURE__ */ u("div", { className: "err-divider" })
|
|
3422
|
+
}),
|
|
3423
|
+
/* @__PURE__ */ u(K, { children: e && /* @__PURE__ */ d(q.div, {
|
|
3424
|
+
initial: {
|
|
3425
|
+
opacity: 0,
|
|
3426
|
+
y: 8
|
|
3427
|
+
},
|
|
3428
|
+
animate: {
|
|
3429
|
+
opacity: 1,
|
|
3430
|
+
y: 0
|
|
3431
|
+
},
|
|
3432
|
+
transition: { duration: .4 },
|
|
3433
|
+
style: {
|
|
3434
|
+
width: "100%",
|
|
3435
|
+
marginBottom: 28,
|
|
3436
|
+
textAlign: "left"
|
|
3437
|
+
},
|
|
3438
|
+
children: [
|
|
3439
|
+
/* @__PURE__ */ d("div", {
|
|
3440
|
+
className: "err-row",
|
|
3441
|
+
children: [/* @__PURE__ */ u("span", {
|
|
3442
|
+
className: "err-key",
|
|
3443
|
+
children: "type"
|
|
3444
|
+
}), /* @__PURE__ */ u("span", {
|
|
3445
|
+
className: "err-val",
|
|
3446
|
+
children: e.name || "Error"
|
|
3447
|
+
})]
|
|
3448
|
+
}),
|
|
3449
|
+
/* @__PURE__ */ d("div", {
|
|
3450
|
+
className: "err-row",
|
|
3451
|
+
children: [/* @__PURE__ */ u("span", {
|
|
3452
|
+
className: "err-key",
|
|
3453
|
+
children: "message"
|
|
3454
|
+
}), /* @__PURE__ */ d("span", {
|
|
3455
|
+
className: "err-val",
|
|
3456
|
+
children: [(e.message || "—").slice(0, 58), (e.message?.length ?? 0) > 58 ? "…" : ""]
|
|
3457
|
+
})]
|
|
3458
|
+
}),
|
|
3459
|
+
e.digest && /* @__PURE__ */ d("div", {
|
|
3460
|
+
className: "err-row",
|
|
3461
|
+
children: [/* @__PURE__ */ u("span", {
|
|
3462
|
+
className: "err-key",
|
|
3463
|
+
children: "digest"
|
|
3464
|
+
}), /* @__PURE__ */ u("span", {
|
|
3465
|
+
className: "err-val",
|
|
3466
|
+
children: e.digest
|
|
3467
|
+
})]
|
|
3468
|
+
})
|
|
3469
|
+
]
|
|
3470
|
+
}) }),
|
|
3471
|
+
/* @__PURE__ */ d(q.div, {
|
|
3472
|
+
variants: s,
|
|
3473
|
+
style: {
|
|
3474
|
+
display: "flex",
|
|
3475
|
+
gap: 10,
|
|
3476
|
+
alignItems: "center"
|
|
3477
|
+
},
|
|
3478
|
+
children: [t && /* @__PURE__ */ u(q.button, {
|
|
3479
|
+
className: "err-retry",
|
|
3480
|
+
onClick: i,
|
|
3481
|
+
disabled: n,
|
|
3482
|
+
whileTap: { scale: .97 },
|
|
3483
|
+
children: /* @__PURE__ */ u(K, {
|
|
3484
|
+
mode: "wait",
|
|
3485
|
+
children: n ? /* @__PURE__ */ u(q.span, {
|
|
3486
|
+
initial: { opacity: 0 },
|
|
3487
|
+
animate: { opacity: 1 },
|
|
3488
|
+
exit: { opacity: 0 },
|
|
3489
|
+
children: "retrying…"
|
|
3490
|
+
}, "busy") : /* @__PURE__ */ u(q.span, {
|
|
3491
|
+
initial: { opacity: 0 },
|
|
3492
|
+
animate: { opacity: 1 },
|
|
3493
|
+
exit: { opacity: 0 },
|
|
3494
|
+
children: "try again"
|
|
3495
|
+
}, "idle")
|
|
3496
|
+
})
|
|
3497
|
+
}), /* @__PURE__ */ u(q.a, {
|
|
3498
|
+
href: "/",
|
|
3499
|
+
className: "err-home",
|
|
3500
|
+
whileTap: { scale: .97 },
|
|
3501
|
+
children: "go home"
|
|
3502
|
+
})]
|
|
3503
|
+
})
|
|
3504
|
+
]
|
|
3505
|
+
})]
|
|
3506
|
+
})] });
|
|
3507
|
+
}
|
|
3508
|
+
//#endregion
|
|
3509
|
+
//#region src/components/ui/404Page.tsx
|
|
3510
|
+
function Ki() {
|
|
3511
|
+
return /* @__PURE__ */ d("div", {
|
|
3512
|
+
className: "relative flex w-full flex-col items-center justify-center overflow-hidden",
|
|
3513
|
+
children: [
|
|
3514
|
+
/* @__PURE__ */ u(q.div, {
|
|
3515
|
+
animate: {
|
|
3516
|
+
scale: [
|
|
3517
|
+
1,
|
|
3518
|
+
1.2,
|
|
3519
|
+
1
|
|
3520
|
+
],
|
|
3521
|
+
opacity: [
|
|
3522
|
+
.3,
|
|
3523
|
+
.5,
|
|
3524
|
+
.3
|
|
3525
|
+
]
|
|
3526
|
+
},
|
|
3527
|
+
transition: {
|
|
3528
|
+
duration: 8,
|
|
3529
|
+
repeat: Infinity,
|
|
3530
|
+
ease: "easeInOut"
|
|
3531
|
+
},
|
|
3532
|
+
className: "absolute h-screen w-4xl rounded-full bg-blue-600/10 blur-[120px]"
|
|
3533
|
+
}),
|
|
3534
|
+
/* @__PURE__ */ d("div", {
|
|
3535
|
+
className: "relative z-10 flex flex-col items-center px-6 text-center",
|
|
3536
|
+
children: [
|
|
3537
|
+
/* @__PURE__ */ u(q.h1, {
|
|
3538
|
+
initial: {
|
|
3539
|
+
y: 20,
|
|
3540
|
+
opacity: 0
|
|
3541
|
+
},
|
|
3542
|
+
animate: {
|
|
3543
|
+
y: 0,
|
|
3544
|
+
opacity: 1
|
|
3545
|
+
},
|
|
3546
|
+
className: "text-[12rem] font-black leading-none tracking-tighter text-white/5",
|
|
3547
|
+
children: "404"
|
|
3548
|
+
}),
|
|
3549
|
+
/* @__PURE__ */ d(q.div, {
|
|
3550
|
+
initial: {
|
|
3551
|
+
scale: .8,
|
|
3552
|
+
opacity: 0
|
|
3553
|
+
},
|
|
3554
|
+
animate: {
|
|
3555
|
+
scale: 1,
|
|
3556
|
+
opacity: 1
|
|
3557
|
+
},
|
|
3558
|
+
transition: { delay: .2 },
|
|
3559
|
+
className: "-mt-20 space-y-4",
|
|
3560
|
+
children: [/* @__PURE__ */ u("h2", {
|
|
3561
|
+
className: "text-4xl font-bold tracking-tight",
|
|
3562
|
+
children: "You've drifted off course."
|
|
3563
|
+
}), /* @__PURE__ */ u("p", {
|
|
3564
|
+
className: "mx-auto max-w-md text-zinc-400",
|
|
3565
|
+
children: "The module or page you are looking for doesn't exist or has been moved to another station."
|
|
3566
|
+
})]
|
|
3567
|
+
}),
|
|
3568
|
+
/* @__PURE__ */ d(q.div, {
|
|
3569
|
+
initial: {
|
|
3570
|
+
y: 20,
|
|
3571
|
+
opacity: 0
|
|
3572
|
+
},
|
|
3573
|
+
animate: {
|
|
3574
|
+
y: 0,
|
|
3575
|
+
opacity: 1
|
|
3576
|
+
},
|
|
3577
|
+
transition: { delay: .4 },
|
|
3578
|
+
className: "mt-10 flex flex-wrap items-center justify-center gap-4",
|
|
3579
|
+
children: [/* @__PURE__ */ d(Y, {
|
|
3580
|
+
variant: "outline",
|
|
3581
|
+
className: "h-12 border-white/10 bg-white/5 px-6 hover:bg-white/10",
|
|
3582
|
+
children: [/* @__PURE__ */ u(y, { className: "mr-2 h-4 w-4" }), "Go Back"]
|
|
3583
|
+
}), /* @__PURE__ */ u(Y, {
|
|
3584
|
+
asChild: !0,
|
|
3585
|
+
className: "h-12 bg-blue-600 px-8 font-semibold hover:bg-blue-500 shadow-[0_0_20px_rgba(37,99,235,0.3)]",
|
|
3586
|
+
children: /* @__PURE__ */ d(Y, { children: [/* @__PURE__ */ u(w, { className: "mr-2 h-4 w-4" }), "Return to Dashboard"] })
|
|
3587
|
+
})]
|
|
3588
|
+
})
|
|
3589
|
+
]
|
|
3590
|
+
}),
|
|
3591
|
+
/* @__PURE__ */ u("div", {
|
|
3592
|
+
className: "absolute inset-0 z-0 opacity-20",
|
|
3593
|
+
style: {
|
|
3594
|
+
backgroundImage: "radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0)",
|
|
3595
|
+
backgroundSize: "40px 40px"
|
|
3596
|
+
}
|
|
3597
|
+
})
|
|
3598
|
+
]
|
|
3599
|
+
});
|
|
3600
|
+
}
|
|
3601
|
+
//#endregion
|
|
3602
|
+
//#region src/components/ui/SharpnrSidebarFooter.tsx
|
|
3603
|
+
var qi = "#0B0D2E", Ji = "#141741", Yi = "#1E2260", Xi = "#F0F2F7", Zi = "rgba(240,242,247,0.55)";
|
|
3604
|
+
function Qi({ x: e, y: t, size: n, duration: r, delay: i }) {
|
|
3605
|
+
return /* @__PURE__ */ u(q.div, {
|
|
3606
|
+
className: "absolute rounded-full pointer-events-none",
|
|
3607
|
+
style: {
|
|
3608
|
+
width: n,
|
|
3609
|
+
height: n,
|
|
3610
|
+
left: `${e}%`,
|
|
3611
|
+
top: `${t}%`,
|
|
3612
|
+
background: Xi
|
|
3613
|
+
},
|
|
3614
|
+
animate: {
|
|
3615
|
+
y: [
|
|
3616
|
+
0,
|
|
3617
|
+
-14,
|
|
3618
|
+
0
|
|
3619
|
+
],
|
|
3620
|
+
x: [
|
|
3621
|
+
0,
|
|
3622
|
+
3,
|
|
3623
|
+
-3,
|
|
3624
|
+
0
|
|
3625
|
+
],
|
|
3626
|
+
opacity: [
|
|
3627
|
+
0,
|
|
3628
|
+
.55,
|
|
3629
|
+
0
|
|
3630
|
+
],
|
|
3631
|
+
scale: [
|
|
3632
|
+
.4,
|
|
3633
|
+
1,
|
|
3634
|
+
.4
|
|
3635
|
+
]
|
|
3636
|
+
},
|
|
3637
|
+
transition: {
|
|
3638
|
+
duration: r,
|
|
3639
|
+
delay: i,
|
|
3640
|
+
repeat: Infinity,
|
|
3641
|
+
ease: "easeInOut"
|
|
3642
|
+
}
|
|
3643
|
+
});
|
|
3644
|
+
}
|
|
3645
|
+
var $i = [
|
|
3646
|
+
{
|
|
3647
|
+
x: 8,
|
|
3648
|
+
y: 82,
|
|
3649
|
+
size: 2.5,
|
|
3650
|
+
duration: 3.4,
|
|
3651
|
+
delay: 0
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
x: 28,
|
|
3655
|
+
y: 65,
|
|
3656
|
+
size: 1.8,
|
|
3657
|
+
duration: 2.9,
|
|
3658
|
+
delay: .6
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
x: 55,
|
|
3662
|
+
y: 75,
|
|
3663
|
+
size: 3,
|
|
3664
|
+
duration: 3.7,
|
|
3665
|
+
delay: 1.2
|
|
3666
|
+
},
|
|
3667
|
+
{
|
|
3668
|
+
x: 78,
|
|
3669
|
+
y: 55,
|
|
3670
|
+
size: 2,
|
|
3671
|
+
duration: 2.6,
|
|
3672
|
+
delay: .2
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
x: 48,
|
|
3676
|
+
y: 88,
|
|
3677
|
+
size: 2.5,
|
|
3678
|
+
duration: 3.1,
|
|
3679
|
+
delay: 1.9
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
x: 92,
|
|
3683
|
+
y: 70,
|
|
3684
|
+
size: 1.8,
|
|
3685
|
+
duration: 3,
|
|
3686
|
+
delay: .9
|
|
3687
|
+
}
|
|
3688
|
+
];
|
|
3689
|
+
function ea() {
|
|
3690
|
+
let { state: e } = X(), t = e === "collapsed";
|
|
3691
|
+
return /* @__PURE__ */ u(Ot, {
|
|
3692
|
+
className: "",
|
|
3693
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
3694
|
+
layout: !0,
|
|
3695
|
+
transition: {
|
|
3696
|
+
type: "spring",
|
|
3697
|
+
stiffness: 300,
|
|
3698
|
+
damping: 30
|
|
3699
|
+
},
|
|
3700
|
+
style: { background: qi },
|
|
3701
|
+
className: `relative overflow-hidden rounded-xl ${t ? "p-2" : "p-3"}`,
|
|
3702
|
+
children: [
|
|
3703
|
+
/* @__PURE__ */ u("div", {
|
|
3704
|
+
className: "absolute inset-0 rounded-xl pointer-events-none",
|
|
3705
|
+
style: { boxShadow: "inset 0 0 0 1px rgba(240,242,247,0.10), inset 0 1px 0 rgba(240,242,247,0.18)" }
|
|
3706
|
+
}),
|
|
3707
|
+
/* @__PURE__ */ u(q.div, {
|
|
3708
|
+
className: "absolute inset-0 pointer-events-none",
|
|
3709
|
+
animate: { background: [
|
|
3710
|
+
`radial-gradient(ellipse at 10% 90%, ${Yi} 0%, transparent 55%)`,
|
|
3711
|
+
`radial-gradient(ellipse at 90% 10%, ${Yi} 0%, transparent 55%)`,
|
|
3712
|
+
`radial-gradient(ellipse at 10% 90%, ${Yi} 0%, transparent 55%)`
|
|
3713
|
+
] },
|
|
3714
|
+
transition: {
|
|
3715
|
+
duration: 6,
|
|
3716
|
+
repeat: Infinity,
|
|
3717
|
+
ease: "easeInOut"
|
|
3718
|
+
}
|
|
3719
|
+
}),
|
|
3720
|
+
/* @__PURE__ */ u(q.div, {
|
|
3721
|
+
className: "absolute inset-0 pointer-events-none",
|
|
3722
|
+
style: {
|
|
3723
|
+
backgroundImage: `radial-gradient(circle, ${Xi} 1px, transparent 1px)`,
|
|
3724
|
+
backgroundSize: "14px 14px"
|
|
3725
|
+
},
|
|
3726
|
+
animate: { opacity: [
|
|
3727
|
+
.03,
|
|
3728
|
+
.07,
|
|
3729
|
+
.03
|
|
3730
|
+
] },
|
|
3731
|
+
transition: {
|
|
3732
|
+
duration: 4,
|
|
3733
|
+
repeat: Infinity,
|
|
3734
|
+
ease: "easeInOut"
|
|
3735
|
+
}
|
|
3736
|
+
}),
|
|
3737
|
+
/* @__PURE__ */ u(K, { children: !t && $i.map((e, t) => /* @__PURE__ */ u(Qi, { ...e }, t)) }),
|
|
3738
|
+
/* @__PURE__ */ u(q.div, {
|
|
3739
|
+
className: "absolute top-0 left-0 right-0 h-px pointer-events-none",
|
|
3740
|
+
style: { background: `linear-gradient(90deg, transparent, ${Xi}, transparent)` },
|
|
3741
|
+
animate: { opacity: [
|
|
3742
|
+
.2,
|
|
3743
|
+
.6,
|
|
3744
|
+
.2
|
|
3745
|
+
] },
|
|
3746
|
+
transition: {
|
|
3747
|
+
duration: 2.8,
|
|
3748
|
+
repeat: Infinity,
|
|
3749
|
+
ease: "easeInOut"
|
|
3750
|
+
}
|
|
3751
|
+
}),
|
|
3752
|
+
/* @__PURE__ */ d("div", {
|
|
3753
|
+
className: `relative flex items-center gap-3 ${t ? "justify-center" : ""}`,
|
|
3754
|
+
children: [/* @__PURE__ */ u(q.div, {
|
|
3755
|
+
layout: !0,
|
|
3756
|
+
whileHover: { scale: 1.1 },
|
|
3757
|
+
whileTap: { scale: .92 },
|
|
3758
|
+
transition: {
|
|
3759
|
+
type: "spring",
|
|
3760
|
+
stiffness: 400,
|
|
3761
|
+
damping: 20
|
|
3762
|
+
},
|
|
3763
|
+
className: "relative shrink-0 w-8 h-8",
|
|
3764
|
+
children: /* @__PURE__ */ u("div", {
|
|
3765
|
+
className: "absolute inset-[1.5px] rounded-[8px] overflow-hidden z-10",
|
|
3766
|
+
style: { background: Ji },
|
|
3767
|
+
children: /* @__PURE__ */ u("img", {
|
|
3768
|
+
src: "https://cdn.sharpnr.com/shicon.svg",
|
|
3769
|
+
alt: "Sharpnr",
|
|
3770
|
+
className: "w-full h-full object-cover"
|
|
3771
|
+
})
|
|
3772
|
+
})
|
|
3773
|
+
}), /* @__PURE__ */ u(K, {
|
|
3774
|
+
mode: "wait",
|
|
3775
|
+
children: !t && /* @__PURE__ */ d(q.div, {
|
|
3776
|
+
initial: {
|
|
3777
|
+
opacity: 0,
|
|
3778
|
+
x: -10,
|
|
3779
|
+
filter: "blur(6px)"
|
|
3780
|
+
},
|
|
3781
|
+
animate: {
|
|
3782
|
+
opacity: 1,
|
|
3783
|
+
x: 0,
|
|
3784
|
+
filter: "blur(0px)"
|
|
3785
|
+
},
|
|
3786
|
+
exit: {
|
|
3787
|
+
opacity: 0,
|
|
3788
|
+
x: -10,
|
|
3789
|
+
filter: "blur(6px)"
|
|
3790
|
+
},
|
|
3791
|
+
transition: {
|
|
3792
|
+
duration: .25,
|
|
3793
|
+
ease: "easeOut"
|
|
3794
|
+
},
|
|
3795
|
+
className: "flex flex-col min-w-0",
|
|
3796
|
+
children: [/* @__PURE__ */ u("span", {
|
|
3797
|
+
className: "text-[9px] font-semibold uppercase tracking-[0.18em] leading-none mb-1",
|
|
3798
|
+
style: { color: Zi },
|
|
3799
|
+
children: "Powered by"
|
|
3800
|
+
}), /* @__PURE__ */ u(q.span, {
|
|
3801
|
+
className: "text-sm font-bold leading-tight tracking-tight truncate",
|
|
3802
|
+
style: { color: Xi },
|
|
3803
|
+
whileHover: { letterSpacing: "0.03em" },
|
|
3804
|
+
transition: { duration: .2 },
|
|
3805
|
+
children: "Sharpnr"
|
|
3806
|
+
})]
|
|
3807
|
+
}, "footer-text")
|
|
3808
|
+
})]
|
|
3809
|
+
}),
|
|
3810
|
+
/* @__PURE__ */ u(K, { children: !t && /* @__PURE__ */ u(q.div, {
|
|
3811
|
+
initial: {
|
|
3812
|
+
scaleX: 0,
|
|
3813
|
+
opacity: 0
|
|
3814
|
+
},
|
|
3815
|
+
animate: {
|
|
3816
|
+
scaleX: 1,
|
|
3817
|
+
opacity: 1
|
|
3818
|
+
},
|
|
3819
|
+
exit: {
|
|
3820
|
+
scaleX: 0,
|
|
3821
|
+
opacity: 0
|
|
3822
|
+
},
|
|
3823
|
+
transition: {
|
|
3824
|
+
duration: .45,
|
|
3825
|
+
ease: "easeOut",
|
|
3826
|
+
delay: .1
|
|
3827
|
+
},
|
|
3828
|
+
className: "absolute bottom-0 left-4 right-4 h-px origin-left pointer-events-none",
|
|
3829
|
+
style: { background: `linear-gradient(90deg, transparent, ${Zi}, transparent)` }
|
|
3830
|
+
}) })
|
|
3831
|
+
]
|
|
3832
|
+
})
|
|
3833
|
+
});
|
|
3834
|
+
}
|
|
3835
|
+
//#endregion
|
|
3836
|
+
//#region src/hooks/useDialog.tsx
|
|
3837
|
+
var ta = t(void 0), na = ({ children: e }) => {
|
|
3838
|
+
let [t, n] = o(!1), [r, i] = o(null), [a, s] = o(""), [c, l] = o("");
|
|
3839
|
+
return /* @__PURE__ */ d(ta.Provider, {
|
|
3840
|
+
value: {
|
|
3841
|
+
openModal: (e, t = "Dialog", r = "") => {
|
|
3842
|
+
i(e), s(t), l(r), n(!0);
|
|
3843
|
+
},
|
|
3844
|
+
closeModal: () => {
|
|
3845
|
+
n(!1), i(null), s(""), l("");
|
|
3846
|
+
}
|
|
3847
|
+
},
|
|
3848
|
+
children: [e, /* @__PURE__ */ u(_e, {
|
|
3849
|
+
open: t,
|
|
3850
|
+
onOpenChange: n,
|
|
3851
|
+
children: /* @__PURE__ */ d(Se, {
|
|
3852
|
+
className: " rounded-2xl",
|
|
3853
|
+
children: [
|
|
3854
|
+
/* @__PURE__ */ d(Ce, {
|
|
3855
|
+
className: "hidden",
|
|
3856
|
+
children: [a ? /* @__PURE__ */ u(Te, { children: a }) : /* @__PURE__ */ u(ce, { children: /* @__PURE__ */ u(Te, { children: "Dialog" }) }), c && /* @__PURE__ */ u(Ee, { children: c })]
|
|
3857
|
+
}),
|
|
3858
|
+
/* @__PURE__ */ u("div", {
|
|
3859
|
+
className: "",
|
|
3860
|
+
children: r
|
|
3861
|
+
}),
|
|
3862
|
+
/* @__PURE__ */ u(we, {})
|
|
3863
|
+
]
|
|
3864
|
+
})
|
|
3865
|
+
})]
|
|
3866
|
+
});
|
|
3867
|
+
}, ra = () => {
|
|
3868
|
+
let e = r(ta);
|
|
3869
|
+
if (!e) throw Error("useDialogModal must be used within a DialogModalProvider");
|
|
3870
|
+
return e;
|
|
3871
|
+
}, ia = t(void 0), aa = () => {
|
|
3872
|
+
let e = r(ia);
|
|
3873
|
+
if (!e) throw Error("useSheet must be used inside SheetProvider");
|
|
3874
|
+
return e;
|
|
3875
|
+
}, oa = ({ children: e }) => {
|
|
3876
|
+
let [t, n] = o({
|
|
3877
|
+
isOpen: !1,
|
|
3878
|
+
content: void 0,
|
|
3879
|
+
size: "2/4"
|
|
3880
|
+
}), r = (e, t = "2/4") => {
|
|
3881
|
+
n({
|
|
3882
|
+
content: e,
|
|
3883
|
+
size: t,
|
|
3884
|
+
isOpen: !0
|
|
3885
|
+
});
|
|
3886
|
+
}, i = () => {
|
|
3887
|
+
n((e) => ({
|
|
3888
|
+
...e,
|
|
3889
|
+
isOpen: !1
|
|
3890
|
+
}));
|
|
3891
|
+
};
|
|
3892
|
+
return /* @__PURE__ */ d(ia.Provider, {
|
|
3893
|
+
value: {
|
|
3894
|
+
openSheet: r,
|
|
3895
|
+
closeSheet: i
|
|
3896
|
+
},
|
|
3897
|
+
children: [e, /* @__PURE__ */ u($e, {
|
|
3898
|
+
open: t.isOpen,
|
|
3899
|
+
onOpenChange: i,
|
|
3900
|
+
children: /* @__PURE__ */ d(it, {
|
|
3901
|
+
side: "right",
|
|
3902
|
+
className: `w-full max-w-none overflow-y-scroll ${((e) => {
|
|
3903
|
+
switch (e) {
|
|
3904
|
+
case "1/4": return "w-1/4 p-4";
|
|
3905
|
+
case "2/4": return "sm:w-2/4 w-3/4 p-4";
|
|
3906
|
+
case "3/4": return "w-3/4 p-4 ";
|
|
3907
|
+
case "full": return "w-full p-4 ";
|
|
3908
|
+
default: return "w-2/4 p-4";
|
|
3909
|
+
}
|
|
3910
|
+
})(t.size)}
|
|
3911
|
+
[&::-webkit-scrollbar]:w-1.5
|
|
3912
|
+
[&::-webkit-scrollbar-track]:bg-transparent
|
|
3913
|
+
[&::-webkit-scrollbar-thumb]:bg-slate-300
|
|
3914
|
+
[&::-webkit-scrollbar-thumb]:rounded-full
|
|
3915
|
+
hover:[&::-webkit-scrollbar-thumb]:bg-slate-400
|
|
3916
|
+
scrollbar-thin scrollbar-track-transparent scrollbar-thumb-slate-300`,
|
|
3917
|
+
children: [/* @__PURE__ */ u(ce, { children: /* @__PURE__ */ d(at, { children: [/* @__PURE__ */ u(st, { children: t.title || "Sheet Dialog" }), t.description && /* @__PURE__ */ u(ct, { children: t.description })] }) }), /* @__PURE__ */ u("div", { children: t.content })]
|
|
3918
|
+
})
|
|
3919
|
+
})]
|
|
3920
|
+
});
|
|
3921
|
+
}, sa = t(void 0), ca = () => {
|
|
3922
|
+
let e = r(sa);
|
|
3923
|
+
if (!e) throw Error("useFormsModal must be used within a FormsModalProvider");
|
|
3924
|
+
return e;
|
|
3925
|
+
}, la = ({ children: e }) => {
|
|
3926
|
+
let [t, n] = o({
|
|
3927
|
+
heading: "",
|
|
3928
|
+
description: "",
|
|
3929
|
+
isOpen: !1,
|
|
3930
|
+
component: null
|
|
3931
|
+
}), r = (e, t, r) => {
|
|
3932
|
+
n({
|
|
3933
|
+
heading: e,
|
|
3934
|
+
description: t,
|
|
3935
|
+
component: r,
|
|
3936
|
+
isOpen: !0
|
|
3937
|
+
});
|
|
3938
|
+
}, i = () => {
|
|
3939
|
+
n((e) => ({
|
|
3940
|
+
...e,
|
|
3941
|
+
isOpen: !1
|
|
3942
|
+
}));
|
|
3943
|
+
};
|
|
3944
|
+
return /* @__PURE__ */ d(sa.Provider, {
|
|
3945
|
+
value: {
|
|
3946
|
+
showModal: r,
|
|
3947
|
+
closeModal: i
|
|
3948
|
+
},
|
|
3949
|
+
children: [e, /* @__PURE__ */ u(p.Root, {
|
|
3950
|
+
open: t.isOpen,
|
|
3951
|
+
onOpenChange: (e) => !e && i(),
|
|
3952
|
+
children: /* @__PURE__ */ d(p.Portal, { children: [/* @__PURE__ */ u(p.Overlay, { className: "\n fixed inset-0 z-50\n bg-black/60 backdrop-blur-md\n data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-300\n data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-200\n " }), /* @__PURE__ */ d(p.Content, {
|
|
3953
|
+
onInteractOutside: i,
|
|
3954
|
+
className: "\n fixed left-1/2 top-1/2 z-50\n -translate-x-1/2 -translate-y-1/2\n w-[70vw] max-h-[88vh]\n rounded-2xl\n ring-1 ring-white/10\n shadow-[0_0_0_1px_rgba(255,255,255,0.06),0_32px_64px_-12px_rgba(0,0,0,0.7),0_0_80px_-20px_rgba(120,80,255,0.15)]\n bg-background\n flex flex-col overflow-hidden\n data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-[97%] data-[state=open]:slide-in-from-bottom-2 data-[state=open]:duration-300 data-[state=open]:ease-out\n data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-[97%] data-[state=closed]:duration-200 data-[state=closed]:ease-in\n ",
|
|
3955
|
+
children: [
|
|
3956
|
+
/* @__PURE__ */ u("div", { className: "absolute inset-x-0 top-0 h-px bg-linear-to-r from-transparent via-violet-500/60 to-transparent" }),
|
|
3957
|
+
/* @__PURE__ */ u(p.Close, {
|
|
3958
|
+
"aria-label": "Close modal",
|
|
3959
|
+
className: "\n absolute top-4 right-4 z-50\n flex items-center justify-center\n w-7 h-7 rounded-full\n bg-white/5 hover:bg-white/10\n text-white/40 hover:text-white/80\n ring-1 ring-white/10 hover:ring-white/20\n transition-all duration-150\n focus:outline-none focus-visible:ring-2 focus-visible:ring-violet-500\n ",
|
|
3960
|
+
children: /* @__PURE__ */ u(ne, {
|
|
3961
|
+
className: "w-3.5 h-3.5",
|
|
3962
|
+
strokeWidth: 2.5
|
|
3963
|
+
})
|
|
3964
|
+
}),
|
|
3965
|
+
(t.heading || t.description) && /* @__PURE__ */ d("div", {
|
|
3966
|
+
className: "shrink-0 px-7 pt-7 pb-5 border-b border-border",
|
|
3967
|
+
children: [t.heading && /* @__PURE__ */ u(p.Title, {
|
|
3968
|
+
className: "text-[1.35rem] font-semibold tracking-tight text-foreground leading-snug pr-8",
|
|
3969
|
+
children: t.heading
|
|
3970
|
+
}), t.description && /* @__PURE__ */ u(p.Description, {
|
|
3971
|
+
className: "mt-1.5 text-[0.8375rem] text-muted-foreground leading-relaxed",
|
|
3972
|
+
children: t.description
|
|
3973
|
+
})]
|
|
3974
|
+
}),
|
|
3975
|
+
/* @__PURE__ */ d("div", {
|
|
3976
|
+
className: "relative flex-1 min-h-0",
|
|
3977
|
+
children: [/* @__PURE__ */ u("div", {
|
|
3978
|
+
className: "h-full overflow-y-auto px-7 py-6 scrollbar-thin scrollbar-thumb-white/10 scrollbar-track-transparent",
|
|
3979
|
+
children: t.component
|
|
3980
|
+
}), /* @__PURE__ */ u("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-linear-to-t from-background to-transparent" })]
|
|
3981
|
+
})
|
|
3982
|
+
]
|
|
3983
|
+
})] })
|
|
3984
|
+
})]
|
|
3985
|
+
});
|
|
3986
|
+
}, ua = t({
|
|
3987
|
+
theme: "system",
|
|
3988
|
+
setTheme: () => null
|
|
3989
|
+
});
|
|
3990
|
+
function da({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
|
|
3991
|
+
let [a, s] = o(() => localStorage.getItem(n) || t);
|
|
3992
|
+
i(() => {
|
|
3993
|
+
let e = window.document.documentElement;
|
|
3994
|
+
if (e.classList.remove("light", "dark"), a === "system") {
|
|
3995
|
+
let t = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3996
|
+
e.classList.add(t);
|
|
3997
|
+
return;
|
|
3998
|
+
}
|
|
3999
|
+
e.classList.add(a);
|
|
4000
|
+
}, [a]);
|
|
4001
|
+
let c = {
|
|
4002
|
+
theme: a,
|
|
4003
|
+
setTheme: (e) => {
|
|
4004
|
+
localStorage.setItem(n, e), s(e);
|
|
4005
|
+
}
|
|
4006
|
+
};
|
|
4007
|
+
return /* @__PURE__ */ u(ua.Provider, {
|
|
4008
|
+
...r,
|
|
4009
|
+
value: c,
|
|
4010
|
+
children: e
|
|
4011
|
+
});
|
|
4012
|
+
}
|
|
4013
|
+
var fa = () => {
|
|
4014
|
+
let e = r(ua);
|
|
4015
|
+
if (e === void 0) throw Error("useTheme must be used within a ThemeProvider");
|
|
4016
|
+
return e;
|
|
4017
|
+
};
|
|
4018
|
+
//#endregion
|
|
4019
|
+
//#region src/hooks/ThemeToggle.tsx
|
|
4020
|
+
function pa() {
|
|
4021
|
+
let { theme: e, setTheme: t } = fa();
|
|
4022
|
+
return /* @__PURE__ */ d(Gt, { children: [/* @__PURE__ */ u(qt, {
|
|
4023
|
+
asChild: !0,
|
|
4024
|
+
children: /* @__PURE__ */ d(Y, {
|
|
4025
|
+
variant: "ghost",
|
|
4026
|
+
size: "icon",
|
|
4027
|
+
children: [
|
|
4028
|
+
/* @__PURE__ */ u(A, { className: "h-[1.3rem] w-[1.3rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
4029
|
+
/* @__PURE__ */ u(D, { className: "absolute h-[1.3rem] w-[1.3rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
4030
|
+
/* @__PURE__ */ u("span", {
|
|
4031
|
+
className: "sr-only",
|
|
4032
|
+
children: "Toggle theme"
|
|
4033
|
+
})
|
|
4034
|
+
]
|
|
4035
|
+
})
|
|
4036
|
+
}), /* @__PURE__ */ d(Jt, {
|
|
4037
|
+
align: "end",
|
|
4038
|
+
children: [
|
|
4039
|
+
/* @__PURE__ */ d(Xt, {
|
|
4040
|
+
onClick: () => t("light"),
|
|
4041
|
+
children: [/* @__PURE__ */ u(g, { className: `mr-2 h-4 w-4 ${e === "light" ? "opacity-100" : "opacity-0"}` }), "Light"]
|
|
4042
|
+
}),
|
|
4043
|
+
/* @__PURE__ */ d(Xt, {
|
|
4044
|
+
onClick: () => t("dark"),
|
|
4045
|
+
children: [/* @__PURE__ */ u(g, { className: `mr-2 h-4 w-4 ${e === "dark" ? "opacity-100" : "opacity-0"}` }), "Dark"]
|
|
4046
|
+
}),
|
|
4047
|
+
/* @__PURE__ */ d(Xt, {
|
|
4048
|
+
onClick: () => t("system"),
|
|
4049
|
+
children: [/* @__PURE__ */ u(g, { className: `mr-2 h-4 w-4 ${e === "system" ? "opacity-100" : "opacity-0"}` }), "System"]
|
|
4050
|
+
})
|
|
4051
|
+
]
|
|
4052
|
+
})] });
|
|
4053
|
+
}
|
|
4054
|
+
//#endregion
|
|
4055
|
+
export { vn as Alert, xn as AlertAction, bn as AlertDescription, Sn as AlertDialog, Mn as AlertDialogAction, Nn as AlertDialogCancel, En as AlertDialogContent, jn as AlertDialogDescription, On as AlertDialogFooter, Dn as AlertDialogHeader, kn as AlertDialogMedia, Tn as AlertDialogOverlay, wn as AlertDialogPortal, An as AlertDialogTitle, Cn as AlertDialogTrigger, yn as AlertTitle, Or as Avatar, jr as AvatarBadge, Ar as AvatarFallback, Mr as AvatarGroup, Nr as AvatarGroupCount, kr as AvatarImage, br as Badge, Y as Button, Je as ButtonGroup, Xe as ButtonGroupSeparator, Ye as ButtonGroupText, le as Card, pe as CardAction, me as CardContent, fe as CardDescription, he as CardFooter, ue as CardHeader, de as CardTitle, Ri as Carousel, zi as CarouselContent, Bi as CarouselItem, Hi as CarouselNext, Vi as CarouselPrevious, Er as Checkbox, Le as Command, Re as CommandDialog, Ve as CommandEmpty, He as CommandGroup, ze as CommandInput, We as CommandItem, Be as CommandList, Ue as CommandSeparator, Ge as CommandShortcut, _e as Dialog, be as DialogClose, Se as DialogContent, Ee as DialogDescription, we as DialogFooter, Ce as DialogHeader, na as DialogModalProvider, xe as DialogOverlay, ye as DialogPortal, Te as DialogTitle, ve as DialogTrigger, Gt as DropdownMenu, Zt as DropdownMenuCheckboxItem, Jt as DropdownMenuContent, Yt as DropdownMenuGroup, Xt as DropdownMenuItem, en as DropdownMenuLabel, Kt as DropdownMenuPortal, Qt as DropdownMenuRadioGroup, $t as DropdownMenuRadioItem, tn as DropdownMenuSeparator, nn as DropdownMenuShortcut, rn as DropdownMenuSub, on as DropdownMenuSubContent, an as DropdownMenuSubTrigger, qt as DropdownMenuTrigger, Pn as Empty, Bn as EmptyContent, zn as EmptyDescription, Fn as EmptyHeader, Ln as EmptyMedia, Rn as EmptyTitle, la as FormsModalProvider, Gi as GlobalErrorPage, Ui as GlobalLoader, Vn as HoverCard, Un as HoverCardContent, Hn as HoverCardTrigger, De as Input, ke as InputGroup, je as InputGroupAddon, Ne as InputGroupButton, Fe as InputGroupInput, Pe as InputGroupText, Ie as InputGroupTextarea, Sr as Kbd, Cr as KbdGroup, Dr as Label, pa as ModeToggle, Ki as NotFound, Wn as Pagination, Gn as PaginationContent, Xn as PaginationEllipsis, Kn as PaginationItem, qn as PaginationLink, Yn as PaginationNext, Jn as PaginationPrevious, Zn as Popover, er as PopoverAnchor, $n as PopoverContent, rr as PopoverDescription, tr as PopoverHeader, nr as PopoverTitle, Qn as PopoverTrigger, wr as ScrollArea, Tr as ScrollBar, sn as Select, dn as SelectContent, cn as SelectGroup, pn as SelectItem, fn as SelectLabel, gn as SelectScrollDownButton, hn as SelectScrollUpButton, mn as SelectSeparator, un as SelectTrigger, ln as SelectValue, Ke as Separator, ea as SharpnrSidebarFooter, $e as Sheet, tt as SheetClose, it as SheetContent, ct as SheetDescription, ot as SheetFooter, at as SheetHeader, oa as SheetProvider, st as SheetTitle, et as SheetTrigger, St as Sidebar, At as SidebarContent, Ot as SidebarFooter, jt as SidebarGroup, Nt as SidebarGroupAction, Pt as SidebarGroupContent, Mt as SidebarGroupLabel, Dt as SidebarHeader, Et as SidebarInput, Tt as SidebarInset, Ft as SidebarMenu, zt as SidebarMenuAction, Bt as SidebarMenuBadge, Rt as SidebarMenuButton, It as SidebarMenuItem, Vt as SidebarMenuSkeleton, Ht as SidebarMenuSub, Wt as SidebarMenuSubButton, Ut as SidebarMenuSubItem, xt as SidebarProvider, wt as SidebarRail, kt as SidebarSeparator, Ct as SidebarTrigger, lt as Skeleton, vr as Spinner, _r as Switch, ir as Table, or as TableBody, dr as TableCaption, ur as TableCell, sr as TableFooter, lr as TableHead, ar as TableHeader, cr as TableRow, fr as Tabs, gr as TabsContent, mr as TabsList, hr as TabsTrigger, Oe as Textarea, da as ThemeProvider, xr as Toaster, dt as Tooltip, pt as TooltipContent, ut as TooltipProvider, ft as TooltipTrigger, yr as badgeVariants, qe as buttonGroupVariants, J as cn, oe as toast, Li as useCarousel, ra as useDialogModal, ca as useFormsModal, Qe as useIsMobile, aa as useSheet, X as useSidebar, fa as useTheme };
|