@a4ui/core 0.3.1 → 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 +20 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1000 -711
- package/dist/layout/ThemedScenery.d.ts +20 -0
- package/dist/styles.css +70 -11
- package/dist/themes/index.d.ts +34 -0
- package/dist/themes/palettes.d.ts +42 -0
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { createSignal as
|
|
4
|
-
import { createComponent as 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
53
|
if (typeof document > "u") return;
|
|
54
54
|
const t = document.documentElement;
|
|
55
55
|
e === "light" ? t.setAttribute("data-theme", "light") : t.removeAttribute("data-theme");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Gt(e) {
|
|
58
58
|
var t;
|
|
59
|
-
(t =
|
|
59
|
+
(t = Je()) == null || t.setItem(Ze, e), We(e);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ht(e) {
|
|
62
62
|
return e === "dark" ? "light" : "dark";
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
const [
|
|
67
|
-
function
|
|
68
|
-
return
|
|
64
|
+
const Qe = Yt();
|
|
65
|
+
We(Qe);
|
|
66
|
+
const [et, Xt] = j(Qe);
|
|
67
|
+
function tt() {
|
|
68
|
+
return et;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const e =
|
|
72
|
-
|
|
70
|
+
function qt() {
|
|
71
|
+
const e = Ht(et());
|
|
72
|
+
Gt(e), Xt(e);
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
function
|
|
74
|
+
const rt = "a4ui-effects";
|
|
75
|
+
function nt() {
|
|
76
76
|
try {
|
|
77
77
|
return window.localStorage;
|
|
78
78
|
} catch {
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ut() {
|
|
83
83
|
var t;
|
|
84
84
|
try {
|
|
85
85
|
if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
|
-
const e = (t =
|
|
88
|
+
const e = (t = nt()) == null ? void 0 : t.getItem(rt);
|
|
89
89
|
return e === null ? !0 : e === "1";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ot(e) {
|
|
92
92
|
typeof document > "u" || document.documentElement.classList.toggle("calm", !e);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
const [
|
|
97
|
-
function
|
|
98
|
-
return
|
|
94
|
+
const lt = Ut();
|
|
95
|
+
ot(lt);
|
|
96
|
+
const [at, Kt] = j(lt);
|
|
97
|
+
function Zt() {
|
|
98
|
+
return at;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return !
|
|
100
|
+
function Jt() {
|
|
101
|
+
return !at();
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Wt(e) {
|
|
104
104
|
var t;
|
|
105
|
-
(t =
|
|
105
|
+
(t = nt()) == null || t.setItem(rt, e ? "1" : "0"), ot(e), Kt(e);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
function
|
|
109
|
-
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;
|
|
110
110
|
}
|
|
111
|
-
const
|
|
112
|
-
function
|
|
111
|
+
const ct = "a4ui-motion-forced";
|
|
112
|
+
function dt() {
|
|
113
113
|
try {
|
|
114
114
|
return window.localStorage;
|
|
115
115
|
} catch {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
const [Me,
|
|
121
|
-
typeof document < "u" && document.documentElement.classList.toggle("force-motion",
|
|
122
|
-
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() {
|
|
123
123
|
return Me;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function ko(e) {
|
|
126
126
|
var t;
|
|
127
|
-
(t =
|
|
127
|
+
(t = dt()) == null || t.setItem(ct, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), er(e);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function we() {
|
|
130
|
+
return Jt() || it() && !Me();
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
function
|
|
134
|
-
const [
|
|
135
|
-
let
|
|
132
|
+
const tr = (e) => 1 - (1 - e) ** 3;
|
|
133
|
+
function rr(e, t = 600) {
|
|
134
|
+
const [o, n] = j(0);
|
|
135
|
+
let l;
|
|
136
136
|
return pe(() => {
|
|
137
137
|
const i = e();
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (we()) {
|
|
139
|
+
l !== void 0 && cancelAnimationFrame(l), n(i);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
const u = performance.now(), m = (
|
|
146
|
-
const b =
|
|
147
|
-
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;
|
|
148
148
|
};
|
|
149
|
-
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
|
-
}),
|
|
149
|
+
l = requestAnimationFrame(m);
|
|
150
|
+
}), _e(() => {
|
|
151
|
+
l !== void 0 && cancelAnimationFrame(l);
|
|
152
|
+
}), o;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
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);
|
|
156
156
|
if (t) {
|
|
157
|
-
const
|
|
158
|
-
t.addEventListener("change",
|
|
157
|
+
const l = (i) => n(i.matches);
|
|
158
|
+
t.addEventListener("change", l), _e(() => t.removeEventListener("change", l));
|
|
159
159
|
}
|
|
160
|
-
return
|
|
160
|
+
return o;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
162
|
+
function nr(e, t) {
|
|
163
|
+
Xe(() => {
|
|
164
164
|
requestAnimationFrame(() => {
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const o = e();
|
|
166
|
+
o && (t(void 0), t(o));
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
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, {
|
|
173
173
|
get multiple() {
|
|
174
174
|
return e.multiple ?? !1;
|
|
175
175
|
},
|
|
@@ -177,26 +177,26 @@ function sl(e) {
|
|
|
177
177
|
return e.class;
|
|
178
178
|
},
|
|
179
179
|
get children() {
|
|
180
|
-
return r(
|
|
180
|
+
return r(O, {
|
|
181
181
|
get each() {
|
|
182
182
|
return e.items;
|
|
183
183
|
},
|
|
184
|
-
children: (t) => r(
|
|
184
|
+
children: (t) => r(ce.Item, {
|
|
185
185
|
get value() {
|
|
186
186
|
return t.value;
|
|
187
187
|
},
|
|
188
188
|
class: "border-b border-border",
|
|
189
189
|
get children() {
|
|
190
|
-
return [r(
|
|
190
|
+
return [r(ce.Header, {
|
|
191
191
|
get children() {
|
|
192
|
-
return r(
|
|
192
|
+
return r(ce.Trigger, {
|
|
193
193
|
class: "flex w-full items-center justify-between py-3 text-sm font-medium text-foreground [&[data-expanded]>svg]:rotate-90",
|
|
194
194
|
get children() {
|
|
195
|
-
return [ae(() => t.title),
|
|
195
|
+
return [ae(() => t.title), or()];
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
}), r(
|
|
199
|
+
}), r(ce.Content, {
|
|
200
200
|
class: "pb-3 text-sm text-muted-foreground",
|
|
201
201
|
get children() {
|
|
202
202
|
return t.content;
|
|
@@ -208,208 +208,208 @@ function sl(e) {
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
var
|
|
212
|
-
const
|
|
211
|
+
var lr = /* @__PURE__ */ d("<span>");
|
|
212
|
+
const ar = {
|
|
213
213
|
neutral: "bg-muted text-muted-foreground ring-border",
|
|
214
214
|
success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
|
|
215
215
|
warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
|
|
216
216
|
danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
|
|
217
217
|
info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
|
|
218
|
-
},
|
|
219
|
-
function
|
|
220
|
-
const [t,
|
|
218
|
+
}, 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"]);
|
|
221
221
|
return (() => {
|
|
222
|
-
var n =
|
|
223
|
-
return
|
|
222
|
+
var n = lr();
|
|
223
|
+
return I(n, A({
|
|
224
224
|
get class() {
|
|
225
|
-
return g(
|
|
225
|
+
return g(ir, ar[t.tone ?? "neutral"], t.class);
|
|
226
226
|
}
|
|
227
|
-
},
|
|
227
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
228
228
|
})();
|
|
229
229
|
}
|
|
230
|
-
var
|
|
231
|
-
const
|
|
230
|
+
var cr = /* @__PURE__ */ d("<button>");
|
|
231
|
+
const dr = {
|
|
232
232
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
233
233
|
secondary: "bg-muted text-foreground hover:bg-muted/70",
|
|
234
234
|
outline: "border border-border bg-transparent text-foreground hover:bg-muted",
|
|
235
235
|
ghost: "bg-transparent text-foreground hover:bg-muted"
|
|
236
|
-
},
|
|
237
|
-
function
|
|
238
|
-
const [t,
|
|
236
|
+
}, 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"]);
|
|
239
239
|
return (() => {
|
|
240
|
-
var n =
|
|
241
|
-
return
|
|
240
|
+
var n = cr();
|
|
241
|
+
return I(n, A({
|
|
242
242
|
get type() {
|
|
243
243
|
return t.type ?? "button";
|
|
244
244
|
},
|
|
245
245
|
get class() {
|
|
246
|
-
return g(
|
|
246
|
+
return g(sr, dr[t.variant ?? "primary"], t.class);
|
|
247
247
|
}
|
|
248
|
-
},
|
|
248
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
249
249
|
})();
|
|
250
250
|
}
|
|
251
|
-
var Ee = /* @__PURE__ */
|
|
252
|
-
function
|
|
253
|
-
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;
|
|
254
254
|
return (() => {
|
|
255
|
-
var
|
|
256
|
-
return
|
|
255
|
+
var l = Ee();
|
|
256
|
+
return I(l, A({
|
|
257
257
|
get class() {
|
|
258
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);
|
|
259
259
|
}
|
|
260
|
-
},
|
|
260
|
+
}, o), !1, !0), a(l, () => t.children), l;
|
|
261
261
|
})();
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
const [t,
|
|
263
|
+
function Mo(e) {
|
|
264
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
265
265
|
return (() => {
|
|
266
266
|
var n = Ee();
|
|
267
|
-
return
|
|
267
|
+
return I(n, A({
|
|
268
268
|
get class() {
|
|
269
269
|
return g("flex flex-col space-y-1.5 p-6", t.class);
|
|
270
270
|
}
|
|
271
|
-
},
|
|
271
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
272
272
|
})();
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
const [t,
|
|
274
|
+
function Eo(e) {
|
|
275
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
276
276
|
return (() => {
|
|
277
|
-
var n =
|
|
278
|
-
return
|
|
277
|
+
var n = ur();
|
|
278
|
+
return I(n, A({
|
|
279
279
|
get class() {
|
|
280
280
|
return g("text-lg font-semibold leading-none tracking-tight", t.class);
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
283
283
|
})();
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
const [t,
|
|
285
|
+
function fr(e) {
|
|
286
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
287
287
|
return (() => {
|
|
288
288
|
var n = Ee();
|
|
289
|
-
return
|
|
289
|
+
return I(n, A({
|
|
290
290
|
get class() {
|
|
291
291
|
return g("p-6 pt-0", t.class);
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
294
294
|
})();
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
function
|
|
296
|
+
var mr = /* @__PURE__ */ d('<label><input type=checkbox class="h-4 w-4 rounded border-input">');
|
|
297
|
+
function Fo(e) {
|
|
298
298
|
return (() => {
|
|
299
|
-
var t =
|
|
300
|
-
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;
|
|
301
301
|
})();
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
const
|
|
305
|
-
function
|
|
306
|
-
const t = e.getFullYear(),
|
|
307
|
-
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}`;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function ye(e) {
|
|
310
310
|
const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
311
311
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : null;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
const
|
|
315
|
-
return
|
|
313
|
+
function Oe(e, t) {
|
|
314
|
+
const o = ye(e);
|
|
315
|
+
return o ? `${o.getDate()} ${t[o.getMonth()].slice(0, 3)} ${o.getFullYear()}` : null;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Pe(e, t) {
|
|
318
318
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const [t,
|
|
322
|
-
let m,
|
|
323
|
-
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({
|
|
324
324
|
top: 0,
|
|
325
325
|
left: 0
|
|
326
|
-
}), k = 288,
|
|
327
|
-
if (!
|
|
328
|
-
const f =
|
|
329
|
-
|
|
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({
|
|
330
330
|
top: f.bottom + 4,
|
|
331
331
|
left: C
|
|
332
332
|
});
|
|
333
|
-
},
|
|
333
|
+
}, P = () => {
|
|
334
334
|
if (e.disabled) return;
|
|
335
|
-
const f =
|
|
336
|
-
i(f.getFullYear()), u(f.getMonth()),
|
|
337
|
-
},
|
|
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) => {
|
|
338
338
|
const C = f.target;
|
|
339
|
-
m && !m.contains(C) && b && !b.contains(C) &&
|
|
340
|
-
},
|
|
341
|
-
f.key === "Escape" &&
|
|
339
|
+
m && !m.contains(C) && b && !b.contains(C) && V();
|
|
340
|
+
}, w = (f) => {
|
|
341
|
+
f.key === "Escape" && V();
|
|
342
342
|
}, v = (f) => {
|
|
343
|
-
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));
|
|
344
344
|
};
|
|
345
|
-
pe(() => v(t())),
|
|
345
|
+
pe(() => v(t())), _e(() => v(!1));
|
|
346
346
|
const x = () => {
|
|
347
|
-
const f =
|
|
348
|
-
f === 0 ? (u(11), i(
|
|
349
|
-
},
|
|
350
|
-
const f =
|
|
351
|
-
f === 11 ? (u(0), i(
|
|
352
|
-
}, T =
|
|
353
|
-
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 = [];
|
|
354
354
|
for (let te = 0; te < 42; te++)
|
|
355
355
|
U.push(new Date(R.getFullYear(), R.getMonth(), R.getDate() + te));
|
|
356
356
|
return U;
|
|
357
|
-
}),
|
|
358
|
-
e.onChange(
|
|
357
|
+
}), p = De(() => ye(e.value)), G = /* @__PURE__ */ new Date(), q = (f) => {
|
|
358
|
+
e.onChange($r(f)), V();
|
|
359
359
|
};
|
|
360
360
|
return (() => {
|
|
361
|
-
var f =
|
|
362
|
-
typeof U == "function" ?
|
|
363
|
-
var te =
|
|
364
|
-
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, {
|
|
365
365
|
class: "h-4 w-4 shrink-0 text-muted-foreground"
|
|
366
|
-
}), null), a(f, r(
|
|
366
|
+
}), null), a(f, r($, {
|
|
367
367
|
get when() {
|
|
368
368
|
return t();
|
|
369
369
|
},
|
|
370
370
|
get children() {
|
|
371
|
-
return r(
|
|
371
|
+
return r(pt, {
|
|
372
372
|
get children() {
|
|
373
|
-
var
|
|
374
|
-
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, {
|
|
375
375
|
class: "h-4 w-4"
|
|
376
|
-
})), a(K, () => (e.months ??
|
|
376
|
+
})), a(K, () => (e.months ?? Se)[c()], gt), a(K, l, null), Le.$$click = _, a(Le, r(Ue, {
|
|
377
377
|
class: "h-4 w-4"
|
|
378
|
-
})), a(Ie, r(
|
|
378
|
+
})), a(Ie, r(O, {
|
|
379
379
|
get each() {
|
|
380
|
-
return e.weekdays ??
|
|
380
|
+
return e.weekdays ?? pr;
|
|
381
381
|
},
|
|
382
|
-
children: (
|
|
383
|
-
var
|
|
384
|
-
return a(
|
|
382
|
+
children: (z) => (() => {
|
|
383
|
+
var H = xr();
|
|
384
|
+
return a(H, z), H;
|
|
385
385
|
})()
|
|
386
|
-
})), a(
|
|
386
|
+
})), a(ft, r(O, {
|
|
387
387
|
get each() {
|
|
388
388
|
return T();
|
|
389
389
|
},
|
|
390
|
-
children: (
|
|
391
|
-
const
|
|
392
|
-
const
|
|
393
|
-
return
|
|
394
|
-
},
|
|
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);
|
|
395
395
|
return (() => {
|
|
396
|
-
var
|
|
397
|
-
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;
|
|
398
398
|
})();
|
|
399
399
|
}
|
|
400
|
-
})), S((
|
|
401
|
-
var
|
|
402
|
-
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;
|
|
403
403
|
}, {
|
|
404
404
|
e: void 0,
|
|
405
405
|
t: void 0
|
|
406
|
-
}),
|
|
406
|
+
}), D;
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
}), null), S((
|
|
411
|
-
var ie = g("relative", e.class), re = e.disabled, K =
|
|
412
|
-
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;
|
|
413
413
|
}, {
|
|
414
414
|
e: void 0,
|
|
415
415
|
t: void 0,
|
|
@@ -418,9 +418,9 @@ function fl(e) {
|
|
|
418
418
|
})();
|
|
419
419
|
}
|
|
420
420
|
ee(["click"]);
|
|
421
|
-
var
|
|
422
|
-
function
|
|
423
|
-
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, {
|
|
424
424
|
get open() {
|
|
425
425
|
return e.open;
|
|
426
426
|
},
|
|
@@ -428,47 +428,47 @@ function ml(e) {
|
|
|
428
428
|
return e.onOpenChange;
|
|
429
429
|
},
|
|
430
430
|
get children() {
|
|
431
|
-
return r(
|
|
431
|
+
return r(F.Portal, {
|
|
432
432
|
get children() {
|
|
433
|
-
return [r(
|
|
433
|
+
return [r(F.Overlay, {
|
|
434
434
|
class: "modal-overlay fixed inset-0 z-40 bg-black/50 backdrop-blur-[2px]"
|
|
435
435
|
}), (() => {
|
|
436
|
-
var t =
|
|
437
|
-
return a(t, r(
|
|
436
|
+
var t = _r();
|
|
437
|
+
return a(t, r(F.Content, {
|
|
438
438
|
get class() {
|
|
439
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);
|
|
440
440
|
},
|
|
441
441
|
get children() {
|
|
442
|
-
return [r(
|
|
442
|
+
return [r($, {
|
|
443
443
|
get when() {
|
|
444
444
|
return e.title;
|
|
445
445
|
},
|
|
446
446
|
get children() {
|
|
447
|
-
var
|
|
448
|
-
return a(n, r(
|
|
447
|
+
var o = wr(), n = o.firstChild;
|
|
448
|
+
return a(n, r(F.Title, {
|
|
449
449
|
class: "text-[16px] font-bold leading-tight",
|
|
450
450
|
get children() {
|
|
451
451
|
return e.title;
|
|
452
452
|
}
|
|
453
|
-
}), null), a(n, r(
|
|
453
|
+
}), null), a(n, r($, {
|
|
454
454
|
get when() {
|
|
455
455
|
return e.subtitle;
|
|
456
456
|
},
|
|
457
457
|
get children() {
|
|
458
|
-
var
|
|
459
|
-
return a(
|
|
458
|
+
var l = yr();
|
|
459
|
+
return a(l, () => e.subtitle), l;
|
|
460
460
|
}
|
|
461
|
-
}), null), a(
|
|
461
|
+
}), null), a(o, r(F.CloseButton, {
|
|
462
462
|
class: "grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
463
463
|
get "aria-label"() {
|
|
464
464
|
return e.closeLabel ?? "Close";
|
|
465
465
|
},
|
|
466
466
|
get children() {
|
|
467
|
-
return r(
|
|
467
|
+
return r(Ke, {
|
|
468
468
|
class: "h-5 w-5"
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
}), null),
|
|
471
|
+
}), null), o;
|
|
472
472
|
}
|
|
473
473
|
}), ae(() => e.children)];
|
|
474
474
|
}
|
|
@@ -479,16 +479,16 @@ function ml(e) {
|
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ao(e) {
|
|
483
483
|
return (
|
|
484
484
|
// preventScroll defaults to true in Kobalte's menu — that locks page scroll
|
|
485
485
|
// (body overflow:hidden + scrollbar-width compensation) while the menu is
|
|
486
486
|
// open, which is wrong for a small contextual menu (it closes on scroll
|
|
487
487
|
// anyway). Dialogs (Modal/Drawer) keep the lock; a dropdown shouldn't.
|
|
488
|
-
r(
|
|
488
|
+
r(de, {
|
|
489
489
|
preventScroll: !1,
|
|
490
490
|
get children() {
|
|
491
|
-
return [r(
|
|
491
|
+
return [r(de.Trigger, {
|
|
492
492
|
get class() {
|
|
493
493
|
return g("inline-flex", e.class);
|
|
494
494
|
},
|
|
@@ -498,16 +498,16 @@ function hl(e) {
|
|
|
498
498
|
get children() {
|
|
499
499
|
return e.children;
|
|
500
500
|
}
|
|
501
|
-
}), r(
|
|
501
|
+
}), r(de.Portal, {
|
|
502
502
|
get children() {
|
|
503
|
-
return r(
|
|
503
|
+
return r(de.Content, {
|
|
504
504
|
class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
505
505
|
get children() {
|
|
506
|
-
return r(
|
|
506
|
+
return r(O, {
|
|
507
507
|
get each() {
|
|
508
508
|
return e.items;
|
|
509
509
|
},
|
|
510
|
-
children: (t) => r(
|
|
510
|
+
children: (t) => r(de.Item, {
|
|
511
511
|
get class() {
|
|
512
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");
|
|
513
513
|
},
|
|
@@ -530,45 +530,45 @@ function hl(e) {
|
|
|
530
530
|
})
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
var
|
|
534
|
-
function
|
|
535
|
-
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);
|
|
536
536
|
let n;
|
|
537
|
-
const
|
|
537
|
+
const l = (i) => {
|
|
538
538
|
if (e.disabled || !i) return;
|
|
539
|
-
const
|
|
540
|
-
|
|
539
|
+
const c = Array.from(i);
|
|
540
|
+
c.length && e.onFiles(c);
|
|
541
541
|
};
|
|
542
542
|
return (() => {
|
|
543
|
-
var i =
|
|
544
|
-
i.addEventListener("drop", (
|
|
543
|
+
var i = Cr(), c = i.firstChild, u = c.nextSibling;
|
|
544
|
+
i.addEventListener("drop", (s) => {
|
|
545
545
|
var b;
|
|
546
|
-
|
|
547
|
-
}), i.addEventListener("dragleave", () =>
|
|
548
|
-
e.disabled || (
|
|
549
|
-
}), i.$$keydown = (
|
|
550
|
-
e.disabled || (
|
|
551
|
-
}, 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, {
|
|
552
552
|
class: "h-8 w-8 text-muted-foreground"
|
|
553
|
-
}),
|
|
553
|
+
}), c), a(c, () => e.label ?? "Drag files here or click to browse"), a(i, r($, {
|
|
554
554
|
get when() {
|
|
555
555
|
return e.hint;
|
|
556
556
|
},
|
|
557
557
|
get children() {
|
|
558
|
-
var
|
|
559
|
-
return a(
|
|
558
|
+
var s = kr();
|
|
559
|
+
return a(s, () => e.hint), s;
|
|
560
560
|
}
|
|
561
|
-
}), u), u.addEventListener("change", (
|
|
562
|
-
|
|
561
|
+
}), u), u.addEventListener("change", (s) => {
|
|
562
|
+
l(s.currentTarget.files), s.currentTarget.value = "";
|
|
563
563
|
});
|
|
564
564
|
var m = n;
|
|
565
|
-
return typeof m == "function" ?
|
|
566
|
-
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 = {
|
|
567
567
|
"border-ring bg-primary/5": t(),
|
|
568
568
|
"border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
|
|
569
569
|
"cursor-not-allowed opacity-60": e.disabled
|
|
570
|
-
}, k = e.accept,
|
|
571
|
-
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;
|
|
572
572
|
}, {
|
|
573
573
|
e: void 0,
|
|
574
574
|
t: void 0,
|
|
@@ -580,27 +580,27 @@ function bl(e) {
|
|
|
580
580
|
})();
|
|
581
581
|
}
|
|
582
582
|
ee(["click", "keydown"]);
|
|
583
|
-
var
|
|
584
|
-
const
|
|
585
|
-
function
|
|
586
|
-
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"]);
|
|
587
587
|
return (() => {
|
|
588
|
-
var n =
|
|
589
|
-
return n.$$input = (
|
|
588
|
+
var n = Sr();
|
|
589
|
+
return n.$$input = (l) => t.onInput(l.currentTarget.value), I(n, A({
|
|
590
590
|
get class() {
|
|
591
|
-
return g(
|
|
591
|
+
return g(Tr, t.class);
|
|
592
592
|
},
|
|
593
593
|
get value() {
|
|
594
594
|
return t.value;
|
|
595
595
|
}
|
|
596
|
-
},
|
|
596
|
+
}, o), !1, !1), n;
|
|
597
597
|
})();
|
|
598
598
|
}
|
|
599
599
|
ee(["input"]);
|
|
600
|
-
var
|
|
601
|
-
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) {
|
|
602
602
|
const t = () => e.variant === "center";
|
|
603
|
-
return r(
|
|
603
|
+
return r(F, {
|
|
604
604
|
get open() {
|
|
605
605
|
return e.open;
|
|
606
606
|
},
|
|
@@ -608,72 +608,72 @@ function vl(e) {
|
|
|
608
608
|
return e.onOpenChange;
|
|
609
609
|
},
|
|
610
610
|
get children() {
|
|
611
|
-
return r(
|
|
611
|
+
return r(F.Portal, {
|
|
612
612
|
get children() {
|
|
613
|
-
return [r(
|
|
613
|
+
return [r(F.Overlay, {
|
|
614
614
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
615
|
-
}), r(
|
|
615
|
+
}), r($, {
|
|
616
616
|
get when() {
|
|
617
617
|
return t();
|
|
618
618
|
},
|
|
619
619
|
get fallback() {
|
|
620
620
|
return (() => {
|
|
621
|
-
var
|
|
622
|
-
return a(
|
|
621
|
+
var o = Lr();
|
|
622
|
+
return a(o, r(F.Content, {
|
|
623
623
|
get class() {
|
|
624
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);
|
|
625
625
|
},
|
|
626
626
|
get children() {
|
|
627
|
-
return [r(
|
|
627
|
+
return [r($, {
|
|
628
628
|
get when() {
|
|
629
629
|
return e.title;
|
|
630
630
|
},
|
|
631
631
|
get children() {
|
|
632
|
-
var n =
|
|
633
|
-
return a(n, r(
|
|
632
|
+
var n = Fr();
|
|
633
|
+
return a(n, r(F.Title, {
|
|
634
634
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
635
635
|
get children() {
|
|
636
636
|
return e.title;
|
|
637
637
|
}
|
|
638
|
-
}), null), a(n, r(
|
|
638
|
+
}), null), a(n, r(F.CloseButton, {
|
|
639
639
|
class: "grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
640
640
|
get "aria-label"() {
|
|
641
641
|
return e.closeLabel ?? "Close";
|
|
642
642
|
},
|
|
643
643
|
get children() {
|
|
644
|
-
return r(
|
|
644
|
+
return r(Ke, {
|
|
645
645
|
class: "h-5 w-5"
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
648
|
}), null), n;
|
|
649
649
|
}
|
|
650
650
|
}), (() => {
|
|
651
|
-
var n =
|
|
651
|
+
var n = je();
|
|
652
652
|
return a(n, () => e.children), n;
|
|
653
653
|
})()];
|
|
654
654
|
}
|
|
655
|
-
})),
|
|
655
|
+
})), o;
|
|
656
656
|
})();
|
|
657
657
|
},
|
|
658
658
|
get children() {
|
|
659
|
-
var
|
|
660
|
-
return a(
|
|
659
|
+
var o = Er();
|
|
660
|
+
return a(o, r(F.Content, {
|
|
661
661
|
get class() {
|
|
662
662
|
return g("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
663
663
|
},
|
|
664
664
|
get children() {
|
|
665
|
-
return [r(
|
|
665
|
+
return [r($, {
|
|
666
666
|
get when() {
|
|
667
667
|
return e.title;
|
|
668
668
|
},
|
|
669
669
|
get children() {
|
|
670
|
-
var n =
|
|
671
|
-
return a(n, r(
|
|
670
|
+
var n = Mr();
|
|
671
|
+
return a(n, r(F.Title, {
|
|
672
672
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
673
673
|
get children() {
|
|
674
674
|
return e.title;
|
|
675
675
|
}
|
|
676
|
-
}), null), a(n, r(
|
|
676
|
+
}), null), a(n, r(F.CloseButton, {
|
|
677
677
|
class: "text-muted-foreground hover:text-foreground",
|
|
678
678
|
get "aria-label"() {
|
|
679
679
|
return e.closeLabel ?? "Close";
|
|
@@ -682,11 +682,11 @@ function vl(e) {
|
|
|
682
682
|
}), null), n;
|
|
683
683
|
}
|
|
684
684
|
}), (() => {
|
|
685
|
-
var n =
|
|
685
|
+
var n = je();
|
|
686
686
|
return a(n, () => e.children), n;
|
|
687
687
|
})()];
|
|
688
688
|
}
|
|
689
|
-
})),
|
|
689
|
+
})), o;
|
|
690
690
|
}
|
|
691
691
|
})];
|
|
692
692
|
}
|
|
@@ -694,71 +694,71 @@ function vl(e) {
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
var
|
|
698
|
-
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) {
|
|
699
699
|
return (() => {
|
|
700
|
-
var t =
|
|
701
|
-
return a(
|
|
700
|
+
var t = Rr(), o = t.firstChild, n = o.firstChild;
|
|
701
|
+
return a(o, r($, {
|
|
702
702
|
get when() {
|
|
703
|
-
var
|
|
704
|
-
return (
|
|
703
|
+
var l;
|
|
704
|
+
return (l = e.breadcrumb) == null ? void 0 : l.length;
|
|
705
705
|
},
|
|
706
706
|
get children() {
|
|
707
|
-
var
|
|
708
|
-
return a(
|
|
707
|
+
var l = Ir();
|
|
708
|
+
return a(l, r(O, {
|
|
709
709
|
get each() {
|
|
710
710
|
return e.breadcrumb;
|
|
711
711
|
},
|
|
712
|
-
children: (i,
|
|
712
|
+
children: (i, c) => [r($, {
|
|
713
713
|
get when() {
|
|
714
|
-
return
|
|
714
|
+
return c() > 0;
|
|
715
715
|
},
|
|
716
716
|
get children() {
|
|
717
|
-
return
|
|
717
|
+
return zr();
|
|
718
718
|
}
|
|
719
719
|
}), (() => {
|
|
720
|
-
var u =
|
|
720
|
+
var u = Or();
|
|
721
721
|
return a(u, i), S(() => {
|
|
722
722
|
var m;
|
|
723
|
-
return u.classList.toggle("text-foreground",
|
|
723
|
+
return u.classList.toggle("text-foreground", c() === (((m = e.breadcrumb) == null ? void 0 : m.length) ?? 0) - 1);
|
|
724
724
|
}), u;
|
|
725
725
|
})()]
|
|
726
|
-
})),
|
|
726
|
+
})), l;
|
|
727
727
|
}
|
|
728
|
-
}), n), a(n, () => e.title), a(
|
|
728
|
+
}), n), a(n, () => e.title), a(o, r($, {
|
|
729
729
|
get when() {
|
|
730
730
|
return e.subtitle;
|
|
731
731
|
},
|
|
732
732
|
get children() {
|
|
733
|
-
var
|
|
734
|
-
return a(
|
|
733
|
+
var l = Ar();
|
|
734
|
+
return a(l, () => e.subtitle), l;
|
|
735
735
|
}
|
|
736
|
-
}), null), a(t, r(
|
|
736
|
+
}), null), a(t, r($, {
|
|
737
737
|
get when() {
|
|
738
738
|
return e.actions;
|
|
739
739
|
},
|
|
740
740
|
get children() {
|
|
741
|
-
var
|
|
742
|
-
return a(
|
|
741
|
+
var l = Dr();
|
|
742
|
+
return a(l, () => e.actions), l;
|
|
743
743
|
}
|
|
744
744
|
}), null), t;
|
|
745
745
|
})();
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
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) {
|
|
749
749
|
return (() => {
|
|
750
|
-
var t =
|
|
751
|
-
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, {
|
|
752
752
|
class: "h-4 w-4"
|
|
753
753
|
})), a(i, () => {
|
|
754
754
|
var u;
|
|
755
|
-
return (((u = e.labels) == null ? void 0 : u.page) ?? ((m,
|
|
756
|
-
}),
|
|
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, {
|
|
757
757
|
class: "h-4 w-4"
|
|
758
758
|
})), S((u) => {
|
|
759
|
-
var
|
|
760
|
-
var m = e.page <= 1,
|
|
761
|
-
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;
|
|
762
762
|
}, {
|
|
763
763
|
e: void 0,
|
|
764
764
|
t: void 0,
|
|
@@ -768,51 +768,51 @@ function wl(e) {
|
|
|
768
768
|
})();
|
|
769
769
|
}
|
|
770
770
|
ee(["click"]);
|
|
771
|
-
var
|
|
772
|
-
const
|
|
773
|
-
function
|
|
774
|
-
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"]);
|
|
775
775
|
let n;
|
|
776
776
|
return pe(() => {
|
|
777
|
-
const
|
|
778
|
-
t.children, n && n.value !==
|
|
777
|
+
const l = t.value ?? "";
|
|
778
|
+
t.children, n && n.value !== l && (n.value = l);
|
|
779
779
|
}), (() => {
|
|
780
|
-
var
|
|
781
|
-
|
|
780
|
+
var l = jr();
|
|
781
|
+
l.addEventListener("change", (c) => t.onChange(c.currentTarget.value));
|
|
782
782
|
var i = n;
|
|
783
|
-
return typeof i == "function" ?
|
|
783
|
+
return typeof i == "function" ? Y(i, l) : n = l, I(l, A({
|
|
784
784
|
get class() {
|
|
785
|
-
return g(
|
|
785
|
+
return g(Br, t.class);
|
|
786
786
|
},
|
|
787
787
|
get value() {
|
|
788
788
|
return t.value;
|
|
789
789
|
}
|
|
790
|
-
},
|
|
790
|
+
}, o), !1, !0), a(l, () => t.children), l;
|
|
791
791
|
})();
|
|
792
792
|
}
|
|
793
|
-
var
|
|
794
|
-
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) {
|
|
795
795
|
return (() => {
|
|
796
|
-
var t =
|
|
797
|
-
return S((
|
|
798
|
-
var n = g("h-5 w-5 animate-spin text-muted-foreground", e.class),
|
|
799
|
-
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;
|
|
800
800
|
}, {
|
|
801
801
|
e: void 0,
|
|
802
802
|
t: void 0
|
|
803
803
|
}), t;
|
|
804
804
|
})();
|
|
805
805
|
}
|
|
806
|
-
var
|
|
807
|
-
const
|
|
806
|
+
var 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 = {
|
|
808
808
|
primary: "bg-primary/15 text-primary",
|
|
809
809
|
success: "bg-emerald-500/15 text-emerald-600",
|
|
810
810
|
danger: "bg-rose-500/15 text-rose-600",
|
|
811
811
|
neutral: "bg-muted text-muted-foreground"
|
|
812
812
|
};
|
|
813
|
-
function
|
|
814
|
-
const t =
|
|
815
|
-
return 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, {
|
|
816
816
|
initial: t ? !1 : {
|
|
817
817
|
opacity: 0,
|
|
818
818
|
y: 8
|
|
@@ -829,27 +829,27 @@ function yl(e) {
|
|
|
829
829
|
};
|
|
830
830
|
},
|
|
831
831
|
get children() {
|
|
832
|
-
return r(
|
|
832
|
+
return r(gr, {
|
|
833
833
|
glass: !0,
|
|
834
834
|
glow: !0,
|
|
835
835
|
get class() {
|
|
836
836
|
return e.class;
|
|
837
837
|
},
|
|
838
838
|
get children() {
|
|
839
|
-
return r(
|
|
839
|
+
return r(fr, {
|
|
840
840
|
class: "flex items-center gap-4 p-5",
|
|
841
841
|
get children() {
|
|
842
|
-
return [r(
|
|
842
|
+
return [r($, {
|
|
843
843
|
get when() {
|
|
844
844
|
return e.icon;
|
|
845
845
|
},
|
|
846
846
|
get children() {
|
|
847
|
-
var
|
|
848
|
-
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;
|
|
849
849
|
}
|
|
850
850
|
}), (() => {
|
|
851
|
-
var
|
|
852
|
-
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;
|
|
853
853
|
})()];
|
|
854
854
|
}
|
|
855
855
|
});
|
|
@@ -858,112 +858,112 @@ function yl(e) {
|
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
var
|
|
862
|
-
function
|
|
863
|
-
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"]);
|
|
864
864
|
return (() => {
|
|
865
|
-
var n =
|
|
866
|
-
return
|
|
865
|
+
var n = Xr(), l = n.firstChild;
|
|
866
|
+
return I(l, A({
|
|
867
867
|
get class() {
|
|
868
868
|
return g("w-full border-collapse text-sm", t.class);
|
|
869
869
|
}
|
|
870
|
-
},
|
|
870
|
+
}, o), !1, !0), a(l, () => t.children), n;
|
|
871
871
|
})();
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
const [t,
|
|
873
|
+
function Vo(e) {
|
|
874
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
875
875
|
return (() => {
|
|
876
|
-
var n =
|
|
877
|
-
return
|
|
876
|
+
var n = qr();
|
|
877
|
+
return I(n, A({
|
|
878
878
|
get class() {
|
|
879
879
|
return g("border-b border-border text-left text-muted-foreground", t.class);
|
|
880
880
|
}
|
|
881
|
-
},
|
|
881
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
882
882
|
})();
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
const [t,
|
|
884
|
+
function Yo(e) {
|
|
885
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
886
886
|
return (() => {
|
|
887
|
-
var n =
|
|
888
|
-
return
|
|
887
|
+
var n = Ur();
|
|
888
|
+
return I(n, A({
|
|
889
889
|
get class() {
|
|
890
890
|
return t.class;
|
|
891
891
|
}
|
|
892
|
-
},
|
|
892
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
893
893
|
})();
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
const [t,
|
|
895
|
+
function Go(e) {
|
|
896
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
897
897
|
return (() => {
|
|
898
|
-
var n =
|
|
899
|
-
return
|
|
898
|
+
var n = Kr();
|
|
899
|
+
return I(n, A({
|
|
900
900
|
get class() {
|
|
901
901
|
return g("border-b border-border last:border-0 hover:bg-muted/40", t.class);
|
|
902
902
|
}
|
|
903
|
-
},
|
|
903
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
904
904
|
})();
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
const [t,
|
|
906
|
+
function Ho(e) {
|
|
907
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
908
908
|
return (() => {
|
|
909
|
-
var n =
|
|
910
|
-
return
|
|
909
|
+
var n = Zr();
|
|
910
|
+
return I(n, A({
|
|
911
911
|
get class() {
|
|
912
912
|
return g("px-3 py-2 text-xs font-semibold uppercase tracking-wide", t.class);
|
|
913
913
|
}
|
|
914
|
-
},
|
|
914
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
915
915
|
})();
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
const [t,
|
|
917
|
+
function Xo(e) {
|
|
918
|
+
const [t, o] = L(e, ["class", "children"]);
|
|
919
919
|
return (() => {
|
|
920
|
-
var n =
|
|
921
|
-
return
|
|
920
|
+
var n = Jr();
|
|
921
|
+
return I(n, A({
|
|
922
922
|
get class() {
|
|
923
923
|
return g("px-3 py-2 align-middle", t.class);
|
|
924
924
|
}
|
|
925
|
-
},
|
|
925
|
+
}, o), !1, !0), a(n, () => t.children), n;
|
|
926
926
|
})();
|
|
927
927
|
}
|
|
928
|
-
var
|
|
929
|
-
function
|
|
930
|
-
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({
|
|
931
931
|
get count() {
|
|
932
932
|
return e.each.length;
|
|
933
933
|
},
|
|
934
934
|
getScrollElement: () => t() ?? null,
|
|
935
|
-
estimateSize: (
|
|
935
|
+
estimateSize: (l) => typeof e.estimateSize == "function" ? e.estimateSize(l) : e.estimateSize,
|
|
936
936
|
get overscan() {
|
|
937
937
|
return e.overscan ?? 10;
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
|
-
return
|
|
941
|
-
var
|
|
942
|
-
return
|
|
940
|
+
return nr(t, o), (() => {
|
|
941
|
+
var l = Wr(), i = l.firstChild;
|
|
942
|
+
return Y(o, l), a(i, r(O, {
|
|
943
943
|
get each() {
|
|
944
944
|
return n.getVirtualItems();
|
|
945
945
|
},
|
|
946
|
-
children: (
|
|
947
|
-
var u =
|
|
948
|
-
return a(u, () => e.children(e.each[
|
|
949
|
-
var
|
|
950
|
-
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;
|
|
951
951
|
}, {
|
|
952
952
|
e: void 0,
|
|
953
953
|
t: void 0
|
|
954
954
|
}), u;
|
|
955
955
|
})()
|
|
956
|
-
})), S((
|
|
956
|
+
})), S((c) => {
|
|
957
957
|
var u = g("overflow-auto", e.class), m = `${n.getTotalSize()}px`;
|
|
958
|
-
return u !==
|
|
958
|
+
return u !== c.e && X(l, c.e = u), m !== c.t && le(i, "height", c.t = m), c;
|
|
959
959
|
}, {
|
|
960
960
|
e: void 0,
|
|
961
961
|
t: void 0
|
|
962
|
-
}),
|
|
962
|
+
}), l;
|
|
963
963
|
})();
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
return r(
|
|
965
|
+
function Uo(e) {
|
|
966
|
+
return r(se, {
|
|
967
967
|
get value() {
|
|
968
968
|
return e.value;
|
|
969
969
|
},
|
|
@@ -974,14 +974,14 @@ function Ll(e) {
|
|
|
974
974
|
return e.class;
|
|
975
975
|
},
|
|
976
976
|
get children() {
|
|
977
|
-
return [r(
|
|
977
|
+
return [r(se.List, {
|
|
978
978
|
class: "flex gap-1 border-b border-border",
|
|
979
979
|
get children() {
|
|
980
|
-
return [r(
|
|
980
|
+
return [r(O, {
|
|
981
981
|
get each() {
|
|
982
982
|
return e.items;
|
|
983
983
|
},
|
|
984
|
-
children: (t) => r(
|
|
984
|
+
children: (t) => r(se.Trigger, {
|
|
985
985
|
get value() {
|
|
986
986
|
return t.value;
|
|
987
987
|
},
|
|
@@ -992,15 +992,15 @@ function Ll(e) {
|
|
|
992
992
|
return t.label;
|
|
993
993
|
}
|
|
994
994
|
})
|
|
995
|
-
}), r(
|
|
995
|
+
}), r(se.Indicator, {
|
|
996
996
|
class: "absolute bottom-0 h-0.5 bg-primary transition-all"
|
|
997
997
|
})];
|
|
998
998
|
}
|
|
999
|
-
}), r(
|
|
999
|
+
}), r(O, {
|
|
1000
1000
|
get each() {
|
|
1001
1001
|
return e.items;
|
|
1002
1002
|
},
|
|
1003
|
-
children: (t) => r(
|
|
1003
|
+
children: (t) => r(se.Content, {
|
|
1004
1004
|
get value() {
|
|
1005
1005
|
return t.value;
|
|
1006
1006
|
},
|
|
@@ -1013,14 +1013,14 @@ function Ll(e) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
|
-
var
|
|
1017
|
-
const
|
|
1016
|
+
var en = /* @__PURE__ */ d("<div class=flex-1>");
|
|
1017
|
+
const tn = {
|
|
1018
1018
|
success: "border-emerald-500/30 bg-emerald-500/10",
|
|
1019
1019
|
error: "border-destructive/30 bg-destructive/10",
|
|
1020
1020
|
info: "border-sky-500/30 bg-sky-500/10"
|
|
1021
1021
|
};
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1022
|
+
function Te(e, t, o) {
|
|
1023
|
+
Ot.show((n) => r(oe, {
|
|
1024
1024
|
get toastId() {
|
|
1025
1025
|
return n.toastId;
|
|
1026
1026
|
},
|
|
@@ -1030,25 +1030,25 @@ function Se(e, t, l) {
|
|
|
1030
1030
|
// Kobalte's data-opened/data-closed presence (same animationend-only
|
|
1031
1031
|
// mechanism as Modal).
|
|
1032
1032
|
"toast-item flex w-full items-start gap-2 rounded-md border bg-card p-3 text-sm text-card-foreground shadow-sm ring-1 ring-border",
|
|
1033
|
-
|
|
1033
|
+
tn[e]
|
|
1034
1034
|
);
|
|
1035
1035
|
},
|
|
1036
1036
|
get children() {
|
|
1037
1037
|
return [(() => {
|
|
1038
|
-
var
|
|
1039
|
-
return a(
|
|
1038
|
+
var l = en();
|
|
1039
|
+
return a(l, r(oe.Title, {
|
|
1040
1040
|
class: "font-semibold",
|
|
1041
1041
|
children: t
|
|
1042
|
-
}), null), a(
|
|
1043
|
-
when:
|
|
1042
|
+
}), null), a(l, r($, {
|
|
1043
|
+
when: o,
|
|
1044
1044
|
get children() {
|
|
1045
|
-
return r(
|
|
1045
|
+
return r(oe.Description, {
|
|
1046
1046
|
class: "text-muted-foreground",
|
|
1047
|
-
children:
|
|
1047
|
+
children: o
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
|
-
}), null),
|
|
1051
|
-
})(), r(
|
|
1050
|
+
}), null), l;
|
|
1051
|
+
})(), r(oe.CloseButton, {
|
|
1052
1052
|
class: "text-muted-foreground hover:text-foreground",
|
|
1053
1053
|
"aria-label": "Close",
|
|
1054
1054
|
children: "✕"
|
|
@@ -1056,23 +1056,23 @@ function Se(e, t, l) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
}));
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1060
|
-
success: (e, t) =>
|
|
1061
|
-
error: (e, t) =>
|
|
1062
|
-
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)
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1065
|
-
return r(
|
|
1064
|
+
function Zo() {
|
|
1065
|
+
return r(oe.Region, {
|
|
1066
1066
|
duration: 5e3,
|
|
1067
1067
|
swipeDirection: "right",
|
|
1068
1068
|
get children() {
|
|
1069
|
-
return r(
|
|
1069
|
+
return r(oe.List, {
|
|
1070
1070
|
class: "fixed bottom-4 right-4 z-50 flex w-80 flex-col gap-2 outline-none"
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Jo(e) {
|
|
1076
1076
|
return r(ue, {
|
|
1077
1077
|
get checked() {
|
|
1078
1078
|
return e.checked;
|
|
@@ -1094,7 +1094,7 @@ function Al(e) {
|
|
|
1094
1094
|
class: "h-4 w-4 rounded-full bg-white shadow-sm transition-transform data-[checked]:translate-x-4"
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
|
-
}), r(
|
|
1097
|
+
}), r($, {
|
|
1098
1098
|
get when() {
|
|
1099
1099
|
return e.label;
|
|
1100
1100
|
},
|
|
@@ -1110,8 +1110,8 @@ function Al(e) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return r(
|
|
1113
|
+
function Wo(e) {
|
|
1114
|
+
return r(W, {
|
|
1115
1115
|
get value() {
|
|
1116
1116
|
return e.value;
|
|
1117
1117
|
},
|
|
@@ -1122,23 +1122,23 @@ function Dl(e) {
|
|
|
1122
1122
|
return g("flex flex-col gap-2", e.class);
|
|
1123
1123
|
},
|
|
1124
1124
|
get children() {
|
|
1125
|
-
return [r(
|
|
1125
|
+
return [r($, {
|
|
1126
1126
|
get when() {
|
|
1127
1127
|
return e.label;
|
|
1128
1128
|
},
|
|
1129
1129
|
get children() {
|
|
1130
|
-
return r(
|
|
1130
|
+
return r(W.Label, {
|
|
1131
1131
|
class: "text-sm font-medium text-foreground",
|
|
1132
1132
|
get children() {
|
|
1133
1133
|
return e.label;
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
}), r(
|
|
1137
|
+
}), r(O, {
|
|
1138
1138
|
get each() {
|
|
1139
1139
|
return e.options;
|
|
1140
1140
|
},
|
|
1141
|
-
children: (t) => r(
|
|
1141
|
+
children: (t) => r(W.Item, {
|
|
1142
1142
|
get value() {
|
|
1143
1143
|
return t.value;
|
|
1144
1144
|
},
|
|
@@ -1147,14 +1147,14 @@ function Dl(e) {
|
|
|
1147
1147
|
},
|
|
1148
1148
|
class: "flex items-center gap-2 text-sm text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1149
1149
|
get children() {
|
|
1150
|
-
return [r(
|
|
1150
|
+
return [r(W.ItemInput, {}), r(W.ItemControl, {
|
|
1151
1151
|
class: "grid h-4 w-4 place-items-center rounded-full border border-input transition-colors data-[checked]:border-primary",
|
|
1152
1152
|
get children() {
|
|
1153
|
-
return r(
|
|
1153
|
+
return r(W.ItemIndicator, {
|
|
1154
1154
|
class: "h-2 w-2 rounded-full bg-primary"
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
|
-
}), r(
|
|
1157
|
+
}), r(W.ItemLabel, {
|
|
1158
1158
|
get children() {
|
|
1159
1159
|
return t.label;
|
|
1160
1160
|
}
|
|
@@ -1165,24 +1165,24 @@ function Dl(e) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
|
-
var
|
|
1169
|
-
const
|
|
1170
|
-
function
|
|
1171
|
-
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"]);
|
|
1172
1172
|
return (() => {
|
|
1173
|
-
var n =
|
|
1174
|
-
return n.$$input = (
|
|
1173
|
+
var n = rn();
|
|
1174
|
+
return n.$$input = (l) => t.onInput(l.currentTarget.value), I(n, A({
|
|
1175
1175
|
get class() {
|
|
1176
|
-
return g(
|
|
1176
|
+
return g(nn, t.class);
|
|
1177
1177
|
},
|
|
1178
1178
|
get value() {
|
|
1179
1179
|
return t.value;
|
|
1180
1180
|
}
|
|
1181
|
-
},
|
|
1181
|
+
}, o), !1, !1), n;
|
|
1182
1182
|
})();
|
|
1183
1183
|
}
|
|
1184
1184
|
ee(["input"]);
|
|
1185
|
-
function
|
|
1185
|
+
function el(e) {
|
|
1186
1186
|
return r(ge, {
|
|
1187
1187
|
get children() {
|
|
1188
1188
|
return [r(ge.Trigger, {
|
|
@@ -1205,7 +1205,7 @@ function Pl(e) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function tl(e) {
|
|
1209
1209
|
return r(fe, {
|
|
1210
1210
|
get children() {
|
|
1211
1211
|
return [r(fe.Trigger, {
|
|
@@ -1228,7 +1228,7 @@ function zl(e) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function rl(e) {
|
|
1232
1232
|
return r(me, {
|
|
1233
1233
|
get children() {
|
|
1234
1234
|
return [r(me.Trigger, {
|
|
@@ -1251,37 +1251,37 @@ function Ol(e) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
|
-
var
|
|
1255
|
-
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 = {
|
|
1256
1256
|
info: {
|
|
1257
1257
|
wrap: "border-sky-500/30 bg-sky-500/10",
|
|
1258
1258
|
icon: "text-sky-500",
|
|
1259
|
-
Icon:
|
|
1259
|
+
Icon: Mt
|
|
1260
1260
|
},
|
|
1261
1261
|
success: {
|
|
1262
1262
|
wrap: "border-emerald-500/30 bg-emerald-500/10",
|
|
1263
1263
|
icon: "text-emerald-500",
|
|
1264
|
-
Icon:
|
|
1264
|
+
Icon: Tt
|
|
1265
1265
|
},
|
|
1266
1266
|
warning: {
|
|
1267
1267
|
wrap: "border-amber-500/30 bg-amber-500/10",
|
|
1268
1268
|
icon: "text-amber-500",
|
|
1269
|
-
Icon:
|
|
1269
|
+
Icon: St
|
|
1270
1270
|
},
|
|
1271
1271
|
danger: {
|
|
1272
1272
|
wrap: "border-rose-500/30 bg-rose-500/10",
|
|
1273
1273
|
icon: "text-rose-500",
|
|
1274
|
-
Icon:
|
|
1274
|
+
Icon: Ct
|
|
1275
1275
|
}
|
|
1276
1276
|
};
|
|
1277
|
-
function
|
|
1278
|
-
const t = () =>
|
|
1279
|
-
return r(
|
|
1277
|
+
function nl(e) {
|
|
1278
|
+
const t = () => an[e.tone ?? "info"];
|
|
1279
|
+
return r(Pt, {
|
|
1280
1280
|
get class() {
|
|
1281
1281
|
return g("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
|
|
1282
1282
|
},
|
|
1283
1283
|
get children() {
|
|
1284
|
-
return [r(
|
|
1284
|
+
return [r(yt, {
|
|
1285
1285
|
get component() {
|
|
1286
1286
|
return t().Icon;
|
|
1287
1287
|
},
|
|
@@ -1289,27 +1289,27 @@ function Bl(e) {
|
|
|
1289
1289
|
return g("mt-0.5 h-4 w-4 shrink-0", t().icon);
|
|
1290
1290
|
}
|
|
1291
1291
|
}), (() => {
|
|
1292
|
-
var
|
|
1293
|
-
return a(
|
|
1292
|
+
var o = ln(), n = o.firstChild;
|
|
1293
|
+
return a(o, r($, {
|
|
1294
1294
|
get when() {
|
|
1295
1295
|
return e.title;
|
|
1296
1296
|
},
|
|
1297
1297
|
get children() {
|
|
1298
|
-
var
|
|
1299
|
-
return a(
|
|
1298
|
+
var l = on();
|
|
1299
|
+
return a(l, () => e.title), l;
|
|
1300
1300
|
}
|
|
1301
|
-
}), n), a(n, () => e.children),
|
|
1301
|
+
}), n), a(n, () => e.children), o;
|
|
1302
1302
|
})()];
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return r(
|
|
1306
|
+
function ol(e) {
|
|
1307
|
+
return r(ke, {
|
|
1308
1308
|
get class() {
|
|
1309
1309
|
return g("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted", e.class);
|
|
1310
1310
|
},
|
|
1311
1311
|
get children() {
|
|
1312
|
-
return [r(
|
|
1312
|
+
return [r(ke.Img, {
|
|
1313
1313
|
get src() {
|
|
1314
1314
|
return e.src;
|
|
1315
1315
|
},
|
|
@@ -1317,7 +1317,7 @@ function jl(e) {
|
|
|
1317
1317
|
return e.alt;
|
|
1318
1318
|
},
|
|
1319
1319
|
class: "h-full w-full object-cover"
|
|
1320
|
-
}), r(
|
|
1320
|
+
}), r(ke.Fallback, {
|
|
1321
1321
|
class: "grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",
|
|
1322
1322
|
get children() {
|
|
1323
1323
|
return e.fallback;
|
|
@@ -1326,16 +1326,16 @@ function jl(e) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
|
-
var
|
|
1330
|
-
function
|
|
1329
|
+
var cn = /* @__PURE__ */ d("<div>");
|
|
1330
|
+
function ll(e) {
|
|
1331
1331
|
return (() => {
|
|
1332
|
-
var t =
|
|
1332
|
+
var t = cn();
|
|
1333
1333
|
return S(() => X(t, g("animate-pulse rounded-md bg-muted", e.class))), t;
|
|
1334
1334
|
})();
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function al(e) {
|
|
1337
1337
|
const t = () => e.orientation ?? "horizontal";
|
|
1338
|
-
return r(
|
|
1338
|
+
return r(jt, {
|
|
1339
1339
|
get orientation() {
|
|
1340
1340
|
return t();
|
|
1341
1341
|
},
|
|
@@ -1344,8 +1344,8 @@ function Nl(e) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1347
|
+
var dn = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1348
|
+
function il(e) {
|
|
1349
1349
|
return r(he, {
|
|
1350
1350
|
get value() {
|
|
1351
1351
|
return e.value;
|
|
@@ -1358,12 +1358,12 @@ function Yl(e) {
|
|
|
1358
1358
|
return g("flex flex-col gap-1.5", e.class);
|
|
1359
1359
|
},
|
|
1360
1360
|
get children() {
|
|
1361
|
-
return [r(
|
|
1361
|
+
return [r($, {
|
|
1362
1362
|
get when() {
|
|
1363
1363
|
return e.label;
|
|
1364
1364
|
},
|
|
1365
1365
|
get children() {
|
|
1366
|
-
var t =
|
|
1366
|
+
var t = dn();
|
|
1367
1367
|
return a(t, r(he.Label, {
|
|
1368
1368
|
get children() {
|
|
1369
1369
|
return e.label;
|
|
@@ -1383,8 +1383,8 @@ function Yl(e) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1386
|
+
var sn = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1387
|
+
function cl(e) {
|
|
1388
1388
|
return r(be, {
|
|
1389
1389
|
get value() {
|
|
1390
1390
|
return e.value;
|
|
@@ -1397,12 +1397,12 @@ function Gl(e) {
|
|
|
1397
1397
|
return g("flex flex-col gap-1.5", e.class);
|
|
1398
1398
|
},
|
|
1399
1399
|
get children() {
|
|
1400
|
-
return [r(
|
|
1400
|
+
return [r($, {
|
|
1401
1401
|
get when() {
|
|
1402
1402
|
return e.label;
|
|
1403
1403
|
},
|
|
1404
1404
|
get children() {
|
|
1405
|
-
var t =
|
|
1405
|
+
var t = sn();
|
|
1406
1406
|
return a(t, r(be.Label, {
|
|
1407
1407
|
get children() {
|
|
1408
1408
|
return e.label;
|
|
@@ -1422,8 +1422,8 @@ function Gl(e) {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
var
|
|
1426
|
-
function
|
|
1425
|
+
var un = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
|
|
1426
|
+
function dl(e) {
|
|
1427
1427
|
return r(Q, {
|
|
1428
1428
|
get value() {
|
|
1429
1429
|
return [e.value];
|
|
@@ -1442,12 +1442,12 @@ function Xl(e) {
|
|
|
1442
1442
|
return g("flex flex-col gap-2", e.class);
|
|
1443
1443
|
},
|
|
1444
1444
|
get children() {
|
|
1445
|
-
return [r(
|
|
1445
|
+
return [r($, {
|
|
1446
1446
|
get when() {
|
|
1447
1447
|
return e.label;
|
|
1448
1448
|
},
|
|
1449
1449
|
get children() {
|
|
1450
|
-
var t =
|
|
1450
|
+
var t = un();
|
|
1451
1451
|
return a(t, r(Q.Label, {
|
|
1452
1452
|
get children() {
|
|
1453
1453
|
return e.label;
|
|
@@ -1473,7 +1473,7 @@ function Xl(e) {
|
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
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";
|
|
1476
|
-
function
|
|
1476
|
+
function sl(e) {
|
|
1477
1477
|
return r($e, {
|
|
1478
1478
|
get rawValue() {
|
|
1479
1479
|
return e.value;
|
|
@@ -1507,8 +1507,8 @@ function Hl(e) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return r(
|
|
1510
|
+
function ul(e) {
|
|
1511
|
+
return r(Bt, {
|
|
1512
1512
|
get pressed() {
|
|
1513
1513
|
return e.pressed;
|
|
1514
1514
|
},
|
|
@@ -1529,8 +1529,8 @@ function ql(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return r(
|
|
1532
|
+
function gl(e) {
|
|
1533
|
+
return r(Re, {
|
|
1534
1534
|
get value() {
|
|
1535
1535
|
return e.value;
|
|
1536
1536
|
},
|
|
@@ -1541,11 +1541,11 @@ function Ul(e) {
|
|
|
1541
1541
|
return g("inline-flex gap-1 rounded-md border border-border bg-card p-1", e.class);
|
|
1542
1542
|
},
|
|
1543
1543
|
get children() {
|
|
1544
|
-
return r(
|
|
1544
|
+
return r(O, {
|
|
1545
1545
|
get each() {
|
|
1546
1546
|
return e.options;
|
|
1547
1547
|
},
|
|
1548
|
-
children: (t) => r(
|
|
1548
|
+
children: (t) => r(Re.Item, {
|
|
1549
1549
|
get value() {
|
|
1550
1550
|
return t.value;
|
|
1551
1551
|
},
|
|
@@ -1558,7 +1558,7 @@ function Ul(e) {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function fl(e) {
|
|
1562
1562
|
return r(xe, {
|
|
1563
1563
|
get value() {
|
|
1564
1564
|
return e.value;
|
|
@@ -1572,7 +1572,7 @@ function Kl(e) {
|
|
|
1572
1572
|
get children() {
|
|
1573
1573
|
return [r(xe.Indicator, {
|
|
1574
1574
|
class: "absolute rounded-sm bg-primary shadow-sm transition-all"
|
|
1575
|
-
}), r(
|
|
1575
|
+
}), r(O, {
|
|
1576
1576
|
get each() {
|
|
1577
1577
|
return e.options;
|
|
1578
1578
|
},
|
|
@@ -1593,46 +1593,46 @@ function Kl(e) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1597
|
-
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) {
|
|
1598
1598
|
return r(Ce, {
|
|
1599
1599
|
get class() {
|
|
1600
1600
|
return g("text-sm", e.class);
|
|
1601
1601
|
},
|
|
1602
1602
|
get children() {
|
|
1603
|
-
var t =
|
|
1604
|
-
return a(t, r(
|
|
1603
|
+
var t = gn();
|
|
1604
|
+
return a(t, r(O, {
|
|
1605
1605
|
get each() {
|
|
1606
1606
|
return e.items;
|
|
1607
1607
|
},
|
|
1608
|
-
children: (
|
|
1609
|
-
const
|
|
1608
|
+
children: (o, n) => {
|
|
1609
|
+
const l = () => n() === e.items.length - 1;
|
|
1610
1610
|
return (() => {
|
|
1611
|
-
var i =
|
|
1612
|
-
return a(i, r(
|
|
1611
|
+
var i = fn();
|
|
1612
|
+
return a(i, r($, {
|
|
1613
1613
|
get when() {
|
|
1614
|
-
return ae(() => !!
|
|
1614
|
+
return ae(() => !!o.href)() && !l();
|
|
1615
1615
|
},
|
|
1616
1616
|
get fallback() {
|
|
1617
1617
|
return (() => {
|
|
1618
|
-
var
|
|
1619
|
-
return a(
|
|
1618
|
+
var c = mn();
|
|
1619
|
+
return a(c, () => o.label), S(() => X(c, l() ? "font-medium text-foreground" : void 0)), c;
|
|
1620
1620
|
})();
|
|
1621
1621
|
},
|
|
1622
1622
|
get children() {
|
|
1623
1623
|
return r(Ce.Link, {
|
|
1624
1624
|
get href() {
|
|
1625
|
-
return
|
|
1625
|
+
return o.href;
|
|
1626
1626
|
},
|
|
1627
1627
|
class: "transition-colors hover:text-foreground",
|
|
1628
1628
|
get children() {
|
|
1629
|
-
return
|
|
1629
|
+
return o.label;
|
|
1630
1630
|
}
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
-
}), null), a(i, r(
|
|
1633
|
+
}), null), a(i, r($, {
|
|
1634
1634
|
get when() {
|
|
1635
|
-
return !
|
|
1635
|
+
return !l();
|
|
1636
1636
|
},
|
|
1637
1637
|
get children() {
|
|
1638
1638
|
return r(Ce.Separator, {
|
|
@@ -1646,8 +1646,8 @@ function Zl(e) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
|
-
var
|
|
1650
|
-
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) {
|
|
1651
1651
|
return r(ne, {
|
|
1652
1652
|
get open() {
|
|
1653
1653
|
return e.open;
|
|
@@ -1661,14 +1661,14 @@ function Wl(e) {
|
|
|
1661
1661
|
return [r(ne.Overlay, {
|
|
1662
1662
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
1663
1663
|
}), (() => {
|
|
1664
|
-
var t =
|
|
1664
|
+
var t = bn();
|
|
1665
1665
|
return a(t, r(ne.Content, {
|
|
1666
1666
|
get class() {
|
|
1667
1667
|
return g("modal-content w-full max-w-md rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
1668
1668
|
},
|
|
1669
1669
|
get children() {
|
|
1670
|
-
var
|
|
1671
|
-
return a(
|
|
1670
|
+
var o = hn();
|
|
1671
|
+
return a(o, r($, {
|
|
1672
1672
|
get when() {
|
|
1673
1673
|
return e.title;
|
|
1674
1674
|
},
|
|
@@ -1680,12 +1680,12 @@ function Wl(e) {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
1682
|
}
|
|
1683
|
-
}), null), a(
|
|
1683
|
+
}), null), a(o, r(ne.Description, {
|
|
1684
1684
|
class: "mt-3 text-sm text-muted-foreground",
|
|
1685
1685
|
get children() {
|
|
1686
1686
|
return e.children;
|
|
1687
1687
|
}
|
|
1688
|
-
}), null),
|
|
1688
|
+
}), null), o;
|
|
1689
1689
|
}
|
|
1690
1690
|
})), t;
|
|
1691
1691
|
})()];
|
|
@@ -1694,7 +1694,7 @@ function Wl(e) {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function bl(e) {
|
|
1698
1698
|
return r(ve, {
|
|
1699
1699
|
get children() {
|
|
1700
1700
|
return [r(ve.Trigger, {
|
|
@@ -1709,7 +1709,7 @@ function Jl(e) {
|
|
|
1709
1709
|
return r(ve.Content, {
|
|
1710
1710
|
class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1711
1711
|
get children() {
|
|
1712
|
-
return r(
|
|
1712
|
+
return r(O, {
|
|
1713
1713
|
get each() {
|
|
1714
1714
|
return e.items;
|
|
1715
1715
|
},
|
|
@@ -1735,8 +1735,8 @@ function Jl(e) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
});
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1739
|
-
return r(
|
|
1738
|
+
function xl(e) {
|
|
1739
|
+
return r(N, {
|
|
1740
1740
|
get options() {
|
|
1741
1741
|
return e.options;
|
|
1742
1742
|
},
|
|
@@ -1750,19 +1750,19 @@ function Ql(e) {
|
|
|
1750
1750
|
get class() {
|
|
1751
1751
|
return g("w-full", e.class);
|
|
1752
1752
|
},
|
|
1753
|
-
itemComponent: (t) => r(
|
|
1753
|
+
itemComponent: (t) => r(N.Item, {
|
|
1754
1754
|
get item() {
|
|
1755
1755
|
return t.item;
|
|
1756
1756
|
},
|
|
1757
1757
|
class: "flex cursor-pointer select-none items-center justify-between rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-muted",
|
|
1758
1758
|
get children() {
|
|
1759
|
-
return [r(
|
|
1759
|
+
return [r(N.ItemLabel, {
|
|
1760
1760
|
get children() {
|
|
1761
1761
|
return t.item.rawValue;
|
|
1762
1762
|
}
|
|
1763
|
-
}), r(
|
|
1763
|
+
}), r(N.ItemIndicator, {
|
|
1764
1764
|
get children() {
|
|
1765
|
-
return r(
|
|
1765
|
+
return r(Ft, {
|
|
1766
1766
|
class: "h-4 w-4"
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
@@ -1770,17 +1770,17 @@ function Ql(e) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
}),
|
|
1772
1772
|
get children() {
|
|
1773
|
-
return [r(
|
|
1773
|
+
return [r(N.Control, {
|
|
1774
1774
|
class: "flex w-full items-center rounded-md border border-input bg-background text-foreground transition-colors focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30",
|
|
1775
1775
|
get children() {
|
|
1776
|
-
return [r(
|
|
1776
|
+
return [r(N.Input, {
|
|
1777
1777
|
class: "w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
|
|
1778
|
-
}), r(
|
|
1778
|
+
}), r(N.Trigger, {
|
|
1779
1779
|
class: "grid h-9 w-9 shrink-0 place-items-center text-muted-foreground",
|
|
1780
1780
|
get children() {
|
|
1781
|
-
return r(
|
|
1781
|
+
return r(N.Icon, {
|
|
1782
1782
|
get children() {
|
|
1783
|
-
return r(
|
|
1783
|
+
return r(Et, {
|
|
1784
1784
|
class: "h-4 w-4"
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
@@ -1788,12 +1788,12 @@ function Ql(e) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
})];
|
|
1790
1790
|
}
|
|
1791
|
-
}), r(
|
|
1791
|
+
}), r(N.Portal, {
|
|
1792
1792
|
get children() {
|
|
1793
|
-
return r(
|
|
1793
|
+
return r(N.Content, {
|
|
1794
1794
|
class: "z-50 overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1795
1795
|
get children() {
|
|
1796
|
-
return r(
|
|
1796
|
+
return r(N.Listbox, {
|
|
1797
1797
|
class: "max-h-60 overflow-y-auto"
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
@@ -1803,8 +1803,8 @@ function Ql(e) {
|
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
|
-
var
|
|
1807
|
-
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 = [{
|
|
1808
1808
|
angle: 22,
|
|
1809
1809
|
x: [0, 32],
|
|
1810
1810
|
y: [-6, 18]
|
|
@@ -1820,7 +1820,7 @@ const je = [{
|
|
|
1820
1820
|
angle: 202,
|
|
1821
1821
|
x: [62, 96],
|
|
1822
1822
|
y: [52, 80]
|
|
1823
|
-
}],
|
|
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">
|
|
1824
1824
|
<g class="rk-flame">
|
|
1825
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"/>
|
|
1826
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"/>
|
|
@@ -1831,82 +1831,82 @@ const je = [{
|
|
|
1831
1831
|
<path d="M9 26 L 4.6 34 L 9 31 Z" fill="#ef5a3a"/>
|
|
1832
1832
|
<path d="M15 26 L 19.4 34 L 15 31 Z" fill="#ef5a3a"/>
|
|
1833
1833
|
<circle cx="12" cy="19" r="2.3" fill="#8fd0ff" stroke="#2f6aa8" stroke-width="1"/>
|
|
1834
|
-
</svg>`,
|
|
1835
|
-
function
|
|
1836
|
-
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)];
|
|
1837
1837
|
let n = "";
|
|
1838
|
-
for (let
|
|
1839
|
-
const i = t() < 0.12,
|
|
1840
|
-
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>`;
|
|
1841
1841
|
}
|
|
1842
|
-
for (let
|
|
1843
|
-
const i =
|
|
1844
|
-
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>`;
|
|
1845
1845
|
}
|
|
1846
1846
|
return n;
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function kn() {
|
|
1849
1849
|
let e, t;
|
|
1850
|
-
const
|
|
1850
|
+
const o = tt();
|
|
1851
1851
|
return pe(() => {
|
|
1852
|
-
const n =
|
|
1853
|
-
t && (t.innerHTML =
|
|
1854
|
-
}),
|
|
1855
|
-
const n = [],
|
|
1856
|
-
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));
|
|
1857
1857
|
};
|
|
1858
|
-
let
|
|
1859
|
-
const
|
|
1860
|
-
|
|
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) => {
|
|
1861
1861
|
h.style.transform = `translate3d(${(u * 1.8).toFixed(1)}px, ${(m * 1.8).toFixed(1)}px, 0)`;
|
|
1862
1862
|
});
|
|
1863
1863
|
};
|
|
1864
|
-
let b = null,
|
|
1865
|
-
const
|
|
1866
|
-
if (
|
|
1867
|
-
b === null && (b = h.gamma,
|
|
1868
|
-
const
|
|
1869
|
-
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));
|
|
1870
1870
|
}, k = window.DeviceOrientationEvent;
|
|
1871
1871
|
if (k)
|
|
1872
1872
|
if (typeof k.requestPermission == "function") {
|
|
1873
1873
|
let h = !1;
|
|
1874
|
-
const
|
|
1874
|
+
const w = () => {
|
|
1875
1875
|
var v;
|
|
1876
1876
|
h || (v = k.requestPermission) == null || v.call(k).then((x) => {
|
|
1877
|
-
x === "granted" && (h = !0, i(window, "deviceorientation",
|
|
1877
|
+
x === "granted" && (h = !0, i(window, "deviceorientation", M));
|
|
1878
1878
|
}).catch(() => {
|
|
1879
1879
|
});
|
|
1880
1880
|
};
|
|
1881
|
-
i(window, "click",
|
|
1881
|
+
i(window, "click", w), i(window, "touchend", w);
|
|
1882
1882
|
} else
|
|
1883
|
-
i(window, "deviceorientation",
|
|
1883
|
+
i(window, "deviceorientation", M);
|
|
1884
1884
|
n.push(() => {
|
|
1885
|
-
|
|
1885
|
+
c && cancelAnimationFrame(c);
|
|
1886
1886
|
});
|
|
1887
|
-
const
|
|
1888
|
-
const
|
|
1889
|
-
|
|
1890
|
-
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([{
|
|
1891
1891
|
opacity: 0,
|
|
1892
1892
|
transform: `rotate(${v}deg) translateX(0px) scaleX(.4)`
|
|
1893
1893
|
}, {
|
|
1894
1894
|
opacity: 1,
|
|
1895
|
-
transform: `rotate(${v}deg) translateX(${
|
|
1895
|
+
transform: `rotate(${v}deg) translateX(${_ * 0.35}px) scaleX(1)`,
|
|
1896
1896
|
offset: 0.5
|
|
1897
1897
|
}, {
|
|
1898
1898
|
opacity: 0,
|
|
1899
|
-
transform: `rotate(${v}deg) translateX(${
|
|
1899
|
+
transform: `rotate(${v}deg) translateX(${_}px) scaleX(1)`
|
|
1900
1900
|
}], {
|
|
1901
1901
|
duration: T,
|
|
1902
1902
|
easing: "cubic-bezier(.3,0,.15,1)",
|
|
1903
1903
|
fill: "forwards"
|
|
1904
1904
|
});
|
|
1905
|
-
|
|
1906
|
-
},
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1909
|
-
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([{
|
|
1910
1910
|
opacity: 0,
|
|
1911
1911
|
transform: `translate(0px,0px) rotate(${R}deg) scale(.5)`
|
|
1912
1912
|
}, {
|
|
@@ -1925,11 +1925,11 @@ function $n() {
|
|
|
1925
1925
|
easing: "cubic-bezier(.25,0,.2,1)",
|
|
1926
1926
|
fill: "forwards"
|
|
1927
1927
|
});
|
|
1928
|
-
U.onfinish = () =>
|
|
1929
|
-
},
|
|
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]';
|
|
1930
1930
|
if (i(document, "click", ((h) => {
|
|
1931
|
-
var
|
|
1932
|
-
(v = (
|
|
1931
|
+
var w, v;
|
|
1932
|
+
(v = (w = h.target) == null ? void 0 : w.closest) != null && v.call(w, V) || (o() === "light" ? P(
|
|
1933
1933
|
`${h.clientX}px`,
|
|
1934
1934
|
`${h.clientY}px`,
|
|
1935
1935
|
-90 + (Math.random() * 80 - 40),
|
|
@@ -1937,104 +1937,103 @@ function $n() {
|
|
|
1937
1937
|
16 + Math.random() * 10,
|
|
1938
1938
|
260 + Math.random() * 280,
|
|
1939
1939
|
950 + Math.random() * 700
|
|
1940
|
-
) :
|
|
1941
|
-
})), !
|
|
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()) {
|
|
1942
1942
|
const h = () => {
|
|
1943
|
-
if (
|
|
1944
|
-
|
|
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);
|
|
1945
1945
|
return;
|
|
1946
1946
|
}
|
|
1947
|
-
const x =
|
|
1948
|
-
|
|
1949
|
-
},
|
|
1950
|
-
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));
|
|
1951
1951
|
};
|
|
1952
|
-
|
|
1952
|
+
l.push(window.setTimeout(w, 1500));
|
|
1953
1953
|
const v = e.querySelector("#cursorGlow");
|
|
1954
1954
|
i(document, "pointermove", ((x) => {
|
|
1955
|
-
var
|
|
1955
|
+
var G, q;
|
|
1956
1956
|
v && (v.style.opacity = "1", v.style.left = `${x.clientX}px`, v.style.top = `${x.clientY}px`);
|
|
1957
|
-
const
|
|
1957
|
+
const _ = x.target, T = (G = _ == null ? void 0 : _.closest) == null ? void 0 : G.call(_, ".magnetic");
|
|
1958
1958
|
if (T) {
|
|
1959
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;
|
|
1960
1960
|
T.style.transform = `translate(${(C * 7).toFixed(1)}px, ${(R * 7).toFixed(1)}px)`;
|
|
1961
1961
|
}
|
|
1962
|
-
const
|
|
1963
|
-
if (
|
|
1964
|
-
const f =
|
|
1965
|
-
|
|
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`);
|
|
1966
1966
|
}
|
|
1967
1967
|
})), i(window, "pointerleave", (() => {
|
|
1968
1968
|
v && (v.style.opacity = "0");
|
|
1969
1969
|
})), i(document, "pointerout", ((x) => {
|
|
1970
|
-
var T,
|
|
1971
|
-
const
|
|
1972
|
-
|
|
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 = "");
|
|
1973
1973
|
}));
|
|
1974
1974
|
}
|
|
1975
|
-
|
|
1976
|
-
n.forEach((h) => h()),
|
|
1975
|
+
_e(() => {
|
|
1976
|
+
n.forEach((h) => h()), l.forEach((h) => clearTimeout(h));
|
|
1977
1977
|
});
|
|
1978
1978
|
}), (() => {
|
|
1979
|
-
var n =
|
|
1980
|
-
|
|
1981
|
-
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;
|
|
1982
1982
|
b.firstChild;
|
|
1983
|
-
var
|
|
1984
|
-
|
|
1985
|
-
var
|
|
1986
|
-
typeof
|
|
1987
|
-
var
|
|
1988
|
-
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, {
|
|
1989
1989
|
style: {
|
|
1990
1990
|
width: "28px",
|
|
1991
1991
|
height: "28px",
|
|
1992
|
-
color: "hsl(
|
|
1992
|
+
color: "color-mix(in srgb, hsl(var(--accent)) 55%, white)",
|
|
1993
1993
|
opacity: ".85"
|
|
1994
1994
|
}
|
|
1995
1995
|
})), n;
|
|
1996
1996
|
})();
|
|
1997
1997
|
}
|
|
1998
|
-
var
|
|
1999
|
-
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) {
|
|
2000
2000
|
return (() => {
|
|
2001
|
-
var
|
|
2002
|
-
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, {
|
|
2003
2003
|
variant: "outline",
|
|
2004
2004
|
onClick: t,
|
|
2005
2005
|
children: "Retry"
|
|
2006
|
-
}), null), a(i, r(
|
|
2006
|
+
}), null), a(i, r(ze, {
|
|
2007
2007
|
onClick: () => window.location.reload(),
|
|
2008
2008
|
children: "Reload"
|
|
2009
|
-
}), null),
|
|
2009
|
+
}), null), o;
|
|
2010
2010
|
})();
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2013
|
-
const t = (
|
|
2012
|
+
function vl(e) {
|
|
2013
|
+
const t = (o, n) => (e.errorFallback ?? Mn)(o, n);
|
|
2014
2014
|
return (() => {
|
|
2015
|
-
var
|
|
2016
|
-
return a(
|
|
2015
|
+
var o = Sn(), n = o.firstChild, l = n.firstChild, i = l.firstChild;
|
|
2016
|
+
return a(o, r($, {
|
|
2017
2017
|
get when() {
|
|
2018
2018
|
return e.background !== null;
|
|
2019
2019
|
},
|
|
2020
2020
|
fallback: null,
|
|
2021
2021
|
get children() {
|
|
2022
|
-
return e.background ?? r(
|
|
2022
|
+
return e.background ?? r(kn, {});
|
|
2023
2023
|
}
|
|
2024
|
-
}), 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, {
|
|
2025
2025
|
fallback: t,
|
|
2026
2026
|
get children() {
|
|
2027
|
-
return r(
|
|
2027
|
+
return r(vt, {
|
|
2028
2028
|
get fallback() {
|
|
2029
2029
|
return (() => {
|
|
2030
|
-
var
|
|
2031
|
-
return a(
|
|
2030
|
+
var c = Tn();
|
|
2031
|
+
return a(c, r(Vr, {})), c;
|
|
2032
2032
|
})();
|
|
2033
2033
|
},
|
|
2034
2034
|
get children() {
|
|
2035
|
-
return r(
|
|
2035
|
+
return r(Nt, {
|
|
2036
2036
|
name: "page",
|
|
2037
|
-
mode: "outin",
|
|
2038
2037
|
get children() {
|
|
2039
2038
|
return e.children;
|
|
2040
2039
|
}
|
|
@@ -2042,136 +2041,426 @@ function eo(e) {
|
|
|
2042
2041
|
}
|
|
2043
2042
|
});
|
|
2044
2043
|
}
|
|
2045
|
-
})), S((
|
|
2044
|
+
})), S((c) => le(i, "max-width", e.maxWidth ?? "1400px")), o;
|
|
2045
|
+
})();
|
|
2046
|
+
}
|
|
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;
|
|
2046
2064
|
})();
|
|
2047
2065
|
}
|
|
2048
|
-
var
|
|
2049
|
-
function
|
|
2050
|
-
const t =
|
|
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();
|
|
2051
2069
|
return (() => {
|
|
2052
|
-
var
|
|
2053
|
-
return
|
|
2070
|
+
var o = Ln();
|
|
2071
|
+
return wt(o, "click", qt, !0), a(o, r($, {
|
|
2054
2072
|
get when() {
|
|
2055
2073
|
return t() === "dark";
|
|
2056
2074
|
},
|
|
2057
2075
|
get fallback() {
|
|
2058
|
-
return r(
|
|
2076
|
+
return r(At, {
|
|
2059
2077
|
class: "h-[18px] w-[18px]"
|
|
2060
2078
|
});
|
|
2061
2079
|
},
|
|
2062
2080
|
get children() {
|
|
2063
|
-
return r(
|
|
2081
|
+
return r(It, {
|
|
2064
2082
|
class: "h-[18px] w-[18px]"
|
|
2065
2083
|
});
|
|
2066
2084
|
}
|
|
2067
2085
|
})), S((n) => {
|
|
2068
|
-
var
|
|
2069
|
-
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;
|
|
2070
2088
|
}, {
|
|
2071
2089
|
e: void 0,
|
|
2072
2090
|
t: void 0
|
|
2073
|
-
}),
|
|
2091
|
+
}), o;
|
|
2074
2092
|
})();
|
|
2075
2093
|
}
|
|
2076
2094
|
ee(["click"]);
|
|
2077
|
-
var
|
|
2078
|
-
function
|
|
2079
|
-
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();
|
|
2080
2098
|
return (() => {
|
|
2081
|
-
var
|
|
2082
|
-
return
|
|
2099
|
+
var o = In();
|
|
2100
|
+
return o.$$click = () => Wt(!t()), a(o, r(Dt, {
|
|
2083
2101
|
class: "h-[18px] w-[18px]"
|
|
2084
2102
|
})), S((n) => {
|
|
2085
|
-
var
|
|
2086
|
-
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;
|
|
2087
2105
|
}, {
|
|
2088
2106
|
e: void 0,
|
|
2089
2107
|
t: void 0,
|
|
2090
2108
|
a: void 0
|
|
2091
|
-
}),
|
|
2109
|
+
}), o;
|
|
2092
2110
|
})();
|
|
2093
2111
|
}
|
|
2094
2112
|
ee(["click"]);
|
|
2095
|
-
var
|
|
2096
|
-
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) {
|
|
2097
2115
|
return (() => {
|
|
2098
|
-
var t =
|
|
2099
|
-
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;
|
|
2100
2118
|
})();
|
|
2101
2119
|
}
|
|
2102
|
-
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";
|
|
2103
2378
|
export {
|
|
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
|
-
|
|
2159
|
-
|
|
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,
|
|
2160
2439
|
g as cn,
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
Jt as
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
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
|
|
2177
2466
|
};
|