@a4ui/core 0.18.0 → 0.19.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/dist/Checkbox-DIzLQltI.js +431 -0
- package/dist/commerce.js +1 -1
- package/dist/elements.css +4 -0
- package/dist/elements.iife.js +2 -2
- package/dist/elements.js +275 -251
- package/dist/full.css +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +288 -284
- package/dist/ui/Button.d.ts +10 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/ui/Button.tsx +51 -17
- package/src/ui/Carousel.tsx +12 -6
- package/dist/Checkbox-BZjX1GMG.js +0 -407
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as p } from "./cn-B6yFEsav.js";
|
|
2
|
-
import { createSignal as F, onCleanup as q, onMount as W, For as z, createMemo as
|
|
3
|
-
import { a as ue, c as pr, C as Vt, d as Ut, e as Kt, m as H, B as _r, f as kr, g as Cr, s as Ke, h as Sr, u as Er } from "./Checkbox-
|
|
4
|
-
import { b as Mg, R as Tg, i as Lg, S as Dg, T as Ig, j as Ag, k as Fg, l as Pg, p as zg, r as Rg, n as Og, o as Bg } from "./Checkbox-
|
|
5
|
-
import { createComponent as i, memo as K, insert as c, template as x, effect as k, setAttribute as
|
|
2
|
+
import { createSignal as F, onCleanup as q, onMount as W, For as z, createMemo as Q, Show as M, createEffect as re, createUniqueId as vr, useContext as br, createContext as xr, splitProps as ie, Index as Re, on as Ht, Switch as $r, Match as We, ErrorBoundary as yr, Suspense as wr } from "solid-js";
|
|
3
|
+
import { a as ue, c as pr, C as Vt, d as Ut, e as Kt, m as H, B as _r, f as kr, g as Cr, s as Ke, h as Sr, u as Er } from "./Checkbox-DIzLQltI.js";
|
|
4
|
+
import { b as Mg, R as Tg, i as Lg, S as Dg, T as Ig, j as Ag, k as Fg, l as Pg, p as zg, r as Rg, n as Og, o as Bg } from "./Checkbox-DIzLQltI.js";
|
|
5
|
+
import { createComponent as i, memo as K, insert as c, template as x, effect as k, setAttribute as L, className as E, delegateEvents as Y, Portal as fe, setStyleProperty as O, use as R, classList as qt, spread as se, mergeProps as ce, Dynamic as Gt, addEventListener as Ue, style as de } from "solid-js/web";
|
|
6
6
|
import { Accordion as _e } from "@kobalte/core/accordion";
|
|
7
7
|
import { ChevronsLeft as Mr, ChevronLeft as Oe, ChevronRight as ge, ChevronsRight as Tr, CalendarDays as Wt, Clock as Lr, File as ft, Check as we, X as me, ChevronDown as je, UploadCloud as Dr, CircleX as Jt, TriangleAlert as Zt, CircleCheck as Qt, Info as er, ChevronsUpDown as tr, ChevronsLeftRight as Ir, Inbox as Ar, ServerCrash as Fr, Compass as Pr, ArrowUp as zr, Plus as Rr, ChevronUp as Or, Bell as Br, GripVertical as mt, Loader2 as jr, Satellite as Nr, Moon as Yr, Sun as Xr, Sparkles as Hr } from "lucide-solid";
|
|
8
8
|
import { Progress as ke } from "@kobalte/core/progress";
|
|
9
|
-
import { Dialog as
|
|
9
|
+
import { Dialog as Z } from "@kobalte/core/dialog";
|
|
10
10
|
import { DropdownMenu as Ce } from "@kobalte/core/dropdown-menu";
|
|
11
11
|
import { createVirtualizer as Vr } from "@tanstack/solid-virtual";
|
|
12
12
|
import { Tabs as Se } from "@kobalte/core/tabs";
|
|
@@ -134,22 +134,22 @@ function Ye(e, t) {
|
|
|
134
134
|
}
|
|
135
135
|
function dt(e) {
|
|
136
136
|
const t = () => e.months ?? fn, r = () => e.weekdays ?? mn, n = () => e.weekStart ?? 0, l = e.initialView ?? e.selected ?? /* @__PURE__ */ new Date(), [o, s] = F(l.getFullYear()), [a, f] = F(l.getMonth()), [g, u] = F("days"), [d, v] = F(l.getFullYear() - l.getFullYear() % $e), h = (_) => {
|
|
137
|
-
let C = a() + _,
|
|
137
|
+
let C = a() + _, D = o();
|
|
138
138
|
for (; C < 0; )
|
|
139
|
-
C += 12,
|
|
139
|
+
C += 12, D -= 1;
|
|
140
140
|
for (; C > 11; )
|
|
141
|
-
C -= 12,
|
|
142
|
-
f(C), s(
|
|
143
|
-
}, y = (_) => s(o() + _), m =
|
|
144
|
-
const C = (new Date(o(), a(), 1).getDay() - n() + 7) % 7,
|
|
141
|
+
C -= 12, D += 1;
|
|
142
|
+
f(C), s(D);
|
|
143
|
+
}, y = (_) => s(o() + _), m = Q(() => {
|
|
144
|
+
const C = (new Date(o(), a(), 1).getDay() - n() + 7) % 7, D = new Date(o(), a(), 1 - C), S = [];
|
|
145
145
|
for (let T = 0; T < 42; T++)
|
|
146
|
-
S.push(new Date(
|
|
146
|
+
S.push(new Date(D.getFullYear(), D.getMonth(), D.getDate() + T));
|
|
147
147
|
return S;
|
|
148
|
-
}), b =
|
|
148
|
+
}), b = Q(() => {
|
|
149
149
|
const _ = d();
|
|
150
150
|
return Array.from({
|
|
151
151
|
length: $e
|
|
152
|
-
}, (C,
|
|
152
|
+
}, (C, D) => _ + D);
|
|
153
153
|
}), $ = /* @__PURE__ */ new Date(), w = () => {
|
|
154
154
|
v(o() - o() % $e), u("years");
|
|
155
155
|
};
|
|
@@ -161,8 +161,8 @@ function dt(e) {
|
|
|
161
161
|
},
|
|
162
162
|
get fallback() {
|
|
163
163
|
return (() => {
|
|
164
|
-
var C = un(),
|
|
165
|
-
return
|
|
164
|
+
var C = un(), D = C.firstChild, S = D.nextSibling, T = S.nextSibling;
|
|
165
|
+
return D.$$click = () => g() === "months" ? y(-1) : v(d() - $e), c(D, i(Oe, {
|
|
166
166
|
class: "h-4 w-4"
|
|
167
167
|
})), S.$$click = () => u("days"), c(S, i(M, {
|
|
168
168
|
get when() {
|
|
@@ -180,7 +180,7 @@ function dt(e) {
|
|
|
180
180
|
})();
|
|
181
181
|
},
|
|
182
182
|
get children() {
|
|
183
|
-
var C = an(),
|
|
183
|
+
var C = an(), D = C.firstChild, S = D.firstChild, T = S.nextSibling, I = D.nextSibling, P = I.firstChild, j = P.nextSibling, A = I.nextSibling, B = A.firstChild, N = B.nextSibling;
|
|
184
184
|
return S.$$click = () => y(-1), c(S, i(Mr, {
|
|
185
185
|
class: "h-4 w-4"
|
|
186
186
|
})), T.$$click = () => h(-1), c(T, i(Oe, {
|
|
@@ -202,9 +202,9 @@ function dt(e) {
|
|
|
202
202
|
get each() {
|
|
203
203
|
return r();
|
|
204
204
|
},
|
|
205
|
-
children: (
|
|
205
|
+
children: (D) => (() => {
|
|
206
206
|
var S = gn();
|
|
207
|
-
return c(S,
|
|
207
|
+
return c(S, D), S;
|
|
208
208
|
})()
|
|
209
209
|
})), C;
|
|
210
210
|
})(), (() => {
|
|
@@ -213,13 +213,13 @@ function dt(e) {
|
|
|
213
213
|
get each() {
|
|
214
214
|
return m();
|
|
215
215
|
},
|
|
216
|
-
children: (
|
|
217
|
-
const S =
|
|
216
|
+
children: (D) => {
|
|
217
|
+
const S = D.getMonth() === a(), T = () => (e.rangeStart ? Ye(e.rangeStart, D) : !1) || (e.rangeEnd ? Ye(e.rangeEnd, D) : !1), I = () => !!e.rangeStart && !!e.rangeEnd && D > e.rangeStart && D < e.rangeEnd && !T(), P = () => (e.selected ? Ye(e.selected, D) : !1) || T(), j = Ye($, D);
|
|
218
218
|
return (() => {
|
|
219
219
|
var A = Qe();
|
|
220
|
-
return A.$$click = () => e.onPick(
|
|
221
|
-
var N = P(),
|
|
222
|
-
return N !== B.e &&
|
|
220
|
+
return A.$$click = () => e.onPick(D), c(A, () => D.getDate()), k((B) => {
|
|
221
|
+
var N = P(), X = p("flex h-8 items-center justify-center rounded-md text-sm transition-colors", P() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !P() && I() && "bg-primary/20 text-foreground", !P() && !I() && !S && "text-muted-foreground/50", !P() && !I() && S && "text-foreground", !P() && j && "ring-1 ring-inset ring-primary");
|
|
222
|
+
return N !== B.e && L(A, "aria-pressed", B.e = N), X !== B.t && E(A, B.t = X), B;
|
|
223
223
|
}, {
|
|
224
224
|
e: void 0,
|
|
225
225
|
t: void 0
|
|
@@ -239,13 +239,13 @@ function dt(e) {
|
|
|
239
239
|
get each() {
|
|
240
240
|
return t();
|
|
241
241
|
},
|
|
242
|
-
children: (
|
|
242
|
+
children: (D, S) => {
|
|
243
243
|
const T = () => S() === a();
|
|
244
244
|
return (() => {
|
|
245
245
|
var I = Qe();
|
|
246
246
|
return I.$$click = () => {
|
|
247
247
|
f(S()), u("days");
|
|
248
|
-
}, c(I, () =>
|
|
248
|
+
}, c(I, () => D.slice(0, 3)), k(() => E(I, p("rounded-md py-2 text-sm capitalize transition-colors", T() ? "bg-primary font-semibold text-primary-foreground" : "text-foreground hover:bg-muted"))), I;
|
|
249
249
|
})();
|
|
250
250
|
}
|
|
251
251
|
})), C;
|
|
@@ -260,13 +260,13 @@ function dt(e) {
|
|
|
260
260
|
get each() {
|
|
261
261
|
return b();
|
|
262
262
|
},
|
|
263
|
-
children: (
|
|
264
|
-
const S = () =>
|
|
263
|
+
children: (D) => {
|
|
264
|
+
const S = () => D === o();
|
|
265
265
|
return (() => {
|
|
266
266
|
var T = Qe();
|
|
267
267
|
return T.$$click = () => {
|
|
268
|
-
s(
|
|
269
|
-
}, c(T,
|
|
268
|
+
s(D), u("months");
|
|
269
|
+
}, c(T, D), k(() => E(T, p("rounded-md py-2 text-sm transition-colors", S() ? "bg-primary font-semibold text-primary-foreground" : "text-foreground hover:bg-muted"))), T;
|
|
270
270
|
})();
|
|
271
271
|
}
|
|
272
272
|
})), C;
|
|
@@ -274,7 +274,7 @@ function dt(e) {
|
|
|
274
274
|
}), null), k(() => E(_, p("w-full select-none", e.class))), _;
|
|
275
275
|
})();
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
Y(["click"]);
|
|
278
278
|
var hn = /* @__PURE__ */ x('<div class="z-50 w-72 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-lg"style=position:fixed>'), vn = /* @__PURE__ */ x('<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 a4-field disabled:cursor-not-allowed disabled:opacity-50"><span>');
|
|
279
279
|
const bn = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], bt = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
280
280
|
function xn(e) {
|
|
@@ -312,15 +312,15 @@ function $n(e) {
|
|
|
312
312
|
}, y = ($) => {
|
|
313
313
|
$ ? (document.addEventListener("mousedown", v), document.addEventListener("keydown", h), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d)) : (document.removeEventListener("mousedown", v), document.removeEventListener("keydown", h), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d));
|
|
314
314
|
};
|
|
315
|
-
|
|
316
|
-
const m =
|
|
315
|
+
re(() => y(t())), q(() => y(!1));
|
|
316
|
+
const m = Q(() => cr(e.value)), b = ($) => {
|
|
317
317
|
e.onChange(xn($)), d();
|
|
318
318
|
};
|
|
319
319
|
return (() => {
|
|
320
320
|
var $ = vn(), w = $.firstChild, _ = w.firstChild, C = n;
|
|
321
321
|
typeof C == "function" ? R(C, $) : n = $, w.$$click = () => t() ? d() : u();
|
|
322
|
-
var
|
|
323
|
-
return typeof
|
|
322
|
+
var D = l;
|
|
323
|
+
return typeof D == "function" ? R(D, w) : l = w, c(_, () => xt(e.value, e.months ?? bt) ?? e.label ?? "Select date"), c(w, i(Wt, {
|
|
324
324
|
class: "h-4 w-4 shrink-0 text-muted-foreground"
|
|
325
325
|
}), null), c($, i(M, {
|
|
326
326
|
get when() {
|
|
@@ -365,7 +365,7 @@ function $n(e) {
|
|
|
365
365
|
}), $;
|
|
366
366
|
})();
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
Y(["click"]);
|
|
369
369
|
var yn = /* @__PURE__ */ x('<div class="flex max-h-56 flex-1 flex-col gap-0.5 overflow-y-auto pl-1"role=listbox aria-label="AM or PM">'), wn = /* @__PURE__ */ x('<div style=position:fixed><div class="flex max-h-56 flex-1 flex-col gap-0.5 overflow-y-auto pr-1"role=listbox aria-label=Hour></div><div class="flex max-h-56 flex-1 flex-col gap-0.5 overflow-y-auto px-1"role=listbox aria-label=Minute>'), pn = /* @__PURE__ */ x('<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 a4-field disabled:cursor-not-allowed disabled:opacity-50"><span>'), et = /* @__PURE__ */ x("<button type=button role=option>");
|
|
370
370
|
const _n = Array.from({
|
|
371
371
|
length: 24
|
|
@@ -440,15 +440,15 @@ function Cn(e) {
|
|
|
440
440
|
}, w = (I) => {
|
|
441
441
|
I ? (document.addEventListener("mousedown", b), document.addEventListener("keydown", $), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m)) : (document.removeEventListener("mousedown", b), document.removeEventListener("keydown", $), window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m));
|
|
442
442
|
};
|
|
443
|
-
|
|
444
|
-
const _ =
|
|
443
|
+
re(() => w(t())), q(() => w(!1));
|
|
444
|
+
const _ = Q(() => {
|
|
445
445
|
const I = e.minuteStep ?? 5, P = [];
|
|
446
446
|
for (let j = 0; j < 60; j += I) P.push(j);
|
|
447
447
|
return P;
|
|
448
448
|
}), C = (I) => {
|
|
449
449
|
const P = e.hour12 ? $t(I, Pe(n()).ampm) : I;
|
|
450
450
|
l(P), e.onChange(Ve(P, o()));
|
|
451
|
-
},
|
|
451
|
+
}, D = (I) => {
|
|
452
452
|
s(I), e.onChange(Ve(n(), I));
|
|
453
453
|
}, S = (I) => {
|
|
454
454
|
const P = $t(Pe(n()).h12, I);
|
|
@@ -467,42 +467,42 @@ function Cn(e) {
|
|
|
467
467
|
get children() {
|
|
468
468
|
return i(fe, {
|
|
469
469
|
get children() {
|
|
470
|
-
var N = wn(),
|
|
471
|
-
return typeof
|
|
470
|
+
var N = wn(), X = N.firstChild, J = X.nextSibling, ne = g;
|
|
471
|
+
return typeof ne == "function" ? R(ne, N) : g = N, c(X, i(z, {
|
|
472
472
|
get each() {
|
|
473
473
|
return e.hour12 ? kn : _n;
|
|
474
474
|
},
|
|
475
|
-
children: (
|
|
476
|
-
const
|
|
475
|
+
children: (V) => {
|
|
476
|
+
const ee = () => e.hour12 ? Pe(n()).h12 === V : n() === V;
|
|
477
477
|
return (() => {
|
|
478
|
-
var
|
|
479
|
-
return
|
|
480
|
-
var
|
|
481
|
-
return () =>
|
|
482
|
-
})()), k((
|
|
483
|
-
var le =
|
|
484
|
-
return le !==
|
|
478
|
+
var te = et();
|
|
479
|
+
return te.$$click = () => C(V), c(te, (() => {
|
|
480
|
+
var U = K(() => !!e.hour12);
|
|
481
|
+
return () => U() ? V : Be(V);
|
|
482
|
+
})()), k((U) => {
|
|
483
|
+
var le = ee(), oe = T(ee());
|
|
484
|
+
return le !== U.e && L(te, "aria-selected", U.e = le), oe !== U.t && E(te, U.t = oe), U;
|
|
485
485
|
}, {
|
|
486
486
|
e: void 0,
|
|
487
487
|
t: void 0
|
|
488
|
-
}),
|
|
488
|
+
}), te;
|
|
489
489
|
})();
|
|
490
490
|
}
|
|
491
|
-
})), c(
|
|
491
|
+
})), c(J, i(z, {
|
|
492
492
|
get each() {
|
|
493
493
|
return _();
|
|
494
494
|
},
|
|
495
|
-
children: (
|
|
496
|
-
const
|
|
495
|
+
children: (V) => {
|
|
496
|
+
const ee = () => o() === V;
|
|
497
497
|
return (() => {
|
|
498
|
-
var
|
|
499
|
-
return
|
|
500
|
-
var le =
|
|
501
|
-
return le !==
|
|
498
|
+
var te = et();
|
|
499
|
+
return te.$$click = () => D(V), c(te, () => Be(V)), k((U) => {
|
|
500
|
+
var le = ee(), oe = T(ee());
|
|
501
|
+
return le !== U.e && L(te, "aria-selected", U.e = le), oe !== U.t && E(te, U.t = oe), U;
|
|
502
502
|
}, {
|
|
503
503
|
e: void 0,
|
|
504
504
|
t: void 0
|
|
505
|
-
}),
|
|
505
|
+
}), te;
|
|
506
506
|
})();
|
|
507
507
|
}
|
|
508
508
|
})), c(N, i(M, {
|
|
@@ -510,27 +510,27 @@ function Cn(e) {
|
|
|
510
510
|
return e.hour12;
|
|
511
511
|
},
|
|
512
512
|
get children() {
|
|
513
|
-
var
|
|
514
|
-
return c(
|
|
513
|
+
var V = yn();
|
|
514
|
+
return c(V, i(z, {
|
|
515
515
|
each: ["AM", "PM"],
|
|
516
|
-
children: (
|
|
517
|
-
const
|
|
516
|
+
children: (ee) => {
|
|
517
|
+
const te = () => Pe(n()).ampm === ee;
|
|
518
518
|
return (() => {
|
|
519
|
-
var
|
|
520
|
-
return
|
|
521
|
-
var oe =
|
|
522
|
-
return oe !== le.e &&
|
|
519
|
+
var U = et();
|
|
520
|
+
return U.$$click = () => S(ee), c(U, ee), k((le) => {
|
|
521
|
+
var oe = te(), pe = T(te());
|
|
522
|
+
return oe !== le.e && L(U, "aria-selected", le.e = oe), pe !== le.t && E(U, le.t = pe), le;
|
|
523
523
|
}, {
|
|
524
524
|
e: void 0,
|
|
525
525
|
t: void 0
|
|
526
|
-
}),
|
|
526
|
+
}), U;
|
|
527
527
|
})();
|
|
528
528
|
}
|
|
529
|
-
})),
|
|
529
|
+
})), V;
|
|
530
530
|
}
|
|
531
|
-
}), null), k((
|
|
532
|
-
var
|
|
533
|
-
return
|
|
531
|
+
}), null), k((V) => {
|
|
532
|
+
var ee = `${u().top}px`, te = `${u().left}px`, U = p("z-50 flex gap-1 divide-x divide-border rounded-lg border border-border bg-card p-2 text-card-foreground shadow-lg", e.hour12 ? "w-56" : "w-44");
|
|
533
|
+
return ee !== V.e && O(N, "top", V.e = ee), te !== V.t && O(N, "left", V.t = te), U !== V.a && E(N, V.a = U), V;
|
|
534
534
|
}, {
|
|
535
535
|
e: void 0,
|
|
536
536
|
t: void 0,
|
|
@@ -540,8 +540,8 @@ function Cn(e) {
|
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
}), null), k((N) => {
|
|
543
|
-
var
|
|
544
|
-
return
|
|
543
|
+
var X = p("relative", e.class), J = e.disabled, ne = yt(e.value, e.hour12 ?? !1) ? "" : "text-muted-foreground";
|
|
544
|
+
return X !== N.e && E(I, N.e = X), J !== N.t && (P.disabled = N.t = J), ne !== N.a && E(j, N.a = ne), N;
|
|
545
545
|
}, {
|
|
546
546
|
e: void 0,
|
|
547
547
|
t: void 0,
|
|
@@ -549,14 +549,14 @@ function Cn(e) {
|
|
|
549
549
|
}), I;
|
|
550
550
|
})();
|
|
551
551
|
}
|
|
552
|
-
|
|
552
|
+
Y(["click"]);
|
|
553
553
|
var Sn = /* @__PURE__ */ x("<div>");
|
|
554
554
|
const En = /\d{4}-\d{2}-\d{2}/, Mn = /\d{2}:\d{2}/, wt = (e, t) => [e, t].filter(Boolean).join(" ");
|
|
555
555
|
function Ed(e) {
|
|
556
|
-
const t =
|
|
556
|
+
const t = Q(() => {
|
|
557
557
|
var n;
|
|
558
558
|
return ((n = En.exec(e.value)) == null ? void 0 : n[0]) ?? "";
|
|
559
|
-
}), r =
|
|
559
|
+
}), r = Q(() => {
|
|
560
560
|
var n;
|
|
561
561
|
return ((n = Mn.exec(e.value)) == null ? void 0 : n[0]) ?? "";
|
|
562
562
|
});
|
|
@@ -631,16 +631,16 @@ function Md(e) {
|
|
|
631
631
|
}, y = (_) => {
|
|
632
632
|
_ ? (document.addEventListener("mousedown", v), document.addEventListener("keydown", h), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d)) : (document.removeEventListener("mousedown", v), document.removeEventListener("keydown", h), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d));
|
|
633
633
|
};
|
|
634
|
-
|
|
635
|
-
const m =
|
|
636
|
-
const _ = e.months ?? In, C = m(),
|
|
637
|
-
return C &&
|
|
634
|
+
re(() => y(t())), q(() => y(!1));
|
|
635
|
+
const m = Q(() => rt(e.value.start)), b = Q(() => rt(e.value.end)), $ = Q(() => {
|
|
636
|
+
const _ = e.months ?? In, C = m(), D = b();
|
|
637
|
+
return C && D ? `${nt(C, _)} – ${nt(D, _)}` : C ? `${nt(C, _)} – …` : null;
|
|
638
638
|
}), w = (_) => {
|
|
639
639
|
const {
|
|
640
640
|
start: C,
|
|
641
|
-
end:
|
|
641
|
+
end: D
|
|
642
642
|
} = e.value, S = C ? rt(C) : null;
|
|
643
|
-
if (C &&
|
|
643
|
+
if (C && D || !C && !D || !S) {
|
|
644
644
|
e.onChange({
|
|
645
645
|
start: tt(_),
|
|
646
646
|
end: ""
|
|
@@ -656,10 +656,10 @@ function Md(e) {
|
|
|
656
656
|
});
|
|
657
657
|
};
|
|
658
658
|
return (() => {
|
|
659
|
-
var _ = Ln(), C = _.firstChild,
|
|
659
|
+
var _ = Ln(), C = _.firstChild, D = C.firstChild, S = n;
|
|
660
660
|
typeof S == "function" ? R(S, _) : n = _, C.$$click = () => t() ? d() : u();
|
|
661
661
|
var T = l;
|
|
662
|
-
return typeof T == "function" ? R(T, C) : l = C, c(
|
|
662
|
+
return typeof T == "function" ? R(T, C) : l = C, c(D, () => $() ?? e.label ?? "Select range"), c(C, i(Wt, {
|
|
663
663
|
class: "h-4 w-4 shrink-0 text-muted-foreground"
|
|
664
664
|
}), null), c(_, i(M, {
|
|
665
665
|
get when() {
|
|
@@ -699,7 +699,7 @@ function Md(e) {
|
|
|
699
699
|
}
|
|
700
700
|
}), null), k((I) => {
|
|
701
701
|
var P = p("relative", e.class), j = e.disabled, A = $() ? "" : "text-muted-foreground";
|
|
702
|
-
return P !== I.e && E(_, I.e = P), j !== I.t && (C.disabled = I.t = j), A !== I.a && E(
|
|
702
|
+
return P !== I.e && E(_, I.e = P), j !== I.t && (C.disabled = I.t = j), A !== I.a && E(D, I.a = A), I;
|
|
703
703
|
}, {
|
|
704
704
|
e: void 0,
|
|
705
705
|
t: void 0,
|
|
@@ -707,7 +707,7 @@ function Md(e) {
|
|
|
707
707
|
}), _;
|
|
708
708
|
})();
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
Y(["click"]);
|
|
711
711
|
var An = /* @__PURE__ */ x("<div>"), Fn = /* @__PURE__ */ x("<label>"), Pn = /* @__PURE__ */ x("<p>"), zn = /* @__PURE__ */ x("<p role=alert>");
|
|
712
712
|
const ur = xr();
|
|
713
713
|
function qe() {
|
|
@@ -735,7 +735,7 @@ function Ld(e) {
|
|
|
735
735
|
var r = Fn();
|
|
736
736
|
return c(r, () => e.children), k((n) => {
|
|
737
737
|
var l = t.id, o = p("text-sm font-medium text-foreground", e.class);
|
|
738
|
-
return l !== n.e &&
|
|
738
|
+
return l !== n.e && L(r, "for", n.e = l), o !== n.t && E(r, n.t = o), n;
|
|
739
739
|
}, {
|
|
740
740
|
e: void 0,
|
|
741
741
|
t: void 0
|
|
@@ -755,7 +755,7 @@ function Id(e) {
|
|
|
755
755
|
var r = Pn();
|
|
756
756
|
return c(r, () => e.children), k((n) => {
|
|
757
757
|
var l = `${t.id}-desc`, o = p("text-xs text-muted-foreground", e.class);
|
|
758
|
-
return l !== n.e &&
|
|
758
|
+
return l !== n.e && L(r, "id", n.e = l), o !== n.t && E(r, n.t = o), n;
|
|
759
759
|
}, {
|
|
760
760
|
e: void 0,
|
|
761
761
|
t: void 0
|
|
@@ -772,7 +772,7 @@ function Ad(e) {
|
|
|
772
772
|
var r = zn();
|
|
773
773
|
return c(r, () => e.children), k((n) => {
|
|
774
774
|
var l = `${t.id}-error`, o = p("text-xs text-destructive", e.class);
|
|
775
|
-
return l !== n.e &&
|
|
775
|
+
return l !== n.e && L(r, "id", n.e = l), o !== n.t && E(r, n.t = o), n;
|
|
776
776
|
}, {
|
|
777
777
|
e: void 0,
|
|
778
778
|
t: void 0
|
|
@@ -887,7 +887,7 @@ function Fd(e) {
|
|
|
887
887
|
},
|
|
888
888
|
get children() {
|
|
889
889
|
var $ = Nn();
|
|
890
|
-
return k(() =>
|
|
890
|
+
return k(() => L($, "src", d.url)), $;
|
|
891
891
|
}
|
|
892
892
|
}), h), c(m, () => d.name), c(b, () => Un(d.size)), c(h, i(M, {
|
|
893
893
|
get when() {
|
|
@@ -956,7 +956,7 @@ function Fd(e) {
|
|
|
956
956
|
"hover:border-primary hover:bg-primary/5": !t() && !e.disabled,
|
|
957
957
|
"cursor-not-allowed opacity-60": e.disabled
|
|
958
958
|
}, y = e.accept, m = e.multiple ?? !0, b = e.disabled;
|
|
959
|
-
return d !== u.e && E(o, u.e = d), v !== u.t && (s.disabled = u.t = v), u.a = qt(s, h, u.a), y !== u.o &&
|
|
959
|
+
return d !== u.e && E(o, u.e = d), v !== u.t && (s.disabled = u.t = v), u.a = qt(s, h, u.a), y !== u.o && L(f, "accept", u.o = y), m !== u.i && (f.multiple = u.i = m), b !== u.n && (f.disabled = u.n = b), u;
|
|
960
960
|
}, {
|
|
961
961
|
e: void 0,
|
|
962
962
|
t: void 0,
|
|
@@ -967,7 +967,7 @@ function Fd(e) {
|
|
|
967
967
|
}), o;
|
|
968
968
|
})();
|
|
969
969
|
}
|
|
970
|
-
|
|
970
|
+
Y(["click"]);
|
|
971
971
|
var Kn = /* @__PURE__ */ x('<input type=text placeholder=Search… class="mb-1 w-full rounded-md border border-input bg-background px-2 py-1.5 text-sm text-foreground outline-none a4-field">'), qn = /* @__PURE__ */ x('<div class="z-50 min-w-56 rounded-lg border border-border bg-card p-1 text-card-foreground shadow-lg"style=position:fixed><ul role=listbox aria-multiselectable=true class="max-h-60 overflow-y-auto">'), Gn = /* @__PURE__ */ x('<div><button type=button aria-haspopup=listbox class="flex min-h-9 h-auto w-full flex-wrap 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 a4-field disabled:cursor-not-allowed disabled:opacity-50"><span class="flex flex-1 flex-wrap items-center gap-1">'), Wn = /* @__PURE__ */ x("<span class=text-muted-foreground>"), Jn = /* @__PURE__ */ x('<span class="inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs text-foreground"><button type=button class="rounded-sm text-muted-foreground outline-none transition-colors hover:text-foreground focus:ring-2 focus:ring-ring/30">'), Zn = /* @__PURE__ */ x('<li class="px-2 py-1.5 text-sm text-muted-foreground">No options'), Qn = /* @__PURE__ */ x("<li role=none><button type=button role=option><span></span><span class=truncate>");
|
|
972
972
|
function Pd(e) {
|
|
973
973
|
const [t, r] = F(!1), [n, l] = F("");
|
|
@@ -994,16 +994,16 @@ function Pd(e) {
|
|
|
994
994
|
}, $ = (S) => {
|
|
995
995
|
S ? (document.addEventListener("mousedown", m), document.addEventListener("keydown", b), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y)) : (document.removeEventListener("mousedown", m), document.removeEventListener("keydown", b), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y));
|
|
996
996
|
};
|
|
997
|
-
|
|
997
|
+
re(() => $(t())), q(() => $(!1)), re(() => {
|
|
998
998
|
t() && (e.searchable ?? !0) && (f == null || f.focus());
|
|
999
999
|
});
|
|
1000
|
-
const w =
|
|
1000
|
+
const w = Q(() => e.options.filter((S) => e.value.includes(S.value))), _ = Q(() => {
|
|
1001
1001
|
const S = n().trim().toLowerCase();
|
|
1002
1002
|
return S ? e.options.filter((T) => T.label.toLowerCase().includes(S)) : e.options;
|
|
1003
1003
|
}), C = (S) => {
|
|
1004
1004
|
const T = e.value.includes(S) ? e.value.filter((I) => I !== S) : [...e.value, S];
|
|
1005
1005
|
e.onChange(T);
|
|
1006
|
-
},
|
|
1006
|
+
}, D = (S, T) => {
|
|
1007
1007
|
S.stopPropagation(), e.onChange(e.value.filter((I) => I !== T));
|
|
1008
1008
|
};
|
|
1009
1009
|
return (() => {
|
|
@@ -1027,9 +1027,9 @@ function Pd(e) {
|
|
|
1027
1027
|
},
|
|
1028
1028
|
children: (A) => (() => {
|
|
1029
1029
|
var B = Jn(), N = B.firstChild;
|
|
1030
|
-
return c(B, () => A.label, N), N.$$click = (
|
|
1030
|
+
return c(B, () => A.label, N), N.$$click = (X) => D(X, A.value), c(N, i(me, {
|
|
1031
1031
|
class: "h-3 w-3"
|
|
1032
|
-
})), k(() =>
|
|
1032
|
+
})), k(() => L(N, "aria-label", `Remove ${A.label}`)), B;
|
|
1033
1033
|
})()
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
@@ -1048,10 +1048,10 @@ function Pd(e) {
|
|
|
1048
1048
|
return e.searchable ?? !0;
|
|
1049
1049
|
},
|
|
1050
1050
|
get children() {
|
|
1051
|
-
var
|
|
1052
|
-
|
|
1053
|
-
var
|
|
1054
|
-
return typeof
|
|
1051
|
+
var X = Kn();
|
|
1052
|
+
X.$$input = (ne) => l(ne.currentTarget.value);
|
|
1053
|
+
var J = f;
|
|
1054
|
+
return typeof J == "function" ? R(J, X) : f = X, k(() => X.value = n()), X;
|
|
1055
1055
|
}
|
|
1056
1056
|
}), B), c(B, i(z, {
|
|
1057
1057
|
get each() {
|
|
@@ -1060,33 +1060,33 @@ function Pd(e) {
|
|
|
1060
1060
|
get fallback() {
|
|
1061
1061
|
return Zn();
|
|
1062
1062
|
},
|
|
1063
|
-
children: (
|
|
1064
|
-
const
|
|
1063
|
+
children: (X) => {
|
|
1064
|
+
const J = () => e.value.includes(X.value);
|
|
1065
1065
|
return (() => {
|
|
1066
|
-
var
|
|
1067
|
-
return
|
|
1066
|
+
var ne = Qn(), V = ne.firstChild, ee = V.firstChild, te = ee.nextSibling;
|
|
1067
|
+
return V.$$click = () => C(X.value), c(ee, i(M, {
|
|
1068
1068
|
get when() {
|
|
1069
|
-
return
|
|
1069
|
+
return J();
|
|
1070
1070
|
},
|
|
1071
1071
|
get children() {
|
|
1072
1072
|
return i(we, {
|
|
1073
1073
|
class: "h-3 w-3"
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
|
-
})), c(
|
|
1077
|
-
var le =
|
|
1078
|
-
return le !==
|
|
1076
|
+
})), c(te, () => X.label), k((U) => {
|
|
1077
|
+
var le = J(), oe = J(), pe = p("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none transition-colors hover:bg-muted focus:bg-muted", J() && "bg-primary/10"), gt = p("flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border border-input", J() && "border-primary bg-primary text-primary-foreground");
|
|
1078
|
+
return le !== U.e && L(V, "aria-selected", U.e = le), oe !== U.t && L(V, "aria-pressed", U.t = oe), pe !== U.a && E(V, U.a = pe), gt !== U.o && E(ee, U.o = gt), U;
|
|
1079
1079
|
}, {
|
|
1080
1080
|
e: void 0,
|
|
1081
1081
|
t: void 0,
|
|
1082
1082
|
a: void 0,
|
|
1083
1083
|
o: void 0
|
|
1084
|
-
}),
|
|
1084
|
+
}), ne;
|
|
1085
1085
|
})();
|
|
1086
1086
|
}
|
|
1087
|
-
})), k((
|
|
1088
|
-
var
|
|
1089
|
-
return
|
|
1087
|
+
})), k((X) => {
|
|
1088
|
+
var J = `${g().top}px`, ne = `${g().left}px`, V = `${g().width}px`;
|
|
1089
|
+
return J !== X.e && O(A, "top", X.e = J), ne !== X.t && O(A, "left", X.t = ne), V !== X.a && O(A, "width", X.a = V), X;
|
|
1090
1090
|
}, {
|
|
1091
1091
|
e: void 0,
|
|
1092
1092
|
t: void 0,
|
|
@@ -1096,8 +1096,8 @@ function Pd(e) {
|
|
|
1096
1096
|
});
|
|
1097
1097
|
}
|
|
1098
1098
|
}), null), k((A) => {
|
|
1099
|
-
var B = p("relative", e.class), N = e.disabled,
|
|
1100
|
-
return B !== A.e && E(S, A.e = B), N !== A.t && (T.disabled = A.t = N),
|
|
1099
|
+
var B = p("relative", e.class), N = e.disabled, X = t();
|
|
1100
|
+
return B !== A.e && E(S, A.e = B), N !== A.t && (T.disabled = A.t = N), X !== A.a && L(T, "aria-expanded", A.a = X), A;
|
|
1101
1101
|
}, {
|
|
1102
1102
|
e: void 0,
|
|
1103
1103
|
t: void 0,
|
|
@@ -1105,10 +1105,10 @@ function Pd(e) {
|
|
|
1105
1105
|
}), S;
|
|
1106
1106
|
})();
|
|
1107
1107
|
}
|
|
1108
|
-
|
|
1108
|
+
Y(["click", "input"]);
|
|
1109
1109
|
var el = /* @__PURE__ */ x('<p class="text-[12px] text-muted-foreground">'), tl = /* @__PURE__ */ x('<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>'), rl = /* @__PURE__ */ x('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
1110
1110
|
function zd(e) {
|
|
1111
|
-
return i(
|
|
1111
|
+
return i(Z, {
|
|
1112
1112
|
get open() {
|
|
1113
1113
|
return e.open;
|
|
1114
1114
|
},
|
|
@@ -1116,13 +1116,13 @@ function zd(e) {
|
|
|
1116
1116
|
return e.onOpenChange;
|
|
1117
1117
|
},
|
|
1118
1118
|
get children() {
|
|
1119
|
-
return i(
|
|
1119
|
+
return i(Z.Portal, {
|
|
1120
1120
|
get children() {
|
|
1121
|
-
return [i(
|
|
1121
|
+
return [i(Z.Overlay, {
|
|
1122
1122
|
class: "modal-overlay fixed inset-0 z-40 bg-black/50 backdrop-blur-[2px]"
|
|
1123
1123
|
}), (() => {
|
|
1124
1124
|
var t = rl();
|
|
1125
|
-
return c(t, i(
|
|
1125
|
+
return c(t, i(Z.Content, {
|
|
1126
1126
|
get class() {
|
|
1127
1127
|
return p("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);
|
|
1128
1128
|
},
|
|
@@ -1133,7 +1133,7 @@ function zd(e) {
|
|
|
1133
1133
|
},
|
|
1134
1134
|
get children() {
|
|
1135
1135
|
var r = tl(), n = r.firstChild;
|
|
1136
|
-
return c(n, i(
|
|
1136
|
+
return c(n, i(Z.Title, {
|
|
1137
1137
|
class: "text-[16px] font-bold leading-tight",
|
|
1138
1138
|
get children() {
|
|
1139
1139
|
return e.title;
|
|
@@ -1146,7 +1146,7 @@ function zd(e) {
|
|
|
1146
1146
|
var l = el();
|
|
1147
1147
|
return c(l, () => e.subtitle), l;
|
|
1148
1148
|
}
|
|
1149
|
-
}), null), c(r, i(
|
|
1149
|
+
}), null), c(r, i(Z.CloseButton, {
|
|
1150
1150
|
class: "grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
1151
1151
|
get "aria-label"() {
|
|
1152
1152
|
return e.closeLabel ?? "Close";
|
|
@@ -1256,7 +1256,7 @@ function Od(e) {
|
|
|
1256
1256
|
"border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
|
|
1257
1257
|
"cursor-not-allowed opacity-60": e.disabled
|
|
1258
1258
|
}, h = e.accept, y = e.multiple, m = e.disabled;
|
|
1259
|
-
return u !== g.e &&
|
|
1259
|
+
return u !== g.e && L(o, "tabindex", g.e = u), d !== g.t && L(o, "aria-disabled", g.t = d), g.a = qt(o, v, g.a), h !== g.o && L(a, "accept", g.o = h), y !== g.i && (a.multiple = g.i = y), m !== g.n && (a.disabled = g.n = m), g;
|
|
1260
1260
|
}, {
|
|
1261
1261
|
e: void 0,
|
|
1262
1262
|
t: void 0,
|
|
@@ -1267,7 +1267,7 @@ function Od(e) {
|
|
|
1267
1267
|
}), o;
|
|
1268
1268
|
})();
|
|
1269
1269
|
}
|
|
1270
|
-
|
|
1270
|
+
Y(["click", "keydown"]);
|
|
1271
1271
|
var il = /* @__PURE__ */ x("<input>");
|
|
1272
1272
|
const ol = "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 a4-field disabled:cursor-not-allowed disabled:opacity-50";
|
|
1273
1273
|
function al(e) {
|
|
@@ -1284,11 +1284,11 @@ function al(e) {
|
|
|
1284
1284
|
}, r), !1, !1), n;
|
|
1285
1285
|
})();
|
|
1286
1286
|
}
|
|
1287
|
-
|
|
1287
|
+
Y(["input"]);
|
|
1288
1288
|
var sl = /* @__PURE__ */ x('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'), pt = /* @__PURE__ */ x('<div class="p-6 pt-4">'), cl = /* @__PURE__ */ x('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">'), dl = /* @__PURE__ */ x('<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">'), ul = /* @__PURE__ */ x('<div class="fixed inset-0 z-50 flex justify-end">');
|
|
1289
1289
|
function Bd(e) {
|
|
1290
1290
|
const t = () => e.variant === "center";
|
|
1291
|
-
return i(
|
|
1291
|
+
return i(Z, {
|
|
1292
1292
|
get open() {
|
|
1293
1293
|
return e.open;
|
|
1294
1294
|
},
|
|
@@ -1296,9 +1296,9 @@ function Bd(e) {
|
|
|
1296
1296
|
return e.onOpenChange;
|
|
1297
1297
|
},
|
|
1298
1298
|
get children() {
|
|
1299
|
-
return i(
|
|
1299
|
+
return i(Z.Portal, {
|
|
1300
1300
|
get children() {
|
|
1301
|
-
return [i(
|
|
1301
|
+
return [i(Z.Overlay, {
|
|
1302
1302
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
1303
1303
|
}), i(M, {
|
|
1304
1304
|
get when() {
|
|
@@ -1307,7 +1307,7 @@ function Bd(e) {
|
|
|
1307
1307
|
get fallback() {
|
|
1308
1308
|
return (() => {
|
|
1309
1309
|
var r = ul();
|
|
1310
|
-
return c(r, i(
|
|
1310
|
+
return c(r, i(Z.Content, {
|
|
1311
1311
|
get class() {
|
|
1312
1312
|
return p("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);
|
|
1313
1313
|
},
|
|
@@ -1318,12 +1318,12 @@ function Bd(e) {
|
|
|
1318
1318
|
},
|
|
1319
1319
|
get children() {
|
|
1320
1320
|
var n = dl();
|
|
1321
|
-
return c(n, i(
|
|
1321
|
+
return c(n, i(Z.Title, {
|
|
1322
1322
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
1323
1323
|
get children() {
|
|
1324
1324
|
return e.title;
|
|
1325
1325
|
}
|
|
1326
|
-
}), null), c(n, i(
|
|
1326
|
+
}), null), c(n, i(Z.CloseButton, {
|
|
1327
1327
|
class: "grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
|
|
1328
1328
|
get "aria-label"() {
|
|
1329
1329
|
return e.closeLabel ?? "Close";
|
|
@@ -1345,7 +1345,7 @@ function Bd(e) {
|
|
|
1345
1345
|
},
|
|
1346
1346
|
get children() {
|
|
1347
1347
|
var r = cl();
|
|
1348
|
-
return c(r, i(
|
|
1348
|
+
return c(r, i(Z.Content, {
|
|
1349
1349
|
get class() {
|
|
1350
1350
|
return p("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
|
|
1351
1351
|
},
|
|
@@ -1356,12 +1356,12 @@ function Bd(e) {
|
|
|
1356
1356
|
},
|
|
1357
1357
|
get children() {
|
|
1358
1358
|
var n = sl();
|
|
1359
|
-
return c(n, i(
|
|
1359
|
+
return c(n, i(Z.Title, {
|
|
1360
1360
|
class: "text-lg font-semibold leading-none tracking-tight",
|
|
1361
1361
|
get children() {
|
|
1362
1362
|
return e.title;
|
|
1363
1363
|
}
|
|
1364
|
-
}), null), c(n, i(
|
|
1364
|
+
}), null), c(n, i(Z.CloseButton, {
|
|
1365
1365
|
class: "text-muted-foreground hover:text-foreground",
|
|
1366
1366
|
get "aria-label"() {
|
|
1367
1367
|
return e.closeLabel ?? "Close";
|
|
@@ -1446,7 +1446,7 @@ function $l(e) {
|
|
|
1446
1446
|
})), k((a) => {
|
|
1447
1447
|
var v, h;
|
|
1448
1448
|
var f = e.page <= 1, g = ((v = e.labels) == null ? void 0 : v.previous) ?? "Previous page", u = e.page >= e.totalPages, d = ((h = e.labels) == null ? void 0 : h.next) ?? "Next page";
|
|
1449
|
-
return f !== a.e && (l.disabled = a.e = f), g !== a.t &&
|
|
1449
|
+
return f !== a.e && (l.disabled = a.e = f), g !== a.t && L(l, "aria-label", a.t = g), u !== a.a && (s.disabled = a.a = u), d !== a.o && L(s, "aria-label", a.o = d), a;
|
|
1450
1450
|
}, {
|
|
1451
1451
|
e: void 0,
|
|
1452
1452
|
t: void 0,
|
|
@@ -1455,13 +1455,13 @@ function $l(e) {
|
|
|
1455
1455
|
}), t;
|
|
1456
1456
|
})();
|
|
1457
1457
|
}
|
|
1458
|
-
|
|
1458
|
+
Y(["click"]);
|
|
1459
1459
|
var yl = /* @__PURE__ */ x("<select>");
|
|
1460
1460
|
const wl = "w-full rounded-md border border-input bg-background text-foreground px-3 py-2 text-sm outline-none transition-colors a4-field";
|
|
1461
1461
|
function Nd(e) {
|
|
1462
1462
|
const [t, r] = ie(e, ["value", "onChange", "class", "children"]);
|
|
1463
1463
|
let n;
|
|
1464
|
-
return
|
|
1464
|
+
return re(() => {
|
|
1465
1465
|
const l = t.value ?? "";
|
|
1466
1466
|
t.children, n && n.value !== l && (n.value = l);
|
|
1467
1467
|
}), (() => {
|
|
@@ -1484,7 +1484,7 @@ function _l(e) {
|
|
|
1484
1484
|
var t = pl();
|
|
1485
1485
|
return k((r) => {
|
|
1486
1486
|
var n = p("h-5 w-5 animate-spin text-muted-foreground", e.class), l = e.label ?? "Loading";
|
|
1487
|
-
return n !== r.e &&
|
|
1487
|
+
return n !== r.e && L(t, "class", r.e = n), l !== r.t && L(t, "aria-label", r.t = l), r;
|
|
1488
1488
|
}, {
|
|
1489
1489
|
e: void 0,
|
|
1490
1490
|
t: void 0
|
|
@@ -1858,7 +1858,7 @@ function Gd(e) {
|
|
|
1858
1858
|
}, r), !1, !1), n;
|
|
1859
1859
|
})();
|
|
1860
1860
|
}
|
|
1861
|
-
|
|
1861
|
+
Y(["input"]);
|
|
1862
1862
|
function Wd(e) {
|
|
1863
1863
|
return i(Me, {
|
|
1864
1864
|
get children() {
|
|
@@ -2450,11 +2450,11 @@ function du(e) {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
});
|
|
2452
2452
|
}
|
|
2453
|
-
var ti = /* @__PURE__ */ x('<div role=region aria-roledescription=carousel tabindex=0><div class="relative overflow-hidden rounded-xl border border-border bg-card text-foreground"><div></div><button type=button aria-label="Previous slide"class="absolute left-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow transition-opacity hover:opacity-90"></button><button type=button aria-label="Next slide"class="absolute right-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow transition-opacity hover:opacity-90"></button></div><div class="flex items-center justify-center gap-
|
|
2453
|
+
var ti = /* @__PURE__ */ x('<div role=region aria-roledescription=carousel tabindex=0><div class="relative overflow-hidden rounded-xl border border-border bg-card text-foreground"><div></div><button type=button aria-label="Previous slide"class="absolute left-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow transition-opacity hover:opacity-90"></button><button type=button aria-label="Next slide"class="absolute right-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-primary text-primary-foreground shadow transition-opacity hover:opacity-90"></button></div><div class="flex items-center justify-center gap-1">'), ri = /* @__PURE__ */ x('<div class="w-full shrink-0">'), ni = /* @__PURE__ */ x('<button type=button class="grid h-6 w-6 place-items-center rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"><span>');
|
|
2454
2454
|
function uu(e) {
|
|
2455
2455
|
const [t, r] = F(0), n = () => e.slides.length, l = (C) => {
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2456
|
+
const D = n();
|
|
2457
|
+
D !== 0 && r((C % D + D) % D);
|
|
2458
2458
|
}, o = () => l(t() - 1), s = () => l(t() + 1), a = (C) => {
|
|
2459
2459
|
C.key === "ArrowLeft" ? (C.preventDefault(), o()) : C.key === "ArrowRight" && (C.preventDefault(), s());
|
|
2460
2460
|
}, f = () => e.swipe !== !1;
|
|
@@ -2467,8 +2467,8 @@ function uu(e) {
|
|
|
2467
2467
|
u() && h(C.clientX - y);
|
|
2468
2468
|
}, $ = () => {
|
|
2469
2469
|
if (!u()) return;
|
|
2470
|
-
const C = (g == null ? void 0 : g.clientWidth) ?? 1,
|
|
2471
|
-
|
|
2470
|
+
const C = (g == null ? void 0 : g.clientWidth) ?? 1, D = v(), S = Math.max(48, C * 0.2);
|
|
2471
|
+
D <= -S ? s() : D >= S && o(), h(0), d(!1);
|
|
2472
2472
|
}, [w, _] = F(!1);
|
|
2473
2473
|
return W(() => {
|
|
2474
2474
|
if (e.autoplayMs === void 0 || H()) return;
|
|
@@ -2477,10 +2477,10 @@ function uu(e) {
|
|
|
2477
2477
|
}, e.autoplayMs);
|
|
2478
2478
|
q(() => clearInterval(C));
|
|
2479
2479
|
}), (() => {
|
|
2480
|
-
var C = ti(),
|
|
2480
|
+
var C = ti(), D = C.firstChild, S = D.firstChild, T = S.nextSibling, I = T.nextSibling, P = D.nextSibling;
|
|
2481
2481
|
C.addEventListener("pointerleave", () => _(!1)), C.addEventListener("pointerenter", () => _(!0)), C.$$keydown = a;
|
|
2482
2482
|
var j = g;
|
|
2483
|
-
return typeof j == "function" ? R(j,
|
|
2483
|
+
return typeof j == "function" ? R(j, D) : g = D, S.addEventListener("pointercancel", $), S.$$pointerup = $, S.$$pointermove = b, S.$$pointerdown = m, c(S, i(z, {
|
|
2484
2484
|
get each() {
|
|
2485
2485
|
return e.slides;
|
|
2486
2486
|
},
|
|
@@ -2496,19 +2496,23 @@ function uu(e) {
|
|
|
2496
2496
|
get each() {
|
|
2497
2497
|
return e.slides;
|
|
2498
2498
|
},
|
|
2499
|
-
children: (A, B) => (
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
var
|
|
2503
|
-
return
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2499
|
+
children: (A, B) => (
|
|
2500
|
+
// 24×24 hit target (a11y target-size) around a small visual dot.
|
|
2501
|
+
(() => {
|
|
2502
|
+
var N = ni(), X = N.firstChild;
|
|
2503
|
+
return N.$$click = () => l(B()), k((J) => {
|
|
2504
|
+
var ne = `Go to slide ${B() + 1}`, V = t() === B() ? "true" : void 0, ee = p("h-2 w-2 rounded-full transition-colors", t() === B() ? "bg-primary" : "bg-muted");
|
|
2505
|
+
return ne !== J.e && L(N, "aria-label", J.e = ne), V !== J.t && L(N, "aria-current", J.t = V), ee !== J.a && E(X, J.a = ee), J;
|
|
2506
|
+
}, {
|
|
2507
|
+
e: void 0,
|
|
2508
|
+
t: void 0,
|
|
2509
|
+
a: void 0
|
|
2510
|
+
}), N;
|
|
2511
|
+
})()
|
|
2512
|
+
)
|
|
2509
2513
|
})), k((A) => {
|
|
2510
|
-
var B = p("flex flex-col gap-3 outline-none focus-visible:ring-2 focus-visible:ring-primary", e.class), N = p("flex", f() && n() > 1 && "touch-pan-y cursor-grab active:cursor-grabbing", !u() && "transition-transform duration-500 ease-out"),
|
|
2511
|
-
return B !== A.e && E(C, A.e = B), N !== A.t && E(S, A.t = N),
|
|
2514
|
+
var B = p("flex flex-col gap-3 outline-none focus-visible:ring-2 focus-visible:ring-primary", e.class), N = p("flex", f() && n() > 1 && "touch-pan-y cursor-grab active:cursor-grabbing", !u() && "transition-transform duration-500 ease-out"), X = `translateX(calc(-${t() * 100}% + ${v()}px))`;
|
|
2515
|
+
return B !== A.e && E(C, A.e = B), N !== A.t && E(S, A.t = N), X !== A.a && O(S, "transform", A.a = X), A;
|
|
2512
2516
|
}, {
|
|
2513
2517
|
e: void 0,
|
|
2514
2518
|
t: void 0,
|
|
@@ -2516,7 +2520,7 @@ function uu(e) {
|
|
|
2516
2520
|
}), C;
|
|
2517
2521
|
})();
|
|
2518
2522
|
}
|
|
2519
|
-
|
|
2523
|
+
Y(["keydown", "pointerdown", "pointermove", "pointerup", "click"]);
|
|
2520
2524
|
var li = /* @__PURE__ */ x("<ol aria-label=Progress>"), ii = /* @__PURE__ */ x("<span>"), oi = /* @__PURE__ */ x("<span aria-hidden=true>"), ai = /* @__PURE__ */ x("<button type=button>"), si = /* @__PURE__ */ x('<p class="text-xs text-muted-foreground">'), ci = /* @__PURE__ */ x("<li><div><div><div><p>"), di = /* @__PURE__ */ x("<div>");
|
|
2521
2525
|
function gu(e) {
|
|
2522
2526
|
const t = () => e.orientation ?? "horizontal";
|
|
@@ -2571,7 +2575,7 @@ function gu(e) {
|
|
|
2571
2575
|
return (w = e.onStepClick) == null ? void 0 : w.call(e, l());
|
|
2572
2576
|
}, c($, u), k((w) => {
|
|
2573
2577
|
var _ = n.label, C = d();
|
|
2574
|
-
return _ !== w.e &&
|
|
2578
|
+
return _ !== w.e && L($, "aria-label", w.e = _), C !== w.t && E($, w.t = C), w;
|
|
2575
2579
|
}, {
|
|
2576
2580
|
e: void 0,
|
|
2577
2581
|
t: void 0
|
|
@@ -2586,8 +2590,8 @@ function gu(e) {
|
|
|
2586
2590
|
return c($, () => n.description), $;
|
|
2587
2591
|
}
|
|
2588
2592
|
}), null), k(($) => {
|
|
2589
|
-
var w = s() ? "step" : void 0, _ = p("flex", f() ? "flex-col" : "flex-1 items-start last:flex-none"), C = p("flex", f() ? "flex-row" : "w-full items-center"),
|
|
2590
|
-
return w !== $.e &&
|
|
2593
|
+
var w = s() ? "step" : void 0, _ = p("flex", f() ? "flex-col" : "flex-1 items-start last:flex-none"), C = p("flex", f() ? "flex-row" : "w-full items-center"), D = p("flex gap-3", f() ? "items-start" : "flex-col items-center"), S = p(f() ? "pt-1" : "text-center"), T = p("text-sm font-medium", s() || o() ? "text-foreground" : "text-muted-foreground");
|
|
2594
|
+
return w !== $.e && L(v, "aria-current", $.e = w), _ !== $.t && E(v, $.t = _), C !== $.a && E(h, $.a = C), D !== $.o && E(y, $.o = D), S !== $.i && E(m, $.i = S), T !== $.n && E(b, $.n = T), $;
|
|
2591
2595
|
}, {
|
|
2592
2596
|
e: void 0,
|
|
2593
2597
|
t: void 0,
|
|
@@ -2601,7 +2605,7 @@ function gu(e) {
|
|
|
2601
2605
|
})), k(() => E(r, p("flex", t() === "vertical" ? "flex-col" : "items-start", e.class))), r;
|
|
2602
2606
|
})();
|
|
2603
2607
|
}
|
|
2604
|
-
|
|
2608
|
+
Y(["click"]);
|
|
2605
2609
|
var ui = /* @__PURE__ */ x("<ol>"), gi = /* @__PURE__ */ x('<span aria-hidden=true class="absolute left-[calc(0.5rem+0.375rem)] top-3 -bottom-6 w-px -translate-x-1/2 bg-border">'), fi = /* @__PURE__ */ x('<span class="shrink-0 text-xs text-muted-foreground">'), mi = /* @__PURE__ */ x('<p class="mt-1 text-sm text-muted-foreground">'), hi = /* @__PURE__ */ x('<li class="relative flex gap-4 pl-2"><span aria-hidden=true></span><div class="min-w-0 flex-1"><div class="flex items-baseline justify-between gap-3"><p class="font-medium text-foreground">');
|
|
2606
2610
|
const vi = {
|
|
2607
2611
|
default: "bg-muted border border-border",
|
|
@@ -2666,7 +2670,7 @@ function mu(e) {
|
|
|
2666
2670
|
var u = bi(), d = u.firstChild, v = d.nextSibling;
|
|
2667
2671
|
return d.$$click = () => o("monthly"), v.$$click = () => o("annual"), k((h) => {
|
|
2668
2672
|
var y = p("rounded-full px-3 py-1.5 font-medium transition-colors", l() === "monthly" ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"), m = l() === "monthly", b = p("rounded-full px-3 py-1.5 font-medium transition-colors", l() === "annual" ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"), $ = l() === "annual";
|
|
2669
|
-
return y !== h.e && E(d, h.e = y), m !== h.t &&
|
|
2673
|
+
return y !== h.e && E(d, h.e = y), m !== h.t && L(d, "aria-pressed", h.t = m), b !== h.a && E(v, h.a = b), $ !== h.o && L(v, "aria-pressed", h.o = $), h;
|
|
2670
2674
|
}, {
|
|
2671
2675
|
e: void 0,
|
|
2672
2676
|
t: void 0,
|
|
@@ -2762,7 +2766,7 @@ function mu(e) {
|
|
|
2762
2766
|
opacity: 0.35
|
|
2763
2767
|
}), Ue(h, "click", d().onClick, !0), c(h, () => d().label), k((y) => {
|
|
2764
2768
|
var m = v(), b = p(ki, Ci[u.highlighted ? "primary" : "outline"]);
|
|
2765
|
-
return m !== y.e &&
|
|
2769
|
+
return m !== y.e && L(h, "href", y.e = m), b !== y.t && E(h, y.t = b), y;
|
|
2766
2770
|
}, {
|
|
2767
2771
|
e: void 0,
|
|
2768
2772
|
t: void 0
|
|
@@ -2777,7 +2781,7 @@ function mu(e) {
|
|
|
2777
2781
|
})), k(() => E(f, p("flex flex-col items-center gap-8", t.class))), f;
|
|
2778
2782
|
})();
|
|
2779
2783
|
}
|
|
2780
|
-
|
|
2784
|
+
Y(["click", "pointerdown"]);
|
|
2781
2785
|
var Si = /* @__PURE__ */ x('<div><img alt aria-hidden=true class="absolute inset-0 h-full w-full object-cover"><img><div role=slider tabindex=0 aria-orientation=horizontal aria-valuemin=0 aria-valuemax=100><span class="grid h-8 w-8 place-items-center rounded-full border border-border bg-background text-foreground shadow-md group-focus-visible:ring-2 group-focus-visible:ring-primary group-focus-visible:ring-offset-2 group-focus-visible:ring-offset-background">'), Ei = /* @__PURE__ */ x('<span class="pointer-events-none absolute bottom-3 left-3 rounded-md border border-border bg-background/70 px-2 py-1 text-xs font-medium text-foreground backdrop-blur-sm">'), Mi = /* @__PURE__ */ x('<span class="pointer-events-none absolute bottom-3 right-3 rounded-md border border-border bg-background/70 px-2 py-1 text-xs font-medium text-foreground backdrop-blur-sm">');
|
|
2782
2786
|
const Xe = (e) => Math.min(100, Math.max(0, e));
|
|
2783
2787
|
function hu(e) {
|
|
@@ -2804,7 +2808,7 @@ function hu(e) {
|
|
|
2804
2808
|
var d = Si(), v = d.firstChild, h = v.nextSibling, y = h.nextSibling, m = y.firstChild;
|
|
2805
2809
|
d.$$click = f;
|
|
2806
2810
|
var b = o;
|
|
2807
|
-
return typeof b == "function" ? R(b, d) : o = d,
|
|
2811
|
+
return typeof b == "function" ? R(b, d) : o = d, L(v, "draggable", !1), L(h, "draggable", !1), c(d, i(M, {
|
|
2808
2812
|
get when() {
|
|
2809
2813
|
return e.labels;
|
|
2810
2814
|
},
|
|
@@ -2818,8 +2822,8 @@ function hu(e) {
|
|
|
2818
2822
|
}), y), y.$$click = ($) => $.stopPropagation(), y.$$keydown = g, y.$$pointerdown = a, c(m, i(Ir, {
|
|
2819
2823
|
class: "h-4 w-4"
|
|
2820
2824
|
})), k(($) => {
|
|
2821
|
-
var w = p("relative aspect-video w-full select-none overflow-hidden", e.class), _ = e.before, C = e.after,
|
|
2822
|
-
return w !== $.e && E(d, $.e = w), _ !== $.t &&
|
|
2825
|
+
var w = p("relative aspect-video w-full select-none overflow-hidden", e.class), _ = e.before, C = e.after, D = e.alt, S = p("absolute inset-0 h-full w-full object-cover", u()), T = `inset(0 ${100 - t()}% 0 0)`, I = e.alt, P = Math.round(t()), j = p("group absolute inset-y-0 flex w-8 -translate-x-1/2 cursor-ew-resize touch-none items-center justify-center", "before:pointer-events-none before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-background before:content-['']", "focus-visible:outline-none"), A = `${t()}%`;
|
|
2826
|
+
return w !== $.e && E(d, $.e = w), _ !== $.t && L(v, "src", $.t = _), C !== $.a && L(h, "src", $.a = C), D !== $.o && L(h, "alt", $.o = D), S !== $.i && E(h, $.i = S), T !== $.n && O(h, "clip-path", $.n = T), I !== $.s && L(y, "aria-label", $.s = I), P !== $.h && L(y, "aria-valuenow", $.h = P), j !== $.r && E(y, $.r = j), A !== $.d && O(y, "left", $.d = A), $;
|
|
2823
2827
|
}, {
|
|
2824
2828
|
e: void 0,
|
|
2825
2829
|
t: void 0,
|
|
@@ -2834,7 +2838,7 @@ function hu(e) {
|
|
|
2834
2838
|
}), d;
|
|
2835
2839
|
})();
|
|
2836
2840
|
}
|
|
2837
|
-
|
|
2841
|
+
Y(["click", "pointerdown", "keydown"]);
|
|
2838
2842
|
var Ti = /* @__PURE__ */ x('<p class="mt-1 max-w-sm text-sm text-muted-foreground">'), Li = /* @__PURE__ */ x("<div class=mt-4>"), Di = /* @__PURE__ */ x('<div><div class="grid h-12 w-12 place-items-center rounded-full bg-muted text-muted-foreground"></div><p class="mt-4 font-semibold text-foreground">');
|
|
2839
2843
|
function vu(e) {
|
|
2840
2844
|
return (() => {
|
|
@@ -2944,7 +2948,7 @@ function xu(e) {
|
|
|
2944
2948
|
}
|
|
2945
2949
|
}), null), k((d) => {
|
|
2946
2950
|
var v = s() ? a() : void 0, h = `${o.depth * 1 + 0.5}rem`;
|
|
2947
|
-
return v !== d.e &&
|
|
2951
|
+
return v !== d.e && L(f, "aria-expanded", d.e = v), h !== d.t && O(g, "padding-left", d.t = h), d;
|
|
2948
2952
|
}, {
|
|
2949
2953
|
e: void 0,
|
|
2950
2954
|
t: void 0
|
|
@@ -2964,7 +2968,7 @@ function xu(e) {
|
|
|
2964
2968
|
})), k(() => E(o, p("text-foreground", e.class))), o;
|
|
2965
2969
|
})();
|
|
2966
2970
|
}
|
|
2967
|
-
|
|
2971
|
+
Y(["click"]);
|
|
2968
2972
|
var Oi = /* @__PURE__ */ x("<kbd>");
|
|
2969
2973
|
const Bi = "inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";
|
|
2970
2974
|
function $u(e) {
|
|
@@ -3129,8 +3133,8 @@ function _u(e) {
|
|
|
3129
3133
|
return (() => {
|
|
3130
3134
|
var d = qi(), v = d.firstChild, h = v.nextSibling, y = h.nextSibling, m = a;
|
|
3131
3135
|
return typeof m == "function" ? R(m, d) : a = d, c(v, () => e.start), h.$$keydown = u, h.$$pointerdown = g, c(y, () => e.end), k((b) => {
|
|
3132
|
-
var $ = p("flex overflow-hidden", t() === "horizontal" ? "h-64 flex-row" : "flex-col", e.class), w = `${o()}%`, _ = t(), C = Math.round(o()),
|
|
3133
|
-
return $ !== b.e && E(d, b.e = $), w !== b.t && O(v, "flex-basis", b.t = w), _ !== b.a &&
|
|
3136
|
+
var $ = p("flex overflow-hidden", t() === "horizontal" ? "h-64 flex-row" : "flex-col", e.class), w = `${o()}%`, _ = t(), C = Math.round(o()), D = r(), S = n(), T = p("shrink-0 bg-border transition-colors hover:bg-primary/50 focus-visible:bg-primary/50 focus-visible:outline-none", t() === "horizontal" ? "w-1 cursor-col-resize" : "h-1 cursor-row-resize"), I = `${100 - o()}%`;
|
|
3137
|
+
return $ !== b.e && E(d, b.e = $), w !== b.t && O(v, "flex-basis", b.t = w), _ !== b.a && L(h, "aria-orientation", b.a = _), C !== b.o && L(h, "aria-valuenow", b.o = C), D !== b.i && L(h, "aria-valuemin", b.i = D), S !== b.n && L(h, "aria-valuemax", b.n = S), T !== b.s && E(h, b.s = T), I !== b.h && O(y, "flex-basis", b.h = I), b;
|
|
3134
3138
|
}, {
|
|
3135
3139
|
e: void 0,
|
|
3136
3140
|
t: void 0,
|
|
@@ -3143,16 +3147,16 @@ function _u(e) {
|
|
|
3143
3147
|
}), d;
|
|
3144
3148
|
})();
|
|
3145
3149
|
}
|
|
3146
|
-
|
|
3150
|
+
Y(["pointerdown", "keydown"]);
|
|
3147
3151
|
var Gi = /* @__PURE__ */ x('<input autofocus type=text class="w-full border-b border-border bg-transparent px-4 py-3 text-sm text-foreground outline-none placeholder:text-muted-foreground">'), Wi = /* @__PURE__ */ x('<ul class="max-h-80 overflow-y-auto p-2">'), Ji = /* @__PURE__ */ x('<div class="flex items-center gap-3 border-t border-border px-4 py-2 text-[11px] text-muted-foreground"><span>↑↓ to navigate</span><span>↵ to select</span><span>esc to close'), Zi = /* @__PURE__ */ x('<div class="fixed inset-x-0 top-[14vh] z-50 mx-auto w-full max-w-lg px-4">'), Qi = /* @__PURE__ */ x('<li class="px-3 py-8 text-center text-sm text-muted-foreground">No results'), eo = /* @__PURE__ */ x('<div class="px-3 pb-1 pt-2 text-[11px] font-medium uppercase tracking-wide text-muted-foreground">'), to = /* @__PURE__ */ x('<span class="text-[11px] uppercase tracking-wide text-muted-foreground">'), ro = /* @__PURE__ */ x('<li><button type=button><span class="text-sm text-foreground">');
|
|
3148
3152
|
function ku(e) {
|
|
3149
|
-
const [t, r] = F(""), [n, l] = F(0), o =
|
|
3153
|
+
const [t, r] = F(""), [n, l] = F(0), o = Q(() => {
|
|
3150
3154
|
const f = t().trim().toLowerCase();
|
|
3151
3155
|
return f ? e.items.filter((g) => `${g.label} ${g.hint ?? ""} ${g.group ?? ""}`.toLowerCase().includes(f)) : e.items;
|
|
3152
3156
|
});
|
|
3153
|
-
|
|
3157
|
+
re(() => {
|
|
3154
3158
|
o(), l(0);
|
|
3155
|
-
}),
|
|
3159
|
+
}), re(() => {
|
|
3156
3160
|
e.open || r("");
|
|
3157
3161
|
});
|
|
3158
3162
|
const s = (f) => {
|
|
@@ -3169,7 +3173,7 @@ function ku(e) {
|
|
|
3169
3173
|
u && s(u);
|
|
3170
3174
|
}
|
|
3171
3175
|
};
|
|
3172
|
-
return i(
|
|
3176
|
+
return i(Z, {
|
|
3173
3177
|
get open() {
|
|
3174
3178
|
return e.open;
|
|
3175
3179
|
},
|
|
@@ -3177,13 +3181,13 @@ function ku(e) {
|
|
|
3177
3181
|
return e.onOpenChange;
|
|
3178
3182
|
},
|
|
3179
3183
|
get children() {
|
|
3180
|
-
return i(
|
|
3184
|
+
return i(Z.Portal, {
|
|
3181
3185
|
get children() {
|
|
3182
|
-
return [i(
|
|
3186
|
+
return [i(Z.Overlay, {
|
|
3183
3187
|
class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
3184
3188
|
}), (() => {
|
|
3185
3189
|
var f = Zi();
|
|
3186
|
-
return c(f, i(
|
|
3190
|
+
return c(f, i(Z.Content, {
|
|
3187
3191
|
role: "dialog",
|
|
3188
3192
|
class: "modal-content bg-glass overflow-hidden rounded-xl border border-border shadow-2xl",
|
|
3189
3193
|
get children() {
|
|
@@ -3191,7 +3195,7 @@ function ku(e) {
|
|
|
3191
3195
|
var g = Gi();
|
|
3192
3196
|
return g.$$keydown = a, g.$$input = (u) => r(u.currentTarget.value), k((u) => {
|
|
3193
3197
|
var d = e.placeholder ?? "Type a command…", v = e.placeholder ?? "Type a command…";
|
|
3194
|
-
return d !== u.e &&
|
|
3198
|
+
return d !== u.e && L(g, "placeholder", u.e = d), v !== u.t && L(g, "aria-label", u.t = v), u;
|
|
3195
3199
|
}, {
|
|
3196
3200
|
e: void 0,
|
|
3197
3201
|
t: void 0
|
|
@@ -3243,7 +3247,7 @@ function ku(e) {
|
|
|
3243
3247
|
}
|
|
3244
3248
|
});
|
|
3245
3249
|
}
|
|
3246
|
-
|
|
3250
|
+
Y(["input", "keydown", "click"]);
|
|
3247
3251
|
var no = /* @__PURE__ */ x('<div><input class="flex-1 border-0 bg-transparent px-1 text-sm text-foreground outline-none placeholder:text-muted-foreground">'), lo = /* @__PURE__ */ x('<span class="inline-flex items-center gap-1 rounded bg-muted px-2 py-0.5 text-xs text-foreground"><button type=button class="inline-flex items-center text-muted-foreground transition-colors hover:text-foreground">');
|
|
3248
3252
|
function Cu(e) {
|
|
3249
3253
|
const [t, r] = F(""), n = () => {
|
|
@@ -3262,20 +3266,20 @@ function Cu(e) {
|
|
|
3262
3266
|
},
|
|
3263
3267
|
children: (f) => (() => {
|
|
3264
3268
|
var g = lo(), u = g.firstChild;
|
|
3265
|
-
return c(g, f, u), u.$$click = () => l(f),
|
|
3269
|
+
return c(g, f, u), u.$$click = () => l(f), L(u, "aria-label", `Remove ${f}`), c(u, i(me, {
|
|
3266
3270
|
class: "size-3"
|
|
3267
3271
|
})), g;
|
|
3268
3272
|
})()
|
|
3269
3273
|
}), a), a.$$keydown = o, a.$$input = (f) => r(f.currentTarget.value), k((f) => {
|
|
3270
3274
|
var g = p("flex flex-wrap items-center gap-1 rounded-md border border-input bg-background px-2 py-1.5", e.class), u = e.placeholder;
|
|
3271
|
-
return g !== f.e && E(s, f.e = g), u !== f.t &&
|
|
3275
|
+
return g !== f.e && E(s, f.e = g), u !== f.t && L(a, "placeholder", f.t = u), f;
|
|
3272
3276
|
}, {
|
|
3273
3277
|
e: void 0,
|
|
3274
3278
|
t: void 0
|
|
3275
3279
|
}), k(() => a.value = t()), s;
|
|
3276
3280
|
})();
|
|
3277
3281
|
}
|
|
3278
|
-
|
|
3282
|
+
Y(["input", "keydown", "click"]);
|
|
3279
3283
|
var io = /* @__PURE__ */ x('<div><button type=button class="flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium text-foreground hover:bg-muted"></button><div><div class=overflow-hidden><div class="px-3 py-2 text-sm text-muted-foreground">');
|
|
3280
3284
|
function Su(e) {
|
|
3281
3285
|
return (() => {
|
|
@@ -3286,7 +3290,7 @@ function Su(e) {
|
|
|
3286
3290
|
}
|
|
3287
3291
|
}), null), c(o, () => e.children), k((s) => {
|
|
3288
3292
|
var a = p(e.class), f = e.open, g = p("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", e.open ? "grid-rows-[1fr]" : "grid-rows-[0fr]");
|
|
3289
|
-
return a !== s.e && E(t, s.e = a), f !== s.t &&
|
|
3293
|
+
return a !== s.e && E(t, s.e = a), f !== s.t && L(r, "aria-expanded", s.t = f), g !== s.a && E(n, s.a = g), s;
|
|
3290
3294
|
}, {
|
|
3291
3295
|
e: void 0,
|
|
3292
3296
|
t: void 0,
|
|
@@ -3294,7 +3298,7 @@ function Su(e) {
|
|
|
3294
3298
|
}), t;
|
|
3295
3299
|
})();
|
|
3296
3300
|
}
|
|
3297
|
-
|
|
3301
|
+
Y(["click"]);
|
|
3298
3302
|
var oo = /* @__PURE__ */ x('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');
|
|
3299
3303
|
function Eu(e) {
|
|
3300
3304
|
const t = () => e.size ?? 96, r = () => e.thickness ?? 8, n = () => Math.min(100, Math.max(0, e.value)), l = () => (t() - r()) / 2, o = () => 2 * Math.PI * l(), s = () => o() * (1 - n() / 100);
|
|
@@ -3311,8 +3315,8 @@ function Eu(e) {
|
|
|
3311
3315
|
return e.label;
|
|
3312
3316
|
}
|
|
3313
3317
|
})), k((v) => {
|
|
3314
|
-
var h = n(), y = p("relative inline-flex items-center justify-center", e.class), m = `${t()}px`, b = `${t()}px`, $ = t(), w = t(), _ = `0 0 ${t()} ${t()}`, C = t() / 2,
|
|
3315
|
-
return h !== v.e &&
|
|
3318
|
+
var h = n(), y = p("relative inline-flex items-center justify-center", e.class), m = `${t()}px`, b = `${t()}px`, $ = t(), w = t(), _ = `0 0 ${t()} ${t()}`, C = t() / 2, D = t() / 2, S = l(), T = r(), I = t() / 2, P = t() / 2, j = l(), A = r(), B = String(o()), N = String(s());
|
|
3319
|
+
return h !== v.e && L(a, "aria-valuenow", v.e = h), y !== v.t && E(a, v.t = y), m !== v.a && O(a, "width", v.a = m), b !== v.o && O(a, "height", v.o = b), $ !== v.i && L(f, "width", v.i = $), w !== v.n && L(f, "height", v.n = w), _ !== v.s && L(f, "viewBox", v.s = _), C !== v.h && L(g, "cx", v.h = C), D !== v.r && L(g, "cy", v.r = D), S !== v.d && L(g, "r", v.d = S), T !== v.l && L(g, "stroke-width", v.l = T), I !== v.u && L(u, "cx", v.u = I), P !== v.c && L(u, "cy", v.c = P), j !== v.w && L(u, "r", v.w = j), A !== v.m && L(u, "stroke-width", v.m = A), B !== v.f && L(u, "stroke-dasharray", v.f = B), N !== v.y && L(u, "stroke-dashoffset", v.y = N), v;
|
|
3316
3320
|
}, {
|
|
3317
3321
|
e: void 0,
|
|
3318
3322
|
t: void 0,
|
|
@@ -3357,7 +3361,7 @@ function Mu(e) {
|
|
|
3357
3361
|
}
|
|
3358
3362
|
});
|
|
3359
3363
|
}
|
|
3360
|
-
|
|
3364
|
+
Y(["click"]);
|
|
3361
3365
|
var so = /* @__PURE__ */ x("<button type=button>");
|
|
3362
3366
|
const co = {
|
|
3363
3367
|
"bottom-right": "bottom-6 right-6",
|
|
@@ -3375,14 +3379,14 @@ function Tu(e) {
|
|
|
3375
3379
|
return (r = e.onClick) == null ? void 0 : r.call(e);
|
|
3376
3380
|
}, c(t, () => e.icon), k((r) => {
|
|
3377
3381
|
var n = e.label, l = p(uo, co[e.position ?? "bottom-right"], e.ripple && "relative overflow-hidden", e.class);
|
|
3378
|
-
return n !== r.e &&
|
|
3382
|
+
return n !== r.e && L(t, "aria-label", r.e = n), l !== r.t && E(t, r.t = l), r;
|
|
3379
3383
|
}, {
|
|
3380
3384
|
e: void 0,
|
|
3381
3385
|
t: void 0
|
|
3382
3386
|
}), t;
|
|
3383
3387
|
})();
|
|
3384
3388
|
}
|
|
3385
|
-
|
|
3389
|
+
Y(["click", "pointerdown"]);
|
|
3386
3390
|
var go = /* @__PURE__ */ x("<nav>"), fo = /* @__PURE__ */ x("<a>");
|
|
3387
3391
|
function Lu(e) {
|
|
3388
3392
|
const [t, r] = F();
|
|
@@ -3421,7 +3425,7 @@ function Lu(e) {
|
|
|
3421
3425
|
var s = fo();
|
|
3422
3426
|
return s.$$click = (a) => n(a, o.id), c(s, () => o.label), k((a) => {
|
|
3423
3427
|
var f = "#" + o.id, g = t() === o.id ? "true" : void 0, u = p("block rounded px-3 py-1.5 text-sm transition-colors", t() === o.id ? "border-l-2 border-primary font-medium text-primary" : "text-muted-foreground hover:text-foreground");
|
|
3424
|
-
return f !== a.e &&
|
|
3428
|
+
return f !== a.e && L(s, "href", a.e = f), g !== a.t && L(s, "aria-current", a.t = g), u !== a.a && E(s, a.a = u), a;
|
|
3425
3429
|
}, {
|
|
3426
3430
|
e: void 0,
|
|
3427
3431
|
t: void 0,
|
|
@@ -3431,7 +3435,7 @@ function Lu(e) {
|
|
|
3431
3435
|
})), k(() => E(l, p("flex flex-col gap-0.5", e.class))), l;
|
|
3432
3436
|
})();
|
|
3433
3437
|
}
|
|
3434
|
-
|
|
3438
|
+
Y(["click"]);
|
|
3435
3439
|
var mo = /* @__PURE__ */ x("<span>"), ho = /* @__PURE__ */ x('<mark class="rounded bg-primary/30 px-0.5 text-foreground">');
|
|
3436
3440
|
function vo(e) {
|
|
3437
3441
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -3548,7 +3552,7 @@ function Mo(e) {
|
|
|
3548
3552
|
})();
|
|
3549
3553
|
}
|
|
3550
3554
|
function Au(e) {
|
|
3551
|
-
const t =
|
|
3555
|
+
const t = Q(() => e.to.getTime()), r = () => Math.max(0, t() - Date.now()), [n, l] = F(r());
|
|
3552
3556
|
let o = !1;
|
|
3553
3557
|
const s = (v) => {
|
|
3554
3558
|
var h;
|
|
@@ -3709,7 +3713,7 @@ function zu(e) {
|
|
|
3709
3713
|
u.complete && o(!0);
|
|
3710
3714
|
}, g), g.addEventListener("load", () => o(!0)), k((u) => {
|
|
3711
3715
|
var d = e.src, v = e.alt, h = p("rounded-lg object-cover", s() && "transition-[filter,transform] duration-500 ease-out", s() && !a() && "scale-[1.03] blur-lg", e.class);
|
|
3712
|
-
return d !== u.e &&
|
|
3716
|
+
return d !== u.e && L(g, "src", u.e = d), v !== u.t && L(g, "alt", u.t = v), h !== u.a && E(g, u.a = h), u;
|
|
3713
3717
|
}, {
|
|
3714
3718
|
e: void 0,
|
|
3715
3719
|
t: void 0,
|
|
@@ -3724,20 +3728,20 @@ function zu(e) {
|
|
|
3724
3728
|
get children() {
|
|
3725
3729
|
return [(() => {
|
|
3726
3730
|
var g = zo();
|
|
3727
|
-
return g.$$click = () => r(!0), c(g, f), k(() =>
|
|
3728
|
-
})(), i(
|
|
3731
|
+
return g.$$click = () => r(!0), c(g, f), k(() => L(g, "aria-label", e.alt)), g;
|
|
3732
|
+
})(), i(Z, {
|
|
3729
3733
|
get open() {
|
|
3730
3734
|
return t();
|
|
3731
3735
|
},
|
|
3732
3736
|
onOpenChange: r,
|
|
3733
3737
|
get children() {
|
|
3734
|
-
return i(
|
|
3738
|
+
return i(Z.Portal, {
|
|
3735
3739
|
get children() {
|
|
3736
|
-
return [i(
|
|
3740
|
+
return [i(Z.Overlay, {
|
|
3737
3741
|
class: "fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
|
|
3738
3742
|
}), (() => {
|
|
3739
3743
|
var g = Oo();
|
|
3740
|
-
return c(g, i(
|
|
3744
|
+
return c(g, i(Z.Content, {
|
|
3741
3745
|
role: "dialog",
|
|
3742
3746
|
class: "relative",
|
|
3743
3747
|
get children() {
|
|
@@ -3745,12 +3749,12 @@ function zu(e) {
|
|
|
3745
3749
|
var u = Ro();
|
|
3746
3750
|
return k((d) => {
|
|
3747
3751
|
var v = e.src, h = e.alt;
|
|
3748
|
-
return v !== d.e &&
|
|
3752
|
+
return v !== d.e && L(u, "src", d.e = v), h !== d.t && L(u, "alt", d.t = h), d;
|
|
3749
3753
|
}, {
|
|
3750
3754
|
e: void 0,
|
|
3751
3755
|
t: void 0
|
|
3752
3756
|
}), u;
|
|
3753
|
-
})(), i(
|
|
3757
|
+
})(), i(Z.CloseButton, {
|
|
3754
3758
|
class: "absolute right-2 top-2 grid h-8 w-8 place-items-center rounded-lg bg-background/70 text-foreground transition hover:bg-muted",
|
|
3755
3759
|
"aria-label": "Close",
|
|
3756
3760
|
get children() {
|
|
@@ -3769,7 +3773,7 @@ function zu(e) {
|
|
|
3769
3773
|
}
|
|
3770
3774
|
});
|
|
3771
3775
|
}
|
|
3772
|
-
|
|
3776
|
+
Y(["click"]);
|
|
3773
3777
|
var Bo = /* @__PURE__ */ x('<div class="flex flex-col items-center gap-3">'), jo = /* @__PURE__ */ x('<div><button type=button class="relative flex h-14 w-14 items-center justify-center overflow-hidden rounded-full bg-primary text-primary-foreground shadow-lg transition-transform duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring"><span>'), No = /* @__PURE__ */ x('<button type=button class="flex h-11 w-11 items-center justify-center rounded-full border border-border bg-card text-foreground shadow hover:bg-muted focus:outline-none focus:ring-2 focus:ring-ring">');
|
|
3774
3778
|
function Ru(e) {
|
|
3775
3779
|
const [t, r] = F(!1);
|
|
@@ -3802,7 +3806,7 @@ function Ru(e) {
|
|
|
3802
3806
|
});
|
|
3803
3807
|
}, g), c(g, () => a.icon), k((u) => {
|
|
3804
3808
|
var d = a.label, v = a.label;
|
|
3805
|
-
return d !== u.e &&
|
|
3809
|
+
return d !== u.e && L(g, "aria-label", u.e = d), v !== u.t && L(g, "title", u.t = v), u;
|
|
3806
3810
|
}, {
|
|
3807
3811
|
e: void 0,
|
|
3808
3812
|
t: void 0
|
|
@@ -3816,7 +3820,7 @@ function Ru(e) {
|
|
|
3816
3820
|
class: "h-6 w-6"
|
|
3817
3821
|
})), k((s) => {
|
|
3818
3822
|
var a = p("fixed bottom-6 right-6 z-40 flex flex-col items-center gap-3", e.class), f = t() ? "Close actions" : "Open actions", g = t(), u = p("inline-flex transition-transform duration-150", t() && "rotate-45");
|
|
3819
|
-
return a !== s.e && E(n, s.e = a), f !== s.t &&
|
|
3823
|
+
return a !== s.e && E(n, s.e = a), f !== s.t && L(l, "aria-label", s.t = f), g !== s.a && L(l, "aria-expanded", s.a = g), u !== s.o && E(o, s.o = u), s;
|
|
3820
3824
|
}, {
|
|
3821
3825
|
e: void 0,
|
|
3822
3826
|
t: void 0,
|
|
@@ -3825,7 +3829,7 @@ function Ru(e) {
|
|
|
3825
3829
|
}), n;
|
|
3826
3830
|
})();
|
|
3827
3831
|
}
|
|
3828
|
-
|
|
3832
|
+
Y(["click", "pointerdown"]);
|
|
3829
3833
|
var Yo = /* @__PURE__ */ x("<nav>"), Xo = /* @__PURE__ */ x("<button type=button><span>");
|
|
3830
3834
|
function Ou(e) {
|
|
3831
3835
|
return (() => {
|
|
@@ -3840,7 +3844,7 @@ function Ou(e) {
|
|
|
3840
3844
|
var l = Xo(), o = l.firstChild;
|
|
3841
3845
|
return l.$$click = () => e.onChange(r.value), c(l, () => r.icon, o), c(o, () => r.label), k((s) => {
|
|
3842
3846
|
var a = n() ? "page" : void 0, f = p("flex flex-1 flex-col items-center gap-0.5 py-2 text-[11px] transition-colors", n() ? "text-primary" : "text-muted-foreground hover:text-foreground");
|
|
3843
|
-
return a !== s.e &&
|
|
3847
|
+
return a !== s.e && L(l, "aria-current", s.e = a), f !== s.t && E(l, s.t = f), s;
|
|
3844
3848
|
}, {
|
|
3845
3849
|
e: void 0,
|
|
3846
3850
|
t: void 0
|
|
@@ -3850,7 +3854,7 @@ function Ou(e) {
|
|
|
3850
3854
|
})), k(() => E(t, p("flex items-stretch border-t border-border bg-glass", e.class))), t;
|
|
3851
3855
|
})();
|
|
3852
3856
|
}
|
|
3853
|
-
|
|
3857
|
+
Y(["click"]);
|
|
3854
3858
|
var Ho = /* @__PURE__ */ x('<div><style>@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}</style><div><div class="flex shrink-0"></div><div class="flex shrink-0"aria-hidden=true>');
|
|
3855
3859
|
function Bu(e) {
|
|
3856
3860
|
const t = () => e.pauseOnHover ?? !0;
|
|
@@ -3883,15 +3887,15 @@ function ju(e) {
|
|
|
3883
3887
|
dir: "desc"
|
|
3884
3888
|
} : null);
|
|
3885
3889
|
}
|
|
3886
|
-
const u =
|
|
3890
|
+
const u = Q(() => {
|
|
3887
3891
|
const b = t().trim().toLowerCase();
|
|
3888
3892
|
return b ? e.rows.filter(($) => Object.values($).some((w) => String(w ?? "").toLowerCase().includes(b))) : e.rows;
|
|
3889
|
-
}), d =
|
|
3893
|
+
}), d = Q(() => {
|
|
3890
3894
|
const b = n();
|
|
3891
3895
|
if (!b) return u();
|
|
3892
3896
|
const $ = b.dir === "asc" ? 1 : -1;
|
|
3893
3897
|
return [...u()].sort((w, _) => qo(w[b.key], _[b.key]) * $);
|
|
3894
|
-
}), v =
|
|
3898
|
+
}), v = Q(() => Math.max(1, Math.ceil(d().length / a()))), h = Q(() => {
|
|
3895
3899
|
const $ = (Math.min(o(), v()) - 1) * a();
|
|
3896
3900
|
return d().slice($, $ + a());
|
|
3897
3901
|
});
|
|
@@ -3993,7 +3997,7 @@ function ju(e) {
|
|
|
3993
3997
|
}), null), k(() => E(b, p("flex w-full flex-col rounded-lg border border-border bg-background", e.class))), b;
|
|
3994
3998
|
})();
|
|
3995
3999
|
}
|
|
3996
|
-
|
|
4000
|
+
Y(["click"]);
|
|
3997
4001
|
var Go = /* @__PURE__ */ x("<span class=shrink-0>"), Wo = /* @__PURE__ */ x("<ul role=group>"), Jo = /* @__PURE__ */ x("<li role=treeitem><div><span class=truncate>"), Zo = /* @__PURE__ */ x('<span class="h-3.5 w-3.5 shrink-0"aria-hidden=true>'), Qo = /* @__PURE__ */ x("<span class=truncate>"), ea = /* @__PURE__ */ x('<div class="z-50 mt-1 w-full rounded-md border border-border bg-card p-2 shadow-md absolute"><ul role=tree class=text-foreground>'), ta = /* @__PURE__ */ x('<div><button type=button aria-haspopup=tree class="flex w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors a4-field">'), ra = /* @__PURE__ */ x("<span class=text-muted-foreground>");
|
|
3998
4002
|
function fr(e, t) {
|
|
3999
4003
|
for (const r of e) {
|
|
@@ -4065,8 +4069,8 @@ function Nu(e) {
|
|
|
4065
4069
|
})), w;
|
|
4066
4070
|
}
|
|
4067
4071
|
}), null), k((w) => {
|
|
4068
|
-
var _ = v() ? h() : void 0, C = v() ? void 0 : y(),
|
|
4069
|
-
return _ !== w.e &&
|
|
4072
|
+
var _ = v() ? h() : void 0, C = v() ? void 0 : y(), D = p("flex items-center gap-1.5 rounded-md px-2 py-1 text-sm text-foreground hover:bg-muted cursor-pointer", y() && "bg-accent text-accent-foreground"), S = `${d.depth * 1 + 0.5}rem`;
|
|
4073
|
+
return _ !== w.e && L(m, "aria-expanded", w.e = _), C !== w.t && L(m, "aria-selected", w.t = C), D !== w.a && E(b, w.a = D), S !== w.o && O(b, "padding-left", w.o = S), w;
|
|
4070
4074
|
}, {
|
|
4071
4075
|
e: void 0,
|
|
4072
4076
|
t: void 0,
|
|
@@ -4112,14 +4116,14 @@ function Nu(e) {
|
|
|
4112
4116
|
}
|
|
4113
4117
|
}), null), k((y) => {
|
|
4114
4118
|
var m = p("relative", e.class), b = t();
|
|
4115
|
-
return m !== y.e && E(d, y.e = m), b !== y.t &&
|
|
4119
|
+
return m !== y.e && E(d, y.e = m), b !== y.t && L(v, "aria-expanded", y.t = b), y;
|
|
4116
4120
|
}, {
|
|
4117
4121
|
e: void 0,
|
|
4118
4122
|
t: void 0
|
|
4119
4123
|
}), d;
|
|
4120
4124
|
})();
|
|
4121
4125
|
}
|
|
4122
|
-
|
|
4126
|
+
Y(["click"]);
|
|
4123
4127
|
var na = /* @__PURE__ */ x("<span class=truncate>"), la = /* @__PURE__ */ x('<div class="absolute z-50 mt-1 flex overflow-hidden rounded-md border border-border bg-card text-card-foreground shadow-md">'), ia = /* @__PURE__ */ x('<div><button type=button class="flex w-full items-center justify-between gap-2 rounded-md border border-input bg-background text-foreground px-3 py-2 text-sm outline-none transition-colors a4-field"aria-haspopup=true>'), oa = /* @__PURE__ */ x("<span class=text-muted-foreground>"), aa = /* @__PURE__ */ x('<ul class="min-w-[10rem] max-h-64 overflow-y-auto border-r border-border p-1 last:border-r-0">'), sa = /* @__PURE__ */ x("<li><span class=truncate>");
|
|
4124
4128
|
function ca(e, t) {
|
|
4125
4129
|
const r = [];
|
|
@@ -4134,7 +4138,7 @@ function ca(e, t) {
|
|
|
4134
4138
|
function Yu(e) {
|
|
4135
4139
|
const [t, r] = F(!1), [n, l] = F([]);
|
|
4136
4140
|
let o;
|
|
4137
|
-
const s =
|
|
4141
|
+
const s = Q(() => ca(e.options, e.value ?? [])), a = Q(() => s().map((h) => h.label).join(" / ")), f = Q(() => {
|
|
4138
4142
|
const h = [e.options];
|
|
4139
4143
|
for (const y of n())
|
|
4140
4144
|
if (y.children && y.children.length) h.push(y.children);
|
|
@@ -4188,15 +4192,15 @@ function Yu(e) {
|
|
|
4188
4192
|
return c(_, i(z, {
|
|
4189
4193
|
each: $,
|
|
4190
4194
|
children: (C) => {
|
|
4191
|
-
const
|
|
4195
|
+
const D = () => !!C.children && C.children.length > 0, S = () => {
|
|
4192
4196
|
var T;
|
|
4193
4197
|
return ((T = n()[w()]) == null ? void 0 : T.value) === C.value;
|
|
4194
4198
|
};
|
|
4195
4199
|
return (() => {
|
|
4196
4200
|
var T = sa(), I = T.firstChild;
|
|
4197
|
-
return T.$$click = () => v(w(), C), T.addEventListener("mouseenter", () =>
|
|
4201
|
+
return T.$$click = () => v(w(), C), T.addEventListener("mouseenter", () => D() && d(w(), C)), c(I, () => C.label), c(T, i(M, {
|
|
4198
4202
|
get when() {
|
|
4199
|
-
return
|
|
4203
|
+
return D();
|
|
4200
4204
|
},
|
|
4201
4205
|
get children() {
|
|
4202
4206
|
return i(ge, {
|
|
@@ -4212,14 +4216,14 @@ function Yu(e) {
|
|
|
4212
4216
|
}
|
|
4213
4217
|
}), null), k((b) => {
|
|
4214
4218
|
var $ = p("relative inline-block", e.class), w = t();
|
|
4215
|
-
return $ !== b.e && E(h, b.e = $), w !== b.t &&
|
|
4219
|
+
return $ !== b.e && E(h, b.e = $), w !== b.t && L(y, "aria-expanded", b.t = w), b;
|
|
4216
4220
|
}, {
|
|
4217
4221
|
e: void 0,
|
|
4218
4222
|
t: void 0
|
|
4219
4223
|
}), h;
|
|
4220
4224
|
})();
|
|
4221
4225
|
}
|
|
4222
|
-
|
|
4226
|
+
Y(["click"]);
|
|
4223
4227
|
var da = /* @__PURE__ */ x('<div class="absolute z-50 mt-1 max-h-48 w-56 overflow-y-auto rounded-md border border-border bg-card p-1 shadow-md">'), ua = /* @__PURE__ */ x('<div><textarea class="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 a4-field disabled:cursor-not-allowed disabled:opacity-50">'), ga = /* @__PURE__ */ x("<button type=button>");
|
|
4224
4228
|
const fa = /@(\w*)$/;
|
|
4225
4229
|
function Xu(e) {
|
|
@@ -4235,14 +4239,14 @@ function Xu(e) {
|
|
|
4235
4239
|
const w = m.value.slice(0, b).match(fa);
|
|
4236
4240
|
w ? (o(w[1]), n(!0), g(0)) : d();
|
|
4237
4241
|
}, h = (m) => {
|
|
4238
|
-
const b = t, $ = e.value, w = b ? b.selectionStart ?? s() : s(), _ = $.slice(0, w), C = $.slice(w),
|
|
4239
|
-
if (
|
|
4242
|
+
const b = t, $ = e.value, w = b ? b.selectionStart ?? s() : s(), _ = $.slice(0, w), C = $.slice(w), D = _.lastIndexOf("@");
|
|
4243
|
+
if (D === -1) {
|
|
4240
4244
|
d();
|
|
4241
4245
|
return;
|
|
4242
4246
|
}
|
|
4243
|
-
const S = `@${m.label} `, T = $.slice(0,
|
|
4247
|
+
const S = `@${m.label} `, T = $.slice(0, D) + S + C;
|
|
4244
4248
|
if (e.onChange(T), d(), b) {
|
|
4245
|
-
const I =
|
|
4249
|
+
const I = D + S.length;
|
|
4246
4250
|
queueMicrotask(() => {
|
|
4247
4251
|
b.focus(), b.setSelectionRange(I, I), a(I);
|
|
4248
4252
|
});
|
|
@@ -4283,27 +4287,27 @@ function Xu(e) {
|
|
|
4283
4287
|
return u();
|
|
4284
4288
|
},
|
|
4285
4289
|
children: (_, C) => (() => {
|
|
4286
|
-
var
|
|
4287
|
-
return
|
|
4290
|
+
var D = ga();
|
|
4291
|
+
return D.addEventListener("mouseenter", () => g(C())), D.$$mousedown = (S) => {
|
|
4288
4292
|
S.preventDefault(), h(_);
|
|
4289
|
-
}, c(
|
|
4293
|
+
}, c(D, () => _.label), k(() => E(D, p("w-full rounded px-2 py-1.5 text-left text-sm hover:bg-muted", C() === f() && "bg-muted"))), D;
|
|
4290
4294
|
})()
|
|
4291
4295
|
})), w;
|
|
4292
4296
|
}
|
|
4293
4297
|
}), null), k((w) => {
|
|
4294
4298
|
var _ = p("relative", e.class), C = e.placeholder;
|
|
4295
|
-
return _ !== w.e && E(m, w.e = _), C !== w.t &&
|
|
4299
|
+
return _ !== w.e && E(m, w.e = _), C !== w.t && L(b, "placeholder", w.t = C), w;
|
|
4296
4300
|
}, {
|
|
4297
4301
|
e: void 0,
|
|
4298
4302
|
t: void 0
|
|
4299
4303
|
}), k(() => b.value = e.value), m;
|
|
4300
4304
|
})();
|
|
4301
4305
|
}
|
|
4302
|
-
|
|
4306
|
+
Y(["input", "click", "keyup", "keydown", "mousedown"]);
|
|
4303
4307
|
var ma = /* @__PURE__ */ x('<p class="mt-2 text-sm text-muted-foreground">'), ha = /* @__PURE__ */ x('<div role=dialog class="bg-glass z-[101] max-w-xs rounded-lg border border-border p-4 text-card-foreground shadow-2xl"><p class="font-semibold leading-none tracking-tight"></p><div class="mt-4 flex items-center justify-between gap-3"><span class="text-xs text-muted-foreground tabular-nums"> / </span><div class="flex items-center gap-2">'), va = /* @__PURE__ */ x('<div class="fixed inset-0 z-[100]"aria-hidden=true style="background-color:hsl(var(--background) / 0.7)">'), ba = /* @__PURE__ */ x('<div class="pointer-events-none fixed z-[100] rounded-lg ring-2 ring-primary"aria-hidden=true style="box-shadow:0 0 0 9999px hsl(var(--background) / 0.7)">');
|
|
4304
4308
|
function Hu(e) {
|
|
4305
4309
|
const [t, r] = F(0), [n, l] = F(null), o = () => e.steps[t()], s = () => t() >= e.steps.length - 1, a = () => t() === 0;
|
|
4306
|
-
|
|
4310
|
+
re(() => {
|
|
4307
4311
|
e.open && r(0);
|
|
4308
4312
|
});
|
|
4309
4313
|
const f = () => {
|
|
@@ -4320,7 +4324,7 @@ function Hu(e) {
|
|
|
4320
4324
|
height: m.height
|
|
4321
4325
|
} : null);
|
|
4322
4326
|
};
|
|
4323
|
-
|
|
4327
|
+
re(() => {
|
|
4324
4328
|
t(), e.open, f();
|
|
4325
4329
|
}), W(() => {
|
|
4326
4330
|
const h = () => f();
|
|
@@ -4417,8 +4421,8 @@ function Hu(e) {
|
|
|
4417
4421
|
}
|
|
4418
4422
|
}), null), k((_) => {
|
|
4419
4423
|
var S;
|
|
4420
|
-
var C = (S = o()) == null ? void 0 : S.title,
|
|
4421
|
-
return C !== _.e &&
|
|
4424
|
+
var C = (S = o()) == null ? void 0 : S.title, D = v();
|
|
4425
|
+
return C !== _.e && L(h, "aria-label", _.e = C), _.t = de(h, D, _.t), _;
|
|
4422
4426
|
}, {
|
|
4423
4427
|
e: void 0,
|
|
4424
4428
|
t: void 0
|
|
@@ -4506,12 +4510,12 @@ function Vu(e) {
|
|
|
4506
4510
|
}
|
|
4507
4511
|
});
|
|
4508
4512
|
}
|
|
4509
|
-
|
|
4513
|
+
Y(["click"]);
|
|
4510
4514
|
var Ea = /* @__PURE__ */ x('<div><input type=color aria-label="Pick a color"class="h-10 w-14 cursor-pointer rounded-md border border-border bg-transparent"><input class="rounded-md border border-input bg-background px-3 py-2 text-sm font-mono"><div class="flex w-full flex-wrap items-center gap-2">'), Ma = /* @__PURE__ */ x("<button type=button>");
|
|
4511
4515
|
const Ta = /^#[0-9a-fA-F]{6}$/, La = ["#ef4444", "#f97316", "#eab308", "#22c55e", "#3b82f6", "#8b5cf6", "#ec4899", "#64748b"];
|
|
4512
4516
|
function Uu(e) {
|
|
4513
4517
|
const [t, r] = F(e.value);
|
|
4514
|
-
|
|
4518
|
+
re(() => r(e.value));
|
|
4515
4519
|
const n = () => e.swatches ?? La, l = (o) => {
|
|
4516
4520
|
r(o), Ta.test(o) && e.onChange(o);
|
|
4517
4521
|
};
|
|
@@ -4523,12 +4527,12 @@ function Uu(e) {
|
|
|
4523
4527
|
},
|
|
4524
4528
|
children: (g) => (() => {
|
|
4525
4529
|
var u = Ma();
|
|
4526
|
-
return u.$$click = () => e.onChange(g),
|
|
4530
|
+
return u.$$click = () => e.onChange(g), L(u, "aria-label", g), O(u, "background", g), k(() => E(u, p("h-6 w-6 rounded-md border border-border transition-transform active:scale-90 focus:outline-none focus:ring-2 focus:ring-ring", g === e.value && "ring-2 ring-ring ring-offset-1 ring-offset-background"))), u;
|
|
4527
4531
|
})()
|
|
4528
4532
|
})), k(() => E(o, p("flex flex-wrap items-center gap-3", e.class))), k(() => s.value = e.value), k(() => a.value = t()), o;
|
|
4529
4533
|
})();
|
|
4530
4534
|
}
|
|
4531
|
-
|
|
4535
|
+
Y(["input", "click"]);
|
|
4532
4536
|
var Da = /* @__PURE__ */ x('<span class="text-xs text-muted-foreground">'), Ia = /* @__PURE__ */ x('<div class="mt-2 flex gap-3 text-xs text-muted-foreground">'), Aa = /* @__PURE__ */ x('<div class="mt-4 space-y-4 border-l border-border pl-4">'), Fa = /* @__PURE__ */ x('<div><div class="flex gap-3"><div class=flex-1><div class="flex items-baseline gap-2"><span class="text-sm font-medium text-foreground"></span></div><div class="mt-1 text-sm text-foreground">');
|
|
4533
4537
|
function Pa(e) {
|
|
4534
4538
|
return e.trim().split(/\s+/).map((t) => t[0] ?? "").slice(0, 2).join("").toUpperCase();
|
|
@@ -4656,7 +4660,7 @@ function Ku(e) {
|
|
|
4656
4660
|
var m = Lt();
|
|
4657
4661
|
return k((b) => {
|
|
4658
4662
|
var $ = `${y.count} on ${y.key}`, w = p("rounded-sm", Dt[y.level]);
|
|
4659
|
-
return $ !== b.e &&
|
|
4663
|
+
return $ !== b.e && L(m, "title", b.e = $), w !== b.t && E(m, b.t = w), b;
|
|
4660
4664
|
}, {
|
|
4661
4665
|
e: void 0,
|
|
4662
4666
|
t: void 0
|
|
@@ -4690,7 +4694,7 @@ var qa = /* @__PURE__ */ x("<div>"), Ga = /* @__PURE__ */ x('<div data-sortable-
|
|
|
4690
4694
|
function Gu(e) {
|
|
4691
4695
|
const [t, r] = F(e.items), [n, l] = F(null);
|
|
4692
4696
|
let o;
|
|
4693
|
-
|
|
4697
|
+
re(() => {
|
|
4694
4698
|
const g = e.items;
|
|
4695
4699
|
n() || r(g);
|
|
4696
4700
|
});
|
|
@@ -4799,7 +4803,7 @@ function Gu(e) {
|
|
|
4799
4803
|
}), null), k(() => E(g, p("flex flex-col gap-2", n() && "select-none", e.class))), g;
|
|
4800
4804
|
})();
|
|
4801
4805
|
}
|
|
4802
|
-
|
|
4806
|
+
Y(["pointerdown"]);
|
|
4803
4807
|
var Za = /* @__PURE__ */ x('<span class="text-base font-normal text-muted-foreground">'), Qa = /* @__PURE__ */ x('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'), es = /* @__PURE__ */ x("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>", !1, !0, !1), ts = /* @__PURE__ */ x('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'), rs = /* @__PURE__ */ x("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>", !1, !0, !1);
|
|
4804
4808
|
const Fe = (e) => String(e).padStart(2, "0");
|
|
4805
4809
|
function ns(e, t) {
|
|
@@ -4863,10 +4867,10 @@ function is(e) {
|
|
|
4863
4867
|
return c(u, i(z, {
|
|
4864
4868
|
each: f,
|
|
4865
4869
|
children: (m) => {
|
|
4866
|
-
const b = m * 30, $ = l() - 4, w = l() - (m % 3 === 0 ? 14 : 9), _ = r() + $ * Math.sin(b * Math.PI / 180), C = n() - $ * Math.cos(b * Math.PI / 180),
|
|
4870
|
+
const b = m * 30, $ = l() - 4, w = l() - (m % 3 === 0 ? 14 : 9), _ = r() + $ * Math.sin(b * Math.PI / 180), C = n() - $ * Math.cos(b * Math.PI / 180), D = r() + w * Math.sin(b * Math.PI / 180), S = n() - w * Math.cos(b * Math.PI / 180);
|
|
4867
4871
|
return (() => {
|
|
4868
4872
|
var T = rs();
|
|
4869
|
-
return
|
|
4873
|
+
return L(T, "x1", _), L(T, "y1", C), L(T, "x2", D), L(T, "y2", S), L(T, "stroke-width", m % 3 === 0 ? 2 : 1), T;
|
|
4870
4874
|
})();
|
|
4871
4875
|
}
|
|
4872
4876
|
}), v), c(u, i(M, {
|
|
@@ -4877,15 +4881,15 @@ function is(e) {
|
|
|
4877
4881
|
var m = es();
|
|
4878
4882
|
return k((b) => {
|
|
4879
4883
|
var $ = g(0.75), w = `rotate(${a()}deg)`;
|
|
4880
|
-
return $ !== b.e &&
|
|
4884
|
+
return $ !== b.e && L(m, "points", b.e = $), w !== b.t && O(m, "transform", b.t = w), b;
|
|
4881
4885
|
}, {
|
|
4882
4886
|
e: void 0,
|
|
4883
4887
|
t: void 0
|
|
4884
4888
|
}), m;
|
|
4885
4889
|
}
|
|
4886
4890
|
}), y), k((m) => {
|
|
4887
|
-
var b = t(), $ = t(), w = `0 0 ${t()} ${t()}`, _ = p("inline-block", e.class), C = r(),
|
|
4888
|
-
return b !== m.e &&
|
|
4891
|
+
var b = t(), $ = t(), w = `0 0 ${t()} ${t()}`, _ = p("inline-block", e.class), C = r(), D = n(), S = l() - 2, T = g(0.45), I = `rotate(${o()}deg)`, P = g(0.65), j = `rotate(${s()}deg)`, A = r(), B = n();
|
|
4892
|
+
return b !== m.e && L(u, "width", m.e = b), $ !== m.t && L(u, "height", m.t = $), w !== m.a && L(u, "viewBox", m.a = w), _ !== m.o && L(u, "class", m.o = _), C !== m.i && L(d, "cx", m.i = C), D !== m.n && L(d, "cy", m.n = D), S !== m.s && L(d, "r", m.s = S), T !== m.h && L(v, "points", m.h = T), I !== m.r && O(v, "transform", m.r = I), P !== m.d && L(h, "points", m.d = P), j !== m.l && O(h, "transform", m.l = j), A !== m.u && L(y, "cx", m.u = A), B !== m.c && L(y, "cy", m.c = B), m;
|
|
4889
4893
|
}, {
|
|
4890
4894
|
e: void 0,
|
|
4891
4895
|
t: void 0,
|
|
@@ -4993,7 +4997,7 @@ function ds(e, t) {
|
|
|
4993
4997
|
}
|
|
4994
4998
|
const us = (e) => /^\s+$/.test(e);
|
|
4995
4999
|
function Zu(e) {
|
|
4996
|
-
const t =
|
|
5000
|
+
const t = Q(() => ds(e.text, e.by ?? "word")), r = [];
|
|
4997
5001
|
let n;
|
|
4998
5002
|
const l = () => {
|
|
4999
5003
|
const o = r.filter((s) => s !== void 0);
|
|
@@ -5092,8 +5096,8 @@ function Qu(e) {
|
|
|
5092
5096
|
typeof w == "function" ? R(w, m) : n = m;
|
|
5093
5097
|
var _ = l;
|
|
5094
5098
|
return typeof _ == "function" ? R(_, b) : l = b, c($, () => e.label ?? "Hold to confirm"), k((C) => {
|
|
5095
|
-
var
|
|
5096
|
-
return
|
|
5099
|
+
var D = e.disabled, S = e.label ?? "Hold to confirm", T = t(), I = p("relative overflow-hidden rounded-lg border border-border bg-card px-4 py-2 text-sm font-medium disabled:pointer-events-none disabled:opacity-50", e.class);
|
|
5100
|
+
return D !== C.e && (m.disabled = C.e = D), S !== C.t && L(m, "aria-label", C.t = S), T !== C.a && L(m, "aria-busy", C.a = T), I !== C.o && E(m, C.o = I), C;
|
|
5097
5101
|
}, {
|
|
5098
5102
|
e: void 0,
|
|
5099
5103
|
t: void 0,
|
|
@@ -5102,7 +5106,7 @@ function Qu(e) {
|
|
|
5102
5106
|
}), m;
|
|
5103
5107
|
})();
|
|
5104
5108
|
}
|
|
5105
|
-
|
|
5109
|
+
Y(["pointerdown", "pointerup", "keydown", "keyup"]);
|
|
5106
5110
|
var fs = /* @__PURE__ */ x('<span role=status><span class="rounded-full bg-current"></span><span class="rounded-full bg-current"></span><span class="rounded-full bg-current">');
|
|
5107
5111
|
const Ft = "a4ui-loading-dots-style";
|
|
5108
5112
|
function ms() {
|
|
@@ -5134,7 +5138,7 @@ function eg(e) {
|
|
|
5134
5138
|
var l = fs(), o = l.firstChild, s = o.nextSibling, a = s.nextSibling;
|
|
5135
5139
|
return k((f) => {
|
|
5136
5140
|
var g = e.label ?? "Loading", u = p("inline-flex items-center gap-1 text-current", e.class), d = n(0), v = n(120), h = n(240);
|
|
5137
|
-
return g !== f.e &&
|
|
5141
|
+
return g !== f.e && L(l, "aria-label", f.e = g), u !== f.t && E(l, f.t = u), f.a = de(o, d, f.a), f.o = de(s, v, f.o), f.i = de(a, h, f.i), f;
|
|
5138
5142
|
}, {
|
|
5139
5143
|
e: void 0,
|
|
5140
5144
|
t: void 0,
|
|
@@ -5264,7 +5268,7 @@ function tg(e) {
|
|
|
5264
5268
|
}
|
|
5265
5269
|
return W(() => {
|
|
5266
5270
|
e.show && f(e.variant ?? "fade", !0);
|
|
5267
|
-
}),
|
|
5271
|
+
}), re(Ht(() => e.show, (u) => {
|
|
5268
5272
|
const d = e.variant ?? "fade", v = e.duration ?? 0.6;
|
|
5269
5273
|
n == null || n.stop(), n = void 0, r(u ? "covering" : "uncovering");
|
|
5270
5274
|
const h = () => {
|
|
@@ -5367,7 +5371,7 @@ function tg(e) {
|
|
|
5367
5371
|
})();
|
|
5368
5372
|
})(), null), k((d) => {
|
|
5369
5373
|
var v = p("pointer-events-none fixed inset-0 z-[9999]", e.class), h = e.variant ?? "fade", y = t();
|
|
5370
|
-
return v !== d.e && E(u, d.e = v), h !== d.t &&
|
|
5374
|
+
return v !== d.e && E(u, d.e = v), h !== d.t && L(u, "data-curtain-variant", d.t = h), y !== d.a && L(u, "data-curtain-state", d.a = y), d;
|
|
5371
5375
|
}, {
|
|
5372
5376
|
e: void 0,
|
|
5373
5377
|
t: void 0,
|
|
@@ -5461,7 +5465,7 @@ function lg(e) {
|
|
|
5461
5465
|
"pointer-events": g() ? "none" : "auto",
|
|
5462
5466
|
"transform-origin": "top center"
|
|
5463
5467
|
}, w = p("text-sm font-medium text-foreground", !r() && "truncate"), _ = `Dismiss ${a.title}`;
|
|
5464
|
-
return b !== m.e && E(u, m.e = b), m.t = de(u, $, m.t), w !== m.a && E(h, m.a = w), _ !== m.o &&
|
|
5468
|
+
return b !== m.e && E(u, m.e = b), m.t = de(u, $, m.t), w !== m.a && E(h, m.a = w), _ !== m.o && L(y, "aria-label", m.o = _), m;
|
|
5465
5469
|
}, {
|
|
5466
5470
|
e: void 0,
|
|
5467
5471
|
t: void 0,
|
|
@@ -5479,7 +5483,7 @@ function lg(e) {
|
|
|
5479
5483
|
return a.$$click = () => n((f) => !f), c(a, (() => {
|
|
5480
5484
|
var f = K(() => !!r());
|
|
5481
5485
|
return () => f() ? "Show less" : `Show all ${e.items.length}`;
|
|
5482
|
-
})()), k(() =>
|
|
5486
|
+
})()), k(() => L(a, "aria-expanded", r())), a;
|
|
5483
5487
|
}
|
|
5484
5488
|
}), null), k((a) => {
|
|
5485
5489
|
var f = p("w-full max-w-sm", e.class), g = p(r() ? "max-h-[60vh] space-y-2 overflow-y-auto pr-1" : p("relative", l() && "cursor-pointer")), u = r() ? void 0 : (
|
|
@@ -5496,7 +5500,7 @@ function lg(e) {
|
|
|
5496
5500
|
}), o;
|
|
5497
5501
|
})();
|
|
5498
5502
|
}
|
|
5499
|
-
|
|
5503
|
+
Y(["click"]);
|
|
5500
5504
|
var Os = /* @__PURE__ */ x('<span role=status aria-live=polite><span class="inline-flex items-center gap-1.5"><span>');
|
|
5501
5505
|
const Bs = {
|
|
5502
5506
|
idle: "Ready",
|
|
@@ -5515,7 +5519,7 @@ function ig(e) {
|
|
|
5515
5519
|
var l;
|
|
5516
5520
|
return ((l = e.labels) == null ? void 0 : l[e.state]) ?? Bs[e.state];
|
|
5517
5521
|
};
|
|
5518
|
-
return
|
|
5522
|
+
return re(Ht(() => e.state, () => {
|
|
5519
5523
|
H() || (t && G(t, {
|
|
5520
5524
|
scale: [0.9, 1]
|
|
5521
5525
|
}, {
|
|
@@ -5621,7 +5625,7 @@ function og(e) {
|
|
|
5621
5625
|
},
|
|
5622
5626
|
get children() {
|
|
5623
5627
|
var a = Ns();
|
|
5624
|
-
return k(() =>
|
|
5628
|
+
return k(() => L(a, "src", e.cover)), a;
|
|
5625
5629
|
}
|
|
5626
5630
|
}), l), c(o, () => e.title), c(l, i(M, {
|
|
5627
5631
|
get when() {
|
|
@@ -5639,7 +5643,7 @@ function og(e) {
|
|
|
5639
5643
|
})()
|
|
5640
5644
|
})), k((a) => {
|
|
5641
5645
|
var f = p("flex items-center gap-3 rounded-xl border border-border bg-card p-3", e.class), g = `Now playing: ${e.title}${e.artist ? ` by ${e.artist}` : ""}`;
|
|
5642
|
-
return f !== a.e && E(n, a.e = f), g !== a.t &&
|
|
5646
|
+
return f !== a.e && E(n, a.e = f), g !== a.t && L(n, "aria-label", a.t = g), a;
|
|
5643
5647
|
}, {
|
|
5644
5648
|
e: void 0,
|
|
5645
5649
|
t: void 0
|
|
@@ -5672,12 +5676,12 @@ function ag(e) {
|
|
|
5672
5676
|
}
|
|
5673
5677
|
const _ = Math.min(e.maxWidth ?? 640, $ - be * 2);
|
|
5674
5678
|
b.style.width = `${_}px`, b.style.height = "auto", b.style.maxHeight = `${w - be * 2}px`;
|
|
5675
|
-
const C = b.getBoundingClientRect().height,
|
|
5679
|
+
const C = b.getBoundingClientRect().height, D = Math.min(C, w - be * 2);
|
|
5676
5680
|
return {
|
|
5677
5681
|
left: ($ - _) / 2,
|
|
5678
|
-
top: (w -
|
|
5682
|
+
top: (w - D) / 2,
|
|
5679
5683
|
width: _,
|
|
5680
|
-
height:
|
|
5684
|
+
height: D
|
|
5681
5685
|
};
|
|
5682
5686
|
}, u = (b, $) => {
|
|
5683
5687
|
b.style.top = `${$.top}px`, b.style.left = `${$.left}px`, b.style.width = `${$.width}px`, b.style.height = `${$.height}px`;
|
|
@@ -5770,7 +5774,7 @@ function ag(e) {
|
|
|
5770
5774
|
}
|
|
5771
5775
|
})];
|
|
5772
5776
|
}
|
|
5773
|
-
|
|
5777
|
+
Y(["click", "keydown"]);
|
|
5774
5778
|
var Js = /* @__PURE__ */ x("<span>"), Zs = /* @__PURE__ */ x('<span aria-hidden=true class=inline-block style="animation:a4-caret-blink 1s step-end infinite">|');
|
|
5775
5779
|
const Rt = "a4ui-typewriter-style";
|
|
5776
5780
|
function Qs() {
|
|
@@ -6013,7 +6017,7 @@ function cc(e) {
|
|
|
6013
6017
|
function dc() {
|
|
6014
6018
|
let e, t;
|
|
6015
6019
|
const r = sr();
|
|
6016
|
-
return
|
|
6020
|
+
return re(() => {
|
|
6017
6021
|
const n = r() === "light" ? ic : lc;
|
|
6018
6022
|
t && (t.innerHTML = cc(n));
|
|
6019
6023
|
}), W(() => {
|
|
@@ -6049,7 +6053,7 @@ function dc() {
|
|
|
6049
6053
|
n.push(() => {
|
|
6050
6054
|
s && cancelAnimationFrame(s);
|
|
6051
6055
|
});
|
|
6052
|
-
const y = ($, w, _, C,
|
|
6056
|
+
const y = ($, w, _, C, D, S) => {
|
|
6053
6057
|
const T = document.createElement("div");
|
|
6054
6058
|
T.className = "shooter", T.style.width = `${C}px`, T.style.left = $, T.style.top = w, e.appendChild(T);
|
|
6055
6059
|
const I = T.animate([{
|
|
@@ -6057,21 +6061,21 @@ function dc() {
|
|
|
6057
6061
|
transform: `rotate(${_}deg) translateX(0px) scaleX(.4)`
|
|
6058
6062
|
}, {
|
|
6059
6063
|
opacity: 1,
|
|
6060
|
-
transform: `rotate(${_}deg) translateX(${
|
|
6064
|
+
transform: `rotate(${_}deg) translateX(${D * 0.35}px) scaleX(1)`,
|
|
6061
6065
|
offset: 0.5
|
|
6062
6066
|
}, {
|
|
6063
6067
|
opacity: 0,
|
|
6064
|
-
transform: `rotate(${_}deg) translateX(${
|
|
6068
|
+
transform: `rotate(${_}deg) translateX(${D}px) scaleX(1)`
|
|
6065
6069
|
}], {
|
|
6066
6070
|
duration: S,
|
|
6067
6071
|
easing: "cubic-bezier(.3,0,.15,1)",
|
|
6068
6072
|
fill: "forwards"
|
|
6069
6073
|
});
|
|
6070
6074
|
I.onfinish = () => T.remove(), l.push(window.setTimeout(() => T.remove(), S + 250));
|
|
6071
|
-
}, m = ($, w, _, C,
|
|
6075
|
+
}, m = ($, w, _, C, D, S) => {
|
|
6072
6076
|
const T = document.createElement("div"), I = C * (82 / 24);
|
|
6073
6077
|
T.style.cssText = `position:absolute;left:${$};top:${w};width:${C.toFixed(0)}px;height:${I.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, T.innerHTML = oc, e.appendChild(T);
|
|
6074
|
-
const P = _ * Math.PI / 180, j = Math.cos(P) *
|
|
6078
|
+
const P = _ * Math.PI / 180, j = Math.cos(P) * D, A = Math.sin(P) * D, B = _ + 90, N = T.animate([{
|
|
6075
6079
|
opacity: 0,
|
|
6076
6080
|
transform: `translate(0px,0px) rotate(${B}deg) scale(.5)`
|
|
6077
6081
|
}, {
|
|
@@ -6196,7 +6200,7 @@ function vc(e, t, r) {
|
|
|
6196
6200
|
const bc = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
|
|
6197
6201
|
function mg(e) {
|
|
6198
6202
|
let t, r;
|
|
6199
|
-
return
|
|
6203
|
+
return re(() => {
|
|
6200
6204
|
r.innerHTML = vc(e.motifs, e.count ?? 16, !H());
|
|
6201
6205
|
}), W(() => {
|
|
6202
6206
|
const n = [], l = [], o = (a, f, g, u, d, v) => {
|
|
@@ -6261,7 +6265,7 @@ function yc(e) {
|
|
|
6261
6265
|
}
|
|
6262
6266
|
function hg() {
|
|
6263
6267
|
let e, t;
|
|
6264
|
-
return
|
|
6268
|
+
return re(() => {
|
|
6265
6269
|
t.innerHTML = yc(!H());
|
|
6266
6270
|
}), W(() => {
|
|
6267
6271
|
document.documentElement.dataset.scene = "snow";
|
|
@@ -6293,7 +6297,7 @@ function kc(e) {
|
|
|
6293
6297
|
}
|
|
6294
6298
|
function vg() {
|
|
6295
6299
|
let e, t;
|
|
6296
|
-
return
|
|
6300
|
+
return re(() => {
|
|
6297
6301
|
t.innerHTML = kc(!H());
|
|
6298
6302
|
}), W(() => {
|
|
6299
6303
|
const r = [], n = [], l = (a) => {
|
|
@@ -6374,14 +6378,14 @@ function bg(e) {
|
|
|
6374
6378
|
}
|
|
6375
6379
|
})), k((n) => {
|
|
6376
6380
|
var l = e.label ?? "Toggle theme", o = e.label ?? "Toggle theme";
|
|
6377
|
-
return l !== n.e &&
|
|
6381
|
+
return l !== n.e && L(r, "aria-label", n.e = l), o !== n.t && L(r, "title", n.t = o), n;
|
|
6378
6382
|
}, {
|
|
6379
6383
|
e: void 0,
|
|
6380
6384
|
t: void 0
|
|
6381
6385
|
}), r;
|
|
6382
6386
|
})();
|
|
6383
6387
|
}
|
|
6384
|
-
|
|
6388
|
+
Y(["click"]);
|
|
6385
6389
|
var Sc = /* @__PURE__ */ x('<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">');
|
|
6386
6390
|
function xg(e) {
|
|
6387
6391
|
const t = Er();
|
|
@@ -6391,7 +6395,7 @@ function xg(e) {
|
|
|
6391
6395
|
class: "h-[18px] w-[18px]"
|
|
6392
6396
|
})), k((n) => {
|
|
6393
6397
|
var l = t(), o = e.label ?? "Visual effects", s = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
|
|
6394
|
-
return l !== n.e &&
|
|
6398
|
+
return l !== n.e && L(r, "aria-pressed", n.e = l), o !== n.t && L(r, "aria-label", n.t = o), s !== n.a && L(r, "title", n.a = s), n;
|
|
6395
6399
|
}, {
|
|
6396
6400
|
e: void 0,
|
|
6397
6401
|
t: void 0,
|
|
@@ -6399,7 +6403,7 @@ function xg(e) {
|
|
|
6399
6403
|
}), r;
|
|
6400
6404
|
})();
|
|
6401
6405
|
}
|
|
6402
|
-
|
|
6406
|
+
Y(["click"]);
|
|
6403
6407
|
var Ec = /* @__PURE__ */ x('<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">');
|
|
6404
6408
|
function $g(e) {
|
|
6405
6409
|
return (() => {
|
|
@@ -6475,12 +6479,12 @@ function wg(e) {
|
|
|
6475
6479
|
},
|
|
6476
6480
|
children: (o) => (() => {
|
|
6477
6481
|
var s = Fc();
|
|
6478
|
-
return Ue(s, "click", t.action.onClick, !0), s.$$pointerdown = r, c(s, () => t.action.label), k(() =>
|
|
6482
|
+
return Ue(s, "click", t.action.onClick, !0), s.$$pointerdown = r, c(s, () => t.action.label), k(() => L(s, "href", o())), s;
|
|
6479
6483
|
})()
|
|
6480
6484
|
}), null), k(() => E(n, p("z-40 flex w-full items-center justify-between gap-3 bg-primary px-4 py-3 text-primary-foreground", (t.sticky ?? !0) && p("sticky", Pc[t.position ?? "top"]), t.class))), n;
|
|
6481
6485
|
})();
|
|
6482
6486
|
}
|
|
6483
|
-
|
|
6487
|
+
Y(["pointerdown", "click"]);
|
|
6484
6488
|
const zc = [
|
|
6485
6489
|
"background",
|
|
6486
6490
|
"foreground",
|
|
@@ -6818,7 +6822,7 @@ function kg() {
|
|
|
6818
6822
|
}
|
|
6819
6823
|
Kc(e && hr(e) || ut);
|
|
6820
6824
|
}
|
|
6821
|
-
const Cg = "0.
|
|
6825
|
+
const Cg = "0.19.0";
|
|
6822
6826
|
export {
|
|
6823
6827
|
Cg as A4UI_VERSION,
|
|
6824
6828
|
Sd as Accordion,
|