@a4ui/core 0.4.3 → 0.5.0
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/README.md +1 -1
- package/dist/index.d.ts +32 -2
- package/dist/index.js +2609 -1122
- package/dist/layout/ChristmasBackground.d.ts +8 -0
- package/dist/layout/SnowScenery.d.ts +7 -0
- package/dist/styles.css +99 -0
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/palettes.d.ts +2 -0
- package/dist/ui/Affix.d.ts +21 -0
- package/dist/ui/Anchor.d.ts +28 -0
- package/dist/ui/AvatarGroup.d.ts +29 -0
- package/dist/ui/BackToTop.d.ts +17 -0
- package/dist/ui/BottomNavigation.d.ts +33 -0
- package/dist/ui/Calendar.d.ts +21 -0
- package/dist/ui/Carousel.d.ts +23 -0
- package/dist/ui/Collapse.d.ts +24 -0
- package/dist/ui/Command.d.ts +40 -0
- package/dist/ui/Countdown.d.ts +19 -0
- package/dist/ui/Descriptions.d.ts +28 -0
- package/dist/ui/Empty.d.ts +27 -0
- package/dist/ui/FloatingActionButton.d.ts +22 -0
- package/dist/ui/Highlight.d.ts +18 -0
- package/dist/ui/Image.d.ts +20 -0
- package/dist/ui/Kbd.d.ts +14 -0
- package/dist/ui/List.d.ts +36 -0
- package/dist/ui/Marquee.d.ts +26 -0
- package/dist/ui/Rating.d.ts +23 -0
- package/dist/ui/Result.d.ts +31 -0
- package/dist/ui/RingProgress.d.ts +23 -0
- package/dist/ui/SpeedDial.d.ts +29 -0
- package/dist/ui/Splitter.d.ts +32 -0
- package/dist/ui/Stepper.d.ts +38 -0
- package/dist/ui/TagInput.d.ts +22 -0
- package/dist/ui/Timeline.d.ts +36 -0
- package/dist/ui/Transfer.d.ts +35 -0
- package/dist/ui/Tree.d.ts +41 -0
- package/package.json +14 -2
package/dist/index.js
CHANGED
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { createSignal as
|
|
4
|
-
import { createComponent as
|
|
5
|
-
import { Accordion as
|
|
6
|
-
import { CalendarDays as
|
|
7
|
-
import { Dialog as
|
|
8
|
-
import { DropdownMenu as
|
|
9
|
-
import { Motion as
|
|
10
|
-
import { createVirtualizer as
|
|
11
|
-
import { Tabs as
|
|
12
|
-
import { Toast as
|
|
13
|
-
import { Switch as
|
|
14
|
-
import { RadioGroup as
|
|
15
|
-
import { Tooltip as
|
|
16
|
-
import { Popover as
|
|
17
|
-
import { HoverCard as
|
|
18
|
-
import { Alert as
|
|
19
|
-
import { Image as
|
|
20
|
-
import { Separator as
|
|
21
|
-
import { Progress as
|
|
22
|
-
import { Meter as
|
|
23
|
-
import { Slider as
|
|
24
|
-
import { NumberField as
|
|
25
|
-
import { ToggleButton as
|
|
26
|
-
import { ToggleGroup as
|
|
27
|
-
import { SegmentedControl as
|
|
28
|
-
import { Breadcrumbs as
|
|
29
|
-
import { AlertDialog as
|
|
30
|
-
import { ContextMenu as
|
|
31
|
-
import { Combobox as
|
|
32
|
-
import { Transition as
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
-
}
|
|
36
|
-
const
|
|
37
|
-
function
|
|
1
|
+
import { clsx as Rt } from "clsx";
|
|
2
|
+
import { twMerge as Ot } from "tailwind-merge";
|
|
3
|
+
import { createSignal as L, createEffect as Q, untrack as dt, onCleanup as q, onMount as Z, For as E, splitProps as Y, createMemo as Me, Show as C, ErrorBoundary as jt, Suspense as Pt } from "solid-js";
|
|
4
|
+
import { createComponent as l, memo as ee, template as m, spread as V, mergeProps as G, insert as c, effect as $, className as k, Portal as Bt, setStyleProperty as j, use as N, delegateEvents as R, setAttribute as y, classList as Nt, Dynamic as ut, style as Yt, addEventListener as Vt } from "solid-js/web";
|
|
5
|
+
import { Accordion as fe } from "@kobalte/core/accordion";
|
|
6
|
+
import { CalendarDays as Gt, ChevronLeft as ke, ChevronRight as ue, X as Ee, UploadCloud as Ht, CircleX as gt, TriangleAlert as ft, CircleCheck as mt, Info as ht, ChevronsUpDown as Xt, Check as vt, Star as He, Inbox as Ut, ServerCrash as qt, Compass as Kt, ChevronDown as Wt, ArrowUp as Jt, Plus as Zt, Satellite as Qt, Moon as er, Sun as tr, Sparkles as rr } from "lucide-solid";
|
|
7
|
+
import { Dialog as D } from "@kobalte/core/dialog";
|
|
8
|
+
import { DropdownMenu as me } from "@kobalte/core/dropdown-menu";
|
|
9
|
+
import { Motion as nr } from "solid-motionone";
|
|
10
|
+
import { createVirtualizer as lr } from "@tanstack/solid-virtual";
|
|
11
|
+
import { Tabs as he } from "@kobalte/core/tabs";
|
|
12
|
+
import { Toast as de, toaster as or } from "@kobalte/core/toast";
|
|
13
|
+
import { Switch as ve } from "@kobalte/core/switch";
|
|
14
|
+
import { RadioGroup as oe } from "@kobalte/core/radio-group";
|
|
15
|
+
import { Tooltip as xe } from "@kobalte/core/tooltip";
|
|
16
|
+
import { Popover as be } from "@kobalte/core/popover";
|
|
17
|
+
import { HoverCard as $e } from "@kobalte/core/hover-card";
|
|
18
|
+
import { Alert as ir } from "@kobalte/core/alert";
|
|
19
|
+
import { Image as Fe } from "@kobalte/core/image";
|
|
20
|
+
import { Separator as ar } from "@kobalte/core/separator";
|
|
21
|
+
import { Progress as we } from "@kobalte/core/progress";
|
|
22
|
+
import { Meter as ye } from "@kobalte/core/meter";
|
|
23
|
+
import { Slider as ie } from "@kobalte/core/slider";
|
|
24
|
+
import { NumberField as Ce } from "@kobalte/core/number-field";
|
|
25
|
+
import { ToggleButton as sr } from "@kobalte/core/toggle-button";
|
|
26
|
+
import { ToggleGroup as Xe } from "@kobalte/core/toggle-group";
|
|
27
|
+
import { SegmentedControl as pe } from "@kobalte/core/segmented-control";
|
|
28
|
+
import { Breadcrumbs as Ie } from "@kobalte/core/breadcrumbs";
|
|
29
|
+
import { AlertDialog as ce } from "@kobalte/core/alert-dialog";
|
|
30
|
+
import { ContextMenu as _e } from "@kobalte/core/context-menu";
|
|
31
|
+
import { Combobox as K } from "@kobalte/core/combobox";
|
|
32
|
+
import { Transition as cr } from "solid-transition-group";
|
|
33
|
+
function v(...e) {
|
|
34
|
+
return Ot(Rt(e));
|
|
35
|
+
}
|
|
36
|
+
const xt = "a4ui-theme";
|
|
37
|
+
function dr(e) {
|
|
38
38
|
return e === "dark" || e === "light";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function bt() {
|
|
41
41
|
try {
|
|
42
42
|
return window.localStorage;
|
|
43
43
|
} catch {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function ur() {
|
|
48
48
|
var t;
|
|
49
|
-
const e = ((t =
|
|
50
|
-
return
|
|
49
|
+
const e = ((t = bt()) == null ? void 0 : t.getItem(xt)) ?? null;
|
|
50
|
+
return dr(e) ? e : "dark";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function $t(e) {
|
|
53
53
|
if (typeof document > "u") return;
|
|
54
54
|
const t = document.documentElement;
|
|
55
55
|
e === "light" ? t.setAttribute("data-theme", "light") : t.removeAttribute("data-theme");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function gr(e) {
|
|
58
58
|
var t;
|
|
59
|
-
(t =
|
|
59
|
+
(t = bt()) == null || t.setItem(xt, e), $t(e);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function fr(e) {
|
|
62
62
|
return e === "dark" ? "light" : "dark";
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
const [
|
|
67
|
-
function
|
|
68
|
-
return
|
|
64
|
+
const wt = ur();
|
|
65
|
+
$t(wt);
|
|
66
|
+
const [yt, mr] = L(wt);
|
|
67
|
+
function pt() {
|
|
68
|
+
return yt;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const e =
|
|
72
|
-
|
|
70
|
+
function hr() {
|
|
71
|
+
const e = fr(yt());
|
|
72
|
+
gr(e), mr(e);
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
function
|
|
74
|
+
const _t = "a4ui-effects";
|
|
75
|
+
function kt() {
|
|
76
76
|
try {
|
|
77
77
|
return window.localStorage;
|
|
78
78
|
} catch {
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function vr() {
|
|
83
83
|
var t;
|
|
84
84
|
try {
|
|
85
85
|
if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
|
-
const e = (t =
|
|
88
|
+
const e = (t = kt()) == null ? void 0 : t.getItem(_t);
|
|
89
89
|
return e === null ? !0 : e === "1";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ct(e) {
|
|
92
92
|
typeof document > "u" || document.documentElement.classList.toggle("calm", !e);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
const [
|
|
97
|
-
function
|
|
98
|
-
return
|
|
94
|
+
const St = vr();
|
|
95
|
+
Ct(St);
|
|
96
|
+
const [Mt, xr] = L(St);
|
|
97
|
+
function br() {
|
|
98
|
+
return Mt;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return !
|
|
100
|
+
function $r() {
|
|
101
|
+
return !Mt();
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function wr(e) {
|
|
104
104
|
var t;
|
|
105
|
-
(t =
|
|
105
|
+
(t = kt()) == null || t.setItem(_t, e ? "1" : "0"), Ct(e), xr(e);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
function
|
|
109
|
-
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(
|
|
107
|
+
const yr = "(prefers-reduced-motion: reduce)";
|
|
108
|
+
function Tt() {
|
|
109
|
+
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(yr).matches;
|
|
110
110
|
}
|
|
111
|
-
const
|
|
112
|
-
function
|
|
111
|
+
const Et = "a4ui-motion-forced";
|
|
112
|
+
function Lt() {
|
|
113
113
|
try {
|
|
114
114
|
return window.localStorage;
|
|
115
115
|
} catch {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
const [
|
|
121
|
-
typeof document < "u" && document.documentElement.classList.toggle("force-motion",
|
|
122
|
-
function
|
|
123
|
-
return
|
|
119
|
+
var ct;
|
|
120
|
+
const [Pe, pr] = L(((ct = Lt()) == null ? void 0 : ct.getItem(Et)) === "1");
|
|
121
|
+
typeof document < "u" && document.documentElement.classList.toggle("force-motion", dt(Pe));
|
|
122
|
+
function Ai() {
|
|
123
|
+
return Pe;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Di(e) {
|
|
126
126
|
var t;
|
|
127
|
-
(t =
|
|
127
|
+
(t = Lt()) == null || t.setItem(Et, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), pr(e);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function W() {
|
|
130
|
+
return $r() || Tt() && !Pe();
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
function
|
|
134
|
-
const [
|
|
135
|
-
let
|
|
136
|
-
return
|
|
132
|
+
const _r = (e) => 1 - (1 - e) ** 3;
|
|
133
|
+
function kr(e, t = 600) {
|
|
134
|
+
const [n, r] = L(0);
|
|
135
|
+
let o;
|
|
136
|
+
return Q(() => {
|
|
137
137
|
const a = e();
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (W()) {
|
|
139
|
+
o !== void 0 && cancelAnimationFrame(o), r(a);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
const
|
|
147
|
-
|
|
142
|
+
const i = dt(n);
|
|
143
|
+
if (i === a) return;
|
|
144
|
+
o !== void 0 && cancelAnimationFrame(o);
|
|
145
|
+
const s = performance.now(), u = (d) => {
|
|
146
|
+
const g = d - s, f = Math.min(1, g / t);
|
|
147
|
+
r(i + (a - i) * _r(f)), o = f < 1 ? requestAnimationFrame(u) : void 0;
|
|
148
148
|
};
|
|
149
|
-
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
|
-
}),
|
|
149
|
+
o = requestAnimationFrame(u);
|
|
150
|
+
}), q(() => {
|
|
151
|
+
o !== void 0 && cancelAnimationFrame(o);
|
|
152
|
+
}), n;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const t = typeof window < "u" ? window.matchMedia(e) : null, [
|
|
154
|
+
function zi(e) {
|
|
155
|
+
const t = typeof window < "u" ? window.matchMedia(e) : null, [n, r] = L(t ? t.matches : !1);
|
|
156
156
|
if (t) {
|
|
157
|
-
const
|
|
158
|
-
t.addEventListener("change",
|
|
157
|
+
const o = (a) => r(a.matches);
|
|
158
|
+
t.addEventListener("change", o), q(() => t.removeEventListener("change", o));
|
|
159
159
|
}
|
|
160
|
-
return
|
|
160
|
+
return n;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
162
|
+
function Cr(e, t) {
|
|
163
|
+
Z(() => {
|
|
164
164
|
requestAnimationFrame(() => {
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const n = e();
|
|
166
|
+
n && (t(void 0), t(n));
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
return
|
|
170
|
+
var Sr = /* @__PURE__ */ m('<svg class="h-3.5 w-3.5 shrink-0 transition-transform duration-200"viewBox="0 0 20 20"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 5l6 5-6 5">');
|
|
171
|
+
function Ri(e) {
|
|
172
|
+
return l(fe, {
|
|
173
173
|
get multiple() {
|
|
174
174
|
return e.multiple ?? !1;
|
|
175
175
|
},
|
|
@@ -177,26 +177,26 @@ function Mo(e) {
|
|
|
177
177
|
return e.class;
|
|
178
178
|
},
|
|
179
179
|
get children() {
|
|
180
|
-
return
|
|
180
|
+
return l(E, {
|
|
181
181
|
get each() {
|
|
182
182
|
return e.items;
|
|
183
183
|
},
|
|
184
|
-
children: (t) =>
|
|
184
|
+
children: (t) => l(fe.Item, {
|
|
185
185
|
get value() {
|
|
186
186
|
return t.value;
|
|
187
187
|
},
|
|
188
188
|
class: "border-b border-border",
|
|
189
189
|
get children() {
|
|
190
|
-
return [
|
|
190
|
+
return [l(fe.Header, {
|
|
191
191
|
get children() {
|
|
192
|
-
return
|
|
192
|
+
return l(fe.Trigger, {
|
|
193
193
|
class: "flex w-full items-center justify-between py-3 text-sm font-medium text-foreground [&[data-expanded]>svg]:rotate-90",
|
|
194
194
|
get children() {
|
|
195
|
-
return [
|
|
195
|
+
return [ee(() => t.title), Sr()];
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), l(fe.Content, {
|
|
200
200
|
class: "pb-3 text-sm text-muted-foreground",
|
|
201
201
|
get children() {
|
|
202
202
|
return t.content;
|
|
@@ -208,219 +208,219 @@ function Mo(e) {
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
var
|
|
212
|
-
const
|
|
211
|
+
var Mr = /* @__PURE__ */ m("<span>");
|
|
212
|
+
const Tr = {
|
|
213
213
|
neutral: "bg-muted text-muted-foreground ring-border",
|
|
214
214
|
success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
|
|
215
215
|
warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
|
|
216
216
|
danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
|
|
217
217
|
info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
|
|
218
|
-
},
|
|
219
|
-
function
|
|
220
|
-
const [t,
|
|
218
|
+
}, Er = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
|
|
219
|
+
function Oi(e) {
|
|
220
|
+
const [t, n] = Y(e, ["tone", "class", "children"]);
|
|
221
221
|
return (() => {
|
|
222
|
-
var
|
|
223
|
-
return
|
|
222
|
+
var r = Mr();
|
|
223
|
+
return V(r, G({
|
|
224
224
|
get class() {
|
|
225
|
-
return
|
|
225
|
+
return v(Er, Tr[t.tone ?? "neutral"], t.class);
|
|
226
226
|
}
|
|
227
|
-
},
|
|
227
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
228
228
|
})();
|
|
229
229
|
}
|
|
230
|
-
var
|
|
231
|
-
const
|
|
230
|
+
var Lr = /* @__PURE__ */ m("<button>");
|
|
231
|
+
const Fr = {
|
|
232
232
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
233
233
|
secondary: "bg-muted text-foreground hover:bg-muted/70",
|
|
234
234
|
outline: "border border-border bg-transparent text-foreground hover:bg-muted",
|
|
235
235
|
ghost: "bg-transparent text-foreground hover:bg-muted"
|
|
236
|
-
},
|
|
237
|
-
function
|
|
238
|
-
const [t,
|
|
236
|
+
}, Ir = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
237
|
+
function Te(e) {
|
|
238
|
+
const [t, n] = Y(e, ["variant", "class", "type", "children"]);
|
|
239
239
|
return (() => {
|
|
240
|
-
var
|
|
241
|
-
return
|
|
240
|
+
var r = Lr();
|
|
241
|
+
return V(r, G({
|
|
242
242
|
get type() {
|
|
243
243
|
return t.type ?? "button";
|
|
244
244
|
},
|
|
245
245
|
get class() {
|
|
246
|
-
return
|
|
246
|
+
return v(Ir, Fr[t.variant ?? "primary"], t.class);
|
|
247
247
|
}
|
|
248
|
-
},
|
|
248
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
249
249
|
})();
|
|
250
250
|
}
|
|
251
|
-
var
|
|
252
|
-
function
|
|
253
|
-
const [t,
|
|
251
|
+
var Be = /* @__PURE__ */ m("<div>"), Ar = /* @__PURE__ */ m("<h2>");
|
|
252
|
+
function Dr(e) {
|
|
253
|
+
const [t, n] = Y(e, ["class", "children", "glass", "glow"]), r = () => (t.glow ?? t.glass) === !0;
|
|
254
254
|
return (() => {
|
|
255
|
-
var
|
|
256
|
-
return
|
|
255
|
+
var o = Be();
|
|
256
|
+
return V(o, G({
|
|
257
257
|
get class() {
|
|
258
|
-
return
|
|
258
|
+
return v(t.glass ? "card rounded-xl text-card-foreground" : "rounded-xl border border-border bg-card text-card-foreground shadow-sm", r() && "glow-edge", t.class);
|
|
259
259
|
}
|
|
260
|
-
},
|
|
260
|
+
}, n), !1, !0), c(o, () => t.children), o;
|
|
261
261
|
})();
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
const [t,
|
|
263
|
+
function ji(e) {
|
|
264
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
265
265
|
return (() => {
|
|
266
|
-
var
|
|
267
|
-
return
|
|
266
|
+
var r = Be();
|
|
267
|
+
return V(r, G({
|
|
268
268
|
get class() {
|
|
269
|
-
return
|
|
269
|
+
return v("flex flex-col space-y-1.5 p-6", t.class);
|
|
270
270
|
}
|
|
271
|
-
},
|
|
271
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
272
272
|
})();
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
const [t,
|
|
274
|
+
function Pi(e) {
|
|
275
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
276
276
|
return (() => {
|
|
277
|
-
var
|
|
278
|
-
return
|
|
277
|
+
var r = Ar();
|
|
278
|
+
return V(r, G({
|
|
279
279
|
get class() {
|
|
280
|
-
return
|
|
280
|
+
return v("text-lg font-semibold leading-none tracking-tight", t.class);
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
283
283
|
})();
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
const [t,
|
|
285
|
+
function zr(e) {
|
|
286
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
287
287
|
return (() => {
|
|
288
|
-
var
|
|
289
|
-
return
|
|
288
|
+
var r = Be();
|
|
289
|
+
return V(r, G({
|
|
290
290
|
get class() {
|
|
291
|
-
return
|
|
291
|
+
return v("p-6 pt-0", t.class);
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
294
294
|
})();
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
function
|
|
296
|
+
var Rr = /* @__PURE__ */ m('<label><input type=checkbox class="h-4 w-4 rounded border-input accent-primary">');
|
|
297
|
+
function Bi(e) {
|
|
298
298
|
return (() => {
|
|
299
|
-
var t =
|
|
300
|
-
return
|
|
299
|
+
var t = Rr(), n = t.firstChild;
|
|
300
|
+
return n.addEventListener("change", (r) => e.onChange(r.currentTarget.checked)), c(t, () => e.label, null), $(() => k(t, v("inline-flex items-center gap-2 text-sm text-foreground", e.class))), $(() => n.checked = e.checked), t;
|
|
301
301
|
})();
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
const
|
|
305
|
-
function
|
|
306
|
-
const t = e.getFullYear(),
|
|
307
|
-
return `${t}-${
|
|
303
|
+
var Or = /* @__PURE__ */ m('<div class="z-50 w-72 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-lg"style=position:fixed><div class="mb-2 flex items-center justify-between"><button type=button aria-label="Previous month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button><span class="text-sm font-medium capitalize text-foreground"> </span><button type=button aria-label="Next month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button></div><div class="mb-1 grid grid-cols-7 gap-0.5 text-center text-[11px] font-medium text-muted-foreground"></div><div class="grid grid-cols-7 gap-0.5">'), jr = /* @__PURE__ */ m('<div><button type=button class="flex w-full items-center justify-between gap-2 rounded-md border border-input bg-background px-3 py-2 text-left text-sm text-foreground outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50"><span>'), Pr = /* @__PURE__ */ m("<span>"), Br = /* @__PURE__ */ m("<button type=button>");
|
|
304
|
+
const Nr = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Ae = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
305
|
+
function Yr(e) {
|
|
306
|
+
const t = e.getFullYear(), n = `${e.getMonth() + 1}`.padStart(2, "0"), r = `${e.getDate()}`.padStart(2, "0");
|
|
307
|
+
return `${t}-${n}-${r}`;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Se(e) {
|
|
310
310
|
const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
311
311
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : null;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
const
|
|
315
|
-
return
|
|
313
|
+
function Ue(e, t) {
|
|
314
|
+
const n = Se(e);
|
|
315
|
+
return n ? `${n.getDate()} ${t[n.getMonth()].slice(0, 3)} ${n.getFullYear()}` : null;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function qe(e, t) {
|
|
318
318
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const [t,
|
|
322
|
-
let
|
|
323
|
-
const [
|
|
320
|
+
function Ni(e) {
|
|
321
|
+
const [t, n] = L(!1), r = Se(e.value) ?? /* @__PURE__ */ new Date(), [o, a] = L(r.getFullYear()), [i, s] = L(r.getMonth());
|
|
322
|
+
let u, d, g;
|
|
323
|
+
const [f, h] = L({
|
|
324
324
|
top: 0,
|
|
325
325
|
left: 0
|
|
326
|
-
}),
|
|
327
|
-
if (!
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
top:
|
|
331
|
-
left:
|
|
326
|
+
}), x = 288, M = () => {
|
|
327
|
+
if (!d) return;
|
|
328
|
+
const T = d.getBoundingClientRect(), z = Math.max(8, Math.min(T.left, window.innerWidth - x - 8));
|
|
329
|
+
h({
|
|
330
|
+
top: T.bottom + 4,
|
|
331
|
+
left: z
|
|
332
332
|
});
|
|
333
|
-
},
|
|
333
|
+
}, S = () => {
|
|
334
334
|
if (e.disabled) return;
|
|
335
|
-
const
|
|
336
|
-
a(
|
|
337
|
-
},
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
},
|
|
343
|
-
|
|
335
|
+
const T = Se(e.value) ?? /* @__PURE__ */ new Date();
|
|
336
|
+
a(T.getFullYear()), s(T.getMonth()), M(), n(!0);
|
|
337
|
+
}, _ = () => n(!1), b = (T) => {
|
|
338
|
+
const z = T.target;
|
|
339
|
+
u && !u.contains(z) && g && !g.contains(z) && _();
|
|
340
|
+
}, p = (T) => {
|
|
341
|
+
T.key === "Escape" && _();
|
|
342
|
+
}, w = (T) => {
|
|
343
|
+
T ? (document.addEventListener("mousedown", b), document.addEventListener("keydown", p), window.addEventListener("scroll", _, !0), window.addEventListener("resize", _)) : (document.removeEventListener("mousedown", b), document.removeEventListener("keydown", p), window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _));
|
|
344
344
|
};
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
},
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
const
|
|
354
|
-
for (let
|
|
355
|
-
|
|
356
|
-
return
|
|
357
|
-
}),
|
|
358
|
-
e.onChange(
|
|
345
|
+
Q(() => w(t())), q(() => w(!1));
|
|
346
|
+
const F = () => {
|
|
347
|
+
const T = i();
|
|
348
|
+
T === 0 ? (s(11), a(o() - 1)) : s(T - 1);
|
|
349
|
+
}, A = () => {
|
|
350
|
+
const T = i();
|
|
351
|
+
T === 11 ? (s(0), a(o() + 1)) : s(T + 1);
|
|
352
|
+
}, P = Me(() => {
|
|
353
|
+
const z = (new Date(o(), i(), 1).getDay() + 6) % 7, H = new Date(o(), i(), 1 - z), J = [];
|
|
354
|
+
for (let ae = 0; ae < 42; ae++)
|
|
355
|
+
J.push(new Date(H.getFullYear(), H.getMonth(), H.getDate() + ae));
|
|
356
|
+
return J;
|
|
357
|
+
}), I = Me(() => Se(e.value)), O = /* @__PURE__ */ new Date(), B = (T) => {
|
|
358
|
+
e.onChange(Yr(T)), _();
|
|
359
359
|
};
|
|
360
360
|
return (() => {
|
|
361
|
-
var
|
|
362
|
-
typeof
|
|
363
|
-
var
|
|
364
|
-
return typeof
|
|
361
|
+
var T = jr(), z = T.firstChild, H = z.firstChild, J = u;
|
|
362
|
+
typeof J == "function" ? N(J, T) : u = T, z.$$click = () => t() ? _() : S();
|
|
363
|
+
var ae = d;
|
|
364
|
+
return typeof ae == "function" ? N(ae, z) : d = z, c(H, () => Ue(e.value, e.months ?? Ae) ?? e.label ?? "Select date"), c(z, l(Gt, {
|
|
365
365
|
class: "h-4 w-4 shrink-0 text-muted-foreground"
|
|
366
|
-
}), null),
|
|
366
|
+
}), null), c(T, l(C, {
|
|
367
367
|
get when() {
|
|
368
368
|
return t();
|
|
369
369
|
},
|
|
370
370
|
get children() {
|
|
371
|
-
return
|
|
371
|
+
return l(Bt, {
|
|
372
372
|
get children() {
|
|
373
|
-
var
|
|
374
|
-
return typeof
|
|
373
|
+
var X = Or(), ge = X.firstChild, se = ge.firstChild, re = se.nextSibling, At = re.firstChild, Ye = re.nextSibling, Ve = ge.nextSibling, Dt = Ve.nextSibling, Ge = g;
|
|
374
|
+
return typeof Ge == "function" ? N(Ge, X) : g = X, se.$$click = F, c(se, l(ke, {
|
|
375
375
|
class: "h-4 w-4"
|
|
376
|
-
})),
|
|
376
|
+
})), c(re, () => (e.months ?? Ae)[i()], At), c(re, o, null), Ye.$$click = A, c(Ye, l(ue, {
|
|
377
377
|
class: "h-4 w-4"
|
|
378
|
-
})),
|
|
378
|
+
})), c(Ve, l(E, {
|
|
379
379
|
get each() {
|
|
380
|
-
return e.weekdays ??
|
|
380
|
+
return e.weekdays ?? Nr;
|
|
381
381
|
},
|
|
382
|
-
children: (
|
|
383
|
-
var
|
|
384
|
-
return
|
|
382
|
+
children: (U) => (() => {
|
|
383
|
+
var te = Pr();
|
|
384
|
+
return c(te, U), te;
|
|
385
385
|
})()
|
|
386
|
-
})),
|
|
386
|
+
})), c(Dt, l(E, {
|
|
387
387
|
get each() {
|
|
388
|
-
return
|
|
388
|
+
return P();
|
|
389
389
|
},
|
|
390
|
-
children: (
|
|
391
|
-
const
|
|
392
|
-
const
|
|
393
|
-
return
|
|
394
|
-
},
|
|
390
|
+
children: (U) => {
|
|
391
|
+
const te = U.getMonth() === i(), ne = () => {
|
|
392
|
+
const le = I();
|
|
393
|
+
return le ? qe(le, U) : !1;
|
|
394
|
+
}, zt = qe(O, U);
|
|
395
395
|
return (() => {
|
|
396
|
-
var
|
|
397
|
-
return
|
|
396
|
+
var le = Br();
|
|
397
|
+
return le.$$click = () => B(U), c(le, () => U.getDate()), $(() => k(le, v("flex h-8 items-center justify-center rounded-md text-sm transition-colors", ne() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !ne() && !te && "text-muted-foreground/50", !ne() && te && "text-foreground", !ne() && zt && "ring-1 ring-inset ring-ring"))), le;
|
|
398
398
|
})();
|
|
399
399
|
}
|
|
400
|
-
})),
|
|
401
|
-
var
|
|
402
|
-
return
|
|
400
|
+
})), $((U) => {
|
|
401
|
+
var te = `${f().top}px`, ne = `${f().left}px`;
|
|
402
|
+
return te !== U.e && j(X, "top", U.e = te), ne !== U.t && j(X, "left", U.t = ne), U;
|
|
403
403
|
}, {
|
|
404
404
|
e: void 0,
|
|
405
405
|
t: void 0
|
|
406
|
-
}),
|
|
406
|
+
}), X;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
}), null),
|
|
411
|
-
var
|
|
412
|
-
return
|
|
410
|
+
}), null), $((X) => {
|
|
411
|
+
var ge = v("relative", e.class), se = e.disabled, re = Ue(e.value, e.months ?? Ae) ? "" : "text-muted-foreground";
|
|
412
|
+
return ge !== X.e && k(T, X.e = ge), se !== X.t && (z.disabled = X.t = se), re !== X.a && k(H, X.a = re), X;
|
|
413
413
|
}, {
|
|
414
414
|
e: void 0,
|
|
415
415
|
t: void 0,
|
|
416
416
|
a: void 0
|
|
417
|
-
}),
|
|
417
|
+
}), T;
|
|
418
418
|
})();
|
|
419
419
|
}
|
|
420
|
-
|
|
421
|
-
var
|
|
422
|
-
function
|
|
423
|
-
return
|
|
420
|
+
R(["click"]);
|
|
421
|
+
var Vr = /* @__PURE__ */ m('<p class="text-[12px] text-muted-foreground">'), Gr = /* @__PURE__ */ m('<div class="sticky top-0 z-10 flex items-center justify-between border-b border-border bg-background/90 px-5 py-4 backdrop-blur"><div>'), Hr = /* @__PURE__ */ m('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
422
|
+
function Yi(e) {
|
|
423
|
+
return l(D, {
|
|
424
424
|
get open() {
|
|
425
425
|
return e.open;
|
|
426
426
|
},
|
|
@@ -428,49 +428,49 @@ function Do(e) {
|
|
|
428
428
|
return e.onOpenChange;
|
|
429
429
|
},
|
|
430
430
|
get children() {
|
|
431
|
-
return
|
|
431
|
+
return l(D.Portal, {
|
|
432
432
|
get children() {
|
|
433
|
-
return [
|
|
433
|
+
return [l(D.Overlay, {
|
|
434
434
|
class: "modal-overlay fixed inset-0 z-40 bg-black/50 backdrop-blur-[2px]"
|
|
435
435
|
}), (() => {
|
|
436
|
-
var t =
|
|
437
|
-
return
|
|
436
|
+
var t = Hr();
|
|
437
|
+
return c(t, l(D.Content, {
|
|
438
438
|
get class() {
|
|
439
|
-
return
|
|
439
|
+
return v("drawer-content flex h-full w-full max-w-[520px] flex-col overflow-y-auto border-l border-border bg-glass shadow-2xl", e.class);
|
|
440
440
|
},
|
|
441
441
|
get children() {
|
|
442
|
-
return [
|
|
442
|
+
return [l(C, {
|
|
443
443
|
get when() {
|
|
444
444
|
return e.title;
|
|
445
445
|
},
|
|
446
446
|
get children() {
|
|
447
|
-
var
|
|
448
|
-
return
|
|
447
|
+
var n = Gr(), r = n.firstChild;
|
|
448
|
+
return c(r, l(D.Title, {
|
|
449
449
|
class: "text-[16px] font-bold leading-tight",
|
|
450
450
|
get children() {
|
|
451
451
|
return e.title;
|
|
452
452
|
}
|
|
453
|
-
}), null),
|
|
453
|
+
}), null), c(r, l(C, {
|
|
454
454
|
get when() {
|
|
455
455
|
return e.subtitle;
|
|
456
456
|
},
|
|
457
457
|
get children() {
|
|
458
|
-
var
|
|
459
|
-
return
|
|
458
|
+
var o = Vr();
|
|
459
|
+
return c(o, () => e.subtitle), o;
|
|
460
460
|
}
|
|
461
|
-
}), null),
|
|
461
|
+
}), null), c(n, l(D.CloseButton, {
|
|
462
462
|
class: "grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
463
463
|
get "aria-label"() {
|
|
464
464
|
return e.closeLabel ?? "Close";
|
|
465
465
|
},
|
|
466
466
|
get children() {
|
|
467
|
-
return
|
|
467
|
+
return l(Ee, {
|
|
468
468
|
class: "h-5 w-5"
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
}), null),
|
|
471
|
+
}), null), n;
|
|
472
472
|
}
|
|
473
|
-
}),
|
|
473
|
+
}), ee(() => e.children)];
|
|
474
474
|
}
|
|
475
475
|
})), t;
|
|
476
476
|
})()];
|
|
@@ -479,18 +479,18 @@ function Do(e) {
|
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Vi(e) {
|
|
483
483
|
return (
|
|
484
484
|
// preventScroll defaults to true in Kobalte's menu — that locks page scroll
|
|
485
485
|
// (body overflow:hidden + scrollbar-width compensation) while the menu is
|
|
486
486
|
// open, which is wrong for a small contextual menu (it closes on scroll
|
|
487
487
|
// anyway). Dialogs (Modal/Drawer) keep the lock; a dropdown shouldn't.
|
|
488
|
-
|
|
488
|
+
l(me, {
|
|
489
489
|
preventScroll: !1,
|
|
490
490
|
get children() {
|
|
491
|
-
return [
|
|
491
|
+
return [l(me.Trigger, {
|
|
492
492
|
get class() {
|
|
493
|
-
return
|
|
493
|
+
return v("inline-flex", e.class);
|
|
494
494
|
},
|
|
495
495
|
get "aria-label"() {
|
|
496
496
|
return e.label;
|
|
@@ -498,18 +498,18 @@ function Ro(e) {
|
|
|
498
498
|
get children() {
|
|
499
499
|
return e.children;
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), l(me.Portal, {
|
|
502
502
|
get children() {
|
|
503
|
-
return
|
|
503
|
+
return l(me.Content, {
|
|
504
504
|
class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
505
505
|
get children() {
|
|
506
|
-
return
|
|
506
|
+
return l(E, {
|
|
507
507
|
get each() {
|
|
508
508
|
return e.items;
|
|
509
509
|
},
|
|
510
|
-
children: (t) =>
|
|
510
|
+
children: (t) => l(me.Item, {
|
|
511
511
|
get class() {
|
|
512
|
-
return
|
|
512
|
+
return v("cursor-pointer select-none rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-muted data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t.destructive && "text-destructive");
|
|
513
513
|
},
|
|
514
514
|
get disabled() {
|
|
515
515
|
return t.disabled;
|
|
@@ -530,45 +530,45 @@ function Ro(e) {
|
|
|
530
530
|
})
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
var
|
|
534
|
-
function
|
|
535
|
-
const [t,
|
|
536
|
-
let
|
|
537
|
-
const
|
|
533
|
+
var Xr = /* @__PURE__ */ m('<p class="text-xs text-muted-foreground">'), Ur = /* @__PURE__ */ m('<div role=button class="flex cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-6 py-10 text-center transition"><p class="text-sm font-medium text-foreground"></p><input type=file class=hidden>');
|
|
534
|
+
function Gi(e) {
|
|
535
|
+
const [t, n] = L(!1);
|
|
536
|
+
let r;
|
|
537
|
+
const o = (a) => {
|
|
538
538
|
if (e.disabled || !a) return;
|
|
539
|
-
const
|
|
540
|
-
|
|
539
|
+
const i = Array.from(a);
|
|
540
|
+
i.length && e.onFiles(i);
|
|
541
541
|
};
|
|
542
542
|
return (() => {
|
|
543
|
-
var a =
|
|
544
|
-
a.addEventListener("drop", (
|
|
545
|
-
var
|
|
546
|
-
|
|
547
|
-
}), a.addEventListener("dragleave", () =>
|
|
548
|
-
e.disabled || (
|
|
549
|
-
}), a.$$keydown = (
|
|
550
|
-
e.disabled || (
|
|
551
|
-
}, a.$$click = () => !e.disabled && (
|
|
543
|
+
var a = Ur(), i = a.firstChild, s = i.nextSibling;
|
|
544
|
+
a.addEventListener("drop", (d) => {
|
|
545
|
+
var g;
|
|
546
|
+
d.preventDefault(), n(!1), o((g = d.dataTransfer) == null ? void 0 : g.files);
|
|
547
|
+
}), a.addEventListener("dragleave", () => n(!1)), a.addEventListener("dragover", (d) => {
|
|
548
|
+
e.disabled || (d.preventDefault(), n(!0));
|
|
549
|
+
}), a.$$keydown = (d) => {
|
|
550
|
+
e.disabled || (d.key === "Enter" || d.key === " ") && (d.preventDefault(), r == null || r.click());
|
|
551
|
+
}, a.$$click = () => !e.disabled && (r == null ? void 0 : r.click()), c(a, l(Ht, {
|
|
552
552
|
class: "h-8 w-8 text-muted-foreground"
|
|
553
|
-
}),
|
|
553
|
+
}), i), c(i, () => e.label ?? "Drag files here or click to browse"), c(a, l(C, {
|
|
554
554
|
get when() {
|
|
555
555
|
return e.hint;
|
|
556
556
|
},
|
|
557
557
|
get children() {
|
|
558
|
-
var
|
|
559
|
-
return
|
|
558
|
+
var d = Xr();
|
|
559
|
+
return c(d, () => e.hint), d;
|
|
560
560
|
}
|
|
561
|
-
}),
|
|
562
|
-
|
|
561
|
+
}), s), s.addEventListener("change", (d) => {
|
|
562
|
+
o(d.currentTarget.files), d.currentTarget.value = "";
|
|
563
563
|
});
|
|
564
|
-
var
|
|
565
|
-
return typeof
|
|
566
|
-
var
|
|
564
|
+
var u = r;
|
|
565
|
+
return typeof u == "function" ? N(u, s) : r = s, $((d) => {
|
|
566
|
+
var g = e.disabled ? -1 : 0, f = e.disabled, h = {
|
|
567
567
|
"border-ring bg-primary/5": t(),
|
|
568
568
|
"border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
|
|
569
569
|
"cursor-not-allowed opacity-60": e.disabled
|
|
570
|
-
},
|
|
571
|
-
return
|
|
570
|
+
}, x = e.accept, M = e.multiple, S = e.disabled;
|
|
571
|
+
return g !== d.e && y(a, "tabindex", d.e = g), f !== d.t && y(a, "aria-disabled", d.t = f), d.a = Nt(a, h, d.a), x !== d.o && y(s, "accept", d.o = x), M !== d.i && (s.multiple = d.i = M), S !== d.n && (s.disabled = d.n = S), d;
|
|
572
572
|
}, {
|
|
573
573
|
e: void 0,
|
|
574
574
|
t: void 0,
|
|
@@ -579,28 +579,28 @@ function zo(e) {
|
|
|
579
579
|
}), a;
|
|
580
580
|
})();
|
|
581
581
|
}
|
|
582
|
-
|
|
583
|
-
var
|
|
584
|
-
const
|
|
585
|
-
function
|
|
586
|
-
const [t,
|
|
582
|
+
R(["click", "keydown"]);
|
|
583
|
+
var qr = /* @__PURE__ */ m("<input>");
|
|
584
|
+
const Kr = "w-full rounded-md border border-input bg-background text-foreground placeholder:text-muted-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50";
|
|
585
|
+
function Hi(e) {
|
|
586
|
+
const [t, n] = Y(e, ["value", "onInput", "class"]);
|
|
587
587
|
return (() => {
|
|
588
|
-
var
|
|
589
|
-
return
|
|
588
|
+
var r = qr();
|
|
589
|
+
return r.$$input = (o) => t.onInput(o.currentTarget.value), V(r, G({
|
|
590
590
|
get class() {
|
|
591
|
-
return
|
|
591
|
+
return v(Kr, t.class);
|
|
592
592
|
},
|
|
593
593
|
get value() {
|
|
594
594
|
return t.value;
|
|
595
595
|
}
|
|
596
|
-
},
|
|
596
|
+
}, n), !1, !1), r;
|
|
597
597
|
})();
|
|
598
598
|
}
|
|
599
|
-
|
|
600
|
-
var
|
|
601
|
-
function
|
|
599
|
+
R(["input"]);
|
|
600
|
+
var Wr = /* @__PURE__ */ m('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'), Ke = /* @__PURE__ */ m('<div class="p-6 pt-4">'), Jr = /* @__PURE__ */ m('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">'), Zr = /* @__PURE__ */ m('<div class="sticky top-0 z-10 flex items-center justify-between border-b border-border bg-background/85 px-6 py-4 backdrop-blur">'), Qr = /* @__PURE__ */ m('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
601
|
+
function Xi(e) {
|
|
602
602
|
const t = () => e.variant === "center";
|
|
603
|
-
return
|
|
603
|
+
return l(D, {
|
|
604
604
|
get open() {
|
|
605
605
|
return e.open;
|
|
606
606
|
},
|
|
@@ -608,85 +608,85 @@ function Oo(e) {
|
|
|
608
608
|
return e.onOpenChange;
|
|
609
609
|
},
|
|
610
610
|
get children() {
|
|
611
|
-
return
|
|
611
|
+
return l(D.Portal, {
|
|
612
612
|
get children() {
|
|
613
|
-
return [
|
|
613
|
+
return [l(D.Overlay, {
|
|
614
614
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
615
|
-
}),
|
|
615
|
+
}), l(C, {
|
|
616
616
|
get when() {
|
|
617
617
|
return t();
|
|
618
618
|
},
|
|
619
619
|
get fallback() {
|
|
620
620
|
return (() => {
|
|
621
|
-
var
|
|
622
|
-
return
|
|
621
|
+
var n = Qr();
|
|
622
|
+
return c(n, l(D.Content, {
|
|
623
623
|
get class() {
|
|
624
|
-
return
|
|
624
|
+
return v("drawer-content bg-glass flex h-full w-full max-w-[520px] flex-col overflow-y-auto border-l border-border text-card-foreground shadow-2xl", e.class);
|
|
625
625
|
},
|
|
626
626
|
get children() {
|
|
627
|
-
return [
|
|
627
|
+
return [l(C, {
|
|
628
628
|
get when() {
|
|
629
629
|
return e.title;
|
|
630
630
|
},
|
|
631
631
|
get children() {
|
|
632
|
-
var
|
|
633
|
-
return
|
|
632
|
+
var r = Zr();
|
|
633
|
+
return c(r, l(D.Title, {
|
|
634
634
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
635
635
|
get children() {
|
|
636
636
|
return e.title;
|
|
637
637
|
}
|
|
638
|
-
}), null),
|
|
638
|
+
}), null), c(r, l(D.CloseButton, {
|
|
639
639
|
class: "grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
640
640
|
get "aria-label"() {
|
|
641
641
|
return e.closeLabel ?? "Close";
|
|
642
642
|
},
|
|
643
643
|
get children() {
|
|
644
|
-
return
|
|
644
|
+
return l(Ee, {
|
|
645
645
|
class: "h-5 w-5"
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
|
-
}), null),
|
|
648
|
+
}), null), r;
|
|
649
649
|
}
|
|
650
650
|
}), (() => {
|
|
651
|
-
var
|
|
652
|
-
return
|
|
651
|
+
var r = Ke();
|
|
652
|
+
return c(r, () => e.children), r;
|
|
653
653
|
})()];
|
|
654
654
|
}
|
|
655
|
-
})),
|
|
655
|
+
})), n;
|
|
656
656
|
})();
|
|
657
657
|
},
|
|
658
658
|
get children() {
|
|
659
|
-
var
|
|
660
|
-
return
|
|
659
|
+
var n = Jr();
|
|
660
|
+
return c(n, l(D.Content, {
|
|
661
661
|
get class() {
|
|
662
|
-
return
|
|
662
|
+
return v("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
663
663
|
},
|
|
664
664
|
get children() {
|
|
665
|
-
return [
|
|
665
|
+
return [l(C, {
|
|
666
666
|
get when() {
|
|
667
667
|
return e.title;
|
|
668
668
|
},
|
|
669
669
|
get children() {
|
|
670
|
-
var
|
|
671
|
-
return
|
|
670
|
+
var r = Wr();
|
|
671
|
+
return c(r, l(D.Title, {
|
|
672
672
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
673
673
|
get children() {
|
|
674
674
|
return e.title;
|
|
675
675
|
}
|
|
676
|
-
}), null),
|
|
676
|
+
}), null), c(r, l(D.CloseButton, {
|
|
677
677
|
class: "text-muted-foreground hover:text-foreground",
|
|
678
678
|
get "aria-label"() {
|
|
679
679
|
return e.closeLabel ?? "Close";
|
|
680
680
|
},
|
|
681
681
|
children: "✕"
|
|
682
|
-
}), null),
|
|
682
|
+
}), null), r;
|
|
683
683
|
}
|
|
684
684
|
}), (() => {
|
|
685
|
-
var
|
|
686
|
-
return
|
|
685
|
+
var r = Ke();
|
|
686
|
+
return c(r, () => e.children), r;
|
|
687
687
|
})()];
|
|
688
688
|
}
|
|
689
|
-
})),
|
|
689
|
+
})), n;
|
|
690
690
|
}
|
|
691
691
|
})];
|
|
692
692
|
}
|
|
@@ -694,71 +694,71 @@ function Oo(e) {
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
697
|
+
var en = /* @__PURE__ */ m('<div class="flex items-center gap-2 text-[12px] text-muted-foreground">'), tn = /* @__PURE__ */ m('<p class="mt-0.5 text-[13px] text-muted-foreground">'), rn = /* @__PURE__ */ m('<div class="flex items-center gap-2">'), nn = /* @__PURE__ */ m('<div class="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between"><div><h1 class="mt-1 text-2xl font-bold tracking-tight">'), ln = /* @__PURE__ */ m("<span class=text-muted-foreground/60>/"), on = /* @__PURE__ */ m("<span>");
|
|
698
|
+
function Ui(e) {
|
|
699
699
|
return (() => {
|
|
700
|
-
var t =
|
|
701
|
-
return
|
|
700
|
+
var t = nn(), n = t.firstChild, r = n.firstChild;
|
|
701
|
+
return c(n, l(C, {
|
|
702
702
|
get when() {
|
|
703
|
-
var
|
|
704
|
-
return (
|
|
703
|
+
var o;
|
|
704
|
+
return (o = e.breadcrumb) == null ? void 0 : o.length;
|
|
705
705
|
},
|
|
706
706
|
get children() {
|
|
707
|
-
var
|
|
708
|
-
return
|
|
707
|
+
var o = en();
|
|
708
|
+
return c(o, l(E, {
|
|
709
709
|
get each() {
|
|
710
710
|
return e.breadcrumb;
|
|
711
711
|
},
|
|
712
|
-
children: (a,
|
|
712
|
+
children: (a, i) => [l(C, {
|
|
713
713
|
get when() {
|
|
714
|
-
return
|
|
714
|
+
return i() > 0;
|
|
715
715
|
},
|
|
716
716
|
get children() {
|
|
717
|
-
return
|
|
717
|
+
return ln();
|
|
718
718
|
}
|
|
719
719
|
}), (() => {
|
|
720
|
-
var
|
|
721
|
-
return
|
|
722
|
-
var
|
|
723
|
-
return
|
|
724
|
-
}),
|
|
720
|
+
var s = on();
|
|
721
|
+
return c(s, a), $(() => {
|
|
722
|
+
var u;
|
|
723
|
+
return s.classList.toggle("text-foreground", i() === (((u = e.breadcrumb) == null ? void 0 : u.length) ?? 0) - 1);
|
|
724
|
+
}), s;
|
|
725
725
|
})()]
|
|
726
|
-
})),
|
|
726
|
+
})), o;
|
|
727
727
|
}
|
|
728
|
-
}),
|
|
728
|
+
}), r), c(r, () => e.title), c(n, l(C, {
|
|
729
729
|
get when() {
|
|
730
730
|
return e.subtitle;
|
|
731
731
|
},
|
|
732
732
|
get children() {
|
|
733
|
-
var
|
|
734
|
-
return
|
|
733
|
+
var o = tn();
|
|
734
|
+
return c(o, () => e.subtitle), o;
|
|
735
735
|
}
|
|
736
|
-
}), null),
|
|
736
|
+
}), null), c(t, l(C, {
|
|
737
737
|
get when() {
|
|
738
738
|
return e.actions;
|
|
739
739
|
},
|
|
740
740
|
get children() {
|
|
741
|
-
var
|
|
742
|
-
return
|
|
741
|
+
var o = rn();
|
|
742
|
+
return c(o, () => e.actions), o;
|
|
743
743
|
}
|
|
744
744
|
}), null), t;
|
|
745
745
|
})();
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
function
|
|
747
|
+
var an = /* @__PURE__ */ m('<div class="flex flex-col gap-3 border-t border-border p-3 sm:flex-row sm:items-center sm:justify-between"><div class="text-[12px] text-muted-foreground"></div><div class="flex items-center gap-1"><button type=button class="grid h-8 w-8 place-items-center rounded-lg border border-input transition hover:bg-muted disabled:pointer-events-none disabled:opacity-40"></button><span class="px-2 font-mono text-[12px] tabular-nums"></span><button type=button class="grid h-8 w-8 place-items-center rounded-lg border border-input transition hover:bg-muted disabled:pointer-events-none disabled:opacity-40">');
|
|
748
|
+
function qi(e) {
|
|
749
749
|
return (() => {
|
|
750
|
-
var t =
|
|
751
|
-
return
|
|
750
|
+
var t = an(), n = t.firstChild, r = n.nextSibling, o = r.firstChild, a = o.nextSibling, i = a.nextSibling;
|
|
751
|
+
return c(n, () => e.summary), o.$$click = () => e.onChange(e.page - 1), c(o, l(ke, {
|
|
752
752
|
class: "h-4 w-4"
|
|
753
|
-
})),
|
|
754
|
-
var
|
|
755
|
-
return (((
|
|
756
|
-
}),
|
|
753
|
+
})), c(a, () => {
|
|
754
|
+
var s;
|
|
755
|
+
return (((s = e.labels) == null ? void 0 : s.page) ?? ((u, d) => `Page ${u} of ${d}`))(e.page, e.totalPages);
|
|
756
|
+
}), i.$$click = () => e.onChange(e.page + 1), c(i, l(ue, {
|
|
757
757
|
class: "h-4 w-4"
|
|
758
|
-
})),
|
|
759
|
-
var
|
|
760
|
-
var
|
|
761
|
-
return
|
|
758
|
+
})), $((s) => {
|
|
759
|
+
var h, x;
|
|
760
|
+
var u = e.page <= 1, d = ((h = e.labels) == null ? void 0 : h.previous) ?? "Previous page", g = e.page >= e.totalPages, f = ((x = e.labels) == null ? void 0 : x.next) ?? "Next page";
|
|
761
|
+
return u !== s.e && (o.disabled = s.e = u), d !== s.t && y(o, "aria-label", s.t = d), g !== s.a && (i.disabled = s.a = g), f !== s.o && y(i, "aria-label", s.o = f), s;
|
|
762
762
|
}, {
|
|
763
763
|
e: void 0,
|
|
764
764
|
t: void 0,
|
|
@@ -767,52 +767,52 @@ function Bo(e) {
|
|
|
767
767
|
}), t;
|
|
768
768
|
})();
|
|
769
769
|
}
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
const
|
|
773
|
-
function
|
|
774
|
-
const [t,
|
|
775
|
-
let
|
|
776
|
-
return
|
|
777
|
-
const
|
|
778
|
-
t.children,
|
|
770
|
+
R(["click"]);
|
|
771
|
+
var sn = /* @__PURE__ */ m("<select>");
|
|
772
|
+
const cn = "w-full rounded-md border border-input bg-background text-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30";
|
|
773
|
+
function Ki(e) {
|
|
774
|
+
const [t, n] = Y(e, ["value", "onChange", "class", "children"]);
|
|
775
|
+
let r;
|
|
776
|
+
return Q(() => {
|
|
777
|
+
const o = t.value ?? "";
|
|
778
|
+
t.children, r && r.value !== o && (r.value = o);
|
|
779
779
|
}), (() => {
|
|
780
|
-
var
|
|
781
|
-
|
|
782
|
-
var a =
|
|
783
|
-
return typeof a == "function" ? N(a,
|
|
780
|
+
var o = sn();
|
|
781
|
+
o.addEventListener("change", (i) => t.onChange(i.currentTarget.value));
|
|
782
|
+
var a = r;
|
|
783
|
+
return typeof a == "function" ? N(a, o) : r = o, V(o, G({
|
|
784
784
|
get class() {
|
|
785
|
-
return
|
|
785
|
+
return v(cn, t.class);
|
|
786
786
|
},
|
|
787
787
|
get value() {
|
|
788
788
|
return t.value;
|
|
789
789
|
}
|
|
790
|
-
},
|
|
790
|
+
}, n), !1, !0), c(o, () => t.children), o;
|
|
791
791
|
})();
|
|
792
792
|
}
|
|
793
|
-
var
|
|
794
|
-
function
|
|
793
|
+
var dn = /* @__PURE__ */ m('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');
|
|
794
|
+
function un(e) {
|
|
795
795
|
return (() => {
|
|
796
|
-
var t =
|
|
797
|
-
return
|
|
798
|
-
var
|
|
799
|
-
return
|
|
796
|
+
var t = dn();
|
|
797
|
+
return $((n) => {
|
|
798
|
+
var r = v("h-5 w-5 animate-spin text-muted-foreground", e.class), o = e.label ?? "Loading";
|
|
799
|
+
return r !== n.e && y(t, "class", n.e = r), o !== n.t && y(t, "aria-label", n.t = o), n;
|
|
800
800
|
}, {
|
|
801
801
|
e: void 0,
|
|
802
802
|
t: void 0
|
|
803
803
|
}), t;
|
|
804
804
|
})();
|
|
805
805
|
}
|
|
806
|
-
var
|
|
807
|
-
const
|
|
806
|
+
var gn = /* @__PURE__ */ m("<div>"), fn = /* @__PURE__ */ m('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');
|
|
807
|
+
const mn = {
|
|
808
808
|
primary: "bg-primary/15 text-primary",
|
|
809
809
|
success: "bg-emerald-500/15 text-emerald-600",
|
|
810
810
|
danger: "bg-rose-500/15 text-rose-600",
|
|
811
811
|
neutral: "bg-muted text-muted-foreground"
|
|
812
812
|
};
|
|
813
|
-
function
|
|
814
|
-
const t =
|
|
815
|
-
return
|
|
813
|
+
function Wi(e) {
|
|
814
|
+
const t = Tt(), n = kr(() => e.value), r = () => (e.format ?? ((o) => String(Math.round(o))))(n());
|
|
815
|
+
return l(nr.div, {
|
|
816
816
|
initial: t ? !1 : {
|
|
817
817
|
opacity: 0,
|
|
818
818
|
y: 8
|
|
@@ -829,27 +829,27 @@ function Vo(e) {
|
|
|
829
829
|
};
|
|
830
830
|
},
|
|
831
831
|
get children() {
|
|
832
|
-
return
|
|
832
|
+
return l(Dr, {
|
|
833
833
|
glass: !0,
|
|
834
834
|
glow: !0,
|
|
835
835
|
get class() {
|
|
836
836
|
return e.class;
|
|
837
837
|
},
|
|
838
838
|
get children() {
|
|
839
|
-
return
|
|
839
|
+
return l(zr, {
|
|
840
840
|
class: "flex items-center gap-4 p-5",
|
|
841
841
|
get children() {
|
|
842
|
-
return [
|
|
842
|
+
return [l(C, {
|
|
843
843
|
get when() {
|
|
844
844
|
return e.icon;
|
|
845
845
|
},
|
|
846
846
|
get children() {
|
|
847
|
-
var
|
|
848
|
-
return
|
|
847
|
+
var o = gn();
|
|
848
|
+
return c(o, () => e.icon), $(() => k(o, v("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", mn[e.tone ?? "neutral"]))), o;
|
|
849
849
|
}
|
|
850
850
|
}), (() => {
|
|
851
|
-
var
|
|
852
|
-
return
|
|
851
|
+
var o = fn(), a = o.firstChild, i = a.nextSibling;
|
|
852
|
+
return c(a, () => e.label), c(i, r), o;
|
|
853
853
|
})()];
|
|
854
854
|
}
|
|
855
855
|
});
|
|
@@ -858,112 +858,112 @@ function Vo(e) {
|
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
var
|
|
862
|
-
function
|
|
863
|
-
const [t,
|
|
861
|
+
var hn = /* @__PURE__ */ m('<div class="w-full overflow-x-auto"><table>'), vn = /* @__PURE__ */ m("<thead>"), xn = /* @__PURE__ */ m("<tbody>"), bn = /* @__PURE__ */ m("<tr>"), $n = /* @__PURE__ */ m("<th>"), wn = /* @__PURE__ */ m("<td>");
|
|
862
|
+
function Ji(e) {
|
|
863
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
864
864
|
return (() => {
|
|
865
|
-
var
|
|
866
|
-
return
|
|
865
|
+
var r = hn(), o = r.firstChild;
|
|
866
|
+
return V(o, G({
|
|
867
867
|
get class() {
|
|
868
|
-
return
|
|
868
|
+
return v("w-full border-collapse text-sm", t.class);
|
|
869
869
|
}
|
|
870
|
-
},
|
|
870
|
+
}, n), !1, !0), c(o, () => t.children), r;
|
|
871
871
|
})();
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
const [t,
|
|
873
|
+
function Zi(e) {
|
|
874
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
875
875
|
return (() => {
|
|
876
|
-
var
|
|
877
|
-
return
|
|
876
|
+
var r = vn();
|
|
877
|
+
return V(r, G({
|
|
878
878
|
get class() {
|
|
879
|
-
return
|
|
879
|
+
return v("border-b border-border text-left text-muted-foreground", t.class);
|
|
880
880
|
}
|
|
881
|
-
},
|
|
881
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
882
882
|
})();
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
const [t,
|
|
884
|
+
function Qi(e) {
|
|
885
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
886
886
|
return (() => {
|
|
887
|
-
var
|
|
888
|
-
return
|
|
887
|
+
var r = xn();
|
|
888
|
+
return V(r, G({
|
|
889
889
|
get class() {
|
|
890
890
|
return t.class;
|
|
891
891
|
}
|
|
892
|
-
},
|
|
892
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
893
893
|
})();
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
const [t,
|
|
895
|
+
function ea(e) {
|
|
896
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
897
897
|
return (() => {
|
|
898
|
-
var
|
|
899
|
-
return
|
|
898
|
+
var r = bn();
|
|
899
|
+
return V(r, G({
|
|
900
900
|
get class() {
|
|
901
|
-
return
|
|
901
|
+
return v("border-b border-border last:border-0 hover:bg-muted/40", t.class);
|
|
902
902
|
}
|
|
903
|
-
},
|
|
903
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
904
904
|
})();
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
const [t,
|
|
906
|
+
function ta(e) {
|
|
907
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
908
908
|
return (() => {
|
|
909
|
-
var
|
|
910
|
-
return
|
|
909
|
+
var r = $n();
|
|
910
|
+
return V(r, G({
|
|
911
911
|
get class() {
|
|
912
|
-
return
|
|
912
|
+
return v("px-3 py-2 text-xs font-semibold uppercase tracking-wide", t.class);
|
|
913
913
|
}
|
|
914
|
-
},
|
|
914
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
915
915
|
})();
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
const [t,
|
|
917
|
+
function ra(e) {
|
|
918
|
+
const [t, n] = Y(e, ["class", "children"]);
|
|
919
919
|
return (() => {
|
|
920
|
-
var
|
|
921
|
-
return
|
|
920
|
+
var r = wn();
|
|
921
|
+
return V(r, G({
|
|
922
922
|
get class() {
|
|
923
|
-
return
|
|
923
|
+
return v("px-3 py-2 align-middle", t.class);
|
|
924
924
|
}
|
|
925
|
-
},
|
|
925
|
+
}, n), !1, !0), c(r, () => t.children), r;
|
|
926
926
|
})();
|
|
927
927
|
}
|
|
928
|
-
var
|
|
929
|
-
function
|
|
930
|
-
const [t,
|
|
928
|
+
var yn = /* @__PURE__ */ m("<div><div style=position:relative;width:100%>"), pn = /* @__PURE__ */ m("<div style=position:absolute;top:0;left:0;width:100%>");
|
|
929
|
+
function na(e) {
|
|
930
|
+
const [t, n] = L(), r = lr({
|
|
931
931
|
get count() {
|
|
932
932
|
return e.each.length;
|
|
933
933
|
},
|
|
934
934
|
getScrollElement: () => t() ?? null,
|
|
935
|
-
estimateSize: (
|
|
935
|
+
estimateSize: (o) => typeof e.estimateSize == "function" ? e.estimateSize(o) : e.estimateSize,
|
|
936
936
|
get overscan() {
|
|
937
937
|
return e.overscan ?? 10;
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
|
-
return
|
|
941
|
-
var
|
|
942
|
-
return N(
|
|
940
|
+
return Cr(t, n), (() => {
|
|
941
|
+
var o = yn(), a = o.firstChild;
|
|
942
|
+
return N(n, o), c(a, l(E, {
|
|
943
943
|
get each() {
|
|
944
|
-
return
|
|
944
|
+
return r.getVirtualItems();
|
|
945
945
|
},
|
|
946
|
-
children: (
|
|
947
|
-
var
|
|
948
|
-
return
|
|
949
|
-
var
|
|
950
|
-
return
|
|
946
|
+
children: (i) => (() => {
|
|
947
|
+
var s = pn();
|
|
948
|
+
return c(s, () => e.children(e.each[i.index], () => i.index)), $((u) => {
|
|
949
|
+
var d = `${i.size}px`, g = `translateY(${i.start}px)`;
|
|
950
|
+
return d !== u.e && j(s, "height", u.e = d), g !== u.t && j(s, "transform", u.t = g), u;
|
|
951
951
|
}, {
|
|
952
952
|
e: void 0,
|
|
953
953
|
t: void 0
|
|
954
|
-
}),
|
|
954
|
+
}), s;
|
|
955
955
|
})()
|
|
956
|
-
})),
|
|
957
|
-
var
|
|
958
|
-
return
|
|
956
|
+
})), $((i) => {
|
|
957
|
+
var s = v("overflow-auto", e.class), u = `${r.getTotalSize()}px`;
|
|
958
|
+
return s !== i.e && k(o, i.e = s), u !== i.t && j(a, "height", i.t = u), i;
|
|
959
959
|
}, {
|
|
960
960
|
e: void 0,
|
|
961
961
|
t: void 0
|
|
962
|
-
}),
|
|
962
|
+
}), o;
|
|
963
963
|
})();
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
return
|
|
965
|
+
function la(e) {
|
|
966
|
+
return l(he, {
|
|
967
967
|
get value() {
|
|
968
968
|
return e.value;
|
|
969
969
|
},
|
|
@@ -974,33 +974,33 @@ function Zo(e) {
|
|
|
974
974
|
return e.class;
|
|
975
975
|
},
|
|
976
976
|
get children() {
|
|
977
|
-
return [
|
|
977
|
+
return [l(he.List, {
|
|
978
978
|
class: "flex gap-1 border-b border-border",
|
|
979
979
|
get children() {
|
|
980
|
-
return [
|
|
980
|
+
return [l(E, {
|
|
981
981
|
get each() {
|
|
982
982
|
return e.items;
|
|
983
983
|
},
|
|
984
|
-
children: (t) =>
|
|
984
|
+
children: (t) => l(he.Trigger, {
|
|
985
985
|
get value() {
|
|
986
986
|
return t.value;
|
|
987
987
|
},
|
|
988
988
|
get class() {
|
|
989
|
-
return
|
|
989
|
+
return v("px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground", "data-[selected]:text-foreground");
|
|
990
990
|
},
|
|
991
991
|
get children() {
|
|
992
992
|
return t.label;
|
|
993
993
|
}
|
|
994
994
|
})
|
|
995
|
-
}),
|
|
995
|
+
}), l(he.Indicator, {
|
|
996
996
|
class: "absolute bottom-0 h-0.5 bg-primary transition-all"
|
|
997
997
|
})];
|
|
998
998
|
}
|
|
999
|
-
}),
|
|
999
|
+
}), l(E, {
|
|
1000
1000
|
get each() {
|
|
1001
1001
|
return e.items;
|
|
1002
1002
|
},
|
|
1003
|
-
children: (t) =>
|
|
1003
|
+
children: (t) => l(he.Content, {
|
|
1004
1004
|
get value() {
|
|
1005
1005
|
return t.value;
|
|
1006
1006
|
},
|
|
@@ -1013,42 +1013,42 @@ function Zo(e) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
|
-
var
|
|
1017
|
-
const
|
|
1016
|
+
var _n = /* @__PURE__ */ m("<div class=flex-1>");
|
|
1017
|
+
const kn = {
|
|
1018
1018
|
success: "border-emerald-500/30 bg-emerald-500/10",
|
|
1019
1019
|
error: "border-destructive/30 bg-destructive/10",
|
|
1020
1020
|
info: "border-sky-500/30 bg-sky-500/10"
|
|
1021
1021
|
};
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1022
|
+
function De(e, t, n) {
|
|
1023
|
+
or.show((r) => l(de, {
|
|
1024
1024
|
get toastId() {
|
|
1025
|
-
return
|
|
1025
|
+
return r.toastId;
|
|
1026
1026
|
},
|
|
1027
1027
|
get class() {
|
|
1028
|
-
return
|
|
1028
|
+
return v(
|
|
1029
1029
|
// toast-item drives the slide+fade keyframes in styles.css, keyed off
|
|
1030
1030
|
// Kobalte's data-opened/data-closed presence (same animationend-only
|
|
1031
1031
|
// mechanism as Modal).
|
|
1032
1032
|
"toast-item flex w-full items-start gap-2 rounded-md border bg-card p-3 text-sm text-card-foreground shadow-sm ring-1 ring-border",
|
|
1033
|
-
|
|
1033
|
+
kn[e]
|
|
1034
1034
|
);
|
|
1035
1035
|
},
|
|
1036
1036
|
get children() {
|
|
1037
1037
|
return [(() => {
|
|
1038
|
-
var
|
|
1039
|
-
return
|
|
1038
|
+
var o = _n();
|
|
1039
|
+
return c(o, l(de.Title, {
|
|
1040
1040
|
class: "font-semibold",
|
|
1041
1041
|
children: t
|
|
1042
|
-
}), null),
|
|
1043
|
-
when:
|
|
1042
|
+
}), null), c(o, l(C, {
|
|
1043
|
+
when: n,
|
|
1044
1044
|
get children() {
|
|
1045
|
-
return
|
|
1045
|
+
return l(de.Description, {
|
|
1046
1046
|
class: "text-muted-foreground",
|
|
1047
|
-
children:
|
|
1047
|
+
children: n
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
|
-
}), null),
|
|
1051
|
-
})(),
|
|
1050
|
+
}), null), o;
|
|
1051
|
+
})(), l(de.CloseButton, {
|
|
1052
1052
|
class: "text-muted-foreground hover:text-foreground",
|
|
1053
1053
|
"aria-label": "Close",
|
|
1054
1054
|
children: "✕"
|
|
@@ -1056,24 +1056,24 @@ function Te(e, t, o) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
}));
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1060
|
-
success: (e, t) =>
|
|
1061
|
-
error: (e, t) =>
|
|
1062
|
-
info: (e, t) =>
|
|
1059
|
+
const oa = {
|
|
1060
|
+
success: (e, t) => De("success", e, t),
|
|
1061
|
+
error: (e, t) => De("error", e, t),
|
|
1062
|
+
info: (e, t) => De("info", e, t)
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1065
|
-
return
|
|
1064
|
+
function ia() {
|
|
1065
|
+
return l(de.Region, {
|
|
1066
1066
|
duration: 5e3,
|
|
1067
1067
|
swipeDirection: "right",
|
|
1068
1068
|
get children() {
|
|
1069
|
-
return
|
|
1069
|
+
return l(de.List, {
|
|
1070
1070
|
class: "fixed bottom-4 right-4 z-50 flex w-80 flex-col gap-2 outline-none"
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return
|
|
1075
|
+
function aa(e) {
|
|
1076
|
+
return l(ve, {
|
|
1077
1077
|
get checked() {
|
|
1078
1078
|
return e.checked;
|
|
1079
1079
|
},
|
|
@@ -1084,22 +1084,22 @@ function Qo(e) {
|
|
|
1084
1084
|
return e.disabled;
|
|
1085
1085
|
},
|
|
1086
1086
|
get class() {
|
|
1087
|
-
return
|
|
1087
|
+
return v("inline-flex items-center gap-2", e.class);
|
|
1088
1088
|
},
|
|
1089
1089
|
get children() {
|
|
1090
|
-
return [
|
|
1090
|
+
return [l(ve.Input, {}), l(ve.Control, {
|
|
1091
1091
|
class: "inline-flex h-5 w-9 shrink-0 items-center rounded-full bg-input px-0.5 transition-colors data-[checked]:bg-primary data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1092
1092
|
get children() {
|
|
1093
|
-
return
|
|
1093
|
+
return l(ve.Thumb, {
|
|
1094
1094
|
class: "h-4 w-4 rounded-full bg-white shadow-sm transition-transform data-[checked]:translate-x-4"
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
|
-
}),
|
|
1097
|
+
}), l(C, {
|
|
1098
1098
|
get when() {
|
|
1099
1099
|
return e.label;
|
|
1100
1100
|
},
|
|
1101
1101
|
get children() {
|
|
1102
|
-
return
|
|
1102
|
+
return l(ve.Label, {
|
|
1103
1103
|
class: "text-sm text-foreground",
|
|
1104
1104
|
get children() {
|
|
1105
1105
|
return e.label;
|
|
@@ -1110,8 +1110,8 @@ function Qo(e) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return
|
|
1113
|
+
function sa(e) {
|
|
1114
|
+
return l(oe, {
|
|
1115
1115
|
get value() {
|
|
1116
1116
|
return e.value;
|
|
1117
1117
|
},
|
|
@@ -1119,26 +1119,26 @@ function el(e) {
|
|
|
1119
1119
|
return e.onChange;
|
|
1120
1120
|
},
|
|
1121
1121
|
get class() {
|
|
1122
|
-
return
|
|
1122
|
+
return v("flex flex-col gap-2", e.class);
|
|
1123
1123
|
},
|
|
1124
1124
|
get children() {
|
|
1125
|
-
return [
|
|
1125
|
+
return [l(C, {
|
|
1126
1126
|
get when() {
|
|
1127
1127
|
return e.label;
|
|
1128
1128
|
},
|
|
1129
1129
|
get children() {
|
|
1130
|
-
return
|
|
1130
|
+
return l(oe.Label, {
|
|
1131
1131
|
class: "text-sm font-medium text-foreground",
|
|
1132
1132
|
get children() {
|
|
1133
1133
|
return e.label;
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
}),
|
|
1137
|
+
}), l(E, {
|
|
1138
1138
|
get each() {
|
|
1139
1139
|
return e.options;
|
|
1140
1140
|
},
|
|
1141
|
-
children: (t) =>
|
|
1141
|
+
children: (t) => l(oe.Item, {
|
|
1142
1142
|
get value() {
|
|
1143
1143
|
return t.value;
|
|
1144
1144
|
},
|
|
@@ -1147,14 +1147,14 @@ function el(e) {
|
|
|
1147
1147
|
},
|
|
1148
1148
|
class: "flex items-center gap-2 text-sm text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1149
1149
|
get children() {
|
|
1150
|
-
return [
|
|
1150
|
+
return [l(oe.ItemInput, {}), l(oe.ItemControl, {
|
|
1151
1151
|
class: "grid h-4 w-4 place-items-center rounded-full border border-input transition-colors data-[checked]:border-primary",
|
|
1152
1152
|
get children() {
|
|
1153
|
-
return
|
|
1153
|
+
return l(oe.ItemIndicator, {
|
|
1154
1154
|
class: "h-2 w-2 rounded-full bg-primary"
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
|
-
}),
|
|
1157
|
+
}), l(oe.ItemLabel, {
|
|
1158
1158
|
get children() {
|
|
1159
1159
|
return t.label;
|
|
1160
1160
|
}
|
|
@@ -1165,39 +1165,39 @@ function el(e) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
|
-
var
|
|
1169
|
-
const
|
|
1170
|
-
function
|
|
1171
|
-
const [t,
|
|
1168
|
+
var Cn = /* @__PURE__ */ m("<textarea>");
|
|
1169
|
+
const Sn = "w-full min-h-[80px] resize-y rounded-md border border-input bg-background text-foreground placeholder:text-muted-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50";
|
|
1170
|
+
function ca(e) {
|
|
1171
|
+
const [t, n] = Y(e, ["value", "onInput", "class"]);
|
|
1172
1172
|
return (() => {
|
|
1173
|
-
var
|
|
1174
|
-
return
|
|
1173
|
+
var r = Cn();
|
|
1174
|
+
return r.$$input = (o) => t.onInput(o.currentTarget.value), V(r, G({
|
|
1175
1175
|
get class() {
|
|
1176
|
-
return
|
|
1176
|
+
return v(Sn, t.class);
|
|
1177
1177
|
},
|
|
1178
1178
|
get value() {
|
|
1179
1179
|
return t.value;
|
|
1180
1180
|
}
|
|
1181
|
-
},
|
|
1181
|
+
}, n), !1, !1), r;
|
|
1182
1182
|
})();
|
|
1183
1183
|
}
|
|
1184
|
-
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1184
|
+
R(["input"]);
|
|
1185
|
+
function da(e) {
|
|
1186
|
+
return l(xe, {
|
|
1187
1187
|
get children() {
|
|
1188
|
-
return [
|
|
1188
|
+
return [l(xe.Trigger, {
|
|
1189
1189
|
class: "inline-flex",
|
|
1190
1190
|
get children() {
|
|
1191
1191
|
return e.children;
|
|
1192
1192
|
}
|
|
1193
|
-
}),
|
|
1193
|
+
}), l(xe.Portal, {
|
|
1194
1194
|
get children() {
|
|
1195
|
-
return
|
|
1195
|
+
return l(xe.Content, {
|
|
1196
1196
|
get class() {
|
|
1197
|
-
return
|
|
1197
|
+
return v("z-50 rounded-md border border-border bg-card px-2.5 py-1.5 text-xs text-card-foreground shadow-md", e.class);
|
|
1198
1198
|
},
|
|
1199
1199
|
get children() {
|
|
1200
|
-
return [
|
|
1200
|
+
return [l(xe.Arrow, {}), ee(() => e.content)];
|
|
1201
1201
|
}
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
@@ -1205,22 +1205,22 @@ function rl(e) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return
|
|
1208
|
+
function ua(e) {
|
|
1209
|
+
return l(be, {
|
|
1210
1210
|
get children() {
|
|
1211
|
-
return [
|
|
1211
|
+
return [l(be.Trigger, {
|
|
1212
1212
|
class: "inline-flex",
|
|
1213
1213
|
get children() {
|
|
1214
1214
|
return e.trigger;
|
|
1215
1215
|
}
|
|
1216
|
-
}),
|
|
1216
|
+
}), l(be.Portal, {
|
|
1217
1217
|
get children() {
|
|
1218
|
-
return
|
|
1218
|
+
return l(be.Content, {
|
|
1219
1219
|
get class() {
|
|
1220
|
-
return
|
|
1220
|
+
return v("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
|
|
1221
1221
|
},
|
|
1222
1222
|
get children() {
|
|
1223
|
-
return [
|
|
1223
|
+
return [l(be.Arrow, {}), ee(() => e.children)];
|
|
1224
1224
|
}
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
@@ -1228,22 +1228,22 @@ function nl(e) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return
|
|
1231
|
+
function ga(e) {
|
|
1232
|
+
return l($e, {
|
|
1233
1233
|
get children() {
|
|
1234
|
-
return [
|
|
1234
|
+
return [l($e.Trigger, {
|
|
1235
1235
|
class: "inline-flex",
|
|
1236
1236
|
get children() {
|
|
1237
1237
|
return e.trigger;
|
|
1238
1238
|
}
|
|
1239
|
-
}),
|
|
1239
|
+
}), l($e.Portal, {
|
|
1240
1240
|
get children() {
|
|
1241
|
-
return
|
|
1241
|
+
return l($e.Content, {
|
|
1242
1242
|
get class() {
|
|
1243
|
-
return
|
|
1243
|
+
return v("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
|
|
1244
1244
|
},
|
|
1245
1245
|
get children() {
|
|
1246
|
-
return [
|
|
1246
|
+
return [l($e.Arrow, {}), ee(() => e.children)];
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
@@ -1251,65 +1251,65 @@ function ol(e) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
|
-
var
|
|
1255
|
-
const
|
|
1254
|
+
var Mn = /* @__PURE__ */ m("<p class=font-semibold>"), Tn = /* @__PURE__ */ m("<div class=flex-1><div class=text-muted-foreground>");
|
|
1255
|
+
const En = {
|
|
1256
1256
|
info: {
|
|
1257
1257
|
wrap: "border-sky-500/30 bg-sky-500/10",
|
|
1258
1258
|
icon: "text-sky-500",
|
|
1259
|
-
Icon:
|
|
1259
|
+
Icon: ht
|
|
1260
1260
|
},
|
|
1261
1261
|
success: {
|
|
1262
1262
|
wrap: "border-emerald-500/30 bg-emerald-500/10",
|
|
1263
1263
|
icon: "text-emerald-500",
|
|
1264
|
-
Icon:
|
|
1264
|
+
Icon: mt
|
|
1265
1265
|
},
|
|
1266
1266
|
warning: {
|
|
1267
1267
|
wrap: "border-amber-500/30 bg-amber-500/10",
|
|
1268
1268
|
icon: "text-amber-500",
|
|
1269
|
-
Icon:
|
|
1269
|
+
Icon: ft
|
|
1270
1270
|
},
|
|
1271
1271
|
danger: {
|
|
1272
1272
|
wrap: "border-rose-500/30 bg-rose-500/10",
|
|
1273
1273
|
icon: "text-rose-500",
|
|
1274
|
-
Icon:
|
|
1274
|
+
Icon: gt
|
|
1275
1275
|
}
|
|
1276
1276
|
};
|
|
1277
|
-
function
|
|
1278
|
-
const t = () =>
|
|
1279
|
-
return
|
|
1277
|
+
function fa(e) {
|
|
1278
|
+
const t = () => En[e.tone ?? "info"];
|
|
1279
|
+
return l(ir, {
|
|
1280
1280
|
get class() {
|
|
1281
|
-
return
|
|
1281
|
+
return v("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
|
|
1282
1282
|
},
|
|
1283
1283
|
get children() {
|
|
1284
|
-
return [
|
|
1284
|
+
return [l(ut, {
|
|
1285
1285
|
get component() {
|
|
1286
1286
|
return t().Icon;
|
|
1287
1287
|
},
|
|
1288
1288
|
get class() {
|
|
1289
|
-
return
|
|
1289
|
+
return v("mt-0.5 h-4 w-4 shrink-0", t().icon);
|
|
1290
1290
|
}
|
|
1291
1291
|
}), (() => {
|
|
1292
|
-
var
|
|
1293
|
-
return
|
|
1292
|
+
var n = Tn(), r = n.firstChild;
|
|
1293
|
+
return c(n, l(C, {
|
|
1294
1294
|
get when() {
|
|
1295
1295
|
return e.title;
|
|
1296
1296
|
},
|
|
1297
1297
|
get children() {
|
|
1298
|
-
var
|
|
1299
|
-
return
|
|
1298
|
+
var o = Mn();
|
|
1299
|
+
return c(o, () => e.title), o;
|
|
1300
1300
|
}
|
|
1301
|
-
}),
|
|
1301
|
+
}), r), c(r, () => e.children), n;
|
|
1302
1302
|
})()];
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
1306
|
+
function Ln(e) {
|
|
1307
|
+
return l(Fe, {
|
|
1308
1308
|
get class() {
|
|
1309
|
-
return
|
|
1309
|
+
return v("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted", e.class);
|
|
1310
1310
|
},
|
|
1311
1311
|
get children() {
|
|
1312
|
-
return [
|
|
1312
|
+
return [l(Fe.Img, {
|
|
1313
1313
|
get src() {
|
|
1314
1314
|
return e.src;
|
|
1315
1315
|
},
|
|
@@ -1317,7 +1317,7 @@ function al(e) {
|
|
|
1317
1317
|
return e.alt;
|
|
1318
1318
|
},
|
|
1319
1319
|
class: "h-full w-full object-cover"
|
|
1320
|
-
}),
|
|
1320
|
+
}), l(Fe.Fallback, {
|
|
1321
1321
|
class: "grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",
|
|
1322
1322
|
get children() {
|
|
1323
1323
|
return e.fallback;
|
|
@@ -1326,27 +1326,27 @@ function al(e) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
|
-
var
|
|
1330
|
-
function
|
|
1329
|
+
var Fn = /* @__PURE__ */ m("<div>");
|
|
1330
|
+
function ma(e) {
|
|
1331
1331
|
return (() => {
|
|
1332
|
-
var t =
|
|
1333
|
-
return
|
|
1332
|
+
var t = Fn();
|
|
1333
|
+
return $(() => k(t, v("animate-pulse rounded-md bg-muted", e.class))), t;
|
|
1334
1334
|
})();
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function ha(e) {
|
|
1337
1337
|
const t = () => e.orientation ?? "horizontal";
|
|
1338
|
-
return
|
|
1338
|
+
return l(ar, {
|
|
1339
1339
|
get orientation() {
|
|
1340
1340
|
return t();
|
|
1341
1341
|
},
|
|
1342
1342
|
get class() {
|
|
1343
|
-
return
|
|
1343
|
+
return v("bg-border", t() === "vertical" ? "w-px self-stretch" : "h-px w-full", e.class);
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1349
|
-
return
|
|
1347
|
+
var In = /* @__PURE__ */ m('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1348
|
+
function va(e) {
|
|
1349
|
+
return l(we, {
|
|
1350
1350
|
get value() {
|
|
1351
1351
|
return e.value;
|
|
1352
1352
|
},
|
|
@@ -1355,27 +1355,27 @@ function cl(e) {
|
|
|
1355
1355
|
return e.max ?? 100;
|
|
1356
1356
|
},
|
|
1357
1357
|
get class() {
|
|
1358
|
-
return
|
|
1358
|
+
return v("flex flex-col gap-1.5", e.class);
|
|
1359
1359
|
},
|
|
1360
1360
|
get children() {
|
|
1361
|
-
return [
|
|
1361
|
+
return [l(C, {
|
|
1362
1362
|
get when() {
|
|
1363
1363
|
return e.label;
|
|
1364
1364
|
},
|
|
1365
1365
|
get children() {
|
|
1366
|
-
var t =
|
|
1367
|
-
return
|
|
1366
|
+
var t = In();
|
|
1367
|
+
return c(t, l(we.Label, {
|
|
1368
1368
|
get children() {
|
|
1369
1369
|
return e.label;
|
|
1370
1370
|
}
|
|
1371
|
-
}), null),
|
|
1371
|
+
}), null), c(t, l(we.ValueLabel, {
|
|
1372
1372
|
class: "text-muted-foreground"
|
|
1373
1373
|
}), null), t;
|
|
1374
1374
|
}
|
|
1375
|
-
}),
|
|
1375
|
+
}), l(we.Track, {
|
|
1376
1376
|
class: "h-2 overflow-hidden rounded-full bg-muted",
|
|
1377
1377
|
get children() {
|
|
1378
|
-
return
|
|
1378
|
+
return l(we.Fill, {
|
|
1379
1379
|
class: "h-full rounded-full bg-primary transition-all"
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
@@ -1383,9 +1383,9 @@ function cl(e) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1388
|
-
return
|
|
1386
|
+
var An = /* @__PURE__ */ m('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1387
|
+
function xa(e) {
|
|
1388
|
+
return l(ye, {
|
|
1389
1389
|
get value() {
|
|
1390
1390
|
return e.value;
|
|
1391
1391
|
},
|
|
@@ -1394,27 +1394,27 @@ function sl(e) {
|
|
|
1394
1394
|
return e.max ?? 100;
|
|
1395
1395
|
},
|
|
1396
1396
|
get class() {
|
|
1397
|
-
return
|
|
1397
|
+
return v("flex flex-col gap-1.5", e.class);
|
|
1398
1398
|
},
|
|
1399
1399
|
get children() {
|
|
1400
|
-
return [
|
|
1400
|
+
return [l(C, {
|
|
1401
1401
|
get when() {
|
|
1402
1402
|
return e.label;
|
|
1403
1403
|
},
|
|
1404
1404
|
get children() {
|
|
1405
|
-
var t =
|
|
1406
|
-
return
|
|
1405
|
+
var t = An();
|
|
1406
|
+
return c(t, l(ye.Label, {
|
|
1407
1407
|
get children() {
|
|
1408
1408
|
return e.label;
|
|
1409
1409
|
}
|
|
1410
|
-
}), null),
|
|
1410
|
+
}), null), c(t, l(ye.ValueLabel, {
|
|
1411
1411
|
class: "text-muted-foreground"
|
|
1412
1412
|
}), null), t;
|
|
1413
1413
|
}
|
|
1414
|
-
}),
|
|
1414
|
+
}), l(ye.Track, {
|
|
1415
1415
|
class: "h-2 overflow-hidden rounded-full bg-muted",
|
|
1416
1416
|
get children() {
|
|
1417
|
-
return
|
|
1417
|
+
return l(ye.Fill, {
|
|
1418
1418
|
class: "h-full rounded-full bg-primary transition-all"
|
|
1419
1419
|
});
|
|
1420
1420
|
}
|
|
@@ -1422,9 +1422,9 @@ function sl(e) {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
var
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1425
|
+
var Dn = /* @__PURE__ */ m('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1426
|
+
function ba(e) {
|
|
1427
|
+
return l(ie, {
|
|
1428
1428
|
get value() {
|
|
1429
1429
|
return [e.value];
|
|
1430
1430
|
},
|
|
@@ -1439,32 +1439,32 @@ function ul(e) {
|
|
|
1439
1439
|
return e.step ?? 1;
|
|
1440
1440
|
},
|
|
1441
1441
|
get class() {
|
|
1442
|
-
return
|
|
1442
|
+
return v("flex flex-col gap-2", e.class);
|
|
1443
1443
|
},
|
|
1444
1444
|
get children() {
|
|
1445
|
-
return [
|
|
1445
|
+
return [l(C, {
|
|
1446
1446
|
get when() {
|
|
1447
1447
|
return e.label;
|
|
1448
1448
|
},
|
|
1449
1449
|
get children() {
|
|
1450
|
-
var t =
|
|
1451
|
-
return
|
|
1450
|
+
var t = Dn();
|
|
1451
|
+
return c(t, l(ie.Label, {
|
|
1452
1452
|
get children() {
|
|
1453
1453
|
return e.label;
|
|
1454
1454
|
}
|
|
1455
|
-
}), null),
|
|
1455
|
+
}), null), c(t, l(ie.ValueLabel, {
|
|
1456
1456
|
class: "text-muted-foreground"
|
|
1457
1457
|
}), null), t;
|
|
1458
1458
|
}
|
|
1459
|
-
}),
|
|
1459
|
+
}), l(ie.Track, {
|
|
1460
1460
|
class: "relative h-1.5 w-full rounded-full bg-muted",
|
|
1461
1461
|
get children() {
|
|
1462
|
-
return [
|
|
1462
|
+
return [l(ie.Fill, {
|
|
1463
1463
|
class: "absolute h-full rounded-full bg-primary"
|
|
1464
|
-
}),
|
|
1464
|
+
}), l(ie.Thumb, {
|
|
1465
1465
|
class: "-top-1.5 block h-4 w-4 rounded-full bg-primary outline-none focus:ring-2 focus:ring-ring/40",
|
|
1466
1466
|
get children() {
|
|
1467
|
-
return
|
|
1467
|
+
return l(ie.Input, {});
|
|
1468
1468
|
}
|
|
1469
1469
|
})];
|
|
1470
1470
|
}
|
|
@@ -1472,9 +1472,9 @@ function ul(e) {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
|
-
const
|
|
1476
|
-
function
|
|
1477
|
-
return
|
|
1475
|
+
const We = "grid h-9 w-9 shrink-0 place-items-center border border-input bg-background text-foreground transition-colors hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50";
|
|
1476
|
+
function $a(e) {
|
|
1477
|
+
return l(Ce, {
|
|
1478
1478
|
get rawValue() {
|
|
1479
1479
|
return e.value;
|
|
1480
1480
|
},
|
|
@@ -1486,20 +1486,20 @@ function gl(e) {
|
|
|
1486
1486
|
return e.max;
|
|
1487
1487
|
},
|
|
1488
1488
|
get class() {
|
|
1489
|
-
return
|
|
1489
|
+
return v("inline-flex items-stretch", e.class);
|
|
1490
1490
|
},
|
|
1491
1491
|
get children() {
|
|
1492
|
-
return [
|
|
1492
|
+
return [l(Ce.DecrementTrigger, {
|
|
1493
1493
|
get class() {
|
|
1494
|
-
return
|
|
1494
|
+
return v(We, "rounded-l-md");
|
|
1495
1495
|
},
|
|
1496
1496
|
"aria-label": "Decrement",
|
|
1497
1497
|
children: "−"
|
|
1498
|
-
}),
|
|
1498
|
+
}), l(Ce.Input, {
|
|
1499
1499
|
class: "w-16 border-y border-input bg-background px-3 py-2 text-center text-sm text-foreground outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30"
|
|
1500
|
-
}),
|
|
1500
|
+
}), l(Ce.IncrementTrigger, {
|
|
1501
1501
|
get class() {
|
|
1502
|
-
return
|
|
1502
|
+
return v(We, "rounded-r-md");
|
|
1503
1503
|
},
|
|
1504
1504
|
"aria-label": "Increment",
|
|
1505
1505
|
children: "+"
|
|
@@ -1507,8 +1507,8 @@ function gl(e) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1510
|
+
function wa(e) {
|
|
1511
|
+
return l(sr, {
|
|
1512
1512
|
get pressed() {
|
|
1513
1513
|
return e.pressed;
|
|
1514
1514
|
},
|
|
@@ -1516,7 +1516,7 @@ function fl(e) {
|
|
|
1516
1516
|
return e.onChange;
|
|
1517
1517
|
},
|
|
1518
1518
|
get class() {
|
|
1519
|
-
return
|
|
1519
|
+
return v(
|
|
1520
1520
|
// Outlined at rest so it reads as a button; filled primary when pressed
|
|
1521
1521
|
// so the "on" state is unmistakable (the resting muted look alone made it
|
|
1522
1522
|
// look like stray text).
|
|
@@ -1529,8 +1529,8 @@ function fl(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return
|
|
1532
|
+
function ya(e) {
|
|
1533
|
+
return l(Xe, {
|
|
1534
1534
|
get value() {
|
|
1535
1535
|
return e.value;
|
|
1536
1536
|
},
|
|
@@ -1538,14 +1538,14 @@ function ml(e) {
|
|
|
1538
1538
|
return e.onChange;
|
|
1539
1539
|
},
|
|
1540
1540
|
get class() {
|
|
1541
|
-
return
|
|
1541
|
+
return v("inline-flex gap-1 rounded-md border border-border bg-card p-1", e.class);
|
|
1542
1542
|
},
|
|
1543
1543
|
get children() {
|
|
1544
|
-
return
|
|
1544
|
+
return l(E, {
|
|
1545
1545
|
get each() {
|
|
1546
1546
|
return e.options;
|
|
1547
1547
|
},
|
|
1548
|
-
children: (t) =>
|
|
1548
|
+
children: (t) => l(Xe.Item, {
|
|
1549
1549
|
get value() {
|
|
1550
1550
|
return t.value;
|
|
1551
1551
|
},
|
|
@@ -1558,8 +1558,8 @@ function ml(e) {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return
|
|
1561
|
+
function pa(e) {
|
|
1562
|
+
return l(pe, {
|
|
1563
1563
|
get value() {
|
|
1564
1564
|
return e.value;
|
|
1565
1565
|
},
|
|
@@ -1567,22 +1567,22 @@ function hl(e) {
|
|
|
1567
1567
|
return e.onChange;
|
|
1568
1568
|
},
|
|
1569
1569
|
get class() {
|
|
1570
|
-
return
|
|
1570
|
+
return v("relative inline-flex rounded-md border border-border bg-card p-1", e.class);
|
|
1571
1571
|
},
|
|
1572
1572
|
get children() {
|
|
1573
|
-
return [
|
|
1573
|
+
return [l(pe.Indicator, {
|
|
1574
1574
|
class: "absolute rounded-sm bg-primary shadow-sm transition-all"
|
|
1575
|
-
}),
|
|
1575
|
+
}), l(E, {
|
|
1576
1576
|
get each() {
|
|
1577
1577
|
return e.options;
|
|
1578
1578
|
},
|
|
1579
|
-
children: (t) =>
|
|
1579
|
+
children: (t) => l(pe.Item, {
|
|
1580
1580
|
get value() {
|
|
1581
1581
|
return t.value;
|
|
1582
1582
|
},
|
|
1583
1583
|
class: "relative z-10 flex cursor-pointer items-center px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors data-[selected]:text-primary-foreground",
|
|
1584
1584
|
get children() {
|
|
1585
|
-
return [
|
|
1585
|
+
return [l(pe.ItemInput, {}), l(pe.ItemLabel, {
|
|
1586
1586
|
get children() {
|
|
1587
1587
|
return t.label;
|
|
1588
1588
|
}
|
|
@@ -1593,49 +1593,49 @@ function hl(e) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1597
|
-
function
|
|
1598
|
-
return
|
|
1596
|
+
var zn = /* @__PURE__ */ m('<ol class="flex items-center gap-2 text-muted-foreground">'), Rn = /* @__PURE__ */ m('<li class="flex items-center gap-2">'), On = /* @__PURE__ */ m("<span>");
|
|
1597
|
+
function _a(e) {
|
|
1598
|
+
return l(Ie, {
|
|
1599
1599
|
get class() {
|
|
1600
|
-
return
|
|
1600
|
+
return v("text-sm", e.class);
|
|
1601
1601
|
},
|
|
1602
1602
|
get children() {
|
|
1603
|
-
var t =
|
|
1604
|
-
return
|
|
1603
|
+
var t = zn();
|
|
1604
|
+
return c(t, l(E, {
|
|
1605
1605
|
get each() {
|
|
1606
1606
|
return e.items;
|
|
1607
1607
|
},
|
|
1608
|
-
children: (
|
|
1609
|
-
const
|
|
1608
|
+
children: (n, r) => {
|
|
1609
|
+
const o = () => r() === e.items.length - 1;
|
|
1610
1610
|
return (() => {
|
|
1611
|
-
var a =
|
|
1612
|
-
return
|
|
1611
|
+
var a = Rn();
|
|
1612
|
+
return c(a, l(C, {
|
|
1613
1613
|
get when() {
|
|
1614
|
-
return
|
|
1614
|
+
return ee(() => !!n.href)() && !o();
|
|
1615
1615
|
},
|
|
1616
1616
|
get fallback() {
|
|
1617
1617
|
return (() => {
|
|
1618
|
-
var
|
|
1619
|
-
return i
|
|
1618
|
+
var i = On();
|
|
1619
|
+
return c(i, () => n.label), $(() => k(i, o() ? "font-medium text-foreground" : void 0)), i;
|
|
1620
1620
|
})();
|
|
1621
1621
|
},
|
|
1622
1622
|
get children() {
|
|
1623
|
-
return
|
|
1623
|
+
return l(Ie.Link, {
|
|
1624
1624
|
get href() {
|
|
1625
|
-
return
|
|
1625
|
+
return n.href;
|
|
1626
1626
|
},
|
|
1627
1627
|
class: "transition-colors hover:text-foreground",
|
|
1628
1628
|
get children() {
|
|
1629
|
-
return
|
|
1629
|
+
return n.label;
|
|
1630
1630
|
}
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
-
}), null),
|
|
1633
|
+
}), null), c(a, l(C, {
|
|
1634
1634
|
get when() {
|
|
1635
|
-
return !
|
|
1635
|
+
return !o();
|
|
1636
1636
|
},
|
|
1637
1637
|
get children() {
|
|
1638
|
-
return
|
|
1638
|
+
return l(Ie.Separator, {
|
|
1639
1639
|
class: "text-muted-foreground/60"
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
@@ -1646,9 +1646,9 @@ function bl(e) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
|
-
var
|
|
1650
|
-
function
|
|
1651
|
-
return
|
|
1649
|
+
var jn = /* @__PURE__ */ m("<div class=p-6>"), Pn = /* @__PURE__ */ m('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
|
|
1650
|
+
function ka(e) {
|
|
1651
|
+
return l(ce, {
|
|
1652
1652
|
get open() {
|
|
1653
1653
|
return e.open;
|
|
1654
1654
|
},
|
|
@@ -1656,36 +1656,36 @@ function xl(e) {
|
|
|
1656
1656
|
return e.onOpenChange;
|
|
1657
1657
|
},
|
|
1658
1658
|
get children() {
|
|
1659
|
-
return
|
|
1659
|
+
return l(ce.Portal, {
|
|
1660
1660
|
get children() {
|
|
1661
|
-
return [
|
|
1661
|
+
return [l(ce.Overlay, {
|
|
1662
1662
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
1663
1663
|
}), (() => {
|
|
1664
|
-
var t =
|
|
1665
|
-
return
|
|
1664
|
+
var t = Pn();
|
|
1665
|
+
return c(t, l(ce.Content, {
|
|
1666
1666
|
get class() {
|
|
1667
|
-
return
|
|
1667
|
+
return v("modal-content w-full max-w-md rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
1668
1668
|
},
|
|
1669
1669
|
get children() {
|
|
1670
|
-
var
|
|
1671
|
-
return
|
|
1670
|
+
var n = jn();
|
|
1671
|
+
return c(n, l(C, {
|
|
1672
1672
|
get when() {
|
|
1673
1673
|
return e.title;
|
|
1674
1674
|
},
|
|
1675
1675
|
get children() {
|
|
1676
|
-
return
|
|
1676
|
+
return l(ce.Title, {
|
|
1677
1677
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
1678
1678
|
get children() {
|
|
1679
1679
|
return e.title;
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
1682
|
}
|
|
1683
|
-
}), null),
|
|
1683
|
+
}), null), c(n, l(ce.Description, {
|
|
1684
1684
|
class: "mt-3 text-sm text-muted-foreground",
|
|
1685
1685
|
get children() {
|
|
1686
1686
|
return e.children;
|
|
1687
1687
|
}
|
|
1688
|
-
}), null),
|
|
1688
|
+
}), null), n;
|
|
1689
1689
|
}
|
|
1690
1690
|
})), t;
|
|
1691
1691
|
})()];
|
|
@@ -1694,28 +1694,28 @@ function xl(e) {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1697
|
+
function Ca(e) {
|
|
1698
|
+
return l(_e, {
|
|
1699
1699
|
get children() {
|
|
1700
|
-
return [
|
|
1700
|
+
return [l(_e.Trigger, {
|
|
1701
1701
|
get class() {
|
|
1702
|
-
return
|
|
1702
|
+
return v("inline-flex", e.class);
|
|
1703
1703
|
},
|
|
1704
1704
|
get children() {
|
|
1705
1705
|
return e.children;
|
|
1706
1706
|
}
|
|
1707
|
-
}),
|
|
1707
|
+
}), l(_e.Portal, {
|
|
1708
1708
|
get children() {
|
|
1709
|
-
return
|
|
1709
|
+
return l(_e.Content, {
|
|
1710
1710
|
class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1711
1711
|
get children() {
|
|
1712
|
-
return
|
|
1712
|
+
return l(E, {
|
|
1713
1713
|
get each() {
|
|
1714
1714
|
return e.items;
|
|
1715
1715
|
},
|
|
1716
|
-
children: (t) =>
|
|
1716
|
+
children: (t) => l(_e.Item, {
|
|
1717
1717
|
get class() {
|
|
1718
|
-
return
|
|
1718
|
+
return v("cursor-pointer select-none rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-muted data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t.destructive && "text-destructive");
|
|
1719
1719
|
},
|
|
1720
1720
|
get disabled() {
|
|
1721
1721
|
return t.disabled;
|
|
@@ -1735,8 +1735,8 @@ function vl(e) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
});
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1739
|
-
return
|
|
1738
|
+
function Sa(e) {
|
|
1739
|
+
return l(K, {
|
|
1740
1740
|
get options() {
|
|
1741
1741
|
return e.options;
|
|
1742
1742
|
},
|
|
@@ -1748,21 +1748,21 @@ function pl(e) {
|
|
|
1748
1748
|
return e.placeholder;
|
|
1749
1749
|
},
|
|
1750
1750
|
get class() {
|
|
1751
|
-
return
|
|
1751
|
+
return v("w-full", e.class);
|
|
1752
1752
|
},
|
|
1753
|
-
itemComponent: (t) =>
|
|
1753
|
+
itemComponent: (t) => l(K.Item, {
|
|
1754
1754
|
get item() {
|
|
1755
1755
|
return t.item;
|
|
1756
1756
|
},
|
|
1757
1757
|
class: "flex cursor-pointer select-none items-center justify-between rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-muted",
|
|
1758
1758
|
get children() {
|
|
1759
|
-
return [
|
|
1759
|
+
return [l(K.ItemLabel, {
|
|
1760
1760
|
get children() {
|
|
1761
1761
|
return t.item.rawValue;
|
|
1762
1762
|
}
|
|
1763
|
-
}),
|
|
1763
|
+
}), l(K.ItemIndicator, {
|
|
1764
1764
|
get children() {
|
|
1765
|
-
return
|
|
1765
|
+
return l(vt, {
|
|
1766
1766
|
class: "h-4 w-4"
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
@@ -1770,17 +1770,17 @@ function pl(e) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
}),
|
|
1772
1772
|
get children() {
|
|
1773
|
-
return [
|
|
1773
|
+
return [l(K.Control, {
|
|
1774
1774
|
class: "flex w-full items-center rounded-md border border-input bg-background text-foreground transition-colors focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30",
|
|
1775
1775
|
get children() {
|
|
1776
|
-
return [
|
|
1776
|
+
return [l(K.Input, {
|
|
1777
1777
|
class: "w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
|
|
1778
|
-
}),
|
|
1778
|
+
}), l(K.Trigger, {
|
|
1779
1779
|
class: "grid h-9 w-9 shrink-0 place-items-center text-muted-foreground",
|
|
1780
1780
|
get children() {
|
|
1781
|
-
return
|
|
1781
|
+
return l(K.Icon, {
|
|
1782
1782
|
get children() {
|
|
1783
|
-
return
|
|
1783
|
+
return l(Xt, {
|
|
1784
1784
|
class: "h-4 w-4"
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
@@ -1788,12 +1788,12 @@ function pl(e) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
})];
|
|
1790
1790
|
}
|
|
1791
|
-
}),
|
|
1791
|
+
}), l(K.Portal, {
|
|
1792
1792
|
get children() {
|
|
1793
|
-
return
|
|
1793
|
+
return l(K.Content, {
|
|
1794
1794
|
class: "z-50 overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1795
1795
|
get children() {
|
|
1796
|
-
return
|
|
1796
|
+
return l(K.Listbox, {
|
|
1797
1797
|
class: "max-h-60 overflow-y-auto"
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
@@ -1803,377 +1803,1752 @@ function pl(e) {
|
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
}, n = () => {
|
|
1821
|
-
t && (t.style.opacity = "0");
|
|
1822
|
-
}, l = (a) => {
|
|
1823
|
-
var c, g;
|
|
1824
|
-
const d = (g = (c = a.target) == null ? void 0 : c.closest) == null ? void 0 : g.call(c, ".magnetic");
|
|
1825
|
-
d && (d.style.transform = "");
|
|
1826
|
-
};
|
|
1827
|
-
return document.addEventListener("pointermove", o), window.addEventListener("pointerleave", n), document.addEventListener("pointerout", l), () => {
|
|
1828
|
-
document.removeEventListener("pointermove", o), window.removeEventListener("pointerleave", n), document.removeEventListener("pointerout", l);
|
|
1829
|
-
};
|
|
1830
|
-
}
|
|
1831
|
-
var vn = /* @__PURE__ */ u('<div id=space aria-hidden=true><div class=sky></div><div class=aurora></div><div id=starfield></div><svg class=constellation viewBox="0 0 260 170"style=position:absolute;top:6%;left:58%;width:260px;height:170px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=12 y1=120 x2=70 y2=60></line><line x1=70 y1=60 x2=140 y2=80></line><line x1=140 y1=80 x2=205 y2=30></line><line x1=140 y1=80 x2=170 y2=140></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=12 cy=120 r=3.6></circle><circle cx=70 cy=60 r=4.2></circle><circle cx=140 cy=80 r=3.6></circle><circle cx=205 cy=30 r=3.8></circle><circle cx=170 cy=140 r=3.4></circle></g></svg><svg class=constellation viewBox="0 0 200 130"style=position:absolute;bottom:8%;left:10%;width:200px;height:130px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=10 y1=20 x2=60 y2=55></line><line x1=60 y1=55 x2=120 y2=40></line><line x1=120 y1=40 x2=180 y2=90></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=10 cy=20 r=3.4></circle><circle cx=60 cy=55 r=4></circle><circle cx=120 cy=40 r=3.6></circle><circle cx=180 cy=90 r=3.8></circle></g></svg><div class="floaty slow"style=position:absolute;top:88px;right:-30px><div class=planet style="width:120px;height:120px;background:radial-gradient(circle at 32% 28%, color-mix(in srgb, hsl(var(--primary)) 78%, white), hsl(var(--primary)) 70%, color-mix(in srgb, hsl(var(--primary)) 68%, black));opacity:.7;box-shadow:0 0 60px hsl(var(--primary) / .35)"></div></div><div class=floaty style=position:absolute;bottom:60px;left:-24px><div class=planet-glow style="width:72px;height:72px;background:radial-gradient(circle at 36% 30%, color-mix(in srgb, hsl(var(--accent)) 75%, white), hsl(var(--accent)) 72%, color-mix(in srgb, hsl(var(--accent)) 66%, black));opacity:.6;box-shadow:0 0 44px hsl(var(--accent) / .4)"></div></div><div class="floaty slow"style=position:absolute;top:52%;right:6%><div class=planet-glow style="width:26px;height:26px;background:radial-gradient(circle at 35% 30%, hsl(199 60% 90%), hsl(210 30% 62%));opacity:.5"></div></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / .10), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease"></div><div id=satellite style="position:absolute;top:14%;left:-6%;transform:rotate(-18deg);filter:drop-shadow(0 0 4px hsl(var(--accent) / .8))">');
|
|
1832
|
-
const Ve = [{
|
|
1833
|
-
angle: 22,
|
|
1834
|
-
x: [0, 32],
|
|
1835
|
-
y: [-6, 18]
|
|
1836
|
-
}, {
|
|
1837
|
-
angle: -24,
|
|
1838
|
-
x: [0, 32],
|
|
1839
|
-
y: [55, 82]
|
|
1840
|
-
}, {
|
|
1841
|
-
angle: 158,
|
|
1842
|
-
x: [62, 96],
|
|
1843
|
-
y: [-6, 22]
|
|
1844
|
-
}, {
|
|
1845
|
-
angle: 202,
|
|
1846
|
-
x: [62, 96],
|
|
1847
|
-
y: [52, 80]
|
|
1848
|
-
}], pn = ["255,255,255", "180,210,255", "255,228,170", "210,185,255", "165,230,255"], $n = ["198,146,28", "176,120,18", "214,162,46", "160,110,28", "190,134,34"], yn = `<svg viewBox="0 0 24 82" width="100%" height="100%" style="display:block;overflow:visible">
|
|
1849
|
-
<g class="rk-flame">
|
|
1850
|
-
<path d="M8.5 31 C 8 50, 11 70, 12 80 C 13 70, 16 50, 15.5 31 Z" fill="#ff6a00" opacity="0.8"/>
|
|
1851
|
-
<path d="M9.6 31 C 9.4 47, 11.2 60, 12 70 C 12.8 60, 14.6 47, 14.4 31 Z" fill="#ffb020" opacity="0.95"/>
|
|
1852
|
-
<path d="M10.6 31 C 10.6 43, 11.6 52, 12 60 C 12.4 52, 13.4 43, 13.4 31 Z" fill="#fff2b0"/>
|
|
1853
|
-
</g>
|
|
1854
|
-
<path d="M12 2 C 16 8, 16 20, 15 32 L 9 32 C 8 20, 8 8, 12 2 Z" fill="#e6edf7"/>
|
|
1855
|
-
<path d="M12 2 C 15 8, 15 13, 14.6 15 L 9.4 15 C 9 13, 9 8, 12 2 Z" fill="#ef5a3a"/>
|
|
1856
|
-
<path d="M9 26 L 4.6 34 L 9 31 Z" fill="#ef5a3a"/>
|
|
1857
|
-
<path d="M15 26 L 19.4 34 L 15 31 Z" fill="#ef5a3a"/>
|
|
1858
|
-
<circle cx="12" cy="19" r="2.3" fill="#8fd0ff" stroke="#2f6aa8" stroke-width="1"/>
|
|
1859
|
-
</svg>`, wn = 66, _n = 7;
|
|
1860
|
-
function kn(e) {
|
|
1861
|
-
const t = Math.random, o = () => e[Math.floor(t() * e.length)];
|
|
1862
|
-
let n = "";
|
|
1863
|
-
for (let l = 0; l < wn; l++) {
|
|
1864
|
-
const a = t() < 0.12, d = a ? 3 + t() * 1.8 : 1.2 + t() * 1.8, c = a ? 0.85 + t() * 0.15 : 0.3 + t() * 0.55, g = a ? 6 + t() * 8 : 1.5 + t() * 4, s = o(), m = t() < 0.4 ? `animation:twinkle ${(2.6 + t() * 3.5).toFixed(1)}s ease-in-out ${(t() * 4).toFixed(1)}s infinite;` : "";
|
|
1865
|
-
n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${d.toFixed(1)}px;height:${d.toFixed(1)}px;border-radius:50%;background:rgba(${s},${c.toFixed(2)});box-shadow:0 0 ${g.toFixed(1)}px rgba(${s},${(c * 0.8).toFixed(2)});${m}"></span>`;
|
|
1866
|
-
}
|
|
1867
|
-
for (let l = 0; l < _n; l++) {
|
|
1868
|
-
const a = o(), d = (1.8 + t() * 1.8).toFixed(1), c = (0.7 + t() * 0.3).toFixed(2), g = (4 + t() * 6).toFixed(1), s = (4 + t() * 86).toFixed(1), m = t() < 0.5, h = m ? "106%" : "-6%", w = m ? "-118vw" : "118vw", v = `${((t() * 2 - 1) * 16).toFixed(1)}vh`, _ = 34 + t() * 34, T = (-t() * _).toFixed(1);
|
|
1869
|
-
n += `<span style="position:absolute;left:${h};top:${s}%;width:${d}px;height:${d}px;border-radius:50%;background:rgba(${a},${c});box-shadow:0 0 ${g}px rgba(${a},${(Number(c) * 0.8).toFixed(2)});--dx:${w};--dy:${v};animation:starDrift ${_.toFixed(1)}s linear ${T}s infinite;"></span>`;
|
|
1870
|
-
}
|
|
1871
|
-
return n;
|
|
1872
|
-
}
|
|
1873
|
-
function Cn() {
|
|
1874
|
-
let e, t;
|
|
1875
|
-
const o = tt();
|
|
1876
|
-
return pe(() => {
|
|
1877
|
-
const n = o() === "light" ? $n : pn;
|
|
1878
|
-
t && (t.innerHTML = kn(n));
|
|
1879
|
-
}), Me(() => {
|
|
1880
|
-
const n = [], l = [], a = (b, y, p, O) => {
|
|
1881
|
-
b.addEventListener(y, p, O), n.push(() => b.removeEventListener(y, p, O));
|
|
1882
|
-
};
|
|
1883
|
-
let d = 0, c = 0, g = 0;
|
|
1884
|
-
const s = () => {
|
|
1885
|
-
d = 0, t && (t.style.transform = `translate3d(${c.toFixed(1)}px, ${g.toFixed(1)}px, 0)`), e.querySelectorAll(".constellation").forEach((b) => {
|
|
1886
|
-
b.style.transform = `translate3d(${(c * 1.8).toFixed(1)}px, ${(g * 1.8).toFixed(1)}px, 0)`;
|
|
1887
|
-
});
|
|
1888
|
-
};
|
|
1889
|
-
let m = null, h = null;
|
|
1890
|
-
const w = (b) => {
|
|
1891
|
-
if (ve() || b.gamma == null || b.beta == null) return;
|
|
1892
|
-
m === null && (m = b.gamma, h = b.beta);
|
|
1893
|
-
const y = Math.max(-25, Math.min(25, b.gamma - m)), p = Math.max(-25, Math.min(25, b.beta - (h ?? 0)));
|
|
1894
|
-
c = y / 25 * 16, g = p / 25 * 16, d || (d = requestAnimationFrame(s));
|
|
1895
|
-
}, v = window.DeviceOrientationEvent;
|
|
1896
|
-
if (v)
|
|
1897
|
-
if (typeof v.requestPermission == "function") {
|
|
1898
|
-
let b = !1;
|
|
1899
|
-
const y = () => {
|
|
1900
|
-
var p;
|
|
1901
|
-
b || (p = v.requestPermission) == null || p.call(v).then((O) => {
|
|
1902
|
-
O === "granted" && (b = !0, a(window, "deviceorientation", w));
|
|
1903
|
-
}).catch(() => {
|
|
1904
|
-
});
|
|
1905
|
-
};
|
|
1906
|
-
a(window, "click", y), a(window, "touchend", y);
|
|
1907
|
-
} else
|
|
1908
|
-
a(window, "deviceorientation", w);
|
|
1909
|
-
n.push(() => {
|
|
1910
|
-
d && cancelAnimationFrame(d);
|
|
1911
|
-
});
|
|
1912
|
-
const _ = (b, y, p, O, G, X) => {
|
|
1913
|
-
const k = document.createElement("div");
|
|
1914
|
-
k.className = "shooter", k.style.width = `${O}px`, k.style.left = b, k.style.top = y, e.appendChild(k);
|
|
1915
|
-
const le = k.animate([{
|
|
1916
|
-
opacity: 0,
|
|
1917
|
-
transform: `rotate(${p}deg) translateX(0px) scaleX(.4)`
|
|
1918
|
-
}, {
|
|
1919
|
-
opacity: 1,
|
|
1920
|
-
transform: `rotate(${p}deg) translateX(${G * 0.35}px) scaleX(1)`,
|
|
1921
|
-
offset: 0.5
|
|
1922
|
-
}, {
|
|
1923
|
-
opacity: 0,
|
|
1924
|
-
transform: `rotate(${p}deg) translateX(${G}px) scaleX(1)`
|
|
1925
|
-
}], {
|
|
1926
|
-
duration: X,
|
|
1927
|
-
easing: "cubic-bezier(.3,0,.15,1)",
|
|
1928
|
-
fill: "forwards"
|
|
1929
|
-
});
|
|
1930
|
-
le.onfinish = () => k.remove(), l.push(window.setTimeout(() => k.remove(), X + 250));
|
|
1931
|
-
}, T = (b, y, p, O, G, X) => {
|
|
1932
|
-
const k = document.createElement("div"), le = O * (82 / 24);
|
|
1933
|
-
k.style.cssText = `position:absolute;left:${b};top:${y};width:${O.toFixed(0)}px;height:${le.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, k.innerHTML = yn, e.appendChild(k);
|
|
1934
|
-
const ye = p * Math.PI / 180, x = Math.cos(ye) * G, C = Math.sin(ye) * G, j = p + 90, H = k.animate([{
|
|
1935
|
-
opacity: 0,
|
|
1936
|
-
transform: `translate(0px,0px) rotate(${j}deg) scale(.5)`
|
|
1937
|
-
}, {
|
|
1938
|
-
opacity: 1,
|
|
1939
|
-
transform: `translate(${(x * 0.12).toFixed(0)}px,${(C * 0.12).toFixed(0)}px) rotate(${j}deg) scale(1)`,
|
|
1940
|
-
offset: 0.14
|
|
1941
|
-
}, {
|
|
1942
|
-
opacity: 1,
|
|
1943
|
-
transform: `translate(${(x * 0.82).toFixed(0)}px,${(C * 0.82).toFixed(0)}px) rotate(${j}deg) scale(1)`,
|
|
1944
|
-
offset: 0.82
|
|
1945
|
-
}, {
|
|
1946
|
-
opacity: 0,
|
|
1947
|
-
transform: `translate(${x.toFixed(0)}px,${C.toFixed(0)}px) rotate(${j}deg) scale(.85)`
|
|
1948
|
-
}], {
|
|
1949
|
-
duration: X,
|
|
1950
|
-
easing: "cubic-bezier(.25,0,.2,1)",
|
|
1951
|
-
fill: "forwards"
|
|
1952
|
-
});
|
|
1953
|
-
H.onfinish = () => k.remove(), l.push(window.setTimeout(() => k.remove(), X + 250));
|
|
1954
|
-
}, I = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
|
|
1955
|
-
if (a(document, "click", ((b) => {
|
|
1956
|
-
var y, p;
|
|
1957
|
-
(p = (y = b.target) == null ? void 0 : y.closest) != null && p.call(y, I) || (o() === "light" ? T(
|
|
1958
|
-
`${b.clientX}px`,
|
|
1959
|
-
`${b.clientY}px`,
|
|
1960
|
-
-90 + (Math.random() * 80 - 40),
|
|
1961
|
-
// up-and-out from the click
|
|
1962
|
-
16 + Math.random() * 10,
|
|
1963
|
-
260 + Math.random() * 280,
|
|
1964
|
-
950 + Math.random() * 700
|
|
1965
|
-
) : _(`${b.clientX}px`, `${b.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
|
|
1966
|
-
})), !ve()) {
|
|
1967
|
-
const b = () => {
|
|
1968
|
-
if (o() === "light") {
|
|
1969
|
-
T(`${(5 + Math.random() * 90).toFixed(0)}vw`, "104vh", -90 + (Math.random() * 30 - 15), 13 + Math.random() * 9, window.innerHeight * (1.1 + Math.random() * 0.35), 5200 + Math.random() * 3500);
|
|
1970
|
-
return;
|
|
1971
|
-
}
|
|
1972
|
-
const p = Ve[Math.floor(Math.random() * Ve.length)];
|
|
1973
|
-
_(`${p.x[0] + Math.random() * (p.x[1] - p.x[0])}vw`, `${p.y[0] + Math.random() * (p.y[1] - p.y[0])}vh`, p.angle + (Math.random() * 16 - 8), 90 + Math.random() * 90, 380 + Math.random() * 300, 850 + Math.random() * 550);
|
|
1974
|
-
}, y = () => {
|
|
1975
|
-
b(), l.push(window.setTimeout(y, 4500 + Math.random() * 6e3));
|
|
1976
|
-
};
|
|
1977
|
-
l.push(window.setTimeout(y, 1500)), n.push(st(e));
|
|
1978
|
-
}
|
|
1979
|
-
$e(() => {
|
|
1980
|
-
n.forEach((b) => b()), l.forEach((b) => clearTimeout(b));
|
|
1981
|
-
});
|
|
1806
|
+
var Bn = /* @__PURE__ */ m('<div role=region aria-roledescription=carousel tabindex=0><div class="relative overflow-hidden rounded-xl border border-border bg-card text-foreground"><div class="flex transition-transform duration-500 ease-out"></div><button type=button aria-label="Previous slide"class="absolute left-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow transition-opacity hover:opacity-90"></button><button type=button aria-label="Next slide"class="absolute right-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow transition-opacity hover:opacity-90"></button></div><div class="flex items-center justify-center gap-2">'), Nn = /* @__PURE__ */ m('<div class="w-full shrink-0">'), Yn = /* @__PURE__ */ m("<button type=button>");
|
|
1807
|
+
function Ma(e) {
|
|
1808
|
+
const [t, n] = L(0), r = () => e.slides.length, o = (g) => {
|
|
1809
|
+
const f = r();
|
|
1810
|
+
f !== 0 && n((g % f + f) % f);
|
|
1811
|
+
}, a = () => o(t() - 1), i = () => o(t() + 1), s = (g) => {
|
|
1812
|
+
g.key === "ArrowLeft" ? (g.preventDefault(), a()) : g.key === "ArrowRight" && (g.preventDefault(), i());
|
|
1813
|
+
}, [u, d] = L(!1);
|
|
1814
|
+
return Z(() => {
|
|
1815
|
+
if (e.autoplayMs === void 0 || W()) return;
|
|
1816
|
+
const g = setInterval(() => {
|
|
1817
|
+
u() || i();
|
|
1818
|
+
}, e.autoplayMs);
|
|
1819
|
+
q(() => clearInterval(g));
|
|
1982
1820
|
}), (() => {
|
|
1983
|
-
var
|
|
1984
|
-
s
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
})
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
}
|
|
1821
|
+
var g = Bn(), f = g.firstChild, h = f.firstChild, x = h.nextSibling, M = x.nextSibling, S = f.nextSibling;
|
|
1822
|
+
return g.addEventListener("pointerleave", () => d(!1)), g.addEventListener("pointerenter", () => d(!0)), g.$$keydown = s, c(h, l(E, {
|
|
1823
|
+
get each() {
|
|
1824
|
+
return e.slides;
|
|
1825
|
+
},
|
|
1826
|
+
children: (_) => (() => {
|
|
1827
|
+
var b = Nn();
|
|
1828
|
+
return c(b, _), b;
|
|
1829
|
+
})()
|
|
1830
|
+
})), x.$$click = a, c(x, l(ke, {
|
|
1831
|
+
class: "h-5 w-5"
|
|
1832
|
+
})), M.$$click = i, c(M, l(ue, {
|
|
1833
|
+
class: "h-5 w-5"
|
|
1834
|
+
})), c(S, l(E, {
|
|
1835
|
+
get each() {
|
|
1836
|
+
return e.slides;
|
|
1837
|
+
},
|
|
1838
|
+
children: (_, b) => (() => {
|
|
1839
|
+
var p = Yn();
|
|
1840
|
+
return p.$$click = () => o(b()), $((w) => {
|
|
1841
|
+
var F = `Go to slide ${b() + 1}`, A = v("h-2 w-2 rounded-full transition-colors", t() === b() ? "bg-primary" : "bg-muted");
|
|
1842
|
+
return F !== w.e && y(p, "aria-label", w.e = F), A !== w.t && k(p, w.t = A), w;
|
|
1843
|
+
}, {
|
|
1844
|
+
e: void 0,
|
|
1845
|
+
t: void 0
|
|
1846
|
+
}), p;
|
|
1847
|
+
})()
|
|
1848
|
+
})), $((_) => {
|
|
1849
|
+
var b = v("flex flex-col gap-3 outline-none focus-visible:ring-2 focus-visible:ring-primary", e.class), p = `translateX(-${t() * 100}%)`;
|
|
1850
|
+
return b !== _.e && k(g, _.e = b), p !== _.t && j(h, "transform", _.t = p), _;
|
|
1851
|
+
}, {
|
|
1852
|
+
e: void 0,
|
|
1853
|
+
t: void 0
|
|
1854
|
+
}), g;
|
|
2014
1855
|
})();
|
|
2015
1856
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
1857
|
+
R(["keydown", "click"]);
|
|
1858
|
+
var Vn = /* @__PURE__ */ m("<ol aria-label=Progress>"), Gn = /* @__PURE__ */ m("<span>"), Hn = /* @__PURE__ */ m("<span aria-hidden=true>"), Xn = /* @__PURE__ */ m("<button type=button>"), Un = /* @__PURE__ */ m('<p class="text-xs text-muted-foreground">'), qn = /* @__PURE__ */ m("<li><div><div><div><p>"), Kn = /* @__PURE__ */ m("<div>");
|
|
1859
|
+
function Ta(e) {
|
|
1860
|
+
const t = () => e.orientation ?? "horizontal";
|
|
2018
1861
|
return (() => {
|
|
2019
|
-
var
|
|
2020
|
-
return
|
|
2021
|
-
get
|
|
2022
|
-
return e.
|
|
1862
|
+
var n = Vn();
|
|
1863
|
+
return c(n, l(E, {
|
|
1864
|
+
get each() {
|
|
1865
|
+
return e.steps;
|
|
2023
1866
|
},
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
fallback: t,
|
|
2030
|
-
get children() {
|
|
2031
|
-
return r(pt, {
|
|
1867
|
+
children: (r, o) => {
|
|
1868
|
+
const a = () => o() < e.active, i = () => o() === e.active, s = () => o() === 0, u = () => t() === "vertical", d = () => o() <= e.active, g = () => l(C, {
|
|
1869
|
+
get when() {
|
|
1870
|
+
return a();
|
|
1871
|
+
},
|
|
2032
1872
|
get fallback() {
|
|
2033
1873
|
return (() => {
|
|
2034
|
-
var
|
|
2035
|
-
return
|
|
1874
|
+
var h = Gn();
|
|
1875
|
+
return c(h, () => o() + 1), h;
|
|
2036
1876
|
})();
|
|
2037
1877
|
},
|
|
2038
1878
|
get children() {
|
|
2039
|
-
return
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
return e.children;
|
|
2043
|
-
}
|
|
1879
|
+
return l(vt, {
|
|
1880
|
+
class: "h-4 w-4",
|
|
1881
|
+
"aria-hidden": "true"
|
|
2044
1882
|
});
|
|
2045
1883
|
}
|
|
2046
|
-
});
|
|
1884
|
+
}), f = () => v("flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm font-medium transition-colors", a() || i() ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground", i() && "ring-2 ring-primary/40");
|
|
1885
|
+
return (() => {
|
|
1886
|
+
var h = qn(), x = h.firstChild, M = x.firstChild, S = M.firstChild, _ = S.firstChild;
|
|
1887
|
+
return c(x, l(C, {
|
|
1888
|
+
get when() {
|
|
1889
|
+
return !s();
|
|
1890
|
+
},
|
|
1891
|
+
get children() {
|
|
1892
|
+
var b = Hn();
|
|
1893
|
+
return $(() => k(b, v(d() ? "bg-primary" : "bg-border", u() ? "ml-4 -mt-1 mb-1 w-0.5 flex-1" : "mx-2 h-0.5 flex-1"))), b;
|
|
1894
|
+
}
|
|
1895
|
+
}), M), c(M, l(C, {
|
|
1896
|
+
get when() {
|
|
1897
|
+
return e.onStepClick;
|
|
1898
|
+
},
|
|
1899
|
+
get fallback() {
|
|
1900
|
+
return (() => {
|
|
1901
|
+
var b = Kn();
|
|
1902
|
+
return c(b, g), $(() => k(b, f())), b;
|
|
1903
|
+
})();
|
|
1904
|
+
},
|
|
1905
|
+
get children() {
|
|
1906
|
+
var b = Xn();
|
|
1907
|
+
return b.$$click = () => {
|
|
1908
|
+
var p;
|
|
1909
|
+
return (p = e.onStepClick) == null ? void 0 : p.call(e, o());
|
|
1910
|
+
}, c(b, g), $((p) => {
|
|
1911
|
+
var w = r.label, F = f();
|
|
1912
|
+
return w !== p.e && y(b, "aria-label", p.e = w), F !== p.t && k(b, p.t = F), p;
|
|
1913
|
+
}, {
|
|
1914
|
+
e: void 0,
|
|
1915
|
+
t: void 0
|
|
1916
|
+
}), b;
|
|
1917
|
+
}
|
|
1918
|
+
}), S), c(_, () => r.label), c(S, l(C, {
|
|
1919
|
+
get when() {
|
|
1920
|
+
return r.description;
|
|
1921
|
+
},
|
|
1922
|
+
get children() {
|
|
1923
|
+
var b = Un();
|
|
1924
|
+
return c(b, () => r.description), b;
|
|
1925
|
+
}
|
|
1926
|
+
}), null), $((b) => {
|
|
1927
|
+
var p = i() ? "step" : void 0, w = v("flex", u() ? "flex-col" : "flex-1 items-start last:flex-none"), F = v("flex", u() ? "flex-row" : "w-full items-center"), A = v("flex gap-3", u() ? "items-start" : "flex-col items-center"), P = v(u() ? "pt-1" : "text-center"), I = v("text-sm font-medium", i() || a() ? "text-foreground" : "text-muted-foreground");
|
|
1928
|
+
return p !== b.e && y(h, "aria-current", b.e = p), w !== b.t && k(h, b.t = w), F !== b.a && k(x, b.a = F), A !== b.o && k(M, b.o = A), P !== b.i && k(S, b.i = P), I !== b.n && k(_, b.n = I), b;
|
|
1929
|
+
}, {
|
|
1930
|
+
e: void 0,
|
|
1931
|
+
t: void 0,
|
|
1932
|
+
a: void 0,
|
|
1933
|
+
o: void 0,
|
|
1934
|
+
i: void 0,
|
|
1935
|
+
n: void 0
|
|
1936
|
+
}), h;
|
|
1937
|
+
})();
|
|
2047
1938
|
}
|
|
2048
|
-
})),
|
|
1939
|
+
})), $(() => k(n, v("flex", t() === "vertical" ? "flex-col" : "items-start", e.class))), n;
|
|
2049
1940
|
})();
|
|
2050
1941
|
}
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
1942
|
+
R(["click"]);
|
|
1943
|
+
var Wn = /* @__PURE__ */ m("<ol>"), Jn = /* @__PURE__ */ m('<span aria-hidden=true class="absolute left-[calc(0.5rem+0.375rem)] top-3 -bottom-6 w-px -translate-x-1/2 bg-border">'), Zn = /* @__PURE__ */ m('<span class="shrink-0 text-xs text-muted-foreground">'), Qn = /* @__PURE__ */ m('<p class="mt-1 text-sm text-muted-foreground">'), el = /* @__PURE__ */ m('<li class="relative flex gap-4 pl-2"><span aria-hidden=true></span><div class="min-w-0 flex-1"><div class="flex items-baseline justify-between gap-3"><p class="font-medium text-foreground">');
|
|
1944
|
+
const tl = {
|
|
1945
|
+
default: "bg-muted border border-border",
|
|
1946
|
+
primary: "bg-primary",
|
|
1947
|
+
success: "bg-emerald-500",
|
|
1948
|
+
danger: "bg-destructive"
|
|
1949
|
+
};
|
|
1950
|
+
function Ea(e) {
|
|
1951
|
+
return (() => {
|
|
1952
|
+
var t = Wn();
|
|
1953
|
+
return c(t, l(E, {
|
|
1954
|
+
get each() {
|
|
1955
|
+
return e.items;
|
|
1956
|
+
},
|
|
1957
|
+
children: (n, r) => (() => {
|
|
1958
|
+
var o = el(), a = o.firstChild, i = a.nextSibling, s = i.firstChild, u = s.firstChild;
|
|
1959
|
+
return c(o, l(C, {
|
|
1960
|
+
get when() {
|
|
1961
|
+
return r() < e.items.length - 1;
|
|
1962
|
+
},
|
|
1963
|
+
get children() {
|
|
1964
|
+
return Jn();
|
|
1965
|
+
}
|
|
1966
|
+
}), a), c(u, () => n.title), c(s, l(C, {
|
|
1967
|
+
get when() {
|
|
1968
|
+
return n.time;
|
|
1969
|
+
},
|
|
1970
|
+
get children() {
|
|
1971
|
+
var d = Zn();
|
|
1972
|
+
return c(d, () => n.time), d;
|
|
1973
|
+
}
|
|
1974
|
+
}), null), c(i, l(C, {
|
|
1975
|
+
get when() {
|
|
1976
|
+
return n.description;
|
|
1977
|
+
},
|
|
1978
|
+
get children() {
|
|
1979
|
+
var d = Qn();
|
|
1980
|
+
return c(d, () => n.description), d;
|
|
1981
|
+
}
|
|
1982
|
+
}), null), $(() => k(a, v("relative z-[1] mt-1 h-3 w-3 shrink-0 rounded-full", tl[n.tone ?? "default"]))), o;
|
|
1983
|
+
})()
|
|
1984
|
+
})), $(() => k(t, v("relative flex flex-col gap-6", e.class))), t;
|
|
1985
|
+
})();
|
|
2060
1986
|
}
|
|
2061
|
-
|
|
2062
|
-
function
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
1987
|
+
var rl = /* @__PURE__ */ m("<div role=radiogroup>"), nl = /* @__PURE__ */ m("<div role=img>"), ll = /* @__PURE__ */ m('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');
|
|
1988
|
+
function La(e) {
|
|
1989
|
+
const [t, n] = L(0), r = () => e.max ?? 5, o = () => Array.from({
|
|
1990
|
+
length: r()
|
|
1991
|
+
}, (u, d) => d + 1), a = () => t() > 0 ? t() : e.value, i = (u) => {
|
|
1992
|
+
var d;
|
|
1993
|
+
e.readonly || (d = e.onChange) == null || d.call(e, u);
|
|
1994
|
+
}, s = (u) => v("h-5 w-5 transition-colors", u <= a() ? "fill-primary text-primary" : "fill-transparent text-muted-foreground");
|
|
1995
|
+
return l(C, {
|
|
1996
|
+
get when() {
|
|
1997
|
+
return !e.readonly;
|
|
1998
|
+
},
|
|
1999
|
+
get fallback() {
|
|
2000
|
+
return (() => {
|
|
2001
|
+
var u = nl();
|
|
2002
|
+
return c(u, l(E, {
|
|
2003
|
+
get each() {
|
|
2004
|
+
return o();
|
|
2005
|
+
},
|
|
2006
|
+
children: (d) => l(He, {
|
|
2007
|
+
get class() {
|
|
2008
|
+
return s(d);
|
|
2009
|
+
},
|
|
2010
|
+
"aria-hidden": "true"
|
|
2011
|
+
})
|
|
2012
|
+
})), $((d) => {
|
|
2013
|
+
var g = v("inline-flex items-center gap-1", e.class), f = `Rating ${e.value} of ${r()}`;
|
|
2014
|
+
return g !== d.e && k(u, d.e = g), f !== d.t && y(u, "aria-label", d.t = f), d;
|
|
2015
|
+
}, {
|
|
2016
|
+
e: void 0,
|
|
2017
|
+
t: void 0
|
|
2018
|
+
}), u;
|
|
2019
|
+
})();
|
|
2020
|
+
},
|
|
2021
|
+
get children() {
|
|
2022
|
+
var u = rl();
|
|
2023
|
+
return u.addEventListener("mouseleave", () => n(0)), c(u, l(E, {
|
|
2024
|
+
get each() {
|
|
2025
|
+
return o();
|
|
2026
|
+
},
|
|
2027
|
+
children: (d) => (() => {
|
|
2028
|
+
var g = ll();
|
|
2029
|
+
return g.$$keydown = (f) => {
|
|
2030
|
+
f.key === "ArrowRight" || f.key === "ArrowUp" ? (f.preventDefault(), i(Math.min(e.value + 1, r()))) : (f.key === "ArrowLeft" || f.key === "ArrowDown") && (f.preventDefault(), i(Math.max(e.value - 1, 0)));
|
|
2031
|
+
}, g.$$click = () => i(d), g.addEventListener("blur", () => n(0)), g.addEventListener("focus", () => n(d)), g.addEventListener("mouseenter", () => n(d)), c(g, l(He, {
|
|
2032
|
+
get class() {
|
|
2033
|
+
return s(d);
|
|
2034
|
+
},
|
|
2035
|
+
"aria-hidden": "true"
|
|
2036
|
+
})), $((f) => {
|
|
2037
|
+
var h = e.value === d, x = `Rate ${d} of ${r()}`;
|
|
2038
|
+
return h !== f.e && y(g, "aria-checked", f.e = h), x !== f.t && y(g, "aria-label", f.t = x), f;
|
|
2039
|
+
}, {
|
|
2040
|
+
e: void 0,
|
|
2041
|
+
t: void 0
|
|
2042
|
+
}), g;
|
|
2043
|
+
})()
|
|
2044
|
+
})), $(() => k(u, v("inline-flex items-center gap-1", e.class))), u;
|
|
2103
2045
|
}
|
|
2104
|
-
|
|
2105
|
-
n.forEach((c) => c()), l.forEach((c) => clearTimeout(c));
|
|
2106
|
-
});
|
|
2107
|
-
}), (() => {
|
|
2108
|
-
var n = Fn(), l = n.firstChild, a = l.nextSibling;
|
|
2109
|
-
a.nextSibling;
|
|
2110
|
-
var d = t;
|
|
2111
|
-
typeof d == "function" ? N(d, n) : t = n;
|
|
2112
|
-
var c = o;
|
|
2113
|
-
return typeof c == "function" ? N(c, a) : o = a, n;
|
|
2114
|
-
})();
|
|
2046
|
+
});
|
|
2115
2047
|
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2048
|
+
R(["click", "keydown"]);
|
|
2049
|
+
var ol = /* @__PURE__ */ m('<p class="mt-1 max-w-sm text-sm text-muted-foreground">'), il = /* @__PURE__ */ m("<div class=mt-4>"), al = /* @__PURE__ */ m('<div><div class="grid h-12 w-12 place-items-center rounded-full bg-muted text-muted-foreground"></div><p class="mt-4 font-semibold text-foreground">');
|
|
2050
|
+
function Fa(e) {
|
|
2119
2051
|
return (() => {
|
|
2120
|
-
var
|
|
2121
|
-
return
|
|
2052
|
+
var t = al(), n = t.firstChild, r = n.nextSibling;
|
|
2053
|
+
return c(n, l(C, {
|
|
2122
2054
|
get when() {
|
|
2123
|
-
return
|
|
2055
|
+
return e.icon;
|
|
2124
2056
|
},
|
|
2125
2057
|
get fallback() {
|
|
2126
|
-
return
|
|
2127
|
-
class: "h-
|
|
2058
|
+
return l(Ut, {
|
|
2059
|
+
class: "h-6 w-6"
|
|
2128
2060
|
});
|
|
2129
2061
|
},
|
|
2130
2062
|
get children() {
|
|
2131
|
-
return
|
|
2132
|
-
class: "h-[18px] w-[18px]"
|
|
2133
|
-
});
|
|
2063
|
+
return e.icon;
|
|
2134
2064
|
}
|
|
2135
|
-
})),
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2065
|
+
})), c(r, () => e.title), c(t, l(C, {
|
|
2066
|
+
get when() {
|
|
2067
|
+
return e.description;
|
|
2068
|
+
},
|
|
2069
|
+
get children() {
|
|
2070
|
+
var o = ol();
|
|
2071
|
+
return c(o, () => e.description), o;
|
|
2072
|
+
}
|
|
2073
|
+
}), null), c(t, l(C, {
|
|
2074
|
+
get when() {
|
|
2075
|
+
return e.action;
|
|
2076
|
+
},
|
|
2077
|
+
get children() {
|
|
2078
|
+
var o = il();
|
|
2079
|
+
return c(o, () => e.action), o;
|
|
2080
|
+
}
|
|
2081
|
+
}), null), $(() => k(t, v("flex flex-col items-center py-12 text-center", e.class))), t;
|
|
2142
2082
|
})();
|
|
2143
2083
|
}
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
function
|
|
2147
|
-
|
|
2148
|
-
return (() => {
|
|
2149
|
-
var o = Dn();
|
|
2150
|
-
return o.$$click = () => Qt(!t()), i(o, r(Rt, {
|
|
2151
|
-
class: "h-[18px] w-[18px]"
|
|
2152
|
-
})), S((n) => {
|
|
2153
|
-
var l = t(), a = e.label ?? "Visual effects", d = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
|
|
2154
|
-
return l !== n.e && P(o, "aria-pressed", n.e = l), a !== n.t && P(o, "aria-label", n.t = a), d !== n.a && P(o, "title", n.a = d), n;
|
|
2155
|
-
}, {
|
|
2156
|
-
e: void 0,
|
|
2157
|
-
t: void 0,
|
|
2158
|
-
a: void 0
|
|
2159
|
-
}), o;
|
|
2160
|
-
})();
|
|
2084
|
+
var sl = /* @__PURE__ */ m('<div><div class="mb-2 flex items-center justify-between"><button type=button aria-label="Previous month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button><span class="text-sm font-medium text-foreground"> </span><button type=button aria-label="Next month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button></div><div class="mb-1 grid grid-cols-7 gap-0.5 text-center text-xs text-muted-foreground"></div><div role=grid class="grid grid-cols-7 gap-0.5">'), cl = /* @__PURE__ */ m("<span>"), dl = /* @__PURE__ */ m("<button type=button role=gridcell>");
|
|
2085
|
+
const Je = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Ze = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
2086
|
+
function Qe(e, t) {
|
|
2087
|
+
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
2161
2088
|
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2089
|
+
function Ia(e) {
|
|
2090
|
+
const t = e.value ?? /* @__PURE__ */ new Date(), [n, r] = L(t.getFullYear()), [o, a] = L(t.getMonth()), i = () => {
|
|
2091
|
+
const g = o();
|
|
2092
|
+
g === 0 ? (a(11), r(n() - 1)) : a(g - 1);
|
|
2093
|
+
}, s = () => {
|
|
2094
|
+
const g = o();
|
|
2095
|
+
g === 11 ? (a(0), r(n() + 1)) : a(g + 1);
|
|
2096
|
+
}, u = Me(() => {
|
|
2097
|
+
const g = new Date(n(), o(), 1).getDay(), f = new Date(n(), o(), 1 - g), h = [];
|
|
2098
|
+
for (let x = 0; x < 6; x++) {
|
|
2099
|
+
const M = [];
|
|
2100
|
+
for (let S = 0; S < 7; S++) {
|
|
2101
|
+
const _ = x * 7 + S;
|
|
2102
|
+
M.push(new Date(f.getFullYear(), f.getMonth(), f.getDate() + _));
|
|
2103
|
+
}
|
|
2104
|
+
h.push(M);
|
|
2105
|
+
}
|
|
2106
|
+
return h;
|
|
2107
|
+
}), d = /* @__PURE__ */ new Date();
|
|
2165
2108
|
return (() => {
|
|
2166
|
-
var
|
|
2167
|
-
return i
|
|
2109
|
+
var g = sl(), f = g.firstChild, h = f.firstChild, x = h.nextSibling, M = x.firstChild, S = x.nextSibling, _ = f.nextSibling, b = _.nextSibling;
|
|
2110
|
+
return h.$$click = i, c(h, l(ke, {
|
|
2111
|
+
class: "h-4 w-4"
|
|
2112
|
+
})), c(x, () => Ze[o()], M), c(x, n, null), S.$$click = s, c(S, l(ue, {
|
|
2113
|
+
class: "h-4 w-4"
|
|
2114
|
+
})), c(_, l(E, {
|
|
2115
|
+
each: Je,
|
|
2116
|
+
children: (p) => (() => {
|
|
2117
|
+
var w = cl();
|
|
2118
|
+
return c(w, p), w;
|
|
2119
|
+
})()
|
|
2120
|
+
})), c(b, l(E, {
|
|
2121
|
+
get each() {
|
|
2122
|
+
return u();
|
|
2123
|
+
},
|
|
2124
|
+
children: (p) => l(E, {
|
|
2125
|
+
each: p,
|
|
2126
|
+
children: (w) => {
|
|
2127
|
+
const F = w.getMonth() === o(), A = () => {
|
|
2128
|
+
const O = e.value;
|
|
2129
|
+
return O ? Qe(O, w) : !1;
|
|
2130
|
+
}, P = Qe(d, w), I = `${Je[w.getDay()]}, ${Ze[w.getMonth()]} ${w.getDate()}, ${w.getFullYear()}`;
|
|
2131
|
+
return (() => {
|
|
2132
|
+
var O = dl();
|
|
2133
|
+
return O.$$click = () => {
|
|
2134
|
+
var B;
|
|
2135
|
+
return (B = e.onChange) == null ? void 0 : B.call(e, w);
|
|
2136
|
+
}, y(O, "aria-label", I), c(O, () => w.getDate()), $((B) => {
|
|
2137
|
+
var T = A(), z = v("flex h-8 items-center justify-center rounded-md text-sm transition-colors", A() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !A() && !F && "text-muted-foreground/50", !A() && F && "text-foreground", !A() && P && "ring-1 ring-primary");
|
|
2138
|
+
return T !== B.e && y(O, "aria-selected", B.e = T), z !== B.t && k(O, B.t = z), B;
|
|
2139
|
+
}, {
|
|
2140
|
+
e: void 0,
|
|
2141
|
+
t: void 0
|
|
2142
|
+
}), O;
|
|
2143
|
+
})();
|
|
2144
|
+
}
|
|
2145
|
+
})
|
|
2146
|
+
})), $(() => k(g, v("w-72 select-none", e.class))), g;
|
|
2168
2147
|
})();
|
|
2169
2148
|
}
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2149
|
+
R(["click"]);
|
|
2150
|
+
var ul = /* @__PURE__ */ m("<span class=shrink-0>"), gl = /* @__PURE__ */ m("<ul role=group>"), fl = /* @__PURE__ */ m('<li role=treeitem><div class="flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-foreground hover:bg-muted cursor-pointer"><span class=truncate>'), ml = /* @__PURE__ */ m('<span class="h-3.5 w-3.5 shrink-0"aria-hidden=true>'), hl = /* @__PURE__ */ m("<ul role=tree>");
|
|
2151
|
+
function Aa(e) {
|
|
2152
|
+
const [t, n] = L(new Set(e.defaultExpanded ?? [])), r = (a) => n((i) => {
|
|
2153
|
+
const s = new Set(i);
|
|
2154
|
+
return s.has(a) ? s.delete(a) : s.add(a), s;
|
|
2155
|
+
}), o = (a) => {
|
|
2156
|
+
const i = () => {
|
|
2157
|
+
var u;
|
|
2158
|
+
return (((u = a.node.children) == null ? void 0 : u.length) ?? 0) > 0;
|
|
2159
|
+
}, s = () => t().has(a.node.id);
|
|
2160
|
+
return (() => {
|
|
2161
|
+
var u = fl(), d = u.firstChild, g = d.firstChild;
|
|
2162
|
+
return d.$$click = () => i() && r(a.node.id), c(d, l(C, {
|
|
2163
|
+
get when() {
|
|
2164
|
+
return i();
|
|
2165
|
+
},
|
|
2166
|
+
get fallback() {
|
|
2167
|
+
return ml();
|
|
2168
|
+
},
|
|
2169
|
+
get children() {
|
|
2170
|
+
return l(ue, {
|
|
2171
|
+
get class() {
|
|
2172
|
+
return v("h-3.5 w-3.5 shrink-0 transition-transform duration-200", s() && "rotate-90");
|
|
2173
|
+
},
|
|
2174
|
+
"aria-hidden": "true"
|
|
2175
|
+
});
|
|
2176
|
+
}
|
|
2177
|
+
}), g), c(d, l(C, {
|
|
2178
|
+
get when() {
|
|
2179
|
+
return a.node.icon;
|
|
2180
|
+
},
|
|
2181
|
+
get children() {
|
|
2182
|
+
var f = ul();
|
|
2183
|
+
return c(f, () => a.node.icon), f;
|
|
2184
|
+
}
|
|
2185
|
+
}), g), c(g, () => a.node.label), c(u, l(C, {
|
|
2186
|
+
get when() {
|
|
2187
|
+
return ee(() => !!i())() && s();
|
|
2188
|
+
},
|
|
2189
|
+
get children() {
|
|
2190
|
+
var f = gl();
|
|
2191
|
+
return c(f, l(E, {
|
|
2192
|
+
get each() {
|
|
2193
|
+
return a.node.children;
|
|
2194
|
+
},
|
|
2195
|
+
children: (h) => l(o, {
|
|
2196
|
+
node: h,
|
|
2197
|
+
get depth() {
|
|
2198
|
+
return a.depth + 1;
|
|
2199
|
+
}
|
|
2200
|
+
})
|
|
2201
|
+
})), f;
|
|
2202
|
+
}
|
|
2203
|
+
}), null), $((f) => {
|
|
2204
|
+
var h = i() ? s() : void 0, x = `${a.depth * 1 + 0.5}rem`;
|
|
2205
|
+
return h !== f.e && y(u, "aria-expanded", f.e = h), x !== f.t && j(d, "padding-left", f.t = x), f;
|
|
2206
|
+
}, {
|
|
2207
|
+
e: void 0,
|
|
2208
|
+
t: void 0
|
|
2209
|
+
}), u;
|
|
2210
|
+
})();
|
|
2211
|
+
};
|
|
2212
|
+
return (() => {
|
|
2213
|
+
var a = hl();
|
|
2214
|
+
return c(a, l(E, {
|
|
2215
|
+
get each() {
|
|
2216
|
+
return e.nodes;
|
|
2217
|
+
},
|
|
2218
|
+
children: (i) => l(o, {
|
|
2219
|
+
node: i,
|
|
2220
|
+
depth: 0
|
|
2221
|
+
})
|
|
2222
|
+
})), $(() => k(a, v("text-foreground", e.class))), a;
|
|
2223
|
+
})();
|
|
2224
|
+
}
|
|
2225
|
+
R(["click"]);
|
|
2226
|
+
var vl = /* @__PURE__ */ m("<kbd>");
|
|
2227
|
+
const xl = "inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";
|
|
2228
|
+
function Da(e) {
|
|
2229
|
+
return (() => {
|
|
2230
|
+
var t = vl();
|
|
2231
|
+
return c(t, () => e.children), $(() => k(t, v(xl, e.class))), t;
|
|
2232
|
+
})();
|
|
2233
|
+
}
|
|
2234
|
+
var et = /* @__PURE__ */ m("<div>"), bl = /* @__PURE__ */ m('<div class="-ml-2 ring-2 ring-background rounded-full"><span class="grid h-9 w-9 shrink-0 place-items-center rounded-full bg-muted text-xs font-medium text-muted-foreground">+');
|
|
2235
|
+
function za(e) {
|
|
2236
|
+
const t = () => e.max ?? 4, n = () => e.avatars.slice(0, t()), r = () => e.avatars.length - n().length;
|
|
2237
|
+
return (() => {
|
|
2238
|
+
var o = et();
|
|
2239
|
+
return c(o, l(E, {
|
|
2240
|
+
get each() {
|
|
2241
|
+
return n();
|
|
2242
|
+
},
|
|
2243
|
+
children: (a, i) => (() => {
|
|
2244
|
+
var s = et();
|
|
2245
|
+
return c(s, l(Ln, {
|
|
2246
|
+
get src() {
|
|
2247
|
+
return a.src;
|
|
2248
|
+
},
|
|
2249
|
+
get alt() {
|
|
2250
|
+
return a.alt;
|
|
2251
|
+
},
|
|
2252
|
+
get fallback() {
|
|
2253
|
+
return a.fallback;
|
|
2254
|
+
}
|
|
2255
|
+
})), $(() => k(s, v("ring-2 ring-background rounded-full", i() > 0 && "-ml-2"))), s;
|
|
2256
|
+
})()
|
|
2257
|
+
}), null), c(o, (() => {
|
|
2258
|
+
var a = ee(() => r() > 0);
|
|
2259
|
+
return () => a() && (() => {
|
|
2260
|
+
var i = bl(), s = i.firstChild;
|
|
2261
|
+
return s.firstChild, c(s, r, null), i;
|
|
2262
|
+
})();
|
|
2263
|
+
})(), null), $(() => k(o, v("flex items-center", e.class))), o;
|
|
2264
|
+
})();
|
|
2265
|
+
}
|
|
2266
|
+
var $l = /* @__PURE__ */ m("<dl>"), wl = /* @__PURE__ */ m('<div class="border-b border-border py-2"><dt class="text-xs uppercase tracking-wide text-muted-foreground"></dt><dd class="mt-0.5 text-sm text-foreground">');
|
|
2267
|
+
const tt = {
|
|
2268
|
+
1: "grid-cols-1",
|
|
2269
|
+
2: "sm:grid-cols-2",
|
|
2270
|
+
3: "sm:grid-cols-3"
|
|
2271
|
+
};
|
|
2272
|
+
function Ra(e) {
|
|
2273
|
+
return (() => {
|
|
2274
|
+
var t = $l();
|
|
2275
|
+
return c(t, l(E, {
|
|
2276
|
+
get each() {
|
|
2277
|
+
return e.items;
|
|
2278
|
+
},
|
|
2279
|
+
children: (n) => (() => {
|
|
2280
|
+
var r = wl(), o = r.firstChild, a = o.nextSibling;
|
|
2281
|
+
return c(o, () => n.label), c(a, () => n.value), r;
|
|
2282
|
+
})()
|
|
2283
|
+
})), $(() => k(t, v("grid gap-x-6", tt[e.columns ?? 1] ?? tt[1], e.class))), t;
|
|
2284
|
+
})();
|
|
2285
|
+
}
|
|
2286
|
+
var yl = /* @__PURE__ */ m('<p class="text-5xl font-bold text-muted-foreground">'), pl = /* @__PURE__ */ m('<p class="mt-2 max-w-md text-muted-foreground">'), _l = /* @__PURE__ */ m("<div class=mt-6>"), kl = /* @__PURE__ */ m('<div><div></div><p class="mt-4 text-xl font-bold text-foreground">');
|
|
2287
|
+
const Cl = {
|
|
2288
|
+
success: {
|
|
2289
|
+
Icon: mt,
|
|
2290
|
+
icon: "text-emerald-500",
|
|
2291
|
+
tint: "bg-emerald-500/10"
|
|
2292
|
+
},
|
|
2293
|
+
error: {
|
|
2294
|
+
Icon: gt,
|
|
2295
|
+
icon: "text-destructive",
|
|
2296
|
+
tint: "bg-destructive/10"
|
|
2297
|
+
},
|
|
2298
|
+
warning: {
|
|
2299
|
+
Icon: ft,
|
|
2300
|
+
icon: "text-amber-500",
|
|
2301
|
+
tint: "bg-amber-500/10"
|
|
2302
|
+
},
|
|
2303
|
+
info: {
|
|
2304
|
+
Icon: ht,
|
|
2305
|
+
icon: "text-primary",
|
|
2306
|
+
tint: "bg-primary/10"
|
|
2307
|
+
},
|
|
2308
|
+
404: {
|
|
2309
|
+
Icon: Kt,
|
|
2310
|
+
icon: "text-muted-foreground",
|
|
2311
|
+
tint: "bg-muted",
|
|
2312
|
+
code: "404"
|
|
2313
|
+
},
|
|
2314
|
+
500: {
|
|
2315
|
+
Icon: qt,
|
|
2316
|
+
icon: "text-destructive",
|
|
2317
|
+
tint: "bg-destructive/10",
|
|
2318
|
+
code: "500"
|
|
2319
|
+
}
|
|
2320
|
+
};
|
|
2321
|
+
function Oa(e) {
|
|
2322
|
+
const t = () => Cl[e.status ?? "info"];
|
|
2323
|
+
return (() => {
|
|
2324
|
+
var n = kl(), r = n.firstChild, o = r.nextSibling;
|
|
2325
|
+
return c(n, l(C, {
|
|
2326
|
+
get when() {
|
|
2327
|
+
return t().code;
|
|
2328
|
+
},
|
|
2329
|
+
get children() {
|
|
2330
|
+
var a = yl();
|
|
2331
|
+
return c(a, () => t().code), a;
|
|
2332
|
+
}
|
|
2333
|
+
}), r), c(r, l(ut, {
|
|
2334
|
+
get component() {
|
|
2335
|
+
return t().Icon;
|
|
2336
|
+
},
|
|
2337
|
+
get class() {
|
|
2338
|
+
return v("h-8 w-8", t().icon);
|
|
2339
|
+
}
|
|
2340
|
+
})), c(o, () => e.title), c(n, l(C, {
|
|
2341
|
+
get when() {
|
|
2342
|
+
return e.description;
|
|
2343
|
+
},
|
|
2344
|
+
get children() {
|
|
2345
|
+
var a = pl();
|
|
2346
|
+
return c(a, () => e.description), a;
|
|
2347
|
+
}
|
|
2348
|
+
}), null), c(n, l(C, {
|
|
2349
|
+
get when() {
|
|
2350
|
+
return e.actions;
|
|
2351
|
+
},
|
|
2352
|
+
get children() {
|
|
2353
|
+
var a = _l();
|
|
2354
|
+
return c(a, () => e.actions), a;
|
|
2355
|
+
}
|
|
2356
|
+
}), null), $((a) => {
|
|
2357
|
+
var i = v("flex flex-col items-center py-12 text-center", e.class), s = v("grid h-16 w-16 place-items-center rounded-full", t().tint);
|
|
2358
|
+
return i !== a.e && k(n, a.e = i), s !== a.t && k(r, a.t = s), a;
|
|
2359
|
+
}, {
|
|
2360
|
+
e: void 0,
|
|
2361
|
+
t: void 0
|
|
2362
|
+
}), n;
|
|
2363
|
+
})();
|
|
2364
|
+
}
|
|
2365
|
+
var Sl = /* @__PURE__ */ m('<div><div class=overflow-auto></div><div role=separator tabindex=0></div><div class="flex-1 overflow-auto">');
|
|
2366
|
+
function ja(e) {
|
|
2367
|
+
const t = () => e.orientation ?? "horizontal", n = () => e.min ?? 15, r = () => e.max ?? 85, o = (f) => Math.min(r(), Math.max(n(), f)), [a, i] = L(o(e.initial ?? 50));
|
|
2368
|
+
let s;
|
|
2369
|
+
const u = (f) => {
|
|
2370
|
+
if (!s) return;
|
|
2371
|
+
const h = s.getBoundingClientRect(), x = t() === "horizontal" ? (f.clientX - h.left) / h.width * 100 : (f.clientY - h.top) / h.height * 100;
|
|
2372
|
+
i(o(x));
|
|
2373
|
+
}, d = (f) => {
|
|
2374
|
+
const h = f.currentTarget;
|
|
2375
|
+
h.setPointerCapture(f.pointerId), h.addEventListener("pointermove", u);
|
|
2376
|
+
const x = () => {
|
|
2377
|
+
h.removeEventListener("pointermove", u), h.removeEventListener("pointerup", x), h.removeEventListener("lostpointercapture", x);
|
|
2378
|
+
};
|
|
2379
|
+
h.addEventListener("pointerup", x), h.addEventListener("lostpointercapture", x), f.preventDefault();
|
|
2380
|
+
}, g = (f) => {
|
|
2381
|
+
let x = 0;
|
|
2382
|
+
if (f.key === "ArrowLeft" || f.key === "ArrowUp") x = -3;
|
|
2383
|
+
else if (f.key === "ArrowRight" || f.key === "ArrowDown") x = 3;
|
|
2384
|
+
else return f.key === "Home" ? i(n()) : f.key === "End" ? i(r()) : void 0;
|
|
2385
|
+
f.preventDefault(), i((M) => o(M + x));
|
|
2386
|
+
};
|
|
2387
|
+
return (() => {
|
|
2388
|
+
var f = Sl(), h = f.firstChild, x = h.nextSibling, M = x.nextSibling, S = s;
|
|
2389
|
+
return typeof S == "function" ? N(S, f) : s = f, c(h, () => e.start), x.$$keydown = g, x.$$pointerdown = d, c(M, () => e.end), $((_) => {
|
|
2390
|
+
var b = v("flex overflow-hidden", t() === "horizontal" ? "h-64 flex-row" : "flex-col", e.class), p = `${a()}%`, w = t(), F = Math.round(a()), A = n(), P = r(), I = v("shrink-0 bg-border transition-colors hover:bg-primary/50 focus-visible:bg-primary/50 focus-visible:outline-none", t() === "horizontal" ? "w-1 cursor-col-resize" : "h-1 cursor-row-resize"), O = `${100 - a()}%`;
|
|
2391
|
+
return b !== _.e && k(f, _.e = b), p !== _.t && j(h, "flex-basis", _.t = p), w !== _.a && y(x, "aria-orientation", _.a = w), F !== _.o && y(x, "aria-valuenow", _.o = F), A !== _.i && y(x, "aria-valuemin", _.i = A), P !== _.n && y(x, "aria-valuemax", _.n = P), I !== _.s && k(x, _.s = I), O !== _.h && j(M, "flex-basis", _.h = O), _;
|
|
2392
|
+
}, {
|
|
2393
|
+
e: void 0,
|
|
2394
|
+
t: void 0,
|
|
2395
|
+
a: void 0,
|
|
2396
|
+
o: void 0,
|
|
2397
|
+
i: void 0,
|
|
2398
|
+
n: void 0,
|
|
2399
|
+
s: void 0,
|
|
2400
|
+
h: void 0
|
|
2401
|
+
}), f;
|
|
2402
|
+
})();
|
|
2403
|
+
}
|
|
2404
|
+
R(["pointerdown", "keydown"]);
|
|
2405
|
+
var Ml = /* @__PURE__ */ m('<input autofocus type=text class="w-full border-b border-border bg-transparent px-4 py-3 text-sm text-foreground outline-none placeholder:text-muted-foreground">'), Tl = /* @__PURE__ */ m('<ul class="max-h-80 overflow-y-auto p-2">'), El = /* @__PURE__ */ m('<div class="flex items-center gap-3 border-t border-border px-4 py-2 text-[11px] text-muted-foreground"><span>↑↓ to navigate</span><span>↵ to select</span><span>esc to close'), Ll = /* @__PURE__ */ m('<div class="fixed inset-x-0 top-[14vh] z-50 mx-auto w-full max-w-lg px-4">'), Fl = /* @__PURE__ */ m('<li class="px-3 py-8 text-center text-sm text-muted-foreground">No results'), Il = /* @__PURE__ */ m('<div class="px-3 pb-1 pt-2 text-[11px] font-medium uppercase tracking-wide text-muted-foreground">'), Al = /* @__PURE__ */ m('<span class="text-[11px] uppercase tracking-wide text-muted-foreground">'), Dl = /* @__PURE__ */ m('<li><button type=button><span class="text-sm text-foreground">');
|
|
2406
|
+
function Pa(e) {
|
|
2407
|
+
const [t, n] = L(""), [r, o] = L(0), a = Me(() => {
|
|
2408
|
+
const u = t().trim().toLowerCase();
|
|
2409
|
+
return u ? e.items.filter((d) => `${d.label} ${d.hint ?? ""} ${d.group ?? ""}`.toLowerCase().includes(u)) : e.items;
|
|
2410
|
+
});
|
|
2411
|
+
Q(() => {
|
|
2412
|
+
a(), o(0);
|
|
2413
|
+
}), Q(() => {
|
|
2414
|
+
e.open || n("");
|
|
2415
|
+
});
|
|
2416
|
+
const i = (u) => {
|
|
2417
|
+
u.onSelect(), e.onOpenChange(!1), n("");
|
|
2418
|
+
}, s = (u) => {
|
|
2419
|
+
const d = a();
|
|
2420
|
+
if (u.key === "ArrowDown")
|
|
2421
|
+
u.preventDefault(), o((g) => Math.min(g + 1, d.length - 1));
|
|
2422
|
+
else if (u.key === "ArrowUp")
|
|
2423
|
+
u.preventDefault(), o((g) => Math.max(g - 1, 0));
|
|
2424
|
+
else if (u.key === "Enter") {
|
|
2425
|
+
u.preventDefault();
|
|
2426
|
+
const g = d[r()];
|
|
2427
|
+
g && i(g);
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2430
|
+
return l(D, {
|
|
2431
|
+
get open() {
|
|
2432
|
+
return e.open;
|
|
2433
|
+
},
|
|
2434
|
+
get onOpenChange() {
|
|
2435
|
+
return e.onOpenChange;
|
|
2436
|
+
},
|
|
2437
|
+
get children() {
|
|
2438
|
+
return l(D.Portal, {
|
|
2439
|
+
get children() {
|
|
2440
|
+
return [l(D.Overlay, {
|
|
2441
|
+
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
2442
|
+
}), (() => {
|
|
2443
|
+
var u = Ll();
|
|
2444
|
+
return c(u, l(D.Content, {
|
|
2445
|
+
role: "dialog",
|
|
2446
|
+
class: "modal-content bg-glass overflow-hidden rounded-xl border border-border shadow-2xl",
|
|
2447
|
+
get children() {
|
|
2448
|
+
return [(() => {
|
|
2449
|
+
var d = Ml();
|
|
2450
|
+
return d.$$keydown = s, d.$$input = (g) => n(g.currentTarget.value), $((g) => {
|
|
2451
|
+
var f = e.placeholder ?? "Type a command…", h = e.placeholder ?? "Type a command…";
|
|
2452
|
+
return f !== g.e && y(d, "placeholder", g.e = f), h !== g.t && y(d, "aria-label", g.t = h), g;
|
|
2453
|
+
}, {
|
|
2454
|
+
e: void 0,
|
|
2455
|
+
t: void 0
|
|
2456
|
+
}), $(() => d.value = t()), d;
|
|
2457
|
+
})(), (() => {
|
|
2458
|
+
var d = Tl();
|
|
2459
|
+
return c(d, l(C, {
|
|
2460
|
+
get when() {
|
|
2461
|
+
return a().length;
|
|
2462
|
+
},
|
|
2463
|
+
get fallback() {
|
|
2464
|
+
return Fl();
|
|
2465
|
+
},
|
|
2466
|
+
get children() {
|
|
2467
|
+
return l(E, {
|
|
2468
|
+
get each() {
|
|
2469
|
+
return a();
|
|
2470
|
+
},
|
|
2471
|
+
children: (g, f) => (() => {
|
|
2472
|
+
var h = Dl(), x = h.firstChild, M = x.firstChild;
|
|
2473
|
+
return c(h, l(C, {
|
|
2474
|
+
get when() {
|
|
2475
|
+
var S;
|
|
2476
|
+
return ee(() => !!g.group)() && (f() === 0 || ((S = a()[f() - 1]) == null ? void 0 : S.group) !== g.group);
|
|
2477
|
+
},
|
|
2478
|
+
get children() {
|
|
2479
|
+
var S = Il();
|
|
2480
|
+
return c(S, () => g.group), S;
|
|
2481
|
+
}
|
|
2482
|
+
}), x), x.$$click = () => i(g), x.addEventListener("mouseenter", () => o(f())), c(M, () => g.label), c(x, l(C, {
|
|
2483
|
+
get when() {
|
|
2484
|
+
return g.hint;
|
|
2485
|
+
},
|
|
2486
|
+
get children() {
|
|
2487
|
+
var S = Al();
|
|
2488
|
+
return c(S, () => g.hint), S;
|
|
2489
|
+
}
|
|
2490
|
+
}), null), $(() => k(x, v("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-left transition-colors", r() === f() ? "bg-primary/15 text-foreground" : "text-muted-foreground"))), h;
|
|
2491
|
+
})()
|
|
2492
|
+
});
|
|
2493
|
+
}
|
|
2494
|
+
})), d;
|
|
2495
|
+
})(), El()];
|
|
2496
|
+
}
|
|
2497
|
+
})), u;
|
|
2498
|
+
})()];
|
|
2499
|
+
}
|
|
2500
|
+
});
|
|
2501
|
+
}
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
R(["input", "keydown", "click"]);
|
|
2505
|
+
var zl = /* @__PURE__ */ m('<div><input class="flex-1 border-0 bg-transparent px-1 text-sm text-foreground outline-none placeholder:text-muted-foreground">'), Rl = /* @__PURE__ */ m('<span class="inline-flex items-center gap-1 rounded bg-muted px-2 py-0.5 text-xs text-foreground"><button type=button class="inline-flex items-center text-muted-foreground transition-colors hover:text-foreground">');
|
|
2506
|
+
function Ba(e) {
|
|
2507
|
+
const [t, n] = L(""), r = () => {
|
|
2508
|
+
const i = t().trim();
|
|
2509
|
+
i && !e.value.includes(i) && e.onChange([...e.value, i]), n("");
|
|
2510
|
+
}, o = (i) => {
|
|
2511
|
+
e.onChange(e.value.filter((s) => s !== i));
|
|
2512
|
+
}, a = (i) => {
|
|
2513
|
+
i.key === "Enter" || i.key === "," ? (i.preventDefault(), r()) : i.key === "Backspace" && t() === "" && e.value.length > 0 && o(e.value[e.value.length - 1]);
|
|
2514
|
+
};
|
|
2515
|
+
return (() => {
|
|
2516
|
+
var i = zl(), s = i.firstChild;
|
|
2517
|
+
return c(i, l(E, {
|
|
2518
|
+
get each() {
|
|
2519
|
+
return e.value;
|
|
2520
|
+
},
|
|
2521
|
+
children: (u) => (() => {
|
|
2522
|
+
var d = Rl(), g = d.firstChild;
|
|
2523
|
+
return c(d, u, g), g.$$click = () => o(u), y(g, "aria-label", `Remove ${u}`), c(g, l(Ee, {
|
|
2524
|
+
class: "size-3"
|
|
2525
|
+
})), d;
|
|
2526
|
+
})()
|
|
2527
|
+
}), s), s.$$keydown = a, s.$$input = (u) => n(u.currentTarget.value), $((u) => {
|
|
2528
|
+
var d = v("flex flex-wrap items-center gap-1 rounded-md border border-input bg-background px-2 py-1.5", e.class), g = e.placeholder;
|
|
2529
|
+
return d !== u.e && k(i, u.e = d), g !== u.t && y(s, "placeholder", u.t = g), u;
|
|
2530
|
+
}, {
|
|
2531
|
+
e: void 0,
|
|
2532
|
+
t: void 0
|
|
2533
|
+
}), $(() => s.value = t()), i;
|
|
2534
|
+
})();
|
|
2535
|
+
}
|
|
2536
|
+
R(["input", "keydown", "click"]);
|
|
2537
|
+
var Ol = /* @__PURE__ */ m('<div class="px-3 py-2 text-sm text-muted-foreground">'), jl = /* @__PURE__ */ m('<div><button type=button class="flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium text-foreground hover:bg-muted">');
|
|
2538
|
+
function Na(e) {
|
|
2539
|
+
return (() => {
|
|
2540
|
+
var t = jl(), n = t.firstChild;
|
|
2541
|
+
return n.$$click = () => e.onOpenChange(!e.open), c(n, () => e.title, null), c(n, l(Wt, {
|
|
2542
|
+
get class() {
|
|
2543
|
+
return v("h-4 w-4 shrink-0 transition-transform duration-200", e.open && "rotate-180");
|
|
2544
|
+
}
|
|
2545
|
+
}), null), c(t, l(C, {
|
|
2546
|
+
get when() {
|
|
2547
|
+
return e.open;
|
|
2548
|
+
},
|
|
2549
|
+
get children() {
|
|
2550
|
+
var r = Ol();
|
|
2551
|
+
return c(r, () => e.children), r;
|
|
2552
|
+
}
|
|
2553
|
+
}), null), $((r) => {
|
|
2554
|
+
var o = v(e.class), a = e.open;
|
|
2555
|
+
return o !== r.e && k(t, r.e = o), a !== r.t && y(n, "aria-expanded", r.t = a), r;
|
|
2556
|
+
}, {
|
|
2557
|
+
e: void 0,
|
|
2558
|
+
t: void 0
|
|
2559
|
+
}), t;
|
|
2560
|
+
})();
|
|
2561
|
+
}
|
|
2562
|
+
R(["click"]);
|
|
2563
|
+
var Pl = /* @__PURE__ */ m('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');
|
|
2564
|
+
function Ya(e) {
|
|
2565
|
+
const t = () => e.size ?? 96, n = () => e.thickness ?? 8, r = () => Math.min(100, Math.max(0, e.value)), o = () => (t() - n()) / 2, a = () => 2 * Math.PI * o(), i = () => a() * (1 - r() / 100);
|
|
2566
|
+
return (() => {
|
|
2567
|
+
var s = Pl(), u = s.firstChild, d = u.firstChild, g = d.nextSibling, f = u.nextSibling;
|
|
2568
|
+
return c(f, l(C, {
|
|
2569
|
+
get when() {
|
|
2570
|
+
return e.label;
|
|
2571
|
+
},
|
|
2572
|
+
get fallback() {
|
|
2573
|
+
return `${Math.round(r())}%`;
|
|
2574
|
+
},
|
|
2575
|
+
get children() {
|
|
2576
|
+
return e.label;
|
|
2577
|
+
}
|
|
2578
|
+
})), $((h) => {
|
|
2579
|
+
var x = r(), M = v("relative inline-flex items-center justify-center", e.class), S = `${t()}px`, _ = `${t()}px`, b = t(), p = t(), w = `0 0 ${t()} ${t()}`, F = t() / 2, A = t() / 2, P = o(), I = n(), O = t() / 2, B = t() / 2, T = o(), z = n(), H = String(a()), J = String(i());
|
|
2580
|
+
return x !== h.e && y(s, "aria-valuenow", h.e = x), M !== h.t && k(s, h.t = M), S !== h.a && j(s, "width", h.a = S), _ !== h.o && j(s, "height", h.o = _), b !== h.i && y(u, "width", h.i = b), p !== h.n && y(u, "height", h.n = p), w !== h.s && y(u, "viewBox", h.s = w), F !== h.h && y(d, "cx", h.h = F), A !== h.r && y(d, "cy", h.r = A), P !== h.d && y(d, "r", h.d = P), I !== h.l && y(d, "stroke-width", h.l = I), O !== h.u && y(g, "cx", h.u = O), B !== h.c && y(g, "cy", h.c = B), T !== h.w && y(g, "r", h.w = T), z !== h.m && y(g, "stroke-width", h.m = z), H !== h.f && y(g, "stroke-dasharray", h.f = H), J !== h.y && y(g, "stroke-dashoffset", h.y = J), h;
|
|
2581
|
+
}, {
|
|
2582
|
+
e: void 0,
|
|
2583
|
+
t: void 0,
|
|
2584
|
+
a: void 0,
|
|
2585
|
+
o: void 0,
|
|
2586
|
+
i: void 0,
|
|
2587
|
+
n: void 0,
|
|
2588
|
+
s: void 0,
|
|
2589
|
+
h: void 0,
|
|
2590
|
+
r: void 0,
|
|
2591
|
+
d: void 0,
|
|
2592
|
+
l: void 0,
|
|
2593
|
+
u: void 0,
|
|
2594
|
+
c: void 0,
|
|
2595
|
+
w: void 0,
|
|
2596
|
+
m: void 0,
|
|
2597
|
+
f: void 0,
|
|
2598
|
+
y: void 0
|
|
2599
|
+
}), s;
|
|
2600
|
+
})();
|
|
2601
|
+
}
|
|
2602
|
+
var Bl = /* @__PURE__ */ m('<button type=button aria-label="Back to top">');
|
|
2603
|
+
function Va(e) {
|
|
2604
|
+
const [t, n] = L(!1);
|
|
2605
|
+
return Z(() => {
|
|
2606
|
+
const r = () => n(window.scrollY > (e.threshold ?? 300));
|
|
2607
|
+
r(), window.addEventListener("scroll", r, {
|
|
2608
|
+
passive: !0
|
|
2609
|
+
}), q(() => window.removeEventListener("scroll", r));
|
|
2610
|
+
}), l(C, {
|
|
2611
|
+
get when() {
|
|
2612
|
+
return t();
|
|
2613
|
+
},
|
|
2614
|
+
get children() {
|
|
2615
|
+
var r = Bl();
|
|
2616
|
+
return r.$$click = () => window.scrollTo({
|
|
2617
|
+
top: 0,
|
|
2618
|
+
behavior: "smooth"
|
|
2619
|
+
}), c(r, l(Jt, {
|
|
2620
|
+
class: "h-5 w-5"
|
|
2621
|
+
})), $(() => k(r, v("fixed bottom-6 right-6 z-40 grid h-11 w-11 place-items-center rounded-full bg-primary text-primary-foreground shadow-lg", e.class))), r;
|
|
2622
|
+
}
|
|
2623
|
+
});
|
|
2624
|
+
}
|
|
2625
|
+
R(["click"]);
|
|
2626
|
+
var Nl = /* @__PURE__ */ m("<button type=button>");
|
|
2627
|
+
const Yl = {
|
|
2628
|
+
"bottom-right": "bottom-6 right-6",
|
|
2629
|
+
"bottom-left": "bottom-6 left-6"
|
|
2630
|
+
}, Vl = "fixed z-40 grid h-14 w-14 place-items-center rounded-full bg-primary text-primary-foreground shadow-lg transition hover:brightness-110";
|
|
2631
|
+
function Ga(e) {
|
|
2632
|
+
return (() => {
|
|
2633
|
+
var t = Nl();
|
|
2634
|
+
return t.$$click = () => {
|
|
2635
|
+
var n;
|
|
2636
|
+
return (n = e.onClick) == null ? void 0 : n.call(e);
|
|
2637
|
+
}, c(t, () => e.icon), $((n) => {
|
|
2638
|
+
var r = e.label, o = v(Vl, Yl[e.position ?? "bottom-right"], e.class);
|
|
2639
|
+
return r !== n.e && y(t, "aria-label", n.e = r), o !== n.t && k(t, n.t = o), n;
|
|
2640
|
+
}, {
|
|
2641
|
+
e: void 0,
|
|
2642
|
+
t: void 0
|
|
2643
|
+
}), t;
|
|
2644
|
+
})();
|
|
2645
|
+
}
|
|
2646
|
+
R(["click"]);
|
|
2647
|
+
var Gl = /* @__PURE__ */ m("<nav>"), Hl = /* @__PURE__ */ m("<a>");
|
|
2648
|
+
function Ha(e) {
|
|
2649
|
+
const [t, n] = L();
|
|
2650
|
+
Z(() => {
|
|
2651
|
+
const o = /* @__PURE__ */ new Map(), a = new IntersectionObserver((i) => {
|
|
2652
|
+
for (const d of i) {
|
|
2653
|
+
const g = d.target.id;
|
|
2654
|
+
d.isIntersecting ? o.set(g, d.boundingClientRect.top) : o.delete(g);
|
|
2655
|
+
}
|
|
2656
|
+
let s, u = 1 / 0;
|
|
2657
|
+
for (const [d, g] of o)
|
|
2658
|
+
g < u && (u = g, s = d);
|
|
2659
|
+
s && n(s);
|
|
2660
|
+
}, {
|
|
2661
|
+
rootMargin: "0px 0px -70% 0px"
|
|
2662
|
+
});
|
|
2663
|
+
for (const i of e.items) {
|
|
2664
|
+
const s = document.getElementById(i.id);
|
|
2665
|
+
s && a.observe(s);
|
|
2666
|
+
}
|
|
2667
|
+
q(() => a.disconnect());
|
|
2668
|
+
});
|
|
2669
|
+
const r = (o, a) => {
|
|
2670
|
+
var i;
|
|
2671
|
+
o.preventDefault(), (i = document.getElementById(a)) == null || i.scrollIntoView({
|
|
2672
|
+
behavior: "smooth"
|
|
2673
|
+
}), n(a);
|
|
2674
|
+
};
|
|
2675
|
+
return (() => {
|
|
2676
|
+
var o = Gl();
|
|
2677
|
+
return c(o, l(E, {
|
|
2678
|
+
get each() {
|
|
2679
|
+
return e.items;
|
|
2680
|
+
},
|
|
2681
|
+
children: (a) => (() => {
|
|
2682
|
+
var i = Hl();
|
|
2683
|
+
return i.$$click = (s) => r(s, a.id), c(i, () => a.label), $((s) => {
|
|
2684
|
+
var u = "#" + a.id, d = t() === a.id ? "true" : void 0, g = v("block rounded px-3 py-1.5 text-sm transition-colors", t() === a.id ? "border-l-2 border-primary font-medium text-primary" : "text-muted-foreground hover:text-foreground");
|
|
2685
|
+
return u !== s.e && y(i, "href", s.e = u), d !== s.t && y(i, "aria-current", s.t = d), g !== s.a && k(i, s.a = g), s;
|
|
2686
|
+
}, {
|
|
2687
|
+
e: void 0,
|
|
2688
|
+
t: void 0,
|
|
2689
|
+
a: void 0
|
|
2690
|
+
}), i;
|
|
2691
|
+
})()
|
|
2692
|
+
})), $(() => k(o, v("flex flex-col gap-0.5", e.class))), o;
|
|
2693
|
+
})();
|
|
2694
|
+
}
|
|
2695
|
+
R(["click"]);
|
|
2696
|
+
var Xl = /* @__PURE__ */ m("<span>"), Ul = /* @__PURE__ */ m('<mark class="rounded bg-primary/20 text-foreground">');
|
|
2697
|
+
function ql(e) {
|
|
2698
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2699
|
+
}
|
|
2700
|
+
function Xa(e) {
|
|
2701
|
+
const t = () => {
|
|
2702
|
+
if (!e.query) return [{
|
|
2703
|
+
text: e.text,
|
|
2704
|
+
match: !1
|
|
2705
|
+
}];
|
|
2706
|
+
const n = new RegExp(`(${ql(e.query)})`, "gi"), r = e.query.toLowerCase();
|
|
2707
|
+
return e.text.split(n).filter((o) => o !== "").map((o) => ({
|
|
2708
|
+
text: o,
|
|
2709
|
+
match: o.toLowerCase() === r
|
|
2710
|
+
}));
|
|
2711
|
+
};
|
|
2712
|
+
return (() => {
|
|
2713
|
+
var n = Xl();
|
|
2714
|
+
return c(n, l(E, {
|
|
2715
|
+
get each() {
|
|
2716
|
+
return t();
|
|
2717
|
+
},
|
|
2718
|
+
children: (r) => r.match ? (() => {
|
|
2719
|
+
var o = Ul();
|
|
2720
|
+
return c(o, () => r.text), o;
|
|
2721
|
+
})() : r.text
|
|
2722
|
+
})), $(() => k(n, v(e.class))), n;
|
|
2723
|
+
})();
|
|
2724
|
+
}
|
|
2725
|
+
var Kl = /* @__PURE__ */ m("<ul>"), rt = /* @__PURE__ */ m("<div class=shrink-0>"), Wl = /* @__PURE__ */ m('<p class="text-xs text-muted-foreground">'), Jl = /* @__PURE__ */ m('<div class="text-xs text-muted-foreground">'), Zl = /* @__PURE__ */ m('<li class="flex items-center gap-3 px-4 py-3"><div class="min-w-0 flex-1"><p class="text-sm font-medium text-foreground">');
|
|
2726
|
+
function Ua(e) {
|
|
2727
|
+
return (() => {
|
|
2728
|
+
var t = Kl();
|
|
2729
|
+
return c(t, l(E, {
|
|
2730
|
+
get each() {
|
|
2731
|
+
return e.items;
|
|
2732
|
+
},
|
|
2733
|
+
children: (n) => (() => {
|
|
2734
|
+
var r = Zl(), o = r.firstChild, a = o.firstChild;
|
|
2735
|
+
return c(r, l(C, {
|
|
2736
|
+
get when() {
|
|
2737
|
+
return n.avatar;
|
|
2738
|
+
},
|
|
2739
|
+
get children() {
|
|
2740
|
+
var i = rt();
|
|
2741
|
+
return c(i, () => n.avatar), i;
|
|
2742
|
+
}
|
|
2743
|
+
}), o), c(a, () => n.title), c(o, l(C, {
|
|
2744
|
+
get when() {
|
|
2745
|
+
return n.description;
|
|
2746
|
+
},
|
|
2747
|
+
get children() {
|
|
2748
|
+
var i = Wl();
|
|
2749
|
+
return c(i, () => n.description), i;
|
|
2750
|
+
}
|
|
2751
|
+
}), null), c(r, l(C, {
|
|
2752
|
+
get when() {
|
|
2753
|
+
return n.meta;
|
|
2754
|
+
},
|
|
2755
|
+
get children() {
|
|
2756
|
+
var i = Jl();
|
|
2757
|
+
return c(i, () => n.meta), i;
|
|
2758
|
+
}
|
|
2759
|
+
}), null), c(r, l(C, {
|
|
2760
|
+
get when() {
|
|
2761
|
+
return n.actions;
|
|
2762
|
+
},
|
|
2763
|
+
get children() {
|
|
2764
|
+
var i = rt();
|
|
2765
|
+
return c(i, () => n.actions), i;
|
|
2766
|
+
}
|
|
2767
|
+
}), null), r;
|
|
2768
|
+
})()
|
|
2769
|
+
})), $(() => k(t, v("divide-y divide-border rounded-lg border border-border", e.class))), t;
|
|
2770
|
+
})();
|
|
2771
|
+
}
|
|
2772
|
+
var Ql = /* @__PURE__ */ m("<div>"), eo = /* @__PURE__ */ m('<div class="flex flex-col items-center"><span class="text-2xl font-bold tabular-nums text-foreground"></span><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');
|
|
2773
|
+
const Re = 1e3, Oe = 60 * Re, je = 60 * Oe, nt = 24 * je, ze = (e) => String(e).padStart(2, "0");
|
|
2774
|
+
function qa(e) {
|
|
2775
|
+
const t = (f) => Math.max(0, f.getTime() - Date.now()), [n, r] = L(t(e.to));
|
|
2776
|
+
let o = !1;
|
|
2777
|
+
const a = (f) => {
|
|
2778
|
+
var h;
|
|
2779
|
+
f <= 0 && !o && (o = !0, (h = e.onComplete) == null || h.call(e));
|
|
2780
|
+
};
|
|
2781
|
+
a(n()), Z(() => {
|
|
2782
|
+
const f = setInterval(() => {
|
|
2783
|
+
const h = t(e.to);
|
|
2784
|
+
r(h), a(h);
|
|
2785
|
+
}, Re);
|
|
2786
|
+
q(() => clearInterval(f));
|
|
2787
|
+
});
|
|
2788
|
+
const i = () => Math.floor(n() / nt), s = () => Math.floor(n() % nt / je), u = () => Math.floor(n() % je / Oe), d = () => Math.floor(n() % Oe / Re), g = () => [{
|
|
2789
|
+
label: "Days",
|
|
2790
|
+
value: String(i())
|
|
2791
|
+
}, {
|
|
2792
|
+
label: "Hours",
|
|
2793
|
+
value: ze(s())
|
|
2794
|
+
}, {
|
|
2795
|
+
label: "Mins",
|
|
2796
|
+
value: ze(u())
|
|
2797
|
+
}, {
|
|
2798
|
+
label: "Secs",
|
|
2799
|
+
value: ze(d())
|
|
2800
|
+
}];
|
|
2801
|
+
return (() => {
|
|
2802
|
+
var f = Ql();
|
|
2803
|
+
return c(f, l(E, {
|
|
2804
|
+
get each() {
|
|
2805
|
+
return g();
|
|
2806
|
+
},
|
|
2807
|
+
children: (h) => (() => {
|
|
2808
|
+
var x = eo(), M = x.firstChild, S = M.nextSibling;
|
|
2809
|
+
return c(M, () => h.value), c(S, () => h.label), x;
|
|
2810
|
+
})()
|
|
2811
|
+
})), $(() => k(f, v("flex gap-4", e.class))), f;
|
|
2812
|
+
})();
|
|
2813
|
+
}
|
|
2814
|
+
var to = /* @__PURE__ */ m("<div aria-hidden=true>"), ro = /* @__PURE__ */ m('<div class="fixed z-40">'), no = /* @__PURE__ */ m("<div>");
|
|
2815
|
+
function Ka(e) {
|
|
2816
|
+
const [t, n] = L(!1), [r, o] = L({
|
|
2817
|
+
width: 0,
|
|
2818
|
+
height: 0
|
|
2819
|
+
});
|
|
2820
|
+
let a;
|
|
2821
|
+
return Z(() => {
|
|
2822
|
+
let i = 0;
|
|
2823
|
+
const s = () => {
|
|
2824
|
+
if (!a) return;
|
|
2825
|
+
const g = a.getBoundingClientRect();
|
|
2826
|
+
t() || (i = g.top + window.scrollY, o({
|
|
2827
|
+
width: g.width,
|
|
2828
|
+
height: g.height
|
|
2829
|
+
}));
|
|
2830
|
+
}, u = () => {
|
|
2831
|
+
const g = e.offsetTop ?? 0;
|
|
2832
|
+
n(window.scrollY + g > i);
|
|
2833
|
+
}, d = () => {
|
|
2834
|
+
s(), u();
|
|
2835
|
+
};
|
|
2836
|
+
s(), u(), window.addEventListener("scroll", d, {
|
|
2837
|
+
passive: !0
|
|
2838
|
+
}), window.addEventListener("resize", d, {
|
|
2839
|
+
passive: !0
|
|
2840
|
+
}), q(() => {
|
|
2841
|
+
window.removeEventListener("scroll", d), window.removeEventListener("resize", d);
|
|
2842
|
+
});
|
|
2843
|
+
}), (() => {
|
|
2844
|
+
var i = no(), s = a;
|
|
2845
|
+
return typeof s == "function" ? N(s, i) : a = i, c(i, l(C, {
|
|
2846
|
+
get when() {
|
|
2847
|
+
return t();
|
|
2848
|
+
},
|
|
2849
|
+
get fallback() {
|
|
2850
|
+
return e.children;
|
|
2851
|
+
},
|
|
2852
|
+
get children() {
|
|
2853
|
+
return [(() => {
|
|
2854
|
+
var u = to();
|
|
2855
|
+
return $((d) => {
|
|
2856
|
+
var g = `${r().width}px`, f = `${r().height}px`;
|
|
2857
|
+
return g !== d.e && j(u, "width", d.e = g), f !== d.t && j(u, "height", d.t = f), d;
|
|
2858
|
+
}, {
|
|
2859
|
+
e: void 0,
|
|
2860
|
+
t: void 0
|
|
2861
|
+
}), u;
|
|
2862
|
+
})(), (() => {
|
|
2863
|
+
var u = ro();
|
|
2864
|
+
return c(u, () => e.children), $((d) => {
|
|
2865
|
+
var g = `${e.offsetTop ?? 0}px`, f = `${r().width}px`;
|
|
2866
|
+
return g !== d.e && j(u, "top", d.e = g), f !== d.t && j(u, "width", d.t = f), d;
|
|
2867
|
+
}, {
|
|
2868
|
+
e: void 0,
|
|
2869
|
+
t: void 0
|
|
2870
|
+
}), u;
|
|
2871
|
+
})()];
|
|
2872
|
+
}
|
|
2873
|
+
})), $(() => k(i, v(e.class))), i;
|
|
2874
|
+
})();
|
|
2875
|
+
}
|
|
2876
|
+
var lo = /* @__PURE__ */ m('<div class="flex min-w-0 flex-1 flex-col rounded-lg border border-border"><div class="border-b border-border px-3 py-2 text-sm font-medium text-foreground"></div><ul class="max-h-64 flex-1 overflow-y-auto p-1">'), oo = /* @__PURE__ */ m('<li><label class="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground hover:bg-muted"><input type=checkbox class="h-4 w-4 rounded border-input accent-primary"><span class="min-w-0 truncate">'), io = /* @__PURE__ */ m('<div><div class="flex flex-col items-center justify-center gap-2">');
|
|
2877
|
+
function Wa(e) {
|
|
2878
|
+
const [t, n] = L(/* @__PURE__ */ new Set()), r = () => e.titles ?? ["Available", "Selected"], o = () => e.items.filter((g) => !e.selected.includes(g.value)), a = () => e.items.filter((g) => e.selected.includes(g.value)), i = (g) => {
|
|
2879
|
+
const f = new Set(t());
|
|
2880
|
+
f.has(g) ? f.delete(g) : f.add(g), n(f);
|
|
2881
|
+
}, s = () => {
|
|
2882
|
+
const g = o().filter((f) => t().has(f.value));
|
|
2883
|
+
g.length !== 0 && (e.onChange([...e.selected, ...g.map((f) => f.value)]), n(/* @__PURE__ */ new Set()));
|
|
2884
|
+
}, u = () => {
|
|
2885
|
+
const g = new Set(a().filter((f) => t().has(f.value)).map((f) => f.value));
|
|
2886
|
+
g.size !== 0 && (e.onChange(e.selected.filter((f) => !g.has(f))), n(/* @__PURE__ */ new Set()));
|
|
2887
|
+
}, d = (g, f) => (() => {
|
|
2888
|
+
var h = lo(), x = h.firstChild, M = x.nextSibling;
|
|
2889
|
+
return c(x, g), c(M, l(E, {
|
|
2890
|
+
get each() {
|
|
2891
|
+
return f();
|
|
2892
|
+
},
|
|
2893
|
+
children: (S) => (() => {
|
|
2894
|
+
var _ = oo(), b = _.firstChild, p = b.firstChild, w = p.nextSibling;
|
|
2895
|
+
return p.addEventListener("change", () => i(S.value)), c(w, () => S.label), $(() => p.checked = t().has(S.value)), _;
|
|
2896
|
+
})()
|
|
2897
|
+
})), h;
|
|
2898
|
+
})();
|
|
2899
|
+
return (() => {
|
|
2900
|
+
var g = io(), f = g.firstChild;
|
|
2901
|
+
return c(g, () => d(r()[0], o), f), c(f, l(Te, {
|
|
2902
|
+
variant: "outline",
|
|
2903
|
+
class: "px-2",
|
|
2904
|
+
onClick: s,
|
|
2905
|
+
"aria-label": "Move to selected",
|
|
2906
|
+
get children() {
|
|
2907
|
+
return l(ue, {
|
|
2908
|
+
class: "h-4 w-4"
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2911
|
+
}), null), c(f, l(Te, {
|
|
2912
|
+
variant: "outline",
|
|
2913
|
+
class: "px-2",
|
|
2914
|
+
onClick: u,
|
|
2915
|
+
"aria-label": "Move to available",
|
|
2916
|
+
get children() {
|
|
2917
|
+
return l(ke, {
|
|
2918
|
+
class: "h-4 w-4"
|
|
2919
|
+
});
|
|
2920
|
+
}
|
|
2921
|
+
}), null), c(g, () => d(r()[1], a), null), $(() => k(g, v("flex items-stretch gap-3", e.class))), g;
|
|
2922
|
+
})();
|
|
2923
|
+
}
|
|
2924
|
+
var ao = /* @__PURE__ */ m("<img loading=lazy>", !0, !1, !1), so = /* @__PURE__ */ m("<button type=button class=cursor-zoom-in>"), co = /* @__PURE__ */ m('<img class="max-h-[85vh] max-w-[90vw] rounded-lg object-contain">'), uo = /* @__PURE__ */ m('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
|
|
2925
|
+
function Ja(e) {
|
|
2926
|
+
const [t, n] = L(!1), r = () => e.preview !== !1, o = (() => {
|
|
2927
|
+
var a = ao();
|
|
2928
|
+
return $((i) => {
|
|
2929
|
+
var s = e.src, u = e.alt, d = v("rounded-lg object-cover", e.class);
|
|
2930
|
+
return s !== i.e && y(a, "src", i.e = s), u !== i.t && y(a, "alt", i.t = u), d !== i.a && k(a, i.a = d), i;
|
|
2931
|
+
}, {
|
|
2932
|
+
e: void 0,
|
|
2933
|
+
t: void 0,
|
|
2934
|
+
a: void 0
|
|
2935
|
+
}), a;
|
|
2936
|
+
})();
|
|
2937
|
+
return l(C, {
|
|
2938
|
+
get when() {
|
|
2939
|
+
return r();
|
|
2940
|
+
},
|
|
2941
|
+
fallback: o,
|
|
2942
|
+
get children() {
|
|
2943
|
+
return [(() => {
|
|
2944
|
+
var a = so();
|
|
2945
|
+
return a.$$click = () => n(!0), c(a, o), $(() => y(a, "aria-label", e.alt)), a;
|
|
2946
|
+
})(), l(D, {
|
|
2947
|
+
get open() {
|
|
2948
|
+
return t();
|
|
2949
|
+
},
|
|
2950
|
+
onOpenChange: n,
|
|
2951
|
+
get children() {
|
|
2952
|
+
return l(D.Portal, {
|
|
2953
|
+
get children() {
|
|
2954
|
+
return [l(D.Overlay, {
|
|
2955
|
+
class: "fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
2956
|
+
}), (() => {
|
|
2957
|
+
var a = uo();
|
|
2958
|
+
return c(a, l(D.Content, {
|
|
2959
|
+
role: "dialog",
|
|
2960
|
+
class: "relative",
|
|
2961
|
+
get children() {
|
|
2962
|
+
return [(() => {
|
|
2963
|
+
var i = co();
|
|
2964
|
+
return $((s) => {
|
|
2965
|
+
var u = e.src, d = e.alt;
|
|
2966
|
+
return u !== s.e && y(i, "src", s.e = u), d !== s.t && y(i, "alt", s.t = d), s;
|
|
2967
|
+
}, {
|
|
2968
|
+
e: void 0,
|
|
2969
|
+
t: void 0
|
|
2970
|
+
}), i;
|
|
2971
|
+
})(), l(D.CloseButton, {
|
|
2972
|
+
class: "absolute right-2 top-2 grid h-8 w-8 place-items-center rounded-lg bg-background/70 text-foreground transition hover:bg-muted",
|
|
2973
|
+
"aria-label": "Close",
|
|
2974
|
+
get children() {
|
|
2975
|
+
return l(Ee, {
|
|
2976
|
+
class: "h-5 w-5"
|
|
2977
|
+
});
|
|
2978
|
+
}
|
|
2979
|
+
})];
|
|
2980
|
+
}
|
|
2981
|
+
})), a;
|
|
2982
|
+
})()];
|
|
2983
|
+
}
|
|
2984
|
+
});
|
|
2985
|
+
}
|
|
2986
|
+
})];
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
}
|
|
2990
|
+
R(["click"]);
|
|
2991
|
+
var go = /* @__PURE__ */ m('<div class="flex flex-col items-center gap-3">'), fo = /* @__PURE__ */ m('<div><button type=button class="flex h-14 w-14 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring"><span>'), mo = /* @__PURE__ */ m('<button type=button class="flex h-11 w-11 translate-y-0 items-center justify-center rounded-full border border-border bg-card text-foreground opacity-100 shadow transition-[opacity,transform] duration-150 hover:bg-muted focus:outline-none focus:ring-2 focus:ring-ring">');
|
|
2992
|
+
function Za(e) {
|
|
2993
|
+
const [t, n] = L(!1);
|
|
2994
|
+
return (() => {
|
|
2995
|
+
var r = fo(), o = r.firstChild, a = o.firstChild;
|
|
2996
|
+
return c(r, l(C, {
|
|
2997
|
+
get when() {
|
|
2998
|
+
return t();
|
|
2999
|
+
},
|
|
3000
|
+
get children() {
|
|
3001
|
+
var i = go();
|
|
3002
|
+
return c(i, l(E, {
|
|
3003
|
+
get each() {
|
|
3004
|
+
return e.actions;
|
|
3005
|
+
},
|
|
3006
|
+
children: (s) => (() => {
|
|
3007
|
+
var u = mo();
|
|
3008
|
+
return u.$$click = () => {
|
|
3009
|
+
s.onClick(), n(!1);
|
|
3010
|
+
}, c(u, () => s.icon), $((d) => {
|
|
3011
|
+
var g = s.label, f = s.label;
|
|
3012
|
+
return g !== d.e && y(u, "aria-label", d.e = g), f !== d.t && y(u, "title", d.t = f), d;
|
|
3013
|
+
}, {
|
|
3014
|
+
e: void 0,
|
|
3015
|
+
t: void 0
|
|
3016
|
+
}), u;
|
|
3017
|
+
})()
|
|
3018
|
+
})), i;
|
|
3019
|
+
}
|
|
3020
|
+
}), o), o.$$click = () => n((i) => !i), c(a, () => e.icon ?? l(Zt, {
|
|
3021
|
+
class: "h-6 w-6"
|
|
3022
|
+
})), $((i) => {
|
|
3023
|
+
var s = v("fixed bottom-6 right-6 z-40 flex flex-col items-center gap-3", e.class), u = t() ? "Close actions" : "Open actions", d = t(), g = v("inline-flex transition-transform duration-150", t() && "rotate-45");
|
|
3024
|
+
return s !== i.e && k(r, i.e = s), u !== i.t && y(o, "aria-label", i.t = u), d !== i.a && y(o, "aria-expanded", i.a = d), g !== i.o && k(a, i.o = g), i;
|
|
3025
|
+
}, {
|
|
3026
|
+
e: void 0,
|
|
3027
|
+
t: void 0,
|
|
3028
|
+
a: void 0,
|
|
3029
|
+
o: void 0
|
|
3030
|
+
}), r;
|
|
3031
|
+
})();
|
|
3032
|
+
}
|
|
3033
|
+
R(["click"]);
|
|
3034
|
+
var ho = /* @__PURE__ */ m("<nav>"), vo = /* @__PURE__ */ m("<button type=button><span>");
|
|
3035
|
+
function Qa(e) {
|
|
3036
|
+
return (() => {
|
|
3037
|
+
var t = ho();
|
|
3038
|
+
return c(t, l(E, {
|
|
3039
|
+
get each() {
|
|
3040
|
+
return e.items;
|
|
3041
|
+
},
|
|
3042
|
+
children: (n) => {
|
|
3043
|
+
const r = () => n.value === e.value;
|
|
3044
|
+
return (() => {
|
|
3045
|
+
var o = vo(), a = o.firstChild;
|
|
3046
|
+
return o.$$click = () => e.onChange(n.value), c(o, () => n.icon, a), c(a, () => n.label), $((i) => {
|
|
3047
|
+
var s = r() ? "page" : void 0, u = v("flex flex-1 flex-col items-center gap-0.5 py-2 text-[11px] transition-colors", r() ? "text-primary" : "text-muted-foreground hover:text-foreground");
|
|
3048
|
+
return s !== i.e && y(o, "aria-current", i.e = s), u !== i.t && k(o, i.t = u), i;
|
|
3049
|
+
}, {
|
|
3050
|
+
e: void 0,
|
|
3051
|
+
t: void 0
|
|
3052
|
+
}), o;
|
|
3053
|
+
})();
|
|
3054
|
+
}
|
|
3055
|
+
})), $(() => k(t, v("flex items-stretch border-t border-border bg-glass", e.class))), t;
|
|
3056
|
+
})();
|
|
3057
|
+
}
|
|
3058
|
+
R(["click"]);
|
|
3059
|
+
var xo = /* @__PURE__ */ m('<div><style>@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}</style><div><div class="flex shrink-0"></div><div class="flex shrink-0"aria-hidden=true>');
|
|
3060
|
+
function es(e) {
|
|
3061
|
+
const t = () => e.pauseOnHover ?? !0;
|
|
3062
|
+
return (() => {
|
|
3063
|
+
var n = xo(), r = n.firstChild, o = r.nextSibling, a = o.firstChild, i = a.nextSibling;
|
|
3064
|
+
return c(a, () => e.children), c(i, () => e.children), $((s) => {
|
|
3065
|
+
var u = v("overflow-hidden", e.class), d = v("flex w-max shrink-0", t() && "hover:[animation-play-state:paused]"), g = W() ? void 0 : {
|
|
3066
|
+
animation: `marquee ${e.speed ?? 20}s linear infinite`
|
|
3067
|
+
};
|
|
3068
|
+
return u !== s.e && k(n, s.e = u), d !== s.t && k(o, s.t = d), s.a = Yt(o, g, s.a), s;
|
|
3069
|
+
}, {
|
|
3070
|
+
e: void 0,
|
|
3071
|
+
t: void 0,
|
|
3072
|
+
a: void 0
|
|
3073
|
+
}), n;
|
|
3074
|
+
})();
|
|
3075
|
+
}
|
|
3076
|
+
function Le(e) {
|
|
3077
|
+
const t = e.querySelector("#cursorGlow"), n = (a) => {
|
|
3078
|
+
var d, g;
|
|
3079
|
+
t && (t.style.opacity = "1", t.style.left = `${a.clientX}px`, t.style.top = `${a.clientY}px`);
|
|
3080
|
+
const i = a.target, s = (d = i == null ? void 0 : i.closest) == null ? void 0 : d.call(i, ".magnetic");
|
|
3081
|
+
if (s) {
|
|
3082
|
+
const f = s.getBoundingClientRect(), h = (a.clientX - (f.left + f.width / 2)) / f.width, x = (a.clientY - (f.top + f.height / 2)) / f.height;
|
|
3083
|
+
s.style.transform = `translate(${(h * 7).toFixed(1)}px, ${(x * 7).toFixed(1)}px)`;
|
|
3084
|
+
}
|
|
3085
|
+
const u = (g = i == null ? void 0 : i.closest) == null ? void 0 : g.call(i, ".glow-edge");
|
|
3086
|
+
if (u) {
|
|
3087
|
+
const f = u.getBoundingClientRect();
|
|
3088
|
+
u.style.setProperty("--mx", `${a.clientX - f.left}px`), u.style.setProperty("--my", `${a.clientY - f.top}px`);
|
|
3089
|
+
}
|
|
3090
|
+
}, r = () => {
|
|
3091
|
+
t && (t.style.opacity = "0");
|
|
3092
|
+
}, o = (a) => {
|
|
3093
|
+
var s, u;
|
|
3094
|
+
const i = (u = (s = a.target) == null ? void 0 : s.closest) == null ? void 0 : u.call(s, ".magnetic");
|
|
3095
|
+
i && (i.style.transform = "");
|
|
3096
|
+
};
|
|
3097
|
+
return document.addEventListener("pointermove", n), window.addEventListener("pointerleave", r), document.addEventListener("pointerout", o), () => {
|
|
3098
|
+
document.removeEventListener("pointermove", n), window.removeEventListener("pointerleave", r), document.removeEventListener("pointerout", o);
|
|
3099
|
+
};
|
|
3100
|
+
}
|
|
3101
|
+
var bo = /* @__PURE__ */ m('<div id=space aria-hidden=true><div class=sky></div><div class=aurora></div><div id=starfield></div><svg class=constellation viewBox="0 0 260 170"style=position:absolute;top:6%;left:58%;width:260px;height:170px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=12 y1=120 x2=70 y2=60></line><line x1=70 y1=60 x2=140 y2=80></line><line x1=140 y1=80 x2=205 y2=30></line><line x1=140 y1=80 x2=170 y2=140></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=12 cy=120 r=3.6></circle><circle cx=70 cy=60 r=4.2></circle><circle cx=140 cy=80 r=3.6></circle><circle cx=205 cy=30 r=3.8></circle><circle cx=170 cy=140 r=3.4></circle></g></svg><svg class=constellation viewBox="0 0 200 130"style=position:absolute;bottom:8%;left:10%;width:200px;height:130px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=10 y1=20 x2=60 y2=55></line><line x1=60 y1=55 x2=120 y2=40></line><line x1=120 y1=40 x2=180 y2=90></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=10 cy=20 r=3.4></circle><circle cx=60 cy=55 r=4></circle><circle cx=120 cy=40 r=3.6></circle><circle cx=180 cy=90 r=3.8></circle></g></svg><div class="floaty slow"style=position:absolute;top:88px;right:-30px><div class=planet style="width:120px;height:120px;background:radial-gradient(circle at 32% 28%, color-mix(in srgb, hsl(var(--primary)) 78%, white), hsl(var(--primary)) 70%, color-mix(in srgb, hsl(var(--primary)) 68%, black));opacity:.7;box-shadow:0 0 60px hsl(var(--primary) / .35)"></div></div><div class=floaty style=position:absolute;bottom:60px;left:-24px><div class=planet-glow style="width:72px;height:72px;background:radial-gradient(circle at 36% 30%, color-mix(in srgb, hsl(var(--accent)) 75%, white), hsl(var(--accent)) 72%, color-mix(in srgb, hsl(var(--accent)) 66%, black));opacity:.6;box-shadow:0 0 44px hsl(var(--accent) / .4)"></div></div><div class="floaty slow"style=position:absolute;top:52%;right:6%><div class=planet-glow style="width:26px;height:26px;background:radial-gradient(circle at 35% 30%, hsl(199 60% 90%), hsl(210 30% 62%));opacity:.5"></div></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / .10), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease"></div><div id=satellite style="position:absolute;top:14%;left:-6%;transform:rotate(-18deg);filter:drop-shadow(0 0 4px hsl(var(--accent) / .8))">');
|
|
3102
|
+
const lt = [{
|
|
3103
|
+
angle: 22,
|
|
3104
|
+
x: [0, 32],
|
|
3105
|
+
y: [-6, 18]
|
|
3106
|
+
}, {
|
|
3107
|
+
angle: -24,
|
|
3108
|
+
x: [0, 32],
|
|
3109
|
+
y: [55, 82]
|
|
3110
|
+
}, {
|
|
3111
|
+
angle: 158,
|
|
3112
|
+
x: [62, 96],
|
|
3113
|
+
y: [-6, 22]
|
|
3114
|
+
}, {
|
|
3115
|
+
angle: 202,
|
|
3116
|
+
x: [62, 96],
|
|
3117
|
+
y: [52, 80]
|
|
3118
|
+
}], $o = ["255,255,255", "180,210,255", "255,228,170", "210,185,255", "165,230,255"], wo = ["198,146,28", "176,120,18", "214,162,46", "160,110,28", "190,134,34"], yo = `<svg viewBox="0 0 24 82" width="100%" height="100%" style="display:block;overflow:visible">
|
|
3119
|
+
<g class="rk-flame">
|
|
3120
|
+
<path d="M8.5 31 C 8 50, 11 70, 12 80 C 13 70, 16 50, 15.5 31 Z" fill="#ff6a00" opacity="0.8"/>
|
|
3121
|
+
<path d="M9.6 31 C 9.4 47, 11.2 60, 12 70 C 12.8 60, 14.6 47, 14.4 31 Z" fill="#ffb020" opacity="0.95"/>
|
|
3122
|
+
<path d="M10.6 31 C 10.6 43, 11.6 52, 12 60 C 12.4 52, 13.4 43, 13.4 31 Z" fill="#fff2b0"/>
|
|
3123
|
+
</g>
|
|
3124
|
+
<path d="M12 2 C 16 8, 16 20, 15 32 L 9 32 C 8 20, 8 8, 12 2 Z" fill="#e6edf7"/>
|
|
3125
|
+
<path d="M12 2 C 15 8, 15 13, 14.6 15 L 9.4 15 C 9 13, 9 8, 12 2 Z" fill="#ef5a3a"/>
|
|
3126
|
+
<path d="M9 26 L 4.6 34 L 9 31 Z" fill="#ef5a3a"/>
|
|
3127
|
+
<path d="M15 26 L 19.4 34 L 15 31 Z" fill="#ef5a3a"/>
|
|
3128
|
+
<circle cx="12" cy="19" r="2.3" fill="#8fd0ff" stroke="#2f6aa8" stroke-width="1"/>
|
|
3129
|
+
</svg>`, po = 66, _o = 7;
|
|
3130
|
+
function ko(e) {
|
|
3131
|
+
const t = Math.random, n = () => e[Math.floor(t() * e.length)];
|
|
3132
|
+
let r = "";
|
|
3133
|
+
for (let o = 0; o < po; o++) {
|
|
3134
|
+
const a = t() < 0.12, i = a ? 3 + t() * 1.8 : 1.2 + t() * 1.8, s = a ? 0.85 + t() * 0.15 : 0.3 + t() * 0.55, u = a ? 6 + t() * 8 : 1.5 + t() * 4, d = n(), g = t() < 0.4 ? `animation:twinkle ${(2.6 + t() * 3.5).toFixed(1)}s ease-in-out ${(t() * 4).toFixed(1)}s infinite;` : "";
|
|
3135
|
+
r += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${i.toFixed(1)}px;height:${i.toFixed(1)}px;border-radius:50%;background:rgba(${d},${s.toFixed(2)});box-shadow:0 0 ${u.toFixed(1)}px rgba(${d},${(s * 0.8).toFixed(2)});${g}"></span>`;
|
|
3136
|
+
}
|
|
3137
|
+
for (let o = 0; o < _o; o++) {
|
|
3138
|
+
const a = n(), i = (1.8 + t() * 1.8).toFixed(1), s = (0.7 + t() * 0.3).toFixed(2), u = (4 + t() * 6).toFixed(1), d = (4 + t() * 86).toFixed(1), g = t() < 0.5, f = g ? "106%" : "-6%", h = g ? "-118vw" : "118vw", x = `${((t() * 2 - 1) * 16).toFixed(1)}vh`, M = 34 + t() * 34, S = (-t() * M).toFixed(1);
|
|
3139
|
+
r += `<span style="position:absolute;left:${f};top:${d}%;width:${i}px;height:${i}px;border-radius:50%;background:rgba(${a},${s});box-shadow:0 0 ${u}px rgba(${a},${(Number(s) * 0.8).toFixed(2)});--dx:${h};--dy:${x};animation:starDrift ${M.toFixed(1)}s linear ${S}s infinite;"></span>`;
|
|
3140
|
+
}
|
|
3141
|
+
return r;
|
|
3142
|
+
}
|
|
3143
|
+
function Co() {
|
|
3144
|
+
let e, t;
|
|
3145
|
+
const n = pt();
|
|
3146
|
+
return Q(() => {
|
|
3147
|
+
const r = n() === "light" ? wo : $o;
|
|
3148
|
+
t && (t.innerHTML = ko(r));
|
|
3149
|
+
}), Z(() => {
|
|
3150
|
+
const r = [], o = [], a = (b, p, w, F) => {
|
|
3151
|
+
b.addEventListener(p, w, F), r.push(() => b.removeEventListener(p, w, F));
|
|
3152
|
+
};
|
|
3153
|
+
let i = 0, s = 0, u = 0;
|
|
3154
|
+
const d = () => {
|
|
3155
|
+
i = 0, t && (t.style.transform = `translate3d(${s.toFixed(1)}px, ${u.toFixed(1)}px, 0)`), e.querySelectorAll(".constellation").forEach((b) => {
|
|
3156
|
+
b.style.transform = `translate3d(${(s * 1.8).toFixed(1)}px, ${(u * 1.8).toFixed(1)}px, 0)`;
|
|
3157
|
+
});
|
|
3158
|
+
};
|
|
3159
|
+
let g = null, f = null;
|
|
3160
|
+
const h = (b) => {
|
|
3161
|
+
if (W() || b.gamma == null || b.beta == null) return;
|
|
3162
|
+
g === null && (g = b.gamma, f = b.beta);
|
|
3163
|
+
const p = Math.max(-25, Math.min(25, b.gamma - g)), w = Math.max(-25, Math.min(25, b.beta - (f ?? 0)));
|
|
3164
|
+
s = p / 25 * 16, u = w / 25 * 16, i || (i = requestAnimationFrame(d));
|
|
3165
|
+
}, x = window.DeviceOrientationEvent;
|
|
3166
|
+
if (x)
|
|
3167
|
+
if (typeof x.requestPermission == "function") {
|
|
3168
|
+
let b = !1;
|
|
3169
|
+
const p = () => {
|
|
3170
|
+
var w;
|
|
3171
|
+
b || (w = x.requestPermission) == null || w.call(x).then((F) => {
|
|
3172
|
+
F === "granted" && (b = !0, a(window, "deviceorientation", h));
|
|
3173
|
+
}).catch(() => {
|
|
3174
|
+
});
|
|
3175
|
+
};
|
|
3176
|
+
a(window, "click", p), a(window, "touchend", p);
|
|
3177
|
+
} else
|
|
3178
|
+
a(window, "deviceorientation", h);
|
|
3179
|
+
r.push(() => {
|
|
3180
|
+
i && cancelAnimationFrame(i);
|
|
3181
|
+
});
|
|
3182
|
+
const M = (b, p, w, F, A, P) => {
|
|
3183
|
+
const I = document.createElement("div");
|
|
3184
|
+
I.className = "shooter", I.style.width = `${F}px`, I.style.left = b, I.style.top = p, e.appendChild(I);
|
|
3185
|
+
const O = I.animate([{
|
|
3186
|
+
opacity: 0,
|
|
3187
|
+
transform: `rotate(${w}deg) translateX(0px) scaleX(.4)`
|
|
3188
|
+
}, {
|
|
3189
|
+
opacity: 1,
|
|
3190
|
+
transform: `rotate(${w}deg) translateX(${A * 0.35}px) scaleX(1)`,
|
|
3191
|
+
offset: 0.5
|
|
3192
|
+
}, {
|
|
3193
|
+
opacity: 0,
|
|
3194
|
+
transform: `rotate(${w}deg) translateX(${A}px) scaleX(1)`
|
|
3195
|
+
}], {
|
|
3196
|
+
duration: P,
|
|
3197
|
+
easing: "cubic-bezier(.3,0,.15,1)",
|
|
3198
|
+
fill: "forwards"
|
|
3199
|
+
});
|
|
3200
|
+
O.onfinish = () => I.remove(), o.push(window.setTimeout(() => I.remove(), P + 250));
|
|
3201
|
+
}, S = (b, p, w, F, A, P) => {
|
|
3202
|
+
const I = document.createElement("div"), O = F * (82 / 24);
|
|
3203
|
+
I.style.cssText = `position:absolute;left:${b};top:${p};width:${F.toFixed(0)}px;height:${O.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, I.innerHTML = yo, e.appendChild(I);
|
|
3204
|
+
const B = w * Math.PI / 180, T = Math.cos(B) * A, z = Math.sin(B) * A, H = w + 90, J = I.animate([{
|
|
3205
|
+
opacity: 0,
|
|
3206
|
+
transform: `translate(0px,0px) rotate(${H}deg) scale(.5)`
|
|
3207
|
+
}, {
|
|
3208
|
+
opacity: 1,
|
|
3209
|
+
transform: `translate(${(T * 0.12).toFixed(0)}px,${(z * 0.12).toFixed(0)}px) rotate(${H}deg) scale(1)`,
|
|
3210
|
+
offset: 0.14
|
|
3211
|
+
}, {
|
|
3212
|
+
opacity: 1,
|
|
3213
|
+
transform: `translate(${(T * 0.82).toFixed(0)}px,${(z * 0.82).toFixed(0)}px) rotate(${H}deg) scale(1)`,
|
|
3214
|
+
offset: 0.82
|
|
3215
|
+
}, {
|
|
3216
|
+
opacity: 0,
|
|
3217
|
+
transform: `translate(${T.toFixed(0)}px,${z.toFixed(0)}px) rotate(${H}deg) scale(.85)`
|
|
3218
|
+
}], {
|
|
3219
|
+
duration: P,
|
|
3220
|
+
easing: "cubic-bezier(.25,0,.2,1)",
|
|
3221
|
+
fill: "forwards"
|
|
3222
|
+
});
|
|
3223
|
+
J.onfinish = () => I.remove(), o.push(window.setTimeout(() => I.remove(), P + 250));
|
|
3224
|
+
}, _ = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
|
|
3225
|
+
if (a(document, "click", ((b) => {
|
|
3226
|
+
var p, w;
|
|
3227
|
+
(w = (p = b.target) == null ? void 0 : p.closest) != null && w.call(p, _) || (n() === "light" ? S(
|
|
3228
|
+
`${b.clientX}px`,
|
|
3229
|
+
`${b.clientY}px`,
|
|
3230
|
+
-90 + (Math.random() * 80 - 40),
|
|
3231
|
+
// up-and-out from the click
|
|
3232
|
+
16 + Math.random() * 10,
|
|
3233
|
+
260 + Math.random() * 280,
|
|
3234
|
+
950 + Math.random() * 700
|
|
3235
|
+
) : M(`${b.clientX}px`, `${b.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
|
|
3236
|
+
})), !W()) {
|
|
3237
|
+
const b = () => {
|
|
3238
|
+
if (n() === "light") {
|
|
3239
|
+
S(`${(5 + Math.random() * 90).toFixed(0)}vw`, "104vh", -90 + (Math.random() * 30 - 15), 13 + Math.random() * 9, window.innerHeight * (1.1 + Math.random() * 0.35), 5200 + Math.random() * 3500);
|
|
3240
|
+
return;
|
|
3241
|
+
}
|
|
3242
|
+
const w = lt[Math.floor(Math.random() * lt.length)];
|
|
3243
|
+
M(`${w.x[0] + Math.random() * (w.x[1] - w.x[0])}vw`, `${w.y[0] + Math.random() * (w.y[1] - w.y[0])}vh`, w.angle + (Math.random() * 16 - 8), 90 + Math.random() * 90, 380 + Math.random() * 300, 850 + Math.random() * 550);
|
|
3244
|
+
}, p = () => {
|
|
3245
|
+
b(), o.push(window.setTimeout(p, 4500 + Math.random() * 6e3));
|
|
3246
|
+
};
|
|
3247
|
+
o.push(window.setTimeout(p, 1500)), r.push(Le(e));
|
|
3248
|
+
}
|
|
3249
|
+
q(() => {
|
|
3250
|
+
r.forEach((b) => b()), o.forEach((b) => clearTimeout(b));
|
|
3251
|
+
});
|
|
3252
|
+
}), (() => {
|
|
3253
|
+
var r = bo(), o = r.firstChild, a = o.nextSibling, i = a.nextSibling, s = i.nextSibling, u = s.nextSibling, d = u.nextSibling;
|
|
3254
|
+
d.firstChild;
|
|
3255
|
+
var g = d.nextSibling;
|
|
3256
|
+
g.firstChild;
|
|
3257
|
+
var f = g.nextSibling;
|
|
3258
|
+
f.firstChild;
|
|
3259
|
+
var h = f.nextSibling, x = h.nextSibling, M = e;
|
|
3260
|
+
typeof M == "function" ? N(M, r) : e = r;
|
|
3261
|
+
var S = t;
|
|
3262
|
+
return typeof S == "function" ? N(S, i) : t = i, c(x, l(Qt, {
|
|
3263
|
+
style: {
|
|
3264
|
+
width: "28px",
|
|
3265
|
+
height: "28px",
|
|
3266
|
+
color: "color-mix(in srgb, hsl(var(--accent)) 55%, white)",
|
|
3267
|
+
opacity: ".85"
|
|
3268
|
+
}
|
|
3269
|
+
})), r;
|
|
3270
|
+
})();
|
|
3271
|
+
}
|
|
3272
|
+
var So = /* @__PURE__ */ m('<div class="mx-auto max-w-md py-20 text-center"><p class="text-lg font-semibold">Something went wrong loading this page</p><p class="mt-1 break-words text-sm text-muted-foreground"></p><div class="mt-4 flex justify-center gap-2">'), Mo = /* @__PURE__ */ m('<div class="relative min-h-screen"><div class="relative z-10 flex min-h-screen"><div class="flex min-w-0 flex-1 flex-col"><main class="mx-auto w-full min-w-0 flex-1 px-4 py-6 sm:px-6">'), To = /* @__PURE__ */ m('<div class="flex justify-center py-24 text-muted-foreground">');
|
|
3273
|
+
function Eo(e, t) {
|
|
3274
|
+
return (() => {
|
|
3275
|
+
var n = So(), r = n.firstChild, o = r.nextSibling, a = o.nextSibling;
|
|
3276
|
+
return c(o, () => String((e == null ? void 0 : e.message) ?? e)), c(a, l(Te, {
|
|
3277
|
+
variant: "outline",
|
|
3278
|
+
onClick: t,
|
|
3279
|
+
children: "Retry"
|
|
3280
|
+
}), null), c(a, l(Te, {
|
|
3281
|
+
onClick: () => window.location.reload(),
|
|
3282
|
+
children: "Reload"
|
|
3283
|
+
}), null), n;
|
|
3284
|
+
})();
|
|
3285
|
+
}
|
|
3286
|
+
function ts(e) {
|
|
3287
|
+
const t = (n, r) => (e.errorFallback ?? Eo)(n, r);
|
|
3288
|
+
return (() => {
|
|
3289
|
+
var n = Mo(), r = n.firstChild, o = r.firstChild, a = o.firstChild;
|
|
3290
|
+
return c(n, l(C, {
|
|
3291
|
+
get when() {
|
|
3292
|
+
return e.background !== null;
|
|
3293
|
+
},
|
|
3294
|
+
fallback: null,
|
|
3295
|
+
get children() {
|
|
3296
|
+
return e.background ?? l(Co, {});
|
|
3297
|
+
}
|
|
3298
|
+
}), r), c(r, () => e.sidebar, o), c(o, () => e.banner, a), c(o, () => e.topbar, a), c(a, l(jt, {
|
|
3299
|
+
fallback: t,
|
|
3300
|
+
get children() {
|
|
3301
|
+
return l(Pt, {
|
|
3302
|
+
get fallback() {
|
|
3303
|
+
return (() => {
|
|
3304
|
+
var i = To();
|
|
3305
|
+
return c(i, l(un, {})), i;
|
|
3306
|
+
})();
|
|
3307
|
+
},
|
|
3308
|
+
get children() {
|
|
3309
|
+
return l(cr, {
|
|
3310
|
+
name: "page",
|
|
3311
|
+
get children() {
|
|
3312
|
+
return e.children;
|
|
3313
|
+
}
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3316
|
+
});
|
|
3317
|
+
}
|
|
3318
|
+
})), $((i) => j(a, "max-width", e.maxWidth ?? "1400px")), n;
|
|
3319
|
+
})();
|
|
3320
|
+
}
|
|
3321
|
+
var Lo = /* @__PURE__ */ m('<div id=scenery aria-hidden=true><div class=themed-sky></div><div class="absolute inset-0"></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / 0.1), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease">');
|
|
3322
|
+
function Fo(e, t, n) {
|
|
3323
|
+
const r = Math.random, o = () => e[Math.floor(r() * e.length)];
|
|
3324
|
+
let a = "";
|
|
3325
|
+
for (let i = 0; i < t; i++) {
|
|
3326
|
+
const s = 22 + r() * 40, u = 0.08 + r() * 0.16, d = (r() * 100).toFixed(2), g = (r() * 100).toFixed(2), f = (r() * 40 - 20).toFixed(1), h = (6 + r() * 8).toFixed(1), x = (-r() * 8).toFixed(1), M = n ? `--r:${f}deg;--dur:${h}s;--delay:${x}s;` : `transform:rotate(${f}deg);animation:none;`;
|
|
3327
|
+
a += `<span class="motif" style="left:${d}%;top:${g}%;font-size:${s.toFixed(0)}px;opacity:${u.toFixed(2)};${M}">${o()}</span>`;
|
|
3328
|
+
}
|
|
3329
|
+
return a;
|
|
3330
|
+
}
|
|
3331
|
+
const Io = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
|
|
3332
|
+
function rs(e) {
|
|
3333
|
+
let t, n;
|
|
3334
|
+
return Q(() => {
|
|
3335
|
+
n.innerHTML = Fo(e.motifs, e.count ?? 16, !W());
|
|
3336
|
+
}), Z(() => {
|
|
3337
|
+
const r = [], o = [], a = (s, u, d, g, f, h) => {
|
|
3338
|
+
const x = document.createElement("span");
|
|
3339
|
+
x.textContent = e.motifs[Math.floor(Math.random() * e.motifs.length)], x.style.cssText = `position:absolute;left:${s};top:${u};font-size:${h.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 6px hsl(var(--primary) / 0.5));`, t.appendChild(x);
|
|
3340
|
+
const M = d * Math.PI / 180, S = Math.cos(M) * g, _ = Math.sin(M) * g, b = x.animate([{
|
|
3341
|
+
opacity: 0,
|
|
3342
|
+
transform: "translate(0,0) rotate(0deg) scale(.6)"
|
|
3343
|
+
}, {
|
|
3344
|
+
opacity: 1,
|
|
3345
|
+
transform: `translate(${(S * 0.15).toFixed(0)}px,${(_ * 0.15).toFixed(0)}px) rotate(18deg) scale(1)`,
|
|
3346
|
+
offset: 0.15
|
|
3347
|
+
}, {
|
|
3348
|
+
opacity: 1,
|
|
3349
|
+
transform: `translate(${(S * 0.85).toFixed(0)}px,${(_ * 0.85).toFixed(0)}px) rotate(-14deg) scale(1)`,
|
|
3350
|
+
offset: 0.85
|
|
3351
|
+
}, {
|
|
3352
|
+
opacity: 0,
|
|
3353
|
+
transform: `translate(${S.toFixed(0)}px,${_.toFixed(0)}px) rotate(8deg) scale(.8)`
|
|
3354
|
+
}], {
|
|
3355
|
+
duration: f,
|
|
3356
|
+
easing: "cubic-bezier(.25,0,.2,1)",
|
|
3357
|
+
fill: "forwards"
|
|
3358
|
+
});
|
|
3359
|
+
b.onfinish = () => x.remove(), o.push(window.setTimeout(() => x.remove(), f + 300));
|
|
3360
|
+
}, i = (s) => {
|
|
3361
|
+
var u, d;
|
|
3362
|
+
(d = (u = s.target) == null ? void 0 : u.closest) != null && d.call(u, Io) || a(`${s.clientX}px`, `${s.clientY}px`, -90 + (Math.random() * 80 - 40), 260 + Math.random() * 260, 950 + Math.random() * 700, 22 + Math.random() * 14);
|
|
3363
|
+
};
|
|
3364
|
+
if (document.addEventListener("click", i), r.push(() => document.removeEventListener("click", i)), !W()) {
|
|
3365
|
+
r.push(Le(t));
|
|
3366
|
+
const s = () => {
|
|
3367
|
+
const d = Math.random() < 0.5;
|
|
3368
|
+
a(d ? "104vw" : "-6vw", `${(8 + Math.random() * 70).toFixed(0)}vh`, (d ? 180 : 0) + (Math.random() * 16 - 8), window.innerWidth * (1.1 + Math.random() * 0.3), 6e3 + Math.random() * 4e3, 20 + Math.random() * 16);
|
|
3369
|
+
}, u = () => {
|
|
3370
|
+
s(), o.push(window.setTimeout(u, 5e3 + Math.random() * 6e3));
|
|
3371
|
+
};
|
|
3372
|
+
o.push(window.setTimeout(u, 1800));
|
|
3373
|
+
}
|
|
3374
|
+
q(() => {
|
|
3375
|
+
r.forEach((s) => s()), o.forEach((s) => clearTimeout(s));
|
|
3376
|
+
});
|
|
3377
|
+
}), (() => {
|
|
3378
|
+
var r = Lo(), o = r.firstChild, a = o.nextSibling;
|
|
3379
|
+
a.nextSibling;
|
|
3380
|
+
var i = t;
|
|
3381
|
+
typeof i == "function" ? N(i, r) : t = r;
|
|
3382
|
+
var s = n;
|
|
3383
|
+
return typeof s == "function" ? N(s, a) : n = a, r;
|
|
3384
|
+
})();
|
|
3385
|
+
}
|
|
3386
|
+
var Ao = /* @__PURE__ */ m('<div id=snow aria-hidden=true><div class=snow-sky></div><div class="absolute inset-0"></div><div class=snow-bank></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / 0.1), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease">');
|
|
3387
|
+
const Do = 80;
|
|
3388
|
+
function zo(e) {
|
|
3389
|
+
const t = Math.random;
|
|
3390
|
+
let n = "";
|
|
3391
|
+
for (let r = 0; r < Do; r++) {
|
|
3392
|
+
const o = (2 + t() * 5).toFixed(1), a = (0.4 + t() * 0.6).toFixed(2), i = (t() * 100).toFixed(2), s = (5 + t() * 9).toFixed(1), u = (-t() * 14).toFixed(1), d = (t() * 2 - 1) * (8 + t() * 14), g = t() < 0.3 ? "filter:blur(1px);" : "", f = e ? `animation:snowFall ${s}s linear ${u}s infinite;` : `top:${(t() * 100).toFixed(1)}%;`;
|
|
3393
|
+
n += `<span class="flake" style="left:${i}%;width:${o}px;height:${o}px;opacity:${a};--sway:${d.toFixed(0)}px;${g}${f}"></span>`;
|
|
3394
|
+
}
|
|
3395
|
+
return n;
|
|
3396
|
+
}
|
|
3397
|
+
function ns() {
|
|
3398
|
+
let e, t;
|
|
3399
|
+
return Q(() => {
|
|
3400
|
+
t.innerHTML = zo(!W());
|
|
3401
|
+
}), Z(() => {
|
|
3402
|
+
document.documentElement.dataset.scene = "snow";
|
|
3403
|
+
const n = [];
|
|
3404
|
+
W() || n.push(Le(e)), q(() => {
|
|
3405
|
+
document.documentElement.dataset.scene === "snow" && delete document.documentElement.dataset.scene, n.forEach((r) => r());
|
|
3406
|
+
});
|
|
3407
|
+
}), (() => {
|
|
3408
|
+
var n = Ao(), r = n.firstChild, o = r.nextSibling, a = o.nextSibling;
|
|
3409
|
+
a.nextSibling;
|
|
3410
|
+
var i = e;
|
|
3411
|
+
typeof i == "function" ? N(i, n) : e = n;
|
|
3412
|
+
var s = t;
|
|
3413
|
+
return typeof s == "function" ? N(s, o) : t = o, n;
|
|
3414
|
+
})();
|
|
3415
|
+
}
|
|
3416
|
+
var Ro = /* @__PURE__ */ m('<div id=xmas aria-hidden=true><div class=xmas-sky></div><div class="absolute inset-0"></div><div style=position:absolute;top:0;left:0;right:0;height:26px></div><svg viewBox="0 0 200 270"style=position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:240px;height:auto;opacity:0.9><rect x=92 y=228 width=16 height=42 fill="hsl(25 45% 28%)"></rect><polygon points="100,64 60,150 140,150"fill=hsl(var(--accent))></polygon><polygon points="100,110 48,196 152,196"fill=hsl(var(--accent))></polygon><polygon points="100,158 38,240 162,240"fill=hsl(var(--accent))></polygon><polygon points="100,40 106,58 125,58 110,70 116,88 100,77 84,88 90,70 75,58 94,58"fill=#ffd23f></polygon><circle cx=82 cy=180 r=5 fill=#ff5a5a></circle><circle cx=120 cy=205 r=5 fill=#5aa9ff></circle><circle cx=100 cy=150 r=5 fill=#ffd23f></circle><circle cx=72 cy=225 r=5 fill=#ff8ad8></circle><circle cx=132 cy=228 r=5 fill=#ffd23f></circle></svg><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / 0.1), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease">'), Oo = /* @__PURE__ */ m("<span class=light>");
|
|
3417
|
+
const jo = 60, ot = ["#ff5a5a", "#4ade80", "#ffd23f", "#5aa9ff", "#ff8ad8"], it = Array.from({
|
|
3418
|
+
length: 22
|
|
3419
|
+
}, (e, t) => t);
|
|
3420
|
+
function Po(e) {
|
|
3421
|
+
const t = Math.random;
|
|
3422
|
+
let n = "";
|
|
3423
|
+
for (let r = 0; r < jo; r++) {
|
|
3424
|
+
const o = (2 + t() * 4).toFixed(1), a = (0.4 + t() * 0.6).toFixed(2), i = (t() * 100).toFixed(2), s = (6 + t() * 9).toFixed(1), u = (-t() * 15).toFixed(1), d = (t() * 2 - 1) * (8 + t() * 12), g = e ? `animation:snowFall ${s}s linear ${u}s infinite;` : `top:${(t() * 100).toFixed(1)}%;`;
|
|
3425
|
+
n += `<span class="flake" style="left:${i}%;width:${o}px;height:${o}px;opacity:${a};--sway:${d.toFixed(0)}px;${g}"></span>`;
|
|
3426
|
+
}
|
|
3427
|
+
return n;
|
|
3428
|
+
}
|
|
3429
|
+
function ls() {
|
|
3430
|
+
let e, t;
|
|
3431
|
+
return Q(() => {
|
|
3432
|
+
t.innerHTML = Po(!W());
|
|
3433
|
+
}), Z(() => {
|
|
3434
|
+
const n = [], r = [], o = (s) => {
|
|
3435
|
+
const u = document.createElement("span");
|
|
3436
|
+
u.textContent = "🎅🛷";
|
|
3437
|
+
const d = 6 + Math.random() * 26, g = 30 + Math.random() * 16;
|
|
3438
|
+
u.style.cssText = `position:absolute;top:${d}vh;${s ? "right" : "left"}:-14%;font-size:${g.toFixed(0)}px;white-space:nowrap;pointer-events:none;filter:drop-shadow(0 0 6px hsl(var(--primary) / 0.5));`, s && (u.style.transform = "scaleX(-1)"), e.appendChild(u);
|
|
3439
|
+
const f = window.innerWidth * 1.3, h = s ? -f : f, x = 6500 + Math.random() * 4e3, M = u.animate([{
|
|
3440
|
+
opacity: 0,
|
|
3441
|
+
transform: `translate(0,0) ${s ? "scaleX(-1)" : ""}`
|
|
3442
|
+
}, {
|
|
3443
|
+
opacity: 1,
|
|
3444
|
+
transform: `translate(${h * 0.15}px,-18px) ${s ? "scaleX(-1)" : ""}`,
|
|
3445
|
+
offset: 0.15
|
|
3446
|
+
}, {
|
|
3447
|
+
opacity: 1,
|
|
3448
|
+
transform: `translate(${h * 0.85}px,-18px) ${s ? "scaleX(-1)" : ""}`,
|
|
3449
|
+
offset: 0.85
|
|
3450
|
+
}, {
|
|
3451
|
+
opacity: 0,
|
|
3452
|
+
transform: `translate(${h}px,0) ${s ? "scaleX(-1)" : ""}`
|
|
3453
|
+
}], {
|
|
3454
|
+
duration: x,
|
|
3455
|
+
easing: "cubic-bezier(.4,0,.6,1)",
|
|
3456
|
+
fill: "forwards"
|
|
3457
|
+
});
|
|
3458
|
+
M.onfinish = () => u.remove(), r.push(window.setTimeout(() => u.remove(), x + 400));
|
|
3459
|
+
}, a = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]', i = (s) => {
|
|
3460
|
+
var u, d;
|
|
3461
|
+
(d = (u = s.target) == null ? void 0 : u.closest) != null && d.call(u, a) || o(Math.random() < 0.5);
|
|
3462
|
+
};
|
|
3463
|
+
if (document.addEventListener("click", i), n.push(() => document.removeEventListener("click", i)), !W()) {
|
|
3464
|
+
n.push(Le(e));
|
|
3465
|
+
const s = () => {
|
|
3466
|
+
o(Math.random() < 0.5), r.push(window.setTimeout(s, 9e3 + Math.random() * 9e3));
|
|
3467
|
+
};
|
|
3468
|
+
r.push(window.setTimeout(s, 3e3));
|
|
3469
|
+
}
|
|
3470
|
+
q(() => {
|
|
3471
|
+
n.forEach((s) => s()), r.forEach((s) => clearTimeout(s));
|
|
3472
|
+
});
|
|
3473
|
+
}), (() => {
|
|
3474
|
+
var n = Ro(), r = n.firstChild, o = r.nextSibling, a = o.nextSibling, i = a.nextSibling;
|
|
3475
|
+
i.nextSibling;
|
|
3476
|
+
var s = e;
|
|
3477
|
+
typeof s == "function" ? N(s, n) : e = n;
|
|
3478
|
+
var u = t;
|
|
3479
|
+
return typeof u == "function" ? N(u, o) : t = o, c(a, l(E, {
|
|
3480
|
+
each: it,
|
|
3481
|
+
children: (d) => {
|
|
3482
|
+
const g = ot[d % ot.length];
|
|
3483
|
+
return (() => {
|
|
3484
|
+
var f = Oo();
|
|
3485
|
+
return j(f, "background", g), j(f, "color", g), j(f, "animation-delay", `${d % 5 * 0.3}s`), $((h) => j(f, "left", `${(d / (it.length - 1) * 100).toFixed(2)}%`)), f;
|
|
3486
|
+
})();
|
|
3487
|
+
}
|
|
3488
|
+
})), n;
|
|
3489
|
+
})();
|
|
3490
|
+
}
|
|
3491
|
+
var Bo = /* @__PURE__ */ m('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground">');
|
|
3492
|
+
function os(e) {
|
|
3493
|
+
const t = pt();
|
|
3494
|
+
return (() => {
|
|
3495
|
+
var n = Bo();
|
|
3496
|
+
return Vt(n, "click", hr, !0), c(n, l(C, {
|
|
3497
|
+
get when() {
|
|
3498
|
+
return t() === "dark";
|
|
3499
|
+
},
|
|
3500
|
+
get fallback() {
|
|
3501
|
+
return l(tr, {
|
|
3502
|
+
class: "h-[18px] w-[18px]"
|
|
3503
|
+
});
|
|
3504
|
+
},
|
|
3505
|
+
get children() {
|
|
3506
|
+
return l(er, {
|
|
3507
|
+
class: "h-[18px] w-[18px]"
|
|
3508
|
+
});
|
|
3509
|
+
}
|
|
3510
|
+
})), $((r) => {
|
|
3511
|
+
var o = e.label ?? "Toggle theme", a = e.label ?? "Toggle theme";
|
|
3512
|
+
return o !== r.e && y(n, "aria-label", r.e = o), a !== r.t && y(n, "title", r.t = a), r;
|
|
3513
|
+
}, {
|
|
3514
|
+
e: void 0,
|
|
3515
|
+
t: void 0
|
|
3516
|
+
}), n;
|
|
3517
|
+
})();
|
|
3518
|
+
}
|
|
3519
|
+
R(["click"]);
|
|
3520
|
+
var No = /* @__PURE__ */ m('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground aria-pressed:text-primary">');
|
|
3521
|
+
function is(e) {
|
|
3522
|
+
const t = br();
|
|
3523
|
+
return (() => {
|
|
3524
|
+
var n = No();
|
|
3525
|
+
return n.$$click = () => wr(!t()), c(n, l(rr, {
|
|
3526
|
+
class: "h-[18px] w-[18px]"
|
|
3527
|
+
})), $((r) => {
|
|
3528
|
+
var o = t(), a = e.label ?? "Visual effects", i = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
|
|
3529
|
+
return o !== r.e && y(n, "aria-pressed", r.e = o), a !== r.t && y(n, "aria-label", r.t = a), i !== r.a && y(n, "title", r.a = i), r;
|
|
3530
|
+
}, {
|
|
3531
|
+
e: void 0,
|
|
3532
|
+
t: void 0,
|
|
3533
|
+
a: void 0
|
|
3534
|
+
}), n;
|
|
3535
|
+
})();
|
|
3536
|
+
}
|
|
3537
|
+
R(["click"]);
|
|
3538
|
+
var Yo = /* @__PURE__ */ m('<details open class=group><summary class="mt-3 flex cursor-pointer list-none select-none items-center justify-between rounded-md px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground transition-colors hover:bg-muted hover:text-foreground [&::-webkit-details-marker]:hidden"><span></span><svg class="h-3.5 w-3.5 shrink-0 transition-transform duration-200 group-[[open]]:rotate-90"viewBox="0 0 20 20"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 5l6 5-6 5"></path></svg></summary><div class="ml-4 mt-1 space-y-0.5 border-l border-border pl-2">');
|
|
3539
|
+
function as(e) {
|
|
3540
|
+
return (() => {
|
|
3541
|
+
var t = Yo(), n = t.firstChild, r = n.firstChild, o = n.nextSibling;
|
|
3542
|
+
return c(r, () => e.title), c(o, () => e.children), t;
|
|
3543
|
+
})();
|
|
3544
|
+
}
|
|
3545
|
+
const Vo = [
|
|
3546
|
+
"background",
|
|
3547
|
+
"foreground",
|
|
3548
|
+
"card",
|
|
3549
|
+
"card-foreground",
|
|
3550
|
+
"muted",
|
|
3551
|
+
"muted-foreground",
|
|
2177
3552
|
"border",
|
|
2178
3553
|
"input",
|
|
2179
3554
|
"primary",
|
|
@@ -2183,7 +3558,7 @@ const zn = [
|
|
|
2183
3558
|
"ring",
|
|
2184
3559
|
"destructive",
|
|
2185
3560
|
"destructive-foreground"
|
|
2186
|
-
],
|
|
3561
|
+
], Ne = {
|
|
2187
3562
|
name: "space",
|
|
2188
3563
|
label: "Space",
|
|
2189
3564
|
description: "The signature spatial-glass look: deep night sky and electric blue.",
|
|
@@ -2222,7 +3597,7 @@ const zn = [
|
|
|
2222
3597
|
destructive: "0 72% 50%",
|
|
2223
3598
|
"destructive-foreground": "0 0% 100%"
|
|
2224
3599
|
}
|
|
2225
|
-
},
|
|
3600
|
+
}, Go = {
|
|
2226
3601
|
name: "dino",
|
|
2227
3602
|
label: "Dino",
|
|
2228
3603
|
description: "Jurassic jungle: mossy greens with a warm amber accent.",
|
|
@@ -2262,7 +3637,7 @@ const zn = [
|
|
|
2262
3637
|
destructive: "0 72% 48%",
|
|
2263
3638
|
"destructive-foreground": "0 0% 100%"
|
|
2264
3639
|
}
|
|
2265
|
-
},
|
|
3640
|
+
}, Ho = {
|
|
2266
3641
|
name: "doctor",
|
|
2267
3642
|
label: "Doctor",
|
|
2268
3643
|
description: "Clinical and calm: teal and clean blues on crisp white.",
|
|
@@ -2302,7 +3677,7 @@ const zn = [
|
|
|
2302
3677
|
destructive: "0 72% 48%",
|
|
2303
3678
|
"destructive-foreground": "0 0% 100%"
|
|
2304
3679
|
}
|
|
2305
|
-
},
|
|
3680
|
+
}, Xo = {
|
|
2306
3681
|
name: "scientist",
|
|
2307
3682
|
label: "Scientist",
|
|
2308
3683
|
description: "Lab-grade violet with a bright cyan reaction accent.",
|
|
@@ -2342,7 +3717,7 @@ const zn = [
|
|
|
2342
3717
|
destructive: "0 72% 48%",
|
|
2343
3718
|
"destructive-foreground": "0 0% 100%"
|
|
2344
3719
|
}
|
|
2345
|
-
},
|
|
3720
|
+
}, Uo = {
|
|
2346
3721
|
name: "soccer",
|
|
2347
3722
|
label: "Soccer",
|
|
2348
3723
|
description: "Match-day pitch: vivid grass green and fresh lime.",
|
|
@@ -2382,135 +3757,247 @@ const zn = [
|
|
|
2382
3757
|
destructive: "0 72% 48%",
|
|
2383
3758
|
"destructive-foreground": "0 0% 100%"
|
|
2384
3759
|
}
|
|
2385
|
-
},
|
|
2386
|
-
|
|
2387
|
-
|
|
3760
|
+
}, qo = {
|
|
3761
|
+
name: "snow",
|
|
3762
|
+
label: "Snow",
|
|
3763
|
+
description: "A snowy winter: icy blues and frost white, with snow drifting down.",
|
|
3764
|
+
icon: "❄️",
|
|
3765
|
+
motifs: ["❄️", "⛄", "🌨️", "🏔️", "🧣", "☃️"],
|
|
3766
|
+
dark: {
|
|
3767
|
+
background: "215 45% 12%",
|
|
3768
|
+
foreground: "210 30% 92%",
|
|
3769
|
+
card: "215 40% 16%",
|
|
3770
|
+
"card-foreground": "210 30% 92%",
|
|
3771
|
+
muted: "215 30% 22%",
|
|
3772
|
+
"muted-foreground": "210 20% 74%",
|
|
3773
|
+
border: "215 25% 28%",
|
|
3774
|
+
input: "215 25% 28%",
|
|
3775
|
+
primary: "200 85% 38%",
|
|
3776
|
+
"primary-foreground": "0 0% 100%",
|
|
3777
|
+
accent: "190 75% 50%",
|
|
3778
|
+
"accent-foreground": "200 45% 12%",
|
|
3779
|
+
ring: "200 85% 38%",
|
|
3780
|
+
destructive: "0 72% 52%",
|
|
3781
|
+
"destructive-foreground": "0 0% 100%"
|
|
3782
|
+
},
|
|
3783
|
+
light: {
|
|
3784
|
+
background: "205 45% 96%",
|
|
3785
|
+
foreground: "215 45% 18%",
|
|
3786
|
+
card: "0 0% 100%",
|
|
3787
|
+
"card-foreground": "215 45% 18%",
|
|
3788
|
+
muted: "205 35% 92%",
|
|
3789
|
+
"muted-foreground": "215 22% 38%",
|
|
3790
|
+
border: "205 30% 85%",
|
|
3791
|
+
input: "205 35% 91%",
|
|
3792
|
+
primary: "205 85% 38%",
|
|
3793
|
+
"primary-foreground": "0 0% 100%",
|
|
3794
|
+
accent: "190 80% 40%",
|
|
3795
|
+
"accent-foreground": "200 45% 12%",
|
|
3796
|
+
ring: "205 85% 38%",
|
|
3797
|
+
destructive: "0 72% 48%",
|
|
3798
|
+
"destructive-foreground": "0 0% 100%"
|
|
3799
|
+
}
|
|
3800
|
+
}, Ko = {
|
|
3801
|
+
name: "christmas",
|
|
3802
|
+
label: "Christmas",
|
|
3803
|
+
description: "Cozy holiday night: cranberry red, pine green, a tree, lights, and Santa.",
|
|
3804
|
+
icon: "🎄",
|
|
3805
|
+
motifs: ["🎄", "🎅", "🎁", "⭐", "🔔", "❄️", "🦌", "🕯️"],
|
|
3806
|
+
dark: {
|
|
3807
|
+
background: "160 30% 9%",
|
|
3808
|
+
foreground: "40 30% 92%",
|
|
3809
|
+
card: "160 28% 13%",
|
|
3810
|
+
"card-foreground": "40 30% 92%",
|
|
3811
|
+
muted: "160 20% 19%",
|
|
3812
|
+
"muted-foreground": "40 18% 74%",
|
|
3813
|
+
border: "160 20% 24%",
|
|
3814
|
+
input: "160 20% 24%",
|
|
3815
|
+
primary: "0 72% 46%",
|
|
3816
|
+
"primary-foreground": "0 0% 100%",
|
|
3817
|
+
accent: "140 55% 32%",
|
|
3818
|
+
"accent-foreground": "0 0% 100%",
|
|
3819
|
+
ring: "0 72% 46%",
|
|
3820
|
+
destructive: "0 72% 52%",
|
|
3821
|
+
"destructive-foreground": "0 0% 100%"
|
|
3822
|
+
},
|
|
3823
|
+
light: {
|
|
3824
|
+
background: "40 44% 96%",
|
|
3825
|
+
foreground: "160 40% 14%",
|
|
3826
|
+
card: "0 0% 100%",
|
|
3827
|
+
"card-foreground": "160 40% 14%",
|
|
3828
|
+
muted: "40 30% 92%",
|
|
3829
|
+
"muted-foreground": "160 18% 34%",
|
|
3830
|
+
border: "40 25% 84%",
|
|
3831
|
+
input: "40 30% 91%",
|
|
3832
|
+
primary: "0 70% 44%",
|
|
3833
|
+
"primary-foreground": "0 0% 100%",
|
|
3834
|
+
accent: "140 55% 32%",
|
|
3835
|
+
"accent-foreground": "0 0% 100%",
|
|
3836
|
+
ring: "0 70% 44%",
|
|
3837
|
+
destructive: "0 72% 48%",
|
|
3838
|
+
"destructive-foreground": "0 0% 100%"
|
|
3839
|
+
}
|
|
3840
|
+
}, Wo = [Ne, Go, Ho, Xo, Uo, qo, Ko], Ft = "a4ui-theme-name", at = "a4ui-theme", It = (e) => Wo.find((t) => t.name === e);
|
|
3841
|
+
function st(e) {
|
|
3842
|
+
return Vo.map((t) => ` --${t}: ${e[t]};`).join(`
|
|
2388
3843
|
`);
|
|
2389
3844
|
}
|
|
2390
|
-
function
|
|
3845
|
+
function Jo(e) {
|
|
2391
3846
|
return `:root {
|
|
2392
|
-
${
|
|
3847
|
+
${st(e.dark)}
|
|
2393
3848
|
}
|
|
2394
3849
|
|
|
2395
3850
|
:root[data-theme='light'] {
|
|
2396
|
-
${
|
|
3851
|
+
${st(e.light)}
|
|
2397
3852
|
}`;
|
|
2398
3853
|
}
|
|
2399
|
-
function
|
|
3854
|
+
function ss(e) {
|
|
2400
3855
|
return { dark: e.dark, light: e.light };
|
|
2401
3856
|
}
|
|
2402
|
-
const [
|
|
2403
|
-
function
|
|
3857
|
+
const [cs, Zo] = L(Ne);
|
|
3858
|
+
function Qo(e) {
|
|
2404
3859
|
if (typeof document > "u") return;
|
|
2405
|
-
let t = document.getElementById(
|
|
2406
|
-
t || (t = document.createElement("style"), t.id =
|
|
3860
|
+
let t = document.getElementById(at);
|
|
3861
|
+
t || (t = document.createElement("style"), t.id = at, document.head.appendChild(t)), t.textContent = Jo(e);
|
|
2407
3862
|
}
|
|
2408
|
-
function
|
|
2409
|
-
const t = typeof e == "string" ?
|
|
2410
|
-
if (t && (
|
|
3863
|
+
function ei(e) {
|
|
3864
|
+
const t = typeof e == "string" ? It(e) : e;
|
|
3865
|
+
if (t && (Qo(t), Zo(t), typeof localStorage < "u"))
|
|
2411
3866
|
try {
|
|
2412
|
-
localStorage.setItem(
|
|
3867
|
+
localStorage.setItem(Ft, t.name);
|
|
2413
3868
|
} catch {
|
|
2414
3869
|
}
|
|
2415
3870
|
}
|
|
2416
|
-
function
|
|
3871
|
+
function ds() {
|
|
2417
3872
|
if (typeof document > "u") return;
|
|
2418
3873
|
let e = null;
|
|
2419
3874
|
if (typeof localStorage < "u")
|
|
2420
3875
|
try {
|
|
2421
|
-
e = localStorage.getItem(
|
|
3876
|
+
e = localStorage.getItem(Ft);
|
|
2422
3877
|
} catch {
|
|
2423
3878
|
e = null;
|
|
2424
3879
|
}
|
|
2425
|
-
|
|
3880
|
+
ei(e && It(e) || Ne);
|
|
2426
3881
|
}
|
|
2427
|
-
const
|
|
3882
|
+
const us = "0.5.0";
|
|
2428
3883
|
export {
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
3884
|
+
us as A4UI_VERSION,
|
|
3885
|
+
Ri as Accordion,
|
|
3886
|
+
Ka as Affix,
|
|
3887
|
+
fa as Alert,
|
|
3888
|
+
ka as AlertDialog,
|
|
3889
|
+
Ha as Anchor,
|
|
3890
|
+
ts as AppShell,
|
|
3891
|
+
Ln as Avatar,
|
|
3892
|
+
za as AvatarGroup,
|
|
3893
|
+
Va as BackToTop,
|
|
3894
|
+
Oi as Badge,
|
|
3895
|
+
Qa as BottomNavigation,
|
|
3896
|
+
_a as Breadcrumb,
|
|
3897
|
+
Te as Button,
|
|
3898
|
+
Ia as Calendar,
|
|
3899
|
+
Dr as Card,
|
|
3900
|
+
zr as CardContent,
|
|
3901
|
+
ji as CardHeader,
|
|
3902
|
+
Pi as CardTitle,
|
|
3903
|
+
Ma as Carousel,
|
|
3904
|
+
Bi as Checkbox,
|
|
3905
|
+
ls as ChristmasBackground,
|
|
3906
|
+
Na as Collapse,
|
|
3907
|
+
Sa as Combobox,
|
|
3908
|
+
Pa as Command,
|
|
3909
|
+
Ca as ContextMenu,
|
|
3910
|
+
qa as Countdown,
|
|
3911
|
+
Ni as DateField,
|
|
3912
|
+
Ra as Descriptions,
|
|
3913
|
+
Yi as Drawer,
|
|
3914
|
+
Vi as Dropdown,
|
|
3915
|
+
Gi as Dropzone,
|
|
3916
|
+
is as EffectsToggle,
|
|
3917
|
+
Fa as Empty,
|
|
3918
|
+
Ga as FloatingActionButton,
|
|
3919
|
+
Xa as Highlight,
|
|
3920
|
+
ga as HoverCard,
|
|
3921
|
+
Ja as Image,
|
|
3922
|
+
Hi as Input,
|
|
3923
|
+
Da as Kbd,
|
|
3924
|
+
Ua as List,
|
|
3925
|
+
es as Marquee,
|
|
3926
|
+
xa as Meter,
|
|
3927
|
+
Xi as Modal,
|
|
3928
|
+
as as NavGroup,
|
|
3929
|
+
$a as NumberInput,
|
|
3930
|
+
Ui as PageHeader,
|
|
3931
|
+
qi as Pagination,
|
|
3932
|
+
ua as Popover,
|
|
3933
|
+
va as Progress,
|
|
3934
|
+
sa as RadioGroup,
|
|
3935
|
+
La as Rating,
|
|
3936
|
+
Oa as Result,
|
|
3937
|
+
Ya as RingProgress,
|
|
3938
|
+
pa as SegmentedControl,
|
|
3939
|
+
Ki as Select,
|
|
3940
|
+
ha as Separator,
|
|
3941
|
+
ma as Skeleton,
|
|
3942
|
+
ba as Slider,
|
|
3943
|
+
ns as SnowScenery,
|
|
3944
|
+
Co as SpaceBackground,
|
|
3945
|
+
Za as SpeedDial,
|
|
3946
|
+
un as Spinner,
|
|
3947
|
+
ja as Splitter,
|
|
3948
|
+
Wi as Stat,
|
|
3949
|
+
Ta as Stepper,
|
|
3950
|
+
aa as Switch,
|
|
3951
|
+
Vo as TOKEN_ORDER,
|
|
3952
|
+
Ji as Table,
|
|
3953
|
+
Qi as TableBody,
|
|
3954
|
+
ra as TableCell,
|
|
3955
|
+
Zi as TableHead,
|
|
3956
|
+
ta as TableHeadCell,
|
|
3957
|
+
ea as TableRow,
|
|
3958
|
+
la as Tabs,
|
|
3959
|
+
Ba as TagInput,
|
|
3960
|
+
ca as Textarea,
|
|
3961
|
+
os as ThemeToggle,
|
|
3962
|
+
rs as ThemedScenery,
|
|
3963
|
+
Ea as Timeline,
|
|
3964
|
+
ia as Toaster,
|
|
3965
|
+
wa as Toggle,
|
|
3966
|
+
ya as ToggleGroup,
|
|
3967
|
+
da as Tooltip,
|
|
3968
|
+
Wa as Transfer,
|
|
3969
|
+
Aa as Tree,
|
|
3970
|
+
na as VirtualList,
|
|
3971
|
+
cs as activeTheme,
|
|
3972
|
+
$t as applyTheme,
|
|
3973
|
+
Qo as applyThemeDefinition,
|
|
3974
|
+
Ko as christmas,
|
|
3975
|
+
v as cn,
|
|
3976
|
+
kr as createCountUp,
|
|
3977
|
+
Go as dino,
|
|
3978
|
+
Ho as doctor,
|
|
3979
|
+
ds as initTheme,
|
|
3980
|
+
$r as isCalm,
|
|
3981
|
+
W as motionReduced,
|
|
3982
|
+
Tt as prefersReducedMotion,
|
|
3983
|
+
Cr as remeasureAfterLayout,
|
|
3984
|
+
Xo as scientist,
|
|
3985
|
+
ei as selectTheme,
|
|
3986
|
+
wr as setEffects,
|
|
3987
|
+
Di as setMotionForced,
|
|
3988
|
+
gr as setTheme,
|
|
3989
|
+
qo as snow,
|
|
3990
|
+
Uo as soccer,
|
|
3991
|
+
Ne as space,
|
|
3992
|
+
ur as storedTheme,
|
|
3993
|
+
Jo as themeToCss,
|
|
3994
|
+
ss as themeToJson,
|
|
3995
|
+
Wo as themes,
|
|
3996
|
+
oa as toast,
|
|
3997
|
+
hr as toggleTheme,
|
|
3998
|
+
fr as toggled,
|
|
3999
|
+
br as useEffects,
|
|
4000
|
+
zi as useMediaQuery,
|
|
4001
|
+
Ai as useMotionForced,
|
|
4002
|
+
pt as useTheme
|
|
2516
4003
|
};
|