@a4ui/core 0.1.0 → 0.2.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 +25 -11
- package/dist/index.js +451 -432
- package/dist/layout/EffectsToggle.d.ts +5 -1
- package/dist/layout/ThemeToggle.d.ts +5 -1
- package/dist/ui/DateField.d.ts +4 -0
- package/dist/ui/Drawer.d.ts +1 -0
- package/dist/ui/Modal.d.ts +1 -0
- package/dist/ui/Pagination.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { clsx as dt } from "clsx";
|
|
2
2
|
import { twMerge as ut } from "tailwind-merge";
|
|
3
|
-
import { createSignal as
|
|
4
|
-
import { createComponent as r, memo as ae, template as c, spread as
|
|
3
|
+
import { createSignal as V, createEffect as pe, untrack as Ne, onCleanup as ye, onMount as Ye, For as z, splitProps as E, createMemo as Ae, Show as w, ErrorBoundary as gt, Suspense as ft } from "solid-js";
|
|
4
|
+
import { createComponent as r, memo as ae, template as c, spread as L, mergeProps as I, insert as a, effect as S, className as X, Portal as mt, setStyleProperty as oe, use as H, delegateEvents as ee, setAttribute as B, classList as ht, Dynamic as bt, addEventListener as xt } from "solid-js/web";
|
|
5
5
|
import { Accordion as se } from "@kobalte/core/accordion";
|
|
6
|
-
import { CalendarDays as vt, ChevronLeft as
|
|
7
|
-
import { Dialog as
|
|
6
|
+
import { CalendarDays as vt, ChevronLeft as Ge, ChevronRight as Xe, X as He, UploadCloud as $t, CircleX as wt, TriangleAlert as pt, CircleCheck as yt, Info as _t, ChevronsUpDown as Ct, Check as kt, Satellite as St, Moon as Tt, Sun as Mt, Sparkles as Et } from "lucide-solid";
|
|
7
|
+
import { Dialog as M } from "@kobalte/core/dialog";
|
|
8
8
|
import { DropdownMenu as ce } from "@kobalte/core/dropdown-menu";
|
|
9
|
-
import { Motion as
|
|
10
|
-
import { createVirtualizer as
|
|
9
|
+
import { Motion as Lt } from "solid-motionone";
|
|
10
|
+
import { createVirtualizer as It } from "@tanstack/solid-virtual";
|
|
11
11
|
import { Tabs as de } from "@kobalte/core/tabs";
|
|
12
12
|
import { Toast as le, toaster as Ft } from "@kobalte/core/toast";
|
|
13
13
|
import { Switch as ue } from "@kobalte/core/switch";
|
|
14
|
-
import { RadioGroup as
|
|
14
|
+
import { RadioGroup as J } 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";
|
|
@@ -23,21 +23,21 @@ 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
25
|
import { ToggleButton as Rt } from "@kobalte/core/toggle-button";
|
|
26
|
-
import { ToggleGroup as
|
|
26
|
+
import { ToggleGroup as De } 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
|
|
33
|
-
function
|
|
31
|
+
import { Combobox as j } from "@kobalte/core/combobox";
|
|
32
|
+
import { Transition as Pt } from "solid-transition-group";
|
|
33
|
+
function g(...e) {
|
|
34
34
|
return ut(dt(e));
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function
|
|
36
|
+
const qe = "a4ui-theme";
|
|
37
|
+
function zt(e) {
|
|
38
38
|
return e === "dark" || e === "light";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Ue() {
|
|
41
41
|
try {
|
|
42
42
|
return window.localStorage;
|
|
43
43
|
} catch {
|
|
@@ -46,32 +46,32 @@ function qe() {
|
|
|
46
46
|
}
|
|
47
47
|
function Ot() {
|
|
48
48
|
var t;
|
|
49
|
-
const e = ((t =
|
|
50
|
-
return
|
|
49
|
+
const e = ((t = Ue()) == null ? void 0 : t.getItem(qe)) ?? null;
|
|
50
|
+
return zt(e) ? e : "dark";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ke(e) {
|
|
53
53
|
const t = document.documentElement;
|
|
54
54
|
e === "light" ? t.setAttribute("data-theme", "light") : t.removeAttribute("data-theme");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Bt(e) {
|
|
57
57
|
var t;
|
|
58
|
-
(t =
|
|
58
|
+
(t = Ue()) == null || t.setItem(qe, e), Ke(e);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function jt(e) {
|
|
61
61
|
return e === "dark" ? "light" : "dark";
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const [
|
|
66
|
-
function
|
|
67
|
-
return
|
|
63
|
+
const Ze = Ot();
|
|
64
|
+
Ke(Ze);
|
|
65
|
+
const [We, Vt] = V(Ze);
|
|
66
|
+
function Je() {
|
|
67
|
+
return We;
|
|
68
68
|
}
|
|
69
69
|
function Nt() {
|
|
70
|
-
const e =
|
|
71
|
-
|
|
70
|
+
const e = jt(We());
|
|
71
|
+
Bt(e), Vt(e);
|
|
72
72
|
}
|
|
73
73
|
const Qe = "a4ui-effects";
|
|
74
|
-
function
|
|
74
|
+
function et() {
|
|
75
75
|
try {
|
|
76
76
|
return window.localStorage;
|
|
77
77
|
} catch {
|
|
@@ -84,65 +84,65 @@ function Yt() {
|
|
|
84
84
|
if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
|
-
const e = (t =
|
|
87
|
+
const e = (t = et()) == null ? void 0 : t.getItem(Qe);
|
|
88
88
|
return e === null ? !0 : e === "1";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function tt(e) {
|
|
91
91
|
document.documentElement.classList.toggle("calm", !e);
|
|
92
92
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
const [
|
|
93
|
+
const rt = Yt();
|
|
94
|
+
tt(rt);
|
|
95
|
+
const [nt, Gt] = V(rt);
|
|
96
96
|
function Xt() {
|
|
97
|
-
return
|
|
97
|
+
return nt;
|
|
98
98
|
}
|
|
99
99
|
function Ht() {
|
|
100
|
-
return !
|
|
100
|
+
return !nt();
|
|
101
101
|
}
|
|
102
102
|
function qt(e) {
|
|
103
103
|
var t;
|
|
104
|
-
(t =
|
|
104
|
+
(t = et()) == null || t.setItem(Qe, e ? "1" : "0"), tt(e), Gt(e);
|
|
105
105
|
}
|
|
106
106
|
const Ut = "(prefers-reduced-motion: reduce)";
|
|
107
|
-
function
|
|
107
|
+
function lt() {
|
|
108
108
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(Ut).matches;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
function
|
|
110
|
+
const ot = "a4ui-motion-forced";
|
|
111
|
+
function at() {
|
|
112
112
|
try {
|
|
113
113
|
return window.localStorage;
|
|
114
114
|
} catch {
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
const [
|
|
120
|
-
typeof document < "u" && document.documentElement.classList.toggle("force-motion",
|
|
118
|
+
var Ve;
|
|
119
|
+
const [Me, Kt] = V(((Ve = at()) == null ? void 0 : Ve.getItem(ot)) === "1");
|
|
120
|
+
typeof document < "u" && document.documentElement.classList.toggle("force-motion", Ne(Me));
|
|
121
121
|
function ol() {
|
|
122
|
-
return
|
|
122
|
+
return Me;
|
|
123
123
|
}
|
|
124
124
|
function al(e) {
|
|
125
125
|
var t;
|
|
126
|
-
(t =
|
|
126
|
+
(t = at()) == null || t.setItem(ot, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), Kt(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return Ht() ||
|
|
128
|
+
function Te() {
|
|
129
|
+
return Ht() || lt() && !Me();
|
|
130
130
|
}
|
|
131
131
|
const Zt = (e) => 1 - (1 - e) ** 3;
|
|
132
132
|
function Wt(e, t = 600) {
|
|
133
|
-
const [l, n] =
|
|
133
|
+
const [l, n] = V(0);
|
|
134
134
|
let o;
|
|
135
|
-
return
|
|
135
|
+
return pe(() => {
|
|
136
136
|
const i = e();
|
|
137
|
-
if (
|
|
137
|
+
if (Te()) {
|
|
138
138
|
o !== void 0 && cancelAnimationFrame(o), n(i);
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
const s =
|
|
141
|
+
const s = Ne(l);
|
|
142
142
|
if (s === i) return;
|
|
143
143
|
o !== void 0 && cancelAnimationFrame(o);
|
|
144
|
-
const
|
|
145
|
-
const b = d -
|
|
144
|
+
const u = performance.now(), m = (d) => {
|
|
145
|
+
const b = d - u, _ = Math.min(1, b / t);
|
|
146
146
|
n(s + (i - s) * Zt(_)), o = _ < 1 ? requestAnimationFrame(m) : void 0;
|
|
147
147
|
};
|
|
148
148
|
o = requestAnimationFrame(m);
|
|
@@ -151,22 +151,22 @@ function Wt(e, t = 600) {
|
|
|
151
151
|
}), l;
|
|
152
152
|
}
|
|
153
153
|
function il(e) {
|
|
154
|
-
const t = typeof window < "u" ? window.matchMedia(e) : null, [l, n] =
|
|
154
|
+
const t = typeof window < "u" ? window.matchMedia(e) : null, [l, n] = V(t ? t.matches : !1);
|
|
155
155
|
if (t) {
|
|
156
156
|
const o = (i) => n(i.matches);
|
|
157
157
|
t.addEventListener("change", o), ye(() => t.removeEventListener("change", o));
|
|
158
158
|
}
|
|
159
159
|
return l;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function Jt(e, t) {
|
|
162
|
+
Ye(() => {
|
|
163
163
|
requestAnimationFrame(() => {
|
|
164
164
|
const l = e();
|
|
165
165
|
l && (t(void 0), t(l));
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
var
|
|
169
|
+
var Qt = /* @__PURE__ */ c('<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">');
|
|
170
170
|
function sl(e) {
|
|
171
171
|
return r(se, {
|
|
172
172
|
get multiple() {
|
|
@@ -191,7 +191,7 @@ function sl(e) {
|
|
|
191
191
|
return r(se.Trigger, {
|
|
192
192
|
class: "flex w-full items-center justify-between py-3 text-sm font-medium text-foreground [&[data-expanded]>svg]:rotate-90",
|
|
193
193
|
get children() {
|
|
194
|
-
return [ae(() => t.title),
|
|
194
|
+
return [ae(() => t.title), Qt()];
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
@@ -216,12 +216,12 @@ const tr = {
|
|
|
216
216
|
info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
|
|
217
217
|
}, rr = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
|
|
218
218
|
function cl(e) {
|
|
219
|
-
const [t, l] =
|
|
219
|
+
const [t, l] = E(e, ["tone", "class", "children"]);
|
|
220
220
|
return (() => {
|
|
221
221
|
var n = er();
|
|
222
|
-
return
|
|
222
|
+
return L(n, I({
|
|
223
223
|
get class() {
|
|
224
|
-
return
|
|
224
|
+
return g(rr, tr[t.tone ?? "neutral"], t.class);
|
|
225
225
|
}
|
|
226
226
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
227
227
|
})();
|
|
@@ -233,61 +233,61 @@ const lr = {
|
|
|
233
233
|
outline: "border border-border bg-transparent text-foreground hover:bg-muted",
|
|
234
234
|
ghost: "bg-transparent text-foreground hover:bg-muted"
|
|
235
235
|
}, or = "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";
|
|
236
|
-
function
|
|
237
|
-
const [t, l] =
|
|
236
|
+
function Re(e) {
|
|
237
|
+
const [t, l] = E(e, ["variant", "class", "type", "children"]);
|
|
238
238
|
return (() => {
|
|
239
239
|
var n = nr();
|
|
240
|
-
return
|
|
240
|
+
return L(n, I({
|
|
241
241
|
get type() {
|
|
242
242
|
return t.type ?? "button";
|
|
243
243
|
},
|
|
244
244
|
get class() {
|
|
245
|
-
return
|
|
245
|
+
return g(or, lr[t.variant ?? "primary"], t.class);
|
|
246
246
|
}
|
|
247
247
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
248
248
|
})();
|
|
249
249
|
}
|
|
250
|
-
var
|
|
250
|
+
var Ee = /* @__PURE__ */ c("<div>"), ar = /* @__PURE__ */ c("<h2>");
|
|
251
251
|
function ir(e) {
|
|
252
|
-
const [t, l] =
|
|
252
|
+
const [t, l] = E(e, ["class", "children", "glass", "glow"]), n = () => (t.glow ?? t.glass) === !0;
|
|
253
253
|
return (() => {
|
|
254
|
-
var o =
|
|
255
|
-
return
|
|
254
|
+
var o = Ee();
|
|
255
|
+
return L(o, I({
|
|
256
256
|
get class() {
|
|
257
|
-
return
|
|
257
|
+
return g(t.glass ? "card rounded-xl text-card-foreground" : "rounded-xl border border-border bg-card text-card-foreground shadow-sm", n() && "glow-edge", t.class);
|
|
258
258
|
}
|
|
259
259
|
}, l), !1, !0), a(o, () => t.children), o;
|
|
260
260
|
})();
|
|
261
261
|
}
|
|
262
262
|
function dl(e) {
|
|
263
|
-
const [t, l] =
|
|
263
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
264
264
|
return (() => {
|
|
265
|
-
var n =
|
|
266
|
-
return
|
|
265
|
+
var n = Ee();
|
|
266
|
+
return L(n, I({
|
|
267
267
|
get class() {
|
|
268
|
-
return
|
|
268
|
+
return g("flex flex-col space-y-1.5 p-6", t.class);
|
|
269
269
|
}
|
|
270
270
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
271
271
|
})();
|
|
272
272
|
}
|
|
273
273
|
function ul(e) {
|
|
274
|
-
const [t, l] =
|
|
274
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
275
275
|
return (() => {
|
|
276
276
|
var n = ar();
|
|
277
|
-
return
|
|
277
|
+
return L(n, I({
|
|
278
278
|
get class() {
|
|
279
|
-
return
|
|
279
|
+
return g("text-lg font-semibold leading-none tracking-tight", t.class);
|
|
280
280
|
}
|
|
281
281
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
282
282
|
})();
|
|
283
283
|
}
|
|
284
284
|
function sr(e) {
|
|
285
|
-
const [t, l] =
|
|
285
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
286
286
|
return (() => {
|
|
287
|
-
var n =
|
|
288
|
-
return
|
|
287
|
+
var n = Ee();
|
|
288
|
+
return L(n, I({
|
|
289
289
|
get class() {
|
|
290
|
-
return
|
|
290
|
+
return g("p-6 pt-0", t.class);
|
|
291
291
|
}
|
|
292
292
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
293
293
|
})();
|
|
@@ -296,107 +296,109 @@ var cr = /* @__PURE__ */ c('<label><input type=checkbox class="h-4 w-4 rounded b
|
|
|
296
296
|
function gl(e) {
|
|
297
297
|
return (() => {
|
|
298
298
|
var t = cr(), l = t.firstChild;
|
|
299
|
-
return l.addEventListener("change", (n) => e.onChange(n.currentTarget.checked)), a(t, () => e.label, null), S(() =>
|
|
299
|
+
return l.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(() => l.checked = e.checked), t;
|
|
300
300
|
})();
|
|
301
301
|
}
|
|
302
|
-
var dr = /* @__PURE__ */ c('<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="
|
|
303
|
-
const mr = ["
|
|
302
|
+
var dr = /* @__PURE__ */ c('<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">'), ur = /* @__PURE__ */ c('<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>'), gr = /* @__PURE__ */ c("<span>"), fr = /* @__PURE__ */ c("<button type=button>");
|
|
303
|
+
const mr = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], ke = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
304
304
|
function hr(e) {
|
|
305
305
|
const t = e.getFullYear(), l = `${e.getMonth() + 1}`.padStart(2, "0"), n = `${e.getDate()}`.padStart(2, "0");
|
|
306
306
|
return `${t}-${l}-${n}`;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function we(e) {
|
|
309
309
|
const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
310
310
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : null;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
const
|
|
314
|
-
return
|
|
312
|
+
function Pe(e, t) {
|
|
313
|
+
const l = we(e);
|
|
314
|
+
return l ? `${l.getDate()} ${t[l.getMonth()].slice(0, 3)} ${l.getFullYear()}` : null;
|
|
315
315
|
}
|
|
316
316
|
function ze(e, t) {
|
|
317
317
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
318
318
|
}
|
|
319
319
|
function fl(e) {
|
|
320
|
-
const [t, l] =
|
|
320
|
+
const [t, l] = V(!1), n = we(e.value) ?? /* @__PURE__ */ new Date(), [o, i] = V(n.getFullYear()), [s, u] = V(n.getMonth());
|
|
321
321
|
let m, d, b;
|
|
322
|
-
const [_,
|
|
322
|
+
const [_, A] = V({
|
|
323
323
|
top: 0,
|
|
324
324
|
left: 0
|
|
325
|
-
}),
|
|
325
|
+
}), k = 288, D = () => {
|
|
326
326
|
if (!d) return;
|
|
327
|
-
const f = d.getBoundingClientRect(), C = Math.max(8, Math.min(f.left, window.innerWidth -
|
|
328
|
-
|
|
327
|
+
const f = d.getBoundingClientRect(), C = Math.max(8, Math.min(f.left, window.innerWidth - k - 8));
|
|
328
|
+
A({
|
|
329
329
|
top: f.bottom + 4,
|
|
330
330
|
left: C
|
|
331
331
|
});
|
|
332
|
-
},
|
|
332
|
+
}, O = () => {
|
|
333
333
|
if (e.disabled) return;
|
|
334
|
-
const f =
|
|
335
|
-
i(f.getFullYear()),
|
|
336
|
-
},
|
|
334
|
+
const f = we(e.value) ?? /* @__PURE__ */ new Date();
|
|
335
|
+
i(f.getFullYear()), u(f.getMonth()), D(), l(!0);
|
|
336
|
+
}, N = () => l(!1), h = (f) => {
|
|
337
337
|
const C = f.target;
|
|
338
|
-
m && !m.contains(C) && b && !b.contains(C) &&
|
|
339
|
-
},
|
|
340
|
-
f.key === "Escape" &&
|
|
338
|
+
m && !m.contains(C) && b && !b.contains(C) && N();
|
|
339
|
+
}, p = (f) => {
|
|
340
|
+
f.key === "Escape" && N();
|
|
341
341
|
}, v = (f) => {
|
|
342
|
-
f ? (document.addEventListener("mousedown", h), document.addEventListener("keydown",
|
|
342
|
+
f ? (document.addEventListener("mousedown", h), document.addEventListener("keydown", p), window.addEventListener("scroll", N, !0), window.addEventListener("resize", N)) : (document.removeEventListener("mousedown", h), document.removeEventListener("keydown", p), window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N));
|
|
343
343
|
};
|
|
344
|
-
|
|
344
|
+
pe(() => v(t())), ye(() => v(!1));
|
|
345
345
|
const x = () => {
|
|
346
346
|
const f = s();
|
|
347
|
-
f === 0 ? (
|
|
347
|
+
f === 0 ? (u(11), i(o() - 1)) : u(f - 1);
|
|
348
348
|
}, y = () => {
|
|
349
349
|
const f = s();
|
|
350
|
-
f === 11 ? (
|
|
351
|
-
},
|
|
352
|
-
const C = (new Date(o(), s(), 1).getDay() + 6) % 7,
|
|
350
|
+
f === 11 ? (u(0), i(o() + 1)) : u(f + 1);
|
|
351
|
+
}, T = Ae(() => {
|
|
352
|
+
const C = (new Date(o(), s(), 1).getDay() + 6) % 7, R = new Date(o(), s(), 1 - C), U = [];
|
|
353
353
|
for (let te = 0; te < 42; te++)
|
|
354
|
-
|
|
355
|
-
return
|
|
356
|
-
}), $ =
|
|
357
|
-
e.onChange(hr(f)),
|
|
354
|
+
U.push(new Date(R.getFullYear(), R.getMonth(), R.getDate() + te));
|
|
355
|
+
return U;
|
|
356
|
+
}), $ = Ae(() => we(e.value)), Y = /* @__PURE__ */ new Date(), q = (f) => {
|
|
357
|
+
e.onChange(hr(f)), N();
|
|
358
358
|
};
|
|
359
359
|
return (() => {
|
|
360
|
-
var f = ur(), C = f.firstChild,
|
|
361
|
-
typeof
|
|
360
|
+
var f = ur(), C = f.firstChild, R = C.firstChild, U = m;
|
|
361
|
+
typeof U == "function" ? H(U, f) : m = f, C.$$click = () => t() ? N() : O();
|
|
362
362
|
var te = d;
|
|
363
|
-
return typeof te == "function" ?
|
|
363
|
+
return typeof te == "function" ? H(te, C) : d = C, a(R, () => Pe(e.value, e.months ?? ke) ?? e.label ?? "Select date"), a(C, r(vt, {
|
|
364
364
|
class: "h-4 w-4 shrink-0 text-muted-foreground"
|
|
365
|
-
}), null), a(f, r(
|
|
365
|
+
}), null), a(f, r(w, {
|
|
366
366
|
get when() {
|
|
367
367
|
return t();
|
|
368
368
|
},
|
|
369
369
|
get children() {
|
|
370
370
|
return r(mt, {
|
|
371
371
|
get children() {
|
|
372
|
-
var F = dr(), ie = F.firstChild, re = ie.firstChild,
|
|
373
|
-
return typeof
|
|
372
|
+
var F = dr(), ie = F.firstChild, re = ie.firstChild, K = re.nextSibling, it = K.firstChild, Le = K.nextSibling, Ie = ie.nextSibling, st = Ie.nextSibling, Fe = b;
|
|
373
|
+
return typeof Fe == "function" ? H(Fe, F) : b = F, re.$$click = x, a(re, r(Ge, {
|
|
374
374
|
class: "h-4 w-4"
|
|
375
|
-
})), a(
|
|
375
|
+
})), a(K, () => (e.months ?? ke)[s()], it), a(K, o, null), Le.$$click = y, a(Le, r(Xe, {
|
|
376
376
|
class: "h-4 w-4"
|
|
377
377
|
})), a(Ie, r(z, {
|
|
378
|
-
each
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
378
|
+
get each() {
|
|
379
|
+
return e.weekdays ?? mr;
|
|
380
|
+
},
|
|
381
|
+
children: (P) => (() => {
|
|
382
|
+
var G = gr();
|
|
383
|
+
return a(G, P), G;
|
|
382
384
|
})()
|
|
383
385
|
})), a(st, r(z, {
|
|
384
386
|
get each() {
|
|
385
|
-
return
|
|
387
|
+
return T();
|
|
386
388
|
},
|
|
387
|
-
children: (
|
|
388
|
-
const
|
|
389
|
-
const
|
|
390
|
-
return
|
|
391
|
-
}, ct = ze(
|
|
389
|
+
children: (P) => {
|
|
390
|
+
const G = P.getMonth() === s(), Z = () => {
|
|
391
|
+
const W = $();
|
|
392
|
+
return W ? ze(W, P) : !1;
|
|
393
|
+
}, ct = ze(Y, P);
|
|
392
394
|
return (() => {
|
|
393
|
-
var
|
|
394
|
-
return
|
|
395
|
+
var W = fr();
|
|
396
|
+
return W.$$click = () => q(P), a(W, () => P.getDate()), S(() => X(W, 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() && !G && "text-muted-foreground/50", !Z() && G && "text-foreground", !Z() && ct && "ring-1 ring-inset ring-ring"))), W;
|
|
395
397
|
})();
|
|
396
398
|
}
|
|
397
|
-
})), S((
|
|
398
|
-
var
|
|
399
|
-
return
|
|
399
|
+
})), S((P) => {
|
|
400
|
+
var G = `${_().top}px`, Z = `${_().left}px`;
|
|
401
|
+
return G !== P.e && oe(F, "top", P.e = G), Z !== P.t && oe(F, "left", P.t = Z), P;
|
|
400
402
|
}, {
|
|
401
403
|
e: void 0,
|
|
402
404
|
t: void 0
|
|
@@ -405,8 +407,8 @@ function fl(e) {
|
|
|
405
407
|
});
|
|
406
408
|
}
|
|
407
409
|
}), null), S((F) => {
|
|
408
|
-
var ie =
|
|
409
|
-
return ie !== F.e &&
|
|
410
|
+
var ie = g("relative", e.class), re = e.disabled, K = Pe(e.value, e.months ?? ke) ? "" : "text-muted-foreground";
|
|
411
|
+
return ie !== F.e && X(f, F.e = ie), re !== F.t && (C.disabled = F.t = re), K !== F.a && X(R, F.a = K), F;
|
|
410
412
|
}, {
|
|
411
413
|
e: void 0,
|
|
412
414
|
t: void 0,
|
|
@@ -417,7 +419,7 @@ function fl(e) {
|
|
|
417
419
|
ee(["click"]);
|
|
418
420
|
var br = /* @__PURE__ */ c('<p class="text-[12px] text-muted-foreground">'), xr = /* @__PURE__ */ c('<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>'), vr = /* @__PURE__ */ c('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
419
421
|
function ml(e) {
|
|
420
|
-
return r(
|
|
422
|
+
return r(M, {
|
|
421
423
|
get open() {
|
|
422
424
|
return e.open;
|
|
423
425
|
},
|
|
@@ -425,29 +427,29 @@ function ml(e) {
|
|
|
425
427
|
return e.onOpenChange;
|
|
426
428
|
},
|
|
427
429
|
get children() {
|
|
428
|
-
return r(
|
|
430
|
+
return r(M.Portal, {
|
|
429
431
|
get children() {
|
|
430
|
-
return [r(
|
|
432
|
+
return [r(M.Overlay, {
|
|
431
433
|
class: "modal-overlay fixed inset-0 z-40 bg-black/50 backdrop-blur-[2px]"
|
|
432
434
|
}), (() => {
|
|
433
435
|
var t = vr();
|
|
434
|
-
return a(t, r(
|
|
436
|
+
return a(t, r(M.Content, {
|
|
435
437
|
get class() {
|
|
436
|
-
return
|
|
438
|
+
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);
|
|
437
439
|
},
|
|
438
440
|
get children() {
|
|
439
|
-
return [r(
|
|
441
|
+
return [r(w, {
|
|
440
442
|
get when() {
|
|
441
443
|
return e.title;
|
|
442
444
|
},
|
|
443
445
|
get children() {
|
|
444
446
|
var l = xr(), n = l.firstChild;
|
|
445
|
-
return a(n, r(
|
|
447
|
+
return a(n, r(M.Title, {
|
|
446
448
|
class: "text-[16px] font-bold leading-tight",
|
|
447
449
|
get children() {
|
|
448
450
|
return e.title;
|
|
449
451
|
}
|
|
450
|
-
}), null), a(n, r(
|
|
452
|
+
}), null), a(n, r(w, {
|
|
451
453
|
get when() {
|
|
452
454
|
return e.subtitle;
|
|
453
455
|
},
|
|
@@ -455,11 +457,13 @@ function ml(e) {
|
|
|
455
457
|
var o = br();
|
|
456
458
|
return a(o, () => e.subtitle), o;
|
|
457
459
|
}
|
|
458
|
-
}), null), a(l, r(
|
|
460
|
+
}), null), a(l, r(M.CloseButton, {
|
|
459
461
|
class: "grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
460
|
-
"aria-label"
|
|
462
|
+
get "aria-label"() {
|
|
463
|
+
return e.closeLabel ?? "Close";
|
|
464
|
+
},
|
|
461
465
|
get children() {
|
|
462
|
-
return r(
|
|
466
|
+
return r(He, {
|
|
463
467
|
class: "h-5 w-5"
|
|
464
468
|
});
|
|
465
469
|
}
|
|
@@ -485,7 +489,7 @@ function hl(e) {
|
|
|
485
489
|
get children() {
|
|
486
490
|
return [r(ce.Trigger, {
|
|
487
491
|
get class() {
|
|
488
|
-
return
|
|
492
|
+
return g("inline-flex", e.class);
|
|
489
493
|
},
|
|
490
494
|
get "aria-label"() {
|
|
491
495
|
return e.label;
|
|
@@ -504,7 +508,7 @@ function hl(e) {
|
|
|
504
508
|
},
|
|
505
509
|
children: (t) => r(ce.Item, {
|
|
506
510
|
get class() {
|
|
507
|
-
return
|
|
511
|
+
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");
|
|
508
512
|
},
|
|
509
513
|
get disabled() {
|
|
510
514
|
return t.disabled;
|
|
@@ -525,9 +529,9 @@ function hl(e) {
|
|
|
525
529
|
})
|
|
526
530
|
);
|
|
527
531
|
}
|
|
528
|
-
var $r = /* @__PURE__ */ c('<p class="text-xs text-muted-foreground">'),
|
|
532
|
+
var $r = /* @__PURE__ */ c('<p class="text-xs text-muted-foreground">'), wr = /* @__PURE__ */ c('<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>');
|
|
529
533
|
function bl(e) {
|
|
530
|
-
const [t, l] =
|
|
534
|
+
const [t, l] = V(!1);
|
|
531
535
|
let n;
|
|
532
536
|
const o = (i) => {
|
|
533
537
|
if (e.disabled || !i) return;
|
|
@@ -535,7 +539,7 @@ function bl(e) {
|
|
|
535
539
|
s.length && e.onFiles(s);
|
|
536
540
|
};
|
|
537
541
|
return (() => {
|
|
538
|
-
var i =
|
|
542
|
+
var i = wr(), s = i.firstChild, u = s.nextSibling;
|
|
539
543
|
i.addEventListener("drop", (d) => {
|
|
540
544
|
var b;
|
|
541
545
|
d.preventDefault(), l(!1), o((b = d.dataTransfer) == null ? void 0 : b.files);
|
|
@@ -545,7 +549,7 @@ function bl(e) {
|
|
|
545
549
|
e.disabled || (d.key === "Enter" || d.key === " ") && (d.preventDefault(), n == null || n.click());
|
|
546
550
|
}, i.$$click = () => !e.disabled && (n == null ? void 0 : n.click()), a(i, r($t, {
|
|
547
551
|
class: "h-8 w-8 text-muted-foreground"
|
|
548
|
-
}), s), a(s, () => e.label ?? "
|
|
552
|
+
}), s), a(s, () => e.label ?? "Drag files here or click to browse"), a(i, r(w, {
|
|
549
553
|
get when() {
|
|
550
554
|
return e.hint;
|
|
551
555
|
},
|
|
@@ -553,17 +557,17 @@ function bl(e) {
|
|
|
553
557
|
var d = $r();
|
|
554
558
|
return a(d, () => e.hint), d;
|
|
555
559
|
}
|
|
556
|
-
}),
|
|
560
|
+
}), u), u.addEventListener("change", (d) => {
|
|
557
561
|
o(d.currentTarget.files), d.currentTarget.value = "";
|
|
558
562
|
});
|
|
559
563
|
var m = n;
|
|
560
|
-
return typeof m == "function" ?
|
|
561
|
-
var b = e.disabled ? -1 : 0, _ = e.disabled,
|
|
564
|
+
return typeof m == "function" ? H(m, u) : n = u, S((d) => {
|
|
565
|
+
var b = e.disabled ? -1 : 0, _ = e.disabled, A = {
|
|
562
566
|
"border-ring bg-primary/5": t(),
|
|
563
567
|
"border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
|
|
564
568
|
"cursor-not-allowed opacity-60": e.disabled
|
|
565
|
-
},
|
|
566
|
-
return b !== d.e &&
|
|
569
|
+
}, k = e.accept, D = e.multiple, O = e.disabled;
|
|
570
|
+
return b !== d.e && B(i, "tabindex", d.e = b), _ !== d.t && B(i, "aria-disabled", d.t = _), d.a = ht(i, A, d.a), k !== d.o && B(u, "accept", d.o = k), D !== d.i && (u.multiple = d.i = D), O !== d.n && (u.disabled = d.n = O), d;
|
|
567
571
|
}, {
|
|
568
572
|
e: void 0,
|
|
569
573
|
t: void 0,
|
|
@@ -575,15 +579,15 @@ function bl(e) {
|
|
|
575
579
|
})();
|
|
576
580
|
}
|
|
577
581
|
ee(["click", "keydown"]);
|
|
578
|
-
var
|
|
582
|
+
var pr = /* @__PURE__ */ c("<input>");
|
|
579
583
|
const yr = "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";
|
|
580
584
|
function xl(e) {
|
|
581
|
-
const [t, l] =
|
|
585
|
+
const [t, l] = E(e, ["value", "onInput", "class"]);
|
|
582
586
|
return (() => {
|
|
583
|
-
var n =
|
|
584
|
-
return n.$$input = (o) => t.onInput(o.currentTarget.value),
|
|
587
|
+
var n = pr();
|
|
588
|
+
return n.$$input = (o) => t.onInput(o.currentTarget.value), L(n, I({
|
|
585
589
|
get class() {
|
|
586
|
-
return
|
|
590
|
+
return g(yr, t.class);
|
|
587
591
|
},
|
|
588
592
|
get value() {
|
|
589
593
|
return t.value;
|
|
@@ -592,10 +596,10 @@ function xl(e) {
|
|
|
592
596
|
})();
|
|
593
597
|
}
|
|
594
598
|
ee(["input"]);
|
|
595
|
-
var _r = /* @__PURE__ */ c('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'),
|
|
599
|
+
var _r = /* @__PURE__ */ c('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'), Oe = /* @__PURE__ */ c('<div class="p-6 pt-4">'), Cr = /* @__PURE__ */ c('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">'), kr = /* @__PURE__ */ c('<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">'), Sr = /* @__PURE__ */ c('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
596
600
|
function vl(e) {
|
|
597
601
|
const t = () => e.variant === "center";
|
|
598
|
-
return r(
|
|
602
|
+
return r(M, {
|
|
599
603
|
get open() {
|
|
600
604
|
return e.open;
|
|
601
605
|
},
|
|
@@ -603,45 +607,47 @@ function vl(e) {
|
|
|
603
607
|
return e.onOpenChange;
|
|
604
608
|
},
|
|
605
609
|
get children() {
|
|
606
|
-
return r(
|
|
610
|
+
return r(M.Portal, {
|
|
607
611
|
get children() {
|
|
608
|
-
return [r(
|
|
612
|
+
return [r(M.Overlay, {
|
|
609
613
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
610
|
-
}), r(
|
|
614
|
+
}), r(w, {
|
|
611
615
|
get when() {
|
|
612
616
|
return t();
|
|
613
617
|
},
|
|
614
618
|
get fallback() {
|
|
615
619
|
return (() => {
|
|
616
620
|
var l = Sr();
|
|
617
|
-
return a(l, r(
|
|
621
|
+
return a(l, r(M.Content, {
|
|
618
622
|
get class() {
|
|
619
|
-
return
|
|
623
|
+
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);
|
|
620
624
|
},
|
|
621
625
|
get children() {
|
|
622
|
-
return [r(
|
|
626
|
+
return [r(w, {
|
|
623
627
|
get when() {
|
|
624
628
|
return e.title;
|
|
625
629
|
},
|
|
626
630
|
get children() {
|
|
627
631
|
var n = kr();
|
|
628
|
-
return a(n, r(
|
|
632
|
+
return a(n, r(M.Title, {
|
|
629
633
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
630
634
|
get children() {
|
|
631
635
|
return e.title;
|
|
632
636
|
}
|
|
633
|
-
}), null), a(n, r(
|
|
637
|
+
}), null), a(n, r(M.CloseButton, {
|
|
634
638
|
class: "grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
635
|
-
"aria-label"
|
|
639
|
+
get "aria-label"() {
|
|
640
|
+
return e.closeLabel ?? "Close";
|
|
641
|
+
},
|
|
636
642
|
get children() {
|
|
637
|
-
return r(
|
|
643
|
+
return r(He, {
|
|
638
644
|
class: "h-5 w-5"
|
|
639
645
|
});
|
|
640
646
|
}
|
|
641
647
|
}), null), n;
|
|
642
648
|
}
|
|
643
649
|
}), (() => {
|
|
644
|
-
var n =
|
|
650
|
+
var n = Oe();
|
|
645
651
|
return a(n, () => e.children), n;
|
|
646
652
|
})()];
|
|
647
653
|
}
|
|
@@ -650,30 +656,32 @@ function vl(e) {
|
|
|
650
656
|
},
|
|
651
657
|
get children() {
|
|
652
658
|
var l = Cr();
|
|
653
|
-
return a(l, r(
|
|
659
|
+
return a(l, r(M.Content, {
|
|
654
660
|
get class() {
|
|
655
|
-
return
|
|
661
|
+
return g("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
656
662
|
},
|
|
657
663
|
get children() {
|
|
658
|
-
return [r(
|
|
664
|
+
return [r(w, {
|
|
659
665
|
get when() {
|
|
660
666
|
return e.title;
|
|
661
667
|
},
|
|
662
668
|
get children() {
|
|
663
669
|
var n = _r();
|
|
664
|
-
return a(n, r(
|
|
670
|
+
return a(n, r(M.Title, {
|
|
665
671
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
666
672
|
get children() {
|
|
667
673
|
return e.title;
|
|
668
674
|
}
|
|
669
|
-
}), null), a(n, r(
|
|
675
|
+
}), null), a(n, r(M.CloseButton, {
|
|
670
676
|
class: "text-muted-foreground hover:text-foreground",
|
|
671
|
-
"aria-label"
|
|
677
|
+
get "aria-label"() {
|
|
678
|
+
return e.closeLabel ?? "Close";
|
|
679
|
+
},
|
|
672
680
|
children: "✕"
|
|
673
681
|
}), null), n;
|
|
674
682
|
}
|
|
675
683
|
}), (() => {
|
|
676
|
-
var n =
|
|
684
|
+
var n = Oe();
|
|
677
685
|
return a(n, () => e.children), n;
|
|
678
686
|
})()];
|
|
679
687
|
}
|
|
@@ -685,11 +693,11 @@ function vl(e) {
|
|
|
685
693
|
}
|
|
686
694
|
});
|
|
687
695
|
}
|
|
688
|
-
var Tr = /* @__PURE__ */ c('<div class="flex items-center gap-2 text-[12px] text-muted-foreground">'), Mr = /* @__PURE__ */ c('<p class="mt-0.5 text-[13px] text-muted-foreground">'), Er = /* @__PURE__ */ c('<div class="flex items-center gap-2">'),
|
|
696
|
+
var Tr = /* @__PURE__ */ c('<div class="flex items-center gap-2 text-[12px] text-muted-foreground">'), Mr = /* @__PURE__ */ c('<p class="mt-0.5 text-[13px] text-muted-foreground">'), Er = /* @__PURE__ */ c('<div class="flex items-center gap-2">'), Lr = /* @__PURE__ */ c('<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">'), Ir = /* @__PURE__ */ c("<span class=text-muted-foreground/60>/"), Fr = /* @__PURE__ */ c("<span>");
|
|
689
697
|
function $l(e) {
|
|
690
698
|
return (() => {
|
|
691
|
-
var t =
|
|
692
|
-
return a(l, r(
|
|
699
|
+
var t = Lr(), l = t.firstChild, n = l.firstChild;
|
|
700
|
+
return a(l, r(w, {
|
|
693
701
|
get when() {
|
|
694
702
|
var o;
|
|
695
703
|
return (o = e.breadcrumb) == null ? void 0 : o.length;
|
|
@@ -700,23 +708,23 @@ function $l(e) {
|
|
|
700
708
|
get each() {
|
|
701
709
|
return e.breadcrumb;
|
|
702
710
|
},
|
|
703
|
-
children: (i, s) => [r(
|
|
711
|
+
children: (i, s) => [r(w, {
|
|
704
712
|
get when() {
|
|
705
713
|
return s() > 0;
|
|
706
714
|
},
|
|
707
715
|
get children() {
|
|
708
|
-
return
|
|
716
|
+
return Ir();
|
|
709
717
|
}
|
|
710
718
|
}), (() => {
|
|
711
|
-
var
|
|
712
|
-
return a(
|
|
719
|
+
var u = Fr();
|
|
720
|
+
return a(u, i), S(() => {
|
|
713
721
|
var m;
|
|
714
|
-
return
|
|
715
|
-
}),
|
|
722
|
+
return u.classList.toggle("text-foreground", s() === (((m = e.breadcrumb) == null ? void 0 : m.length) ?? 0) - 1);
|
|
723
|
+
}), u;
|
|
716
724
|
})()]
|
|
717
725
|
})), o;
|
|
718
726
|
}
|
|
719
|
-
}), n), a(n, () => e.title), a(l, r(
|
|
727
|
+
}), n), a(n, () => e.title), a(l, r(w, {
|
|
720
728
|
get when() {
|
|
721
729
|
return e.subtitle;
|
|
722
730
|
},
|
|
@@ -724,7 +732,7 @@ function $l(e) {
|
|
|
724
732
|
var o = Mr();
|
|
725
733
|
return a(o, () => e.subtitle), o;
|
|
726
734
|
}
|
|
727
|
-
}), null), a(t, r(
|
|
735
|
+
}), null), a(t, r(w, {
|
|
728
736
|
get when() {
|
|
729
737
|
return e.actions;
|
|
730
738
|
},
|
|
@@ -735,41 +743,45 @@ function $l(e) {
|
|
|
735
743
|
}), null), t;
|
|
736
744
|
})();
|
|
737
745
|
}
|
|
738
|
-
var Ar = /* @__PURE__ */ c('<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"
|
|
739
|
-
function
|
|
746
|
+
var Ar = /* @__PURE__ */ c('<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">');
|
|
747
|
+
function wl(e) {
|
|
740
748
|
return (() => {
|
|
741
|
-
var t = Ar(), l = t.firstChild, n = l.nextSibling, o = n.firstChild, i = o.nextSibling, s = i.
|
|
742
|
-
|
|
743
|
-
var m = i.nextSibling;
|
|
744
|
-
return a(l, () => e.summary), o.$$click = () => e.onChange(e.page - 1), a(o, r(Ye, {
|
|
749
|
+
var t = Ar(), l = t.firstChild, n = l.nextSibling, o = n.firstChild, i = o.nextSibling, s = i.nextSibling;
|
|
750
|
+
return a(l, () => e.summary), o.$$click = () => e.onChange(e.page - 1), a(o, r(Ge, {
|
|
745
751
|
class: "h-4 w-4"
|
|
746
|
-
})), a(i, () =>
|
|
752
|
+
})), a(i, () => {
|
|
753
|
+
var u;
|
|
754
|
+
return (((u = e.labels) == null ? void 0 : u.page) ?? ((m, d) => `Page ${m} of ${d}`))(e.page, e.totalPages);
|
|
755
|
+
}), s.$$click = () => e.onChange(e.page + 1), a(s, r(Xe, {
|
|
747
756
|
class: "h-4 w-4"
|
|
748
|
-
})), S((
|
|
749
|
-
var
|
|
750
|
-
|
|
757
|
+
})), S((u) => {
|
|
758
|
+
var A, k;
|
|
759
|
+
var m = e.page <= 1, d = ((A = e.labels) == null ? void 0 : A.previous) ?? "Previous page", b = e.page >= e.totalPages, _ = ((k = e.labels) == null ? void 0 : k.next) ?? "Next page";
|
|
760
|
+
return m !== u.e && (o.disabled = u.e = m), d !== u.t && B(o, "aria-label", u.t = d), b !== u.a && (s.disabled = u.a = b), _ !== u.o && B(s, "aria-label", u.o = _), u;
|
|
751
761
|
}, {
|
|
752
762
|
e: void 0,
|
|
753
|
-
t: void 0
|
|
763
|
+
t: void 0,
|
|
764
|
+
a: void 0,
|
|
765
|
+
o: void 0
|
|
754
766
|
}), t;
|
|
755
767
|
})();
|
|
756
768
|
}
|
|
757
769
|
ee(["click"]);
|
|
758
770
|
var Dr = /* @__PURE__ */ c("<select>");
|
|
759
771
|
const Rr = "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";
|
|
760
|
-
function
|
|
761
|
-
const [t, l] =
|
|
772
|
+
function pl(e) {
|
|
773
|
+
const [t, l] = E(e, ["value", "onChange", "class", "children"]);
|
|
762
774
|
let n;
|
|
763
|
-
return
|
|
775
|
+
return pe(() => {
|
|
764
776
|
const o = t.value ?? "";
|
|
765
777
|
t.children, n && n.value !== o && (n.value = o);
|
|
766
778
|
}), (() => {
|
|
767
779
|
var o = Dr();
|
|
768
780
|
o.addEventListener("change", (s) => t.onChange(s.currentTarget.value));
|
|
769
781
|
var i = n;
|
|
770
|
-
return typeof i == "function" ?
|
|
782
|
+
return typeof i == "function" ? H(i, o) : n = o, L(o, I({
|
|
771
783
|
get class() {
|
|
772
|
-
return
|
|
784
|
+
return g(Rr, t.class);
|
|
773
785
|
},
|
|
774
786
|
get value() {
|
|
775
787
|
return t.value;
|
|
@@ -777,29 +789,29 @@ function wl(e) {
|
|
|
777
789
|
}, l), !1, !0), a(o, () => t.children), o;
|
|
778
790
|
})();
|
|
779
791
|
}
|
|
780
|
-
var
|
|
781
|
-
function
|
|
792
|
+
var Pr = /* @__PURE__ */ c('<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">');
|
|
793
|
+
function zr(e) {
|
|
782
794
|
return (() => {
|
|
783
|
-
var t =
|
|
795
|
+
var t = Pr();
|
|
784
796
|
return S((l) => {
|
|
785
|
-
var n =
|
|
786
|
-
return n !== l.e &&
|
|
797
|
+
var n = g("h-5 w-5 animate-spin text-muted-foreground", e.class), o = e.label ?? "Loading";
|
|
798
|
+
return n !== l.e && B(t, "class", l.e = n), o !== l.t && B(t, "aria-label", l.t = o), l;
|
|
787
799
|
}, {
|
|
788
800
|
e: void 0,
|
|
789
801
|
t: void 0
|
|
790
802
|
}), t;
|
|
791
803
|
})();
|
|
792
804
|
}
|
|
793
|
-
var Or = /* @__PURE__ */ c("<div>"),
|
|
794
|
-
const
|
|
805
|
+
var Or = /* @__PURE__ */ c("<div>"), Br = /* @__PURE__ */ c('<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">');
|
|
806
|
+
const jr = {
|
|
795
807
|
primary: "bg-primary/15 text-primary",
|
|
796
808
|
success: "bg-emerald-500/15 text-emerald-600",
|
|
797
809
|
danger: "bg-rose-500/15 text-rose-600",
|
|
798
810
|
neutral: "bg-muted text-muted-foreground"
|
|
799
811
|
};
|
|
800
812
|
function yl(e) {
|
|
801
|
-
const t =
|
|
802
|
-
return r(
|
|
813
|
+
const t = lt(), l = Wt(() => e.value), n = () => (e.format ?? ((o) => String(Math.round(o))))(l());
|
|
814
|
+
return r(Lt.div, {
|
|
803
815
|
initial: t ? !1 : {
|
|
804
816
|
opacity: 0,
|
|
805
817
|
y: 8
|
|
@@ -826,16 +838,16 @@ function yl(e) {
|
|
|
826
838
|
return r(sr, {
|
|
827
839
|
class: "flex items-center gap-4 p-5",
|
|
828
840
|
get children() {
|
|
829
|
-
return [r(
|
|
841
|
+
return [r(w, {
|
|
830
842
|
get when() {
|
|
831
843
|
return e.icon;
|
|
832
844
|
},
|
|
833
845
|
get children() {
|
|
834
846
|
var o = Or();
|
|
835
|
-
return a(o, () => e.icon), S(() =>
|
|
847
|
+
return a(o, () => e.icon), S(() => X(o, g("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", jr[e.tone ?? "neutral"]))), o;
|
|
836
848
|
}
|
|
837
849
|
}), (() => {
|
|
838
|
-
var o =
|
|
850
|
+
var o = Br(), i = o.firstChild, s = i.nextSibling;
|
|
839
851
|
return a(i, () => e.label), a(s, n), o;
|
|
840
852
|
})()];
|
|
841
853
|
}
|
|
@@ -847,32 +859,32 @@ function yl(e) {
|
|
|
847
859
|
}
|
|
848
860
|
var Vr = /* @__PURE__ */ c('<div class="w-full overflow-x-auto"><table>'), Nr = /* @__PURE__ */ c("<thead>"), Yr = /* @__PURE__ */ c("<tbody>"), Gr = /* @__PURE__ */ c("<tr>"), Xr = /* @__PURE__ */ c("<th>"), Hr = /* @__PURE__ */ c("<td>");
|
|
849
861
|
function _l(e) {
|
|
850
|
-
const [t, l] =
|
|
862
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
851
863
|
return (() => {
|
|
852
864
|
var n = Vr(), o = n.firstChild;
|
|
853
|
-
return
|
|
865
|
+
return L(o, I({
|
|
854
866
|
get class() {
|
|
855
|
-
return
|
|
867
|
+
return g("w-full border-collapse text-sm", t.class);
|
|
856
868
|
}
|
|
857
869
|
}, l), !1, !0), a(o, () => t.children), n;
|
|
858
870
|
})();
|
|
859
871
|
}
|
|
860
872
|
function Cl(e) {
|
|
861
|
-
const [t, l] =
|
|
873
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
862
874
|
return (() => {
|
|
863
875
|
var n = Nr();
|
|
864
|
-
return
|
|
876
|
+
return L(n, I({
|
|
865
877
|
get class() {
|
|
866
|
-
return
|
|
878
|
+
return g("border-b border-border text-left text-muted-foreground", t.class);
|
|
867
879
|
}
|
|
868
880
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
869
881
|
})();
|
|
870
882
|
}
|
|
871
883
|
function kl(e) {
|
|
872
|
-
const [t, l] =
|
|
884
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
873
885
|
return (() => {
|
|
874
886
|
var n = Yr();
|
|
875
|
-
return
|
|
887
|
+
return L(n, I({
|
|
876
888
|
get class() {
|
|
877
889
|
return t.class;
|
|
878
890
|
}
|
|
@@ -880,41 +892,41 @@ function kl(e) {
|
|
|
880
892
|
})();
|
|
881
893
|
}
|
|
882
894
|
function Sl(e) {
|
|
883
|
-
const [t, l] =
|
|
895
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
884
896
|
return (() => {
|
|
885
897
|
var n = Gr();
|
|
886
|
-
return
|
|
898
|
+
return L(n, I({
|
|
887
899
|
get class() {
|
|
888
|
-
return
|
|
900
|
+
return g("border-b border-border last:border-0 hover:bg-muted/40", t.class);
|
|
889
901
|
}
|
|
890
902
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
891
903
|
})();
|
|
892
904
|
}
|
|
893
905
|
function Tl(e) {
|
|
894
|
-
const [t, l] =
|
|
906
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
895
907
|
return (() => {
|
|
896
908
|
var n = Xr();
|
|
897
|
-
return
|
|
909
|
+
return L(n, I({
|
|
898
910
|
get class() {
|
|
899
|
-
return
|
|
911
|
+
return g("px-3 py-2 text-xs font-semibold uppercase tracking-wide", t.class);
|
|
900
912
|
}
|
|
901
913
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
902
914
|
})();
|
|
903
915
|
}
|
|
904
916
|
function Ml(e) {
|
|
905
|
-
const [t, l] =
|
|
917
|
+
const [t, l] = E(e, ["class", "children"]);
|
|
906
918
|
return (() => {
|
|
907
919
|
var n = Hr();
|
|
908
|
-
return
|
|
920
|
+
return L(n, I({
|
|
909
921
|
get class() {
|
|
910
|
-
return
|
|
922
|
+
return g("px-3 py-2 align-middle", t.class);
|
|
911
923
|
}
|
|
912
924
|
}, l), !1, !0), a(n, () => t.children), n;
|
|
913
925
|
})();
|
|
914
926
|
}
|
|
915
927
|
var qr = /* @__PURE__ */ c("<div><div style=position:relative;width:100%>"), Ur = /* @__PURE__ */ c("<div style=position:absolute;top:0;left:0;width:100%>");
|
|
916
928
|
function El(e) {
|
|
917
|
-
const [t, l] =
|
|
929
|
+
const [t, l] = V(), n = It({
|
|
918
930
|
get count() {
|
|
919
931
|
return e.each.length;
|
|
920
932
|
},
|
|
@@ -924,32 +936,32 @@ function El(e) {
|
|
|
924
936
|
return e.overscan ?? 10;
|
|
925
937
|
}
|
|
926
938
|
});
|
|
927
|
-
return
|
|
939
|
+
return Jt(t, l), (() => {
|
|
928
940
|
var o = qr(), i = o.firstChild;
|
|
929
|
-
return
|
|
941
|
+
return H(l, o), a(i, r(z, {
|
|
930
942
|
get each() {
|
|
931
943
|
return n.getVirtualItems();
|
|
932
944
|
},
|
|
933
945
|
children: (s) => (() => {
|
|
934
|
-
var
|
|
935
|
-
return a(
|
|
946
|
+
var u = Ur();
|
|
947
|
+
return a(u, () => e.children(e.each[s.index], () => s.index)), S((m) => {
|
|
936
948
|
var d = `${s.size}px`, b = `translateY(${s.start}px)`;
|
|
937
|
-
return d !== m.e && oe(
|
|
949
|
+
return d !== m.e && oe(u, "height", m.e = d), b !== m.t && oe(u, "transform", m.t = b), m;
|
|
938
950
|
}, {
|
|
939
951
|
e: void 0,
|
|
940
952
|
t: void 0
|
|
941
|
-
}),
|
|
953
|
+
}), u;
|
|
942
954
|
})()
|
|
943
955
|
})), S((s) => {
|
|
944
|
-
var
|
|
945
|
-
return
|
|
956
|
+
var u = g("overflow-auto", e.class), m = `${n.getTotalSize()}px`;
|
|
957
|
+
return u !== s.e && X(o, s.e = u), m !== s.t && oe(i, "height", s.t = m), s;
|
|
946
958
|
}, {
|
|
947
959
|
e: void 0,
|
|
948
960
|
t: void 0
|
|
949
961
|
}), o;
|
|
950
962
|
})();
|
|
951
963
|
}
|
|
952
|
-
function
|
|
964
|
+
function Ll(e) {
|
|
953
965
|
return r(de, {
|
|
954
966
|
get value() {
|
|
955
967
|
return e.value;
|
|
@@ -973,7 +985,7 @@ function Il(e) {
|
|
|
973
985
|
return t.value;
|
|
974
986
|
},
|
|
975
987
|
get class() {
|
|
976
|
-
return
|
|
988
|
+
return g("px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground", "data-[selected]:text-foreground");
|
|
977
989
|
},
|
|
978
990
|
get children() {
|
|
979
991
|
return t.label;
|
|
@@ -1006,13 +1018,13 @@ const Zr = {
|
|
|
1006
1018
|
error: "border-destructive/30 bg-destructive/10",
|
|
1007
1019
|
info: "border-sky-500/30 bg-sky-500/10"
|
|
1008
1020
|
};
|
|
1009
|
-
function
|
|
1021
|
+
function Se(e, t, l) {
|
|
1010
1022
|
Ft.show((n) => r(le, {
|
|
1011
1023
|
get toastId() {
|
|
1012
1024
|
return n.toastId;
|
|
1013
1025
|
},
|
|
1014
1026
|
get class() {
|
|
1015
|
-
return
|
|
1027
|
+
return g(
|
|
1016
1028
|
// toast-item drives the slide+fade keyframes in styles.css, keyed off
|
|
1017
1029
|
// Kobalte's data-opened/data-closed presence (same animationend-only
|
|
1018
1030
|
// mechanism as Modal).
|
|
@@ -1026,7 +1038,7 @@ function ke(e, t, l) {
|
|
|
1026
1038
|
return a(o, r(le.Title, {
|
|
1027
1039
|
class: "font-semibold",
|
|
1028
1040
|
children: t
|
|
1029
|
-
}), null), a(o, r(
|
|
1041
|
+
}), null), a(o, r(w, {
|
|
1030
1042
|
when: l,
|
|
1031
1043
|
get children() {
|
|
1032
1044
|
return r(le.Description, {
|
|
@@ -1037,16 +1049,16 @@ function ke(e, t, l) {
|
|
|
1037
1049
|
}), null), o;
|
|
1038
1050
|
})(), r(le.CloseButton, {
|
|
1039
1051
|
class: "text-muted-foreground hover:text-foreground",
|
|
1040
|
-
"aria-label": "
|
|
1052
|
+
"aria-label": "Close",
|
|
1041
1053
|
children: "✕"
|
|
1042
1054
|
})];
|
|
1043
1055
|
}
|
|
1044
1056
|
}));
|
|
1045
1057
|
}
|
|
1046
|
-
const
|
|
1047
|
-
success: (e, t) =>
|
|
1048
|
-
error: (e, t) =>
|
|
1049
|
-
info: (e, t) =>
|
|
1058
|
+
const Il = {
|
|
1059
|
+
success: (e, t) => Se("success", e, t),
|
|
1060
|
+
error: (e, t) => Se("error", e, t),
|
|
1061
|
+
info: (e, t) => Se("info", e, t)
|
|
1050
1062
|
};
|
|
1051
1063
|
function Fl() {
|
|
1052
1064
|
return r(le.Region, {
|
|
@@ -1071,7 +1083,7 @@ function Al(e) {
|
|
|
1071
1083
|
return e.disabled;
|
|
1072
1084
|
},
|
|
1073
1085
|
get class() {
|
|
1074
|
-
return
|
|
1086
|
+
return g("inline-flex items-center gap-2", e.class);
|
|
1075
1087
|
},
|
|
1076
1088
|
get children() {
|
|
1077
1089
|
return [r(ue.Input, {}), r(ue.Control, {
|
|
@@ -1081,7 +1093,7 @@ function Al(e) {
|
|
|
1081
1093
|
class: "h-4 w-4 rounded-full bg-white shadow-sm transition-transform data-[checked]:translate-x-4"
|
|
1082
1094
|
});
|
|
1083
1095
|
}
|
|
1084
|
-
}), r(
|
|
1096
|
+
}), r(w, {
|
|
1085
1097
|
get when() {
|
|
1086
1098
|
return e.label;
|
|
1087
1099
|
},
|
|
@@ -1098,7 +1110,7 @@ function Al(e) {
|
|
|
1098
1110
|
});
|
|
1099
1111
|
}
|
|
1100
1112
|
function Dl(e) {
|
|
1101
|
-
return r(
|
|
1113
|
+
return r(J, {
|
|
1102
1114
|
get value() {
|
|
1103
1115
|
return e.value;
|
|
1104
1116
|
},
|
|
@@ -1106,15 +1118,15 @@ function Dl(e) {
|
|
|
1106
1118
|
return e.onChange;
|
|
1107
1119
|
},
|
|
1108
1120
|
get class() {
|
|
1109
|
-
return
|
|
1121
|
+
return g("flex flex-col gap-2", e.class);
|
|
1110
1122
|
},
|
|
1111
1123
|
get children() {
|
|
1112
|
-
return [r(
|
|
1124
|
+
return [r(w, {
|
|
1113
1125
|
get when() {
|
|
1114
1126
|
return e.label;
|
|
1115
1127
|
},
|
|
1116
1128
|
get children() {
|
|
1117
|
-
return r(
|
|
1129
|
+
return r(J.Label, {
|
|
1118
1130
|
class: "text-sm font-medium text-foreground",
|
|
1119
1131
|
get children() {
|
|
1120
1132
|
return e.label;
|
|
@@ -1125,7 +1137,7 @@ function Dl(e) {
|
|
|
1125
1137
|
get each() {
|
|
1126
1138
|
return e.options;
|
|
1127
1139
|
},
|
|
1128
|
-
children: (t) => r(
|
|
1140
|
+
children: (t) => r(J.Item, {
|
|
1129
1141
|
get value() {
|
|
1130
1142
|
return t.value;
|
|
1131
1143
|
},
|
|
@@ -1134,14 +1146,14 @@ function Dl(e) {
|
|
|
1134
1146
|
},
|
|
1135
1147
|
class: "flex items-center gap-2 text-sm text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
1136
1148
|
get children() {
|
|
1137
|
-
return [r(
|
|
1149
|
+
return [r(J.ItemInput, {}), r(J.ItemControl, {
|
|
1138
1150
|
class: "grid h-4 w-4 place-items-center rounded-full border border-input transition-colors data-[checked]:border-primary",
|
|
1139
1151
|
get children() {
|
|
1140
|
-
return r(
|
|
1152
|
+
return r(J.ItemIndicator, {
|
|
1141
1153
|
class: "h-2 w-2 rounded-full bg-primary"
|
|
1142
1154
|
});
|
|
1143
1155
|
}
|
|
1144
|
-
}), r(
|
|
1156
|
+
}), r(J.ItemLabel, {
|
|
1145
1157
|
get children() {
|
|
1146
1158
|
return t.label;
|
|
1147
1159
|
}
|
|
@@ -1153,14 +1165,14 @@ function Dl(e) {
|
|
|
1153
1165
|
});
|
|
1154
1166
|
}
|
|
1155
1167
|
var Wr = /* @__PURE__ */ c("<textarea>");
|
|
1156
|
-
const
|
|
1168
|
+
const Jr = "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";
|
|
1157
1169
|
function Rl(e) {
|
|
1158
|
-
const [t, l] =
|
|
1170
|
+
const [t, l] = E(e, ["value", "onInput", "class"]);
|
|
1159
1171
|
return (() => {
|
|
1160
1172
|
var n = Wr();
|
|
1161
|
-
return n.$$input = (o) => t.onInput(o.currentTarget.value),
|
|
1173
|
+
return n.$$input = (o) => t.onInput(o.currentTarget.value), L(n, I({
|
|
1162
1174
|
get class() {
|
|
1163
|
-
return
|
|
1175
|
+
return g(Jr, t.class);
|
|
1164
1176
|
},
|
|
1165
1177
|
get value() {
|
|
1166
1178
|
return t.value;
|
|
@@ -1169,7 +1181,7 @@ function Rl(e) {
|
|
|
1169
1181
|
})();
|
|
1170
1182
|
}
|
|
1171
1183
|
ee(["input"]);
|
|
1172
|
-
function
|
|
1184
|
+
function Pl(e) {
|
|
1173
1185
|
return r(ge, {
|
|
1174
1186
|
get children() {
|
|
1175
1187
|
return [r(ge.Trigger, {
|
|
@@ -1181,7 +1193,7 @@ function zl(e) {
|
|
|
1181
1193
|
get children() {
|
|
1182
1194
|
return r(ge.Content, {
|
|
1183
1195
|
get class() {
|
|
1184
|
-
return
|
|
1196
|
+
return g("z-50 rounded-md border border-border bg-card px-2.5 py-1.5 text-xs text-card-foreground shadow-md", e.class);
|
|
1185
1197
|
},
|
|
1186
1198
|
get children() {
|
|
1187
1199
|
return [r(ge.Arrow, {}), ae(() => e.content)];
|
|
@@ -1192,7 +1204,7 @@ function zl(e) {
|
|
|
1192
1204
|
}
|
|
1193
1205
|
});
|
|
1194
1206
|
}
|
|
1195
|
-
function
|
|
1207
|
+
function zl(e) {
|
|
1196
1208
|
return r(fe, {
|
|
1197
1209
|
get children() {
|
|
1198
1210
|
return [r(fe.Trigger, {
|
|
@@ -1204,7 +1216,7 @@ function Pl(e) {
|
|
|
1204
1216
|
get children() {
|
|
1205
1217
|
return r(fe.Content, {
|
|
1206
1218
|
get class() {
|
|
1207
|
-
return
|
|
1219
|
+
return g("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
|
|
1208
1220
|
},
|
|
1209
1221
|
get children() {
|
|
1210
1222
|
return [r(fe.Arrow, {}), ae(() => e.children)];
|
|
@@ -1227,7 +1239,7 @@ function Ol(e) {
|
|
|
1227
1239
|
get children() {
|
|
1228
1240
|
return r(me.Content, {
|
|
1229
1241
|
get class() {
|
|
1230
|
-
return
|
|
1242
|
+
return g("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
|
|
1231
1243
|
},
|
|
1232
1244
|
get children() {
|
|
1233
1245
|
return [r(me.Arrow, {}), ae(() => e.children)];
|
|
@@ -1238,7 +1250,7 @@ function Ol(e) {
|
|
|
1238
1250
|
}
|
|
1239
1251
|
});
|
|
1240
1252
|
}
|
|
1241
|
-
var
|
|
1253
|
+
var Qr = /* @__PURE__ */ c("<p class=font-semibold>"), en = /* @__PURE__ */ c("<div class=flex-1><div class=text-muted-foreground>");
|
|
1242
1254
|
const tn = {
|
|
1243
1255
|
info: {
|
|
1244
1256
|
wrap: "border-sky-500/30 bg-sky-500/10",
|
|
@@ -1253,19 +1265,19 @@ const tn = {
|
|
|
1253
1265
|
warning: {
|
|
1254
1266
|
wrap: "border-amber-500/30 bg-amber-500/10",
|
|
1255
1267
|
icon: "text-amber-500",
|
|
1256
|
-
Icon:
|
|
1268
|
+
Icon: pt
|
|
1257
1269
|
},
|
|
1258
1270
|
danger: {
|
|
1259
1271
|
wrap: "border-rose-500/30 bg-rose-500/10",
|
|
1260
1272
|
icon: "text-rose-500",
|
|
1261
|
-
Icon:
|
|
1273
|
+
Icon: wt
|
|
1262
1274
|
}
|
|
1263
1275
|
};
|
|
1264
|
-
function
|
|
1276
|
+
function Bl(e) {
|
|
1265
1277
|
const t = () => tn[e.tone ?? "info"];
|
|
1266
1278
|
return r(At, {
|
|
1267
1279
|
get class() {
|
|
1268
|
-
return
|
|
1280
|
+
return g("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
|
|
1269
1281
|
},
|
|
1270
1282
|
get children() {
|
|
1271
1283
|
return [r(bt, {
|
|
@@ -1273,16 +1285,16 @@ function jl(e) {
|
|
|
1273
1285
|
return t().Icon;
|
|
1274
1286
|
},
|
|
1275
1287
|
get class() {
|
|
1276
|
-
return
|
|
1288
|
+
return g("mt-0.5 h-4 w-4 shrink-0", t().icon);
|
|
1277
1289
|
}
|
|
1278
1290
|
}), (() => {
|
|
1279
1291
|
var l = en(), n = l.firstChild;
|
|
1280
|
-
return a(l, r(
|
|
1292
|
+
return a(l, r(w, {
|
|
1281
1293
|
get when() {
|
|
1282
1294
|
return e.title;
|
|
1283
1295
|
},
|
|
1284
1296
|
get children() {
|
|
1285
|
-
var o =
|
|
1297
|
+
var o = Qr();
|
|
1286
1298
|
return a(o, () => e.title), o;
|
|
1287
1299
|
}
|
|
1288
1300
|
}), n), a(n, () => e.children), l;
|
|
@@ -1290,10 +1302,10 @@ function jl(e) {
|
|
|
1290
1302
|
}
|
|
1291
1303
|
});
|
|
1292
1304
|
}
|
|
1293
|
-
function
|
|
1305
|
+
function jl(e) {
|
|
1294
1306
|
return r(_e, {
|
|
1295
1307
|
get class() {
|
|
1296
|
-
return
|
|
1308
|
+
return g("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted", e.class);
|
|
1297
1309
|
},
|
|
1298
1310
|
get children() {
|
|
1299
1311
|
return [r(_e.Img, {
|
|
@@ -1317,7 +1329,7 @@ var rn = /* @__PURE__ */ c("<div>");
|
|
|
1317
1329
|
function Vl(e) {
|
|
1318
1330
|
return (() => {
|
|
1319
1331
|
var t = rn();
|
|
1320
|
-
return S(() =>
|
|
1332
|
+
return S(() => X(t, g("animate-pulse rounded-md bg-muted", e.class))), t;
|
|
1321
1333
|
})();
|
|
1322
1334
|
}
|
|
1323
1335
|
function Nl(e) {
|
|
@@ -1327,7 +1339,7 @@ function Nl(e) {
|
|
|
1327
1339
|
return t();
|
|
1328
1340
|
},
|
|
1329
1341
|
get class() {
|
|
1330
|
-
return
|
|
1342
|
+
return g("bg-border", t() === "vertical" ? "w-px self-stretch" : "h-px w-full", e.class);
|
|
1331
1343
|
}
|
|
1332
1344
|
});
|
|
1333
1345
|
}
|
|
@@ -1342,10 +1354,10 @@ function Yl(e) {
|
|
|
1342
1354
|
return e.max ?? 100;
|
|
1343
1355
|
},
|
|
1344
1356
|
get class() {
|
|
1345
|
-
return
|
|
1357
|
+
return g("flex flex-col gap-1.5", e.class);
|
|
1346
1358
|
},
|
|
1347
1359
|
get children() {
|
|
1348
|
-
return [r(
|
|
1360
|
+
return [r(w, {
|
|
1349
1361
|
get when() {
|
|
1350
1362
|
return e.label;
|
|
1351
1363
|
},
|
|
@@ -1381,10 +1393,10 @@ function Gl(e) {
|
|
|
1381
1393
|
return e.max ?? 100;
|
|
1382
1394
|
},
|
|
1383
1395
|
get class() {
|
|
1384
|
-
return
|
|
1396
|
+
return g("flex flex-col gap-1.5", e.class);
|
|
1385
1397
|
},
|
|
1386
1398
|
get children() {
|
|
1387
|
-
return [r(
|
|
1399
|
+
return [r(w, {
|
|
1388
1400
|
get when() {
|
|
1389
1401
|
return e.label;
|
|
1390
1402
|
},
|
|
@@ -1426,10 +1438,10 @@ function Xl(e) {
|
|
|
1426
1438
|
return e.step ?? 1;
|
|
1427
1439
|
},
|
|
1428
1440
|
get class() {
|
|
1429
|
-
return
|
|
1441
|
+
return g("flex flex-col gap-2", e.class);
|
|
1430
1442
|
},
|
|
1431
1443
|
get children() {
|
|
1432
|
-
return [r(
|
|
1444
|
+
return [r(w, {
|
|
1433
1445
|
get when() {
|
|
1434
1446
|
return e.label;
|
|
1435
1447
|
},
|
|
@@ -1459,7 +1471,7 @@ function Xl(e) {
|
|
|
1459
1471
|
}
|
|
1460
1472
|
});
|
|
1461
1473
|
}
|
|
1462
|
-
const
|
|
1474
|
+
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";
|
|
1463
1475
|
function Hl(e) {
|
|
1464
1476
|
return r($e, {
|
|
1465
1477
|
get rawValue() {
|
|
@@ -1473,12 +1485,12 @@ function Hl(e) {
|
|
|
1473
1485
|
return e.max;
|
|
1474
1486
|
},
|
|
1475
1487
|
get class() {
|
|
1476
|
-
return
|
|
1488
|
+
return g("inline-flex items-stretch", e.class);
|
|
1477
1489
|
},
|
|
1478
1490
|
get children() {
|
|
1479
1491
|
return [r($e.DecrementTrigger, {
|
|
1480
1492
|
get class() {
|
|
1481
|
-
return
|
|
1493
|
+
return g(Be, "rounded-l-md");
|
|
1482
1494
|
},
|
|
1483
1495
|
"aria-label": "Decrement",
|
|
1484
1496
|
children: "−"
|
|
@@ -1486,7 +1498,7 @@ function Hl(e) {
|
|
|
1486
1498
|
class: "w-16 border-y border-input bg-background px-3 py-2 text-center text-sm text-foreground outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30"
|
|
1487
1499
|
}), r($e.IncrementTrigger, {
|
|
1488
1500
|
get class() {
|
|
1489
|
-
return
|
|
1501
|
+
return g(Be, "rounded-r-md");
|
|
1490
1502
|
},
|
|
1491
1503
|
"aria-label": "Increment",
|
|
1492
1504
|
children: "+"
|
|
@@ -1503,7 +1515,7 @@ function ql(e) {
|
|
|
1503
1515
|
return e.onChange;
|
|
1504
1516
|
},
|
|
1505
1517
|
get class() {
|
|
1506
|
-
return
|
|
1518
|
+
return g(
|
|
1507
1519
|
// Outlined at rest so it reads as a button; filled primary when pressed
|
|
1508
1520
|
// so the "on" state is unmistakable (the resting muted look alone made it
|
|
1509
1521
|
// look like stray text).
|
|
@@ -1517,7 +1529,7 @@ function ql(e) {
|
|
|
1517
1529
|
});
|
|
1518
1530
|
}
|
|
1519
1531
|
function Ul(e) {
|
|
1520
|
-
return r(
|
|
1532
|
+
return r(De, {
|
|
1521
1533
|
get value() {
|
|
1522
1534
|
return e.value;
|
|
1523
1535
|
},
|
|
@@ -1525,14 +1537,14 @@ function Ul(e) {
|
|
|
1525
1537
|
return e.onChange;
|
|
1526
1538
|
},
|
|
1527
1539
|
get class() {
|
|
1528
|
-
return
|
|
1540
|
+
return g("inline-flex gap-1 rounded-md border border-border bg-card p-1", e.class);
|
|
1529
1541
|
},
|
|
1530
1542
|
get children() {
|
|
1531
1543
|
return r(z, {
|
|
1532
1544
|
get each() {
|
|
1533
1545
|
return e.options;
|
|
1534
1546
|
},
|
|
1535
|
-
children: (t) => r(
|
|
1547
|
+
children: (t) => r(De.Item, {
|
|
1536
1548
|
get value() {
|
|
1537
1549
|
return t.value;
|
|
1538
1550
|
},
|
|
@@ -1554,7 +1566,7 @@ function Kl(e) {
|
|
|
1554
1566
|
return e.onChange;
|
|
1555
1567
|
},
|
|
1556
1568
|
get class() {
|
|
1557
|
-
return
|
|
1569
|
+
return g("relative inline-flex rounded-md border border-border bg-card p-1", e.class);
|
|
1558
1570
|
},
|
|
1559
1571
|
get children() {
|
|
1560
1572
|
return [r(xe.Indicator, {
|
|
@@ -1584,7 +1596,7 @@ var an = /* @__PURE__ */ c('<ol class="flex items-center gap-2 text-muted-foregr
|
|
|
1584
1596
|
function Zl(e) {
|
|
1585
1597
|
return r(Ce, {
|
|
1586
1598
|
get class() {
|
|
1587
|
-
return
|
|
1599
|
+
return g("text-sm", e.class);
|
|
1588
1600
|
},
|
|
1589
1601
|
get children() {
|
|
1590
1602
|
var t = an();
|
|
@@ -1596,14 +1608,14 @@ function Zl(e) {
|
|
|
1596
1608
|
const o = () => n() === e.items.length - 1;
|
|
1597
1609
|
return (() => {
|
|
1598
1610
|
var i = sn();
|
|
1599
|
-
return a(i, r(
|
|
1611
|
+
return a(i, r(w, {
|
|
1600
1612
|
get when() {
|
|
1601
1613
|
return ae(() => !!l.href)() && !o();
|
|
1602
1614
|
},
|
|
1603
1615
|
get fallback() {
|
|
1604
1616
|
return (() => {
|
|
1605
1617
|
var s = cn();
|
|
1606
|
-
return a(s, () => l.label), S(() =>
|
|
1618
|
+
return a(s, () => l.label), S(() => X(s, o() ? "font-medium text-foreground" : void 0)), s;
|
|
1607
1619
|
})();
|
|
1608
1620
|
},
|
|
1609
1621
|
get children() {
|
|
@@ -1617,7 +1629,7 @@ function Zl(e) {
|
|
|
1617
1629
|
}
|
|
1618
1630
|
});
|
|
1619
1631
|
}
|
|
1620
|
-
}), null), a(i, r(
|
|
1632
|
+
}), null), a(i, r(w, {
|
|
1621
1633
|
get when() {
|
|
1622
1634
|
return !o();
|
|
1623
1635
|
},
|
|
@@ -1651,11 +1663,11 @@ function Wl(e) {
|
|
|
1651
1663
|
var t = un();
|
|
1652
1664
|
return a(t, r(ne.Content, {
|
|
1653
1665
|
get class() {
|
|
1654
|
-
return
|
|
1666
|
+
return g("modal-content w-full max-w-md rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
1655
1667
|
},
|
|
1656
1668
|
get children() {
|
|
1657
1669
|
var l = dn();
|
|
1658
|
-
return a(l, r(
|
|
1670
|
+
return a(l, r(w, {
|
|
1659
1671
|
get when() {
|
|
1660
1672
|
return e.title;
|
|
1661
1673
|
},
|
|
@@ -1681,12 +1693,12 @@ function Wl(e) {
|
|
|
1681
1693
|
}
|
|
1682
1694
|
});
|
|
1683
1695
|
}
|
|
1684
|
-
function
|
|
1696
|
+
function Jl(e) {
|
|
1685
1697
|
return r(ve, {
|
|
1686
1698
|
get children() {
|
|
1687
1699
|
return [r(ve.Trigger, {
|
|
1688
1700
|
get class() {
|
|
1689
|
-
return
|
|
1701
|
+
return g("inline-flex", e.class);
|
|
1690
1702
|
},
|
|
1691
1703
|
get children() {
|
|
1692
1704
|
return e.children;
|
|
@@ -1702,7 +1714,7 @@ function Ql(e) {
|
|
|
1702
1714
|
},
|
|
1703
1715
|
children: (t) => r(ve.Item, {
|
|
1704
1716
|
get class() {
|
|
1705
|
-
return
|
|
1717
|
+
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");
|
|
1706
1718
|
},
|
|
1707
1719
|
get disabled() {
|
|
1708
1720
|
return t.disabled;
|
|
@@ -1722,8 +1734,8 @@ function Ql(e) {
|
|
|
1722
1734
|
}
|
|
1723
1735
|
});
|
|
1724
1736
|
}
|
|
1725
|
-
function
|
|
1726
|
-
return r(
|
|
1737
|
+
function Ql(e) {
|
|
1738
|
+
return r(j, {
|
|
1727
1739
|
get options() {
|
|
1728
1740
|
return e.options;
|
|
1729
1741
|
},
|
|
@@ -1735,19 +1747,19 @@ function Jl(e) {
|
|
|
1735
1747
|
return e.placeholder;
|
|
1736
1748
|
},
|
|
1737
1749
|
get class() {
|
|
1738
|
-
return
|
|
1750
|
+
return g("w-full", e.class);
|
|
1739
1751
|
},
|
|
1740
|
-
itemComponent: (t) => r(
|
|
1752
|
+
itemComponent: (t) => r(j.Item, {
|
|
1741
1753
|
get item() {
|
|
1742
1754
|
return t.item;
|
|
1743
1755
|
},
|
|
1744
1756
|
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",
|
|
1745
1757
|
get children() {
|
|
1746
|
-
return [r(
|
|
1758
|
+
return [r(j.ItemLabel, {
|
|
1747
1759
|
get children() {
|
|
1748
1760
|
return t.item.rawValue;
|
|
1749
1761
|
}
|
|
1750
|
-
}), r(
|
|
1762
|
+
}), r(j.ItemIndicator, {
|
|
1751
1763
|
get children() {
|
|
1752
1764
|
return r(kt, {
|
|
1753
1765
|
class: "h-4 w-4"
|
|
@@ -1757,15 +1769,15 @@ function Jl(e) {
|
|
|
1757
1769
|
}
|
|
1758
1770
|
}),
|
|
1759
1771
|
get children() {
|
|
1760
|
-
return [r(
|
|
1772
|
+
return [r(j.Control, {
|
|
1761
1773
|
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",
|
|
1762
1774
|
get children() {
|
|
1763
|
-
return [r(
|
|
1775
|
+
return [r(j.Input, {
|
|
1764
1776
|
class: "w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
|
|
1765
|
-
}), r(
|
|
1777
|
+
}), r(j.Trigger, {
|
|
1766
1778
|
class: "grid h-9 w-9 shrink-0 place-items-center text-muted-foreground",
|
|
1767
1779
|
get children() {
|
|
1768
|
-
return r(
|
|
1780
|
+
return r(j.Icon, {
|
|
1769
1781
|
get children() {
|
|
1770
1782
|
return r(Ct, {
|
|
1771
1783
|
class: "h-4 w-4"
|
|
@@ -1775,12 +1787,12 @@ function Jl(e) {
|
|
|
1775
1787
|
}
|
|
1776
1788
|
})];
|
|
1777
1789
|
}
|
|
1778
|
-
}), r(
|
|
1790
|
+
}), r(j.Portal, {
|
|
1779
1791
|
get children() {
|
|
1780
|
-
return r(
|
|
1792
|
+
return r(j.Content, {
|
|
1781
1793
|
class: "z-50 overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
|
|
1782
1794
|
get children() {
|
|
1783
|
-
return r(
|
|
1795
|
+
return r(j.Listbox, {
|
|
1784
1796
|
class: "max-h-60 overflow-y-auto"
|
|
1785
1797
|
});
|
|
1786
1798
|
}
|
|
@@ -1823,58 +1835,58 @@ function vn(e) {
|
|
|
1823
1835
|
const t = Math.random, l = () => e[Math.floor(t() * e.length)];
|
|
1824
1836
|
let n = "";
|
|
1825
1837
|
for (let o = 0; o < bn; o++) {
|
|
1826
|
-
const i = t() < 0.12, s = i ? 3 + t() * 1.8 : 1.2 + t() * 1.8,
|
|
1827
|
-
n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${s.toFixed(1)}px;height:${s.toFixed(1)}px;border-radius:50%;background:rgba(${d},${
|
|
1838
|
+
const i = t() < 0.12, s = 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, d = l(), b = t() < 0.4 ? `animation:twinkle ${(2.6 + t() * 3.5).toFixed(1)}s ease-in-out ${(t() * 4).toFixed(1)}s infinite;` : "";
|
|
1839
|
+
n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${s.toFixed(1)}px;height:${s.toFixed(1)}px;border-radius:50%;background:rgba(${d},${u.toFixed(2)});box-shadow:0 0 ${m.toFixed(1)}px rgba(${d},${(u * 0.8).toFixed(2)});${b}"></span>`;
|
|
1828
1840
|
}
|
|
1829
1841
|
for (let o = 0; o < xn; o++) {
|
|
1830
|
-
const i = l(), s = (1.8 + t() * 1.8).toFixed(1),
|
|
1831
|
-
n += `<span style="position:absolute;left:${_};top:${d}%;width:${s}px;height:${s}px;border-radius:50%;background:rgba(${i},${
|
|
1842
|
+
const i = l(), s = (1.8 + t() * 1.8).toFixed(1), u = (0.7 + t() * 0.3).toFixed(2), m = (4 + t() * 6).toFixed(1), d = (4 + t() * 86).toFixed(1), b = t() < 0.5, _ = b ? "106%" : "-6%", A = b ? "-118vw" : "118vw", k = `${((t() * 2 - 1) * 16).toFixed(1)}vh`, D = 34 + t() * 34, O = (-t() * D).toFixed(1);
|
|
1843
|
+
n += `<span style="position:absolute;left:${_};top:${d}%;width:${s}px;height:${s}px;border-radius:50%;background:rgba(${i},${u});box-shadow:0 0 ${m}px rgba(${i},${(Number(u) * 0.8).toFixed(2)});--dx:${A};--dy:${k};animation:starDrift ${D.toFixed(1)}s linear ${O}s infinite;"></span>`;
|
|
1832
1844
|
}
|
|
1833
1845
|
return n;
|
|
1834
1846
|
}
|
|
1835
1847
|
function $n() {
|
|
1836
1848
|
let e, t;
|
|
1837
|
-
const l =
|
|
1838
|
-
return
|
|
1849
|
+
const l = Je();
|
|
1850
|
+
return pe(() => {
|
|
1839
1851
|
const n = l() === "light" ? mn : fn;
|
|
1840
1852
|
t && (t.innerHTML = vn(n));
|
|
1841
|
-
}),
|
|
1842
|
-
const n = [], o = [], i = (h,
|
|
1843
|
-
h.addEventListener(
|
|
1853
|
+
}), Ye(() => {
|
|
1854
|
+
const n = [], o = [], i = (h, p, v, x) => {
|
|
1855
|
+
h.addEventListener(p, v, x), n.push(() => h.removeEventListener(p, v, x));
|
|
1844
1856
|
};
|
|
1845
|
-
let s = 0,
|
|
1857
|
+
let s = 0, u = 0, m = 0;
|
|
1846
1858
|
const d = () => {
|
|
1847
|
-
s = 0, t && (t.style.transform = `translate3d(${
|
|
1848
|
-
h.style.transform = `translate3d(${(
|
|
1859
|
+
s = 0, t && (t.style.transform = `translate3d(${u.toFixed(1)}px, ${m.toFixed(1)}px, 0)`), e.querySelectorAll(".constellation").forEach((h) => {
|
|
1860
|
+
h.style.transform = `translate3d(${(u * 1.8).toFixed(1)}px, ${(m * 1.8).toFixed(1)}px, 0)`;
|
|
1849
1861
|
});
|
|
1850
1862
|
};
|
|
1851
1863
|
let b = null, _ = null;
|
|
1852
|
-
const
|
|
1853
|
-
if (
|
|
1864
|
+
const A = (h) => {
|
|
1865
|
+
if (Te() || h.gamma == null || h.beta == null) return;
|
|
1854
1866
|
b === null && (b = h.gamma, _ = h.beta);
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1857
|
-
},
|
|
1858
|
-
if (
|
|
1859
|
-
if (typeof
|
|
1867
|
+
const p = Math.max(-25, Math.min(25, h.gamma - b)), v = Math.max(-25, Math.min(25, h.beta - (_ ?? 0)));
|
|
1868
|
+
u = p / 25 * 16, m = v / 25 * 16, s || (s = requestAnimationFrame(d));
|
|
1869
|
+
}, k = window.DeviceOrientationEvent;
|
|
1870
|
+
if (k)
|
|
1871
|
+
if (typeof k.requestPermission == "function") {
|
|
1860
1872
|
let h = !1;
|
|
1861
|
-
const
|
|
1873
|
+
const p = () => {
|
|
1862
1874
|
var v;
|
|
1863
|
-
h || (v =
|
|
1864
|
-
x === "granted" && (h = !0, i(window, "deviceorientation",
|
|
1875
|
+
h || (v = k.requestPermission) == null || v.call(k).then((x) => {
|
|
1876
|
+
x === "granted" && (h = !0, i(window, "deviceorientation", A));
|
|
1865
1877
|
}).catch(() => {
|
|
1866
1878
|
});
|
|
1867
1879
|
};
|
|
1868
|
-
i(window, "click",
|
|
1880
|
+
i(window, "click", p), i(window, "touchend", p);
|
|
1869
1881
|
} else
|
|
1870
|
-
i(window, "deviceorientation",
|
|
1882
|
+
i(window, "deviceorientation", A);
|
|
1871
1883
|
n.push(() => {
|
|
1872
1884
|
s && cancelAnimationFrame(s);
|
|
1873
1885
|
});
|
|
1874
|
-
const
|
|
1886
|
+
const D = (h, p, v, x, y, T) => {
|
|
1875
1887
|
const $ = document.createElement("div");
|
|
1876
|
-
$.className = "shooter", $.style.width = `${x}px`, $.style.left = h, $.style.top =
|
|
1877
|
-
const
|
|
1888
|
+
$.className = "shooter", $.style.width = `${x}px`, $.style.left = h, $.style.top = p, e.appendChild($);
|
|
1889
|
+
const Y = $.animate([{
|
|
1878
1890
|
opacity: 0,
|
|
1879
1891
|
transform: `rotate(${v}deg) translateX(0px) scaleX(.4)`
|
|
1880
1892
|
}, {
|
|
@@ -1885,38 +1897,38 @@ function $n() {
|
|
|
1885
1897
|
opacity: 0,
|
|
1886
1898
|
transform: `rotate(${v}deg) translateX(${y}px) scaleX(1)`
|
|
1887
1899
|
}], {
|
|
1888
|
-
duration:
|
|
1900
|
+
duration: T,
|
|
1889
1901
|
easing: "cubic-bezier(.3,0,.15,1)",
|
|
1890
1902
|
fill: "forwards"
|
|
1891
1903
|
});
|
|
1892
|
-
|
|
1893
|
-
},
|
|
1894
|
-
const $ = document.createElement("div"),
|
|
1895
|
-
$.style.cssText = `position:absolute;left:${h};top:${
|
|
1896
|
-
const
|
|
1904
|
+
Y.onfinish = () => $.remove(), o.push(window.setTimeout(() => $.remove(), T + 250));
|
|
1905
|
+
}, O = (h, p, v, x, y, T) => {
|
|
1906
|
+
const $ = document.createElement("div"), Y = x * (82 / 24);
|
|
1907
|
+
$.style.cssText = `position:absolute;left:${h};top:${p};width:${x.toFixed(0)}px;height:${Y.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, $.innerHTML = hn, e.appendChild($);
|
|
1908
|
+
const q = v * Math.PI / 180, f = Math.cos(q) * y, C = Math.sin(q) * y, R = v + 90, U = $.animate([{
|
|
1897
1909
|
opacity: 0,
|
|
1898
|
-
transform: `translate(0px,0px) rotate(${
|
|
1910
|
+
transform: `translate(0px,0px) rotate(${R}deg) scale(.5)`
|
|
1899
1911
|
}, {
|
|
1900
1912
|
opacity: 1,
|
|
1901
|
-
transform: `translate(${(f * 0.12).toFixed(0)}px,${(C * 0.12).toFixed(0)}px) rotate(${
|
|
1913
|
+
transform: `translate(${(f * 0.12).toFixed(0)}px,${(C * 0.12).toFixed(0)}px) rotate(${R}deg) scale(1)`,
|
|
1902
1914
|
offset: 0.14
|
|
1903
1915
|
}, {
|
|
1904
1916
|
opacity: 1,
|
|
1905
|
-
transform: `translate(${(f * 0.82).toFixed(0)}px,${(C * 0.82).toFixed(0)}px) rotate(${
|
|
1917
|
+
transform: `translate(${(f * 0.82).toFixed(0)}px,${(C * 0.82).toFixed(0)}px) rotate(${R}deg) scale(1)`,
|
|
1906
1918
|
offset: 0.82
|
|
1907
1919
|
}, {
|
|
1908
1920
|
opacity: 0,
|
|
1909
|
-
transform: `translate(${f.toFixed(0)}px,${C.toFixed(0)}px) rotate(${
|
|
1921
|
+
transform: `translate(${f.toFixed(0)}px,${C.toFixed(0)}px) rotate(${R}deg) scale(.85)`
|
|
1910
1922
|
}], {
|
|
1911
|
-
duration:
|
|
1923
|
+
duration: T,
|
|
1912
1924
|
easing: "cubic-bezier(.25,0,.2,1)",
|
|
1913
1925
|
fill: "forwards"
|
|
1914
1926
|
});
|
|
1915
|
-
|
|
1916
|
-
},
|
|
1927
|
+
U.onfinish = () => $.remove(), o.push(window.setTimeout(() => $.remove(), T + 250));
|
|
1928
|
+
}, N = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
|
|
1917
1929
|
if (i(document, "click", ((h) => {
|
|
1918
|
-
var
|
|
1919
|
-
(v = (
|
|
1930
|
+
var p, v;
|
|
1931
|
+
(v = (p = h.target) == null ? void 0 : p.closest) != null && v.call(p, N) || (l() === "light" ? O(
|
|
1920
1932
|
`${h.clientX}px`,
|
|
1921
1933
|
`${h.clientY}px`,
|
|
1922
1934
|
-90 + (Math.random() * 80 - 40),
|
|
@@ -1924,29 +1936,29 @@ function $n() {
|
|
|
1924
1936
|
16 + Math.random() * 10,
|
|
1925
1937
|
260 + Math.random() * 280,
|
|
1926
1938
|
950 + Math.random() * 700
|
|
1927
|
-
) :
|
|
1928
|
-
})), !
|
|
1939
|
+
) : D(`${h.clientX}px`, `${h.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
|
|
1940
|
+
})), !Te()) {
|
|
1929
1941
|
const h = () => {
|
|
1930
1942
|
if (l() === "light") {
|
|
1931
|
-
|
|
1943
|
+
O(`${(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);
|
|
1932
1944
|
return;
|
|
1933
1945
|
}
|
|
1934
1946
|
const x = je[Math.floor(Math.random() * je.length)];
|
|
1935
|
-
|
|
1936
|
-
},
|
|
1937
|
-
h(), o.push(window.setTimeout(
|
|
1947
|
+
D(`${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);
|
|
1948
|
+
}, p = () => {
|
|
1949
|
+
h(), o.push(window.setTimeout(p, 4500 + Math.random() * 6e3));
|
|
1938
1950
|
};
|
|
1939
|
-
o.push(window.setTimeout(
|
|
1951
|
+
o.push(window.setTimeout(p, 1500));
|
|
1940
1952
|
const v = e.querySelector("#cursorGlow");
|
|
1941
1953
|
i(document, "pointermove", ((x) => {
|
|
1942
|
-
var
|
|
1954
|
+
var Y, q;
|
|
1943
1955
|
v && (v.style.opacity = "1", v.style.left = `${x.clientX}px`, v.style.top = `${x.clientY}px`);
|
|
1944
|
-
const y = x.target,
|
|
1945
|
-
if (
|
|
1946
|
-
const f =
|
|
1947
|
-
|
|
1956
|
+
const y = x.target, T = (Y = y == null ? void 0 : y.closest) == null ? void 0 : Y.call(y, ".magnetic");
|
|
1957
|
+
if (T) {
|
|
1958
|
+
const f = T.getBoundingClientRect(), C = (x.clientX - (f.left + f.width / 2)) / f.width, R = (x.clientY - (f.top + f.height / 2)) / f.height;
|
|
1959
|
+
T.style.transform = `translate(${(C * 7).toFixed(1)}px, ${(R * 7).toFixed(1)}px)`;
|
|
1948
1960
|
}
|
|
1949
|
-
const $ = (
|
|
1961
|
+
const $ = (q = y == null ? void 0 : y.closest) == null ? void 0 : q.call(y, ".glow-edge");
|
|
1950
1962
|
if ($) {
|
|
1951
1963
|
const f = $.getBoundingClientRect();
|
|
1952
1964
|
$.style.setProperty("--mx", `${x.clientX - f.left}px`), $.style.setProperty("--my", `${x.clientY - f.top}px`);
|
|
@@ -1954,8 +1966,8 @@ function $n() {
|
|
|
1954
1966
|
})), i(window, "pointerleave", (() => {
|
|
1955
1967
|
v && (v.style.opacity = "0");
|
|
1956
1968
|
})), i(document, "pointerout", ((x) => {
|
|
1957
|
-
var
|
|
1958
|
-
const y = ($ = (
|
|
1969
|
+
var T, $;
|
|
1970
|
+
const y = ($ = (T = x.target) == null ? void 0 : T.closest) == null ? void 0 : $.call(T, ".magnetic");
|
|
1959
1971
|
y && (y.style.transform = "");
|
|
1960
1972
|
}));
|
|
1961
1973
|
}
|
|
@@ -1963,16 +1975,16 @@ function $n() {
|
|
|
1963
1975
|
n.forEach((h) => h()), o.forEach((h) => clearTimeout(h));
|
|
1964
1976
|
});
|
|
1965
1977
|
}), (() => {
|
|
1966
|
-
var n = gn(), o = n.firstChild, i = o.nextSibling, s = i.nextSibling,
|
|
1978
|
+
var n = gn(), o = n.firstChild, i = o.nextSibling, s = i.nextSibling, u = s.nextSibling, m = u.nextSibling, d = m.nextSibling;
|
|
1967
1979
|
d.firstChild;
|
|
1968
1980
|
var b = d.nextSibling;
|
|
1969
1981
|
b.firstChild;
|
|
1970
1982
|
var _ = b.nextSibling;
|
|
1971
1983
|
_.firstChild;
|
|
1972
|
-
var
|
|
1973
|
-
typeof
|
|
1974
|
-
var
|
|
1975
|
-
return typeof
|
|
1984
|
+
var A = _.nextSibling, k = A.nextSibling, D = e;
|
|
1985
|
+
typeof D == "function" ? H(D, n) : e = n;
|
|
1986
|
+
var O = t;
|
|
1987
|
+
return typeof O == "function" ? H(O, s) : t = s, a(k, r(St, {
|
|
1976
1988
|
style: {
|
|
1977
1989
|
width: "28px",
|
|
1978
1990
|
height: "28px",
|
|
@@ -1982,25 +1994,25 @@ function $n() {
|
|
|
1982
1994
|
})), n;
|
|
1983
1995
|
})();
|
|
1984
1996
|
}
|
|
1985
|
-
var
|
|
1997
|
+
var wn = /* @__PURE__ */ c('<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">'), pn = /* @__PURE__ */ c('<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">'), yn = /* @__PURE__ */ c('<div class="flex justify-center py-24 text-muted-foreground">');
|
|
1986
1998
|
function _n(e, t) {
|
|
1987
1999
|
return (() => {
|
|
1988
|
-
var l =
|
|
1989
|
-
return a(o, () => String((e == null ? void 0 : e.message) ?? e)), a(i, r(
|
|
2000
|
+
var l = wn(), n = l.firstChild, o = n.nextSibling, i = o.nextSibling;
|
|
2001
|
+
return a(o, () => String((e == null ? void 0 : e.message) ?? e)), a(i, r(Re, {
|
|
1990
2002
|
variant: "outline",
|
|
1991
2003
|
onClick: t,
|
|
1992
|
-
children: "
|
|
1993
|
-
}), null), a(i, r(
|
|
2004
|
+
children: "Retry"
|
|
2005
|
+
}), null), a(i, r(Re, {
|
|
1994
2006
|
onClick: () => window.location.reload(),
|
|
1995
|
-
children: "
|
|
2007
|
+
children: "Reload"
|
|
1996
2008
|
}), null), l;
|
|
1997
2009
|
})();
|
|
1998
2010
|
}
|
|
1999
2011
|
function eo(e) {
|
|
2000
2012
|
const t = (l, n) => (e.errorFallback ?? _n)(l, n);
|
|
2001
2013
|
return (() => {
|
|
2002
|
-
var l =
|
|
2003
|
-
return a(l, r(
|
|
2014
|
+
var l = pn(), n = l.firstChild, o = n.firstChild, i = o.firstChild;
|
|
2015
|
+
return a(l, r(w, {
|
|
2004
2016
|
get when() {
|
|
2005
2017
|
return e.background !== null;
|
|
2006
2018
|
},
|
|
@@ -2015,11 +2027,11 @@ function eo(e) {
|
|
|
2015
2027
|
get fallback() {
|
|
2016
2028
|
return (() => {
|
|
2017
2029
|
var s = yn();
|
|
2018
|
-
return a(s, r(
|
|
2030
|
+
return a(s, r(zr, {})), s;
|
|
2019
2031
|
})();
|
|
2020
2032
|
},
|
|
2021
2033
|
get children() {
|
|
2022
|
-
return r(
|
|
2034
|
+
return r(Pt, {
|
|
2023
2035
|
name: "page",
|
|
2024
2036
|
mode: "outin",
|
|
2025
2037
|
get children() {
|
|
@@ -2032,14 +2044,14 @@ function eo(e) {
|
|
|
2032
2044
|
})), S((s) => oe(i, "max-width", e.maxWidth ?? "1400px")), l;
|
|
2033
2045
|
})();
|
|
2034
2046
|
}
|
|
2035
|
-
var Cn = /* @__PURE__ */ c('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground"
|
|
2036
|
-
function to() {
|
|
2037
|
-
const
|
|
2047
|
+
var Cn = /* @__PURE__ */ c('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground">');
|
|
2048
|
+
function to(e) {
|
|
2049
|
+
const t = Je();
|
|
2038
2050
|
return (() => {
|
|
2039
|
-
var
|
|
2040
|
-
return xt(
|
|
2051
|
+
var l = Cn();
|
|
2052
|
+
return xt(l, "click", Nt, !0), a(l, r(w, {
|
|
2041
2053
|
get when() {
|
|
2042
|
-
return
|
|
2054
|
+
return t() === "dark";
|
|
2043
2055
|
},
|
|
2044
2056
|
get fallback() {
|
|
2045
2057
|
return r(Mt, {
|
|
@@ -2051,24 +2063,31 @@ function to() {
|
|
|
2051
2063
|
class: "h-[18px] w-[18px]"
|
|
2052
2064
|
});
|
|
2053
2065
|
}
|
|
2054
|
-
})),
|
|
2066
|
+
})), S((n) => {
|
|
2067
|
+
var o = e.label ?? "Toggle theme", i = e.label ?? "Toggle theme";
|
|
2068
|
+
return o !== n.e && B(l, "aria-label", n.e = o), i !== n.t && B(l, "title", n.t = i), n;
|
|
2069
|
+
}, {
|
|
2070
|
+
e: void 0,
|
|
2071
|
+
t: void 0
|
|
2072
|
+
}), l;
|
|
2055
2073
|
})();
|
|
2056
2074
|
}
|
|
2057
2075
|
ee(["click"]);
|
|
2058
|
-
var kn = /* @__PURE__ */ c('<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"
|
|
2059
|
-
function ro() {
|
|
2060
|
-
const
|
|
2076
|
+
var kn = /* @__PURE__ */ c('<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">');
|
|
2077
|
+
function ro(e) {
|
|
2078
|
+
const t = Xt();
|
|
2061
2079
|
return (() => {
|
|
2062
|
-
var
|
|
2063
|
-
return
|
|
2080
|
+
var l = kn();
|
|
2081
|
+
return l.$$click = () => qt(!t()), a(l, r(Et, {
|
|
2064
2082
|
class: "h-[18px] w-[18px]"
|
|
2065
|
-
})), S((
|
|
2066
|
-
var
|
|
2067
|
-
return
|
|
2083
|
+
})), S((n) => {
|
|
2084
|
+
var o = t(), i = e.label ?? "Visual effects", s = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
|
|
2085
|
+
return o !== n.e && B(l, "aria-pressed", n.e = o), i !== n.t && B(l, "aria-label", n.t = i), s !== n.a && B(l, "title", n.a = s), n;
|
|
2068
2086
|
}, {
|
|
2069
2087
|
e: void 0,
|
|
2070
|
-
t: void 0
|
|
2071
|
-
|
|
2088
|
+
t: void 0,
|
|
2089
|
+
a: void 0
|
|
2090
|
+
}), l;
|
|
2072
2091
|
})();
|
|
2073
2092
|
}
|
|
2074
2093
|
ee(["click"]);
|
|
@@ -2083,20 +2102,20 @@ const lo = "0.0.0";
|
|
|
2083
2102
|
export {
|
|
2084
2103
|
lo as A4UI_VERSION,
|
|
2085
2104
|
sl as Accordion,
|
|
2086
|
-
|
|
2105
|
+
Bl as Alert,
|
|
2087
2106
|
Wl as AlertDialog,
|
|
2088
2107
|
eo as AppShell,
|
|
2089
|
-
|
|
2108
|
+
jl as Avatar,
|
|
2090
2109
|
cl as Badge,
|
|
2091
2110
|
Zl as Breadcrumb,
|
|
2092
|
-
|
|
2111
|
+
Re as Button,
|
|
2093
2112
|
ir as Card,
|
|
2094
2113
|
sr as CardContent,
|
|
2095
2114
|
dl as CardHeader,
|
|
2096
2115
|
ul as CardTitle,
|
|
2097
2116
|
gl as Checkbox,
|
|
2098
|
-
|
|
2099
|
-
|
|
2117
|
+
Ql as Combobox,
|
|
2118
|
+
Jl as ContextMenu,
|
|
2100
2119
|
fl as DateField,
|
|
2101
2120
|
ml as Drawer,
|
|
2102
2121
|
hl as Dropdown,
|
|
@@ -2109,17 +2128,17 @@ export {
|
|
|
2109
2128
|
no as NavGroup,
|
|
2110
2129
|
Hl as NumberInput,
|
|
2111
2130
|
$l as PageHeader,
|
|
2112
|
-
|
|
2113
|
-
|
|
2131
|
+
wl as Pagination,
|
|
2132
|
+
zl as Popover,
|
|
2114
2133
|
Yl as Progress,
|
|
2115
2134
|
Dl as RadioGroup,
|
|
2116
2135
|
Kl as SegmentedControl,
|
|
2117
|
-
|
|
2136
|
+
pl as Select,
|
|
2118
2137
|
Nl as Separator,
|
|
2119
2138
|
Vl as Skeleton,
|
|
2120
2139
|
Xl as Slider,
|
|
2121
2140
|
$n as SpaceBackground,
|
|
2122
|
-
|
|
2141
|
+
zr as Spinner,
|
|
2123
2142
|
yl as Stat,
|
|
2124
2143
|
Al as Switch,
|
|
2125
2144
|
_l as Table,
|
|
@@ -2128,30 +2147,30 @@ export {
|
|
|
2128
2147
|
Cl as TableHead,
|
|
2129
2148
|
Tl as TableHeadCell,
|
|
2130
2149
|
Sl as TableRow,
|
|
2131
|
-
|
|
2150
|
+
Ll as Tabs,
|
|
2132
2151
|
Rl as Textarea,
|
|
2133
2152
|
to as ThemeToggle,
|
|
2134
2153
|
Fl as Toaster,
|
|
2135
2154
|
ql as Toggle,
|
|
2136
2155
|
Ul as ToggleGroup,
|
|
2137
|
-
|
|
2156
|
+
Pl as Tooltip,
|
|
2138
2157
|
El as VirtualList,
|
|
2139
|
-
|
|
2140
|
-
|
|
2158
|
+
Ke as applyTheme,
|
|
2159
|
+
g as cn,
|
|
2141
2160
|
Wt as createCountUp,
|
|
2142
2161
|
Ht as isCalm,
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2162
|
+
Te as motionReduced,
|
|
2163
|
+
lt as prefersReducedMotion,
|
|
2164
|
+
Jt as remeasureAfterLayout,
|
|
2146
2165
|
qt as setEffects,
|
|
2147
2166
|
al as setMotionForced,
|
|
2148
|
-
|
|
2167
|
+
Bt as setTheme,
|
|
2149
2168
|
Ot as storedTheme,
|
|
2150
|
-
|
|
2169
|
+
Il as toast,
|
|
2151
2170
|
Nt as toggleTheme,
|
|
2152
|
-
|
|
2171
|
+
jt as toggled,
|
|
2153
2172
|
Xt as useEffects,
|
|
2154
2173
|
il as useMediaQuery,
|
|
2155
2174
|
ol as useMotionForced,
|
|
2156
|
-
|
|
2175
|
+
Je as useTheme
|
|
2157
2176
|
};
|