@a4ui/core 0.3.0 → 0.4.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 +58 -7
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1002 -712
- package/dist/layout/ThemedScenery.d.ts +20 -0
- package/dist/styles.css +399 -91
- package/dist/themes/index.d.ts +34 -0
- package/dist/themes/palettes.d.ts +42 -0
- package/package.json +18 -3
package/dist/index.js
CHANGED
|
@@ -1,174 +1,175 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { createSignal as
|
|
4
|
-
import { createComponent as r, memo as ae, template 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
|
|
1
|
+
import { clsx as ht } from "clsx";
|
|
2
|
+
import { twMerge as bt } from "tailwind-merge";
|
|
3
|
+
import { createSignal as j, createEffect as pe, untrack as He, onCleanup as _e, onMount as Xe, For as O, splitProps as L, createMemo as De, Show as $, ErrorBoundary as xt, Suspense as vt } from "solid-js";
|
|
4
|
+
import { createComponent as r, memo as ae, template as d, spread as I, mergeProps as A, insert as a, effect as S, className as X, Portal as pt, setStyleProperty as le, use as Y, delegateEvents as ee, setAttribute as B, classList as $t, Dynamic as yt, addEventListener as wt } from "solid-js/web";
|
|
5
|
+
import { Accordion as ce } from "@kobalte/core/accordion";
|
|
6
|
+
import { CalendarDays as _t, ChevronLeft as qe, ChevronRight as Ue, X as Ke, UploadCloud as kt, CircleX as Ct, TriangleAlert as St, CircleCheck as Tt, Info as Mt, ChevronsUpDown as Et, Check as Ft, Satellite as Lt, Moon as It, Sun as At, Sparkles as Dt } from "lucide-solid";
|
|
7
|
+
import { Dialog as F } from "@kobalte/core/dialog";
|
|
8
|
+
import { DropdownMenu as de } from "@kobalte/core/dropdown-menu";
|
|
9
|
+
import { Motion as Rt } from "solid-motionone";
|
|
10
|
+
import { createVirtualizer as zt } from "@tanstack/solid-virtual";
|
|
11
|
+
import { Tabs as se } from "@kobalte/core/tabs";
|
|
12
|
+
import { Toast as oe, toaster as Ot } from "@kobalte/core/toast";
|
|
13
13
|
import { Switch as ue } from "@kobalte/core/switch";
|
|
14
|
-
import { RadioGroup as
|
|
14
|
+
import { RadioGroup as W } from "@kobalte/core/radio-group";
|
|
15
15
|
import { Tooltip as ge } from "@kobalte/core/tooltip";
|
|
16
16
|
import { Popover as fe } from "@kobalte/core/popover";
|
|
17
17
|
import { HoverCard as me } from "@kobalte/core/hover-card";
|
|
18
|
-
import { Alert as
|
|
19
|
-
import { Image as
|
|
20
|
-
import { Separator as
|
|
18
|
+
import { Alert as Pt } from "@kobalte/core/alert";
|
|
19
|
+
import { Image as ke } from "@kobalte/core/image";
|
|
20
|
+
import { Separator as jt } from "@kobalte/core/separator";
|
|
21
21
|
import { Progress as he } from "@kobalte/core/progress";
|
|
22
22
|
import { Meter as be } from "@kobalte/core/meter";
|
|
23
23
|
import { Slider as Q } from "@kobalte/core/slider";
|
|
24
24
|
import { NumberField as $e } from "@kobalte/core/number-field";
|
|
25
|
-
import { ToggleButton as
|
|
26
|
-
import { ToggleGroup as
|
|
25
|
+
import { ToggleButton as Bt } from "@kobalte/core/toggle-button";
|
|
26
|
+
import { ToggleGroup as Re } from "@kobalte/core/toggle-group";
|
|
27
27
|
import { SegmentedControl as xe } from "@kobalte/core/segmented-control";
|
|
28
28
|
import { Breadcrumbs as Ce } from "@kobalte/core/breadcrumbs";
|
|
29
29
|
import { AlertDialog as ne } from "@kobalte/core/alert-dialog";
|
|
30
30
|
import { ContextMenu as ve } from "@kobalte/core/context-menu";
|
|
31
|
-
import { Combobox as
|
|
32
|
-
import { Transition as
|
|
31
|
+
import { Combobox as N } from "@kobalte/core/combobox";
|
|
32
|
+
import { Transition as Nt } from "solid-transition-group";
|
|
33
33
|
function g(...e) {
|
|
34
|
-
return
|
|
34
|
+
return bt(ht(e));
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function
|
|
36
|
+
const Ze = "a4ui-theme";
|
|
37
|
+
function Vt(e) {
|
|
38
38
|
return e === "dark" || e === "light";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Je() {
|
|
41
41
|
try {
|
|
42
42
|
return window.localStorage;
|
|
43
43
|
} catch {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Yt() {
|
|
48
48
|
var t;
|
|
49
|
-
const e = ((t =
|
|
50
|
-
return
|
|
49
|
+
const e = ((t = Je()) == null ? void 0 : t.getItem(Ze)) ?? null;
|
|
50
|
+
return Vt(e) ? e : "dark";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function We(e) {
|
|
53
|
+
if (typeof document > "u") return;
|
|
53
54
|
const t = document.documentElement;
|
|
54
55
|
e === "light" ? t.setAttribute("data-theme", "light") : t.removeAttribute("data-theme");
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function Gt(e) {
|
|
57
58
|
var t;
|
|
58
|
-
(t =
|
|
59
|
+
(t = Je()) == null || t.setItem(Ze, e), We(e);
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function Ht(e) {
|
|
61
62
|
return e === "dark" ? "light" : "dark";
|
|
62
63
|
}
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const [
|
|
66
|
-
function
|
|
67
|
-
return
|
|
64
|
+
const Qe = Yt();
|
|
65
|
+
We(Qe);
|
|
66
|
+
const [et, Xt] = j(Qe);
|
|
67
|
+
function tt() {
|
|
68
|
+
return et;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
const e =
|
|
71
|
-
|
|
70
|
+
function qt() {
|
|
71
|
+
const e = Ht(et());
|
|
72
|
+
Gt(e), Xt(e);
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
74
|
+
const rt = "a4ui-effects";
|
|
75
|
+
function nt() {
|
|
75
76
|
try {
|
|
76
77
|
return window.localStorage;
|
|
77
78
|
} catch {
|
|
78
79
|
return null;
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function Ut() {
|
|
82
83
|
var t;
|
|
83
84
|
try {
|
|
84
85
|
if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
|
|
85
86
|
} catch {
|
|
86
87
|
}
|
|
87
|
-
const e = (t =
|
|
88
|
+
const e = (t = nt()) == null ? void 0 : t.getItem(rt);
|
|
88
89
|
return e === null ? !0 : e === "1";
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
document.documentElement.classList.toggle("calm", !e);
|
|
91
|
+
function ot(e) {
|
|
92
|
+
typeof document > "u" || document.documentElement.classList.toggle("calm", !e);
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
const [
|
|
96
|
-
function
|
|
97
|
-
return
|
|
94
|
+
const lt = Ut();
|
|
95
|
+
ot(lt);
|
|
96
|
+
const [at, Kt] = j(lt);
|
|
97
|
+
function Zt() {
|
|
98
|
+
return at;
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
return !
|
|
100
|
+
function Jt() {
|
|
101
|
+
return !at();
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function Wt(e) {
|
|
103
104
|
var t;
|
|
104
|
-
(t =
|
|
105
|
+
(t = nt()) == null || t.setItem(rt, e ? "1" : "0"), ot(e), Kt(e);
|
|
105
106
|
}
|
|
106
|
-
const
|
|
107
|
-
function
|
|
108
|
-
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(
|
|
107
|
+
const Qt = "(prefers-reduced-motion: reduce)";
|
|
108
|
+
function it() {
|
|
109
|
+
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(Qt).matches;
|
|
109
110
|
}
|
|
110
|
-
const
|
|
111
|
-
function
|
|
111
|
+
const ct = "a4ui-motion-forced";
|
|
112
|
+
function dt() {
|
|
112
113
|
try {
|
|
113
114
|
return window.localStorage;
|
|
114
115
|
} catch {
|
|
115
116
|
return null;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
|
-
var
|
|
119
|
-
const [Me,
|
|
120
|
-
typeof document < "u" && document.documentElement.classList.toggle("force-motion",
|
|
121
|
-
function
|
|
119
|
+
var Ge;
|
|
120
|
+
const [Me, er] = j(((Ge = dt()) == null ? void 0 : Ge.getItem(ct)) === "1");
|
|
121
|
+
typeof document < "u" && document.documentElement.classList.toggle("force-motion", He(Me));
|
|
122
|
+
function _o() {
|
|
122
123
|
return Me;
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
+
function ko(e) {
|
|
125
126
|
var t;
|
|
126
|
-
(t =
|
|
127
|
+
(t = dt()) == null || t.setItem(ct, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), er(e);
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
129
|
+
function we() {
|
|
130
|
+
return Jt() || it() && !Me();
|
|
130
131
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
133
|
-
const [
|
|
134
|
-
let
|
|
132
|
+
const tr = (e) => 1 - (1 - e) ** 3;
|
|
133
|
+
function rr(e, t = 600) {
|
|
134
|
+
const [o, n] = j(0);
|
|
135
|
+
let l;
|
|
135
136
|
return pe(() => {
|
|
136
137
|
const i = e();
|
|
137
|
-
if (
|
|
138
|
-
|
|
138
|
+
if (we()) {
|
|
139
|
+
l !== void 0 && cancelAnimationFrame(l), n(i);
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
143
|
-
|
|
144
|
-
const u = performance.now(), m = (
|
|
145
|
-
const b =
|
|
146
|
-
n(
|
|
142
|
+
const c = He(o);
|
|
143
|
+
if (c === i) return;
|
|
144
|
+
l !== void 0 && cancelAnimationFrame(l);
|
|
145
|
+
const u = performance.now(), m = (s) => {
|
|
146
|
+
const b = s - u, y = Math.min(1, b / t);
|
|
147
|
+
n(c + (i - c) * tr(y)), l = y < 1 ? requestAnimationFrame(m) : void 0;
|
|
147
148
|
};
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
}),
|
|
149
|
+
l = requestAnimationFrame(m);
|
|
150
|
+
}), _e(() => {
|
|
151
|
+
l !== void 0 && cancelAnimationFrame(l);
|
|
152
|
+
}), o;
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
-
const t = typeof window < "u" ? window.matchMedia(e) : null, [
|
|
154
|
+
function Co(e) {
|
|
155
|
+
const t = typeof window < "u" ? window.matchMedia(e) : null, [o, n] = j(t ? t.matches : !1);
|
|
155
156
|
if (t) {
|
|
156
|
-
const
|
|
157
|
-
t.addEventListener("change",
|
|
157
|
+
const l = (i) => n(i.matches);
|
|
158
|
+
t.addEventListener("change", l), _e(() => t.removeEventListener("change", l));
|
|
158
159
|
}
|
|
159
|
-
return
|
|
160
|
+
return o;
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
162
|
+
function nr(e, t) {
|
|
163
|
+
Xe(() => {
|
|
163
164
|
requestAnimationFrame(() => {
|
|
164
|
-
const
|
|
165
|
-
|
|
165
|
+
const o = e();
|
|
166
|
+
o && (t(void 0), t(o));
|
|
166
167
|
});
|
|
167
168
|
});
|
|
168
169
|
}
|
|
169
|
-
var
|
|
170
|
-
function
|
|
171
|
-
return r(
|
|
170
|
+
var or = /* @__PURE__ */ d('<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 So(e) {
|
|
172
|
+
return r(ce, {
|
|
172
173
|
get multiple() {
|
|
173
174
|
return e.multiple ?? !1;
|
|
174
175
|
},
|
|
@@ -176,26 +177,26 @@ function sl(e) {
|
|
|
176
177
|
return e.class;
|
|
177
178
|
},
|
|
178
179
|
get children() {
|
|
179
|
-
return r(
|
|
180
|
+
return r(O, {
|
|
180
181
|
get each() {
|
|
181
182
|
return e.items;
|
|
182
183
|
},
|
|
183
|
-
children: (t) => r(
|
|
184
|
+
children: (t) => r(ce.Item, {
|
|
184
185
|
get value() {
|
|
185
186
|
return t.value;
|
|
186
187
|
},
|
|
187
188
|
class: "border-b border-border",
|
|
188
189
|
get children() {
|
|
189
|
-
return [r(
|
|
190
|
+
return [r(ce.Header, {
|
|
190
191
|
get children() {
|
|
191
|
-
return r(
|
|
192
|
+
return r(ce.Trigger, {
|
|
192
193
|
class: "flex w-full items-center justify-between py-3 text-sm font-medium text-foreground [&[data-expanded]>svg]:rotate-90",
|
|
193
194
|
get children() {
|
|
194
|
-
return [ae(() => t.title),
|
|
195
|
+
return [ae(() => t.title), or()];
|
|
195
196
|
}
|
|
196
197
|
});
|
|
197
198
|
}
|
|
198
|
-
}), r(
|
|
199
|
+
}), r(ce.Content, {
|
|
199
200
|
class: "pb-3 text-sm text-muted-foreground",
|
|
200
201
|
get children() {
|
|
201
202
|
return t.content;
|
|
@@ -207,208 +208,208 @@ function sl(e) {
|
|
|
207
208
|
}
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
|
-
var
|
|
211
|
-
const
|
|
211
|
+
var lr = /* @__PURE__ */ d("<span>");
|
|
212
|
+
const ar = {
|
|
212
213
|
neutral: "bg-muted text-muted-foreground ring-border",
|
|
213
214
|
success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
|
|
214
215
|
warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
|
|
215
216
|
danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
|
|
216
217
|
info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
|
|
217
|
-
},
|
|
218
|
-
function
|
|
219
|
-
const [t,
|
|
218
|
+
}, ir = "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 To(e) {
|
|
220
|
+
const [t, o] = L(e, ["tone", "class", "children"]);
|
|
220
221
|
return (() => {
|
|
221
|
-
var n =
|
|
222
|
-
return
|
|
222
|
+
var n = lr();
|
|
223
|
+
return I(n, A({
|
|
223
224
|
get class() {
|
|
224
|
-
return g(
|
|
225
|
+
return g(ir, ar[t.tone ?? "neutral"], t.class);
|
|
225
226
|
}
|
|
226
|
-
},
|
|
227
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
227
228
|
})();
|
|
228
229
|
}
|
|
229
|
-
var
|
|
230
|
-
const
|
|
230
|
+
var cr = /* @__PURE__ */ d("<button>");
|
|
231
|
+
const dr = {
|
|
231
232
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
232
233
|
secondary: "bg-muted text-foreground hover:bg-muted/70",
|
|
233
234
|
outline: "border border-border bg-transparent text-foreground hover:bg-muted",
|
|
234
235
|
ghost: "bg-transparent text-foreground hover:bg-muted"
|
|
235
|
-
},
|
|
236
|
-
function
|
|
237
|
-
const [t,
|
|
236
|
+
}, sr = "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 ze(e) {
|
|
238
|
+
const [t, o] = L(e, ["variant", "class", "type", "children"]);
|
|
238
239
|
return (() => {
|
|
239
|
-
var n =
|
|
240
|
-
return
|
|
240
|
+
var n = cr();
|
|
241
|
+
return I(n, A({
|
|
241
242
|
get type() {
|
|
242
243
|
return t.type ?? "button";
|
|
243
244
|
},
|
|
244
245
|
get class() {
|
|
245
|
-
return g(
|
|
246
|
+
return g(sr, dr[t.variant ?? "primary"], t.class);
|
|
246
247
|
}
|
|
247
|
-
},
|
|
248
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
248
249
|
})();
|
|
249
250
|
}
|
|
250
|
-
var Ee = /* @__PURE__ */
|
|
251
|
-
function
|
|
252
|
-
const [t,
|
|
251
|
+
var Ee = /* @__PURE__ */ d("<div>"), ur = /* @__PURE__ */ d("<h2>");
|
|
252
|
+
function gr(e) {
|
|
253
|
+
const [t, o] = L(e, ["class", "children", "glass", "glow"]), n = () => (t.glow ?? t.glass) === !0;
|
|
253
254
|
return (() => {
|
|
254
|
-
var
|
|
255
|
-
return
|
|
255
|
+
var l = Ee();
|
|
256
|
+
return I(l, A({
|
|
256
257
|
get class() {
|
|
257
258
|
return g(t.glass ? "card rounded-xl text-card-foreground" : "rounded-xl border border-border bg-card text-card-foreground shadow-sm", n() && "glow-edge", t.class);
|
|
258
259
|
}
|
|
259
|
-
},
|
|
260
|
+
}, o), !1, !0), a(l, () => t.children), l;
|
|
260
261
|
})();
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
-
const [t,
|
|
263
|
+
function Mo(e) {
|
|
264
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
264
265
|
return (() => {
|
|
265
266
|
var n = Ee();
|
|
266
|
-
return
|
|
267
|
+
return I(n, A({
|
|
267
268
|
get class() {
|
|
268
269
|
return g("flex flex-col space-y-1.5 p-6", t.class);
|
|
269
270
|
}
|
|
270
|
-
},
|
|
271
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
271
272
|
})();
|
|
272
273
|
}
|
|
273
|
-
function
|
|
274
|
-
const [t,
|
|
274
|
+
function Eo(e) {
|
|
275
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
275
276
|
return (() => {
|
|
276
|
-
var n =
|
|
277
|
-
return
|
|
277
|
+
var n = ur();
|
|
278
|
+
return I(n, A({
|
|
278
279
|
get class() {
|
|
279
280
|
return g("text-lg font-semibold leading-none tracking-tight", t.class);
|
|
280
281
|
}
|
|
281
|
-
},
|
|
282
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
282
283
|
})();
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
-
const [t,
|
|
285
|
+
function fr(e) {
|
|
286
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
286
287
|
return (() => {
|
|
287
288
|
var n = Ee();
|
|
288
|
-
return
|
|
289
|
+
return I(n, A({
|
|
289
290
|
get class() {
|
|
290
291
|
return g("p-6 pt-0", t.class);
|
|
291
292
|
}
|
|
292
|
-
},
|
|
293
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
293
294
|
})();
|
|
294
295
|
}
|
|
295
|
-
var
|
|
296
|
-
function
|
|
296
|
+
var mr = /* @__PURE__ */ d('<label><input type=checkbox class="h-4 w-4 rounded border-input">');
|
|
297
|
+
function Fo(e) {
|
|
297
298
|
return (() => {
|
|
298
|
-
var t =
|
|
299
|
-
return
|
|
299
|
+
var t = mr(), o = t.firstChild;
|
|
300
|
+
return o.addEventListener("change", (n) => e.onChange(n.currentTarget.checked)), a(t, () => e.label, null), S(() => X(t, g("inline-flex items-center gap-2 text-sm text-foreground", e.class))), S(() => o.checked = e.checked), t;
|
|
300
301
|
})();
|
|
301
302
|
}
|
|
302
|
-
var
|
|
303
|
-
const
|
|
304
|
-
function
|
|
305
|
-
const t = e.getFullYear(),
|
|
306
|
-
return `${t}-${
|
|
303
|
+
var hr = /* @__PURE__ */ d('<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">'), br = /* @__PURE__ */ d('<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>'), xr = /* @__PURE__ */ d("<span>"), vr = /* @__PURE__ */ d("<button type=button>");
|
|
304
|
+
const pr = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Se = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
305
|
+
function $r(e) {
|
|
306
|
+
const t = e.getFullYear(), o = `${e.getMonth() + 1}`.padStart(2, "0"), n = `${e.getDate()}`.padStart(2, "0");
|
|
307
|
+
return `${t}-${o}-${n}`;
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
+
function ye(e) {
|
|
309
310
|
const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
310
311
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : null;
|
|
311
312
|
}
|
|
312
|
-
function
|
|
313
|
-
const
|
|
314
|
-
return
|
|
313
|
+
function Oe(e, t) {
|
|
314
|
+
const o = ye(e);
|
|
315
|
+
return o ? `${o.getDate()} ${t[o.getMonth()].slice(0, 3)} ${o.getFullYear()}` : null;
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
+
function Pe(e, t) {
|
|
317
318
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
const [t,
|
|
321
|
-
let m,
|
|
322
|
-
const [
|
|
320
|
+
function Lo(e) {
|
|
321
|
+
const [t, o] = j(!1), n = ye(e.value) ?? /* @__PURE__ */ new Date(), [l, i] = j(n.getFullYear()), [c, u] = j(n.getMonth());
|
|
322
|
+
let m, s, b;
|
|
323
|
+
const [y, M] = j({
|
|
323
324
|
top: 0,
|
|
324
325
|
left: 0
|
|
325
|
-
}), k = 288,
|
|
326
|
-
if (!
|
|
327
|
-
const f =
|
|
328
|
-
|
|
326
|
+
}), k = 288, E = () => {
|
|
327
|
+
if (!s) return;
|
|
328
|
+
const f = s.getBoundingClientRect(), C = Math.max(8, Math.min(f.left, window.innerWidth - k - 8));
|
|
329
|
+
M({
|
|
329
330
|
top: f.bottom + 4,
|
|
330
331
|
left: C
|
|
331
332
|
});
|
|
332
|
-
},
|
|
333
|
+
}, P = () => {
|
|
333
334
|
if (e.disabled) return;
|
|
334
|
-
const f =
|
|
335
|
-
i(f.getFullYear()), u(f.getMonth()),
|
|
336
|
-
},
|
|
335
|
+
const f = ye(e.value) ?? /* @__PURE__ */ new Date();
|
|
336
|
+
i(f.getFullYear()), u(f.getMonth()), E(), o(!0);
|
|
337
|
+
}, V = () => o(!1), h = (f) => {
|
|
337
338
|
const C = f.target;
|
|
338
|
-
m && !m.contains(C) && b && !b.contains(C) &&
|
|
339
|
-
},
|
|
340
|
-
f.key === "Escape" &&
|
|
339
|
+
m && !m.contains(C) && b && !b.contains(C) && V();
|
|
340
|
+
}, w = (f) => {
|
|
341
|
+
f.key === "Escape" && V();
|
|
341
342
|
}, v = (f) => {
|
|
342
|
-
f ? (document.addEventListener("mousedown", h), document.addEventListener("keydown",
|
|
343
|
+
f ? (document.addEventListener("mousedown", h), document.addEventListener("keydown", w), window.addEventListener("scroll", V, !0), window.addEventListener("resize", V)) : (document.removeEventListener("mousedown", h), document.removeEventListener("keydown", w), window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V));
|
|
343
344
|
};
|
|
344
|
-
pe(() => v(t())),
|
|
345
|
+
pe(() => v(t())), _e(() => v(!1));
|
|
345
346
|
const x = () => {
|
|
346
|
-
const f =
|
|
347
|
-
f === 0 ? (u(11), i(
|
|
348
|
-
},
|
|
349
|
-
const f =
|
|
350
|
-
f === 11 ? (u(0), i(
|
|
351
|
-
}, T =
|
|
352
|
-
const C = (new Date(
|
|
347
|
+
const f = c();
|
|
348
|
+
f === 0 ? (u(11), i(l() - 1)) : u(f - 1);
|
|
349
|
+
}, _ = () => {
|
|
350
|
+
const f = c();
|
|
351
|
+
f === 11 ? (u(0), i(l() + 1)) : u(f + 1);
|
|
352
|
+
}, T = De(() => {
|
|
353
|
+
const C = (new Date(l(), c(), 1).getDay() + 6) % 7, R = new Date(l(), c(), 1 - C), U = [];
|
|
353
354
|
for (let te = 0; te < 42; te++)
|
|
354
355
|
U.push(new Date(R.getFullYear(), R.getMonth(), R.getDate() + te));
|
|
355
356
|
return U;
|
|
356
|
-
}),
|
|
357
|
-
e.onChange(
|
|
357
|
+
}), p = De(() => ye(e.value)), G = /* @__PURE__ */ new Date(), q = (f) => {
|
|
358
|
+
e.onChange($r(f)), V();
|
|
358
359
|
};
|
|
359
360
|
return (() => {
|
|
360
|
-
var f =
|
|
361
|
-
typeof U == "function" ?
|
|
362
|
-
var te =
|
|
363
|
-
return typeof te == "function" ?
|
|
361
|
+
var f = br(), C = f.firstChild, R = C.firstChild, U = m;
|
|
362
|
+
typeof U == "function" ? Y(U, f) : m = f, C.$$click = () => t() ? V() : P();
|
|
363
|
+
var te = s;
|
|
364
|
+
return typeof te == "function" ? Y(te, C) : s = C, a(R, () => Oe(e.value, e.months ?? Se) ?? e.label ?? "Select date"), a(C, r(_t, {
|
|
364
365
|
class: "h-4 w-4 shrink-0 text-muted-foreground"
|
|
365
|
-
}), null), a(f, r(
|
|
366
|
+
}), null), a(f, r($, {
|
|
366
367
|
get when() {
|
|
367
368
|
return t();
|
|
368
369
|
},
|
|
369
370
|
get children() {
|
|
370
|
-
return r(
|
|
371
|
+
return r(pt, {
|
|
371
372
|
get children() {
|
|
372
|
-
var
|
|
373
|
-
return typeof
|
|
373
|
+
var D = hr(), ie = D.firstChild, re = ie.firstChild, K = re.nextSibling, gt = K.firstChild, Le = K.nextSibling, Ie = ie.nextSibling, ft = Ie.nextSibling, Ae = b;
|
|
374
|
+
return typeof Ae == "function" ? Y(Ae, D) : b = D, re.$$click = x, a(re, r(qe, {
|
|
374
375
|
class: "h-4 w-4"
|
|
375
|
-
})), a(K, () => (e.months ??
|
|
376
|
+
})), a(K, () => (e.months ?? Se)[c()], gt), a(K, l, null), Le.$$click = _, a(Le, r(Ue, {
|
|
376
377
|
class: "h-4 w-4"
|
|
377
|
-
})), a(Ie, r(
|
|
378
|
+
})), a(Ie, r(O, {
|
|
378
379
|
get each() {
|
|
379
|
-
return e.weekdays ??
|
|
380
|
+
return e.weekdays ?? pr;
|
|
380
381
|
},
|
|
381
|
-
children: (
|
|
382
|
-
var
|
|
383
|
-
return a(
|
|
382
|
+
children: (z) => (() => {
|
|
383
|
+
var H = xr();
|
|
384
|
+
return a(H, z), H;
|
|
384
385
|
})()
|
|
385
|
-
})), a(
|
|
386
|
+
})), a(ft, r(O, {
|
|
386
387
|
get each() {
|
|
387
388
|
return T();
|
|
388
389
|
},
|
|
389
|
-
children: (
|
|
390
|
-
const
|
|
391
|
-
const
|
|
392
|
-
return
|
|
393
|
-
},
|
|
390
|
+
children: (z) => {
|
|
391
|
+
const H = z.getMonth() === c(), Z = () => {
|
|
392
|
+
const J = p();
|
|
393
|
+
return J ? Pe(J, z) : !1;
|
|
394
|
+
}, mt = Pe(G, z);
|
|
394
395
|
return (() => {
|
|
395
|
-
var
|
|
396
|
-
return
|
|
396
|
+
var J = vr();
|
|
397
|
+
return J.$$click = () => q(z), a(J, () => z.getDate()), S(() => X(J, g("flex h-8 items-center justify-center rounded-md text-sm transition-colors", Z() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !Z() && !H && "text-muted-foreground/50", !Z() && H && "text-foreground", !Z() && mt && "ring-1 ring-inset ring-ring"))), J;
|
|
397
398
|
})();
|
|
398
399
|
}
|
|
399
|
-
})), S((
|
|
400
|
-
var
|
|
401
|
-
return
|
|
400
|
+
})), S((z) => {
|
|
401
|
+
var H = `${y().top}px`, Z = `${y().left}px`;
|
|
402
|
+
return H !== z.e && le(D, "top", z.e = H), Z !== z.t && le(D, "left", z.t = Z), z;
|
|
402
403
|
}, {
|
|
403
404
|
e: void 0,
|
|
404
405
|
t: void 0
|
|
405
|
-
}),
|
|
406
|
+
}), D;
|
|
406
407
|
}
|
|
407
408
|
});
|
|
408
409
|
}
|
|
409
|
-
}), null), S((
|
|
410
|
-
var ie = g("relative", e.class), re = e.disabled, K =
|
|
411
|
-
return ie !==
|
|
410
|
+
}), null), S((D) => {
|
|
411
|
+
var ie = g("relative", e.class), re = e.disabled, K = Oe(e.value, e.months ?? Se) ? "" : "text-muted-foreground";
|
|
412
|
+
return ie !== D.e && X(f, D.e = ie), re !== D.t && (C.disabled = D.t = re), K !== D.a && X(R, D.a = K), D;
|
|
412
413
|
}, {
|
|
413
414
|
e: void 0,
|
|
414
415
|
t: void 0,
|
|
@@ -417,9 +418,9 @@ function fl(e) {
|
|
|
417
418
|
})();
|
|
418
419
|
}
|
|
419
420
|
ee(["click"]);
|
|
420
|
-
var
|
|
421
|
-
function
|
|
422
|
-
return r(
|
|
421
|
+
var yr = /* @__PURE__ */ d('<p class="text-[12px] text-muted-foreground">'), wr = /* @__PURE__ */ d('<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>'), _r = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
422
|
+
function Io(e) {
|
|
423
|
+
return r(F, {
|
|
423
424
|
get open() {
|
|
424
425
|
return e.open;
|
|
425
426
|
},
|
|
@@ -427,47 +428,47 @@ function ml(e) {
|
|
|
427
428
|
return e.onOpenChange;
|
|
428
429
|
},
|
|
429
430
|
get children() {
|
|
430
|
-
return r(
|
|
431
|
+
return r(F.Portal, {
|
|
431
432
|
get children() {
|
|
432
|
-
return [r(
|
|
433
|
+
return [r(F.Overlay, {
|
|
433
434
|
class: "modal-overlay fixed inset-0 z-40 bg-black/50 backdrop-blur-[2px]"
|
|
434
435
|
}), (() => {
|
|
435
|
-
var t =
|
|
436
|
-
return a(t, r(
|
|
436
|
+
var t = _r();
|
|
437
|
+
return a(t, r(F.Content, {
|
|
437
438
|
get class() {
|
|
438
439
|
return g("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);
|
|
439
440
|
},
|
|
440
441
|
get children() {
|
|
441
|
-
return [r(
|
|
442
|
+
return [r($, {
|
|
442
443
|
get when() {
|
|
443
444
|
return e.title;
|
|
444
445
|
},
|
|
445
446
|
get children() {
|
|
446
|
-
var
|
|
447
|
-
return a(n, r(
|
|
447
|
+
var o = wr(), n = o.firstChild;
|
|
448
|
+
return a(n, r(F.Title, {
|
|
448
449
|
class: "text-[16px] font-bold leading-tight",
|
|
449
450
|
get children() {
|
|
450
451
|
return e.title;
|
|
451
452
|
}
|
|
452
|
-
}), null), a(n, r(
|
|
453
|
+
}), null), a(n, r($, {
|
|
453
454
|
get when() {
|
|
454
455
|
return e.subtitle;
|
|
455
456
|
},
|
|
456
457
|
get children() {
|
|
457
|
-
var
|
|
458
|
-
return a(
|
|
458
|
+
var l = yr();
|
|
459
|
+
return a(l, () => e.subtitle), l;
|
|
459
460
|
}
|
|
460
|
-
}), null), a(
|
|
461
|
+
}), null), a(o, r(F.CloseButton, {
|
|
461
462
|
class: "grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
462
463
|
get "aria-label"() {
|
|
463
464
|
return e.closeLabel ?? "Close";
|
|
464
465
|
},
|
|
465
466
|
get children() {
|
|
466
|
-
return r(
|
|
467
|
+
return r(Ke, {
|
|
467
468
|
class: "h-5 w-5"
|
|
468
469
|
});
|
|
469
470
|
}
|
|
470
|
-
}), null),
|
|
471
|
+
}), null), o;
|
|
471
472
|
}
|
|
472
473
|
}), ae(() => e.children)];
|
|
473
474
|
}
|
|
@@ -478,16 +479,16 @@ function ml(e) {
|
|
|
478
479
|
}
|
|
479
480
|
});
|
|
480
481
|
}
|
|
481
|
-
function
|
|
482
|
+
function Ao(e) {
|
|
482
483
|
return (
|
|
483
484
|
// preventScroll defaults to true in Kobalte's menu — that locks page scroll
|
|
484
485
|
// (body overflow:hidden + scrollbar-width compensation) while the menu is
|
|
485
486
|
// open, which is wrong for a small contextual menu (it closes on scroll
|
|
486
487
|
// anyway). Dialogs (Modal/Drawer) keep the lock; a dropdown shouldn't.
|
|
487
|
-
r(
|
|
488
|
+
r(de, {
|
|
488
489
|
preventScroll: !1,
|
|
489
490
|
get children() {
|
|
490
|
-
return [r(
|
|
491
|
+
return [r(de.Trigger, {
|
|
491
492
|
get class() {
|
|
492
493
|
return g("inline-flex", e.class);
|
|
493
494
|
},
|
|
@@ -497,16 +498,16 @@ function hl(e) {
|
|
|
497
498
|
get children() {
|
|
498
499
|
return e.children;
|
|
499
500
|
}
|
|
500
|
-
}), r(
|
|
501
|
+
}), r(de.Portal, {
|
|
501
502
|
get children() {
|
|
502
|
-
return r(
|
|
503
|
+
return r(de.Content, {
|
|
503
504
|
class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
504
505
|
get children() {
|
|
505
|
-
return r(
|
|
506
|
+
return r(O, {
|
|
506
507
|
get each() {
|
|
507
508
|
return e.items;
|
|
508
509
|
},
|
|
509
|
-
children: (t) => r(
|
|
510
|
+
children: (t) => r(de.Item, {
|
|
510
511
|
get class() {
|
|
511
512
|
return g("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");
|
|
512
513
|
},
|
|
@@ -529,45 +530,45 @@ function hl(e) {
|
|
|
529
530
|
})
|
|
530
531
|
);
|
|
531
532
|
}
|
|
532
|
-
var
|
|
533
|
-
function
|
|
534
|
-
const [t,
|
|
533
|
+
var kr = /* @__PURE__ */ d('<p class="text-xs text-muted-foreground">'), Cr = /* @__PURE__ */ d('<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 Do(e) {
|
|
535
|
+
const [t, o] = j(!1);
|
|
535
536
|
let n;
|
|
536
|
-
const
|
|
537
|
+
const l = (i) => {
|
|
537
538
|
if (e.disabled || !i) return;
|
|
538
|
-
const
|
|
539
|
-
|
|
539
|
+
const c = Array.from(i);
|
|
540
|
+
c.length && e.onFiles(c);
|
|
540
541
|
};
|
|
541
542
|
return (() => {
|
|
542
|
-
var i =
|
|
543
|
-
i.addEventListener("drop", (
|
|
543
|
+
var i = Cr(), c = i.firstChild, u = c.nextSibling;
|
|
544
|
+
i.addEventListener("drop", (s) => {
|
|
544
545
|
var b;
|
|
545
|
-
|
|
546
|
-
}), i.addEventListener("dragleave", () =>
|
|
547
|
-
e.disabled || (
|
|
548
|
-
}), i.$$keydown = (
|
|
549
|
-
e.disabled || (
|
|
550
|
-
}, i.$$click = () => !e.disabled && (n == null ? void 0 : n.click()), a(i, r(
|
|
546
|
+
s.preventDefault(), o(!1), l((b = s.dataTransfer) == null ? void 0 : b.files);
|
|
547
|
+
}), i.addEventListener("dragleave", () => o(!1)), i.addEventListener("dragover", (s) => {
|
|
548
|
+
e.disabled || (s.preventDefault(), o(!0));
|
|
549
|
+
}), i.$$keydown = (s) => {
|
|
550
|
+
e.disabled || (s.key === "Enter" || s.key === " ") && (s.preventDefault(), n == null || n.click());
|
|
551
|
+
}, i.$$click = () => !e.disabled && (n == null ? void 0 : n.click()), a(i, r(kt, {
|
|
551
552
|
class: "h-8 w-8 text-muted-foreground"
|
|
552
|
-
}),
|
|
553
|
+
}), c), a(c, () => e.label ?? "Drag files here or click to browse"), a(i, r($, {
|
|
553
554
|
get when() {
|
|
554
555
|
return e.hint;
|
|
555
556
|
},
|
|
556
557
|
get children() {
|
|
557
|
-
var
|
|
558
|
-
return a(
|
|
558
|
+
var s = kr();
|
|
559
|
+
return a(s, () => e.hint), s;
|
|
559
560
|
}
|
|
560
|
-
}), u), u.addEventListener("change", (
|
|
561
|
-
|
|
561
|
+
}), u), u.addEventListener("change", (s) => {
|
|
562
|
+
l(s.currentTarget.files), s.currentTarget.value = "";
|
|
562
563
|
});
|
|
563
564
|
var m = n;
|
|
564
|
-
return typeof m == "function" ?
|
|
565
|
-
var b = e.disabled ? -1 : 0,
|
|
565
|
+
return typeof m == "function" ? Y(m, u) : n = u, S((s) => {
|
|
566
|
+
var b = e.disabled ? -1 : 0, y = e.disabled, M = {
|
|
566
567
|
"border-ring bg-primary/5": t(),
|
|
567
568
|
"border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
|
|
568
569
|
"cursor-not-allowed opacity-60": e.disabled
|
|
569
|
-
}, k = e.accept,
|
|
570
|
-
return b !==
|
|
570
|
+
}, k = e.accept, E = e.multiple, P = e.disabled;
|
|
571
|
+
return b !== s.e && B(i, "tabindex", s.e = b), y !== s.t && B(i, "aria-disabled", s.t = y), s.a = $t(i, M, s.a), k !== s.o && B(u, "accept", s.o = k), E !== s.i && (u.multiple = s.i = E), P !== s.n && (u.disabled = s.n = P), s;
|
|
571
572
|
}, {
|
|
572
573
|
e: void 0,
|
|
573
574
|
t: void 0,
|
|
@@ -579,27 +580,27 @@ function bl(e) {
|
|
|
579
580
|
})();
|
|
580
581
|
}
|
|
581
582
|
ee(["click", "keydown"]);
|
|
582
|
-
var
|
|
583
|
-
const
|
|
584
|
-
function
|
|
585
|
-
const [t,
|
|
583
|
+
var Sr = /* @__PURE__ */ d("<input>");
|
|
584
|
+
const Tr = "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 Ro(e) {
|
|
586
|
+
const [t, o] = L(e, ["value", "onInput", "class"]);
|
|
586
587
|
return (() => {
|
|
587
|
-
var n =
|
|
588
|
-
return n.$$input = (
|
|
588
|
+
var n = Sr();
|
|
589
|
+
return n.$$input = (l) => t.onInput(l.currentTarget.value), I(n, A({
|
|
589
590
|
get class() {
|
|
590
|
-
return g(
|
|
591
|
+
return g(Tr, t.class);
|
|
591
592
|
},
|
|
592
593
|
get value() {
|
|
593
594
|
return t.value;
|
|
594
595
|
}
|
|
595
|
-
},
|
|
596
|
+
}, o), !1, !1), n;
|
|
596
597
|
})();
|
|
597
598
|
}
|
|
598
599
|
ee(["input"]);
|
|
599
|
-
var
|
|
600
|
-
function
|
|
600
|
+
var Mr = /* @__PURE__ */ d('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'), je = /* @__PURE__ */ d('<div class="p-6 pt-4">'), Er = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">'), Fr = /* @__PURE__ */ d('<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">'), Lr = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
601
|
+
function zo(e) {
|
|
601
602
|
const t = () => e.variant === "center";
|
|
602
|
-
return r(
|
|
603
|
+
return r(F, {
|
|
603
604
|
get open() {
|
|
604
605
|
return e.open;
|
|
605
606
|
},
|
|
@@ -607,72 +608,72 @@ function vl(e) {
|
|
|
607
608
|
return e.onOpenChange;
|
|
608
609
|
},
|
|
609
610
|
get children() {
|
|
610
|
-
return r(
|
|
611
|
+
return r(F.Portal, {
|
|
611
612
|
get children() {
|
|
612
|
-
return [r(
|
|
613
|
+
return [r(F.Overlay, {
|
|
613
614
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
614
|
-
}), r(
|
|
615
|
+
}), r($, {
|
|
615
616
|
get when() {
|
|
616
617
|
return t();
|
|
617
618
|
},
|
|
618
619
|
get fallback() {
|
|
619
620
|
return (() => {
|
|
620
|
-
var
|
|
621
|
-
return a(
|
|
621
|
+
var o = Lr();
|
|
622
|
+
return a(o, r(F.Content, {
|
|
622
623
|
get class() {
|
|
623
624
|
return g("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);
|
|
624
625
|
},
|
|
625
626
|
get children() {
|
|
626
|
-
return [r(
|
|
627
|
+
return [r($, {
|
|
627
628
|
get when() {
|
|
628
629
|
return e.title;
|
|
629
630
|
},
|
|
630
631
|
get children() {
|
|
631
|
-
var n =
|
|
632
|
-
return a(n, r(
|
|
632
|
+
var n = Fr();
|
|
633
|
+
return a(n, r(F.Title, {
|
|
633
634
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
634
635
|
get children() {
|
|
635
636
|
return e.title;
|
|
636
637
|
}
|
|
637
|
-
}), null), a(n, r(
|
|
638
|
+
}), null), a(n, r(F.CloseButton, {
|
|
638
639
|
class: "grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
639
640
|
get "aria-label"() {
|
|
640
641
|
return e.closeLabel ?? "Close";
|
|
641
642
|
},
|
|
642
643
|
get children() {
|
|
643
|
-
return r(
|
|
644
|
+
return r(Ke, {
|
|
644
645
|
class: "h-5 w-5"
|
|
645
646
|
});
|
|
646
647
|
}
|
|
647
648
|
}), null), n;
|
|
648
649
|
}
|
|
649
650
|
}), (() => {
|
|
650
|
-
var n =
|
|
651
|
+
var n = je();
|
|
651
652
|
return a(n, () => e.children), n;
|
|
652
653
|
})()];
|
|
653
654
|
}
|
|
654
|
-
})),
|
|
655
|
+
})), o;
|
|
655
656
|
})();
|
|
656
657
|
},
|
|
657
658
|
get children() {
|
|
658
|
-
var
|
|
659
|
-
return a(
|
|
659
|
+
var o = Er();
|
|
660
|
+
return a(o, r(F.Content, {
|
|
660
661
|
get class() {
|
|
661
662
|
return g("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
662
663
|
},
|
|
663
664
|
get children() {
|
|
664
|
-
return [r(
|
|
665
|
+
return [r($, {
|
|
665
666
|
get when() {
|
|
666
667
|
return e.title;
|
|
667
668
|
},
|
|
668
669
|
get children() {
|
|
669
|
-
var n =
|
|
670
|
-
return a(n, r(
|
|
670
|
+
var n = Mr();
|
|
671
|
+
return a(n, r(F.Title, {
|
|
671
672
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
672
673
|
get children() {
|
|
673
674
|
return e.title;
|
|
674
675
|
}
|
|
675
|
-
}), null), a(n, r(
|
|
676
|
+
}), null), a(n, r(F.CloseButton, {
|
|
676
677
|
class: "text-muted-foreground hover:text-foreground",
|
|
677
678
|
get "aria-label"() {
|
|
678
679
|
return e.closeLabel ?? "Close";
|
|
@@ -681,11 +682,11 @@ function vl(e) {
|
|
|
681
682
|
}), null), n;
|
|
682
683
|
}
|
|
683
684
|
}), (() => {
|
|
684
|
-
var n =
|
|
685
|
+
var n = je();
|
|
685
686
|
return a(n, () => e.children), n;
|
|
686
687
|
})()];
|
|
687
688
|
}
|
|
688
|
-
})),
|
|
689
|
+
})), o;
|
|
689
690
|
}
|
|
690
691
|
})];
|
|
691
692
|
}
|
|
@@ -693,71 +694,71 @@ function vl(e) {
|
|
|
693
694
|
}
|
|
694
695
|
});
|
|
695
696
|
}
|
|
696
|
-
var
|
|
697
|
-
function
|
|
697
|
+
var Ir = /* @__PURE__ */ d('<div class="flex items-center gap-2 text-[12px] text-muted-foreground">'), Ar = /* @__PURE__ */ d('<p class="mt-0.5 text-[13px] text-muted-foreground">'), Dr = /* @__PURE__ */ d('<div class="flex items-center gap-2">'), Rr = /* @__PURE__ */ d('<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">'), zr = /* @__PURE__ */ d("<span class=text-muted-foreground/60>/"), Or = /* @__PURE__ */ d("<span>");
|
|
698
|
+
function Oo(e) {
|
|
698
699
|
return (() => {
|
|
699
|
-
var t =
|
|
700
|
-
return a(
|
|
700
|
+
var t = Rr(), o = t.firstChild, n = o.firstChild;
|
|
701
|
+
return a(o, r($, {
|
|
701
702
|
get when() {
|
|
702
|
-
var
|
|
703
|
-
return (
|
|
703
|
+
var l;
|
|
704
|
+
return (l = e.breadcrumb) == null ? void 0 : l.length;
|
|
704
705
|
},
|
|
705
706
|
get children() {
|
|
706
|
-
var
|
|
707
|
-
return a(
|
|
707
|
+
var l = Ir();
|
|
708
|
+
return a(l, r(O, {
|
|
708
709
|
get each() {
|
|
709
710
|
return e.breadcrumb;
|
|
710
711
|
},
|
|
711
|
-
children: (i,
|
|
712
|
+
children: (i, c) => [r($, {
|
|
712
713
|
get when() {
|
|
713
|
-
return
|
|
714
|
+
return c() > 0;
|
|
714
715
|
},
|
|
715
716
|
get children() {
|
|
716
|
-
return
|
|
717
|
+
return zr();
|
|
717
718
|
}
|
|
718
719
|
}), (() => {
|
|
719
|
-
var u =
|
|
720
|
+
var u = Or();
|
|
720
721
|
return a(u, i), S(() => {
|
|
721
722
|
var m;
|
|
722
|
-
return u.classList.toggle("text-foreground",
|
|
723
|
+
return u.classList.toggle("text-foreground", c() === (((m = e.breadcrumb) == null ? void 0 : m.length) ?? 0) - 1);
|
|
723
724
|
}), u;
|
|
724
725
|
})()]
|
|
725
|
-
})),
|
|
726
|
+
})), l;
|
|
726
727
|
}
|
|
727
|
-
}), n), a(n, () => e.title), a(
|
|
728
|
+
}), n), a(n, () => e.title), a(o, r($, {
|
|
728
729
|
get when() {
|
|
729
730
|
return e.subtitle;
|
|
730
731
|
},
|
|
731
732
|
get children() {
|
|
732
|
-
var
|
|
733
|
-
return a(
|
|
733
|
+
var l = Ar();
|
|
734
|
+
return a(l, () => e.subtitle), l;
|
|
734
735
|
}
|
|
735
|
-
}), null), a(t, r(
|
|
736
|
+
}), null), a(t, r($, {
|
|
736
737
|
get when() {
|
|
737
738
|
return e.actions;
|
|
738
739
|
},
|
|
739
740
|
get children() {
|
|
740
|
-
var
|
|
741
|
-
return a(
|
|
741
|
+
var l = Dr();
|
|
742
|
+
return a(l, () => e.actions), l;
|
|
742
743
|
}
|
|
743
744
|
}), null), t;
|
|
744
745
|
})();
|
|
745
746
|
}
|
|
746
|
-
var
|
|
747
|
-
function
|
|
747
|
+
var Pr = /* @__PURE__ */ d('<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 Po(e) {
|
|
748
749
|
return (() => {
|
|
749
|
-
var t =
|
|
750
|
-
return a(
|
|
750
|
+
var t = Pr(), o = t.firstChild, n = o.nextSibling, l = n.firstChild, i = l.nextSibling, c = i.nextSibling;
|
|
751
|
+
return a(o, () => e.summary), l.$$click = () => e.onChange(e.page - 1), a(l, r(qe, {
|
|
751
752
|
class: "h-4 w-4"
|
|
752
753
|
})), a(i, () => {
|
|
753
754
|
var u;
|
|
754
|
-
return (((u = e.labels) == null ? void 0 : u.page) ?? ((m,
|
|
755
|
-
}),
|
|
755
|
+
return (((u = e.labels) == null ? void 0 : u.page) ?? ((m, s) => `Page ${m} of ${s}`))(e.page, e.totalPages);
|
|
756
|
+
}), c.$$click = () => e.onChange(e.page + 1), a(c, r(Ue, {
|
|
756
757
|
class: "h-4 w-4"
|
|
757
758
|
})), S((u) => {
|
|
758
|
-
var
|
|
759
|
-
var m = e.page <= 1,
|
|
760
|
-
return m !== u.e && (
|
|
759
|
+
var M, k;
|
|
760
|
+
var m = e.page <= 1, s = ((M = e.labels) == null ? void 0 : M.previous) ?? "Previous page", b = e.page >= e.totalPages, y = ((k = e.labels) == null ? void 0 : k.next) ?? "Next page";
|
|
761
|
+
return m !== u.e && (l.disabled = u.e = m), s !== u.t && B(l, "aria-label", u.t = s), b !== u.a && (c.disabled = u.a = b), y !== u.o && B(c, "aria-label", u.o = y), u;
|
|
761
762
|
}, {
|
|
762
763
|
e: void 0,
|
|
763
764
|
t: void 0,
|
|
@@ -767,51 +768,51 @@ function wl(e) {
|
|
|
767
768
|
})();
|
|
768
769
|
}
|
|
769
770
|
ee(["click"]);
|
|
770
|
-
var
|
|
771
|
-
const
|
|
772
|
-
function
|
|
773
|
-
const [t,
|
|
771
|
+
var jr = /* @__PURE__ */ d("<select>");
|
|
772
|
+
const Br = "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 jo(e) {
|
|
774
|
+
const [t, o] = L(e, ["value", "onChange", "class", "children"]);
|
|
774
775
|
let n;
|
|
775
776
|
return pe(() => {
|
|
776
|
-
const
|
|
777
|
-
t.children, n && n.value !==
|
|
777
|
+
const l = t.value ?? "";
|
|
778
|
+
t.children, n && n.value !== l && (n.value = l);
|
|
778
779
|
}), (() => {
|
|
779
|
-
var
|
|
780
|
-
|
|
780
|
+
var l = jr();
|
|
781
|
+
l.addEventListener("change", (c) => t.onChange(c.currentTarget.value));
|
|
781
782
|
var i = n;
|
|
782
|
-
return typeof i == "function" ?
|
|
783
|
+
return typeof i == "function" ? Y(i, l) : n = l, I(l, A({
|
|
783
784
|
get class() {
|
|
784
|
-
return g(
|
|
785
|
+
return g(Br, t.class);
|
|
785
786
|
},
|
|
786
787
|
get value() {
|
|
787
788
|
return t.value;
|
|
788
789
|
}
|
|
789
|
-
},
|
|
790
|
+
}, o), !1, !0), a(l, () => t.children), l;
|
|
790
791
|
})();
|
|
791
792
|
}
|
|
792
|
-
var
|
|
793
|
-
function
|
|
793
|
+
var Nr = /* @__PURE__ */ d('<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 Vr(e) {
|
|
794
795
|
return (() => {
|
|
795
|
-
var t =
|
|
796
|
-
return S((
|
|
797
|
-
var n = g("h-5 w-5 animate-spin text-muted-foreground", e.class),
|
|
798
|
-
return n !==
|
|
796
|
+
var t = Nr();
|
|
797
|
+
return S((o) => {
|
|
798
|
+
var n = g("h-5 w-5 animate-spin text-muted-foreground", e.class), l = e.label ?? "Loading";
|
|
799
|
+
return n !== o.e && B(t, "class", o.e = n), l !== o.t && B(t, "aria-label", o.t = l), o;
|
|
799
800
|
}, {
|
|
800
801
|
e: void 0,
|
|
801
802
|
t: void 0
|
|
802
803
|
}), t;
|
|
803
804
|
})();
|
|
804
805
|
}
|
|
805
|
-
var
|
|
806
|
-
const
|
|
806
|
+
var Yr = /* @__PURE__ */ d("<div>"), Gr = /* @__PURE__ */ d('<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 Hr = {
|
|
807
808
|
primary: "bg-primary/15 text-primary",
|
|
808
809
|
success: "bg-emerald-500/15 text-emerald-600",
|
|
809
810
|
danger: "bg-rose-500/15 text-rose-600",
|
|
810
811
|
neutral: "bg-muted text-muted-foreground"
|
|
811
812
|
};
|
|
812
|
-
function
|
|
813
|
-
const t =
|
|
814
|
-
return r(
|
|
813
|
+
function Bo(e) {
|
|
814
|
+
const t = it(), o = rr(() => e.value), n = () => (e.format ?? ((l) => String(Math.round(l))))(o());
|
|
815
|
+
return r(Rt.div, {
|
|
815
816
|
initial: t ? !1 : {
|
|
816
817
|
opacity: 0,
|
|
817
818
|
y: 8
|
|
@@ -828,27 +829,27 @@ function yl(e) {
|
|
|
828
829
|
};
|
|
829
830
|
},
|
|
830
831
|
get children() {
|
|
831
|
-
return r(
|
|
832
|
+
return r(gr, {
|
|
832
833
|
glass: !0,
|
|
833
834
|
glow: !0,
|
|
834
835
|
get class() {
|
|
835
836
|
return e.class;
|
|
836
837
|
},
|
|
837
838
|
get children() {
|
|
838
|
-
return r(
|
|
839
|
+
return r(fr, {
|
|
839
840
|
class: "flex items-center gap-4 p-5",
|
|
840
841
|
get children() {
|
|
841
|
-
return [r(
|
|
842
|
+
return [r($, {
|
|
842
843
|
get when() {
|
|
843
844
|
return e.icon;
|
|
844
845
|
},
|
|
845
846
|
get children() {
|
|
846
|
-
var
|
|
847
|
-
return a(
|
|
847
|
+
var l = Yr();
|
|
848
|
+
return a(l, () => e.icon), S(() => X(l, g("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", Hr[e.tone ?? "neutral"]))), l;
|
|
848
849
|
}
|
|
849
850
|
}), (() => {
|
|
850
|
-
var
|
|
851
|
-
return a(i, () => e.label), a(
|
|
851
|
+
var l = Gr(), i = l.firstChild, c = i.nextSibling;
|
|
852
|
+
return a(i, () => e.label), a(c, n), l;
|
|
852
853
|
})()];
|
|
853
854
|
}
|
|
854
855
|
});
|
|
@@ -857,112 +858,112 @@ function yl(e) {
|
|
|
857
858
|
}
|
|
858
859
|
});
|
|
859
860
|
}
|
|
860
|
-
var
|
|
861
|
-
function
|
|
862
|
-
const [t,
|
|
861
|
+
var Xr = /* @__PURE__ */ d('<div class="w-full overflow-x-auto"><table>'), qr = /* @__PURE__ */ d("<thead>"), Ur = /* @__PURE__ */ d("<tbody>"), Kr = /* @__PURE__ */ d("<tr>"), Zr = /* @__PURE__ */ d("<th>"), Jr = /* @__PURE__ */ d("<td>");
|
|
862
|
+
function No(e) {
|
|
863
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
863
864
|
return (() => {
|
|
864
|
-
var n =
|
|
865
|
-
return
|
|
865
|
+
var n = Xr(), l = n.firstChild;
|
|
866
|
+
return I(l, A({
|
|
866
867
|
get class() {
|
|
867
868
|
return g("w-full border-collapse text-sm", t.class);
|
|
868
869
|
}
|
|
869
|
-
},
|
|
870
|
+
}, o), !1, !0), a(l, () => t.children), n;
|
|
870
871
|
})();
|
|
871
872
|
}
|
|
872
|
-
function
|
|
873
|
-
const [t,
|
|
873
|
+
function Vo(e) {
|
|
874
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
874
875
|
return (() => {
|
|
875
|
-
var n =
|
|
876
|
-
return
|
|
876
|
+
var n = qr();
|
|
877
|
+
return I(n, A({
|
|
877
878
|
get class() {
|
|
878
879
|
return g("border-b border-border text-left text-muted-foreground", t.class);
|
|
879
880
|
}
|
|
880
|
-
},
|
|
881
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
881
882
|
})();
|
|
882
883
|
}
|
|
883
|
-
function
|
|
884
|
-
const [t,
|
|
884
|
+
function Yo(e) {
|
|
885
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
885
886
|
return (() => {
|
|
886
|
-
var n =
|
|
887
|
-
return
|
|
887
|
+
var n = Ur();
|
|
888
|
+
return I(n, A({
|
|
888
889
|
get class() {
|
|
889
890
|
return t.class;
|
|
890
891
|
}
|
|
891
|
-
},
|
|
892
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
892
893
|
})();
|
|
893
894
|
}
|
|
894
|
-
function
|
|
895
|
-
const [t,
|
|
895
|
+
function Go(e) {
|
|
896
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
896
897
|
return (() => {
|
|
897
|
-
var n =
|
|
898
|
-
return
|
|
898
|
+
var n = Kr();
|
|
899
|
+
return I(n, A({
|
|
899
900
|
get class() {
|
|
900
901
|
return g("border-b border-border last:border-0 hover:bg-muted/40", t.class);
|
|
901
902
|
}
|
|
902
|
-
},
|
|
903
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
903
904
|
})();
|
|
904
905
|
}
|
|
905
|
-
function
|
|
906
|
-
const [t,
|
|
906
|
+
function Ho(e) {
|
|
907
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
907
908
|
return (() => {
|
|
908
|
-
var n =
|
|
909
|
-
return
|
|
909
|
+
var n = Zr();
|
|
910
|
+
return I(n, A({
|
|
910
911
|
get class() {
|
|
911
912
|
return g("px-3 py-2 text-xs font-semibold uppercase tracking-wide", t.class);
|
|
912
913
|
}
|
|
913
|
-
},
|
|
914
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
914
915
|
})();
|
|
915
916
|
}
|
|
916
|
-
function
|
|
917
|
-
const [t,
|
|
917
|
+
function Xo(e) {
|
|
918
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
918
919
|
return (() => {
|
|
919
|
-
var n =
|
|
920
|
-
return
|
|
920
|
+
var n = Jr();
|
|
921
|
+
return I(n, A({
|
|
921
922
|
get class() {
|
|
922
923
|
return g("px-3 py-2 align-middle", t.class);
|
|
923
924
|
}
|
|
924
|
-
},
|
|
925
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
925
926
|
})();
|
|
926
927
|
}
|
|
927
|
-
var
|
|
928
|
-
function
|
|
929
|
-
const [t,
|
|
928
|
+
var Wr = /* @__PURE__ */ d("<div><div style=position:relative;width:100%>"), Qr = /* @__PURE__ */ d("<div style=position:absolute;top:0;left:0;width:100%>");
|
|
929
|
+
function qo(e) {
|
|
930
|
+
const [t, o] = j(), n = zt({
|
|
930
931
|
get count() {
|
|
931
932
|
return e.each.length;
|
|
932
933
|
},
|
|
933
934
|
getScrollElement: () => t() ?? null,
|
|
934
|
-
estimateSize: (
|
|
935
|
+
estimateSize: (l) => typeof e.estimateSize == "function" ? e.estimateSize(l) : e.estimateSize,
|
|
935
936
|
get overscan() {
|
|
936
937
|
return e.overscan ?? 10;
|
|
937
938
|
}
|
|
938
939
|
});
|
|
939
|
-
return
|
|
940
|
-
var
|
|
941
|
-
return
|
|
940
|
+
return nr(t, o), (() => {
|
|
941
|
+
var l = Wr(), i = l.firstChild;
|
|
942
|
+
return Y(o, l), a(i, r(O, {
|
|
942
943
|
get each() {
|
|
943
944
|
return n.getVirtualItems();
|
|
944
945
|
},
|
|
945
|
-
children: (
|
|
946
|
-
var u =
|
|
947
|
-
return a(u, () => e.children(e.each[
|
|
948
|
-
var
|
|
949
|
-
return
|
|
946
|
+
children: (c) => (() => {
|
|
947
|
+
var u = Qr();
|
|
948
|
+
return a(u, () => e.children(e.each[c.index], () => c.index)), S((m) => {
|
|
949
|
+
var s = `${c.size}px`, b = `translateY(${c.start}px)`;
|
|
950
|
+
return s !== m.e && le(u, "height", m.e = s), b !== m.t && le(u, "transform", m.t = b), m;
|
|
950
951
|
}, {
|
|
951
952
|
e: void 0,
|
|
952
953
|
t: void 0
|
|
953
954
|
}), u;
|
|
954
955
|
})()
|
|
955
|
-
})), S((
|
|
956
|
+
})), S((c) => {
|
|
956
957
|
var u = g("overflow-auto", e.class), m = `${n.getTotalSize()}px`;
|
|
957
|
-
return u !==
|
|
958
|
+
return u !== c.e && X(l, c.e = u), m !== c.t && le(i, "height", c.t = m), c;
|
|
958
959
|
}, {
|
|
959
960
|
e: void 0,
|
|
960
961
|
t: void 0
|
|
961
|
-
}),
|
|
962
|
+
}), l;
|
|
962
963
|
})();
|
|
963
964
|
}
|
|
964
|
-
function
|
|
965
|
-
return r(
|
|
965
|
+
function Uo(e) {
|
|
966
|
+
return r(se, {
|
|
966
967
|
get value() {
|
|
967
968
|
return e.value;
|
|
968
969
|
},
|
|
@@ -973,14 +974,14 @@ function Ll(e) {
|
|
|
973
974
|
return e.class;
|
|
974
975
|
},
|
|
975
976
|
get children() {
|
|
976
|
-
return [r(
|
|
977
|
+
return [r(se.List, {
|
|
977
978
|
class: "flex gap-1 border-b border-border",
|
|
978
979
|
get children() {
|
|
979
|
-
return [r(
|
|
980
|
+
return [r(O, {
|
|
980
981
|
get each() {
|
|
981
982
|
return e.items;
|
|
982
983
|
},
|
|
983
|
-
children: (t) => r(
|
|
984
|
+
children: (t) => r(se.Trigger, {
|
|
984
985
|
get value() {
|
|
985
986
|
return t.value;
|
|
986
987
|
},
|
|
@@ -991,15 +992,15 @@ function Ll(e) {
|
|
|
991
992
|
return t.label;
|
|
992
993
|
}
|
|
993
994
|
})
|
|
994
|
-
}), r(
|
|
995
|
+
}), r(se.Indicator, {
|
|
995
996
|
class: "absolute bottom-0 h-0.5 bg-primary transition-all"
|
|
996
997
|
})];
|
|
997
998
|
}
|
|
998
|
-
}), r(
|
|
999
|
+
}), r(O, {
|
|
999
1000
|
get each() {
|
|
1000
1001
|
return e.items;
|
|
1001
1002
|
},
|
|
1002
|
-
children: (t) => r(
|
|
1003
|
+
children: (t) => r(se.Content, {
|
|
1003
1004
|
get value() {
|
|
1004
1005
|
return t.value;
|
|
1005
1006
|
},
|
|
@@ -1012,14 +1013,14 @@ function Ll(e) {
|
|
|
1012
1013
|
}
|
|
1013
1014
|
});
|
|
1014
1015
|
}
|
|
1015
|
-
var
|
|
1016
|
-
const
|
|
1016
|
+
var en = /* @__PURE__ */ d("<div class=flex-1>");
|
|
1017
|
+
const tn = {
|
|
1017
1018
|
success: "border-emerald-500/30 bg-emerald-500/10",
|
|
1018
1019
|
error: "border-destructive/30 bg-destructive/10",
|
|
1019
1020
|
info: "border-sky-500/30 bg-sky-500/10"
|
|
1020
1021
|
};
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1022
|
+
function Te(e, t, o) {
|
|
1023
|
+
Ot.show((n) => r(oe, {
|
|
1023
1024
|
get toastId() {
|
|
1024
1025
|
return n.toastId;
|
|
1025
1026
|
},
|
|
@@ -1029,25 +1030,25 @@ function Se(e, t, l) {
|
|
|
1029
1030
|
// Kobalte's data-opened/data-closed presence (same animationend-only
|
|
1030
1031
|
// mechanism as Modal).
|
|
1031
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",
|
|
1032
|
-
|
|
1033
|
+
tn[e]
|
|
1033
1034
|
);
|
|
1034
1035
|
},
|
|
1035
1036
|
get children() {
|
|
1036
1037
|
return [(() => {
|
|
1037
|
-
var
|
|
1038
|
-
return a(
|
|
1038
|
+
var l = en();
|
|
1039
|
+
return a(l, r(oe.Title, {
|
|
1039
1040
|
class: "font-semibold",
|
|
1040
1041
|
children: t
|
|
1041
|
-
}), null), a(
|
|
1042
|
-
when:
|
|
1042
|
+
}), null), a(l, r($, {
|
|
1043
|
+
when: o,
|
|
1043
1044
|
get children() {
|
|
1044
|
-
return r(
|
|
1045
|
+
return r(oe.Description, {
|
|
1045
1046
|
class: "text-muted-foreground",
|
|
1046
|
-
children:
|
|
1047
|
+
children: o
|
|
1047
1048
|
});
|
|
1048
1049
|
}
|
|
1049
|
-
}), null),
|
|
1050
|
-
})(), r(
|
|
1050
|
+
}), null), l;
|
|
1051
|
+
})(), r(oe.CloseButton, {
|
|
1051
1052
|
class: "text-muted-foreground hover:text-foreground",
|
|
1052
1053
|
"aria-label": "Close",
|
|
1053
1054
|
children: "✕"
|
|
@@ -1055,23 +1056,23 @@ function Se(e, t, l) {
|
|
|
1055
1056
|
}
|
|
1056
1057
|
}));
|
|
1057
1058
|
}
|
|
1058
|
-
const
|
|
1059
|
-
success: (e, t) =>
|
|
1060
|
-
error: (e, t) =>
|
|
1061
|
-
info: (e, t) =>
|
|
1059
|
+
const Ko = {
|
|
1060
|
+
success: (e, t) => Te("success", e, t),
|
|
1061
|
+
error: (e, t) => Te("error", e, t),
|
|
1062
|
+
info: (e, t) => Te("info", e, t)
|
|
1062
1063
|
};
|
|
1063
|
-
function
|
|
1064
|
-
return r(
|
|
1064
|
+
function Zo() {
|
|
1065
|
+
return r(oe.Region, {
|
|
1065
1066
|
duration: 5e3,
|
|
1066
1067
|
swipeDirection: "right",
|
|
1067
1068
|
get children() {
|
|
1068
|
-
return r(
|
|
1069
|
+
return r(oe.List, {
|
|
1069
1070
|
class: "fixed bottom-4 right-4 z-50 flex w-80 flex-col gap-2 outline-none"
|
|
1070
1071
|
});
|
|
1071
1072
|
}
|
|
1072
1073
|
});
|
|
1073
1074
|
}
|
|
1074
|
-
function
|
|
1075
|
+
function Jo(e) {
|
|
1075
1076
|
return r(ue, {
|
|
1076
1077
|
get checked() {
|
|
1077
1078
|
return e.checked;
|
|
@@ -1093,7 +1094,7 @@ function Al(e) {
|
|
|
1093
1094
|
class: "h-4 w-4 rounded-full bg-white shadow-sm transition-transform data-[checked]:translate-x-4"
|
|
1094
1095
|
});
|
|
1095
1096
|
}
|
|
1096
|
-
}), r(
|
|
1097
|
+
}), r($, {
|
|
1097
1098
|
get when() {
|
|
1098
1099
|
return e.label;
|
|
1099
1100
|
},
|
|
@@ -1109,8 +1110,8 @@ function Al(e) {
|
|
|
1109
1110
|
}
|
|
1110
1111
|
});
|
|
1111
1112
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return r(
|
|
1113
|
+
function Wo(e) {
|
|
1114
|
+
return r(W, {
|
|
1114
1115
|
get value() {
|
|
1115
1116
|
return e.value;
|
|
1116
1117
|
},
|
|
@@ -1121,23 +1122,23 @@ function Dl(e) {
|
|
|
1121
1122
|
return g("flex flex-col gap-2", e.class);
|
|
1122
1123
|
},
|
|
1123
1124
|
get children() {
|
|
1124
|
-
return [r(
|
|
1125
|
+
return [r($, {
|
|
1125
1126
|
get when() {
|
|
1126
1127
|
return e.label;
|
|
1127
1128
|
},
|
|
1128
1129
|
get children() {
|
|
1129
|
-
return r(
|
|
1130
|
+
return r(W.Label, {
|
|
1130
1131
|
class: "text-sm font-medium text-foreground",
|
|
1131
1132
|
get children() {
|
|
1132
1133
|
return e.label;
|
|
1133
1134
|
}
|
|
1134
1135
|
});
|
|
1135
1136
|
}
|
|
1136
|
-
}), r(
|
|
1137
|
+
}), r(O, {
|
|
1137
1138
|
get each() {
|
|
1138
1139
|
return e.options;
|
|
1139
1140
|
},
|
|
1140
|
-
children: (t) => r(
|
|
1141
|
+
children: (t) => r(W.Item, {
|
|
1141
1142
|
get value() {
|
|
1142
1143
|
return t.value;
|
|
1143
1144
|
},
|
|
@@ -1146,14 +1147,14 @@ function Dl(e) {
|
|
|
1146
1147
|
},
|
|
1147
1148
|
class: "flex items-center gap-2 text-sm text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1148
1149
|
get children() {
|
|
1149
|
-
return [r(
|
|
1150
|
+
return [r(W.ItemInput, {}), r(W.ItemControl, {
|
|
1150
1151
|
class: "grid h-4 w-4 place-items-center rounded-full border border-input transition-colors data-[checked]:border-primary",
|
|
1151
1152
|
get children() {
|
|
1152
|
-
return r(
|
|
1153
|
+
return r(W.ItemIndicator, {
|
|
1153
1154
|
class: "h-2 w-2 rounded-full bg-primary"
|
|
1154
1155
|
});
|
|
1155
1156
|
}
|
|
1156
|
-
}), r(
|
|
1157
|
+
}), r(W.ItemLabel, {
|
|
1157
1158
|
get children() {
|
|
1158
1159
|
return t.label;
|
|
1159
1160
|
}
|
|
@@ -1164,24 +1165,24 @@ function Dl(e) {
|
|
|
1164
1165
|
}
|
|
1165
1166
|
});
|
|
1166
1167
|
}
|
|
1167
|
-
var
|
|
1168
|
-
const
|
|
1169
|
-
function
|
|
1170
|
-
const [t,
|
|
1168
|
+
var rn = /* @__PURE__ */ d("<textarea>");
|
|
1169
|
+
const nn = "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 Qo(e) {
|
|
1171
|
+
const [t, o] = L(e, ["value", "onInput", "class"]);
|
|
1171
1172
|
return (() => {
|
|
1172
|
-
var n =
|
|
1173
|
-
return n.$$input = (
|
|
1173
|
+
var n = rn();
|
|
1174
|
+
return n.$$input = (l) => t.onInput(l.currentTarget.value), I(n, A({
|
|
1174
1175
|
get class() {
|
|
1175
|
-
return g(
|
|
1176
|
+
return g(nn, t.class);
|
|
1176
1177
|
},
|
|
1177
1178
|
get value() {
|
|
1178
1179
|
return t.value;
|
|
1179
1180
|
}
|
|
1180
|
-
},
|
|
1181
|
+
}, o), !1, !1), n;
|
|
1181
1182
|
})();
|
|
1182
1183
|
}
|
|
1183
1184
|
ee(["input"]);
|
|
1184
|
-
function
|
|
1185
|
+
function el(e) {
|
|
1185
1186
|
return r(ge, {
|
|
1186
1187
|
get children() {
|
|
1187
1188
|
return [r(ge.Trigger, {
|
|
@@ -1204,7 +1205,7 @@ function Pl(e) {
|
|
|
1204
1205
|
}
|
|
1205
1206
|
});
|
|
1206
1207
|
}
|
|
1207
|
-
function
|
|
1208
|
+
function tl(e) {
|
|
1208
1209
|
return r(fe, {
|
|
1209
1210
|
get children() {
|
|
1210
1211
|
return [r(fe.Trigger, {
|
|
@@ -1227,7 +1228,7 @@ function zl(e) {
|
|
|
1227
1228
|
}
|
|
1228
1229
|
});
|
|
1229
1230
|
}
|
|
1230
|
-
function
|
|
1231
|
+
function rl(e) {
|
|
1231
1232
|
return r(me, {
|
|
1232
1233
|
get children() {
|
|
1233
1234
|
return [r(me.Trigger, {
|
|
@@ -1250,37 +1251,37 @@ function Ol(e) {
|
|
|
1250
1251
|
}
|
|
1251
1252
|
});
|
|
1252
1253
|
}
|
|
1253
|
-
var
|
|
1254
|
-
const
|
|
1254
|
+
var on = /* @__PURE__ */ d("<p class=font-semibold>"), ln = /* @__PURE__ */ d("<div class=flex-1><div class=text-muted-foreground>");
|
|
1255
|
+
const an = {
|
|
1255
1256
|
info: {
|
|
1256
1257
|
wrap: "border-sky-500/30 bg-sky-500/10",
|
|
1257
1258
|
icon: "text-sky-500",
|
|
1258
|
-
Icon:
|
|
1259
|
+
Icon: Mt
|
|
1259
1260
|
},
|
|
1260
1261
|
success: {
|
|
1261
1262
|
wrap: "border-emerald-500/30 bg-emerald-500/10",
|
|
1262
1263
|
icon: "text-emerald-500",
|
|
1263
|
-
Icon:
|
|
1264
|
+
Icon: Tt
|
|
1264
1265
|
},
|
|
1265
1266
|
warning: {
|
|
1266
1267
|
wrap: "border-amber-500/30 bg-amber-500/10",
|
|
1267
1268
|
icon: "text-amber-500",
|
|
1268
|
-
Icon:
|
|
1269
|
+
Icon: St
|
|
1269
1270
|
},
|
|
1270
1271
|
danger: {
|
|
1271
1272
|
wrap: "border-rose-500/30 bg-rose-500/10",
|
|
1272
1273
|
icon: "text-rose-500",
|
|
1273
|
-
Icon:
|
|
1274
|
+
Icon: Ct
|
|
1274
1275
|
}
|
|
1275
1276
|
};
|
|
1276
|
-
function
|
|
1277
|
-
const t = () =>
|
|
1278
|
-
return r(
|
|
1277
|
+
function nl(e) {
|
|
1278
|
+
const t = () => an[e.tone ?? "info"];
|
|
1279
|
+
return r(Pt, {
|
|
1279
1280
|
get class() {
|
|
1280
1281
|
return g("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
|
|
1281
1282
|
},
|
|
1282
1283
|
get children() {
|
|
1283
|
-
return [r(
|
|
1284
|
+
return [r(yt, {
|
|
1284
1285
|
get component() {
|
|
1285
1286
|
return t().Icon;
|
|
1286
1287
|
},
|
|
@@ -1288,27 +1289,27 @@ function Bl(e) {
|
|
|
1288
1289
|
return g("mt-0.5 h-4 w-4 shrink-0", t().icon);
|
|
1289
1290
|
}
|
|
1290
1291
|
}), (() => {
|
|
1291
|
-
var
|
|
1292
|
-
return a(
|
|
1292
|
+
var o = ln(), n = o.firstChild;
|
|
1293
|
+
return a(o, r($, {
|
|
1293
1294
|
get when() {
|
|
1294
1295
|
return e.title;
|
|
1295
1296
|
},
|
|
1296
1297
|
get children() {
|
|
1297
|
-
var
|
|
1298
|
-
return a(
|
|
1298
|
+
var l = on();
|
|
1299
|
+
return a(l, () => e.title), l;
|
|
1299
1300
|
}
|
|
1300
|
-
}), n), a(n, () => e.children),
|
|
1301
|
+
}), n), a(n, () => e.children), o;
|
|
1301
1302
|
})()];
|
|
1302
1303
|
}
|
|
1303
1304
|
});
|
|
1304
1305
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return r(
|
|
1306
|
+
function ol(e) {
|
|
1307
|
+
return r(ke, {
|
|
1307
1308
|
get class() {
|
|
1308
1309
|
return g("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted", e.class);
|
|
1309
1310
|
},
|
|
1310
1311
|
get children() {
|
|
1311
|
-
return [r(
|
|
1312
|
+
return [r(ke.Img, {
|
|
1312
1313
|
get src() {
|
|
1313
1314
|
return e.src;
|
|
1314
1315
|
},
|
|
@@ -1316,7 +1317,7 @@ function jl(e) {
|
|
|
1316
1317
|
return e.alt;
|
|
1317
1318
|
},
|
|
1318
1319
|
class: "h-full w-full object-cover"
|
|
1319
|
-
}), r(
|
|
1320
|
+
}), r(ke.Fallback, {
|
|
1320
1321
|
class: "grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",
|
|
1321
1322
|
get children() {
|
|
1322
1323
|
return e.fallback;
|
|
@@ -1325,16 +1326,16 @@ function jl(e) {
|
|
|
1325
1326
|
}
|
|
1326
1327
|
});
|
|
1327
1328
|
}
|
|
1328
|
-
var
|
|
1329
|
-
function
|
|
1329
|
+
var cn = /* @__PURE__ */ d("<div>");
|
|
1330
|
+
function ll(e) {
|
|
1330
1331
|
return (() => {
|
|
1331
|
-
var t =
|
|
1332
|
+
var t = cn();
|
|
1332
1333
|
return S(() => X(t, g("animate-pulse rounded-md bg-muted", e.class))), t;
|
|
1333
1334
|
})();
|
|
1334
1335
|
}
|
|
1335
|
-
function
|
|
1336
|
+
function al(e) {
|
|
1336
1337
|
const t = () => e.orientation ?? "horizontal";
|
|
1337
|
-
return r(
|
|
1338
|
+
return r(jt, {
|
|
1338
1339
|
get orientation() {
|
|
1339
1340
|
return t();
|
|
1340
1341
|
},
|
|
@@ -1343,8 +1344,8 @@ function Nl(e) {
|
|
|
1343
1344
|
}
|
|
1344
1345
|
});
|
|
1345
1346
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1347
|
+
var dn = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1348
|
+
function il(e) {
|
|
1348
1349
|
return r(he, {
|
|
1349
1350
|
get value() {
|
|
1350
1351
|
return e.value;
|
|
@@ -1357,12 +1358,12 @@ function Yl(e) {
|
|
|
1357
1358
|
return g("flex flex-col gap-1.5", e.class);
|
|
1358
1359
|
},
|
|
1359
1360
|
get children() {
|
|
1360
|
-
return [r(
|
|
1361
|
+
return [r($, {
|
|
1361
1362
|
get when() {
|
|
1362
1363
|
return e.label;
|
|
1363
1364
|
},
|
|
1364
1365
|
get children() {
|
|
1365
|
-
var t =
|
|
1366
|
+
var t = dn();
|
|
1366
1367
|
return a(t, r(he.Label, {
|
|
1367
1368
|
get children() {
|
|
1368
1369
|
return e.label;
|
|
@@ -1382,8 +1383,8 @@ function Yl(e) {
|
|
|
1382
1383
|
}
|
|
1383
1384
|
});
|
|
1384
1385
|
}
|
|
1385
|
-
var
|
|
1386
|
-
function
|
|
1386
|
+
var sn = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1387
|
+
function cl(e) {
|
|
1387
1388
|
return r(be, {
|
|
1388
1389
|
get value() {
|
|
1389
1390
|
return e.value;
|
|
@@ -1396,12 +1397,12 @@ function Gl(e) {
|
|
|
1396
1397
|
return g("flex flex-col gap-1.5", e.class);
|
|
1397
1398
|
},
|
|
1398
1399
|
get children() {
|
|
1399
|
-
return [r(
|
|
1400
|
+
return [r($, {
|
|
1400
1401
|
get when() {
|
|
1401
1402
|
return e.label;
|
|
1402
1403
|
},
|
|
1403
1404
|
get children() {
|
|
1404
|
-
var t =
|
|
1405
|
+
var t = sn();
|
|
1405
1406
|
return a(t, r(be.Label, {
|
|
1406
1407
|
get children() {
|
|
1407
1408
|
return e.label;
|
|
@@ -1421,8 +1422,8 @@ function Gl(e) {
|
|
|
1421
1422
|
}
|
|
1422
1423
|
});
|
|
1423
1424
|
}
|
|
1424
|
-
var
|
|
1425
|
-
function
|
|
1425
|
+
var un = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1426
|
+
function dl(e) {
|
|
1426
1427
|
return r(Q, {
|
|
1427
1428
|
get value() {
|
|
1428
1429
|
return [e.value];
|
|
@@ -1441,12 +1442,12 @@ function Xl(e) {
|
|
|
1441
1442
|
return g("flex flex-col gap-2", e.class);
|
|
1442
1443
|
},
|
|
1443
1444
|
get children() {
|
|
1444
|
-
return [r(
|
|
1445
|
+
return [r($, {
|
|
1445
1446
|
get when() {
|
|
1446
1447
|
return e.label;
|
|
1447
1448
|
},
|
|
1448
1449
|
get children() {
|
|
1449
|
-
var t =
|
|
1450
|
+
var t = un();
|
|
1450
1451
|
return a(t, r(Q.Label, {
|
|
1451
1452
|
get children() {
|
|
1452
1453
|
return e.label;
|
|
@@ -1472,7 +1473,7 @@ function Xl(e) {
|
|
|
1472
1473
|
});
|
|
1473
1474
|
}
|
|
1474
1475
|
const Be = "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";
|
|
1475
|
-
function
|
|
1476
|
+
function sl(e) {
|
|
1476
1477
|
return r($e, {
|
|
1477
1478
|
get rawValue() {
|
|
1478
1479
|
return e.value;
|
|
@@ -1506,8 +1507,8 @@ function Hl(e) {
|
|
|
1506
1507
|
}
|
|
1507
1508
|
});
|
|
1508
1509
|
}
|
|
1509
|
-
function
|
|
1510
|
-
return r(
|
|
1510
|
+
function ul(e) {
|
|
1511
|
+
return r(Bt, {
|
|
1511
1512
|
get pressed() {
|
|
1512
1513
|
return e.pressed;
|
|
1513
1514
|
},
|
|
@@ -1528,8 +1529,8 @@ function ql(e) {
|
|
|
1528
1529
|
}
|
|
1529
1530
|
});
|
|
1530
1531
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return r(
|
|
1532
|
+
function gl(e) {
|
|
1533
|
+
return r(Re, {
|
|
1533
1534
|
get value() {
|
|
1534
1535
|
return e.value;
|
|
1535
1536
|
},
|
|
@@ -1540,11 +1541,11 @@ function Ul(e) {
|
|
|
1540
1541
|
return g("inline-flex gap-1 rounded-md border border-border bg-card p-1", e.class);
|
|
1541
1542
|
},
|
|
1542
1543
|
get children() {
|
|
1543
|
-
return r(
|
|
1544
|
+
return r(O, {
|
|
1544
1545
|
get each() {
|
|
1545
1546
|
return e.options;
|
|
1546
1547
|
},
|
|
1547
|
-
children: (t) => r(
|
|
1548
|
+
children: (t) => r(Re.Item, {
|
|
1548
1549
|
get value() {
|
|
1549
1550
|
return t.value;
|
|
1550
1551
|
},
|
|
@@ -1557,7 +1558,7 @@ function Ul(e) {
|
|
|
1557
1558
|
}
|
|
1558
1559
|
});
|
|
1559
1560
|
}
|
|
1560
|
-
function
|
|
1561
|
+
function fl(e) {
|
|
1561
1562
|
return r(xe, {
|
|
1562
1563
|
get value() {
|
|
1563
1564
|
return e.value;
|
|
@@ -1571,7 +1572,7 @@ function Kl(e) {
|
|
|
1571
1572
|
get children() {
|
|
1572
1573
|
return [r(xe.Indicator, {
|
|
1573
1574
|
class: "absolute rounded-sm bg-primary shadow-sm transition-all"
|
|
1574
|
-
}), r(
|
|
1575
|
+
}), r(O, {
|
|
1575
1576
|
get each() {
|
|
1576
1577
|
return e.options;
|
|
1577
1578
|
},
|
|
@@ -1592,46 +1593,46 @@ function Kl(e) {
|
|
|
1592
1593
|
}
|
|
1593
1594
|
});
|
|
1594
1595
|
}
|
|
1595
|
-
var
|
|
1596
|
-
function
|
|
1596
|
+
var gn = /* @__PURE__ */ d('<ol class="flex items-center gap-2 text-muted-foreground">'), fn = /* @__PURE__ */ d('<li class="flex items-center gap-2">'), mn = /* @__PURE__ */ d("<span>");
|
|
1597
|
+
function ml(e) {
|
|
1597
1598
|
return r(Ce, {
|
|
1598
1599
|
get class() {
|
|
1599
1600
|
return g("text-sm", e.class);
|
|
1600
1601
|
},
|
|
1601
1602
|
get children() {
|
|
1602
|
-
var t =
|
|
1603
|
-
return a(t, r(
|
|
1603
|
+
var t = gn();
|
|
1604
|
+
return a(t, r(O, {
|
|
1604
1605
|
get each() {
|
|
1605
1606
|
return e.items;
|
|
1606
1607
|
},
|
|
1607
|
-
children: (
|
|
1608
|
-
const
|
|
1608
|
+
children: (o, n) => {
|
|
1609
|
+
const l = () => n() === e.items.length - 1;
|
|
1609
1610
|
return (() => {
|
|
1610
|
-
var i =
|
|
1611
|
-
return a(i, r(
|
|
1611
|
+
var i = fn();
|
|
1612
|
+
return a(i, r($, {
|
|
1612
1613
|
get when() {
|
|
1613
|
-
return ae(() => !!
|
|
1614
|
+
return ae(() => !!o.href)() && !l();
|
|
1614
1615
|
},
|
|
1615
1616
|
get fallback() {
|
|
1616
1617
|
return (() => {
|
|
1617
|
-
var
|
|
1618
|
-
return a(
|
|
1618
|
+
var c = mn();
|
|
1619
|
+
return a(c, () => o.label), S(() => X(c, l() ? "font-medium text-foreground" : void 0)), c;
|
|
1619
1620
|
})();
|
|
1620
1621
|
},
|
|
1621
1622
|
get children() {
|
|
1622
1623
|
return r(Ce.Link, {
|
|
1623
1624
|
get href() {
|
|
1624
|
-
return
|
|
1625
|
+
return o.href;
|
|
1625
1626
|
},
|
|
1626
1627
|
class: "transition-colors hover:text-foreground",
|
|
1627
1628
|
get children() {
|
|
1628
|
-
return
|
|
1629
|
+
return o.label;
|
|
1629
1630
|
}
|
|
1630
1631
|
});
|
|
1631
1632
|
}
|
|
1632
|
-
}), null), a(i, r(
|
|
1633
|
+
}), null), a(i, r($, {
|
|
1633
1634
|
get when() {
|
|
1634
|
-
return !
|
|
1635
|
+
return !l();
|
|
1635
1636
|
},
|
|
1636
1637
|
get children() {
|
|
1637
1638
|
return r(Ce.Separator, {
|
|
@@ -1645,8 +1646,8 @@ function Zl(e) {
|
|
|
1645
1646
|
}
|
|
1646
1647
|
});
|
|
1647
1648
|
}
|
|
1648
|
-
var
|
|
1649
|
-
function
|
|
1649
|
+
var hn = /* @__PURE__ */ d("<div class=p-6>"), bn = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
|
|
1650
|
+
function hl(e) {
|
|
1650
1651
|
return r(ne, {
|
|
1651
1652
|
get open() {
|
|
1652
1653
|
return e.open;
|
|
@@ -1660,14 +1661,14 @@ function Wl(e) {
|
|
|
1660
1661
|
return [r(ne.Overlay, {
|
|
1661
1662
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
1662
1663
|
}), (() => {
|
|
1663
|
-
var t =
|
|
1664
|
+
var t = bn();
|
|
1664
1665
|
return a(t, r(ne.Content, {
|
|
1665
1666
|
get class() {
|
|
1666
1667
|
return g("modal-content w-full max-w-md rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
1667
1668
|
},
|
|
1668
1669
|
get children() {
|
|
1669
|
-
var
|
|
1670
|
-
return a(
|
|
1670
|
+
var o = hn();
|
|
1671
|
+
return a(o, r($, {
|
|
1671
1672
|
get when() {
|
|
1672
1673
|
return e.title;
|
|
1673
1674
|
},
|
|
@@ -1679,12 +1680,12 @@ function Wl(e) {
|
|
|
1679
1680
|
}
|
|
1680
1681
|
});
|
|
1681
1682
|
}
|
|
1682
|
-
}), null), a(
|
|
1683
|
+
}), null), a(o, r(ne.Description, {
|
|
1683
1684
|
class: "mt-3 text-sm text-muted-foreground",
|
|
1684
1685
|
get children() {
|
|
1685
1686
|
return e.children;
|
|
1686
1687
|
}
|
|
1687
|
-
}), null),
|
|
1688
|
+
}), null), o;
|
|
1688
1689
|
}
|
|
1689
1690
|
})), t;
|
|
1690
1691
|
})()];
|
|
@@ -1693,7 +1694,7 @@ function Wl(e) {
|
|
|
1693
1694
|
}
|
|
1694
1695
|
});
|
|
1695
1696
|
}
|
|
1696
|
-
function
|
|
1697
|
+
function bl(e) {
|
|
1697
1698
|
return r(ve, {
|
|
1698
1699
|
get children() {
|
|
1699
1700
|
return [r(ve.Trigger, {
|
|
@@ -1708,7 +1709,7 @@ function Jl(e) {
|
|
|
1708
1709
|
return r(ve.Content, {
|
|
1709
1710
|
class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1710
1711
|
get children() {
|
|
1711
|
-
return r(
|
|
1712
|
+
return r(O, {
|
|
1712
1713
|
get each() {
|
|
1713
1714
|
return e.items;
|
|
1714
1715
|
},
|
|
@@ -1734,8 +1735,8 @@ function Jl(e) {
|
|
|
1734
1735
|
}
|
|
1735
1736
|
});
|
|
1736
1737
|
}
|
|
1737
|
-
function
|
|
1738
|
-
return r(
|
|
1738
|
+
function xl(e) {
|
|
1739
|
+
return r(N, {
|
|
1739
1740
|
get options() {
|
|
1740
1741
|
return e.options;
|
|
1741
1742
|
},
|
|
@@ -1749,19 +1750,19 @@ function Ql(e) {
|
|
|
1749
1750
|
get class() {
|
|
1750
1751
|
return g("w-full", e.class);
|
|
1751
1752
|
},
|
|
1752
|
-
itemComponent: (t) => r(
|
|
1753
|
+
itemComponent: (t) => r(N.Item, {
|
|
1753
1754
|
get item() {
|
|
1754
1755
|
return t.item;
|
|
1755
1756
|
},
|
|
1756
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",
|
|
1757
1758
|
get children() {
|
|
1758
|
-
return [r(
|
|
1759
|
+
return [r(N.ItemLabel, {
|
|
1759
1760
|
get children() {
|
|
1760
1761
|
return t.item.rawValue;
|
|
1761
1762
|
}
|
|
1762
|
-
}), r(
|
|
1763
|
+
}), r(N.ItemIndicator, {
|
|
1763
1764
|
get children() {
|
|
1764
|
-
return r(
|
|
1765
|
+
return r(Ft, {
|
|
1765
1766
|
class: "h-4 w-4"
|
|
1766
1767
|
});
|
|
1767
1768
|
}
|
|
@@ -1769,17 +1770,17 @@ function Ql(e) {
|
|
|
1769
1770
|
}
|
|
1770
1771
|
}),
|
|
1771
1772
|
get children() {
|
|
1772
|
-
return [r(
|
|
1773
|
+
return [r(N.Control, {
|
|
1773
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",
|
|
1774
1775
|
get children() {
|
|
1775
|
-
return [r(
|
|
1776
|
+
return [r(N.Input, {
|
|
1776
1777
|
class: "w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
|
|
1777
|
-
}), r(
|
|
1778
|
+
}), r(N.Trigger, {
|
|
1778
1779
|
class: "grid h-9 w-9 shrink-0 place-items-center text-muted-foreground",
|
|
1779
1780
|
get children() {
|
|
1780
|
-
return r(
|
|
1781
|
+
return r(N.Icon, {
|
|
1781
1782
|
get children() {
|
|
1782
|
-
return r(
|
|
1783
|
+
return r(Et, {
|
|
1783
1784
|
class: "h-4 w-4"
|
|
1784
1785
|
});
|
|
1785
1786
|
}
|
|
@@ -1787,12 +1788,12 @@ function Ql(e) {
|
|
|
1787
1788
|
}
|
|
1788
1789
|
})];
|
|
1789
1790
|
}
|
|
1790
|
-
}), r(
|
|
1791
|
+
}), r(N.Portal, {
|
|
1791
1792
|
get children() {
|
|
1792
|
-
return r(
|
|
1793
|
+
return r(N.Content, {
|
|
1793
1794
|
class: "z-50 overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1794
1795
|
get children() {
|
|
1795
|
-
return r(
|
|
1796
|
+
return r(N.Listbox, {
|
|
1796
1797
|
class: "max-h-60 overflow-y-auto"
|
|
1797
1798
|
});
|
|
1798
1799
|
}
|
|
@@ -1802,8 +1803,8 @@ function Ql(e) {
|
|
|
1802
1803
|
}
|
|
1803
1804
|
});
|
|
1804
1805
|
}
|
|
1805
|
-
var
|
|
1806
|
-
const
|
|
1806
|
+
var xn = /* @__PURE__ */ d('<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))">');
|
|
1807
|
+
const Ne = [{
|
|
1807
1808
|
angle: 22,
|
|
1808
1809
|
x: [0, 32],
|
|
1809
1810
|
y: [-6, 18]
|
|
@@ -1819,7 +1820,7 @@ const je = [{
|
|
|
1819
1820
|
angle: 202,
|
|
1820
1821
|
x: [62, 96],
|
|
1821
1822
|
y: [52, 80]
|
|
1822
|
-
}],
|
|
1823
|
+
}], vn = ["255,255,255", "180,210,255", "255,228,170", "210,185,255", "165,230,255"], pn = ["198,146,28", "176,120,18", "214,162,46", "160,110,28", "190,134,34"], $n = `<svg viewBox="0 0 24 82" width="100%" height="100%" style="display:block;overflow:visible">
|
|
1823
1824
|
<g class="rk-flame">
|
|
1824
1825
|
<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"/>
|
|
1825
1826
|
<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"/>
|
|
@@ -1830,82 +1831,82 @@ const je = [{
|
|
|
1830
1831
|
<path d="M9 26 L 4.6 34 L 9 31 Z" fill="#ef5a3a"/>
|
|
1831
1832
|
<path d="M15 26 L 19.4 34 L 15 31 Z" fill="#ef5a3a"/>
|
|
1832
1833
|
<circle cx="12" cy="19" r="2.3" fill="#8fd0ff" stroke="#2f6aa8" stroke-width="1"/>
|
|
1833
|
-
</svg>`,
|
|
1834
|
-
function
|
|
1835
|
-
const t = Math.random,
|
|
1834
|
+
</svg>`, yn = 66, wn = 7;
|
|
1835
|
+
function _n(e) {
|
|
1836
|
+
const t = Math.random, o = () => e[Math.floor(t() * e.length)];
|
|
1836
1837
|
let n = "";
|
|
1837
|
-
for (let
|
|
1838
|
-
const i = t() < 0.12,
|
|
1839
|
-
n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${
|
|
1838
|
+
for (let l = 0; l < yn; l++) {
|
|
1839
|
+
const i = t() < 0.12, c = i ? 3 + t() * 1.8 : 1.2 + t() * 1.8, u = i ? 0.85 + t() * 0.15 : 0.3 + t() * 0.55, m = i ? 6 + t() * 8 : 1.5 + t() * 4, s = o(), b = t() < 0.4 ? `animation:twinkle ${(2.6 + t() * 3.5).toFixed(1)}s ease-in-out ${(t() * 4).toFixed(1)}s infinite;` : "";
|
|
1840
|
+
n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${c.toFixed(1)}px;height:${c.toFixed(1)}px;border-radius:50%;background:rgba(${s},${u.toFixed(2)});box-shadow:0 0 ${m.toFixed(1)}px rgba(${s},${(u * 0.8).toFixed(2)});${b}"></span>`;
|
|
1840
1841
|
}
|
|
1841
|
-
for (let
|
|
1842
|
-
const i =
|
|
1843
|
-
n += `<span style="position:absolute;left:${
|
|
1842
|
+
for (let l = 0; l < wn; l++) {
|
|
1843
|
+
const i = o(), c = (1.8 + t() * 1.8).toFixed(1), u = (0.7 + t() * 0.3).toFixed(2), m = (4 + t() * 6).toFixed(1), s = (4 + t() * 86).toFixed(1), b = t() < 0.5, y = b ? "106%" : "-6%", M = b ? "-118vw" : "118vw", k = `${((t() * 2 - 1) * 16).toFixed(1)}vh`, E = 34 + t() * 34, P = (-t() * E).toFixed(1);
|
|
1844
|
+
n += `<span style="position:absolute;left:${y};top:${s}%;width:${c}px;height:${c}px;border-radius:50%;background:rgba(${i},${u});box-shadow:0 0 ${m}px rgba(${i},${(Number(u) * 0.8).toFixed(2)});--dx:${M};--dy:${k};animation:starDrift ${E.toFixed(1)}s linear ${P}s infinite;"></span>`;
|
|
1844
1845
|
}
|
|
1845
1846
|
return n;
|
|
1846
1847
|
}
|
|
1847
|
-
function
|
|
1848
|
+
function kn() {
|
|
1848
1849
|
let e, t;
|
|
1849
|
-
const
|
|
1850
|
+
const o = tt();
|
|
1850
1851
|
return pe(() => {
|
|
1851
|
-
const n =
|
|
1852
|
-
t && (t.innerHTML =
|
|
1853
|
-
}),
|
|
1854
|
-
const n = [],
|
|
1855
|
-
h.addEventListener(
|
|
1852
|
+
const n = o() === "light" ? pn : vn;
|
|
1853
|
+
t && (t.innerHTML = _n(n));
|
|
1854
|
+
}), Xe(() => {
|
|
1855
|
+
const n = [], l = [], i = (h, w, v, x) => {
|
|
1856
|
+
h.addEventListener(w, v, x), n.push(() => h.removeEventListener(w, v, x));
|
|
1856
1857
|
};
|
|
1857
|
-
let
|
|
1858
|
-
const
|
|
1859
|
-
|
|
1858
|
+
let c = 0, u = 0, m = 0;
|
|
1859
|
+
const s = () => {
|
|
1860
|
+
c = 0, t && (t.style.transform = `translate3d(${u.toFixed(1)}px, ${m.toFixed(1)}px, 0)`), e.querySelectorAll(".constellation").forEach((h) => {
|
|
1860
1861
|
h.style.transform = `translate3d(${(u * 1.8).toFixed(1)}px, ${(m * 1.8).toFixed(1)}px, 0)`;
|
|
1861
1862
|
});
|
|
1862
1863
|
};
|
|
1863
|
-
let b = null,
|
|
1864
|
-
const
|
|
1865
|
-
if (
|
|
1866
|
-
b === null && (b = h.gamma,
|
|
1867
|
-
const
|
|
1868
|
-
u =
|
|
1864
|
+
let b = null, y = null;
|
|
1865
|
+
const M = (h) => {
|
|
1866
|
+
if (we() || h.gamma == null || h.beta == null) return;
|
|
1867
|
+
b === null && (b = h.gamma, y = h.beta);
|
|
1868
|
+
const w = Math.max(-25, Math.min(25, h.gamma - b)), v = Math.max(-25, Math.min(25, h.beta - (y ?? 0)));
|
|
1869
|
+
u = w / 25 * 16, m = v / 25 * 16, c || (c = requestAnimationFrame(s));
|
|
1869
1870
|
}, k = window.DeviceOrientationEvent;
|
|
1870
1871
|
if (k)
|
|
1871
1872
|
if (typeof k.requestPermission == "function") {
|
|
1872
1873
|
let h = !1;
|
|
1873
|
-
const
|
|
1874
|
+
const w = () => {
|
|
1874
1875
|
var v;
|
|
1875
1876
|
h || (v = k.requestPermission) == null || v.call(k).then((x) => {
|
|
1876
|
-
x === "granted" && (h = !0, i(window, "deviceorientation",
|
|
1877
|
+
x === "granted" && (h = !0, i(window, "deviceorientation", M));
|
|
1877
1878
|
}).catch(() => {
|
|
1878
1879
|
});
|
|
1879
1880
|
};
|
|
1880
|
-
i(window, "click",
|
|
1881
|
+
i(window, "click", w), i(window, "touchend", w);
|
|
1881
1882
|
} else
|
|
1882
|
-
i(window, "deviceorientation",
|
|
1883
|
+
i(window, "deviceorientation", M);
|
|
1883
1884
|
n.push(() => {
|
|
1884
|
-
|
|
1885
|
+
c && cancelAnimationFrame(c);
|
|
1885
1886
|
});
|
|
1886
|
-
const
|
|
1887
|
-
const
|
|
1888
|
-
|
|
1889
|
-
const
|
|
1887
|
+
const E = (h, w, v, x, _, T) => {
|
|
1888
|
+
const p = document.createElement("div");
|
|
1889
|
+
p.className = "shooter", p.style.width = `${x}px`, p.style.left = h, p.style.top = w, e.appendChild(p);
|
|
1890
|
+
const G = p.animate([{
|
|
1890
1891
|
opacity: 0,
|
|
1891
1892
|
transform: `rotate(${v}deg) translateX(0px) scaleX(.4)`
|
|
1892
1893
|
}, {
|
|
1893
1894
|
opacity: 1,
|
|
1894
|
-
transform: `rotate(${v}deg) translateX(${
|
|
1895
|
+
transform: `rotate(${v}deg) translateX(${_ * 0.35}px) scaleX(1)`,
|
|
1895
1896
|
offset: 0.5
|
|
1896
1897
|
}, {
|
|
1897
1898
|
opacity: 0,
|
|
1898
|
-
transform: `rotate(${v}deg) translateX(${
|
|
1899
|
+
transform: `rotate(${v}deg) translateX(${_}px) scaleX(1)`
|
|
1899
1900
|
}], {
|
|
1900
1901
|
duration: T,
|
|
1901
1902
|
easing: "cubic-bezier(.3,0,.15,1)",
|
|
1902
1903
|
fill: "forwards"
|
|
1903
1904
|
});
|
|
1904
|
-
|
|
1905
|
-
},
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
const q = v * Math.PI / 180, f = Math.cos(q) *
|
|
1905
|
+
G.onfinish = () => p.remove(), l.push(window.setTimeout(() => p.remove(), T + 250));
|
|
1906
|
+
}, P = (h, w, v, x, _, T) => {
|
|
1907
|
+
const p = document.createElement("div"), G = x * (82 / 24);
|
|
1908
|
+
p.style.cssText = `position:absolute;left:${h};top:${w};width:${x.toFixed(0)}px;height:${G.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, p.innerHTML = $n, e.appendChild(p);
|
|
1909
|
+
const q = v * Math.PI / 180, f = Math.cos(q) * _, C = Math.sin(q) * _, R = v + 90, U = p.animate([{
|
|
1909
1910
|
opacity: 0,
|
|
1910
1911
|
transform: `translate(0px,0px) rotate(${R}deg) scale(.5)`
|
|
1911
1912
|
}, {
|
|
@@ -1924,11 +1925,11 @@ function $n() {
|
|
|
1924
1925
|
easing: "cubic-bezier(.25,0,.2,1)",
|
|
1925
1926
|
fill: "forwards"
|
|
1926
1927
|
});
|
|
1927
|
-
U.onfinish = () =>
|
|
1928
|
-
},
|
|
1928
|
+
U.onfinish = () => p.remove(), l.push(window.setTimeout(() => p.remove(), T + 250));
|
|
1929
|
+
}, V = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
|
|
1929
1930
|
if (i(document, "click", ((h) => {
|
|
1930
|
-
var
|
|
1931
|
-
(v = (
|
|
1931
|
+
var w, v;
|
|
1932
|
+
(v = (w = h.target) == null ? void 0 : w.closest) != null && v.call(w, V) || (o() === "light" ? P(
|
|
1932
1933
|
`${h.clientX}px`,
|
|
1933
1934
|
`${h.clientY}px`,
|
|
1934
1935
|
-90 + (Math.random() * 80 - 40),
|
|
@@ -1936,104 +1937,103 @@ function $n() {
|
|
|
1936
1937
|
16 + Math.random() * 10,
|
|
1937
1938
|
260 + Math.random() * 280,
|
|
1938
1939
|
950 + Math.random() * 700
|
|
1939
|
-
) :
|
|
1940
|
-
})), !
|
|
1940
|
+
) : E(`${h.clientX}px`, `${h.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
|
|
1941
|
+
})), !we()) {
|
|
1941
1942
|
const h = () => {
|
|
1942
|
-
if (
|
|
1943
|
-
|
|
1943
|
+
if (o() === "light") {
|
|
1944
|
+
P(`${(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);
|
|
1944
1945
|
return;
|
|
1945
1946
|
}
|
|
1946
|
-
const x =
|
|
1947
|
-
|
|
1948
|
-
},
|
|
1949
|
-
h(),
|
|
1947
|
+
const x = Ne[Math.floor(Math.random() * Ne.length)];
|
|
1948
|
+
E(`${x.x[0] + Math.random() * (x.x[1] - x.x[0])}vw`, `${x.y[0] + Math.random() * (x.y[1] - x.y[0])}vh`, x.angle + (Math.random() * 16 - 8), 90 + Math.random() * 90, 380 + Math.random() * 300, 850 + Math.random() * 550);
|
|
1949
|
+
}, w = () => {
|
|
1950
|
+
h(), l.push(window.setTimeout(w, 4500 + Math.random() * 6e3));
|
|
1950
1951
|
};
|
|
1951
|
-
|
|
1952
|
+
l.push(window.setTimeout(w, 1500));
|
|
1952
1953
|
const v = e.querySelector("#cursorGlow");
|
|
1953
1954
|
i(document, "pointermove", ((x) => {
|
|
1954
|
-
var
|
|
1955
|
+
var G, q;
|
|
1955
1956
|
v && (v.style.opacity = "1", v.style.left = `${x.clientX}px`, v.style.top = `${x.clientY}px`);
|
|
1956
|
-
const
|
|
1957
|
+
const _ = x.target, T = (G = _ == null ? void 0 : _.closest) == null ? void 0 : G.call(_, ".magnetic");
|
|
1957
1958
|
if (T) {
|
|
1958
1959
|
const f = T.getBoundingClientRect(), C = (x.clientX - (f.left + f.width / 2)) / f.width, R = (x.clientY - (f.top + f.height / 2)) / f.height;
|
|
1959
1960
|
T.style.transform = `translate(${(C * 7).toFixed(1)}px, ${(R * 7).toFixed(1)}px)`;
|
|
1960
1961
|
}
|
|
1961
|
-
const
|
|
1962
|
-
if (
|
|
1963
|
-
const f =
|
|
1964
|
-
|
|
1962
|
+
const p = (q = _ == null ? void 0 : _.closest) == null ? void 0 : q.call(_, ".glow-edge");
|
|
1963
|
+
if (p) {
|
|
1964
|
+
const f = p.getBoundingClientRect();
|
|
1965
|
+
p.style.setProperty("--mx", `${x.clientX - f.left}px`), p.style.setProperty("--my", `${x.clientY - f.top}px`);
|
|
1965
1966
|
}
|
|
1966
1967
|
})), i(window, "pointerleave", (() => {
|
|
1967
1968
|
v && (v.style.opacity = "0");
|
|
1968
1969
|
})), i(document, "pointerout", ((x) => {
|
|
1969
|
-
var T,
|
|
1970
|
-
const
|
|
1971
|
-
|
|
1970
|
+
var T, p;
|
|
1971
|
+
const _ = (p = (T = x.target) == null ? void 0 : T.closest) == null ? void 0 : p.call(T, ".magnetic");
|
|
1972
|
+
_ && (_.style.transform = "");
|
|
1972
1973
|
}));
|
|
1973
1974
|
}
|
|
1974
|
-
|
|
1975
|
-
n.forEach((h) => h()),
|
|
1975
|
+
_e(() => {
|
|
1976
|
+
n.forEach((h) => h()), l.forEach((h) => clearTimeout(h));
|
|
1976
1977
|
});
|
|
1977
1978
|
}), (() => {
|
|
1978
|
-
var n =
|
|
1979
|
-
|
|
1980
|
-
var b =
|
|
1979
|
+
var n = xn(), l = n.firstChild, i = l.nextSibling, c = i.nextSibling, u = c.nextSibling, m = u.nextSibling, s = m.nextSibling;
|
|
1980
|
+
s.firstChild;
|
|
1981
|
+
var b = s.nextSibling;
|
|
1981
1982
|
b.firstChild;
|
|
1982
|
-
var
|
|
1983
|
-
|
|
1984
|
-
var
|
|
1985
|
-
typeof
|
|
1986
|
-
var
|
|
1987
|
-
return typeof
|
|
1983
|
+
var y = b.nextSibling;
|
|
1984
|
+
y.firstChild;
|
|
1985
|
+
var M = y.nextSibling, k = M.nextSibling, E = e;
|
|
1986
|
+
typeof E == "function" ? Y(E, n) : e = n;
|
|
1987
|
+
var P = t;
|
|
1988
|
+
return typeof P == "function" ? Y(P, c) : t = c, a(k, r(Lt, {
|
|
1988
1989
|
style: {
|
|
1989
1990
|
width: "28px",
|
|
1990
1991
|
height: "28px",
|
|
1991
|
-
color: "hsl(
|
|
1992
|
+
color: "color-mix(in srgb, hsl(var(--accent)) 55%, white)",
|
|
1992
1993
|
opacity: ".85"
|
|
1993
1994
|
}
|
|
1994
1995
|
})), n;
|
|
1995
1996
|
})();
|
|
1996
1997
|
}
|
|
1997
|
-
var
|
|
1998
|
-
function
|
|
1998
|
+
var Cn = /* @__PURE__ */ d('<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">'), Sn = /* @__PURE__ */ d('<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">'), Tn = /* @__PURE__ */ d('<div class="flex justify-center py-24 text-muted-foreground">');
|
|
1999
|
+
function Mn(e, t) {
|
|
1999
2000
|
return (() => {
|
|
2000
|
-
var
|
|
2001
|
-
return a(
|
|
2001
|
+
var o = Cn(), n = o.firstChild, l = n.nextSibling, i = l.nextSibling;
|
|
2002
|
+
return a(l, () => String((e == null ? void 0 : e.message) ?? e)), a(i, r(ze, {
|
|
2002
2003
|
variant: "outline",
|
|
2003
2004
|
onClick: t,
|
|
2004
2005
|
children: "Retry"
|
|
2005
|
-
}), null), a(i, r(
|
|
2006
|
+
}), null), a(i, r(ze, {
|
|
2006
2007
|
onClick: () => window.location.reload(),
|
|
2007
2008
|
children: "Reload"
|
|
2008
|
-
}), null),
|
|
2009
|
+
}), null), o;
|
|
2009
2010
|
})();
|
|
2010
2011
|
}
|
|
2011
|
-
function
|
|
2012
|
-
const t = (
|
|
2012
|
+
function vl(e) {
|
|
2013
|
+
const t = (o, n) => (e.errorFallback ?? Mn)(o, n);
|
|
2013
2014
|
return (() => {
|
|
2014
|
-
var
|
|
2015
|
-
return a(
|
|
2015
|
+
var o = Sn(), n = o.firstChild, l = n.firstChild, i = l.firstChild;
|
|
2016
|
+
return a(o, r($, {
|
|
2016
2017
|
get when() {
|
|
2017
2018
|
return e.background !== null;
|
|
2018
2019
|
},
|
|
2019
2020
|
fallback: null,
|
|
2020
2021
|
get children() {
|
|
2021
|
-
return e.background ?? r(
|
|
2022
|
+
return e.background ?? r(kn, {});
|
|
2022
2023
|
}
|
|
2023
|
-
}), n), a(n, () => e.sidebar,
|
|
2024
|
+
}), n), a(n, () => e.sidebar, l), a(l, () => e.banner, i), a(l, () => e.topbar, i), a(i, r(xt, {
|
|
2024
2025
|
fallback: t,
|
|
2025
2026
|
get children() {
|
|
2026
|
-
return r(
|
|
2027
|
+
return r(vt, {
|
|
2027
2028
|
get fallback() {
|
|
2028
2029
|
return (() => {
|
|
2029
|
-
var
|
|
2030
|
-
return a(
|
|
2030
|
+
var c = Tn();
|
|
2031
|
+
return a(c, r(Vr, {})), c;
|
|
2031
2032
|
})();
|
|
2032
2033
|
},
|
|
2033
2034
|
get children() {
|
|
2034
|
-
return r(
|
|
2035
|
+
return r(Nt, {
|
|
2035
2036
|
name: "page",
|
|
2036
|
-
mode: "outin",
|
|
2037
2037
|
get children() {
|
|
2038
2038
|
return e.children;
|
|
2039
2039
|
}
|
|
@@ -2041,136 +2041,426 @@ function eo(e) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
|
-
})), S((
|
|
2044
|
+
})), S((c) => le(i, "max-width", e.maxWidth ?? "1400px")), o;
|
|
2045
2045
|
})();
|
|
2046
2046
|
}
|
|
2047
|
-
var
|
|
2048
|
-
function
|
|
2049
|
-
const
|
|
2047
|
+
var En = /* @__PURE__ */ d('<div id=scenery aria-hidden=true><div class=themed-sky></div><div class="absolute inset-0">');
|
|
2048
|
+
function Fn(e, t, o) {
|
|
2049
|
+
const n = Math.random, l = () => e[Math.floor(n() * e.length)];
|
|
2050
|
+
let i = "";
|
|
2051
|
+
for (let c = 0; c < t; c++) {
|
|
2052
|
+
const u = 22 + n() * 40, m = 0.08 + n() * 0.16, s = (n() * 100).toFixed(2), b = (n() * 100).toFixed(2), y = (n() * 40 - 20).toFixed(1), M = (6 + n() * 8).toFixed(1), k = (-n() * 8).toFixed(1), E = o ? `--r:${y}deg;--dur:${M}s;--delay:${k}s;` : `transform:rotate(${y}deg);animation:none;`;
|
|
2053
|
+
i += `<span class="motif" style="left:${s}%;top:${b}%;font-size:${u.toFixed(0)}px;opacity:${m.toFixed(2)};${E}">${l()}</span>`;
|
|
2054
|
+
}
|
|
2055
|
+
return i;
|
|
2056
|
+
}
|
|
2057
|
+
function pl(e) {
|
|
2058
|
+
let t;
|
|
2059
|
+
return pe(() => {
|
|
2060
|
+
t.innerHTML = Fn(e.motifs, e.count ?? 16, !we());
|
|
2061
|
+
}), (() => {
|
|
2062
|
+
var o = En(), n = o.firstChild, l = n.nextSibling, i = t;
|
|
2063
|
+
return typeof i == "function" ? Y(i, l) : t = l, o;
|
|
2064
|
+
})();
|
|
2065
|
+
}
|
|
2066
|
+
var Ln = /* @__PURE__ */ d('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground">');
|
|
2067
|
+
function $l(e) {
|
|
2068
|
+
const t = tt();
|
|
2050
2069
|
return (() => {
|
|
2051
|
-
var
|
|
2052
|
-
return
|
|
2070
|
+
var o = Ln();
|
|
2071
|
+
return wt(o, "click", qt, !0), a(o, r($, {
|
|
2053
2072
|
get when() {
|
|
2054
2073
|
return t() === "dark";
|
|
2055
2074
|
},
|
|
2056
2075
|
get fallback() {
|
|
2057
|
-
return r(
|
|
2076
|
+
return r(At, {
|
|
2058
2077
|
class: "h-[18px] w-[18px]"
|
|
2059
2078
|
});
|
|
2060
2079
|
},
|
|
2061
2080
|
get children() {
|
|
2062
|
-
return r(
|
|
2081
|
+
return r(It, {
|
|
2063
2082
|
class: "h-[18px] w-[18px]"
|
|
2064
2083
|
});
|
|
2065
2084
|
}
|
|
2066
2085
|
})), S((n) => {
|
|
2067
|
-
var
|
|
2068
|
-
return
|
|
2086
|
+
var l = e.label ?? "Toggle theme", i = e.label ?? "Toggle theme";
|
|
2087
|
+
return l !== n.e && B(o, "aria-label", n.e = l), i !== n.t && B(o, "title", n.t = i), n;
|
|
2069
2088
|
}, {
|
|
2070
2089
|
e: void 0,
|
|
2071
2090
|
t: void 0
|
|
2072
|
-
}),
|
|
2091
|
+
}), o;
|
|
2073
2092
|
})();
|
|
2074
2093
|
}
|
|
2075
2094
|
ee(["click"]);
|
|
2076
|
-
var
|
|
2077
|
-
function
|
|
2078
|
-
const t =
|
|
2095
|
+
var In = /* @__PURE__ */ d('<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">');
|
|
2096
|
+
function yl(e) {
|
|
2097
|
+
const t = Zt();
|
|
2079
2098
|
return (() => {
|
|
2080
|
-
var
|
|
2081
|
-
return
|
|
2099
|
+
var o = In();
|
|
2100
|
+
return o.$$click = () => Wt(!t()), a(o, r(Dt, {
|
|
2082
2101
|
class: "h-[18px] w-[18px]"
|
|
2083
2102
|
})), S((n) => {
|
|
2084
|
-
var
|
|
2085
|
-
return
|
|
2103
|
+
var l = t(), i = e.label ?? "Visual effects", c = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
|
|
2104
|
+
return l !== n.e && B(o, "aria-pressed", n.e = l), i !== n.t && B(o, "aria-label", n.t = i), c !== n.a && B(o, "title", n.a = c), n;
|
|
2086
2105
|
}, {
|
|
2087
2106
|
e: void 0,
|
|
2088
2107
|
t: void 0,
|
|
2089
2108
|
a: void 0
|
|
2090
|
-
}),
|
|
2109
|
+
}), o;
|
|
2091
2110
|
})();
|
|
2092
2111
|
}
|
|
2093
2112
|
ee(["click"]);
|
|
2094
|
-
var
|
|
2095
|
-
function
|
|
2113
|
+
var An = /* @__PURE__ */ d('<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">');
|
|
2114
|
+
function wl(e) {
|
|
2096
2115
|
return (() => {
|
|
2097
|
-
var t =
|
|
2098
|
-
return a(n, () => e.title), a(
|
|
2116
|
+
var t = An(), o = t.firstChild, n = o.firstChild, l = o.nextSibling;
|
|
2117
|
+
return a(n, () => e.title), a(l, () => e.children), t;
|
|
2099
2118
|
})();
|
|
2100
2119
|
}
|
|
2101
|
-
const
|
|
2120
|
+
const Dn = [
|
|
2121
|
+
"background",
|
|
2122
|
+
"foreground",
|
|
2123
|
+
"card",
|
|
2124
|
+
"card-foreground",
|
|
2125
|
+
"muted",
|
|
2126
|
+
"muted-foreground",
|
|
2127
|
+
"border",
|
|
2128
|
+
"input",
|
|
2129
|
+
"primary",
|
|
2130
|
+
"primary-foreground",
|
|
2131
|
+
"accent",
|
|
2132
|
+
"accent-foreground",
|
|
2133
|
+
"ring",
|
|
2134
|
+
"destructive",
|
|
2135
|
+
"destructive-foreground"
|
|
2136
|
+
], Fe = {
|
|
2137
|
+
name: "space",
|
|
2138
|
+
label: "Space",
|
|
2139
|
+
description: "The signature spatial-glass look: deep night sky and electric blue.",
|
|
2140
|
+
icon: "🚀",
|
|
2141
|
+
dark: {
|
|
2142
|
+
background: "222 47% 7%",
|
|
2143
|
+
foreground: "213 31% 91%",
|
|
2144
|
+
card: "222 40% 11%",
|
|
2145
|
+
"card-foreground": "213 31% 91%",
|
|
2146
|
+
muted: "217 33% 17%",
|
|
2147
|
+
"muted-foreground": "215 25% 75%",
|
|
2148
|
+
border: "217 30% 22%",
|
|
2149
|
+
input: "217 30% 22%",
|
|
2150
|
+
primary: "217 91% 52%",
|
|
2151
|
+
"primary-foreground": "0 0% 100%",
|
|
2152
|
+
accent: "199 89% 55%",
|
|
2153
|
+
"accent-foreground": "0 0% 100%",
|
|
2154
|
+
ring: "217 91% 52%",
|
|
2155
|
+
destructive: "0 72% 52%",
|
|
2156
|
+
"destructive-foreground": "0 0% 100%"
|
|
2157
|
+
},
|
|
2158
|
+
light: {
|
|
2159
|
+
background: "214 32% 95%",
|
|
2160
|
+
foreground: "222 47% 11%",
|
|
2161
|
+
card: "0 0% 100%",
|
|
2162
|
+
"card-foreground": "222 47% 11%",
|
|
2163
|
+
muted: "214 30% 92%",
|
|
2164
|
+
"muted-foreground": "215 22% 38%",
|
|
2165
|
+
border: "214 24% 84%",
|
|
2166
|
+
input: "214 32% 91%",
|
|
2167
|
+
primary: "217 91% 52%",
|
|
2168
|
+
"primary-foreground": "0 0% 100%",
|
|
2169
|
+
accent: "199 89% 48%",
|
|
2170
|
+
"accent-foreground": "0 0% 100%",
|
|
2171
|
+
ring: "217 91% 52%",
|
|
2172
|
+
destructive: "0 72% 50%",
|
|
2173
|
+
"destructive-foreground": "0 0% 100%"
|
|
2174
|
+
}
|
|
2175
|
+
}, Rn = {
|
|
2176
|
+
name: "dino",
|
|
2177
|
+
label: "Dino",
|
|
2178
|
+
description: "Jurassic jungle: mossy greens with a warm amber accent.",
|
|
2179
|
+
icon: "🦖",
|
|
2180
|
+
motifs: ["🦕", "🦖", "🌿", "🍃", "🦴", "🌋", "🥚", "🌴"],
|
|
2181
|
+
dark: {
|
|
2182
|
+
background: "160 30% 8%",
|
|
2183
|
+
foreground: "140 18% 90%",
|
|
2184
|
+
card: "160 28% 12%",
|
|
2185
|
+
"card-foreground": "140 18% 90%",
|
|
2186
|
+
muted: "160 20% 18%",
|
|
2187
|
+
"muted-foreground": "140 14% 74%",
|
|
2188
|
+
border: "160 20% 24%",
|
|
2189
|
+
input: "160 20% 24%",
|
|
2190
|
+
primary: "140 60% 32%",
|
|
2191
|
+
"primary-foreground": "0 0% 100%",
|
|
2192
|
+
accent: "35 90% 52%",
|
|
2193
|
+
"accent-foreground": "40 45% 12%",
|
|
2194
|
+
ring: "140 60% 32%",
|
|
2195
|
+
destructive: "0 72% 52%",
|
|
2196
|
+
"destructive-foreground": "0 0% 100%"
|
|
2197
|
+
},
|
|
2198
|
+
light: {
|
|
2199
|
+
background: "90 32% 94%",
|
|
2200
|
+
foreground: "160 32% 13%",
|
|
2201
|
+
card: "80 30% 99%",
|
|
2202
|
+
"card-foreground": "160 32% 13%",
|
|
2203
|
+
muted: "90 24% 88%",
|
|
2204
|
+
"muted-foreground": "160 18% 34%",
|
|
2205
|
+
border: "90 22% 79%",
|
|
2206
|
+
input: "90 24% 88%",
|
|
2207
|
+
primary: "140 55% 32%",
|
|
2208
|
+
"primary-foreground": "0 0% 100%",
|
|
2209
|
+
accent: "35 90% 44%",
|
|
2210
|
+
"accent-foreground": "40 45% 12%",
|
|
2211
|
+
ring: "140 55% 32%",
|
|
2212
|
+
destructive: "0 72% 48%",
|
|
2213
|
+
"destructive-foreground": "0 0% 100%"
|
|
2214
|
+
}
|
|
2215
|
+
}, zn = {
|
|
2216
|
+
name: "doctor",
|
|
2217
|
+
label: "Doctor",
|
|
2218
|
+
description: "Clinical and calm: teal and clean blues on crisp white.",
|
|
2219
|
+
icon: "🩺",
|
|
2220
|
+
motifs: ["🩺", "💊", "🩹", "🧬", "➕", "🫀", "🌡️", "💉"],
|
|
2221
|
+
dark: {
|
|
2222
|
+
background: "205 40% 9%",
|
|
2223
|
+
foreground: "200 24% 92%",
|
|
2224
|
+
card: "205 36% 13%",
|
|
2225
|
+
"card-foreground": "200 24% 92%",
|
|
2226
|
+
muted: "205 25% 19%",
|
|
2227
|
+
"muted-foreground": "200 16% 74%",
|
|
2228
|
+
border: "205 22% 25%",
|
|
2229
|
+
input: "205 22% 25%",
|
|
2230
|
+
primary: "190 85% 32%",
|
|
2231
|
+
"primary-foreground": "0 0% 100%",
|
|
2232
|
+
accent: "210 90% 46%",
|
|
2233
|
+
"accent-foreground": "0 0% 100%",
|
|
2234
|
+
ring: "190 85% 32%",
|
|
2235
|
+
destructive: "0 72% 52%",
|
|
2236
|
+
"destructive-foreground": "0 0% 100%"
|
|
2237
|
+
},
|
|
2238
|
+
light: {
|
|
2239
|
+
background: "200 40% 97%",
|
|
2240
|
+
foreground: "205 45% 14%",
|
|
2241
|
+
card: "0 0% 100%",
|
|
2242
|
+
"card-foreground": "205 45% 14%",
|
|
2243
|
+
muted: "200 30% 92%",
|
|
2244
|
+
"muted-foreground": "205 20% 36%",
|
|
2245
|
+
border: "200 25% 84%",
|
|
2246
|
+
input: "200 30% 91%",
|
|
2247
|
+
primary: "190 90% 30%",
|
|
2248
|
+
"primary-foreground": "0 0% 100%",
|
|
2249
|
+
accent: "210 90% 46%",
|
|
2250
|
+
"accent-foreground": "0 0% 100%",
|
|
2251
|
+
ring: "190 90% 30%",
|
|
2252
|
+
destructive: "0 72% 48%",
|
|
2253
|
+
"destructive-foreground": "0 0% 100%"
|
|
2254
|
+
}
|
|
2255
|
+
}, On = {
|
|
2256
|
+
name: "scientist",
|
|
2257
|
+
label: "Scientist",
|
|
2258
|
+
description: "Lab-grade violet with a bright cyan reaction accent.",
|
|
2259
|
+
icon: "🔬",
|
|
2260
|
+
motifs: ["🔬", "🧪", "⚗️", "🧫", "🧠", "🔭", "🧬", "⚛️"],
|
|
2261
|
+
dark: {
|
|
2262
|
+
background: "250 30% 9%",
|
|
2263
|
+
foreground: "250 18% 92%",
|
|
2264
|
+
card: "250 28% 13%",
|
|
2265
|
+
"card-foreground": "250 18% 92%",
|
|
2266
|
+
muted: "250 20% 19%",
|
|
2267
|
+
"muted-foreground": "250 14% 74%",
|
|
2268
|
+
border: "250 18% 26%",
|
|
2269
|
+
input: "250 18% 26%",
|
|
2270
|
+
primary: "265 65% 52%",
|
|
2271
|
+
"primary-foreground": "0 0% 100%",
|
|
2272
|
+
accent: "180 80% 45%",
|
|
2273
|
+
"accent-foreground": "190 45% 10%",
|
|
2274
|
+
ring: "265 65% 52%",
|
|
2275
|
+
destructive: "0 72% 52%",
|
|
2276
|
+
"destructive-foreground": "0 0% 100%"
|
|
2277
|
+
},
|
|
2278
|
+
light: {
|
|
2279
|
+
background: "250 40% 97%",
|
|
2280
|
+
foreground: "255 42% 14%",
|
|
2281
|
+
card: "0 0% 100%",
|
|
2282
|
+
"card-foreground": "255 42% 14%",
|
|
2283
|
+
muted: "250 30% 93%",
|
|
2284
|
+
"muted-foreground": "255 18% 38%",
|
|
2285
|
+
border: "250 25% 85%",
|
|
2286
|
+
input: "250 30% 92%",
|
|
2287
|
+
primary: "265 62% 48%",
|
|
2288
|
+
"primary-foreground": "0 0% 100%",
|
|
2289
|
+
accent: "185 80% 34%",
|
|
2290
|
+
"accent-foreground": "0 0% 100%",
|
|
2291
|
+
ring: "265 62% 48%",
|
|
2292
|
+
destructive: "0 72% 48%",
|
|
2293
|
+
"destructive-foreground": "0 0% 100%"
|
|
2294
|
+
}
|
|
2295
|
+
}, Pn = {
|
|
2296
|
+
name: "soccer",
|
|
2297
|
+
label: "Soccer",
|
|
2298
|
+
description: "Match-day pitch: vivid grass green and fresh lime.",
|
|
2299
|
+
icon: "⚽",
|
|
2300
|
+
motifs: ["⚽", "🥅", "🏆", "🚩", "👟", "🧤", "🟨", "🟥"],
|
|
2301
|
+
dark: {
|
|
2302
|
+
background: "140 35% 8%",
|
|
2303
|
+
foreground: "120 14% 92%",
|
|
2304
|
+
card: "140 30% 12%",
|
|
2305
|
+
"card-foreground": "120 14% 92%",
|
|
2306
|
+
muted: "140 22% 18%",
|
|
2307
|
+
"muted-foreground": "120 12% 74%",
|
|
2308
|
+
border: "140 20% 24%",
|
|
2309
|
+
input: "140 20% 24%",
|
|
2310
|
+
primary: "142 72% 31%",
|
|
2311
|
+
"primary-foreground": "0 0% 100%",
|
|
2312
|
+
accent: "90 70% 48%",
|
|
2313
|
+
"accent-foreground": "100 45% 10%",
|
|
2314
|
+
ring: "142 72% 31%",
|
|
2315
|
+
destructive: "0 72% 52%",
|
|
2316
|
+
"destructive-foreground": "0 0% 100%"
|
|
2317
|
+
},
|
|
2318
|
+
light: {
|
|
2319
|
+
background: "120 40% 96%",
|
|
2320
|
+
foreground: "140 40% 12%",
|
|
2321
|
+
card: "0 0% 100%",
|
|
2322
|
+
"card-foreground": "140 40% 12%",
|
|
2323
|
+
muted: "120 28% 90%",
|
|
2324
|
+
"muted-foreground": "140 18% 34%",
|
|
2325
|
+
border: "120 22% 81%",
|
|
2326
|
+
input: "120 28% 90%",
|
|
2327
|
+
primary: "142 68% 31%",
|
|
2328
|
+
"primary-foreground": "0 0% 100%",
|
|
2329
|
+
accent: "90 60% 40%",
|
|
2330
|
+
"accent-foreground": "100 45% 10%",
|
|
2331
|
+
ring: "142 68% 31%",
|
|
2332
|
+
destructive: "0 72% 48%",
|
|
2333
|
+
"destructive-foreground": "0 0% 100%"
|
|
2334
|
+
}
|
|
2335
|
+
}, jn = [Fe, Rn, zn, On, Pn], st = "a4ui-theme-name", Ve = "a4ui-theme", ut = (e) => jn.find((t) => t.name === e);
|
|
2336
|
+
function Ye(e) {
|
|
2337
|
+
return Dn.map((t) => ` --${t}: ${e[t]};`).join(`
|
|
2338
|
+
`);
|
|
2339
|
+
}
|
|
2340
|
+
function Bn(e) {
|
|
2341
|
+
return `:root {
|
|
2342
|
+
${Ye(e.dark)}
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
:root[data-theme='light'] {
|
|
2346
|
+
${Ye(e.light)}
|
|
2347
|
+
}`;
|
|
2348
|
+
}
|
|
2349
|
+
function _l(e) {
|
|
2350
|
+
return { dark: e.dark, light: e.light };
|
|
2351
|
+
}
|
|
2352
|
+
const [kl, Nn] = j(Fe);
|
|
2353
|
+
function Vn(e) {
|
|
2354
|
+
if (typeof document > "u") return;
|
|
2355
|
+
let t = document.getElementById(Ve);
|
|
2356
|
+
t || (t = document.createElement("style"), t.id = Ve, document.head.appendChild(t)), t.textContent = Bn(e);
|
|
2357
|
+
}
|
|
2358
|
+
function Yn(e) {
|
|
2359
|
+
const t = typeof e == "string" ? ut(e) : e;
|
|
2360
|
+
if (t && (Vn(t), Nn(t), typeof localStorage < "u"))
|
|
2361
|
+
try {
|
|
2362
|
+
localStorage.setItem(st, t.name);
|
|
2363
|
+
} catch {
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
function Cl() {
|
|
2367
|
+
if (typeof document > "u") return;
|
|
2368
|
+
let e = null;
|
|
2369
|
+
if (typeof localStorage < "u")
|
|
2370
|
+
try {
|
|
2371
|
+
e = localStorage.getItem(st);
|
|
2372
|
+
} catch {
|
|
2373
|
+
e = null;
|
|
2374
|
+
}
|
|
2375
|
+
Yn(e && ut(e) || Fe);
|
|
2376
|
+
}
|
|
2377
|
+
const Sl = "0.4.0";
|
|
2102
2378
|
export {
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2379
|
+
Sl as A4UI_VERSION,
|
|
2380
|
+
So as Accordion,
|
|
2381
|
+
nl as Alert,
|
|
2382
|
+
hl as AlertDialog,
|
|
2383
|
+
vl as AppShell,
|
|
2384
|
+
ol as Avatar,
|
|
2385
|
+
To as Badge,
|
|
2386
|
+
ml as Breadcrumb,
|
|
2387
|
+
ze as Button,
|
|
2388
|
+
gr as Card,
|
|
2389
|
+
fr as CardContent,
|
|
2390
|
+
Mo as CardHeader,
|
|
2391
|
+
Eo as CardTitle,
|
|
2392
|
+
Fo as Checkbox,
|
|
2393
|
+
xl as Combobox,
|
|
2394
|
+
bl as ContextMenu,
|
|
2395
|
+
Lo as DateField,
|
|
2396
|
+
Io as Drawer,
|
|
2397
|
+
Ao as Dropdown,
|
|
2398
|
+
Do as Dropzone,
|
|
2399
|
+
yl as EffectsToggle,
|
|
2400
|
+
rl as HoverCard,
|
|
2401
|
+
Ro as Input,
|
|
2402
|
+
cl as Meter,
|
|
2403
|
+
zo as Modal,
|
|
2404
|
+
wl as NavGroup,
|
|
2405
|
+
sl as NumberInput,
|
|
2406
|
+
Oo as PageHeader,
|
|
2407
|
+
Po as Pagination,
|
|
2408
|
+
tl as Popover,
|
|
2409
|
+
il as Progress,
|
|
2410
|
+
Wo as RadioGroup,
|
|
2411
|
+
fl as SegmentedControl,
|
|
2412
|
+
jo as Select,
|
|
2413
|
+
al as Separator,
|
|
2414
|
+
ll as Skeleton,
|
|
2415
|
+
dl as Slider,
|
|
2416
|
+
kn as SpaceBackground,
|
|
2417
|
+
Vr as Spinner,
|
|
2418
|
+
Bo as Stat,
|
|
2419
|
+
Jo as Switch,
|
|
2420
|
+
Dn as TOKEN_ORDER,
|
|
2421
|
+
No as Table,
|
|
2422
|
+
Yo as TableBody,
|
|
2423
|
+
Xo as TableCell,
|
|
2424
|
+
Vo as TableHead,
|
|
2425
|
+
Ho as TableHeadCell,
|
|
2426
|
+
Go as TableRow,
|
|
2427
|
+
Uo as Tabs,
|
|
2428
|
+
Qo as Textarea,
|
|
2429
|
+
$l as ThemeToggle,
|
|
2430
|
+
pl as ThemedScenery,
|
|
2431
|
+
Zo as Toaster,
|
|
2432
|
+
ul as Toggle,
|
|
2433
|
+
gl as ToggleGroup,
|
|
2434
|
+
el as Tooltip,
|
|
2435
|
+
qo as VirtualList,
|
|
2436
|
+
kl as activeTheme,
|
|
2437
|
+
We as applyTheme,
|
|
2438
|
+
Vn as applyThemeDefinition,
|
|
2159
2439
|
g as cn,
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
Jt as
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2440
|
+
rr as createCountUp,
|
|
2441
|
+
Rn as dino,
|
|
2442
|
+
zn as doctor,
|
|
2443
|
+
Cl as initTheme,
|
|
2444
|
+
Jt as isCalm,
|
|
2445
|
+
we as motionReduced,
|
|
2446
|
+
it as prefersReducedMotion,
|
|
2447
|
+
nr as remeasureAfterLayout,
|
|
2448
|
+
On as scientist,
|
|
2449
|
+
Yn as selectTheme,
|
|
2450
|
+
Wt as setEffects,
|
|
2451
|
+
ko as setMotionForced,
|
|
2452
|
+
Gt as setTheme,
|
|
2453
|
+
Pn as soccer,
|
|
2454
|
+
Fe as space,
|
|
2455
|
+
Yt as storedTheme,
|
|
2456
|
+
Bn as themeToCss,
|
|
2457
|
+
_l as themeToJson,
|
|
2458
|
+
jn as themes,
|
|
2459
|
+
Ko as toast,
|
|
2460
|
+
qt as toggleTheme,
|
|
2461
|
+
Ht as toggled,
|
|
2462
|
+
Zt as useEffects,
|
|
2463
|
+
Co as useMediaQuery,
|
|
2464
|
+
_o as useMotionForced,
|
|
2465
|
+
tt as useTheme
|
|
2176
2466
|
};
|